com.google.maps

Class PhotoRequest

  • java.lang.Object
    • com.google.maps.PhotoRequest
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      Tawait()
      Performs the request synchronously.
      TawaitIgnoreError()
      Performs the request synchronously, ignoring exceptions while performing the request and errors returned by the server.
      voidcancel()
      Attempt to cancel the request.
      Achannel(java.lang.String channel)
      A channel to pass with the request.
      Alanguage(java.lang.String language)
      The language in which to return results.
      PhotoRequestmaxHeight(int maxHeight)
      Set the maxHeight for this request.
      PhotoRequestmaxWidth(int maxWidth)
      Set the maxWidth for this request.
      protected Aparam(java.lang.String key, java.lang.String val) 
      protected Aparam(java.lang.String key, com.google.maps.internal.StringJoin.UrlValue val) 
      protected java.util.Map<java.lang.String,java.lang.String>params() 
      PhotoRequestphotoReference(java.lang.String photoReference)
      Set the photoReference for this request.
      voidsetCallback(PendingResult.Callback<T> callback)
      Performs the request asynchronously, calling onResult or onFailure after the request has been completed.
      protected voidvalidateRequest() 
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • validateRequest

        protected void validateRequest()
      • photoReference

        public PhotoRequest photoReference(java.lang.String photoReference)
        Set the photoReference for this request.
        Parameters:
        photoReference - A string identifier that uniquely identifies a photo. Photo references are returned from either a Place Search or Place Details request.
        Returns:
        Returns the configured PhotoRequest.
      • maxHeight

        public PhotoRequest maxHeight(int maxHeight)
        Set the maxHeight for this request.
        Parameters:
        maxHeight - Specifies the maximum desired height, in pixels, of the image returned by the Place Photos service.
        Returns:
        Returns the configured PhotoRequest.
      • maxWidth

        public PhotoRequest maxWidth(int maxWidth)
        Set the maxWidth for this request.
        Parameters:
        maxWidth - Specifies the maximum desired width, in pixels, of the image returned by the Place Photos service.
        Returns:
        Returns the configured PhotoRequest.
      • await

        public final T await()              throws java.lang.Exception
        Description copied from interface: PendingResult
        Performs the request synchronously.
        Specified by:
        await in interface PendingResult<T>
        Returns:
        The result.
        Throws:
        java.lang.Exception
      • awaitIgnoreError

        public final T awaitIgnoreError()
        Description copied from interface: PendingResult
        Performs the request synchronously, ignoring exceptions while performing the request and errors returned by the server.
        Specified by:
        awaitIgnoreError in interface PendingResult<T>
        Returns:
        The result, or null if there was any error or exception ignored.
      • cancel

        public final void cancel()
        Description copied from interface: PendingResult
        Attempt to cancel the request.
        Specified by:
        cancel in interface PendingResult<T>
      • param

        protected A param(java.lang.String key,                  java.lang.String val)
      • param

        protected A param(java.lang.String key,                  com.google.maps.internal.StringJoin.UrlValue val)
      • params

        protected java.util.Map<java.lang.String,java.lang.String> params()
      • language

        public final A language(java.lang.String language)
        The language in which to return results. Note that we often update supported languages so this list may not be exhaustive.
        Parameters:
        language - The language code, e.g. "en-AU" or "es"
        See Also:
        List of supported domain languages
      • channel

        public A channel(java.lang.String channel)
        A channel to pass with the request. channel is used by Google Maps API for Work users to be able to track usage across different applications with the same clientID. See: https://developers.google.com/maps/documentation/business/clientside/quota
        Parameters:
        channel - String to pass with the request for analytics


NOTHING
NOTHING
Add the Maven Dependecy to your project: maven dependecy for com.amazonaws : aws-java-sdk : 1.3.14