FetchPlaceRequest

public abstract class FetchPlaceRequest extends Object
implements Request

Nested Class Summary

class FetchPlaceRequest.Builder Builder for FetchPlaceRequest

Public Constructor Summary

Public Method Summary

static FetchPlaceRequest.Builder
builder(String placeId, List<Place.Field> placeFields)
abstract CancellationToken
getCancellationToken()
Returns the CancellationToken used by PlacesClient to cancel any yet-to-be-executed requests.
abstract List<Place.Field>
getPlaceFields()
Returns the Place.Field list to be requested.
abstract String
getPlaceId()
Returns the ID of the place to be requested.
abstract AutocompleteSessionToken
getSessionToken()
Returns the AutocompleteSessionToken used for sessionizing multiple instances ofFindAutocompletePredictionsRequest.
static FetchPlaceRequest
newInstance(String placeId, List<Place.Field> placeFields)

Inherited Method Summary

Public Constructors

public FetchPlaceRequest ()

Public Methods

public static FetchPlaceRequest.Builder builder (String placeId, List<Place.Field> placeFields)

Parameters
placeId the ID of the place to be requested. See getId() for more details about the place ID.
placeFields the fields of the place to be requested. See Place.Field for the specifiable fields. Read more about Place Data Fields.

public abstract CancellationToken getCancellationToken ()

Returns the CancellationToken used by PlacesClient to cancel any yet-to-be-executed requests.

public abstract List<Place.Field> getPlaceFields ()

Returns the Place.Field list to be requested.

This list should not be modified.

public abstract String getPlaceId ()

Returns the ID of the place to be requested. See getId().

public abstract AutocompleteSessionToken getSessionToken ()

Returns the AutocompleteSessionToken used for sessionizing multiple instances ofFindAutocompletePredictionsRequest. This same token can also be used here for a subsequent FetchPlaceRequest on one of the autocomplete prediction results returned.

public static FetchPlaceRequest newInstance (String placeId, List<Place.Field> placeFields)

Parameters
placeId the ID of the place to be requested. See getId() for more details about the place ID.
placeFields the fields of the place to be requested. See Place.Field for the specifiable fields. Read more about Place Data Fields.

フィードバックを送信...