Class AgentMessage
- 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.AgentMessage
-
- All Implemented Interfaces:
java.lang.Cloneable,java.util.Map<java.lang.String,java.lang.Object>
public final class AgentMessage extends com.google.api.client.json.GenericJsonA 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 AgentMessage()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AgentMessageclone()AgentContentMessagegetContentMessage()The content of the agent message.java.lang.StringgetName()This field is set by the RBM platform.java.lang.StringgetSendTime()This field is set by the RBM platform.AgentMessageset(java.lang.String fieldName, java.lang.Object value)AgentMessagesetContentMessage(AgentContentMessage contentMessage)The content of the agent message.AgentMessagesetName(java.lang.String name)This field is set by the RBM platform.AgentMessagesetSendTime(java.lang.String sendTime)This field is set by the RBM platform.-
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
-
getContentMessage
public AgentContentMessage getContentMessage()
The content of the agent message.- Returns:
- value or
nullfor none
-
setContentMessage
public AgentMessage setContentMessage(AgentContentMessage contentMessage)
The content of the agent message.- Parameters:
contentMessage- contentMessage ornullfor none
-
getName
public java.lang.String getName()
This field is set by the RBM platform. Do not include it when creating an agent message. The field resolves "phones/{E.164}/agentMessages/{messageId}", where {E.164} is the user's phone number in E.164 format and {messageId} is the agent-assigned ID of the agent message.- Returns:
- value or
nullfor none
-
setName
public AgentMessage setName(java.lang.String name)
This field is set by the RBM platform. Do not include it when creating an agent message. The field resolves "phones/{E.164}/agentMessages/{messageId}", where {E.164} is the user's phone number in E.164 format and {messageId} is the agent-assigned ID of the agent message.- Parameters:
name- name ornullfor none
-
getSendTime
public java.lang.String getSendTime()
This field is set by the RBM platform. Do not include it when creating an agent message. The field resolves the time when the message is sent to the user.- Returns:
- value or
nullfor none
-
setSendTime
public AgentMessage setSendTime(java.lang.String sendTime)
This field is set by the RBM platform. Do not include it when creating an agent message. The field resolves the time when the message is sent to the user.- Parameters:
sendTime- sendTime ornullfor none
-
set
public AgentMessage set(java.lang.String fieldName, java.lang.Object value)
- Overrides:
setin classcom.google.api.client.json.GenericJson
-
clone
public AgentMessage clone()
- Overrides:
clonein classcom.google.api.client.json.GenericJson
-
-