(self, tokenizer)
return '.'.join(name)
Consumes a google.protobuf.Any type URL and returns the type name.
Consumes a google.protobuf.Any type URL and returns the type name.
Consumes a google . protobuf . Any type URL and returns the type name .
def _ConsumeAnyTypeUrl(self, tokenizer):
    """Consumes a google.protobuf.Any type URL and returns the type name."""
    # Consume "type.googleapis.com/".
    tokenizer.ConsumeIdentifier()
    tokenizer.Consume('.')
    tokenizer.ConsumeIdentifier()
    tokenizer.Consume('.')
    tokenizer.ConsumeIdentifier()
    tokenizer.Consume('/')
    # Consume the fully-qualified type name.
    name = [tokenizer.ConsumeIdentifier()]
    while tokenizer.TryConsume('.'):
      name.append(tokenizer.ConsumeIdentifier())
    return '.'.join(name)
def _ConsumeAnyTypeUrl ( self , tokenizer ) : # Consume "type.googleapis.com/". tokenizer . ConsumeIdentifier ( ) tokenizer . Consume ( '.' ) tokenizer . ConsumeIdentifier ( ) tokenizer . Consume ( '.' ) tokenizer . ConsumeIdentifier ( ) tokenizer . Consume ( '/' ) # Consume the fully-qualified type name. name = [ tokenizer . ConsumeIdentifier ( ) ] while tokenizer . TryConsume ( '.' ) : name . append ( tokenizer . ConsumeIdentifier ( ) ) return '.' . join ( name )