FetchPlaceRequest.Builder

public abstract class FetchPlaceRequest.Builder


Builder for FetchPlaceRequest.

Summary

Public constructors

Public methods

FetchPlaceRequest

Build the FetchPlaceRequest.

abstract @Nullable CancellationToken

Gets the CancellationToken used by PlacesClient to cancel any queued requests.

abstract @Nullable String
abstract @Nullable AutocompleteSessionToken

Gets the AutocompleteSessionToken for this request.

abstract FetchPlaceRequest.Builder

Sets the CancellationToken used by PlacesClient to cancel any queued requests.

abstract FetchPlaceRequest.Builder
abstract FetchPlaceRequest.Builder

Sets the AutocompleteSessionToken for this request.

Public constructors

Builder

public Builder()

Public methods

build

public FetchPlaceRequest build()

Build the FetchPlaceRequest.

Mutable members (e.g List) will be converted to immutable versions.

getCancellationToken

public abstract @Nullable CancellationToken getCancellationToken()

Gets the CancellationToken used by PlacesClient to cancel any queued requests.

getRegionCode

public abstract @Nullable String getRegionCode()

getSessionToken

public abstract @Nullable AutocompleteSessionToken getSessionToken()

Gets the AutocompleteSessionToken for this request.

setCancellationToken

public abstract FetchPlaceRequest.Builder setCancellationToken(@Nullable CancellationToken cancellationToken)

Sets the CancellationToken used by PlacesClient to cancel any queued requests.

setRegionCode

public abstract FetchPlaceRequest.Builder setRegionCode(@Nullable String regionCode)

setSessionToken

public abstract FetchPlaceRequest.Builder setSessionToken(@Nullable AutocompleteSessionToken sessionToken)

Sets the AutocompleteSessionToken for this request.