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.v2beta1.Intent.Message.CarouselSelect
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
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.v2beta1.Intent.Message.CarouselSelect.Item items = 1;
Parameter
Name |
Description |
values |
Iterable<? extends com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.Item>
|
Returns
addItems(Intent.Message.CarouselSelect.Item value)
public Intent.Message.CarouselSelect.Builder addItems(Intent.Message.CarouselSelect.Item value)
Required. Carousel items.
repeated .google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.Item items = 1;
Parameter
Returns
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.v2beta1.Intent.Message.CarouselSelect.Item items = 1;
Parameter
Returns
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.v2beta1.Intent.Message.CarouselSelect.Item items = 1;
Parameters
Returns
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.v2beta1.Intent.Message.CarouselSelect.Item items = 1;
Parameters
Returns
addItemsBuilder()
public Intent.Message.CarouselSelect.Item.Builder addItemsBuilder()
Required. Carousel items.
repeated .google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.Item items = 1;
Returns
addItemsBuilder(int index)
public Intent.Message.CarouselSelect.Item.Builder addItemsBuilder(int index)
Required. Carousel items.
repeated .google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.Item items = 1;
Parameter
Name |
Description |
index |
int
|
Returns
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Intent.Message.CarouselSelect.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public Intent.Message.CarouselSelect build()
Returns
buildPartial()
public Intent.Message.CarouselSelect buildPartial()
Returns
clear()
public Intent.Message.CarouselSelect.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public Intent.Message.CarouselSelect.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearItems()
public Intent.Message.CarouselSelect.Builder clearItems()
Required. Carousel items.
repeated .google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.Item items = 1;
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public Intent.Message.CarouselSelect.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clone()
public Intent.Message.CarouselSelect.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public Intent.Message.CarouselSelect getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getItems(int index)
public Intent.Message.CarouselSelect.Item getItems(int index)
Required. Carousel items.
repeated .google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.Item items = 1;
Parameter
Name |
Description |
index |
int
|
Returns
getItemsBuilder(int index)
public Intent.Message.CarouselSelect.Item.Builder getItemsBuilder(int index)
Required. Carousel items.
repeated .google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.Item items = 1;
Parameter
Name |
Description |
index |
int
|
Returns
getItemsBuilderList()
public List<Intent.Message.CarouselSelect.Item.Builder> getItemsBuilderList()
Required. Carousel items.
repeated .google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.Item items = 1;
Returns
getItemsCount()
public int getItemsCount()
Required. Carousel items.
repeated .google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.Item items = 1;
Returns
getItemsList()
public List<Intent.Message.CarouselSelect.Item> getItemsList()
Required. Carousel items.
repeated .google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.Item items = 1;
Returns
getItemsOrBuilder(int index)
public Intent.Message.CarouselSelect.ItemOrBuilder getItemsOrBuilder(int index)
Required. Carousel items.
repeated .google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.Item items = 1;
Parameter
Name |
Description |
index |
int
|
Returns
getItemsOrBuilderList()
public List<? extends Intent.Message.CarouselSelect.ItemOrBuilder> getItemsOrBuilderList()
Required. Carousel items.
repeated .google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.Item items = 1;
Returns
Type |
Description |
List<? extends com.google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.ItemOrBuilder> |
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(Intent.Message.CarouselSelect other)
public Intent.Message.CarouselSelect.Builder mergeFrom(Intent.Message.CarouselSelect other)
Parameter
Returns
public Intent.Message.CarouselSelect.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public Intent.Message.CarouselSelect.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Intent.Message.CarouselSelect.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
removeItems(int index)
public Intent.Message.CarouselSelect.Builder removeItems(int index)
Required. Carousel items.
repeated .google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.Item items = 1;
Parameter
Name |
Description |
index |
int
|
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public Intent.Message.CarouselSelect.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
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.v2beta1.Intent.Message.CarouselSelect.Item items = 1;
Parameters
Returns
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.v2beta1.Intent.Message.CarouselSelect.Item items = 1;
Parameters
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Intent.Message.CarouselSelect.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final Intent.Message.CarouselSelect.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides