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()
Returns
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>
|
Returns
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;
Parameter
Returns
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;
Parameter
Returns
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;
Parameters
Returns
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;
Parameters
Returns
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;
Returns
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
|
Returns
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Intent.Message.RbmCarouselCard.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public Intent.Message.RbmCarouselCard build()
Returns
buildPartial()
public Intent.Message.RbmCarouselCard buildPartial()
Returns
clear()
public Intent.Message.RbmCarouselCard.Builder clear()
Returns
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;
Returns
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;
Returns
clearField(Descriptors.FieldDescriptor field)
public Intent.Message.RbmCarouselCard.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public Intent.Message.RbmCarouselCard.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clone()
public Intent.Message.RbmCarouselCard.Builder clone()
Returns
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
|
Returns
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
|
Returns
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;
Returns
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
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;
Returns
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
|
Returns
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;
Returns
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()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(Intent.Message.RbmCarouselCard other)
public Intent.Message.RbmCarouselCard.Builder mergeFrom(Intent.Message.RbmCarouselCard other)
Parameter
Returns
public Intent.Message.RbmCarouselCard.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public Intent.Message.RbmCarouselCard.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Intent.Message.RbmCarouselCard.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
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
|
Returns
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;
Parameters
Returns
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;
Parameters
Returns
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;
Parameter
Returns
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.
|
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public Intent.Message.RbmCarouselCard.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Intent.Message.RbmCarouselCard.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final Intent.Message.RbmCarouselCard.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides