Home
last modified time | relevance | path

Searched refs:enum_desc (Results 1 – 6 of 6) sorted by relevance

/external/protobuf/python/google/protobuf/
Ddescriptor_pool.py150 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
Ddescriptor.py928 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/
Ddescriptor_pool_test.py382 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/
Dproto_to_cpp.cc292 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/
Dtext_format.cc1809 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()
Ddescriptor.cc5486 const EnumDescriptor* enum_desc = message->enum_type(i); in DetectMapConflicts() local
5488 seen_types.find(enum_desc->name()); in DetectMapConflicts()