Class Carousel.CarouselCard.Builder (2.65.0)

public static final class Carousel.CarouselCard.Builder extends GeneratedMessage.Builder<Carousel.CarouselCard.Builder> implements Carousel.CarouselCardOrBuilder

A card that can be displayed as a carousel item. Google Chat apps:

Protobuf type google.apps.card.v1.Carousel.CarouselCard

Static Methods

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

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;

Parameter
Name Description
values Iterable<? extends com.google.apps.card.v1.Card.NestedWidget>
Returns
Type Description
Carousel.CarouselCard.Builder
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;

Parameter
Name Description
values Iterable<? extends com.google.apps.card.v1.Card.NestedWidget>
Returns
Type Description
Carousel.CarouselCard.Builder
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;

Parameter
Name Description
value Card.NestedWidget
Returns
Type Description
Carousel.CarouselCard.Builder
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;

Parameter
Name Description
builderForValue Card.NestedWidget.Builder
Returns
Type Description
Carousel.CarouselCard.Builder
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;

Parameters
Name Description
index int
value Card.NestedWidget
Returns
Type Description
Carousel.CarouselCard.Builder
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;

Parameters
Name Description
index int
builderForValue Card.NestedWidget.Builder
Returns
Type Description
Carousel.CarouselCard.Builder
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;

Returns
Type Description
Card.NestedWidget.Builder
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;

Parameter
Name Description
index int
Returns
Type Description
Card.NestedWidget.Builder
public Carousel.CarouselCard.Builder addWidgets(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;

Parameter
Name Description
value Card.NestedWidget
Returns
Type Description
Carousel.CarouselCard.Builder
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;

Parameter
Name Description
builderForValue Card.NestedWidget.Builder
Returns
Type Description
Carousel.CarouselCard.Builder
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;

Parameters
Name Description
index int
value Card.NestedWidget
Returns
Type Description
Carousel.CarouselCard.Builder
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;

Parameters
Name Description
index int
builderForValue Card.NestedWidget.Builder
Returns
Type Description
Carousel.CarouselCard.Builder
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;

Returns
Type Description
Card.NestedWidget.Builder
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;

Parameter
Name Description
index int
Returns
Type Description
Card.NestedWidget.Builder
public Carousel.CarouselCard build()
Returns
Type Description
Carousel.CarouselCard
public Carousel.CarouselCard buildPartial()
Returns
Type Description
Carousel.CarouselCard
public Carousel.CarouselCard.Builder clear()
Returns
Type Description
Carousel.CarouselCard.Builder
Overrides
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;

Returns
Type Description
Carousel.CarouselCard.Builder
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;

Returns
Type Description
Carousel.CarouselCard.Builder
public Carousel.CarouselCard getDefaultInstanceForType()
Returns
Type Description
Carousel.CarouselCard
public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides
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;

Parameter
Name Description
index int
Returns
Type Description
Card.NestedWidget
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;

Parameter
Name Description
index int
Returns
Type Description
Card.NestedWidget.Builder
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;

Returns
Type Description
List<Builder>
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;

Returns
Type Description
int
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;

Returns
Type Description
List<NestedWidget>
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;

Parameter
Name Description
index int
Returns
Type Description
Card.NestedWidgetOrBuilder
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;

Returns
Type Description
List<? extends com.google.apps.card.v1.Card.NestedWidgetOrBuilder>
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;

Parameter
Name Description
index int
Returns
Type Description
Card.NestedWidget
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;

Parameter
Name Description
index int
Returns
Type Description
Card.NestedWidget.Builder
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;

Returns
Type Description
List<Builder>
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;

Returns
Type Description
int
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;

Returns
Type Description
List<NestedWidget>
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;

Parameter
Name Description
index int
Returns
Type Description
Card.NestedWidgetOrBuilder
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;

Returns
Type Description
List<? extends com.google.apps.card.v1.Card.NestedWidgetOrBuilder>
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides
public final boolean isInitialized()
Returns
Type Description
boolean
Overrides
public Carousel.CarouselCard.Builder mergeFrom(Carousel.CarouselCard other)
Parameter
Name Description
other Carousel.CarouselCard
Returns
Type Description
Carousel.CarouselCard.Builder
public Carousel.CarouselCard.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Carousel.CarouselCard.Builder
Overrides
Exceptions
Type Description
IOException
public Carousel.CarouselCard.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Carousel.CarouselCard.Builder
Overrides
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;

Parameter
Name Description
index int
Returns
Type Description
Carousel.CarouselCard.Builder
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;

Parameter
Name Description
index int
Returns
Type Description
Carousel.CarouselCard.Builder
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;

Parameters
Name Description
index int
value Card.NestedWidget
Returns
Type Description
Carousel.CarouselCard.Builder
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;

Parameters
Name Description
index int
builderForValue Card.NestedWidget.Builder
Returns
Type Description
Carousel.CarouselCard.Builder
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;

Parameters
Name Description
index int
value Card.NestedWidget
Returns
Type Description
Carousel.CarouselCard.Builder
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;

Parameters
Name Description
index int
builderForValue Card.NestedWidget.Builder
Returns
Type Description
Carousel.CarouselCard.Builder