Home
last modified time | relevance | path

Searched refs:FindFieldByName (Results 1 – 20 of 20) sorted by relevance

/external/protobuf/src/google/protobuf/
Dgenerated_message_reflection_unittest.cc62 unittest::TestAllTypes::descriptor()->FindFieldByName(name); in F()
221 fields.push_back(descriptor->FindFieldByName("optional_double")); in TEST()
222 fields.push_back(descriptor->FindFieldByName("repeated_int32")); in TEST()
223 fields.push_back(descriptor->FindFieldByName("optional_string")); in TEST()
224 fields.push_back(descriptor->FindFieldByName("optional_uint64")); in TEST()
357 &message, descriptor->FindFieldByName("repeated_foreign_message"))); in TEST()
566 message, descriptor->FindFieldByName("foo_int"))); in TEST()
568 message, descriptor->FindFieldByName("foo_string"))); in TEST()
570 message, descriptor->FindFieldByName("foo_cord"))); in TEST()
572 message, descriptor->FindFieldByName("foo_string_piece"))); in TEST()
[all …]
Ddynamic_message_unittest.cc165 *message, descriptor->FindFieldByName("foo_int"))); in TEST_F()
167 *message, descriptor->FindFieldByName("foo_string"))); in TEST_F()
169 *message, descriptor->FindFieldByName("foo_cord"))); in TEST_F()
171 *message, descriptor->FindFieldByName("foo_string_piece"))); in TEST_F()
173 *message, descriptor->FindFieldByName("foo_bytes"))); in TEST_F()
175 *message, descriptor->FindFieldByName("foo_enum"))->number()); in TEST_F()
183 *message, descriptor->FindFieldByName("foo_message"))); in TEST_F()
191 *message, descriptor->FindFieldByName("foogroup"))); in TEST_F()
194 *message, descriptor->FindFieldByName("foo_lazy_message"))); in TEST_F()
196 *message, descriptor->FindFieldByName("bar_int"))); in TEST_F()
[all …]
Drepeated_field_reflection_unittest.cc76 desc->FindFieldByName("repeated_int32"); in TEST()
78 desc->FindFieldByName("repeated_double"); in TEST()
80 desc->FindFieldByName("repeated_string"); in TEST()
82 desc->FindFieldByName("repeated_foreign_message"); in TEST()
150 desc->FindFieldByName("optional_int32"); in TEST()
Dtext_format_unittest.cc431 message.GetDescriptor()->FindFieldByName("optional_int32"), in TEST_F()
443 message.GetDescriptor()->FindFieldByName("optional_int32"), in TEST_F()
969 d->FindFieldByName(field_name), index); in ExpectLocation()
1039 d->FindFieldByName("optional_nested_message"); in TEST_F()
1046 nested_field = d->FindFieldByName("repeated_nested_message"); in TEST_F()
1066 valuestring, d->FindFieldByName("optional_" #name), message.get())); \ in TEST_F()
1072 valuestring, d->FindFieldByName("optional_" #name), message.get())); \ in TEST_F()
1078 valuestring, d->FindFieldByName("optional_" #name), message.get())); \ in TEST_F()
1084 valuestring, d->FindFieldByName("optional_" #name), message.get())); \ in TEST_F()
1090 valuestring, d->FindFieldByName("optional_" #name), message.get())); in TEST_F()
[all …]
Dwire_format_unittest.cc746 field = desc->FindFieldByName("repeated_fixed32"); in TEST()
749 field = desc->FindFieldByName("repeated_int32"); in TEST()
752 field = desc->FindFieldByName("repeated_fixed64"); in TEST()
755 field = desc->FindFieldByName("repeated_int64"); in TEST()
758 field = desc->FindFieldByName("repeated_float"); in TEST()
761 field = desc->FindFieldByName("repeated_uint64"); in TEST()
803 unittest::TestAllTypes::descriptor()->FindFieldByName( in MakeInvalidEmbeddedMessage()
824 unittest::TestAllTypes::descriptor()->FindFieldByName( in MakeInvalidGroup()
Dtest_util.cc93 message->GetDescriptor()->FindFieldByName("optional_string_piece"), in SetOptionalFields()
97 message->GetDescriptor()->FindFieldByName("optional_cord"), in SetOptionalFields()
134 message->GetDescriptor()->FindFieldByName("repeated_string_piece"), in AddRepeatedFields1()
138 message->GetDescriptor()->FindFieldByName("repeated_cord"), in AddRepeatedFields1()
174 message->GetDescriptor()->FindFieldByName("repeated_string_piece"), in AddRepeatedFields2()
178 message->GetDescriptor()->FindFieldByName("repeated_cord"), in AddRepeatedFields2()
209 message->GetDescriptor()->FindFieldByName("default_string_piece"), in SetDefaultFields()
213 message->GetDescriptor()->FindFieldByName("default_cord"), in SetDefaultFields()
250 message->GetDescriptor()->FindFieldByName("repeated_string_piece"), in ModifyRepeatedFields()
254 message->GetDescriptor()->FindFieldByName("repeated_cord"), in ModifyRepeatedFields()
[all …]
Dunknown_field_set_unittest.cc67 const FieldDescriptor* field = descriptor_->FindFieldByName(name); in GetField()
178 unittest::TestAllTypes::OptionalGroup::descriptor()->FindFieldByName("a"); in TEST_F()
410 TestAllTypes::descriptor()->FindFieldByName("optional_nested_enum"); in TEST_F()
412 TestAllTypes::descriptor()->FindFieldByName("repeated_nested_enum"); in TEST_F()
Ddescriptor_unittest.cc509 TEST_F(DescriptorTest, FindFieldByName) { in TEST_F() argument
515 EXPECT_EQ(foo_, message_->FindFieldByName("foo")); in TEST_F()
516 EXPECT_EQ(bar_, message_->FindFieldByName("bar")); in TEST_F()
517 EXPECT_EQ(baz_, message_->FindFieldByName("baz")); in TEST_F()
518 EXPECT_EQ(qux_, message_->FindFieldByName("qux")); in TEST_F()
519 EXPECT_TRUE(message_->FindFieldByName("no_such_field") == NULL); in TEST_F()
520 EXPECT_TRUE(message_->FindFieldByName("quux") == NULL); in TEST_F()
522 EXPECT_EQ(foo2_ , message2_->FindFieldByName("foo" )); in TEST_F()
523 EXPECT_EQ(bar2_ , message2_->FindFieldByName("bar" )); in TEST_F()
524 EXPECT_EQ(quux2_, message2_->FindFieldByName("quux")); in TEST_F()
[all …]
Ddescriptor.h182 const FieldDescriptor* FindFieldByName(const string& name) const;
1223 const FieldDescriptor* FindFieldByName(const string& name) const;
Dtext_format.cc387 field = descriptor->FindFieldByName(field_name); in ConsumeField()
394 field = descriptor->FindFieldByName(lower_field_name); in ConsumeField()
Ddescriptor.cc1070 const FieldDescriptor* DescriptorPool::FindFieldByName( in FindFieldByName() function in google::protobuf::DescriptorPool
1211 Descriptor::FindFieldByName(const string& key) const { in FindFieldByName() function in google::protobuf::Descriptor
4690 options->GetDescriptor()->FindFieldByName("uninterpreted_option"); in InterpretOptions()
4698 FindFieldByName("uninterpreted_option"); in InterpretOptions()
4807 field = descriptor->FindFieldByName(name_part); in InterpretSingleOption()
4929 options->GetDescriptor()->FindFieldByName("uninterpreted_option"); in AddWithoutInterpreting()
/external/protobuf/python/google/protobuf/pyext/
Ddescriptor.cc173 PyObject* FindFieldByName(CDescriptorPool* self, PyObject* name) { in FindFieldByName() function
181 field_descriptor = self->pool->FindFieldByName(full_field_name); in FindFieldByName()
211 (PyCFunction)FindFieldByName,
Ddescriptor.h77 PyObject* FindFieldByName(CDescriptorPool* self, PyObject* name);
Dmessage.cc875 descriptor->FindFieldByName(field_name); in CheckAndGetInteger()
1882 cdescriptor_pool::FindFieldByName(descriptor_pool, full_field_name); in CheckAndGetInteger()
2121 return cdescriptor_pool::FindFieldByName(descriptor_pool, arg); in CheckAndGetInteger()
/external/protobuf/src/google/protobuf/compiler/
Dimporter_unittest.cc240 const FieldDescriptor* key_field = item_type->FindFieldByName("key"); in TEST_F()
242 const FieldDescriptor* items_field = map_type->FindFieldByName("items"); in TEST_F()
Dparser.cc1020 FindFieldByName("uninterpreted_option"); in ParseOption()
Dparser_unittest.cc1725 descriptor_proto.GetDescriptor()->FindFieldByName(field_name); in HasSpan()
/external/protobuf/src/google/protobuf/compiler/cpp/
Dcpp_helpers.cc398 if (descriptor->FindFieldByName(function_name)) { in SafeFunctionName()
/external/protobuf/python/google/protobuf/internal/
Dcpp_message.py60 return _pool.FindFieldByName(full_field_name)
/external/protobuf/
DCHANGES.txt506 MyMessage::descriptor()->FindFieldByName("some_field");