Class CardContent

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

    public final class CardContent
    extends com.google.api.client.json.GenericJson
    Card content

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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      CardContent clone()  
      java.lang.String getDescription()
      (Optional) Description of the card.
      Media getMedia()
      (Optional) Media (image, GIF, video) to include in the card.
      java.util.List<Suggestion> getSuggestions()
      (Optional) List of suggestions to include in the card.
      java.lang.String getTitle()
      (Optional) Title of the card.
      CardContent set​(java.lang.String fieldName, java.lang.Object value)  
      CardContent setDescription​(java.lang.String description)
      (Optional) Description of the card.
      CardContent setMedia​(Media media)
      (Optional) Media (image, GIF, video) to include in the card.
      CardContent setSuggestions​(java.util.List<Suggestion> suggestions)
      (Optional) List of suggestions to include in the card.
      CardContent setTitle​(java.lang.String title)
      (Optional) Title of the card.
      • 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

      • CardContent

        public CardContent()
    • Method Detail

      • getDescription

        public java.lang.String getDescription()
        (Optional) Description of the card. Maximum 2000 characters.
        Returns:
        value or null for none
      • setDescription

        public CardContent setDescription​(java.lang.String description)
        (Optional) Description of the card. Maximum 2000 characters.
        Parameters:
        description - description or null for none
      • getMedia

        public Media getMedia()
        (Optional) Media (image, GIF, video) to include in the card.
        Returns:
        value or null for none
      • setMedia

        public CardContent setMedia​(Media media)
        (Optional) Media (image, GIF, video) to include in the card.
        Parameters:
        media - media or null for none
      • getSuggestions

        public java.util.List<Suggestion> getSuggestions()
        (Optional) List of suggestions to include in the card. Maximum 4 suggestions.
        Returns:
        value or null for none
      • setSuggestions

        public CardContent setSuggestions​(java.util.List<Suggestion> suggestions)
        (Optional) List of suggestions to include in the card. Maximum 4 suggestions.
        Parameters:
        suggestions - suggestions or null for none
      • getTitle

        public java.lang.String getTitle()
        (Optional) Title of the card. Maximum 200 characters.
        Returns:
        value or null for none
      • setTitle

        public CardContent setTitle​(java.lang.String title)
        (Optional) Title of the card. Maximum 200 characters.
        Parameters:
        title - title or null for none
      • set

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

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