parameters: (self)
return_statement: return result
docstring: Consumes protocol message field identifier.
  
      Returns:
        Identifier string.
  
      Raises:
        ParseError: If an identifier couldn't be consumed.
docstring_summary: Consumes protocol message field identifier.
docstring_tokens: Consumes protocol message field identifier .
function: def ConsumeIdentifier(self):
      """Consumes protocol message field identifier.
  
      Returns:
        Identifier string.
  
      Raises:
        ParseError: If an identifier couldn't be consumed.
      """
      result = self.token
      if not self._IDENTIFIER.match(result):
        raise self.ParseError('Expected identifier.')
      self.NextToken()
      return result
function_tokens: def ConsumeIdentifier ( self ) : result = self . token if not self . _IDENTIFIER . match ( result ) : raise self . ParseError ( 'Expected identifier.' ) self . NextToken ( ) return result