Class Carousel.Builder

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

public static final class Carousel.Builder extends com.google.protobuf.GeneratedMessage.Builder<Carousel.Builder> implements CarouselOrBuilder
 A carousel, also known as a slider, rotates and displays a list of widgets in
 a slideshow format, with buttons navigating to the previous or next widget.

 For example, this is a JSON representation of a carousel that contains three
 text paragraph widgets.

 ```
 {
 "carouselCards": [
 {
 "widgets": [
 {
 "textParagraph": {
 "text": "First text paragraph in carousel",
 }
 }
 ]
 },
 {
 "widgets": [
 {
 "textParagraph": {
 "text": "Second text paragraph in carousel",
 }
 }
 ]
 },
 {
 "widgets": [
 {
 "textParagraph": {
 "text": "Third text paragraph in carousel",
 }
 }
 ]
 }
 ]
 }
 ```

 [Google Chat apps](https://developers.google.com/workspace/chat):
 
Protobuf type google.apps.card.v1.Carousel
  • 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.Builder>
    • clear

      public Carousel.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.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.Builder>
    • getDefaultInstanceForType

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

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

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

      public Carousel.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.Builder>
    • mergeFrom

      public Carousel.Builder mergeFrom(Carousel other)
    • isInitialized

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

      public Carousel.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.Builder>
      Throws:
      IOException
    • getCarouselCardsList

      public List<Carousel.CarouselCard> getCarouselCardsList()
       A list of cards included in the carousel.
       
      repeated .google.apps.card.v1.Carousel.CarouselCard carousel_cards = 4;
      Specified by:
      getCarouselCardsList in interface CarouselOrBuilder
    • getCarouselCardsCount

      public int getCarouselCardsCount()
       A list of cards included in the carousel.
       
      repeated .google.apps.card.v1.Carousel.CarouselCard carousel_cards = 4;
      Specified by:
      getCarouselCardsCount in interface CarouselOrBuilder
    • getCarouselCards

      public Carousel.CarouselCard getCarouselCards(int index)
       A list of cards included in the carousel.
       
      repeated .google.apps.card.v1.Carousel.CarouselCard carousel_cards = 4;
      Specified by:
      getCarouselCards in interface CarouselOrBuilder
    • setCarouselCards

      public Carousel.Builder setCarouselCards(int index, Carousel.CarouselCard value)
       A list of cards included in the carousel.
       
      repeated .google.apps.card.v1.Carousel.CarouselCard carousel_cards = 4;
    • setCarouselCards

      public Carousel.Builder setCarouselCards(int index, Carousel.CarouselCard.Builder builderForValue)
       A list of cards included in the carousel.
       
      repeated .google.apps.card.v1.Carousel.CarouselCard carousel_cards = 4;
    • addCarouselCards

      public Carousel.Builder addCarouselCards(Carousel.CarouselCard value)
       A list of cards included in the carousel.
       
      repeated .google.apps.card.v1.Carousel.CarouselCard carousel_cards = 4;
    • addCarouselCards

      public Carousel.Builder addCarouselCards(int index, Carousel.CarouselCard value)
       A list of cards included in the carousel.
       
      repeated .google.apps.card.v1.Carousel.CarouselCard carousel_cards = 4;
    • addCarouselCards

      public Carousel.Builder addCarouselCards(Carousel.CarouselCard.Builder builderForValue)
       A list of cards included in the carousel.
       
      repeated .google.apps.card.v1.Carousel.CarouselCard carousel_cards = 4;
    • addCarouselCards

      public Carousel.Builder addCarouselCards(int index, Carousel.CarouselCard.Builder builderForValue)
       A list of cards included in the carousel.
       
      repeated .google.apps.card.v1.Carousel.CarouselCard carousel_cards = 4;
    • addAllCarouselCards

      public Carousel.Builder addAllCarouselCards(Iterable<? extends Carousel.CarouselCard> values)
       A list of cards included in the carousel.
       
      repeated .google.apps.card.v1.Carousel.CarouselCard carousel_cards = 4;
    • clearCarouselCards

      public Carousel.Builder clearCarouselCards()
       A list of cards included in the carousel.
       
      repeated .google.apps.card.v1.Carousel.CarouselCard carousel_cards = 4;
    • removeCarouselCards

      public Carousel.Builder removeCarouselCards(int index)
       A list of cards included in the carousel.
       
      repeated .google.apps.card.v1.Carousel.CarouselCard carousel_cards = 4;
    • getCarouselCardsBuilder

      public Carousel.CarouselCard.Builder getCarouselCardsBuilder(int index)
       A list of cards included in the carousel.
       
      repeated .google.apps.card.v1.Carousel.CarouselCard carousel_cards = 4;
    • getCarouselCardsOrBuilder

      public Carousel.CarouselCardOrBuilder getCarouselCardsOrBuilder(int index)
       A list of cards included in the carousel.
       
      repeated .google.apps.card.v1.Carousel.CarouselCard carousel_cards = 4;
      Specified by:
      getCarouselCardsOrBuilder in interface CarouselOrBuilder
    • getCarouselCardsOrBuilderList

      public List<? extends Carousel.CarouselCardOrBuilder> getCarouselCardsOrBuilderList()
       A list of cards included in the carousel.
       
      repeated .google.apps.card.v1.Carousel.CarouselCard carousel_cards = 4;
      Specified by:
      getCarouselCardsOrBuilderList in interface CarouselOrBuilder
    • addCarouselCardsBuilder

      public Carousel.CarouselCard.Builder addCarouselCardsBuilder()
       A list of cards included in the carousel.
       
      repeated .google.apps.card.v1.Carousel.CarouselCard carousel_cards = 4;
    • addCarouselCardsBuilder

      public Carousel.CarouselCard.Builder addCarouselCardsBuilder(int index)
       A list of cards included in the carousel.
       
      repeated .google.apps.card.v1.Carousel.CarouselCard carousel_cards = 4;
    • getCarouselCardsBuilderList

      public List<Carousel.CarouselCard.Builder> getCarouselCardsBuilderList()
       A list of cards included in the carousel.
       
      repeated .google.apps.card.v1.Carousel.CarouselCard carousel_cards = 4;