Home
last modified time | relevance | path

Searched refs:desc_proto (Results 1 – 7 of 7) sorted by relevance

/external/protobuf/python/google/protobuf/
Ddescriptor_database.py161 def _ExtractSymbols(desc_proto, package): argument
171 message_name = package + '.' + desc_proto.name if package else desc_proto.name
173 for nested_type in desc_proto.nested_type:
176 for enum_type in desc_proto.enum_type:
Ddescriptor_pool.py751 for desc_proto in file_proto.message_type:
752 self._SetAllFieldTypes(file_proto.package, desc_proto, scope)
759 for desc_proto in file_proto.message_type:
761 desc_proto_prefix, desc_proto.name, scope)
762 file_descriptor.message_types_by_name[desc_proto.name] = desc
774 def _ConvertMessageDescriptor(self, desc_proto, package=None, file_desc=None, argument
790 desc_name = '.'.join((package, desc_proto.name))
792 desc_name = desc_proto.name
805 for nested in desc_proto.nested_type]
809 for enum in desc_proto.enum_type]
[all …]
Dproto_builder.py122 desc_proto = file_proto.message_type.add()
123 desc_proto.name = name
125 field_proto = desc_proto.field.add()
Ddescriptor.py976 def MakeDescriptor(desc_proto, package='', build_file_if_cpp=True, argument
1001 file_descriptor_proto.message_type.add().MergeFrom(desc_proto)
1020 return result.message_types_by_name[desc_proto.name]
1022 full_message_name = [desc_proto.name]
1027 for enum_proto in desc_proto.enum_type:
1037 for nested_proto in desc_proto.nested_type:
1048 for field_proto in desc_proto.field:
1075 return Descriptor(desc_proto.name, desc_name, None, None, fields,
1077 options=_OptionsOrNone(desc_proto))
/external/perfetto/src/traced/probes/power/
Dandroid_power_data_source.cc302 auto* desc_proto = descriptor_proto->add_energy_consumers(); in WriteEnergyEstimationBreakdown() local
303 desc_proto->set_energy_consumer_id(consumer.energy_consumer_id); in WriteEnergyEstimationBreakdown()
304 desc_proto->set_ordinal(consumer.ordinal); in WriteEnergyEstimationBreakdown()
305 desc_proto->set_type(consumer.type); in WriteEnergyEstimationBreakdown()
306 desc_proto->set_name(consumer.name); in WriteEnergyEstimationBreakdown()
/external/protobuf/src/google/protobuf/
Ddescriptor_database.cc49 void RecordMessageNames(const DescriptorProto& desc_proto, in RecordMessageNames() argument
52 GOOGLE_CHECK(desc_proto.has_name()); in RecordMessageNames()
54 ? desc_proto.name() in RecordMessageNames()
55 : StrCat(prefix, ".", desc_proto.name()); in RecordMessageNames()
58 for (const auto& d : desc_proto.nested_type()) { in RecordMessageNames()
/external/protobuf/python/google/protobuf/internal/
Dreflection_test.py1156 desc_proto = descriptor_pb2.DescriptorProto()
1157 desc_proto.name = 'Car'
1159 AddDescriptorField(desc_proto, 'name', fdp.TYPE_STRING)
1160 AddDescriptorField(desc_proto, 'year', fdp.TYPE_INT64)
1161 AddDescriptorField(desc_proto, 'automatic', fdp.TYPE_BOOL)
1162 AddDescriptorField(desc_proto, 'price', fdp.TYPE_DOUBLE)
1165 new_field = desc_proto.field.add()
1171 desc = descriptor.MakeDescriptor(desc_proto)