webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Public Member Functions | Public Attributes | List of all members
google.protobuf.descriptor._NestedDescriptorBase Class Reference
Inheritance diagram for google.protobuf.descriptor._NestedDescriptorBase:
google.protobuf.descriptor.DescriptorBase google.protobuf.descriptor.DescriptorMetaclass google.protobuf.descriptor.Descriptor google.protobuf.descriptor.EnumDescriptor google.protobuf.descriptor.ServiceDescriptor

Public Member Functions

def __init__ (self, options, options_class_name, name, full_name, file, containing_type, serialized_start=None, serialized_end=None)
 
def GetTopLevelContainingType (self)
 
def CopyToProto (self, proto)
 
- Public Member Functions inherited from google.protobuf.descriptor.DescriptorBase
def __init__ (self, options, options_class_name)
 
def GetOptions (self)
 
- Public Member Functions inherited from google.protobuf.descriptor.DescriptorMetaclass
def __instancecheck__ (cls, obj)
 

Public Attributes

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

Detailed Description

Common class for descriptors that can be nested.

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 
)
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.

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.

◆ GetTopLevelContainingType()

def google.protobuf.descriptor._NestedDescriptorBase.GetTopLevelContainingType (   self)
Returns the root if this is a nested type, or itself if its the root.

Member Data Documentation

◆ 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: