Class Intent.Message.CarouselSelect.Builder (4.8.6)

public static final class Intent.Message.CarouselSelect.Builder extends GeneratedMessageV3.Builder<Intent.Message.CarouselSelect.Builder> implements Intent.Message.CarouselSelectOrBuilder

The card for presenting a carousel of options to select from.

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

Static Methods

getDescriptor()

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

Methods

addAllItems(Iterable<? extends Intent.Message.CarouselSelect.Item> values)

public Intent.Message.CarouselSelect.Builder addAllItems(Iterable<? extends Intent.Message.CarouselSelect.Item> values)

Required. Carousel items.

repeated .google.cloud.dialogflow.v2.Intent.Message.CarouselSelect.Item items = 1 [(.google.api.field_behavior) = REQUIRED];

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

addItems(Intent.Message.CarouselSelect.Item value)

public Intent.Message.CarouselSelect.Builder addItems(Intent.Message.CarouselSelect.Item value)

Required. Carousel items.

repeated .google.cloud.dialogflow.v2.Intent.Message.CarouselSelect.Item items = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Intent.Message.CarouselSelect.Item
Returns
Type Description
Intent.Message.CarouselSelect.Builder

addItems(Intent.Message.CarouselSelect.Item.Builder builderForValue)

public Intent.Message.CarouselSelect.Builder addItems(Intent.Message.CarouselSelect.Item.Builder builderForValue)

Required. Carousel items.

repeated .google.cloud.dialogflow.v2.Intent.Message.CarouselSelect.Item items = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Intent.Message.CarouselSelect.Item.Builder
Returns
Type Description
Intent.Message.CarouselSelect.Builder

addItems(int index, Intent.Message.CarouselSelect.Item value)

public Intent.Message.CarouselSelect.Builder addItems(int index, Intent.Message.CarouselSelect.Item value)

Required. Carousel items.

repeated .google.cloud.dialogflow.v2.Intent.Message.CarouselSelect.Item items = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
value Intent.Message.CarouselSelect.Item
Returns
Type Description
Intent.Message.CarouselSelect.Builder

addItems(int index, Intent.Message.CarouselSelect.Item.Builder builderForValue)

public Intent.Message.CarouselSelect.Builder addItems(int index, Intent.Message.CarouselSelect.Item.Builder builderForValue)

Required. Carousel items.

repeated .google.cloud.dialogflow.v2.Intent.Message.CarouselSelect.Item items = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
builderForValue Intent.Message.CarouselSelect.Item.Builder
Returns
Type Description
Intent.Message.CarouselSelect.Builder

addItemsBuilder()

public Intent.Message.CarouselSelect.Item.Builder addItemsBuilder()

Required. Carousel items.

repeated .google.cloud.dialogflow.v2.Intent.Message.CarouselSelect.Item items = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Intent.Message.CarouselSelect.Item.Builder

addItemsBuilder(int index)

public Intent.Message.CarouselSelect.Item.Builder addItemsBuilder(int index)

Required. Carousel items.

repeated .google.cloud.dialogflow.v2.Intent.Message.CarouselSelect.Item items = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
Intent.Message.CarouselSelect.Item.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

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

buildPartial()

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

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearItems()

public Intent.Message.CarouselSelect.Builder clearItems()

Required. Carousel items.

repeated .google.cloud.dialogflow.v2.Intent.Message.CarouselSelect.Item items = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Intent.Message.CarouselSelect.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

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

getDescriptorForType()

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

getItems(int index)

public Intent.Message.CarouselSelect.Item getItems(int index)

Required. Carousel items.

repeated .google.cloud.dialogflow.v2.Intent.Message.CarouselSelect.Item items = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
Intent.Message.CarouselSelect.Item

getItemsBuilder(int index)

public Intent.Message.CarouselSelect.Item.Builder getItemsBuilder(int index)

Required. Carousel items.

repeated .google.cloud.dialogflow.v2.Intent.Message.CarouselSelect.Item items = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
Intent.Message.CarouselSelect.Item.Builder

getItemsBuilderList()

public List<Intent.Message.CarouselSelect.Item.Builder> getItemsBuilderList()

Required. Carousel items.

repeated .google.cloud.dialogflow.v2.Intent.Message.CarouselSelect.Item items = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<Builder>

getItemsCount()

public int getItemsCount()

Required. Carousel items.

repeated .google.cloud.dialogflow.v2.Intent.Message.CarouselSelect.Item items = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

getItemsList()

public List<Intent.Message.CarouselSelect.Item> getItemsList()

Required. Carousel items.

repeated .google.cloud.dialogflow.v2.Intent.Message.CarouselSelect.Item items = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<Item>

getItemsOrBuilder(int index)

public Intent.Message.CarouselSelect.ItemOrBuilder getItemsOrBuilder(int index)

Required. Carousel items.

repeated .google.cloud.dialogflow.v2.Intent.Message.CarouselSelect.Item items = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
Intent.Message.CarouselSelect.ItemOrBuilder

getItemsOrBuilderList()

public List<? extends Intent.Message.CarouselSelect.ItemOrBuilder> getItemsOrBuilderList()

Required. Carousel items.

repeated .google.cloud.dialogflow.v2.Intent.Message.CarouselSelect.Item items = 1 [(.google.api.field_behavior) = REQUIRED];

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

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Intent.Message.CarouselSelect other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeItems(int index)

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

Required. Carousel items.

repeated .google.cloud.dialogflow.v2.Intent.Message.CarouselSelect.Item items = 1 [(.google.api.field_behavior) = REQUIRED];

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setItems(int index, Intent.Message.CarouselSelect.Item value)

public Intent.Message.CarouselSelect.Builder setItems(int index, Intent.Message.CarouselSelect.Item value)

Required. Carousel items.

repeated .google.cloud.dialogflow.v2.Intent.Message.CarouselSelect.Item items = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
value Intent.Message.CarouselSelect.Item
Returns
Type Description
Intent.Message.CarouselSelect.Builder

setItems(int index, Intent.Message.CarouselSelect.Item.Builder builderForValue)

public Intent.Message.CarouselSelect.Builder setItems(int index, Intent.Message.CarouselSelect.Item.Builder builderForValue)

Required. Carousel items.

repeated .google.cloud.dialogflow.v2.Intent.Message.CarouselSelect.Item items = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
builderForValue Intent.Message.CarouselSelect.Item.Builder
Returns
Type Description
Intent.Message.CarouselSelect.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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