Class ViewLocationAction
- java.lang.Object
-
- java.util.AbstractMap<java.lang.String,java.lang.Object>
-
- com.google.api.client.util.GenericData
-
- com.google.api.client.json.GenericJson
-
- com.google.api.services.rcsbusinessmessaging.v1.model.ViewLocationAction
-
- All Implemented Interfaces:
java.lang.Cloneable,java.util.Map<java.lang.String,java.lang.Object>
public final class ViewLocationAction extends com.google.api.client.json.GenericJsonOpens the user's default map app and selects the agent-specified location or searches around the user's location given an agent-specified query.This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the RCS Business Messaging API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
- Author:
- Google, Inc.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.api.client.util.GenericData
com.google.api.client.util.GenericData.Flags
-
-
Constructor Summary
Constructors Constructor Description ViewLocationAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ViewLocationActionclone()java.lang.StringgetLabel()(Optional) The label of the pin dropped at lat_long.LatLnggetLatLong()(Optional) The latitude and longitude of the specified location.java.lang.StringgetQuery()(Optional, only supported on Android Messages clients) Rather than specify a lat_long (and optionally, a label), the agent can instead specify a query string.ViewLocationActionset(java.lang.String fieldName, java.lang.Object value)ViewLocationActionsetLabel(java.lang.String label)(Optional) The label of the pin dropped at lat_long.ViewLocationActionsetLatLong(LatLng latLong)(Optional) The latitude and longitude of the specified location.ViewLocationActionsetQuery(java.lang.String query)(Optional, only supported on Android Messages clients) Rather than specify a lat_long (and optionally, a label), the agent can instead specify a query string.-
Methods inherited from class com.google.api.client.json.GenericJson
getFactory, setFactory, toPrettyString, toString
-
Methods inherited from class com.google.api.client.util.GenericData
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
-
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
-
-
-
-
Method Detail
-
getLabel
public java.lang.String getLabel()
(Optional) The label of the pin dropped at lat_long.- Returns:
- value or
nullfor none
-
setLabel
public ViewLocationAction setLabel(java.lang.String label)
(Optional) The label of the pin dropped at lat_long.- Parameters:
label- label ornullfor none
-
getLatLong
public LatLng getLatLong()
(Optional) The latitude and longitude of the specified location.- Returns:
- value or
nullfor none
-
setLatLong
public ViewLocationAction setLatLong(LatLng latLong)
(Optional) The latitude and longitude of the specified location.- Parameters:
latLong- latLong ornullfor none
-
getQuery
public java.lang.String getQuery()
(Optional, only supported on Android Messages clients) Rather than specify a lat_long (and optionally, a label), the agent can instead specify a query string. For default map apps that support search functionality (including Google Maps), tapping this suggested action results in a location search centered around the user's current location. If the query is sufficiently specific, then agents can use it to select any location in the world. For instance, setting the query string to "Growing Tree Bank" will show all Growing Tree Bank locations in the user's vicinity. Setting the query string to "1600 Amphitheater Parkway, Mountain View, CA 94043" will select that specific address, regardless of the user's location.- Returns:
- value or
nullfor none
-
setQuery
public ViewLocationAction setQuery(java.lang.String query)
(Optional, only supported on Android Messages clients) Rather than specify a lat_long (and optionally, a label), the agent can instead specify a query string. For default map apps that support search functionality (including Google Maps), tapping this suggested action results in a location search centered around the user's current location. If the query is sufficiently specific, then agents can use it to select any location in the world. For instance, setting the query string to "Growing Tree Bank" will show all Growing Tree Bank locations in the user's vicinity. Setting the query string to "1600 Amphitheater Parkway, Mountain View, CA 94043" will select that specific address, regardless of the user's location.- Parameters:
query- query ornullfor none
-
set
public ViewLocationAction set(java.lang.String fieldName, java.lang.Object value)
- Overrides:
setin classcom.google.api.client.json.GenericJson
-
clone
public ViewLocationAction clone()
- Overrides:
clonein classcom.google.api.client.json.GenericJson
-
-