Class SelectionInput.Builder (2.39.1)

public static final class SelectionInput.Builder extends GeneratedMessageV3.Builder<SelectionInput.Builder> implements SelectionInputOrBuilder

A widget that creates one or more UI items that users can select. For example, a dropdown menu or checkboxes. You can use this widget to collect data that can be predicted or enumerated. For an example in Google Chat apps, see Add selectable UI elements.

Chat apps can process the value of items that users select or input. For details about working with form inputs, see Receive form data.

To collect undefined or abstract data from users, use the TextInput widget.

Google Workspace Add-ons and Chat apps:

Protobuf type google.apps.card.v1.SelectionInput

Static Methods

getDescriptor()

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

Methods

addAllItems(Iterable<? extends SelectionInput.SelectionItem> values)

public SelectionInput.Builder addAllItems(Iterable<? extends SelectionInput.SelectionItem> values)

An array of selectable items. For example, an array of radio buttons or checkboxes. Supports up to 100 items.

repeated .google.apps.card.v1.SelectionInput.SelectionItem items = 4;

Parameter
Name Description
values Iterable<? extends com.google.apps.card.v1.SelectionInput.SelectionItem>
Returns
Type Description
SelectionInput.Builder

addItems(SelectionInput.SelectionItem value)

public SelectionInput.Builder addItems(SelectionInput.SelectionItem value)

An array of selectable items. For example, an array of radio buttons or checkboxes. Supports up to 100 items.

repeated .google.apps.card.v1.SelectionInput.SelectionItem items = 4;

Parameter
Name Description
value SelectionInput.SelectionItem
Returns
Type Description
SelectionInput.Builder

addItems(SelectionInput.SelectionItem.Builder builderForValue)

public SelectionInput.Builder addItems(SelectionInput.SelectionItem.Builder builderForValue)

An array of selectable items. For example, an array of radio buttons or checkboxes. Supports up to 100 items.

repeated .google.apps.card.v1.SelectionInput.SelectionItem items = 4;

Parameter
Name Description
builderForValue SelectionInput.SelectionItem.Builder
Returns
Type Description
SelectionInput.Builder

addItems(int index, SelectionInput.SelectionItem value)

public SelectionInput.Builder addItems(int index, SelectionInput.SelectionItem value)

An array of selectable items. For example, an array of radio buttons or checkboxes. Supports up to 100 items.

repeated .google.apps.card.v1.SelectionInput.SelectionItem items = 4;

Parameters
Name Description
index int
value SelectionInput.SelectionItem
Returns
Type Description
SelectionInput.Builder

addItems(int index, SelectionInput.SelectionItem.Builder builderForValue)

public SelectionInput.Builder addItems(int index, SelectionInput.SelectionItem.Builder builderForValue)

An array of selectable items. For example, an array of radio buttons or checkboxes. Supports up to 100 items.

repeated .google.apps.card.v1.SelectionInput.SelectionItem items = 4;

Parameters
Name Description
index int
builderForValue SelectionInput.SelectionItem.Builder
Returns
Type Description
SelectionInput.Builder

addItemsBuilder()

public SelectionInput.SelectionItem.Builder addItemsBuilder()

An array of selectable items. For example, an array of radio buttons or checkboxes. Supports up to 100 items.

repeated .google.apps.card.v1.SelectionInput.SelectionItem items = 4;

Returns
Type Description
SelectionInput.SelectionItem.Builder

addItemsBuilder(int index)

public SelectionInput.SelectionItem.Builder addItemsBuilder(int index)

An array of selectable items. For example, an array of radio buttons or checkboxes. Supports up to 100 items.

repeated .google.apps.card.v1.SelectionInput.SelectionItem items = 4;

Parameter
Name Description
index int
Returns
Type Description
SelectionInput.SelectionItem.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public SelectionInput build()
Returns
Type Description
SelectionInput

buildPartial()

public SelectionInput buildPartial()
Returns
Type Description
SelectionInput

clear()

public SelectionInput.Builder clear()
Returns
Type Description
SelectionInput.Builder
Overrides

clearExternalDataSource()

public SelectionInput.Builder clearExternalDataSource()

An external data source, such as a relational data base.

.google.apps.card.v1.Action external_data_source = 8;

Returns
Type Description
SelectionInput.Builder

clearField(Descriptors.FieldDescriptor field)

public SelectionInput.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
SelectionInput.Builder
Overrides

clearItems()

public SelectionInput.Builder clearItems()

An array of selectable items. For example, an array of radio buttons or checkboxes. Supports up to 100 items.

repeated .google.apps.card.v1.SelectionInput.SelectionItem items = 4;

Returns
Type Description
SelectionInput.Builder

clearLabel()

public SelectionInput.Builder clearLabel()

The text that appears above the selection input field in the user interface.

Specify text that helps the user enter the information your app needs. For example, if users are selecting the urgency of a work ticket from a drop-down menu, the label might be "Urgency" or "Select urgency".

string label = 2;

Returns
Type Description
SelectionInput.Builder

This builder for chaining.

clearMultiSelectDataSource()

public SelectionInput.Builder clearMultiSelectDataSource()
Returns
Type Description
SelectionInput.Builder

clearMultiSelectMaxSelectedItems()

public SelectionInput.Builder clearMultiSelectMaxSelectedItems()

For multiselect menus, the maximum number of items that a user can select. Minimum value is 1 item. If unspecified, defaults to 3 items.

int32 multi_select_max_selected_items = 6;

Returns
Type Description
SelectionInput.Builder

This builder for chaining.

clearMultiSelectMinQueryLength()

public SelectionInput.Builder clearMultiSelectMinQueryLength()

For multiselect menus, the number of text characters that a user inputs before the app queries autocomplete and displays suggested items in the menu.

If unspecified, defaults to 0 characters for static data sources and 3 characters for external data sources.

int32 multi_select_min_query_length = 7;

Returns
Type Description
SelectionInput.Builder

This builder for chaining.

clearName()

public SelectionInput.Builder clearName()

The name that identifies the selection input in a form input event.

For details about working with form inputs, see Receive form data.

string name = 1;

Returns
Type Description
SelectionInput.Builder

This builder for chaining.

clearOnChangeAction()

public SelectionInput.Builder clearOnChangeAction()

If specified, the form is submitted when the selection changes. If not specified, you must specify a separate button that submits the form.

For details about working with form inputs, see Receive form data.

.google.apps.card.v1.Action on_change_action = 5;

Returns
Type Description
SelectionInput.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public SelectionInput.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
SelectionInput.Builder
Overrides

clearPlatformDataSource()

public SelectionInput.Builder clearPlatformDataSource()

A data source from Google Workspace.

.google.apps.card.v1.SelectionInput.PlatformDataSource platform_data_source = 9;

Returns
Type Description
SelectionInput.Builder

clearType()

public SelectionInput.Builder clearType()

The type of items that are displayed to users in a SelectionInput widget. Selection types support different types of interactions. For example, users can select one or more checkboxes, but they can only select one value from a dropdown menu.

.google.apps.card.v1.SelectionInput.SelectionType type = 3;

Returns
Type Description
SelectionInput.Builder

This builder for chaining.

clone()

public SelectionInput.Builder clone()
Returns
Type Description
SelectionInput.Builder
Overrides

getDefaultInstanceForType()

public SelectionInput getDefaultInstanceForType()
Returns
Type Description
SelectionInput

getDescriptorForType()

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

getExternalDataSource()

public Action getExternalDataSource()

An external data source, such as a relational data base.

.google.apps.card.v1.Action external_data_source = 8;

Returns
Type Description
Action

The externalDataSource.

getExternalDataSourceBuilder()

public Action.Builder getExternalDataSourceBuilder()

An external data source, such as a relational data base.

.google.apps.card.v1.Action external_data_source = 8;

Returns
Type Description
Action.Builder

getExternalDataSourceOrBuilder()

public ActionOrBuilder getExternalDataSourceOrBuilder()

An external data source, such as a relational data base.

