Class 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.GenericJson
    When 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
      • 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
      SuggestedReply()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      SuggestedReply clone()  
      java.lang.String getPostbackData()
      The base64-encoded payload that the agent receives in a user event when the user taps the suggested reply.
      java.lang.String getText()
      Text that is shown in the suggested reply and sent back to the agent when the user taps it.
      SuggestedReply set​(java.lang.String fieldName, java.lang.Object value)  
      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.
      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.
      • 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

      • SuggestedReply

        public SuggestedReply()
    • 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 null for 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 or null for 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 null for 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 or null for none
      • set

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

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