FetchPhotoRequest

public abstract class FetchPhotoRequest extends Object
implements Request

Nested Class Summary

class FetchPhotoRequest.Builder Builder for FetchPhotoRequest

Public Constructor Summary

Public Method Summary

static FetchPhotoRequest.Builder
builder(PhotoMetadata photoMetadata)
abstract CancellationToken
getCancellationToken()
Returns the CancellationToken used by PlacesClient to cancel any queued requests.
abstract Integer
getMaxHeight()
Returns the maximum height in pixels of the image returned by the Place Photos service.
abstract Integer
getMaxWidth()
Returns the maximum width in pixels of the image returned by the Place Photos service.
abstract PhotoMetadata
getPhotoMetadata()
Returns the PhotoMetadata of the image returned by the Place Photos service.
static FetchPhotoRequest
newInstance(PhotoMetadata photoMetadata)

Inherited Method Summary

Public Constructors

public FetchPhotoRequest ()

Public Methods

public static FetchPhotoRequest.Builder builder (PhotoMetadata photoMetadata)

Parameters
photoMetadata the PhotoMetadata of the photo to be requested. See PlacesClient.fetchPhoto(FetchPhotoRequest) for more details about PhotoMetadata.

public abstract CancellationToken getCancellationToken ()

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

public abstract Integer getMaxHeight ()

Returns the maximum height in pixels of the image returned by the Place Photos service. See FetchPhotoRequest.Builder.setMaxHeight(Integer) for details on the value range.

public abstract Integer getMaxWidth ()

Returns the maximum width in pixels of the image returned by the Place Photos service. See FetchPhotoRequest.Builder.setMaxWidth(Integer) for details on the value range.

public abstract PhotoMetadata getPhotoMetadata ()

Returns the PhotoMetadata of the image returned by the Place Photos service.

public static FetchPhotoRequest newInstance (PhotoMetadata photoMetadata)

Parameters
photoMetadata The PhotoMetadata of the photo to be requested.