public static final class Carousel.Builder extends 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.
<code><code>
{
"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",
}
}
]
}
]
}
</code></code>
Google Chat apps:
Protobuf type google.apps.card.v1.Carousel
Inherited Members
com.google.protobuf.GeneratedMessage.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessage.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessage.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessage.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessage.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
com.google.protobuf.GeneratedMessage.Builder.setUnknownFieldsProto3(com.google.protobuf.UnknownFieldSet)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addAllCarouselCards(Iterable<? extends Carousel.CarouselCard> values)
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;
| Parameter |
| Name |
Description |
values |
Iterable<? extends com.google.apps.card.v1.Carousel.CarouselCard>
|
addCarouselCards(Carousel.CarouselCard value)
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(Carousel.CarouselCard.Builder builderForValue)
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(int index, Carousel.CarouselCard value)
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(int index, Carousel.CarouselCard.Builder builderForValue)
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;
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(int index)
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;
| Parameter |
| Name |
Description |
index |
int
|
build()
buildPartial()
public Carousel buildPartial()
clear()
public Carousel.Builder clear()
Overrides
clearCarouselCards()
public Carousel.Builder clearCarouselCards()
A list of cards included in the carousel.
repeated .google.apps.card.v1.Carousel.CarouselCard carousel_cards = 4;
getCarouselCards(int index)
public Carousel.CarouselCard getCarouselCards(int index)
A list of cards included in the carousel.
repeated .google.apps.card.v1.Carousel.CarouselCard carousel_cards = 4;
| Parameter |
| Name |
Description |
index |
int
|
getCarouselCardsBuilder(int index)
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;
| Parameter |
| Name |
Description |
index |
int
|
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;
getCarouselCardsCount()
public int getCarouselCardsCount()
A list of cards included in the carousel.
repeated .google.apps.card.v1.Carousel.CarouselCard carousel_cards = 4;
| Returns |
| Type |
Description |
int |
|
getCarouselCardsList()
public List<Carousel.CarouselCard> getCarouselCardsList()
A list of cards included in the carousel.
repeated .google.apps.card.v1.Carousel.CarouselCard carousel_cards = 4;
getCarouselCardsOrBuilder(int index)
public Carousel.CarouselCardOrBuilder getCarouselCardsOrBuilder(int index)
A list of cards included in the carousel.
repeated .google.apps.card.v1.Carousel.CarouselCard carousel_cards = 4;
| Parameter |
| Name |
Description |
index |
int
|
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;
| Returns |
| Type |
Description |
List<? extends com.google.apps.card.v1.Carousel.CarouselCardOrBuilder> |
|
getDefaultInstanceForType()
public Carousel getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(Carousel other)
public Carousel.Builder mergeFrom(Carousel other)
| Parameter |
| Name |
Description |
other |
Carousel
|
public Carousel.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public Carousel.Builder mergeFrom(Message other)
| Parameter |
| Name |
Description |
other |
Message
|
Overrides
removeCarouselCards(int index)
public Carousel.Builder removeCarouselCards(int index)
A list of cards included in the carousel.
repeated .google.apps.card.v1.Carousel.CarouselCard carousel_cards = 4;
| Parameter |
| Name |
Description |
index |
int
|
setCarouselCards(int index, Carousel.CarouselCard value)
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(int index, Carousel.CarouselCard.Builder builderForValue)
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;