Home
last modified time | relevance | path

Searched refs:FindFieldByNumber (Results 1 – 25 of 29) sorted by relevance

12

/external/protobuf/src/google/protobuf/
Dany.cc71 *type_url_field = descriptor->FindFieldByNumber(1); in GetAnyFieldDescriptors()
72 *value_field = descriptor->FindFieldByNumber(2); in GetAnyFieldDescriptors()
Ddescriptor_unittest.cc845 TEST_F(DescriptorTest, FindFieldByNumber) { in TEST_F() argument
846 EXPECT_EQ(foo_, message_->FindFieldByNumber(1)); in TEST_F()
847 EXPECT_EQ(bar_, message_->FindFieldByNumber(6)); in TEST_F()
848 EXPECT_EQ(baz_, message_->FindFieldByNumber(500000000)); in TEST_F()
849 EXPECT_EQ(qux_, message_->FindFieldByNumber(15)); in TEST_F()
850 EXPECT_TRUE(message_->FindFieldByNumber(837592) == nullptr); in TEST_F()
851 EXPECT_TRUE(message_->FindFieldByNumber(2) == nullptr); in TEST_F()
853 EXPECT_EQ(foo2_, message2_->FindFieldByNumber(1)); in TEST_F()
854 EXPECT_EQ(bar2_, message2_->FindFieldByNumber(2)); in TEST_F()
855 EXPECT_EQ(quux2_, message2_->FindFieldByNumber(6)); in TEST_F()
[all …]
Dgenerated_message_reflection.cc504 field1 = descriptor_->FindFieldByNumber(oneof_case1); in SwapOneofField()
536 const FieldDescriptor* field2 = descriptor_->FindFieldByNumber(oneof_case2); in SwapOneofField()
1758 return descriptor_->FindFieldByNumber(field_number); in GetOneofFieldDescriptor()
2050 const FieldDescriptor* field = descriptor_->FindFieldByNumber(oneof_case); in ClearOneof()
Dtext_format_unittest.cc622 ->FindFieldByNumber( in TEST_F()
672 ->FindFieldByNumber( in TEST_F()
Dunknown_field_set_unittest.cc123 const FieldDescriptor* field = descriptor_->FindFieldByNumber(i); in TEST_F()
Dmessage.cc493 auto field = descriptor_->FindFieldByNumber(num); in _InternalParse()
Ddescriptor.h290 const FieldDescriptor* FindFieldByNumber(int number) const;
Ddescriptor.cc725 inline const FieldDescriptor* FindFieldByNumber(const Descriptor* parent,
962 inline const FieldDescriptor* FileDescriptorTables::FindFieldByNumber( in FindFieldByNumber() function in google::protobuf::FileDescriptorTables
1584 const FieldDescriptor* Descriptor::FindFieldByNumber(int key) const { in FindFieldByNumber() function in google::protobuf::Descriptor
1585 const FieldDescriptor* result = file()->tables_->FindFieldByNumber(this, key); in FindFieldByNumber()
5658 const FieldDescriptor* conflicting_field = file_tables_->FindFieldByNumber( in CrossLinkField()
Dwire_format.cc406 field = descriptor->FindFieldByNumber(field_number); in ParseAndMergePartial()
/external/perfetto/tools/ftrace_proto_gen/
Dftrace_descriptor_gen.cc67 ftrace_event->FindFieldByNumber(i); in GenerateFtraceDescriptors()
87 const auto* field = event_descriptor->FindFieldByNumber(j); in GenerateFtraceDescriptors()
/external/protobuf/csharp/src/Google.Protobuf/Reflection/
DMessageDescriptor.cs232 …public FieldDescriptor FindFieldByNumber(int number) => File.DescriptorPool.FindFieldByNumber(this… in FindFieldByNumber() method in Google.Protobuf.Reflection.MessageDescriptor
338 var fieldDescriptor = messageDescriptor.FindFieldByNumber(number);
DOneofAccessor.cs85 return descriptor.ContainingType.FindFieldByNumber(fieldNumber); in GetCaseFieldDescriptor()
DDescriptorPool.cs209 internal FieldDescriptor FindFieldByNumber(MessageDescriptor messageDescriptor, int number) in FindFieldByNumber() method in Google.Protobuf.Reflection.DescriptorPool
/external/protobuf/csharp/compatibility_tests/v3.0.0/src/Google.Protobuf.Test/Reflection/
DDescriptorsTest.cs113 Assert.AreEqual(field, messageType.FindFieldByNumber(1)); in MessageDescriptor()
114 Assert.Null(messageType.FindFieldByNumber(571283)); in MessageDescriptor()
219 .Select(fieldNumber => TestAllTypes.Descriptor.FindFieldByNumber(fieldNumber)) in OneofDescriptor()
/external/protobuf/csharp/src/Google.Protobuf.Test/Reflection/
DDescriptorsTest.cs191 Assert.AreEqual(field, messageType.FindFieldByNumber(1)); in MessageDescriptor()
192 Assert.Null(messageType.FindFieldByNumber(571283)); in MessageDescriptor()
329 .Select(fieldNumber => TestAllTypes.Descriptor.FindFieldByNumber(fieldNumber)) in OneofDescriptor()
/external/protobuf/csharp/src/Google.Protobuf/WellKnownTypes/
DFieldMaskPartial.cs170 var field = descriptor.FindFieldByNumber(fieldNumber);
/external/protobuf/src/google/protobuf/util/internal/
Dprotostream_objectsource.cc80 const google::protobuf::Field* FindFieldByNumber(
170 const google::protobuf::Field* field = FindFieldByNumber(type, tag >> 3); in FindAndVerifyField()
303 FindFieldByNumber(*field_type, 1); in RenderMap()
1111 const google::protobuf::Field* FindFieldByNumber( in FindFieldByNumber() function
/external/protobuf/src/google/protobuf/compiler/ruby/
Druby_generator.cc171 field->message_type()->FindFieldByNumber(1); in GenerateField()
173 field->message_type()->FindFieldByNumber(2); in GenerateField()
/external/perfetto/tools/trace_to_text/
Dtrace_to_text.cc176 trace_descriptor->FindFieldByNumber(kCompressedPacketFieldDescriptor); in TraceToText()
/external/protobuf/csharp/src/Google.Protobuf/
DJsonParser.cs286 var keyField = type.FindFieldByNumber(1); in MergeMapField()
287 var valueField = type.FindFieldByNumber(2); in MergeMapField()
/external/perfetto/tools/protoprofile/
Dmain.cc289 const FieldDescriptor* field_descriptor = descriptor->FindFieldByNumber(id); in ComputeInner()
/external/protobuf/python/google/protobuf/pyext/
Ddescriptor_containers.cc972 return GetDescriptor(self)->FindFieldByNumber(number); in GetByNumber()
/external/protobuf/src/google/protobuf/compiler/js/
Djs_generator.cc1282 return field->message_type()->FindFieldByNumber(kMapKeyField); in MapFieldKey()
1287 return field->message_type()->FindFieldByNumber(kMapValueField); in MapFieldValue()
/external/protobuf/ruby/ext/google/protobuf_c/
Dupb.h2556 FieldDef* FindFieldByNumber(uint32_t number);
2558 const FieldDef* FindFieldByNumber(uint32_t number) const;
3067 const FieldDef* FindFieldByNumber(uint32_t num) const;
3741 inline FieldDef* MessageDef::FindFieldByNumber(uint32_t number) {
3747 inline const FieldDef* MessageDef::FindFieldByNumber(uint32_t number) const {
3979 inline const FieldDef* OneofDef::FindFieldByNumber(uint32_t num) const {
/external/protobuf/src/google/protobuf/util/
Dmessage_differencer.cc214 const FieldDescriptor* key = message1.GetDescriptor()->FindFieldByNumber(1); in IsMatch()

12