Public Member Functions | Public Attributes | Private Attributes | List of all members
google.protobuf.descriptor._NestedDescriptorBase Class Reference
Inheritance diagram for google.protobuf.descriptor._NestedDescriptorBase:
Inheritance graph
[legend]

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)
 
- Public Member Functions inherited from google.protobuf.descriptor.DescriptorBase
def __init__ (self, options, serialized_options, options_class_name)
 
def __init__ (self, options, serialized_options, options_class_name)
 
def GetOptions (self)
 
def GetOptions (self)
 
- Public Member Functions inherited from google.protobuf.descriptor.DescriptorMetaclass
def __instancecheck__ (cls, obj)
 
def __instancecheck__ (cls, obj)
 

Public Attributes

 containing_type
 
 file
 
 full_name
 
 name
 
- Public Attributes inherited from google.protobuf.descriptor.DescriptorBase
 has_options
 

Private Attributes

 _serialized_end
 
 _serialized_start
 

Detailed Description

Common class for descriptors that can be nested.

Definition at line 165 of file bloaty/third_party/protobuf/python/google/protobuf/descriptor.py.

Constructor & Destructor Documentation

◆ __init__() [1/2]

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.

◆ __init__() [2/2]

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.

Member Function Documentation

◆ CopyToProto() [1/2]

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.

◆ CopyToProto() [2/2]

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.

Member Data Documentation

◆ _serialized_end

google.protobuf.descriptor._NestedDescriptorBase._serialized_end
private

◆ _serialized_start

google.protobuf.descriptor._NestedDescriptorBase._serialized_start
private

◆ containing_type

google.protobuf.descriptor._NestedDescriptorBase.containing_type

◆ file

google.protobuf.descriptor._NestedDescriptorBase.file

◆ full_name

google.protobuf.descriptor._NestedDescriptorBase.full_name

◆ name

google.protobuf.descriptor._NestedDescriptorBase.name

The documentation for this class was generated from the following file:


grpc
Author(s):
autogenerated on Fri May 16 2025 03:03:23