Home
last modified time | relevance | path

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

12

/third_party/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.cc506 field1 = descriptor_->FindFieldByNumber(oneof_case1); in SwapOneofField()
538 const FieldDescriptor* field2 = descriptor_->FindFieldByNumber(oneof_case2); in SwapOneofField()
1814 return descriptor_->FindFieldByNumber(field_number); in GetOneofFieldDescriptor()
2111 const FieldDescriptor* field = descriptor_->FindFieldByNumber(oneof_case); in ClearOneof()
Dunknown_field_set_unittest.cc139 EXPECT_NE(descriptor_->FindFieldByNumber(t), nullptr); in TEST_F()
Dtext_format_unittest.cc701 ->FindFieldByNumber( in TEST_F()
751 ->FindFieldByNumber( in TEST_F()
Dwire_format.cc355 field = descriptor->FindFieldByNumber(field_number); in ParseAndMergePartial()
801 field = descriptor->FindFieldByNumber(field_number); in _InternalParse()
Ddescriptor.h322 const FieldDescriptor* FindFieldByNumber(int number) const;
/third_party/protobuf/csharp/src/Google.Protobuf/Reflection/
DMessageDescriptor.cs276 …public FieldDescriptor FindFieldByNumber(int number) => File.DescriptorPool.FindFieldByNumber(this… in FindFieldByNumber() method in Google.Protobuf.Reflection.MessageDescriptor
390 var fieldDescriptor = messageDescriptor.FindFieldByNumber(number);
DOneofAccessor.cs93 ? Descriptor.ContainingType.FindFieldByNumber(fieldNumber) in GetCaseFieldDescriptor()
DDescriptorPool.cs209 internal FieldDescriptor FindFieldByNumber(MessageDescriptor messageDescriptor, int number) in FindFieldByNumber() method in Google.Protobuf.Reflection.DescriptorPool
/third_party/grpc/third_party/upb/upbc/
Dmessage_layout.cc118 field_offsets_[descriptor->FindFieldByNumber(1)] = Place(size); in ComputeLayout()
119 field_offsets_[descriptor->FindFieldByNumber(2)] = Place(size); in ComputeLayout()
Dgenerator.cc402 const protobuf::FieldDescriptor* key = entry->FindFieldByNumber(1); in GenerateMessageInHeader()
403 const protobuf::FieldDescriptor* val = entry->FindFieldByNumber(2); in GenerateMessageInHeader()
466 const protobuf::FieldDescriptor* key = entry->FindFieldByNumber(1); in GenerateMessageInHeader()
467 const protobuf::FieldDescriptor* val = entry->FindFieldByNumber(2); in GenerateMessageInHeader()
Dprotoc-gen-upb.cc295 const protobuf::FieldDescriptor* key = entry->FindFieldByNumber(1); in GenerateMessageInHeader()
296 const protobuf::FieldDescriptor* val = entry->FindFieldByNumber(2); in GenerateMessageInHeader()
359 const protobuf::FieldDescriptor* key = entry->FindFieldByNumber(1); in GenerateMessageInHeader()
360 const protobuf::FieldDescriptor* val = entry->FindFieldByNumber(2); in GenerateMessageInHeader()
/third_party/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()
/third_party/protobuf/csharp/src/Google.Protobuf.Test/Reflection/
DDescriptorsTest.cs192 Assert.AreEqual(field, messageType.FindFieldByNumber(1)); in MessageDescriptor()
193 Assert.Null(messageType.FindFieldByNumber(571283)); in MessageDescriptor()
336 .Select(fieldNumber => TestAllTypes.Descriptor.FindFieldByNumber(fieldNumber)) in OneofDescriptor()
DFieldAccessTest.cs392 …tension(OptionalBoolExtension), Proto2.TestAllExtensions.Descriptor.FindFieldByNumber(OptionalBool… in GetExtensionValue()
402 …Assert.IsNotNull(Proto2.TestAllExtensions.Descriptor.FindFieldByNumber(RepeatedBoolExtension.Field… in GetRepeatedExtensionValue()
/third_party/grpc/third_party/upb/upb/
Ddef.hpp158 FieldDefPtr FindFieldByNumber(uint32_t num) const { in FindFieldByNumber() function in upb::OneofDefPtr
189 FieldDefPtr FindFieldByNumber(uint32_t number) const { in FindFieldByNumber() function in upb::MessageDefPtr
/third_party/protobuf/src/google/protobuf/util/
Dfield_mask_util.h65 T::descriptor()->FindFieldByNumber(field_number); in FromFieldNumbers()
/third_party/protobuf/csharp/src/Google.Protobuf/WellKnownTypes/
DFieldMaskPartial.cs170 var field = descriptor.FindFieldByNumber(fieldNumber);
/third_party/protobuf/src/google/protobuf/compiler/ruby/
Druby_generator.cc175 field->message_type()->FindFieldByNumber(1); in GenerateField()
177 field->message_type()->FindFieldByNumber(2); in GenerateField()
/third_party/protobuf/src/google/protobuf/util/internal/
Dprotostream_objectsource.cc78 const google::protobuf::Field* FindFieldByNumber(
170 const google::protobuf::Field* field = FindFieldByNumber(type, tag >> 3); in FindAndVerifyField()
302 FindFieldByNumber(*field_type, 1); in RenderMap()
1107 const google::protobuf::Field* FindFieldByNumber( in FindFieldByNumber() function
/third_party/grpc/third_party/upb/tests/pb/
Dtest_decoder.cc347 upb::FieldDefPtr f = h.message_def().FindFieldByNumber(num); in doreg()
380 upb::FieldDefPtr f = h.message_def().FindFieldByNumber(num); in reg_subm()
389 upb::FieldDefPtr f = h.message_def().FindFieldByNumber(num); in reg_str()
/third_party/protobuf/csharp/src/Google.Protobuf/
DJsonParser.cs289 var keyField = type.FindFieldByNumber(1); in MergeMapField()
290 var valueField = type.FindFieldByNumber(2); in MergeMapField()
/third_party/grpc/third_party/upb/tests/
Dtest_cpp.cc600 upb::FieldDefPtr f = h.message_def().FindFieldByNumber(T::kFieldNumber); in RegisterHandlers()
612 upb::FieldDefPtr f = md.FindFieldByNumber(T::kFieldNumber); in TestHandler()
/third_party/protobuf/
Dlibprotobuf.map77 "google::protobuf::Descriptor::FindFieldByNumber(int) const";

12