.google.apps.card.v1.Action external_data_source = 8;

Returns
Type Description
ActionOrBuilder

getItems(int index)

public SelectionInput.SelectionItem getItems(int index)

An array of selectable items. For example, an array of radio buttons or checkboxes. Supports up to 100 items.

repeated .google.apps.card.v1.SelectionInput.SelectionItem items = 4;

Parameter
Name Description
index int
Returns
Type Description
SelectionInput.SelectionItem

getItemsBuilder(int index)

public SelectionInput.SelectionItem.Builder getItemsBuilder(int index)

An array of selectable items. For example, an array of radio buttons or checkboxes. Supports up to 100 items.

repeated .google.apps.card.v1.SelectionInput.SelectionItem items = 4;

Parameter
Name Description
index int
Returns
Type Description
SelectionInput.SelectionItem.Builder

getItemsBuilderList()

public List<SelectionInput.SelectionItem.Builder> getItemsBuilderList()

An array of selectable items. For example, an array of radio buttons or checkboxes. Supports up to 100 items.

repeated .google.apps.card.v1.SelectionInput.SelectionItem items = 4;

Returns
Type Description
List<Builder>

getItemsCount()

public int getItemsCount()

An array of selectable items. For example, an array of radio buttons or checkboxes. Supports up to 100 items.

repeated .google.apps.card.v1.SelectionInput.SelectionItem items = 4;

Returns
Type Description
int

getItemsList()

public List<SelectionInput.SelectionItem> getItemsList()

An array of selectable items. For example, an array of radio buttons or checkboxes. Supports up to 100 items.

repeated .google.apps.card.v1.SelectionInput.SelectionItem items = 4;

Returns
Type Description
List<SelectionItem>

getItemsOrBuilder(int index)

public SelectionInput.SelectionItemOrBuilder getItemsOrBuilder(int index)

An array of selectable items. For example, an array of radio buttons or checkboxes. Supports up to 100 items.

repeated .google.apps.card.v1.SelectionInput.SelectionItem items = 4;

Parameter
Name Description
index int
Returns
Type Description
SelectionInput.SelectionItemOrBuilder

getItemsOrBuilderList()

public List<? extends SelectionInput.SelectionItemOrBuilder> getItemsOrBuilderList()

An array of selectable items. For example, an array of radio buttons or checkboxes. Supports up to 100 items.

repeated .google.apps.card.v1.SelectionInput.SelectionItem items = 4;

Returns
Type Description
List<? extends com.google.apps.card.v1.SelectionInput.SelectionItemOrBuilder>

getLabel()

public String getLabel()

The text that appears above the selection input field in the user interface.

Specify text that helps the user enter the information your app needs. For example, if users are selecting the urgency of a work ticket from a drop-down menu, the label might be "Urgency" or "Select urgency".

string label = 2;

Returns
Type Description
String

The label.

getLabelBytes()

public ByteString getLabelBytes()

The text that appears above the selection input field in the user interface.

Specify text that helps the user enter the information your app needs. For example, if users are selecting the urgency of a work ticket from a drop-down menu, the label might be "Urgency" or "Select urgency".

string label = 2;

Returns
Type Description
ByteString

The bytes for label.

getMultiSelectDataSourceCase()

public SelectionInput.MultiSelectDataSourceCase getMultiSelectDataSourceCase()
Returns
Type Description
SelectionInput.MultiSelectDataSourceCase

getMultiSelectMaxSelectedItems()

public int getMultiSelectMaxSelectedItems()

For multiselect menus, the maximum number of items that a user can select. Minimum value is 1 item. If unspecified, defaults to 3 items.

int32 multi_select_max_selected_items = 6;

Returns
Type Description
int

The multiSelectMaxSelectedItems.

getMultiSelectMinQueryLength()

public int getMultiSelectMinQueryLength()

For multiselect menus, the number of text characters that a user inputs before the app queries autocomplete and displays suggested items in the menu.

If unspecified, defaults to 0 characters for static data sources and 3 characters for external data sources.

int32 multi_select_min_query_length = 7;

