Class Suggestion

  • All Implemented Interfaces:
    java.lang.Cloneable, java.util.Map<java.lang.String,​java.lang.Object>

    public final class Suggestion
    extends com.google.api.client.json.GenericJson
    A suggested reply or a suggested action included within a rich card or within a suggestion chip list.

    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
      Suggestion()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Suggestion clone()  
      SuggestedAction getAction()
      Users can tap a suggested action to initiate the corresponding native action on the device.
      SuggestedReply getReply()
      Users can tap a suggested reply to send the text reply back to the agent.
      Suggestion set​(java.lang.String fieldName, java.lang.Object value)  
      Suggestion setAction​(SuggestedAction action)
      Users can tap a suggested action to initiate the corresponding native action on the device.
      Suggestion setReply​(SuggestedReply reply)
      Users can tap a suggested reply to send the text reply back to the agent.
      • 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

      • Suggestion

        public Suggestion()
    • Method Detail

      • getAction

        public SuggestedAction getAction()
        Users can tap a suggested action to initiate the corresponding native action on the device.
        Returns:
        value or null for none
      • setAction

        public Suggestion setAction​(SuggestedAction action)
        Users can tap a suggested action to initiate the corresponding native action on the device.
        Parameters:
        action - action or null for none
      • getReply

        public SuggestedReply getReply()
        Users can tap a suggested reply to send the text reply back to the agent.
        Returns:
        value or null for none
      • setReply

        public Suggestion setReply​(SuggestedReply reply)
        Users can tap a suggested reply to send the text reply back to the agent.
        Parameters:
        reply - reply or null for none
      • set

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

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