Searched refs:enum_desc (Results 1 – 6 of 6) sorted by relevance
/external/protobuf/python/google/protobuf/ |
D | descriptor_pool.py | 150 def AddEnumDescriptor(self, enum_desc): argument 159 if not isinstance(enum_desc, descriptor.EnumDescriptor): 162 self._enum_descriptors[enum_desc.full_name] = enum_desc 163 self.AddFileDescriptor(enum_desc.file) 343 def _AddEnumDescriptor(enum_desc): argument 344 self._enum_descriptors[enum_desc.full_name] = enum_desc
|
D | descriptor.py | 928 enum_desc = EnumDescriptor( 932 enum_types[full_name] = enum_desc 949 enum_desc = None 958 enum_desc = enum_types[full_type_name] 964 field_proto.label, None, nested_desc, enum_desc, None, False, None,
|
/external/protobuf/python/google/protobuf/internal/ |
D | descriptor_pool_test.py | 382 enum_desc = msg_desc.enum_types_by_name[name] 383 test.assertEqual(name, enum_desc.name) 385 test.assertEqual(expected_enum_full_name, enum_desc.full_name) 386 test.assertEqual(msg_desc, enum_desc.containing_type) 387 test.assertEqual(file_desc, enum_desc.file) 389 value_desc = enum_desc.values_by_name[value] 393 test.assertEqual(enum_desc, value_desc.type) 438 enum_desc = msg_desc.enum_types_by_name[self.type_name] 448 test.assertEqual(enum_desc.values_by_name[self.default_value].number, 451 test.assertEqual(enum_desc, field_desc.enum_type)
|
/external/perfetto/tools/proto_to_cpp/ |
D | proto_to_cpp.cc | 292 const EnumDescriptor* enum_desc = field->enum_type(); in GenHeader() local 293 p->Print("enum $n$ {\n", "n", enum_desc->name()); in GenHeader() 294 for (int e = 0; e < enum_desc->value_count(); e++) { in GenHeader() 295 const EnumValueDescriptor* value = enum_desc->value(e); in GenHeader()
|
/external/protobuf/src/google/protobuf/ |
D | text_format.cc | 1809 const EnumValueDescriptor* enum_desc = in PrintFieldValue() local 1811 if (enum_desc != NULL) { in PrintFieldValue() 1812 generator.Print(printer->PrintEnum(enum_value, enum_desc->name())); in PrintFieldValue()
|
D | descriptor.cc | 5486 const EnumDescriptor* enum_desc = message->enum_type(i); in DetectMapConflicts() local 5488 seen_types.find(enum_desc->name()); in DetectMapConflicts()
|