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

Public Member Functions

def __init__ (self, name, index, number, type=None, options=None, serialized_options=None)
 
def __new__ (cls, name, index, number, type=None, 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

 index
 
 name
 
 number
 
 type
 
- Public Attributes inherited from google.protobuf.descriptor.DescriptorBase
 has_options
 

Static Private Attributes

 _C_DESCRIPTOR_CLASS = _message.EnumValueDescriptor
 

Detailed Description

Descriptor for a single value within an enum.

  name: (str) Name of this value.
  index: (int) Dense, 0-indexed index giving the order that this
    value appears textually within its enum in the .proto file.
  number: (int) Actual number assigned to this enum value.
  type: (EnumDescriptor) EnumDescriptor to which this value
    belongs.  Set by EnumDescriptor's constructor if we're
    passed into one.
  options: (descriptor_pb2.EnumValueOptions) Enum value options message or
    None to use default enum value options options.

Definition at line 673 of file descriptor.py.

Constructor & Destructor Documentation

◆ __init__()

def google.protobuf.descriptor.EnumValueDescriptor.__init__ (   self,
  name,
  index,
  number,
  type = None,
  options = None,
  serialized_options = None 
)
Arguments are as described in the attribute description above.

Definition at line 701 of file descriptor.py.

Member Function Documentation

◆ __new__()

def google.protobuf.descriptor.EnumValueDescriptor.__new__ (   cls,
  name,
  index,
  number,
  type = None,
  options = None,
  serialized_options = None 
)

Definition at line 691 of file descriptor.py.

Member Data Documentation

◆ _C_DESCRIPTOR_CLASS

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

Definition at line 689 of file descriptor.py.

◆ index

google.protobuf.descriptor.EnumValueDescriptor.index

Definition at line 706 of file descriptor.py.

◆ name

google.protobuf.descriptor.EnumValueDescriptor.name

Definition at line 705 of file descriptor.py.

◆ number

google.protobuf.descriptor.EnumValueDescriptor.number

Definition at line 707 of file descriptor.py.

◆ type

google.protobuf.descriptor.EnumValueDescriptor.type

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