Home
last modified time | relevance | path

Searched refs:FindValueByName (Results 1 – 13 of 13) sorted by relevance

/external/protobuf/csharp/src/Google.Protobuf/Reflection/
DEnumDescriptor.cs111 public EnumValueDescriptor FindValueByName(string name) in FindValueByName() method in Google.Protobuf.Reflection.EnumDescriptor
/external/protobuf/csharp/src/Google.Protobuf.Test/Reflection/
DDescriptorsTest.cs194 EnumValueDescriptor value = enumType.FindValueByName("FOREIGN_FOO"); in EnumDescriptor()
200 Assert.Null(enumType.FindValueByName("NO_SUCH_VALUE")); in EnumDescriptor()
/external/protobuf/src/google/protobuf/
Ddescriptor_unittest.cc1274 TEST_F(EnumDescriptorTest, FindValueByName) { in TEST_F() argument
1275 EXPECT_EQ(foo_ , enum_ ->FindValueByName("FOO")); in TEST_F()
1276 EXPECT_EQ(bar_ , enum_ ->FindValueByName("BAR")); in TEST_F()
1277 EXPECT_EQ(foo2_, enum2_->FindValueByName("FOO")); in TEST_F()
1278 EXPECT_EQ(baz2_, enum2_->FindValueByName("BAZ")); in TEST_F()
1280 EXPECT_TRUE(enum_ ->FindValueByName("NO_SUCH_VALUE") == NULL); in TEST_F()
1281 EXPECT_TRUE(enum_ ->FindValueByName("BAZ" ) == NULL); in TEST_F()
1282 EXPECT_TRUE(enum2_->FindValueByName("BAR" ) == NULL); in TEST_F()
3135 const EnumValueDescriptor* enumv = enumd->FindValueByName("VALUE"); in TEST()
6204 EXPECT_TRUE(test_enum->FindValueByName("NO_SUCH_VALUE") == NULL); in TEST_F()
[all …]
Dpreserve_unknown_enum_test.cc254 repeated_field->enum_type()->FindValueByName("BAR"); in TEST()
Ddescriptor.h823 const EnumValueDescriptor* FindValueByName(const string& name) const;
Dtext_format.cc712 enum_value = enum_type->FindValueByName(value); in ConsumeFieldValue()
Dgenerated_message_reflection.cc64 const EnumValueDescriptor* d = descriptor->FindValueByName(name); in ParseNamedEnum()
Ddescriptor.cc1445 EnumDescriptor::FindValueByName(const string& key) const { in FindValueByName() function in google::protobuf::EnumDescriptor
6020 enum_value = enum_type->FindValueByName(value_name); in SetOptionValue()
/external/protobuf/python/google/protobuf/pyext/
Ddescriptor_containers.cc1307 return GetDescriptor(self)->FindValueByName(name); in GetByName()
Dmessage.cc938 enum_descriptor->FindValueByName(string(enum_label, size)); in CheckAndGetInteger()
/external/protobuf/php/ext/google/protobuf/
Dupb.h2205 bool FindValueByName(const char* name, int32_t* num) const;
2884 inline bool EnumDef::FindValueByName(const char* name, int32_t *num) const { in FindValueByName() function
/external/tensorflow/tensorflow/compiler/xla/service/
Dhlo_parser.cc2968 fd->enum_type()->FindValueByName(val); in ParseAttributeAsProtoMessageHelper()
/external/protobuf/ruby/ext/google/protobuf_c/
Dupb.h2693 bool FindValueByName(const char* name, int32_t* num) const;
3512 inline bool EnumDef::FindValueByName(const char* name, int32_t *num) const {