Class PlaceAutocompleteRequest.SessionToken

  • All Implemented Interfaces:
    com.google.maps.internal.StringJoin.UrlValue, java.io.Serializable
    Enclosing class:
    PlaceAutocompleteRequest

    public static final class PlaceAutocompleteRequest.SessionToken
    extends java.lang.Object
    implements com.google.maps.internal.StringJoin.UrlValue, java.io.Serializable
    SessionToken represents an Autocomplete session.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      SessionToken()
      This constructor creates a new session.
      SessionToken​(java.lang.String token)
      Construct a session that is a continuation of a previous session.
      SessionToken​(java.util.UUID uuid)
      Construct a session that is a continuation of a previous session.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.UUID getUUID()
      Retrieve the universally unique identifier for this session.
      java.lang.String toUrlValue()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SessionToken

        public SessionToken()
        This constructor creates a new session.
      • SessionToken

        public SessionToken​(java.util.UUID uuid)
        Construct a session that is a continuation of a previous session.
        Parameters:
        uuid - The universally unique identifier for this session.
      • SessionToken

        public SessionToken​(java.lang.String token)
        Construct a session that is a continuation of a previous session.
        Parameters:
        token - The unique String to be used as the seed for the session identifier.
    • Method Detail

      • getUUID

        public java.util.UUID getUUID()
        Retrieve the universally unique identifier for this session. This enables you to recreate the session token in a later context.
        Returns:
        Returns the universally unique identifier for this session.
      • toUrlValue

        public java.lang.String toUrlValue()
        Specified by:
        toUrlValue in interface com.google.maps.internal.StringJoin.UrlValue