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

Constructor & Destructor Documentation

◆ __init__()

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 descriptor.py.

Member Function Documentation

◆ CopyToProto()

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.EnumDescriptor, and google.protobuf.descriptor.Descriptor.

Definition at line 204 of file descriptor.py.

Member Data Documentation

◆ _serialized_end

google.protobuf.descriptor._NestedDescriptorBase._serialized_end
private

Definition at line 200 of file descriptor.py.

◆ _serialized_start

google.protobuf.descriptor._NestedDescriptorBase._serialized_start
private

Definition at line 199 of file descriptor.py.

◆ containing_type

google.protobuf.descriptor._NestedDescriptorBase.containing_type

Definition at line 197 of file descriptor.py.

◆ file

google.protobuf.descriptor._NestedDescriptorBase.file

Definition at line 196 of file descriptor.py.

◆ full_name

google.protobuf.descriptor._NestedDescriptorBase.full_name

Definition at line 195 of file descriptor.py.

◆ name

google.protobuf.descriptor._NestedDescriptorBase.name

Definition at line 192 of file descriptor.py.


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


libaditof
Author(s):
autogenerated on Wed May 21 2025 02:07:09