Home
last modified time | relevance | path

Searched refs:FindValueByName (Results 1 - 12 of 12) sorted by relevance

/third_party/protobuf/csharp/src/Google.Protobuf.Test/Reflection/
H A DDescriptorDeclarationTest.cs146 var value = enumDescriptor.FindValueByName("ZERO_VALUE"); in EnumValueComments()
156 var value = nested.FindValueByName("ZERO_VALUE"); in NestedEnumValueComments()
H A DDescriptorsTest.cs310 EnumValueDescriptor value = enumType.FindValueByName("FOREIGN_FOO"); in EnumDescriptor()
316 Assert.Null(enumType.FindValueByName("NO_SUCH_VALUE")); in EnumDescriptor()
/third_party/protobuf/csharp/src/Google.Protobuf/Reflection/
H A DEnumDescriptor.cs123 public EnumValueDescriptor FindValueByName(string name) in FindValueByName() method in Google.Protobuf.Reflection.EnumDescriptor
/third_party/protobuf/csharp/compatibility_tests/v3.0.0/src/Google.Protobuf.Test/Reflection/
H A DDescriptorsTest.cs194 EnumValueDescriptor value = enumType.FindValueByName("FOREIGN_FOO"); in EnumDescriptor()
200 Assert.Null(enumType.FindValueByName("NO_SUCH_VALUE")); in EnumDescriptor()
/third_party/protobuf/src/google/protobuf/
H A Dpreserve_unknown_enum_test.cc247 repeated_field->enum_type()->FindValueByName("BAR"); in TEST()
H A Ddescriptor_unittest.cc1334 // TestEnum2 is primarily here to test FindValueByName and friends. in SetUp()
1413 TEST_F(EnumDescriptorTest, FindValueByName) { in TEST_F()
1414 EXPECT_EQ(foo_, enum_->FindValueByName("FOO")); in TEST_F()
1415 EXPECT_EQ(bar_, enum_->FindValueByName("BAR")); in TEST_F()
1416 EXPECT_EQ(foo2_, enum2_->FindValueByName("FOO")); in TEST_F()
1417 EXPECT_EQ(baz2_, enum2_->FindValueByName("BAZ")); in TEST_F()
1419 EXPECT_TRUE(enum_->FindValueByName("NO_SUCH_VALUE") == nullptr); in TEST_F()
1420 EXPECT_TRUE(enum_->FindValueByName("BAZ") == nullptr); in TEST_F()
1421 EXPECT_TRUE(enum2_->FindValueByName("BAR") == nullptr); in TEST_F()
3447 const EnumValueDescriptor* enumv = enumd->FindValueByName("VALU in TEST()
[all...]
H A Ddescriptor.h1033 const EnumValueDescriptor* FindValueByName(ConstStringParam name) const;
1163 // for its type, then use EnumDescriptor::FindValueByName() or
H A Dgenerated_message_reflection.cc87 const EnumValueDescriptor* d = descriptor->FindValueByName(name); in ParseNamedEnum()
H A Dtext_format.cc786 enum_value = enum_type->FindValueByName(value); in ConsumeFieldValue()
H A Ddescriptor.cc1721 const EnumValueDescriptor* EnumDescriptor::FindValueByName( in FindValueByName() function in google::protobuf::EnumDescriptor
5740 // We can't just use field->enum_type()->FindValueByName() here in CrossLinkField()
7041 enum_value = enum_type->FindValueByName(value_name); in SetOptionValue()
/third_party/protobuf/python/google/protobuf/pyext/
H A Ddescriptor_containers.cc1337 return GetDescriptor(self)->FindValueByName(name); in GetByName()
H A Dmessage.cc987 enum_descriptor->FindValueByName(StringParam(enum_label, size)); in GetIntegerEnumValue()

Completed in 37 milliseconds