Public Member Functions | |
def | __init__ (self, name, full_name, filename, values, containing_type=None, options=None, serialized_options=None, file=None, serialized_start=None, serialized_end=None) |
def | __init__ (self, name, full_name, filename, values, containing_type=None, options=None, serialized_options=None, file=None, serialized_start=None, serialized_end=None, create_key=None) |
def | __new__ (cls, name, full_name, filename, values, containing_type=None, options=None, serialized_options=None, file=None, serialized_start=None, serialized_end=None) |
def | __new__ (cls, name, full_name, filename, values, containing_type=None, options=None, serialized_options=None, file=None, serialized_start=None, serialized_end=None, create_key=None) |
def | CopyToProto (self, proto) |
def | CopyToProto (self, proto) |
![]() | |
def | __init__ (self, options, options_class_name, name, full_name, file, containing_type, serialized_start=None, serialized_end=None, serialized_options=None) |
def | __init__ (self, options, options_class_name, name, full_name, file, containing_type, serialized_start=None, serialized_end=None, serialized_options=None) |
![]() | |
def | __init__ (self, options, serialized_options, options_class_name) |
def | __init__ (self, options, serialized_options, options_class_name) |
def | GetOptions (self) |
def | GetOptions (self) |
![]() | |
def | __instancecheck__ (cls, obj) |
def | __instancecheck__ (cls, obj) |
Public Attributes | |
values | |
values_by_name | |
values_by_number | |
![]() | |
containing_type | |
file | |
full_name | |
name | |
![]() | |
has_options | |
Static Private Attributes | |
_C_DESCRIPTOR_CLASS = _message.EnumDescriptor | |
Descriptor for an enum defined in a .proto file. An EnumDescriptor instance has the following attributes: name: (str) Name of the enum type. full_name: (str) Full name of the type, including package name and any enclosing type(s). values: (list of EnumValueDescriptors) List of the values in this enum. values_by_name: (dict str -> EnumValueDescriptor) Same as |values|, but indexed by the "name" field of each EnumValueDescriptor. values_by_number: (dict int -> EnumValueDescriptor) Same as |values|, but indexed by the "number" field of each EnumValueDescriptor. containing_type: (Descriptor) Descriptor of the immediate containing type of this enum, or None if this is an enum defined at the top level in a .proto file. Set by Descriptor's constructor if we're passed into one. file: (FileDescriptor) Reference to file descriptor. options: (descriptor_pb2.EnumOptions) Enum options message or None to use default enum options.
Descriptor for an enum defined in a .proto file. Attributes: name (str): Name of the enum type. full_name (str): Full name of the type, including package name and any enclosing type(s). values (list[EnumValueDescriptors]): List of the values in this enum. values_by_name (dict(str, EnumValueDescriptor)): Same as :attr:`values`, but indexed by the "name" field of each EnumValueDescriptor. values_by_number (dict(int, EnumValueDescriptor)): Same as :attr:`values`, but indexed by the "number" field of each EnumValueDescriptor. containing_type (Descriptor): Descriptor of the immediate containing type of this enum, or None if this is an enum defined at the top level in a .proto file. Set by Descriptor's constructor if we're passed into one. file (FileDescriptor): Reference to file descriptor. options (descriptor_pb2.EnumOptions): Enum options message or None to use default enum options.
Definition at line 607 of file bloaty/third_party/protobuf/python/google/protobuf/descriptor.py.
def google.protobuf.descriptor.EnumDescriptor.__init__ | ( | self, | |
name, | |||
full_name, | |||
filename, | |||
values, | |||
containing_type = None , |
|||
options = None , |
|||
serialized_options = None , |
|||
file = None , |
|||
serialized_start = None , |
|||
serialized_end = None |
|||
) |
Arguments are as described in the attribute description above. Note that filename is an obsolete argument, that is not used anymore. Please use file.name to access this as an attribute.
Definition at line 642 of file bloaty/third_party/protobuf/python/google/protobuf/descriptor.py.
def google.protobuf.descriptor.EnumDescriptor.__init__ | ( | self, | |
name, | |||
full_name, | |||
filename, | |||
values, | |||
containing_type = None , |
|||
options = None , |
|||
serialized_options = None , |
|||
file = None , |
|||
serialized_start = None , |
|||
serialized_end = None , |
|||
create_key = None |
|||
) |
Arguments are as described in the attribute description above. Note that filename is an obsolete argument, that is not used anymore. Please use file.name to access this as an attribute.
Definition at line 675 of file protobuf/python/google/protobuf/descriptor.py.
def google.protobuf.descriptor.EnumDescriptor.__new__ | ( | cls, | |
name, | |||
full_name, | |||
filename, | |||
values, | |||
containing_type = None , |
|||
options = None , |
|||
serialized_options = None , |
|||
file = None , |
|||
serialized_start = None , |
|||
serialized_end = None |
|||
) |
Definition at line 635 of file bloaty/third_party/protobuf/python/google/protobuf/descriptor.py.
def google.protobuf.descriptor.EnumDescriptor.__new__ | ( | cls, | |
name, | |||
full_name, | |||
filename, | |||
values, | |||
containing_type = None , |
|||
options = None , |
|||
serialized_options = None , |
|||
file = None , |
|||
serialized_start = None , |
|||
serialized_end = None , |
|||
create_key = None |
|||
) |
Definition at line 668 of file protobuf/python/google/protobuf/descriptor.py.
def google.protobuf.descriptor.EnumDescriptor.CopyToProto | ( | self, | |
proto | |||
) |
Copies this to a descriptor_pb2.EnumDescriptorProto. Args: proto: An empty descriptor_pb2.EnumDescriptorProto.
Reimplemented from google.protobuf.descriptor._NestedDescriptorBase.
Definition at line 663 of file bloaty/third_party/protobuf/python/google/protobuf/descriptor.py.
def google.protobuf.descriptor.EnumDescriptor.CopyToProto | ( | self, | |
proto | |||
) |
Copies this to a descriptor_pb2.EnumDescriptorProto. Args: proto (descriptor_pb2.EnumDescriptorProto): An empty descriptor proto.
Reimplemented from google.protobuf.descriptor._NestedDescriptorBase.
Definition at line 699 of file protobuf/python/google/protobuf/descriptor.py.
|
staticprivate |
Definition at line 633 of file bloaty/third_party/protobuf/python/google/protobuf/descriptor.py.
google.protobuf.descriptor.EnumDescriptor.values |
Definition at line 653 of file bloaty/third_party/protobuf/python/google/protobuf/descriptor.py.
google.protobuf.descriptor.EnumDescriptor.values_by_name |
Definition at line 656 of file bloaty/third_party/protobuf/python/google/protobuf/descriptor.py.
google.protobuf.descriptor.EnumDescriptor.values_by_number |
Definition at line 658 of file bloaty/third_party/protobuf/python/google/protobuf/descriptor.py.