(self)
return result
Consumes protocol message field identifier.

    Returns:
      Identifier string.

    Raises:
      ParseError: If an identifier couldn't be consumed.
Consumes protocol message field identifier.
Consumes protocol message field identifier .
def ConsumeIdentifierOrNumber(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_OR_NUMBER.match(result):
      raise self.ParseError('Expected identifier or number.')
    self.NextToken()
    return result
def ConsumeIdentifierOrNumber ( self ) : result = self . token if not self . _IDENTIFIER_OR_NUMBER . match ( result ) : raise self . ParseError ( 'Expected identifier or number.' ) self . NextToken ( ) return result