Lines Matching refs:proto
41 """Descriptors essentially contain exactly the information found in a .proto
141 def CopyToProto(self, proto):
142 """Copies this to the matching proto in descriptor_pb2.
145 proto: An empty proto instance from descriptor_pb2.
153 proto.ParseFromString(self.file.serialized_pb[
256 def CopyToProto(self, proto):
260 proto: An empty descriptor_pb2.DescriptorProto.
263 super(Descriptor, self).CopyToProto(proto)
279 """Descriptor for a single field in a .proto file.
283 name: (str) Name of this field, exactly as it appears in .proto.
287 field textually appears within its message in the .proto file.
288 number: (int) Tag number declared for this field in the .proto file.
403 """Descriptor for an enum defined in a .proto file.
419 top level in a .proto file. Set by Descriptor's constructor
448 def CopyToProto(self, proto):
452 proto: An empty descriptor_pb2.EnumDescriptorProto.
455 super(EnumDescriptor, self).CopyToProto(proto)
464 value appears textually within its enum in the .proto file.
489 definition appears withing the .proto file.
516 def CopyToProto(self, proto):
520 proto: An empty descriptor_pb2.ServiceDescriptorProto.
523 super(ServiceDescriptor, self).CopyToProto(proto)
574 def CopyToProto(self, proto):
578 proto: An empty descriptor_pb2.FileDescriptorProto.
580 proto.ParseFromString(self.serialized_pb)