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

Public Member Functions

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

 has_options
 

Detailed Description

Descriptors base class.

This class is the base of all descriptor classes. It provides common options
related functionality.

Attributes:
  has_options:  True if the descriptor has non-default options.  Usually it
      is not necessary to read this -- just call GetOptions() which will
      happily return the default instance.  However, it's sometimes useful
      for efficiency, and also useful inside the protobuf implementation to
      avoid some bootstrapping issues.

Constructor & Destructor Documentation

◆ __init__()

def google.protobuf.descriptor.DescriptorBase.__init__ (   self,
  options,
  options_class_name 
)
Initialize the descriptor given its options message and the name of the
class of the options message. The name of the class is required in case
the options message is None and has to be created.

Member Function Documentation

◆ GetOptions()

def google.protobuf.descriptor.DescriptorBase.GetOptions (   self)
Retrieves descriptor options.

This method returns the options set or creates the default options for the
descriptor.

Member Data Documentation

◆ has_options

google.protobuf.descriptor.DescriptorBase.has_options

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