Class AgentContentMessage
- 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.AgentContentMessage
-
- All Implemented Interfaces:
java.lang.Cloneable,java.util.Map<java.lang.String,java.lang.Object>
public final class AgentContentMessage extends com.google.api.client.json.GenericJsonThe content of a message sent from the agent to a user.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 AgentContentMessage()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AgentContentMessageclone()ContentInfogetContentInfo()Information about a file, including the URL of the file and the URL of the file’s thumbnail.java.lang.StringgetFileName()The unique name of a file.RichCardgetRichCard()A standalone rich card.java.util.List<Suggestion>getSuggestions()A list of suggested replies and suggested actions that appear as a list of suggestion chips following the associated agent message.java.lang.StringgetText()Text encoded in UTF-8.AgentContentMessageset(java.lang.String fieldName, java.lang.Object value)AgentContentMessagesetContentInfo(ContentInfo contentInfo)Information about a file, including the URL of the file and the URL of the file’s thumbnail.AgentContentMessagesetFileName(java.lang.String fileName)The unique name of a file.AgentContentMessagesetRichCard(RichCard richCard)A standalone rich card.AgentContentMessagesetSuggestions(java.util.List<Suggestion> suggestions)A list of suggested replies and suggested actions that appear as a list of suggestion chips following the associated agent message.AgentContentMessagesetText(java.lang.String text)Text encoded in UTF-8.-
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
-
getContentInfo
public ContentInfo getContentInfo()
Information about a file, including the URL of the file and the URL of the file’s thumbnail. The RBM platform serves content from a cache, but an agent can force the RBM platform to fetch a new version of the content and refresh the cache.- Returns:
- value or
nullfor none
-
setContentInfo
public AgentContentMessage setContentInfo(ContentInfo contentInfo)
Information about a file, including the URL of the file and the URL of the file’s thumbnail. The RBM platform serves content from a cache, but an agent can force the RBM platform to fetch a new version of the content and refresh the cache.- Parameters:
contentInfo- contentInfo ornullfor none
-
getFileName
public java.lang.String getFileName()
The unique name of a file. The RBM platform returns a file name when an agent uploads a file.- Returns:
- value or
nullfor none
-
setFileName
public AgentContentMessage setFileName(java.lang.String fileName)
The unique name of a file. The RBM platform returns a file name when an agent uploads a file.- Parameters:
fileName- fileName ornullfor none
-
getRichCard
public RichCard getRichCard()
A standalone rich card.- Returns:
- value or
nullfor none
-
setRichCard
public AgentContentMessage setRichCard(RichCard richCard)
A standalone rich card.- Parameters:
richCard- richCard ornullfor none
-
getSuggestions
public java.util.List<Suggestion> getSuggestions()
A list of suggested replies and suggested actions that appear as a list of suggestion chips following the associated agent message. Maximum 11 suggestions. The chips only display when the associated agent message is the most recent message within the conversation (including both agent and user messages). The user can tap a suggested reply to send the text reply back to the agent or tap a suggested action to initiate a native action on the device.- Returns:
- value or
nullfor none
-
setSuggestions
public AgentContentMessage setSuggestions(java.util.List<Suggestion> suggestions)
A list of suggested replies and suggested actions that appear as a list of suggestion chips following the associated agent message. Maximum 11 suggestions. The chips only display when the associated agent message is the most recent message within the conversation (including both agent and user messages). The user can tap a suggested reply to send the text reply back to the agent or tap a suggested action to initiate a native action on the device.- Parameters:
suggestions- suggestions ornullfor none
-
getText
public java.lang.String getText()
Text encoded in UTF-8.- Returns:
- value or
nullfor none
-
setText
public AgentContentMessage setText(java.lang.String text)
Text encoded in UTF-8.- Parameters:
text- text ornullfor none
-
set
public AgentContentMessage set(java.lang.String fieldName, java.lang.Object value)
- Overrides:
setin classcom.google.api.client.json.GenericJson
-
clone
public AgentContentMessage clone()
- Overrides:
clonein classcom.google.api.client.json.GenericJson
-
-