Lines Matching defs: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.
231 of Descriptor fields above.
236 super(Descriptor, self).__init__(
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
344 message_type: (Descriptor) If a composite field, a descriptor
350 extension_scope: (Descriptor) Only meaningful if is_extension is True.
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
548 """Descriptor for a single value within an enum.
572 """Descriptor for a service.
616 """Descriptor for a method in a service.
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,