Class SuggestedReply
- 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.SuggestedReply
-
- All Implemented Interfaces:
java.lang.Cloneable,java.util.Map<java.lang.String,java.lang.Object>
public final class SuggestedReply extends com.google.api.client.json.GenericJsonWhen tapped, sends the text reply back to the agent.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 SuggestedReply()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SuggestedReplyclone()java.lang.StringgetPostbackData()The base64-encoded payload that the agent receives in a user event when the user taps the suggested reply.java.lang.StringgetText()Text that is shown in the suggested reply and sent back to the agent when the user taps it.SuggestedReplyset(java.lang.String fieldName, java.lang.Object value)SuggestedReplysetPostbackData(java.lang.String postbackData)The base64-encoded payload that the agent receives in a user event when the user taps the suggested reply.SuggestedReplysetText(java.lang.String text)Text that is shown in the suggested reply and sent back to the agent when the user taps it.-
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
-
getPostbackData
public java.lang.String getPostbackData()
The base64-encoded payload that the agent receives in a user event when the user taps the suggested reply.- Returns:
- value or
nullfor none
-
setPostbackData
public SuggestedReply setPostbackData(java.lang.String postbackData)
The base64-encoded payload that the agent receives in a user event when the user taps the suggested reply.- Parameters:
postbackData- postbackData ornullfor none
-
getText
public java.lang.String getText()
Text that is shown in the suggested reply and sent back to the agent when the user taps it. Maximum 25 characters.- Returns:
- value or
nullfor none
-
setText
public SuggestedReply setText(java.lang.String text)
Text that is shown in the suggested reply and sent back to the agent when the user taps it. Maximum 25 characters.- Parameters:
text- text ornullfor none
-
set
public SuggestedReply set(java.lang.String fieldName, java.lang.Object value)
- Overrides:
setin classcom.google.api.client.json.GenericJson
-
clone
public SuggestedReply clone()
- Overrides:
clonein classcom.google.api.client.json.GenericJson
-
-