Class Intent.Message.ListSelect.Builder (4.7.1)

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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

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

buildPartial()

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

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public Intent.Message.ListSelect.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
Intent.Message.ListSelect.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
String

The subtitle.

getSubtitleBytes()

public ByteString getSubtitleBytes()

Optional. Subtitle of the list.

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

Returns
TypeDescription
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
TypeDescription
String

The title.

getTitleBytes()

public ByteString getTitleBytes()

Optional. The overall title of the list.

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

Returns
TypeDescription
ByteString

The bytes for title.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Intent.Message.ListSelect other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

The subtitle to set.

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

The bytes for subtitle to set.

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

The title to set.

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

The bytes for title to set.

Returns
TypeDescription
Intent.Message.ListSelect.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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