Class AgentEvent
- 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.AgentEvent
-
- All Implemented Interfaces:
java.lang.Cloneable,java.util.Map<java.lang.String,java.lang.Object>
public final class AgentEvent extends com.google.api.client.json.GenericJsonAn event from the agent to the 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 AgentEvent()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AgentEventclone()java.lang.StringgetEventType()The type of the agent event.java.lang.StringgetMessageId()The ID of the user message that the agent event pertains to.java.lang.StringgetName()This field is set by the RBM platform.java.lang.StringgetSendTime()This field is set by the RBM platform.AgentEventset(java.lang.String fieldName, java.lang.Object value)AgentEventsetEventType(java.lang.String eventType)The type of the agent event.AgentEventsetMessageId(java.lang.String messageId)The ID of the user message that the agent event pertains to.AgentEventsetName(java.lang.String name)This field is set by the RBM platform.AgentEventsetSendTime(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
-
getEventType
public java.lang.String getEventType()
The type of the agent event.- Returns:
- value or
nullfor none
-
setEventType
public AgentEvent setEventType(java.lang.String eventType)
The type of the agent event.- Parameters:
eventType- eventType ornullfor none
-
getMessageId
public java.lang.String getMessageId()
The ID of the user message that the agent event pertains to. This field is only applicable for agent events of type READ.- Returns:
- value or
nullfor none
-
setMessageId
public AgentEvent setMessageId(java.lang.String messageId)
The ID of the user message that the agent event pertains to. This field is only applicable for agent events of type READ.- Parameters:
messageId- messageId ornullfor none
-
getName
public java.lang.String getName()
This field is set by the RBM platform. Do not include it when creating an agent event. The field resolves "phones/{E.164}/agentEvents/{eventId}", where {E.164} is the user's phone number in E.164 format and {eventId} is the agent-assigned ID of the agent event.- Returns:
- value or
nullfor none
-
setName
public AgentEvent setName(java.lang.String name)
This field is set by the RBM platform. Do not include it when creating an agent event. The field resolves "phones/{E.164}/agentEvents/{eventId}", where {E.164} is the user's phone number in E.164 format and {eventId} is the agent-assigned ID of the agent event.- 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 event is sent to the user.- Returns:
- value or
nullfor none
-
setSendTime
public AgentEvent 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 event is sent to the user.- Parameters:
sendTime- sendTime ornullfor none
-
set
public AgentEvent set(java.lang.String fieldName, java.lang.Object value)
- Overrides:
setin classcom.google.api.client.json.GenericJson
-
clone
public AgentEvent clone()
- Overrides:
clonein classcom.google.api.client.json.GenericJson
-
-