webkit
2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
|
Public Member Functions | |
def | __new__ (cls, name, full_name, filename, values, containing_type=None, options=None, file=None, serialized_start=None, serialized_end=None) |
def | __init__ (self, name, full_name, filename, values, containing_type=None, options=None, file=None, serialized_start=None, serialized_end=None) |
def | CopyToProto (self, proto) |
Public Member Functions inherited from google.protobuf.descriptor._NestedDescriptorBase | |
def | __init__ (self, options, options_class_name, name, full_name, file, containing_type, serialized_start=None, serialized_end=None) |
def | GetTopLevelContainingType (self) |
def | CopyToProto (self, proto) |
Public Member Functions inherited from google.protobuf.descriptor.DescriptorBase | |
def | __init__ (self, options, options_class_name) |
def | GetOptions (self) |
Public Member Functions inherited from google.protobuf.descriptor.DescriptorMetaclass | |
def | __instancecheck__ (cls, obj) |
Public Attributes | |
values | |
values_by_name | |
values_by_number | |
Public Attributes inherited from google.protobuf.descriptor._NestedDescriptorBase | |
name | |
full_name | |
file | |
containing_type | |
Public Attributes inherited from google.protobuf.descriptor.DescriptorBase | |
has_options | |
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.
def google.protobuf.descriptor.EnumDescriptor.__init__ | ( | self, | |
name, | |||
full_name, | |||
filename, | |||
values, | |||
containing_type = None , |
|||
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.
def google.protobuf.descriptor.EnumDescriptor.__new__ | ( | cls, | |
name, | |||
full_name, | |||
filename, | |||
values, | |||
containing_type = None , |
|||
options = None , |
|||
file = None , |
|||
serialized_start = None , |
|||
serialized_end = None |
|||
) |
def google.protobuf.descriptor.EnumDescriptor.CopyToProto | ( | self, | |
proto | |||
) |
Copies this to a descriptor_pb2.EnumDescriptorProto. Args: proto: An empty descriptor_pb2.EnumDescriptorProto.
google.protobuf.descriptor.EnumDescriptor.values |
google.protobuf.descriptor.EnumDescriptor.values_by_name |
google.protobuf.descriptor.EnumDescriptor.values_by_number |