public static final class Carousel.CarouselCard.Builder extends GeneratedMessageV3.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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
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>
|
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>
|
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;
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;
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;
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;
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;
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
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Carousel.CarouselCard.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
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;
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;
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;
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;
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;
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
|
build()
public Carousel.CarouselCard build()
buildPartial()
public Carousel.CarouselCard buildPartial()
clear()
public Carousel.CarouselCard.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public Carousel.CarouselCard.Builder clearField(Descriptors.FieldDescriptor field)
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;
clearOneof(Descriptors.OneofDescriptor oneof)
public Carousel.CarouselCard.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
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;
clone()
public Carousel.CarouselCard.Builder clone()
Overrides
getDefaultInstanceForType()
public Carousel.CarouselCard getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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
|
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
|
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;
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;
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
|
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
|
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
|
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;
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;
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
|
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> |
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(Carousel.CarouselCard other)
public Carousel.CarouselCard.Builder mergeFrom(Carousel.CarouselCard other)
public Carousel.CarouselCard.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public Carousel.CarouselCard.Builder mergeFrom(Message other)
| Parameter |
| Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Carousel.CarouselCard.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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
|
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
|
setField(Descriptors.FieldDescriptor field, Object value)
public Carousel.CarouselCard.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
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;
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;
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Carousel.CarouselCard.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final Carousel.CarouselCard.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides
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;
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;