implements Request
Request used by PlacesClient.fetchPhoto(FetchPhotoRequest)
.
Use builder(PhotoMetadata)
to get the FetchPhotoRequest.Builder
that constructs the FetchPhotoRequest
.
Nested Class Summary
class | FetchPhotoRequest.Builder | Builder for FetchPhotoRequest . |
Public Constructor Summary
Public Method Summary
static FetchPhotoRequest.Builder | |
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 |
Inherited Method Summary
Public Constructors
public FetchPhotoRequest ()
Public Methods
public static FetchPhotoRequest.Builder builder (PhotoMetadata photoMetadata)
Returns a FetchPhotoRequest.Builder
.
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)
Returns a FetchPhotoRequest
.
Parameters
photoMetadata | The PhotoMetadata of the photo to be requested.
|
---|