Class Intent.Message.BrowseCarouselCard.Builder (4.57.0)

public static final class Intent.Message.BrowseCarouselCard.Builder extends GeneratedMessageV3.Builder<Intent.Message.BrowseCarouselCard.Builder> implements Intent.Message.BrowseCarouselCardOrBuilder

Browse Carousel Card for Actions on Google. https://developers.google.com/actions/assistant/responses#browsing_carousel

Protobuf type google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllItems(Iterable<? extends Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem> values)

public Intent.Message.BrowseCarouselCard.Builder addAllItems(Iterable<? extends Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem> values)

Required. List of items in the Browse Carousel Card. Minimum of two items, maximum of ten.

repeated .google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem items = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem>
Returns
Type Description
Intent.Message.BrowseCarouselCard.Builder

addItems(Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem value)

public Intent.Message.BrowseCarouselCard.Builder addItems(Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem value)

Required. List of items in the Browse Carousel Card. Minimum of two items, maximum of ten.

repeated .google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem items = 1;

Parameter
Name Description
value Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem
Returns
Type Description
Intent.Message.BrowseCarouselCard.Builder

addItems(Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem.Builder builderForValue)

public Intent.Message.BrowseCarouselCard.Builder addItems(Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem.Builder builderForValue)

Required. List of items in the Browse Carousel Card. Minimum of two items, maximum of ten.

repeated .google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem items = 1;

Parameter
Name Description
builderForValue Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem.Builder
Returns
Type Description
Intent.Message.BrowseCarouselCard.Builder

addItems(int index, Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem value)

public Intent.Message.BrowseCarouselCard.Builder addItems(int index, Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem value)

Required. List of items in the Browse Carousel Card. Minimum of two items, maximum of ten.

repeated .google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem items = 1;

Parameters
Name Description
index int
value Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem
Returns
Type Description
Intent.Message.BrowseCarouselCard.Builder

addItems(int index, Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem.Builder builderForValue)

public Intent.Message.BrowseCarouselCard.Builder addItems(int index, Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem.Builder builderForValue)

Required. List of items in the Browse Carousel Card. Minimum of two items, maximum of ten.

repeated .google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem items = 1;

Parameters
Name Description
index int
builderForValue Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem.Builder
Returns
Type Description
Intent.Message.BrowseCarouselCard.Builder

addItemsBuilder()

public Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem.Builder addItemsBuilder()

Required. List of items in the Browse Carousel Card. Minimum of two items, maximum of ten.

repeated .google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem items = 1;

Returns
Type Description
Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem.Builder

addItemsBuilder(int index)

public Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem.Builder addItemsBuilder(int index)

Required. List of items in the Browse Carousel Card. Minimum of two items, maximum of ten.

repeated .google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem items = 1;

Parameter
Name Description
index int
Returns
Type Description
Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Intent.Message.BrowseCarouselCard.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Intent.Message.BrowseCarouselCard.Builder
Overrides

build()

public Intent.Message.BrowseCarouselCard build()
Returns
Type Description
Intent.Message.BrowseCarouselCard

buildPartial()

public Intent.Message.BrowseCarouselCard buildPartial()
Returns
Type Description
Intent.Message.BrowseCarouselCard

clear()

public Intent.Message.BrowseCarouselCard.Builder clear()
Returns
Type Description
Intent.Message.BrowseCarouselCard.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public Intent.Message.BrowseCarouselCard.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Intent.Message.BrowseCarouselCard.Builder
Overrides

clearImageDisplayOptions()

public Intent.Message.BrowseCarouselCard.Builder clearImageDisplayOptions()

Optional. Settings for displaying the image. Applies to every image in items.

.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.ImageDisplayOptions image_display_options = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Intent.Message.BrowseCarouselCard.Builder

This builder for chaining.

clearItems()

public Intent.Message.BrowseCarouselCard.Builder clearItems()

Required. List of items in the Browse Carousel Card. Minimum of two items, maximum of ten.

repeated .google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem items = 1;

Returns
Type Description
Intent.Message.BrowseCarouselCard.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public Intent.Message.BrowseCarouselCard.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Intent.Message.BrowseCarouselCard.Builder
Overrides

clone()

public Intent.Message.BrowseCarouselCard.Builder clone()
Returns
Type Description
Intent.Message.BrowseCarouselCard.Builder
Overrides

getDefaultInstanceForType()

public Intent.Message.BrowseCarouselCard getDefaultInstanceForType()
Returns
Type Description
Intent.Message.BrowseCarouselCard

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getImageDisplayOptions()

public Intent.Message.BrowseCarouselCard.ImageDisplayOptions getImageDisplayOptions()

Optional. Settings for displaying the image. Applies to every image in items.

.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.ImageDisplayOptions image_display_options = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Intent.Message.BrowseCarouselCard.ImageDisplayOptions

The imageDisplayOptions.

getImageDisplayOptionsValue()

public int getImageDisplayOptionsValue()

Optional. Settings for displaying the image. Applies to every image in items.

.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.ImageDisplayOptions image_display_options = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for imageDisplayOptions.

