class_docstr: 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.
docstr: Copies this to a descriptor_pb2.EnumDescriptorProto.
  
  Args:
    proto (descriptor_pb2.EnumDescriptorProto): An empty descriptor proto.
docstr_tok: ["Copies","this","to","a","descriptor_pb2.EnumDescriptorProto",".","Args",":","proto","(","descriptor_pb2.EnumDescriptorProto",")",":","An","empty","descriptor","proto","."]
code: def CopyToProto(self, proto):
      """Copies this to a descriptor_pb2.EnumDescriptorProto.
  
      Args:
        proto (descriptor_pb2.EnumDescriptorProto): An empty descriptor proto.
      """
      # This function is overridden to give a better doc comment.
      super(EnumDescriptor, self).CopyToProto(proto)
  
imports: import threading
  import warnings
  from google.protobuf.internal import api_implementation
label_desc: Use image node_id 2 for calling the EnumDescriptor obj's underlying member method code with example usage: obj.CopyToProto(proto) without return types