public static final class Intent.Message.RbmCarouselCard.Builder extends GeneratedMessageV3.Builder<Intent.Message.RbmCarouselCard.Builder> implements Intent.Message.RbmCarouselCardOrBuilder
Carousel Rich Business Messaging (RBM) rich card.
Rich cards allow you to respond to users with more vivid content, e.g.
with media and suggestions.
If you want to show a single card with more control over the layout,
please use
RbmStandaloneCard
instead.
Protobuf type google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
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
addAllCardContents(Iterable<? extends Intent.Message.RbmCardContent> values)
public Intent.Message.RbmCarouselCard.Builder addAllCardContents(Iterable<? extends Intent.Message.RbmCardContent> values)
Required. The cards in the carousel. A carousel must have at least
2 cards and at most 10.
repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent card_contents = 2;
Parameter |
Name |
Description |
values |
Iterable<? extends com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent>
|
addCardContents(Intent.Message.RbmCardContent value)
public Intent.Message.RbmCarouselCard.Builder addCardContents(Intent.Message.RbmCardContent value)
Required. The cards in the carousel. A carousel must have at least
2 cards and at most 10.
repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent card_contents = 2;
addCardContents(Intent.Message.RbmCardContent.Builder builderForValue)
public Intent.Message.RbmCarouselCard.Builder addCardContents(Intent.Message.RbmCardContent.Builder builderForValue)
Required. The cards in the carousel. A carousel must have at least
2 cards and at most 10.
repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent card_contents = 2;
addCardContents(int index, Intent.Message.RbmCardContent value)
public Intent.Message.RbmCarouselCard.Builder addCardContents(int index, Intent.Message.RbmCardContent value)
Required. The cards in the carousel. A carousel must have at least
2 cards and at most 10.
repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent card_contents = 2;
addCardContents(int index, Intent.Message.RbmCardContent.Builder builderForValue)
public Intent.Message.RbmCarouselCard.Builder addCardContents(int index, Intent.Message.RbmCardContent.Builder builderForValue)
Required. The cards in the carousel. A carousel must have at least
2 cards and at most 10.
repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent card_contents = 2;
addCardContentsBuilder()
public Intent.Message.RbmCardContent.Builder addCardContentsBuilder()
Required. The cards in the carousel. A carousel must have at least
2 cards and at most 10.
repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent card_contents = 2;
addCardContentsBuilder(int index)
public Intent.Message.RbmCardContent.Builder addCardContentsBuilder(int index)
Required. The cards in the carousel. A carousel must have at least
2 cards and at most 10.
repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent card_contents = 2;
Parameter |
Name |
Description |
index |
int
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Intent.Message.RbmCarouselCard.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public Intent.Message.RbmCarouselCard build()
buildPartial()
public Intent.Message.RbmCarouselCard buildPartial()
clear()
public Intent.Message.RbmCarouselCard.Builder clear()
Overrides
clearCardContents()
public Intent.Message.RbmCarouselCard.Builder clearCardContents()
Required. The cards in the carousel. A carousel must have at least
2 cards and at most 10.
repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent card_contents = 2;
clearCardWidth()
public Intent.Message.RbmCarouselCard.Builder clearCardWidth()
Required. The width of the cards in the carousel.
.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard.CardWidth card_width = 1;
clearField(Descriptors.FieldDescriptor field)
public Intent.Message.RbmCarouselCard.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public Intent.Message.RbmCarouselCard.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clone()
public Intent.Message.RbmCarouselCard.Builder clone()
Overrides
getCardContents(int index)
public Intent.Message.RbmCardContent getCardContents(int index)
Required. The cards in the carousel. A carousel must have at least
2 cards and at most 10.
repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent card_contents = 2;
Parameter |
Name |
Description |
index |
int
|
getCardContentsBuilder(int index)
public Intent.Message.RbmCardContent.Builder getCardContentsBuilder(int index)
Required. The cards in the carousel. A carousel must have at least
2 cards and at most 10.
repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent card_contents = 2;
Parameter |
Name |
Description |
index |
int
|
getCardContentsBuilderList()
public List<Intent.Message.RbmCardContent.Builder> getCardContentsBuilderList()
Required. The cards in the carousel. A carousel must have at least
2 cards and at most 10.
repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent card_contents = 2;
getCardContentsCount()
public int getCardContentsCount()
Required. The cards in the carousel. A carousel must have at least
2 cards and at most 10.
repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent card_contents = 2;
Returns |
Type |
Description |
int |
|
getCardContentsList()
public List<Intent.Message.RbmCardContent> getCardContentsList()
Required. The cards in the carousel. A carousel must have at least
2 cards and at most 10.
repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent card_contents = 2;
getCardContentsOrBuilder(int index)
public Intent.Message.RbmCardContentOrBuilder getCardContentsOrBuilder(int index)
Required. The cards in the carousel. A carousel must have at least
2 cards and at most 10.
repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent card_contents = 2;
Parameter |
Name |
Description |
index |
int
|
getCardContentsOrBuilderList()
public List<? extends Intent.Message.RbmCardContentOrBuilder> getCardContentsOrBuilderList()
Required. The cards in the carousel. A carousel must have at least
2 cards and at most 10.
repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent card_contents = 2;
Returns |
Type |
Description |
List<? extends com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContentOrBuilder> |
|
getCardWidth()
public Intent.Message.RbmCarouselCard.CardWidth getCardWidth()
Required. The width of the cards in the carousel.
.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard.CardWidth card_width = 1;
getCardWidthValue()
public int getCardWidthValue()
Required. The width of the cards in the carousel.
.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard.CardWidth card_width = 1;
Returns |
Type |
Description |
int |
The enum numeric value on the wire for cardWidth.
|
getDefaultInstanceForType()
public Intent.Message.RbmCarouselCard getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(Intent.Message.RbmCarouselCard other)
public Intent.Message.RbmCarouselCard.Builder mergeFrom(Intent.Message.RbmCarouselCard other)
public Intent.Message.RbmCarouselCard.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public Intent.Message.RbmCarouselCard.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Intent.Message.RbmCarouselCard.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
removeCardContents(int index)
public Intent.Message.RbmCarouselCard.Builder removeCardContents(int index)
Required. The cards in the carousel. A carousel must have at least
2 cards and at most 10.
repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent card_contents = 2;
Parameter |
Name |
Description |
index |
int
|
setCardContents(int index, Intent.Message.RbmCardContent value)
public Intent.Message.RbmCarouselCard.Builder setCardContents(int index, Intent.Message.RbmCardContent value)
Required. The cards in the carousel. A carousel must have at least
2 cards and at most 10.
repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent card_contents = 2;
setCardContents(int index, Intent.Message.RbmCardContent.Builder builderForValue)
public Intent.Message.RbmCarouselCard.Builder setCardContents(int index, Intent.Message.RbmCardContent.Builder builderForValue)
Required. The cards in the carousel. A carousel must have at least
2 cards and at most 10.
repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent card_contents = 2;
setCardWidth(Intent.Message.RbmCarouselCard.CardWidth value)
public Intent.Message.RbmCarouselCard.Builder setCardWidth(Intent.Message.RbmCarouselCard.CardWidth value)
Required. The width of the cards in the carousel.
.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard.CardWidth card_width = 1;
setCardWidthValue(int value)
public Intent.Message.RbmCarouselCard.Builder setCardWidthValue(int value)
Required. The width of the cards in the carousel.
.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCarouselCard.CardWidth card_width = 1;
Parameter |
Name |
Description |
value |
int
The enum numeric value on the wire for cardWidth to set.
|
setField(Descriptors.FieldDescriptor field, Object value)
public Intent.Message.RbmCarouselCard.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Intent.Message.RbmCarouselCard.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final Intent.Message.RbmCarouselCard.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides