Class Intent.Message.ListSelect.Builder (4.59.0)

public static final class Intent.Message.ListSelect.Builder extends GeneratedMessageV3.Builder<Intent.Message.ListSelect.Builder> implements Intent.Message.ListSelectOrBuilder

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

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

Static Methods

getDescriptor()

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

Methods

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

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

Required. List items.

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

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

addItems(Intent.Message.ListSelect.Item value)

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

Required. List items.

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

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

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

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

Required. List items.

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

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

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

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

Required. List items.

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

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

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

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

Required. List items.

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

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

addItemsBuilder()

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

Required. List items.

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

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

addItemsBuilder(int index)

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

Required. List items.

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

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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

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

buildPartial()

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

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearItems()

public Intent.Message.ListSelect.Builder clearItems()

Required. List items.

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

Returns
Type Description
Intent.Message.ListSelect.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSubtitle()

public Intent.Message.ListSelect.Builder clearSubtitle()

Optional. Subtitle of the list.

string subtitle = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Intent.Message.ListSelect.Builder

This builder for chaining.

clearTitle()

public Intent.Message.ListSelect.Builder clearTitle()

Optional. The overall title of the list.

string title = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Intent.Message.ListSelect.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

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

getDescriptorForType()

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

getItems(int index)

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

Required. List items.

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

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

getItemsBuilder(int index)

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

Required. List items.

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

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

getItemsBuilderList()

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

Required. List items.

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

Returns
Type Description
List<Builder>

getItemsCount()

public int getItemsCount()

Required. List items.

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

Returns
Type Description
int

getItemsList()

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

Required. List items.

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

Returns
Type Description
List<Item>

getItemsOrBuilder(int index)

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

Required. List items.

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

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

getItemsOrBuilderList()

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

Required. List items.

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

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

getSubtitle()

public String getSubtitle()

Optional. Subtitle of the list.

string subtitle = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The subtitle.

getSubtitleBytes()

public ByteString getSubtitleBytes()

Optional. Subtitle of the list.

string subtitle = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for subtitle.

getTitle()

public String getTitle()

Optional. The overall title of the list.

string title = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The title.

getTitleBytes()

public ByteString getTitleBytes()

Optional. The overall title of the list.

string title = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for title.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Intent.Message.ListSelect other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeItems(int index)

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

Required. List items.

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

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

Required. List items.

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

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

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

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

Required. List items.

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

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

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

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

setSubtitle(String value)

public Intent.Message.ListSelect.Builder setSubtitle(String value)

Optional. Subtitle of the list.

string subtitle = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The subtitle to set.

Returns
Type Description
Intent.Message.ListSelect.Builder

This builder for chaining.

setSubtitleBytes(ByteString value)

public Intent.Message.ListSelect.Builder setSubtitleBytes(ByteString value)

Optional. Subtitle of the list.

string subtitle = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for subtitle to set.

Returns
Type Description
Intent.Message.ListSelect.Builder

This builder for chaining.

setTitle(String value)

public Intent.Message.ListSelect.Builder setTitle(String value)

Optional. The overall title of the list.

string title = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The title to set.

Returns
Type Description
Intent.Message.ListSelect.Builder

This builder for chaining.

setTitleBytes(ByteString value)

public Intent.Message.ListSelect.Builder setTitleBytes(ByteString value)

Optional. The overall title of the list.

string title = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for title to set.

Returns
Type Description
Intent.Message.ListSelect.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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