Returns
Type Description
int

The multiSelectMinQueryLength.

getName()

public String getName()

The name that identifies the selection input in a form input event.

For details about working with form inputs, see Receive form data.

string name = 1;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

The name that identifies the selection input in a form input event.

For details about working with form inputs, see Receive form data.

string name = 1;

Returns
Type Description
ByteString

The bytes for name.

getOnChangeAction()

public Action getOnChangeAction()

If specified, the form is submitted when the selection changes. If not specified, you must specify a separate button that submits the form.

For details about working with form inputs, see Receive form data.

.google.apps.card.v1.Action on_change_action = 5;

Returns
Type Description
Action

The onChangeAction.

getOnChangeActionBuilder()

public Action.Builder getOnChangeActionBuilder()

If specified, the form is submitted when the selection changes. If not specified, you must specify a separate button that submits the form.

For details about working with form inputs, see Receive form data.

.google.apps.card.v1.Action on_change_action = 5;

Returns
Type Description
Action.Builder

getOnChangeActionOrBuilder()

public ActionOrBuilder getOnChangeActionOrBuilder()

If specified, the form is submitted when the selection changes. If not specified, you must specify a separate button that submits the form.

For details about working with form inputs, see Receive form data.

.google.apps.card.v1.Action on_change_action = 5;

Returns
Type Description
ActionOrBuilder

getPlatformDataSource()

public SelectionInput.PlatformDataSource getPlatformDataSource()

A data source from Google Workspace.

.google.apps.card.v1.SelectionInput.PlatformDataSource platform_data_source = 9;

Returns
Type Description
SelectionInput.PlatformDataSource

The platformDataSource.

getPlatformDataSourceBuilder()

public SelectionInput.PlatformDataSource.Builder getPlatformDataSourceBuilder()

A data source from Google Workspace.

.google.apps.card.v1.SelectionInput.PlatformDataSource platform_data_source = 9;

Returns
Type Description
SelectionInput.PlatformDataSource.Builder

getPlatformDataSourceOrBuilder()

public SelectionInput.PlatformDataSourceOrBuilder getPlatformDataSourceOrBuilder()

A data source from Google Workspace.

.google.apps.card.v1.SelectionInput.PlatformDataSource platform_data_source = 9;

Returns
Type Description
SelectionInput.PlatformDataSourceOrBuilder

getType()

public SelectionInput.SelectionType getType()

The type of items that are displayed to users in a SelectionInput widget. Selection types support different types of interactions. For example, users can select one or more checkboxes, but they can only select one value from a dropdown menu.

.google.apps.card.v1.SelectionInput.SelectionType type = 3;

Returns
Type Description
SelectionInput.SelectionType

The type.

getTypeValue()

public int getTypeValue()

The type of items that are displayed to users in a SelectionInput widget. Selection types support different types of interactions. For example, users can select one or more checkboxes, but they can only select one value from a dropdown menu.

.google.apps.card.v1.SelectionInput.SelectionType type = 3;

Returns
Type Description
int

The enum numeric value on the wire for type.

hasExternalDataSource()

public boolean hasExternalDataSource()

An external data source, such as a relational data base.

.google.apps.card.v1.Action external_data_source = 8;

Returns
Type Description
boolean

Whether the externalDataSource field is set.

hasOnChangeAction()

public boolean hasOnChangeAction()

If specified, the form is submitted when the selection changes. If not specified, you must specify a separate button that submits the form.

For details about working with form inputs, see Receive form data.

.google.apps.card.v1.Action on_change_action = 5;

Returns
Type Description
boolean

Whether the onChangeAction field is set.

hasPlatformDataSource()

public boolean hasPlatformDataSource()

A data source from Google Workspace.

.google.apps.card.v1.SelectionInput.PlatformDataSource platform_data_source = 9;

Returns
Type Description
boolean

Whether the platformDataSource field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeExternalDataSource(Action value)

public SelectionInput.Builder mergeExternalDataSource(Action value)

An external data source, such as a relational data base.

.google.apps.card.v1.Action external_data_source = 8;

Parameter
Name Description
value Action
Returns
Type Description
SelectionInput.Builder

mergeFrom(SelectionInput other)

public SelectionInput.Builder mergeFrom(SelectionInput other)
Parameter
Name Description
other SelectionInput
Returns
Type Description
SelectionInput.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeOnChangeAction(Action value)

public SelectionInput.Builder mergeOnChangeAction(Action value)

If specified, the form is submitted when the selection changes. If not specified, you must specify a separate button that submits the form.

For details about working with form inputs, see Receive form data.

.google.apps.card.v1.Action on_change_action = 5;

Parameter
Name Description
value Action
Returns
Type Description
SelectionInput.Builder

mergePlatformDataSource(SelectionInput.PlatformDataSource value)

public SelectionInput.Builder mergePlatformDataSource(SelectionInput.PlatformDataSource value)

A data source from Google Workspace.

.google.apps.card.v1.SelectionInput.PlatformDataSource platform_data_source = 9;

Parameter
Name Description
value SelectionInput.PlatformDataSource
Returns
Type Description
SelectionInput.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SelectionInput.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SelectionInput.Builder
Overrides

removeItems(int index)

public SelectionInput.Builder removeItems(int index)

An array of selectable items. For example, an array of radio buttons or checkboxes. Supports up to 100 items.

repeated .google.apps.card.v1.SelectionInput.SelectionItem items = 4;

Parameter
Name Description
index int
Returns
Type Description
SelectionInput.Builder

setExternalDataSource(Action value)

public SelectionInput.Builder setExternalDataSource(Action value)

An external data source, such as a relational data base.

.google.apps.card.v1.Action external_data_source = 8;

Parameter
Name Description
value Action
Returns
Type Description
SelectionInput.Builder

setExternalDataSource(Action.Builder builderForValue)

public SelectionInput.Builder setExternalDataSource(Action.Builder builderForValue)

An external data source, such as a relational data base.

.google.apps.card.v1.Action external_data_source = 8;

Parameter
Name Description
builderForValue Action.Builder
Returns
Type Description
SelectionInput.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setItems(int index, SelectionInput.SelectionItem value)

public SelectionInput.Builder setItems(int index, SelectionInput.SelectionItem value)

An array of selectable items. For example, an array of radio buttons or checkboxes. Supports up to 100 items.

repeated .google.apps.card.v1.SelectionInput.SelectionItem items = 4;

Parameters
Name Description
index int
value SelectionInput.SelectionItem
Returns
Type Description
SelectionInput.Builder

setItems(int index, SelectionInput.SelectionItem.Builder builderForValue)

public SelectionInput.Builder setItems(int index, SelectionInput.SelectionItem.Builder builderForValue)

An array of selectable items. For example, an array of radio buttons or checkboxes. Supports up to 100 items.

repeated .google.apps.card.v1.SelectionInput.SelectionItem items = 4;

Parameters
Name Description
index int
builderForValue SelectionInput.SelectionItem.Builder
Returns
Type Description
SelectionInput.Builder

setLabel(String value)

public SelectionInput.Builder setLabel(String value)

The text that appears above the selection input field in the user interface.

Specify text that helps the user enter the information your app needs. For example, if users are selecting the urgency of a work ticket from a drop-down menu, the label might be "Urgency" or "Select urgency".

string label = 2;

Parameter
Name Description
value String

The label to set.

Returns
Type Description
SelectionInput.Builder

This builder for chaining.

setLabelBytes(ByteString value)

public SelectionInput.Builder setLabelBytes(ByteString value)

The text that appears above the selection input field in the user interface.

Specify text that helps the user enter the information your app needs. For example, if users are selecting the urgency of a work ticket from a drop-down menu, the label might be "Urgency" or "Select urgency".

string label = 2;

Parameter
Name Description
value ByteString

The bytes for label to set.

Returns
Type Description
SelectionInput.Builder

This builder for chaining.

setMultiSelectMaxSelectedItems(int value)

public SelectionInput.Builder setMultiSelectMaxSelectedItems(int value)

For multiselect menus, the maximum number of items that a user can select. Minimum value is 1 item. If unspecified, defaults to 3 items.

int32 multi_select_max_selected_items = 6;

Parameter
Name Description
value int

The multiSelectMaxSelectedItems to set.

Returns
Type Description
SelectionInput.Builder

This builder for chaining.

setMultiSelectMinQueryLength(int value)

public SelectionInput.Builder setMultiSelectMinQueryLength(int value)

For multiselect menus, the number of text characters that a user inputs before the app queries autocomplete and displays suggested items in the menu.

If unspecified, defaults to 0 characters for static data sources and 3 characters for external data sources.

int32 multi_select_min_query_length = 7;

Parameter
Name Description
value int

The multiSelectMinQueryLength to set.

Returns
Type Description
SelectionInput.Builder

This builder for chaining.

setName(String value)

public SelectionInput.Builder setName(String value)

The name that identifies the selection input in a form input event.

For details about working with form inputs, see Receive form data.

string name = 1;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
SelectionInput.Builder

This builder for chaining.

setNameBytes(ByteString value)

public SelectionInput.Builder setNameBytes(ByteString value)

The name that identifies the selection input in a form input event.

For details about working with form inputs, see Receive form data.

string name = 1;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
SelectionInput.Builder

This builder for chaining.

setOnChangeAction(Action value)

public SelectionInput.Builder setOnChangeAction(Action value)

If specified, the form is submitted when the selection changes. If not specified, you must specify a separate button that submits the form.

For details about working with form inputs, see Receive form data.

.google.apps.card.v1.Action on_change_action = 5;

Parameter
Name Description
value Action
Returns
Type Description
SelectionInput.Builder

setOnChangeAction(Action.Builder builderForValue)

public SelectionInput.Builder setOnChangeAction(Action.Builder builderForValue)

If specified, the form is submitted when the selection changes. If not specified, you must specify a separate button that submits the form.

For details about working with form inputs, see Receive form data.

.google.apps.card.v1.Action on_change_action = 5;

Parameter
Name Description
builderForValue Action.Builder
Returns
Type Description
SelectionInput.Builder

setPlatformDataSource(SelectionInput.PlatformDataSource value)

public SelectionInput.Builder setPlatformDataSource(SelectionInput.PlatformDataSource value)

A data source from Google Workspace.

.google.apps.card.v1.SelectionInput.PlatformDataSource platform_data_source = 9;

Parameter
Name Description
value SelectionInput.PlatformDataSource
Returns
Type Description
SelectionInput.Builder

setPlatformDataSource(SelectionInput.PlatformDataSource.Builder builderForValue)

public SelectionInput.Builder setPlatformDataSource(SelectionInput.PlatformDataSource.Builder builderForValue)

A data source from Google Workspace.

.google.apps.card.v1.SelectionInput.PlatformDataSource platform_data_source = 9;

Parameter
Name Description
builderForValue SelectionInput.PlatformDataSource.Builder
Returns
Type Description
SelectionInput.Builder

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

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

setType(SelectionInput.SelectionType value)

public SelectionInput.Builder setType(SelectionInput.SelectionType value)

The type of items that are displayed to users in a SelectionInput widget. Selection types support different types of interactions. For example, users can select one or more checkboxes, but they can only select one value from a dropdown menu.

.google.apps.card.v1.SelectionInput.SelectionType type = 3;

Parameter
Name Description
value SelectionInput.SelectionType

The type to set.

Returns
Type Description
SelectionInput.Builder

This builder for chaining.

setTypeValue(int value)

public SelectionInput.Builder setTypeValue(int value)

The type of items that are displayed to users in a SelectionInput widget. Selection types support different types of interactions. For example, users can select one or more checkboxes, but they can only select one value from a dropdown menu.

.google.apps.card.v1.SelectionInput.SelectionType type = 3;

Parameter
Name Description
value int

The enum numeric value on the wire for type to set.

Returns
Type Description
SelectionInput.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final SelectionInput.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SelectionInput.Builder
Overrides