Class SelectionInput.Builder (2.37.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 Selection input.

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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.apps.card.v1.SelectionInput.SelectionItem>
Returns
TypeDescription
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
NameDescription
valueSelectionInput.SelectionItem
Returns
TypeDescription
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
NameDescription
builderForValueSelectionInput.SelectionItem.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueSelectionInput.SelectionItem
Returns
TypeDescription
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
NameDescription
indexint
builderForValueSelectionInput.SelectionItem.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
SelectionInput.SelectionItem.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public SelectionInput build()
Returns
TypeDescription
SelectionInput

buildPartial()

public SelectionInput buildPartial()
Returns
TypeDescription
SelectionInput

clear()

public SelectionInput.Builder clear()
Returns
TypeDescription
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
TypeDescription
SelectionInput.Builder

clearField(Descriptors.FieldDescriptor field)

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

This builder for chaining.

clearMultiSelectDataSource()

public SelectionInput.Builder clearMultiSelectDataSource()
Returns
TypeDescription
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
TypeDescription
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 Chat 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
TypeDescription
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
TypeDescription
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
TypeDescription
SelectionInput.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

This builder for chaining.

clone()

public SelectionInput.Builder clone()
Returns
TypeDescription
SelectionInput.Builder
Overrides

getDefaultInstanceForType()

public SelectionInput getDefaultInstanceForType()
Returns
TypeDescription
SelectionInput

getDescriptorForType()

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

The bytes for label.

getMultiSelectDataSourceCase()

public SelectionInput.MultiSelectDataSourceCase getMultiSelectDataSourceCase()
Returns
TypeDescription
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
TypeDescription
int

The multiSelectMaxSelectedItems.

getMultiSelectMinQueryLength()

public int getMultiSelectMinQueryLength()

For multiselect menus, the number of text characters that a user inputs before the Chat 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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ActionOrBuilder

getPlatformDataSource()

public SelectionInput.PlatformDataSource getPlatformDataSource()

A data source from Google Workspace.

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

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

Whether the platformDataSource field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueAction
Returns
TypeDescription
SelectionInput.Builder

mergeFrom(SelectionInput other)

public SelectionInput.Builder mergeFrom(SelectionInput other)
Parameter
NameDescription
otherSelectionInput
Returns
TypeDescription
SelectionInput.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public SelectionInput.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueAction
Returns
TypeDescription
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
NameDescription
valueSelectionInput.PlatformDataSource
Returns
TypeDescription
SelectionInput.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SelectionInput.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
valueAction
Returns
TypeDescription
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
NameDescription
builderForValueAction.Builder
Returns
TypeDescription
SelectionInput.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public SelectionInput.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
indexint
valueSelectionInput.SelectionItem
Returns
TypeDescription
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
NameDescription
indexint
builderForValueSelectionInput.SelectionItem.Builder
Returns
TypeDescription
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
NameDescription
valueString

The label to set.

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

The bytes for label to set.

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

The multiSelectMaxSelectedItems to set.

Returns
TypeDescription
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 Chat 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
NameDescription
valueint

The multiSelectMinQueryLength to set.

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

The name to set.

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

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
valueAction
Returns
TypeDescription
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
NameDescription
builderForValueAction.Builder
Returns
TypeDescription
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
NameDescription
valueSelectionInput.PlatformDataSource
Returns
TypeDescription
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
NameDescription
builderForValueSelectionInput.PlatformDataSource.Builder
Returns
TypeDescription
SelectionInput.Builder

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

public SelectionInput.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueSelectionInput.SelectionType

The type to set.

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

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

Returns
TypeDescription
SelectionInput.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final SelectionInput.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
SelectionInput.Builder
Overrides