public static final class Carousel.Builder extends GeneratedMessageV3.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.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
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
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Carousel.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
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;
clearField(Descriptors.FieldDescriptor field)
public Carousel.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public Carousel.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clone()
public Carousel.Builder clone()
Overrides
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 GeneratedMessageV3.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
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Carousel.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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;
setField(Descriptors.FieldDescriptor field, Object value)
public Carousel.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Carousel.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final Carousel.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides