implements Request
Request used by 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
yet-to-be-executed requests. |
abstract Integer |
getMaxHeight()
Returns the maximum height, in pixels, of the image to be returned by the Place Photos service.
|
abstract Integer |
getMaxWidth()
Returns the maximum width, in pixels, of the image to be returned by the Place Photos service.
|
abstract PhotoMetadata |
getPhotoMetadata()
Returns the
PhotoMetadata of the image to be 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 fetchPhoto(FetchPhotoRequest) for more details about PhotoMetadata .
|
---|
public abstract CancellationToken getCancellationToken ()
Returns the CancellationToken
used by PlacesClient
to cancel any
yet-to-be-executed requests.
public abstract Integer getMaxHeight ()
Returns the maximum height, in pixels, of the image to be returned by the Place Photos service.
See setMaxHeight(Integer)
for details on value range.
public abstract Integer getMaxWidth ()
Returns the maximum width, in pixels, of the image to be returned by the Place Photos service.
See setMaxWidth(Integer)
for details on value range.
public abstract PhotoMetadata getPhotoMetadata ()
Returns the PhotoMetadata
of the image to be 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.
|
---|