Class Suggestion
- 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.Suggestion
-
- All Implemented Interfaces:
java.lang.Cloneable,java.util.Map<java.lang.String,java.lang.Object>
public final class Suggestion extends com.google.api.client.json.GenericJsonA suggested reply or a suggested action included within a rich card or within a suggestion chip list.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 Suggestion()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Suggestionclone()SuggestedActiongetAction()Users can tap a suggested action to initiate the corresponding native action on the device.SuggestedReplygetReply()Users can tap a suggested reply to send the text reply back to the agent.Suggestionset(java.lang.String fieldName, java.lang.Object value)SuggestionsetAction(SuggestedAction action)Users can tap a suggested action to initiate the corresponding native action on the device.SuggestionsetReply(SuggestedReply reply)Users can tap a suggested reply to send the text reply back to the agent.-
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
-
getAction
public SuggestedAction getAction()
Users can tap a suggested action to initiate the corresponding native action on the device.- Returns:
- value or
nullfor none
-
setAction
public Suggestion setAction(SuggestedAction action)
Users can tap a suggested action to initiate the corresponding native action on the device.- Parameters:
action- action ornullfor none
-
getReply
public SuggestedReply getReply()
Users can tap a suggested reply to send the text reply back to the agent.- Returns:
- value or
nullfor none
-
setReply
public Suggestion setReply(SuggestedReply reply)
Users can tap a suggested reply to send the text reply back to the agent.- Parameters:
reply- reply ornullfor none
-
set
public Suggestion set(java.lang.String fieldName, java.lang.Object value)
- Overrides:
setin classcom.google.api.client.json.GenericJson
-
clone
public Suggestion clone()
- Overrides:
clonein classcom.google.api.client.json.GenericJson
-
-