Class CarouselCard

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

    public final class CarouselCard
    extends com.google.api.client.json.GenericJson
    Carousel of cards.

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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      CarouselCard clone()  
      java.util.List<CardContent> getCardContents()
      The list of contents for each card in the carousel.
      java.lang.String getCardWidth()
      The width of the cards in the carousel.
      CarouselCard set​(java.lang.String fieldName, java.lang.Object value)  
      CarouselCard setCardContents​(java.util.List<CardContent> cardContents)
      The list of contents for each card in the carousel.
      CarouselCard setCardWidth​(java.lang.String cardWidth)
      The width of the cards in the carousel.
      • 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

      • CarouselCard

        public CarouselCard()
    • Method Detail

      • getCardContents

        public java.util.List<CardContent> getCardContents()
        The list of contents for each card in the carousel. A carousel can have a minimum of 2 cards and a maximum 10 cards.
        Returns:
        value or null for none
      • setCardContents

        public CarouselCard setCardContents​(java.util.List<CardContent> cardContents)
        The list of contents for each card in the carousel. A carousel can have a minimum of 2 cards and a maximum 10 cards.
        Parameters:
        cardContents - cardContents or null for none
      • getCardWidth

        public java.lang.String getCardWidth()
        The width of the cards in the carousel.
        Returns:
        value or null for none
      • setCardWidth

        public CarouselCard setCardWidth​(java.lang.String cardWidth)
        The width of the cards in the carousel.
        Parameters:
        cardWidth - cardWidth or null for none
      • set

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

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