parameters: (self, number)
docstring: Returns a string containing the name of an enum value.
docstring_summary: Returns a string containing the name of an enum value.
docstring_tokens: Returns a string containing the name of an enum value .
function: def Name(self, number):  # pylint: disable=invalid-name
      """Returns a string containing the name of an enum value."""
      try:
        return self._enum_type.values_by_number[number].name
      except KeyError:
        pass  # fall out to break exception chaining
  
      if not isinstance(number, int):
        raise TypeError(
            'Enum value for {} must be an int, but got {} {!r}.'.format(
                self._enum_type.name, type(number), number))
      else:
        # repr here to handle the odd case when you pass in a boolean.
        raise ValueError('Enum {} has no name defined for value {!r}'.format(
            self._enum_type.name, number))
function_tokens: def Name ( self , number ) : # pylint: disable=invalid-name try : return self . _enum_type . values_by_number [ number ] . name except KeyError : pass # fall out to break exception chaining if not isinstance ( number , int ) : raise TypeError ( 'Enum value for {} must be an int, but got {} {!r}.' . format ( self . _enum_type . name , type ( number ) , number ) ) else : # repr here to handle the odd case when you pass in a boolean. raise ValueError ( 'Enum {} has no name defined for value {!r}' . format ( self . _enum_type . name , number ) )