Class Carousel.CarouselCard.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Carousel.CarouselCard.Builder>
com.google.apps.card.v1.Carousel.CarouselCard.Builder
All Implemented Interfaces:
Carousel.CarouselCardOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Carousel.CarouselCard

public static final class Carousel.CarouselCard.Builder extends com.google.protobuf.GeneratedMessage.Builder<Carousel.CarouselCard.Builder> implements Carousel.CarouselCardOrBuilder
 A card that can be displayed as a carousel item.
 [Google Chat apps](https://developers.google.com/workspace/chat):
 
Protobuf type google.apps.card.v1.Carousel.CarouselCard
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<Carousel.CarouselCard.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<Carousel.CarouselCard.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<Carousel.CarouselCard.Builder>
    • getDefaultInstanceForType

      public Carousel.CarouselCard getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public Carousel.CarouselCard build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public Carousel.CarouselCard buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public Carousel.CarouselCard.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Carousel.CarouselCard.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<Carousel.CarouselCard.Builder>
    • mergeFrom

      public Carousel.CarouselCard.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Carousel.CarouselCard.Builder>
      Throws:
      IOException
    • getWidgetsList

      public List<Card.NestedWidget> getWidgetsList()
       A list of widgets displayed in the carousel card. The widgets are
       displayed in the order that they are specified.
       
      repeated .google.apps.card.v1.Card.NestedWidget widgets = 1;
      Specified by:
      getWidgetsList in interface Carousel.CarouselCardOrBuilder
    • getWidgetsCount

      public int getWidgetsCount()
       A list of widgets displayed in the carousel card. The widgets are
       displayed in the order that they are specified.
       
      repeated .google.apps.card.v1.Card.NestedWidget widgets = 1;
      Specified by:
      getWidgetsCount in interface Carousel.CarouselCardOrBuilder
    • getWidgets

      public Card.NestedWidget getWidgets(int index)
       A list of widgets displayed in the carousel card. The widgets are
       displayed in the order that they are specified.
       
      repeated .google.apps.card.v1.Card.NestedWidget widgets = 1;
      Specified by:
      getWidgets in interface Carousel.CarouselCardOrBuilder
    • setWidgets

      public Carousel.CarouselCard.Builder setWidgets(int index, Card.NestedWidget value)
       A list of widgets displayed in the carousel card. The widgets are
       displayed in the order that they are specified.
       
      repeated .google.apps.card.v1.Card.NestedWidget widgets = 1;
    • setWidgets

      public Carousel.CarouselCard.Builder setWidgets(int index, Card.NestedWidget.Builder builderForValue)
       A list of widgets displayed in the carousel card. The widgets are
       displayed in the order that they are specified.
       
      repeated .google.apps.card.v1.Card.NestedWidget widgets = 1;
    • addWidgets

       A list of widgets displayed in the carousel card. The widgets are
       displayed in the order that they are specified.
       
      repeated .google.apps.card.v1.Card.NestedWidget widgets = 1;
    • addWidgets

      public Carousel.CarouselCard.Builder addWidgets(int index, Card.NestedWidget value)
       A list of widgets displayed in the carousel card. The widgets are
       displayed in the order that they are specified.
       
      repeated .google.apps.card.v1.Card.NestedWidget widgets = 1;
    • addWidgets

      public Carousel.CarouselCard.Builder addWidgets(Card.NestedWidget.Builder builderForValue)
       A list of widgets displayed in the carousel card. The widgets are
       displayed in the order that they are specified.
       
      repeated .google.apps.card.v1.Card.NestedWidget widgets = 1;
    • addWidgets

      public Carousel.CarouselCard.Builder addWidgets(int index, Card.NestedWidget.Builder builderForValue)
       A list of widgets displayed in the carousel card. The widgets are
       displayed in the order that they are specified.
       
      repeated .google.apps.card.v1.Card.NestedWidget widgets = 1;
    • addAllWidgets

      public Carousel.CarouselCard.Builder addAllWidgets(Iterable<? extends Card.NestedWidget> values)
       A list of widgets displayed in the carousel card. The widgets are
       displayed in the order that they are specified.
       
      repeated .google.apps.card.v1.Card.NestedWidget widgets = 1;
    • clearWidgets

      public Carousel.CarouselCard.Builder clearWidgets()
       A list of widgets displayed in the carousel card. The widgets are
       displayed in the order that they are specified.
       
      repeated .google.apps.card.v1.Card.NestedWidget widgets = 1;
    • removeWidgets

      public Carousel.CarouselCard.Builder removeWidgets(int index)
       A list of widgets displayed in the carousel card. The widgets are
       displayed in the order that they are specified.
       
      repeated .google.apps.card.v1.Card.NestedWidget widgets = 1;
    • getWidgetsBuilder

      public Card.NestedWidget.Builder getWidgetsBuilder(int index)
       A list of widgets displayed in the carousel card. The widgets are
       displayed in the order that they are specified.
       
      repeated .google.apps.card.v1.Card.NestedWidget widgets = 1;
    • getWidgetsOrBuilder

      public Card.NestedWidgetOrBuilder getWidgetsOrBuilder(int index)
       A list of widgets displayed in the carousel card. The widgets are
       displayed in the order that they are specified.
       
      repeated .google.apps.card.v1.Card.NestedWidget widgets = 1;
      Specified by:
      getWidgetsOrBuilder in interface Carousel.CarouselCardOrBuilder
    • getWidgetsOrBuilderList

      public List<? extends Card.NestedWidgetOrBuilder> getWidgetsOrBuilderList()
       A list of widgets displayed in the carousel card. The widgets are
       displayed in the order that they are specified.
       
      repeated .google.apps.card.v1.Card.NestedWidget widgets = 1;
      Specified by:
      getWidgetsOrBuilderList in interface Carousel.CarouselCardOrBuilder
    • addWidgetsBuilder

      public Card.NestedWidget.Builder addWidgetsBuilder()
       A list of widgets displayed in the carousel card. The widgets are
       displayed in the order that they are specified.
       
      repeated .google.apps.card.v1.Card.NestedWidget widgets = 1;
    • addWidgetsBuilder

      public Card.NestedWidget.Builder addWidgetsBuilder(int index)
       A list of widgets displayed in the carousel card. The widgets are
       displayed in the order that they are specified.
       
      repeated .google.apps.card.v1.Card.NestedWidget widgets = 1;
    • getWidgetsBuilderList

      public List<Card.NestedWidget.Builder> getWidgetsBuilderList()
       A list of widgets displayed in the carousel card. The widgets are
       displayed in the order that they are specified.
       
      repeated .google.apps.card.v1.Card.NestedWidget widgets = 1;
    • getFooterWidgetsList

      public List<Card.NestedWidget> getFooterWidgetsList()
       A list of widgets displayed at the bottom of the carousel card. The
       widgets are displayed in the order that they are specified.
       
      repeated .google.apps.card.v1.Card.NestedWidget footer_widgets = 2;
      Specified by:
      getFooterWidgetsList in interface Carousel.CarouselCardOrBuilder
    • getFooterWidgetsCount

      public int getFooterWidgetsCount()
       A list of widgets displayed at the bottom of the carousel card. The
       widgets are displayed in the order that they are specified.
       
      repeated .google.apps.card.v1.Card.NestedWidget footer_widgets = 2;
      Specified by:
      getFooterWidgetsCount in interface Carousel.CarouselCardOrBuilder
    • getFooterWidgets

      public Card.NestedWidget getFooterWidgets(int index)
       A list of widgets displayed at the bottom of the carousel card. The
       widgets are displayed in the order that they are specified.
       
      repeated .google.apps.card.v1.Card.NestedWidget footer_widgets = 2;
      Specified by:
      getFooterWidgets in interface Carousel.CarouselCardOrBuilder
    • setFooterWidgets

      public Carousel.CarouselCard.Builder setFooterWidgets(int index, Card.NestedWidget value)
       A list of widgets displayed at the bottom of the carousel card. The
       widgets are displayed in the order that they are specified.
       
      repeated .google.apps.card.v1.Card.NestedWidget footer_widgets = 2;
    • setFooterWidgets

      public Carousel.CarouselCard.Builder setFooterWidgets(int index, Card.NestedWidget.Builder builderForValue)
       A list of widgets displayed at the bottom of the carousel card. The
       widgets are displayed in the order that they are specified.
       
      repeated .google.apps.card.v1.Card.NestedWidget footer_widgets = 2;
    • addFooterWidgets

      public Carousel.CarouselCard.Builder addFooterWidgets(Card.NestedWidget value)
       A list of widgets displayed at the bottom of the carousel card. The
       widgets are displayed in the order that they are specified.
       
      repeated .google.apps.card.v1.Card.NestedWidget footer_widgets = 2;
    • addFooterWidgets

      public Carousel.CarouselCard.Builder addFooterWidgets(int index, Card.NestedWidget value)
       A list of widgets displayed at the bottom of the carousel card. The
       widgets are displayed in the order that they are specified.
       
      repeated .google.apps.card.v1.Card.NestedWidget footer_widgets = 2;
    • addFooterWidgets

      public Carousel.CarouselCard.Builder addFooterWidgets(Card.NestedWidget.Builder builderForValue)
       A list of widgets displayed at the bottom of the carousel card. The
       widgets are displayed in the order that they are specified.
       
      repeated .google.apps.card.v1.Card.NestedWidget footer_widgets = 2;
    • addFooterWidgets

      public Carousel.CarouselCard.Builder addFooterWidgets(int index, Card.NestedWidget.Builder builderForValue)
       A list of widgets displayed at the bottom of the carousel card. The
       widgets are displayed in the order that they are specified.
       
      repeated .google.apps.card.v1.Card.NestedWidget footer_widgets = 2;
    • addAllFooterWidgets

      public Carousel.CarouselCard.Builder addAllFooterWidgets(Iterable<? extends Card.NestedWidget> values)
       A list of widgets displayed at the bottom of the carousel card. The
       widgets are displayed in the order that they are specified.
       
      repeated .google.apps.card.v1.Card.NestedWidget footer_widgets = 2;
    • clearFooterWidgets

      public Carousel.CarouselCard.Builder clearFooterWidgets()
       A list of widgets displayed at the bottom of the carousel card. The
       widgets are displayed in the order that they are specified.
       
      repeated .google.apps.card.v1.Card.NestedWidget footer_widgets = 2;
    • removeFooterWidgets

      public Carousel.CarouselCard.Builder removeFooterWidgets(int index)
       A list of widgets displayed at the bottom of the carousel card. The
       widgets are displayed in the order that they are specified.
       
      repeated .google.apps.card.v1.Card.NestedWidget footer_widgets = 2;
    • getFooterWidgetsBuilder

      public Card.NestedWidget.Builder getFooterWidgetsBuilder(int index)
       A list of widgets displayed at the bottom of the carousel card. The
       widgets are displayed in the order that they are specified.
       
      repeated .google.apps.card.v1.Card.NestedWidget footer_widgets = 2;
    • getFooterWidgetsOrBuilder

      public Card.NestedWidgetOrBuilder getFooterWidgetsOrBuilder(int index)
       A list of widgets displayed at the bottom of the carousel card. The
       widgets are displayed in the order that they are specified.
       
      repeated .google.apps.card.v1.Card.NestedWidget footer_widgets = 2;
      Specified by:
      getFooterWidgetsOrBuilder in interface Carousel.CarouselCardOrBuilder
    • getFooterWidgetsOrBuilderList

      public List<? extends Card.NestedWidgetOrBuilder> getFooterWidgetsOrBuilderList()
       A list of widgets displayed at the bottom of the carousel card. The
       widgets are displayed in the order that they are specified.
       
      repeated .google.apps.card.v1.Card.NestedWidget footer_widgets = 2;
      Specified by:
      getFooterWidgetsOrBuilderList in interface Carousel.CarouselCardOrBuilder
    • addFooterWidgetsBuilder

      public Card.NestedWidget.Builder addFooterWidgetsBuilder()
       A list of widgets displayed at the bottom of the carousel card. The
       widgets are displayed in the order that they are specified.
       
      repeated .google.apps.card.v1.Card.NestedWidget footer_widgets = 2;
    • addFooterWidgetsBuilder

      public Card.NestedWidget.Builder addFooterWidgetsBuilder(int index)
       A list of widgets displayed at the bottom of the carousel card. The
       widgets are displayed in the order that they are specified.
       
      repeated .google.apps.card.v1.Card.NestedWidget footer_widgets = 2;
    • getFooterWidgetsBuilderList

      public List<Card.NestedWidget.Builder> getFooterWidgetsBuilderList()
       A list of widgets displayed at the bottom of the carousel card. The
       widgets are displayed in the order that they are specified.
       
      repeated .google.apps.card.v1.Card.NestedWidget footer_widgets = 2;