Home | History | Annotate | Download | only in protobuf

Lines Matching refs:Descriptor

60   This class is the base of all descriptor classes. It provides common options
64 has_options: True if the descriptor has non-default options. Usually it
72 """Initialize the descriptor given its options message and the name of the
79 # Does this descriptor have non-default options?
83 """Sets the descriptor's options
85 This function is used in generated proto2 files to update descriptor
91 # Does this descriptor have non-default options?
95 """Retrieves descriptor options.
98 descriptor.
130 containing_type: if provided, this is a nested descriptor, with this
131 descriptor as parent, otherwise None.
133 file.serialized_pb that describes this descriptor.
135 file.serialized_pb that describes this descriptor.
172 raise Error('Descriptor does not contain serialization.')
175 class Descriptor(_NestedDescriptorBase):
177 """Descriptor for a protocol message type.
179 A Descriptor instance has the following attributes:
186 containing_type: (Descriptor) Reference to the descriptor of the
198 nested_types: (list of Descriptors) Descriptor references
200 nested_types_by_name: (dict str -> Descriptor) Same Descriptor
202 in each Descriptor.
223 file: (FileDescriptor) Reference to file descriptor.
231 of Descriptor fields above.
236 super(Descriptor, self).__init__(
245 # syntax: for f in descriptor.fields: ...
297 super(Descriptor, self).CopyToProto(proto)
306 # TODO(robinson): for this and other *Descriptor classes, we
313 """Descriptor for a single field in a .proto file.
337 containing_type: (Descriptor) Descriptor of the protocol message
338 type that contains this field. Set by the Descriptor constructor
341 descriptor of the EXTENDED message, not the descriptor
344 message_type: (Descriptor) If a composite field, a descriptor
347 descriptor of that enum. Otherwise, this is None.
350 extension_scope: (Descriptor) Only meaningful if is_extension is True.
359 # descriptor.h.
383 # descriptor.h.
420 # descriptor.h.
477 proto_type: the Python proto type (descriptor.FieldDescriptor.TYPE_*)
479 descriptor.FieldDescriptor.CPPTYPE_*, the C++ type.
491 """Descriptor for an enum defined in a .proto file.
505 containing_type: (Descriptor) Descriptor of the immediate containing
507 top level in a .proto file. Set by Descriptor's constructor
509 file: (FileDescriptor) Reference to file descriptor.
548 """Descriptor for a single value within an enum.
572 """Descriptor for a service.
598 """Searches for the specified method, and returns its descriptor."""
616 """Descriptor for a method in a service.
623 input_type: The descriptor of the message that this method accepts.
624 output_type: The descriptor of the message that this method returns.
646 """Descriptor for a file. Mimics the descriptor_pb2.FileDescriptorProto.
689 """Make a protobuf Descriptor given a DescriptorProto protobuf.
693 package: Optional package name for the new message Descriptor (string).
696 A Descriptor for protobuf messages.
712 return Descriptor(desc_proto.name, desc_name, None, None, fields,