Class Intent.Message.CarouselSelect.Builder (4.5.11)

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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

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

buildPartial()

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

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

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

getDescriptorForType()

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

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Intent.Message.CarouselSelect other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setUnknownFields(UnknownFieldSet unknownFields)

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