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

Public Member Functions

def __init__ (self, name, full_name, index, containing_type, fields, options=None, serialized_options=None)
 
def __init__ (self, name, full_name, index, containing_type, fields, options=None, serialized_options=None, create_key=None)
 
def __new__ (cls, name, full_name, index, containing_type, fields, options=None, serialized_options=None)
 
def __new__ (cls, name, full_name, index, containing_type, fields, options=None, serialized_options=None, create_key=None)
 
- 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
 
 fields
 
 full_name
 
 index
 
 name
 
- Public Attributes inherited from google.protobuf.descriptor.DescriptorBase
 has_options
 

Static Private Attributes

 _C_DESCRIPTOR_CLASS = _message.OneofDescriptor
 

Detailed Description

Descriptor for a oneof field.

  name: (str) Name of the oneof field.
  full_name: (str) Full name of the oneof field, including package name.
  index: (int) 0-based index giving the order of the oneof field inside
    its containing type.
  containing_type: (Descriptor) Descriptor of the protocol message
    type that contains this field.  Set by the Descriptor constructor
    if we're passed into one.
  fields: (list of FieldDescriptor) The list of field descriptors this
    oneof can contain.
Descriptor for a oneof field.

Attributes:
  name (str): Name of the oneof field.
  full_name (str): Full name of the oneof field, including package name.
  index (int): 0-based index giving the order of the oneof field inside
    its containing type.
  containing_type (Descriptor): :class:`Descriptor` of the protocol message
    type that contains this field.  Set by the :class:`Descriptor` constructor
    if we're passed into one.
  fields (list[FieldDescriptor]): The list of field descriptors this
    oneof can contain.

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

Constructor & Destructor Documentation

◆ __init__() [1/2]

def google.protobuf.descriptor.OneofDescriptor.__init__ (   self,
  name,
  full_name,
  index,
  containing_type,
  fields,
  options = None,
  serialized_options = None 
)
Arguments are as described in the attribute description above.

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

◆ __init__() [2/2]

def google.protobuf.descriptor.OneofDescriptor.__init__ (   self,
  name,
  full_name,
  index,
  containing_type,
  fields,
  options = None,
  serialized_options = None,
  create_key = None 
)
Arguments are as described in the attribute description above.

Definition at line 777 of file protobuf/python/google/protobuf/descriptor.py.

Member Function Documentation

◆ __new__() [1/2]

def google.protobuf.descriptor.OneofDescriptor.__new__ (   cls,
  name,
  full_name,
  index,
  containing_type,
  fields,
  options = None,
  serialized_options = None 
)

◆ __new__() [2/2]

def google.protobuf.descriptor.OneofDescriptor.__new__ (   cls,
  name,
  full_name,
  index,
  containing_type,
  fields,
  options = None,
  serialized_options = None,
  create_key = None 
)

Member Data Documentation

◆ _C_DESCRIPTOR_CLASS

google.protobuf.descriptor.OneofDescriptor._C_DESCRIPTOR_CLASS = _message.OneofDescriptor
staticprivate

◆ containing_type

google.protobuf.descriptor.OneofDescriptor.containing_type

◆ fields

google.protobuf.descriptor.OneofDescriptor.fields

◆ full_name

google.protobuf.descriptor.OneofDescriptor.full_name

◆ index

google.protobuf.descriptor.OneofDescriptor.index

◆ name

google.protobuf.descriptor.OneofDescriptor.name

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


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