Class Intent.Message.BrowseCarouselCard.Builder (4.3.1)

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

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
NameDescription
valuesIterable<? extends com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem>
Returns
TypeDescription
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
NameDescription
valueIntent.Message.BrowseCarouselCard.BrowseCarouselCardItem
Returns
TypeDescription
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
NameDescription
builderForValueIntent.Message.BrowseCarouselCard.BrowseCarouselCardItem.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueIntent.Message.BrowseCarouselCard.BrowseCarouselCardItem
Returns
TypeDescription
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
NameDescription
indexint
builderForValueIntent.Message.BrowseCarouselCard.BrowseCarouselCardItem.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Intent.Message.BrowseCarouselCard.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Intent.Message.BrowseCarouselCard.Builder
Overrides

build()

public Intent.Message.BrowseCarouselCard build()
Returns
TypeDescription
Intent.Message.BrowseCarouselCard

buildPartial()

public Intent.Message.BrowseCarouselCard buildPartial()
Returns
TypeDescription
Intent.Message.BrowseCarouselCard

clear()

public Intent.Message.BrowseCarouselCard.Builder clear()
Returns
TypeDescription
Intent.Message.BrowseCarouselCard.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public Intent.Message.BrowseCarouselCard.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
Intent.Message.BrowseCarouselCard.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public Intent.Message.BrowseCarouselCard.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Intent.Message.BrowseCarouselCard.Builder
Overrides

clone()

public Intent.Message.BrowseCarouselCard.Builder clone()
Returns
TypeDescription
Intent.Message.BrowseCarouselCard.Builder
Overrides

getDefaultInstanceForType()

public Intent.Message.BrowseCarouselCard getDefaultInstanceForType()
Returns
TypeDescription
Intent.Message.BrowseCarouselCard

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<? extends com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItemOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Intent.Message.BrowseCarouselCard other)

public Intent.Message.BrowseCarouselCard.Builder mergeFrom(Intent.Message.BrowseCarouselCard other)
Parameter
NameDescription
otherIntent.Message.BrowseCarouselCard
Returns
TypeDescription
Intent.Message.BrowseCarouselCard.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Intent.Message.BrowseCarouselCard.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Intent.Message.BrowseCarouselCard.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Intent.Message.BrowseCarouselCard.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Intent.Message.BrowseCarouselCard.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Intent.Message.BrowseCarouselCard.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
Intent.Message.BrowseCarouselCard.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public Intent.Message.BrowseCarouselCard.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueIntent.Message.BrowseCarouselCard.ImageDisplayOptions

The imageDisplayOptions to set.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
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
NameDescription
indexint
valueIntent.Message.BrowseCarouselCard.BrowseCarouselCardItem
Returns
TypeDescription
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
NameDescription
indexint
builderForValueIntent.Message.BrowseCarouselCard.BrowseCarouselCardItem.Builder
Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Intent.Message.BrowseCarouselCard.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final Intent.Message.BrowseCarouselCard.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Intent.Message.BrowseCarouselCard.Builder
Overrides