Searched refs:enum_desc (Results 1 – 9 of 9) sorted by relevance
/external/perfetto/src/protozero/protoc_plugin/ |
D | cppgen_plugin.cc | 211 &file](const EnumDescriptor* enum_desc) { in Generate() argument 212 if (all_enums_seen.count(enum_desc)) in Generate() 214 all_enums_seen.insert(enum_desc); in Generate() 215 all_enums.push_back(enum_desc); in Generate() 216 if (enum_desc->file() == file) in Generate() 217 local_enums.push_back(enum_desc); in Generate() 476 void CppObjGenerator::GenEnum(const EnumDescriptor* enum_desc, in GenEnum() argument 478 std::string full_name = GetFullName(enum_desc); in GenEnum() 492 std::string prefix = enum_desc->containing_type() ? full_name + "_" : ""; in GenEnum() 494 for (int e = 0; e < enum_desc->value_count(); e++) { in GenEnum() [all …]
|
/external/protobuf/python/google/protobuf/ |
D | descriptor_pool.py | 220 def AddEnumDescriptor(self, enum_desc): argument 229 if not isinstance(enum_desc, descriptor.EnumDescriptor): 232 file_name = enum_desc.file.name 233 self._CheckConflictRegister(enum_desc, enum_desc.full_name, file_name) 234 self._enum_descriptors[enum_desc.full_name] = enum_desc 239 if enum_desc.file.package: 240 top_level = (enum_desc.full_name.count('.') 241 - enum_desc.file.package.count('.') == 1) 243 top_level = enum_desc.full_name.count('.') == 0 245 file_name = enum_desc.file.name [all …]
|
D | descriptor.py | 1029 enum_desc = EnumDescriptor( 1033 enum_types[full_name] = enum_desc 1050 enum_desc = None 1063 enum_desc = enum_types[full_type_name] 1069 field_proto.label, None, nested_desc, enum_desc, None, False, None,
|
/external/protobuf/php/src/Google/Protobuf/Internal/ |
D | GPBJsonWire.php | 199 $enum_desc = $field->getEnumType(); 200 if ($enum_desc->getClass() === "Google\Protobuf\NullValue") { 204 $enum_value_desc = $enum_desc->getValueByNumber($value);
|
D | Message.php | 1651 $enum_desc = $field->getEnumType(); 1652 if ($enum_desc->getClass() === "Google\Protobuf\NullValue") { 1656 $enum_value_desc = $enum_desc->getValueByNumber($value);
|
/external/protobuf/python/google/protobuf/internal/ |
D | descriptor_pool_test.py | 728 enum_desc = msg_desc.enum_types_by_name[name] 729 test.assertEqual(name, enum_desc.name) 731 test.assertEqual(expected_enum_full_name, enum_desc.full_name) 732 test.assertEqual(msg_desc, enum_desc.containing_type) 733 test.assertEqual(file_desc, enum_desc.file) 735 value_desc = enum_desc.values_by_name[value] 739 test.assertEqual(enum_desc, value_desc.type) 784 enum_desc = msg_desc.enum_types_by_name[self.type_name] 794 test.assertEqual(enum_desc.values_by_name[self.default_value].number, 796 test.assertFalse(enum_desc.values_by_name[self.default_value].has_options) [all …]
|
/external/protobuf/src/google/protobuf/compiler/cpp/ |
D | cpp_file.cc | 1090 const EnumDescriptor* enum_desc = p.second; in Print() local 1094 enum_desc, enumname); in Print()
|
/external/protobuf/src/google/protobuf/ |
D | text_format.cc | 2362 const EnumValueDescriptor* enum_desc = in PrintFieldValue() local 2364 if (enum_desc != nullptr) { in PrintFieldValue() 2365 printer->PrintEnum(enum_value, enum_desc->name(), generator); in PrintFieldValue()
|
D | descriptor.cc | 6198 const EnumDescriptor* enum_desc = message->enum_type(i); in DetectMapConflicts() local 6200 seen_types.find(enum_desc->name()); in DetectMapConflicts()
|