parameters: (descriptor, cls)
docstring: Sets class-level attributes for all enum fields defined in this message.
  
    Also exporting a class-level object that can name enum values.
  
    Args:
      descriptor: Descriptor object for this message type.
      cls: Class we're constructing for this message type.
docstring_summary: Sets class-level attributes for all enum fields defined in this message.
docstring_tokens: Sets class - level attributes for all enum fields defined in this message .
function: def _AddEnumValues(descriptor, cls):
    """Sets class-level attributes for all enum fields defined in this message.
  
    Also exporting a class-level object that can name enum values.
  
    Args:
      descriptor: Descriptor object for this message type.
      cls: Class we're constructing for this message type.
    """
    for enum_type in descriptor.enum_types:
      setattr(cls, enum_type.name, enum_type_wrapper.EnumTypeWrapper(enum_type))
      for enum_value in enum_type.values:
        setattr(cls, enum_value.name, enum_value.number)
function_tokens: def _AddEnumValues ( descriptor , cls ) : for enum_type in descriptor . enum_types : setattr ( cls , enum_type . name , enum_type_wrapper . EnumTypeWrapper ( enum_type ) ) for enum_value in enum_type . values : setattr ( cls , enum_value . name , enum_value . number )