Home
last modified time | relevance | path

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

/external/protobuf/python/google/protobuf/
Ddescriptor_pool.py384 for desc_proto in file_proto.message_type:
385 self._SetAllFieldTypes(file_proto.package, desc_proto, scope)
392 for desc_proto in file_proto.message_type:
394 desc_proto_prefix, desc_proto.name, scope)
395 file_descriptor.message_types_by_name[desc_proto.name] = desc
402 def _ConvertMessageDescriptor(self, desc_proto, package=None, file_desc=None, argument
417 desc_name = '.'.join((package, desc_proto.name))
419 desc_name = desc_proto.name
432 for nested in desc_proto.nested_type]
435 for enum in desc_proto.enum_type]
[all …]
Ddescriptor_database.py124 def _ExtractSymbols(desc_proto, package): argument
135 message_name = '.'.join((package, desc_proto.name))
137 for nested_type in desc_proto.nested_type:
140 for enum_type in desc_proto.enum_type:
Dproto_builder.py122 desc_proto = file_proto.message_type.add()
123 desc_proto.name = name
125 field_proto = desc_proto.field.add()
Ddescriptor.py875 def MakeDescriptor(desc_proto, package='', build_file_if_cpp=True, argument
900 file_descriptor_proto.message_type.add().MergeFrom(desc_proto)
919 return result.message_types_by_name[desc_proto.name]
921 full_message_name = [desc_proto.name]
926 for enum_proto in desc_proto.enum_type:
936 for nested_proto in desc_proto.nested_type:
947 for field_proto in desc_proto.field:
969 return Descriptor(desc_proto.name, desc_name, None, None, fields,
971 options=desc_proto.options)
/external/protobuf/python/google/protobuf/internal/
Dreflection_test.py1050 desc_proto = descriptor_pb2.DescriptorProto()
1051 desc_proto.name = 'Car'
1053 AddDescriptorField(desc_proto, 'name', fdp.TYPE_STRING)
1054 AddDescriptorField(desc_proto, 'year', fdp.TYPE_INT64)
1055 AddDescriptorField(desc_proto, 'automatic', fdp.TYPE_BOOL)
1056 AddDescriptorField(desc_proto, 'price', fdp.TYPE_DOUBLE)
1059 new_field = desc_proto.field.add()
1065 desc = descriptor.MakeDescriptor(desc_proto)