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

 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.
Descriptor for a single value within an enum.

Attributes:
  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): :class:`EnumDescriptor` to which this value
    belongs.  Set by :class:`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 bloaty/third_party/protobuf/python/google/protobuf/descriptor.py.

Constructor & Destructor Documentation

◆ __init__() [1/2]

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 bloaty/third_party/protobuf/python/google/protobuf/descriptor.py.

◆ __init__() [2/2]

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

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

Member Function Documentation

◆ __new__() [1/2]

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

◆ __new__() [2/2]

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

Member Data Documentation

◆ _C_DESCRIPTOR_CLASS

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

◆ index

google.protobuf.descriptor.EnumValueDescriptor.index

◆ name

google.protobuf.descriptor.EnumValueDescriptor.name

◆ number

google.protobuf.descriptor.EnumValueDescriptor.number

◆ type

google.protobuf.descriptor.EnumValueDescriptor.type

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


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