Home
last modified time | relevance | path

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

/third_party/protobuf/python/google/protobuf/
Ddescriptor_pool.py246 def AddEnumDescriptor(self, enum_desc): argument
247 self._AddEnumDescriptor(enum_desc)
250 def _AddEnumDescriptor(self, enum_desc): argument
259 if not isinstance(enum_desc, descriptor.EnumDescriptor):
262 file_name = enum_desc.file.name
263 self._CheckConflictRegister(enum_desc, enum_desc.full_name, file_name)
264 self._enum_descriptors[enum_desc.full_name] = enum_desc
269 if enum_desc.file.package:
270 top_level = (enum_desc.full_name.count('.')
271 - enum_desc.file.package.count('.') == 1)
[all …]
Ddescriptor.py1090 enum_desc = EnumDescriptor(
1096 enum_types[full_name] = enum_desc
1113 enum_desc = None
1126 enum_desc = enum_types[full_type_name]
1132 field_proto.label, None, nested_desc, enum_desc, None, False, None,
/third_party/protobuf/php/src/Google/Protobuf/Internal/
DGPBJsonWire.php199 $enum_desc = $field->getEnumType();
200 if ($enum_desc->getClass() === "Google\Protobuf\NullValue") {
204 $enum_value_desc = $enum_desc->getValueByNumber($value);
DMessage.php1726 $enum_desc = $field->getEnumType();
1727 if ($enum_desc->getClass() === "Google\Protobuf\NullValue") {
1731 $enum_value_desc = $enum_desc->getValueByNumber($value);
/third_party/protobuf/python/google/protobuf/internal/
Ddescriptor_pool_test.py723 enum_desc = msg_desc.enum_types_by_name[name]
724 test.assertEqual(name, enum_desc.name)
726 test.assertEqual(expected_enum_full_name, enum_desc.full_name)
727 test.assertEqual(msg_desc, enum_desc.containing_type)
728 test.assertEqual(file_desc, enum_desc.file)
730 value_desc = enum_desc.values_by_name[value]
734 test.assertEqual(enum_desc, value_desc.type)
779 enum_desc = msg_desc.enum_types_by_name[self.type_name]
789 test.assertEqual(enum_desc.values_by_name[self.default_value].number,
791 test.assertFalse(enum_desc.values_by_name[self.default_value].has_options)
[all …]
/third_party/protobuf/src/google/protobuf/compiler/cpp/
Dcpp_file.cc1138 const EnumDescriptor* enum_desc = p.second; in Print() local
1142 enum_desc, enumname); in Print()
/third_party/protobuf/src/google/protobuf/
Dtext_format.cc2394 const EnumValueDescriptor* enum_desc = in PrintFieldValue() local
2396 if (enum_desc != nullptr) { in PrintFieldValue()
2397 printer->PrintEnum(enum_value, enum_desc->name(), generator); in PrintFieldValue()
Ddescriptor.cc6333 const EnumDescriptor* enum_desc = message->enum_type(i); in DetectMapConflicts() local
6335 seen_types.find(enum_desc->name()); in DetectMapConflicts()