Public Member Functions | |
def | __init__ (self, options, options_class_name, name, full_name, file, containing_type, serialized_start=None, serialized_end=None, serialized_options=None) |
def | __init__ (self, options, options_class_name, name, full_name, file, containing_type, serialized_start=None, serialized_end=None, serialized_options=None) |
def | CopyToProto (self, proto) |
def | CopyToProto (self, proto) |
![]() | |
def | __init__ (self, options, serialized_options, options_class_name) |
def | __init__ (self, options, serialized_options, options_class_name) |
def | GetOptions (self) |
def | GetOptions (self) |
![]() | |
def | __instancecheck__ (cls, obj) |
def | __instancecheck__ (cls, obj) |
Public Attributes | |
containing_type | |
file | |
full_name | |
name | |
![]() | |
has_options | |
Private Attributes | |
_serialized_end | |
_serialized_start | |
Common class for descriptors that can be nested.
Definition at line 165 of file bloaty/third_party/protobuf/python/google/protobuf/descriptor.py.
def google.protobuf.descriptor._NestedDescriptorBase.__init__ | ( | self, | |
options, | |||
options_class_name, | |||
name, | |||
full_name, | |||
file, | |||
containing_type, | |||
serialized_start = None , |
|||
serialized_end = None , |
|||
serialized_options = None |
|||
) |
Constructor. Args: options: Protocol message options or None to use default message options. options_class_name: (str) The class name of the above options. name: (str) Name of this protocol message type. full_name: (str) Fully-qualified name of this protocol message type, which will include protocol "package" name and the name of any enclosing types. file: (FileDescriptor) Reference to file info. containing_type: if provided, this is a nested descriptor, with this descriptor as parent, otherwise None. serialized_start: The start index (inclusive) in block in the file.serialized_pb that describes this descriptor. serialized_end: The end index (exclusive) in block in the file.serialized_pb that describes this descriptor. serialized_options: Protocol message serilized options or None.
Reimplemented in google.protobuf.descriptor.ServiceDescriptor.
Definition at line 168 of file bloaty/third_party/protobuf/python/google/protobuf/descriptor.py.
def google.protobuf.descriptor._NestedDescriptorBase.__init__ | ( | self, | |
options, | |||
options_class_name, | |||
name, | |||
full_name, | |||
file, | |||
containing_type, | |||
serialized_start = None , |
|||
serialized_end = None , |
|||
serialized_options = None |
|||
) |
Constructor. Args: options: Protocol message options or None to use default message options. options_class_name (str): The class name of the above options. name (str): Name of this protocol message type. full_name (str): Fully-qualified name of this protocol message type, which will include protocol "package" name and the name of any enclosing types. file (FileDescriptor): Reference to file info. containing_type: if provided, this is a nested descriptor, with this descriptor as parent, otherwise None. serialized_start: The start index (inclusive) in block in the file.serialized_pb that describes this descriptor. serialized_end: The end index (exclusive) in block in the file.serialized_pb that describes this descriptor. serialized_options: Protocol message serialized options or None.
Reimplemented in google.protobuf.descriptor.ServiceDescriptor.
Definition at line 187 of file protobuf/python/google/protobuf/descriptor.py.
def google.protobuf.descriptor._NestedDescriptorBase.CopyToProto | ( | self, | |
proto | |||
) |
Copies this to the matching proto in descriptor_pb2. Args: proto: An empty proto instance from descriptor_pb2. Raises: Error: If self couldnt be serialized, due to to few constructor arguments.
Reimplemented in google.protobuf.descriptor.ServiceDescriptor, google.protobuf.descriptor.ServiceDescriptor, google.protobuf.descriptor.EnumDescriptor, google.protobuf.descriptor.EnumDescriptor, google.protobuf.descriptor.Descriptor, and google.protobuf.descriptor.Descriptor.
Definition at line 204 of file bloaty/third_party/protobuf/python/google/protobuf/descriptor.py.
def google.protobuf.descriptor._NestedDescriptorBase.CopyToProto | ( | self, | |
proto | |||
) |
Copies this to the matching proto in descriptor_pb2. Args: proto: An empty proto instance from descriptor_pb2. Raises: Error: If self couldn't be serialized, due to to few constructor arguments.
Reimplemented in google.protobuf.descriptor.ServiceDescriptor, google.protobuf.descriptor.ServiceDescriptor, google.protobuf.descriptor.EnumDescriptor, google.protobuf.descriptor.EnumDescriptor, google.protobuf.descriptor.Descriptor, and google.protobuf.descriptor.Descriptor.
Definition at line 222 of file protobuf/python/google/protobuf/descriptor.py.
|
private |
Definition at line 200 of file bloaty/third_party/protobuf/python/google/protobuf/descriptor.py.
|
private |
Definition at line 199 of file bloaty/third_party/protobuf/python/google/protobuf/descriptor.py.
google.protobuf.descriptor._NestedDescriptorBase.containing_type |
Definition at line 197 of file bloaty/third_party/protobuf/python/google/protobuf/descriptor.py.
google.protobuf.descriptor._NestedDescriptorBase.file |
Definition at line 196 of file bloaty/third_party/protobuf/python/google/protobuf/descriptor.py.
google.protobuf.descriptor._NestedDescriptorBase.full_name |
Definition at line 195 of file bloaty/third_party/protobuf/python/google/protobuf/descriptor.py.
google.protobuf.descriptor._NestedDescriptorBase.name |
Definition at line 192 of file bloaty/third_party/protobuf/python/google/protobuf/descriptor.py.