Home
last modified time | relevance | path

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

/external/perfetto/src/protozero/protoc_plugin/
Dcppgen_plugin.cc215 &file](const EnumDescriptor* enum_desc) { in Generate() argument
216 if (all_enums_seen.count(enum_desc)) in Generate()
218 all_enums_seen.insert(enum_desc); in Generate()
219 all_enums.push_back(enum_desc); in Generate()
220 if (enum_desc->file() == file) in Generate()
221 local_enums.push_back(enum_desc); in Generate()
482 void CppObjGenerator::GenEnum(const EnumDescriptor* enum_desc, in GenEnum() argument
484 std::string full_name = GetFullName(enum_desc); in GenEnum()
498 std::string prefix = enum_desc->containing_type() ? full_name + "_" : ""; in GenEnum()
500 for (int e = 0; e < enum_desc->value_count(); e++) { in GenEnum()
[all …]
/external/cronet/third_party/protobuf/python/google/protobuf/
Ddescriptor_pool.py251 def AddEnumDescriptor(self, enum_desc): argument
252 self._AddEnumDescriptor(enum_desc)
255 def _AddEnumDescriptor(self, enum_desc): argument
264 if not isinstance(enum_desc, descriptor.EnumDescriptor):
267 file_name = enum_desc.file.name
268 self._CheckConflictRegister(enum_desc, enum_desc.full_name, file_name)
269 self._enum_descriptors[enum_desc.full_name] = enum_desc
274 if enum_desc.file.package:
275 top_level = (enum_desc.full_name.count('.')
276 - enum_desc.file.package.count('.') == 1)
[all …]
Dproto_api.h92 PyObject* enum_desc) const = 0;
Ddescriptor.py1173 enum_desc = EnumDescriptor(
1179 enum_types[full_name] = enum_desc
1196 enum_desc = None
1209 enum_desc = enum_types[full_type_name]
1215 field_proto.label, None, nested_desc, enum_desc, None, False, None,
/external/protobuf/python/google/protobuf/
Ddescriptor_pool.py251 def AddEnumDescriptor(self, enum_desc): argument
252 self._AddEnumDescriptor(enum_desc)
255 def _AddEnumDescriptor(self, enum_desc): argument
264 if not isinstance(enum_desc, descriptor.EnumDescriptor):
267 file_name = enum_desc.file.name
268 self._CheckConflictRegister(enum_desc, enum_desc.full_name, file_name)
269 self._enum_descriptors[enum_desc.full_name] = enum_desc
274 if enum_desc.file.package:
275 top_level = (enum_desc.full_name.count('.')
276 - enum_desc.file.package.count('.') == 1)
[all …]
Dproto_api.h92 PyObject* enum_desc) const = 0;
Ddescriptor.py1177 enum_desc = EnumDescriptor(
1183 enum_types[full_name] = enum_desc
1200 enum_desc = None
1213 enum_desc = enum_types[full_type_name]
1219 field_proto.label, None, nested_desc, enum_desc, None, False, None,
/external/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.php1738 $enum_desc = $field->getEnumType();
1739 if ($enum_desc->getClass() === "Google\Protobuf\NullValue") {
1743 $enum_value_desc = $enum_desc->getValueByNumber($value);
/external/cronet/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.php1738 $enum_desc = $field->getEnumType();
1739 if ($enum_desc->getClass() === "Google\Protobuf\NullValue") {
1743 $enum_value_desc = $enum_desc->getValueByNumber($value);
/external/protobuf/python/google/protobuf/pyext/
Dmessage_module.cc56 PyObject* enum_desc) const override { in EnumDescriptor_AsDescriptor()
57 return google::protobuf::python::PyEnumDescriptor_AsDescriptor(enum_desc); in EnumDescriptor_AsDescriptor()
/external/cronet/third_party/protobuf/python/google/protobuf/pyext/
Dmessage_module.cc56 PyObject* enum_desc) const override { in EnumDescriptor_AsDescriptor()
57 return google::protobuf::python::PyEnumDescriptor_AsDescriptor(enum_desc); in EnumDescriptor_AsDescriptor()
/external/cronet/third_party/protobuf/python/google/protobuf/internal/
Ddescriptor_pool_test.py733 enum_desc = msg_desc.enum_types_by_name[name]
734 test.assertEqual(name, enum_desc.name)
736 test.assertEqual(expected_enum_full_name, enum_desc.full_name)
737 test.assertEqual(msg_desc, enum_desc.containing_type)
738 test.assertEqual(file_desc, enum_desc.file)
740 value_desc = enum_desc.values_by_name[value]
744 test.assertEqual(enum_desc, value_desc.type)
789 enum_desc = msg_desc.enum_types_by_name[self.type_name]
799 test.assertEqual(enum_desc.values_by_name[self.default_value].number,
801 test.assertFalse(enum_desc.values_by_name[self.default_value].has_options)
[all …]
/external/protobuf/python/google/protobuf/internal/
Ddescriptor_pool_test.py733 enum_desc = msg_desc.enum_types_by_name[name]
734 test.assertEqual(name, enum_desc.name)
736 test.assertEqual(expected_enum_full_name, enum_desc.full_name)
737 test.assertEqual(msg_desc, enum_desc.containing_type)
738 test.assertEqual(file_desc, enum_desc.file)
740 value_desc = enum_desc.values_by_name[value]
744 test.assertEqual(enum_desc, value_desc.type)
789 enum_desc = msg_desc.enum_types_by_name[self.type_name]
799 test.assertEqual(enum_desc.values_by_name[self.default_value].number,
801 test.assertFalse(enum_desc.values_by_name[self.default_value].has_options)
[all …]
/external/cronet/third_party/protobuf/ruby/lib/google/protobuf/
Ddescriptor_dsl.rb137 enum_desc = @pool.lookup(type_name)
138 if enum_desc.is_a?(Google::Protobuf::EnumDescriptor)
140 name = enum_desc.lookup_value(as_int)
/external/protobuf/ruby/lib/google/protobuf/
Ddescriptor_dsl.rb137 enum_desc = @pool.lookup(type_name)
138 if enum_desc.is_a?(Google::Protobuf::EnumDescriptor)
140 name = enum_desc.lookup_value(as_int)
/external/perfetto/src/trace_processor/metrics/
Dmetrics.cc150 const auto& enum_desc = pool_->descriptors()[*opt_enum_descriptor_idx]; in AppendLong() local
151 auto opt_enum_str = enum_desc.FindEnumString(static_cast<int32_t>(value)); in AppendLong()
261 const auto& enum_desc = pool_->descriptors()[*opt_enum_descriptor_idx]; in AppendString() local
263 auto opt_enum_value = enum_desc.FindEnumValue(enum_str); in AppendString()
/external/cronet/third_party/protobuf/src/google/protobuf/compiler/cpp/
Dcpp_file.cc962 const EnumDescriptor* enum_desc = p.second; in Print() local
966 enum_desc, enumname); in Print()
/external/protobuf/src/google/protobuf/compiler/cpp/
Dfile.cc983 const EnumDescriptor* enum_desc = p.second; in Print() local
987 enum_desc, enumname); in Print()
/external/protobuf/src/google/protobuf/
Dtext_format.cc2581 const EnumValueDescriptor* enum_desc = in PrintFieldValue() local
2583 if (enum_desc != nullptr) { in PrintFieldValue()
2584 printer->PrintEnum(enum_value, enum_desc->name(), generator); in PrintFieldValue()
Ddescriptor.cc7208 const EnumDescriptor* enum_desc = message->enum_type(i); in DetectMapConflicts() local
7210 seen_types.find(enum_desc->name()); in DetectMapConflicts()
/external/cronet/third_party/protobuf/src/google/protobuf/
Dtext_format.cc2577 const EnumValueDescriptor* enum_desc = in PrintFieldValue() local
2579 if (enum_desc != nullptr) { in PrintFieldValue()
2580 printer->PrintEnum(enum_value, enum_desc->name(), generator); in PrintFieldValue()
Ddescriptor.cc7075 const EnumDescriptor* enum_desc = message->enum_type(i); in DetectMapConflicts() local
7077 seen_types.find(enum_desc->name()); in DetectMapConflicts()