Searched refs:enum_proto (Results 1 – 5 of 5) sorted by relevance
/external/nanopb-c/generator/google/protobuf/ |
D | descriptor_pool.py | 296 def _ConvertEnumDescriptor(self, enum_proto, package=None, file_desc=None, argument 312 enum_name = '.'.join((package, enum_proto.name)) 314 enum_name = enum_proto.name 322 for index, value in enumerate(enum_proto.value)] 323 desc = descriptor.EnumDescriptor(name=enum_proto.name, 329 options=enum_proto.options) 330 scope[enum_proto.name] = desc 488 for enum_proto in enum_protos: 490 enum_name = '.'.join((package, enum_proto.name)) 492 enum_name = enum_proto.name
|
/external/protobuf/python/google/protobuf/ |
D | descriptor_pool.py | 482 def _ConvertEnumDescriptor(self, enum_proto, package=None, file_desc=None, argument 498 enum_name = '.'.join((package, enum_proto.name)) 500 enum_name = enum_proto.name 508 for index, value in enumerate(enum_proto.value)] 509 desc = descriptor.EnumDescriptor(name=enum_proto.name, 515 options=enum_proto.options)
|
D | descriptor.py | 926 for enum_proto in desc_proto.enum_type: 927 full_name = '.'.join(full_message_name + [enum_proto.name]) 929 enum_proto.name, full_name, None, [ 931 for ii, enum_val in enumerate(enum_proto.value)])
|
/external/protobuf/python/google/protobuf/internal/ |
D | descriptor_test.py | 74 enum_proto = message_proto.enum_type.add( 76 enum_proto.value.add(name='FOREIGN_FOO', number=4) 77 enum_proto.value.add(name='FOREIGN_BAR', number=5) 78 enum_proto.value.add(name='FOREIGN_BAZ', number=6) 84 self.my_enum = self.my_message.enum_types_by_name[enum_proto.name]
|
/external/protobuf/src/google/protobuf/ |
D | descriptor_unittest.cc | 157 EnumValueDescriptorProto* AddEnumValue(EnumDescriptorProto* enum_proto, in AddEnumValue() argument 159 EnumValueDescriptorProto* result = enum_proto->add_value(); in AddEnumValue() 1203 EnumDescriptorProto* enum_proto = AddEnum(&foo_file, "TestEnum"); in SetUp() local 1204 AddEnumValue(enum_proto, "FOO", 1); in SetUp() 1205 AddEnumValue(enum_proto, "BAR", 2); in SetUp() 5472 EnumDescriptorProto* enum_proto = file_proto.add_enum_type(); in TEST_F() local 5473 enum_proto->set_name("BarEnum"); in TEST_F() 5474 EnumValueDescriptorProto* enum_value_proto = enum_proto->add_value(); in TEST_F()
|