public class FindPlaceFromTextRequest
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
FindPlaceFromTextRequest.FieldMask |
static class |
FindPlaceFromTextRequest.InputType |
static interface |
FindPlaceFromTextRequest.LocationBias |
static class |
FindPlaceFromTextRequest.LocationBiasCircular |
static class |
FindPlaceFromTextRequest.LocationBiasIP |
static class |
FindPlaceFromTextRequest.LocationBiasPoint |
static class |
FindPlaceFromTextRequest.LocationBiasRectangular |
static class |
FindPlaceFromTextRequest.Response |
PendingResult.Callback<T>
Constructor and Description |
---|
FindPlaceFromTextRequest(GeoApiContext context) |
Modifier and Type | Method and Description |
---|---|
T |
await()
Performs the request synchronously.
|
T |
awaitIgnoreError()
Performs the request synchronously, ignoring exceptions while performing the request and errors
returned by the server.
|
void |
cancel()
Attempts to cancel the request.
|
A |
channel(java.lang.String channel)
A channel to pass with the request.
|
A |
custom(java.lang.String parameter,
java.lang.String value)
Custom parameter.
|
FindPlaceFromTextRequest |
fields(FindPlaceFromTextRequest.FieldMask... fields)
The fields specifying the types of place data to return.
|
FindPlaceFromTextRequest |
input(java.lang.String input)
The text input specifying which place to search for (for example, a name, address, or phone
number).
|
FindPlaceFromTextRequest |
inputType(FindPlaceFromTextRequest.InputType inputType)
The type of input.
|
A |
language(java.lang.String language)
The language in which to return results.
|
FindPlaceFromTextRequest |
locationBias(FindPlaceFromTextRequest.LocationBias locationBias)
Prefer results in a specified area, by specifying either a radius plus lat/lng, or two lat/lng
pairs representing the points of a rectangle.
|
protected A |
param(java.lang.String key,
int val) |
protected A |
param(java.lang.String key,
java.lang.String val) |
protected A |
param(java.lang.String key,
com.google.maps.internal.StringJoin.UrlValue val) |
protected A |
paramAddToList(java.lang.String key,
java.lang.String val) |
protected A |
paramAddToList(java.lang.String key,
com.google.maps.internal.StringJoin.UrlValue val) |
protected java.util.Map<java.lang.String,java.util.List<java.lang.String>> |
params() |
void |
setCallback(PendingResult.Callback<T> callback)
|
protected void |
validateRequest() |
public FindPlaceFromTextRequest(GeoApiContext context)
public FindPlaceFromTextRequest input(java.lang.String input)
input
- The text input.FindPlaceFromTextRequest
for call chaining.public FindPlaceFromTextRequest inputType(FindPlaceFromTextRequest.InputType inputType)
inputType
- The input type.FindPlaceFromTextRequest
for call chaining.public FindPlaceFromTextRequest fields(FindPlaceFromTextRequest.FieldMask... fields)
fields
- The fields to return.FindPlaceFromTextRequest
for call chaining.public FindPlaceFromTextRequest locationBias(FindPlaceFromTextRequest.LocationBias locationBias)
locationBias
- The location bias for this request.FindPlaceFromTextRequest
for call chaining.protected void validateRequest()
public final void setCallback(PendingResult.Callback<T> callback)
PendingResult
onResult
or onFailure
after the request has been
completed.setCallback
in interface PendingResult<T>
callback
- The callback to call on completion.public final T await() throws ApiException, java.lang.InterruptedException, java.io.IOException
PendingResult
await
in interface PendingResult<T>
ApiException
- Thrown if the API Returned result is an error.java.lang.InterruptedException
- Thrown when a thread is waiting, sleeping, or otherwise occupied,
and the thread is interrupted.java.io.IOException
- Thrown when an I/O exception of some sort has occurred.public final T awaitIgnoreError()
PendingResult
awaitIgnoreError
in interface PendingResult<T>
public final void cancel()
PendingResult
cancel
in interface PendingResult<T>
protected A param(java.lang.String key, java.lang.String val)
protected A param(java.lang.String key, int val)
protected A param(java.lang.String key, com.google.maps.internal.StringJoin.UrlValue val)
protected A paramAddToList(java.lang.String key, java.lang.String val)
protected A paramAddToList(java.lang.String key, com.google.maps.internal.StringJoin.UrlValue val)
protected java.util.Map<java.lang.String,java.util.List<java.lang.String>> params()
public final A language(java.lang.String language)
language
- The language code, e.g. "en-AU" or "es".public A channel(java.lang.String channel)
channel
- String to pass with the request for analytics.public A custom(java.lang.String parameter, java.lang.String value)
parameter
- The name of the custom parameter.value
- The value of the custom parameter.