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 __new__ (cls, name, full_name, index, containing_type, fields, options=None, serialized_options=None)
 
- 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
 
 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.

Definition at line 713 of file descriptor.py.

Constructor & Destructor Documentation

◆ __init__()

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

Member Function Documentation

◆ __new__()

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

Definition at line 730 of file descriptor.py.

Member Data Documentation

◆ _C_DESCRIPTOR_CLASS

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

Definition at line 728 of file descriptor.py.

◆ containing_type

google.protobuf.descriptor.OneofDescriptor.containing_type

Definition at line 743 of file descriptor.py.

◆ fields

google.protobuf.descriptor.OneofDescriptor.fields

Definition at line 744 of file descriptor.py.

◆ full_name

google.protobuf.descriptor.OneofDescriptor.full_name

Definition at line 741 of file descriptor.py.

◆ index

google.protobuf.descriptor.OneofDescriptor.index

Definition at line 742 of file descriptor.py.

◆ name

google.protobuf.descriptor.OneofDescriptor.name

Definition at line 740 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