Class 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.GenericJson
    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
      • Nested classes/interfaces inherited from class java.util.AbstractMap

        java.util.AbstractMap.SimpleEntry<K extends java.lang.Object,​V extends java.lang.Object>, java.util.AbstractMap.SimpleImmutableEntry<K extends java.lang.Object,​V extends java.lang.Object>
      • Nested classes/interfaces inherited from interface java.util.Map

        java.util.Map.Entry<K extends java.lang.Object,​V extends java.lang.Object>
    • Constructor Summary

      Constructors 
      Constructor Description
      AgentMessage()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      AgentMessage clone()  
      AgentContentMessage getContentMessage()
      The content of the agent message.
      java.lang.String getName()
      This field is set by the RBM platform.
      java.lang.String getSendTime()
      This field is set by the RBM platform.
      AgentMessage set​(java.lang.String fieldName, java.lang.Object value)  
      AgentMessage setContentMessage​(AgentContentMessage contentMessage)
      The content of the agent message.
      AgentMessage setName​(java.lang.String name)
      This field is set by the RBM platform.
      AgentMessage setSendTime​(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
      • Methods inherited from class java.lang.Object

        finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.util.Map

        compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
    • Constructor Detail

      • AgentMessage

        public AgentMessage()
    • Method Detail

      • getContentMessage

        public AgentContentMessage getContentMessage()
        The content of the agent message.
        Returns:
        value or null for none
      • setContentMessage

        public AgentMessage setContentMessage​(AgentContentMessage contentMessage)
        The content of the agent message.
        Parameters:
        contentMessage - contentMessage or null for 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 null for 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 or null for 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 null for 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 or null for none
      • set

        public AgentMessage set​(java.lang.String fieldName,
                                java.lang.Object value)
        Overrides:
        set in class com.google.api.client.json.GenericJson
      • clone

        public AgentMessage clone()
        Overrides:
        clone in class com.google.api.client.json.GenericJson