getItems(int index)

public Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem getItems(int index)

Required. List of items in the Browse Carousel Card. Minimum of two items, maximum of ten.

repeated .google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem items = 1;

Parameter
Name Description
index int
Returns
Type Description
Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem

getItemsBuilder(int index)

public Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem.Builder getItemsBuilder(int index)

Required. List of items in the Browse Carousel Card. Minimum of two items, maximum of ten.

repeated .google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem items = 1;

Parameter
Name Description
index int
Returns
Type Description
Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem.Builder

getItemsBuilderList()

public List<Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem.Builder> getItemsBuilderList()

Required. List of items in the Browse Carousel Card. Minimum of two items, maximum of ten.

repeated .google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem items = 1;

Returns
Type Description
List<Builder>

getItemsCount()

public int getItemsCount()

Required. List of items in the Browse Carousel Card. Minimum of two items, maximum of ten.

repeated .google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem items = 1;

Returns
Type Description
int

getItemsList()

public List<Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem> getItemsList()

Required. List of items in the Browse Carousel Card. Minimum of two items, maximum of ten.

repeated .google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem items = 1;

Returns
Type Description
List<BrowseCarouselCardItem>

getItemsOrBuilder(int index)

public Intent.Message.BrowseCarouselCard.BrowseCarouselCardItemOrBuilder getItemsOrBuilder(int index)

Required. List of items in the Browse Carousel Card. Minimum of two items, maximum of ten.

repeated .google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem items = 1;

Parameter
Name Description
index int
Returns
Type Description
Intent.Message.BrowseCarouselCard.BrowseCarouselCardItemOrBuilder

getItemsOrBuilderList()

public List<? extends Intent.Message.BrowseCarouselCard.BrowseCarouselCardItemOrBuilder> getItemsOrBuilderList()

Required. List of items in the Browse Carousel Card. Minimum of two items, maximum of ten.

repeated .google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem items = 1;

Returns
Type Description
List<? extends com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItemOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Intent.Message.BrowseCarouselCard other)

public Intent.Message.BrowseCarouselCard.Builder mergeFrom(Intent.Message.BrowseCarouselCard other)
Parameter
Name Description
other Intent.Message.BrowseCarouselCard
Returns
Type Description
Intent.Message.BrowseCarouselCard.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Intent.Message.BrowseCarouselCard.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Intent.Message.BrowseCarouselCard.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Intent.Message.BrowseCarouselCard.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Intent.Message.BrowseCarouselCard.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Intent.Message.BrowseCarouselCard.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Intent.Message.BrowseCarouselCard.Builder
Overrides

removeItems(int index)

public Intent.Message.BrowseCarouselCard.Builder removeItems(int index)

Required. List of items in the Browse Carousel Card. Minimum of two items, maximum of ten.

repeated .google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem items = 1;

Parameter
Name Description
index int
Returns
Type Description
Intent.Message.BrowseCarouselCard.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public Intent.Message.BrowseCarouselCard.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Intent.Message.BrowseCarouselCard.Builder
Overrides

setImageDisplayOptions(Intent.Message.BrowseCarouselCard.ImageDisplayOptions value)

public Intent.Message.BrowseCarouselCard.Builder setImageDisplayOptions(Intent.Message.BrowseCarouselCard.ImageDisplayOptions value)

Optional. Settings for displaying the image. Applies to every image in items.

.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.ImageDisplayOptions image_display_options = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Intent.Message.BrowseCarouselCard.ImageDisplayOptions

The imageDisplayOptions to set.

Returns
Type Description
Intent.Message.BrowseCarouselCard.Builder

This builder for chaining.

setImageDisplayOptionsValue(int value)

public Intent.Message.BrowseCarouselCard.Builder setImageDisplayOptionsValue(int value)

Optional. Settings for displaying the image. Applies to every image in items.

.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.ImageDisplayOptions image_display_options = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The enum numeric value on the wire for imageDisplayOptions to set.

Returns
Type Description
Intent.Message.BrowseCarouselCard.Builder

This builder for chaining.

setItems(int index, Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem value)

public Intent.Message.BrowseCarouselCard.Builder setItems(int index, Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem value)

Required. List of items in the Browse Carousel Card. Minimum of two items, maximum of ten.

repeated .google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem items = 1;

Parameters
Name Description
index int
value Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem
Returns
Type Description
Intent.Message.BrowseCarouselCard.Builder

setItems(int index, Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem.Builder builderForValue)

public Intent.Message.BrowseCarouselCard.Builder setItems(int index, Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem.Builder builderForValue)

Required. List of items in the Browse Carousel Card. Minimum of two items, maximum of ten.

repeated .google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem items = 1;

Parameters
Name Description
index int
builderForValue Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem.Builder
Returns
Type Description
Intent.Message.BrowseCarouselCard.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Intent.Message.BrowseCarouselCard.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Intent.Message.BrowseCarouselCard.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final Intent.Message.BrowseCarouselCard.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Intent.Message.BrowseCarouselCard.Builder
Overrides