Package com.google.apps.card.v1
Class SelectionInput.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessage.ExtendableBuilder<com.google.protobuf.GeneratedMessageV3,BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<SelectionInput.Builder>
-
- com.google.apps.card.v1.SelectionInput.Builder
-
- All Implemented Interfaces:
SelectionInputOrBuilder,com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<com.google.protobuf.GeneratedMessageV3>,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,java.lang.Cloneable
- Enclosing class:
- SelectionInput
public static final class SelectionInput.Builder extends com.google.protobuf.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](/workspace/chat/design-interactive-card-dialog#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](https://developers.google.com/workspace/chat/read-form-data). To collect undefined or abstract data from users, use the [TextInput][google.apps.card.v1.TextInput] widget. [Google Workspace Add-ons and Chat apps](https://developers.google.com/workspace/extend):
Protobuf typegoogle.apps.card.v1.SelectionInput
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SelectionInput.BuilderaddAllItems(java.lang.Iterable<? extends SelectionInput.SelectionItem> values)An array of selectable items.SelectionInput.BuilderaddItems(int index, SelectionInput.SelectionItem value)An array of selectable items.SelectionInput.BuilderaddItems(int index, SelectionInput.SelectionItem.Builder builderForValue)An array of selectable items.SelectionInput.BuilderaddItems(SelectionInput.SelectionItem value)An array of selectable items.SelectionInput.BuilderaddItems(SelectionInput.SelectionItem.Builder builderForValue)An array of selectable items.SelectionInput.SelectionItem.BuilderaddItemsBuilder()An array of selectable items.SelectionInput.SelectionItem.BuilderaddItemsBuilder(int index)An array of selectable items.SelectionInput.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)SelectionInputbuild()SelectionInputbuildPartial()SelectionInput.Builderclear()SelectionInput.BuilderclearExternalDataSource()An external data source, such as a relational data base.SelectionInput.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)SelectionInput.BuilderclearItems()An array of selectable items.SelectionInput.BuilderclearLabel()The text that appears above the selection input field in the user interface.SelectionInput.BuilderclearMultiSelectDataSource()SelectionInput.BuilderclearMultiSelectMaxSelectedItems()For multiselect menus, the maximum number of items that a user can select.SelectionInput.BuilderclearMultiSelectMinQueryLength()For multiselect menus, the number of text characters that a user inputs before the app queries autocomplete and displays suggested items in the menu.SelectionInput.BuilderclearName()The name that identifies the selection input in a form input event.SelectionInput.BuilderclearOnChangeAction()If specified, the form is submitted when the selection changes.SelectionInput.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)SelectionInput.BuilderclearPlatformDataSource()A data source from Google Workspace.SelectionInput.BuilderclearType()The type of items that are displayed to users in a `SelectionInput` widget.SelectionInput.Builderclone()SelectionInputgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()ActiongetExternalDataSource()An external data source, such as a relational data base.Action.BuildergetExternalDataSourceBuilder()An external data source, such as a relational data base.ActionOrBuildergetExternalDataSourceOrBuilder()An external data source, such as a relational data base.SelectionInput.SelectionItemgetItems(int index)An array of selectable items.SelectionInput.SelectionItem.BuildergetItemsBuilder(int index)An array of selectable items.java.util.List<SelectionInput.SelectionItem.Builder>getItemsBuilderList()An array of selectable items.intgetItemsCount()An array of selectable items.java.util.List<SelectionInput.SelectionItem>getItemsList()An array of selectable items.SelectionInput.SelectionItemOrBuildergetItemsOrBuilder(int index)An array of selectable items.java.util.List<? extends SelectionInput.SelectionItemOrBuilder>getItemsOrBuilderList()An array of selectable items.java.lang.StringgetLabel()The text that appears above the selection input field in the user interface.com.google.protobuf.ByteStringgetLabelBytes()The text that appears above the selection input field in the user interface.SelectionInput.MultiSelectDataSourceCasegetMultiSelectDataSourceCase()intgetMultiSelectMaxSelectedItems()For multiselect menus, the maximum number of items that a user can select.intgetMultiSelectMinQueryLength()For multiselect menus, the number of text characters that a user inputs before the app queries autocomplete and displays suggested items in the menu.java.lang.StringgetName()The name that identifies the selection input in a form input event.com.google.protobuf.ByteStringgetNameBytes()The name that identifies the selection input in a form input event.ActiongetOnChangeAction()If specified, the form is submitted when the selection changes.Action.BuildergetOnChangeActionBuilder()If specified, the form is submitted when the selection changes.ActionOrBuildergetOnChangeActionOrBuilder()If specified, the form is submitted when the selection changes.SelectionInput.PlatformDataSourcegetPlatformDataSource()A data source from Google Workspace.SelectionInput.PlatformDataSource.BuildergetPlatformDataSourceBuilder()A data source from Google Workspace.SelectionInput.PlatformDataSourceOrBuildergetPlatformDataSourceOrBuilder()A data source from Google Workspace.SelectionInput.SelectionTypegetType()The type of items that are displayed to users in a `SelectionInput` widget.intgetTypeValue()The type of items that are displayed to users in a `SelectionInput` widget.booleanhasExternalDataSource()An external data source, such as a relational data base.booleanhasOnChangeAction()If specified, the form is submitted when the selection changes.booleanhasPlatformDataSource()A data source from Google Workspace.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()SelectionInput.BuildermergeExternalDataSource(Action value)An external data source, such as a relational data base.SelectionInput.BuildermergeFrom(SelectionInput other)SelectionInput.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)SelectionInput.BuildermergeFrom(com.google.protobuf.Message other)SelectionInput.BuildermergeOnChangeAction(Action value)If specified, the form is submitted when the selection changes.SelectionInput.BuildermergePlatformDataSource(SelectionInput.PlatformDataSource value)A data source from Google Workspace.SelectionInput.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)SelectionInput.BuilderremoveItems(int index)An array of selectable items.SelectionInput.BuildersetExternalDataSource(Action value)An external data source, such as a relational data base.SelectionInput.BuildersetExternalDataSource(Action.Builder builderForValue)An external data source, such as a relational data base.SelectionInput.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)SelectionInput.BuildersetItems(int index, SelectionInput.SelectionItem value)An array of selectable items.SelectionInput.BuildersetItems(int index, SelectionInput.SelectionItem.Builder builderForValue)An array of selectable items.SelectionInput.BuildersetLabel(java.lang.String value)The text that appears above the selection input field in the user interface.SelectionInput.BuildersetLabelBytes(com.google.protobuf.ByteString value)The text that appears above the selection input field in the user interface.SelectionInput.BuildersetMultiSelectMaxSelectedItems(int value)For multiselect menus, the maximum number of items that a user can select.SelectionInput.BuildersetMultiSelectMinQueryLength(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.SelectionInput.BuildersetName(java.lang.String value)The name that identifies the selection input in a form input event.SelectionInput.BuildersetNameBytes(com.google.protobuf.ByteString value)The name that identifies the selection input in a form input event.SelectionInput.BuildersetOnChangeAction(Action value)If specified, the form is submitted when the selection changes.SelectionInput.BuildersetOnChangeAction(Action.Builder builderForValue)If specified, the form is submitted when the selection changes.SelectionInput.BuildersetPlatformDataSource(SelectionInput.PlatformDataSource value)A data source from Google Workspace.SelectionInput.BuildersetPlatformDataSource(SelectionInput.PlatformDataSource.Builder builderForValue)A data source from Google Workspace.SelectionInput.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)SelectionInput.BuildersetType(SelectionInput.SelectionType value)The type of items that are displayed to users in a `SelectionInput` widget.SelectionInput.BuildersetTypeValue(int value)The type of items that are displayed to users in a `SelectionInput` widget.SelectionInput.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessage.ExtendableBuilder
addExtension, clearExtension, extensionsAreInitialized, getAllFields, getExtension, getExtension, getExtensionCount, getField, getFieldBuilder, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, hasExtension, hasField, mergeExtensionFields, newBuilderForField, parseUnknownField, setExtension, setExtension
-
Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
getOneofFieldDescriptor, getUnknownFields, getUnknownFieldSetBuilder, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, onBuilt, onChanged, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Overrides:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<SelectionInput.Builder>
-
clear
public SelectionInput.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<SelectionInput.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<SelectionInput.Builder>
-
getDefaultInstanceForType
public SelectionInput getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<com.google.protobuf.GeneratedMessageV3>- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public SelectionInput build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public SelectionInput buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public SelectionInput.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<SelectionInput.Builder>
-
setField
public SelectionInput.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<SelectionInput.Builder>
-
clearField
public SelectionInput.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<SelectionInput.Builder>
-
clearOneof
public SelectionInput.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<SelectionInput.Builder>
-
setRepeatedField
public SelectionInput.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<SelectionInput.Builder>
-
addRepeatedField
public SelectionInput.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<SelectionInput.Builder>
-
mergeFrom
public SelectionInput.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<SelectionInput.Builder>
-
mergeFrom
public SelectionInput.Builder mergeFrom(SelectionInput other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.ExtendableBuilder<com.google.protobuf.GeneratedMessageV3,SelectionInput.Builder>
-
mergeFrom
public SelectionInput.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<SelectionInput.Builder>- Throws:
java.io.IOException
-
getMultiSelectDataSourceCase
public SelectionInput.MultiSelectDataSourceCase getMultiSelectDataSourceCase()
- Specified by:
getMultiSelectDataSourceCasein interfaceSelectionInputOrBuilder
-
clearMultiSelectDataSource
public SelectionInput.Builder clearMultiSelectDataSource()
-
getName
public java.lang.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](https://developers.google.com/workspace/chat/read-form-data).
string name = 1;- Specified by:
getNamein interfaceSelectionInputOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.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](https://developers.google.com/workspace/chat/read-form-data).
string name = 1;- Specified by:
getNameBytesin interfaceSelectionInputOrBuilder- Returns:
- The bytes for name.
-
setName
public SelectionInput.Builder setName(java.lang.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](https://developers.google.com/workspace/chat/read-form-data).
string name = 1;- Parameters:
value- The name to set.- Returns:
- 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](https://developers.google.com/workspace/chat/read-form-data).
string name = 1;- Returns:
- This builder for chaining.
-
setNameBytes
public SelectionInput.Builder setNameBytes(com.google.protobuf.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](https://developers.google.com/workspace/chat/read-form-data).
string name = 1;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getLabel
public java.lang.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;- Specified by:
getLabelin interfaceSelectionInputOrBuilder- Returns:
- The label.
-
getLabelBytes
public com.google.protobuf.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;- Specified by:
getLabelBytesin interfaceSelectionInputOrBuilder- Returns:
- The bytes for label.
-
setLabel
public SelectionInput.Builder setLabel(java.lang.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;- Parameters:
value- The label to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setLabelBytes
public SelectionInput.Builder setLabelBytes(com.google.protobuf.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;- Parameters:
value- The bytes for label to set.- Returns:
- This builder for chaining.
-
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;- Specified by:
getTypeValuein interfaceSelectionInputOrBuilder- Returns:
- The enum numeric value on the wire for type.
-
setTypeValue
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;- Parameters:
value- The enum numeric value on the wire for type to set.- Returns:
- This builder for chaining.
-
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;- Specified by:
getTypein interfaceSelectionInputOrBuilder- Returns:
- The type.
-
setType
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;- Parameters:
value- The type to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
getItemsList
public java.util.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;- Specified by:
getItemsListin interfaceSelectionInputOrBuilder
-
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;- Specified by:
getItemsCountin interfaceSelectionInputOrBuilder
-
getItems
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;- Specified by:
getItemsin interfaceSelectionInputOrBuilder
-
setItems
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;
-
setItems
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;
-
addItems
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;
-
addItems
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;
-
addItems
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;
-
addItems
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;
-
addAllItems
public SelectionInput.Builder addAllItems(java.lang.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;
-
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;
-
removeItems
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;
-
getItemsBuilder
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;
-
getItemsOrBuilder
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;- Specified by:
getItemsOrBuilderin interfaceSelectionInputOrBuilder
-
getItemsOrBuilderList
public java.util.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;- Specified by:
getItemsOrBuilderListin interfaceSelectionInputOrBuilder
-
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;
-
addItemsBuilder
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;
-
getItemsBuilderList
public java.util.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;
-
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](https://developers.google.com/workspace/chat/read-form-data).
.google.apps.card.v1.Action on_change_action = 5;- Specified by:
hasOnChangeActionin interfaceSelectionInputOrBuilder- Returns:
- Whether the onChangeAction field is set.
-
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](https://developers.google.com/workspace/chat/read-form-data).
.google.apps.card.v1.Action on_change_action = 5;- Specified by:
getOnChangeActionin interfaceSelectionInputOrBuilder- Returns:
- The onChangeAction.
-
setOnChangeAction
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](https://developers.google.com/workspace/chat/read-form-data).
.google.apps.card.v1.Action on_change_action = 5;
-
setOnChangeAction
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](https://developers.google.com/workspace/chat/read-form-data).
.google.apps.card.v1.Action on_change_action = 5;
-
mergeOnChangeAction
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](https://developers.google.com/workspace/chat/read-form-data).
.google.apps.card.v1.Action on_change_action = 5;
-
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](https://developers.google.com/workspace/chat/read-form-data).
.google.apps.card.v1.Action on_change_action = 5;
-
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](https://developers.google.com/workspace/chat/read-form-data).
.google.apps.card.v1.Action on_change_action = 5;
-
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](https://developers.google.com/workspace/chat/read-form-data).
.google.apps.card.v1.Action on_change_action = 5;- Specified by:
getOnChangeActionOrBuilderin interfaceSelectionInputOrBuilder
-
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;- Specified by:
getMultiSelectMaxSelectedItemsin interfaceSelectionInputOrBuilder- Returns:
- The multiSelectMaxSelectedItems.
-
setMultiSelectMaxSelectedItems
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;- Parameters:
value- The multiSelectMaxSelectedItems to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
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;- Specified by:
getMultiSelectMinQueryLengthin interfaceSelectionInputOrBuilder- Returns:
- The multiSelectMinQueryLength.
-
setMultiSelectMinQueryLength
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;- Parameters:
value- The multiSelectMinQueryLength to set.- Returns:
- 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:
- This builder for chaining.
-
hasExternalDataSource
public boolean hasExternalDataSource()
An external data source, such as a relational data base.
.google.apps.card.v1.Action external_data_source = 8;- Specified by:
hasExternalDataSourcein interfaceSelectionInputOrBuilder- Returns:
- Whether the externalDataSource field is set.
-
getExternalDataSource
public Action getExternalDataSource()
An external data source, such as a relational data base.
.google.apps.card.v1.Action external_data_source = 8;- Specified by:
getExternalDataSourcein interfaceSelectionInputOrBuilder- Returns:
- The externalDataSource.
-
setExternalDataSource
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;
-
setExternalDataSource
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;
-
mergeExternalDataSource
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;
-
clearExternalDataSource
public SelectionInput.Builder clearExternalDataSource()
An external data source, such as a relational data base.
.google.apps.card.v1.Action external_data_source = 8;
-
getExternalDataSourceBuilder
public Action.Builder getExternalDataSourceBuilder()
An external data source, such as a relational data base.
.google.apps.card.v1.Action external_data_source = 8;
-
getExternalDataSourceOrBuilder
public ActionOrBuilder getExternalDataSourceOrBuilder()
An external data source, such as a relational data base.
.google.apps.card.v1.Action external_data_source = 8;- Specified by:
getExternalDataSourceOrBuilderin interfaceSelectionInputOrBuilder
-
hasPlatformDataSource
public boolean hasPlatformDataSource()
A data source from Google Workspace.
.google.apps.card.v1.SelectionInput.PlatformDataSource platform_data_source = 9;- Specified by:
hasPlatformDataSourcein interfaceSelectionInputOrBuilder- Returns:
- Whether the platformDataSource field is set.
-
getPlatformDataSource
public SelectionInput.PlatformDataSource getPlatformDataSource()
A data source from Google Workspace.
.google.apps.card.v1.SelectionInput.PlatformDataSource platform_data_source = 9;- Specified by:
getPlatformDataSourcein interfaceSelectionInputOrBuilder- Returns:
- The platformDataSource.
-
setPlatformDataSource
public SelectionInput.Builder setPlatformDataSource(SelectionInput.PlatformDataSource value)
A data source from Google Workspace.
.google.apps.card.v1.SelectionInput.PlatformDataSource platform_data_source = 9;
-
setPlatformDataSource
public SelectionInput.Builder setPlatformDataSource(SelectionInput.PlatformDataSource.Builder builderForValue)
A data source from Google Workspace.
.google.apps.card.v1.SelectionInput.PlatformDataSource platform_data_source = 9;
-
mergePlatformDataSource
public SelectionInput.Builder mergePlatformDataSource(SelectionInput.PlatformDataSource value)
A data source from Google Workspace.
.google.apps.card.v1.SelectionInput.PlatformDataSource platform_data_source = 9;
-
clearPlatformDataSource
public SelectionInput.Builder clearPlatformDataSource()
A data source from Google Workspace.
.google.apps.card.v1.SelectionInput.PlatformDataSource platform_data_source = 9;
-
getPlatformDataSourceBuilder
public SelectionInput.PlatformDataSource.Builder getPlatformDataSourceBuilder()
A data source from Google Workspace.
.google.apps.card.v1.SelectionInput.PlatformDataSource platform_data_source = 9;
-
getPlatformDataSourceOrBuilder
public SelectionInput.PlatformDataSourceOrBuilder getPlatformDataSourceOrBuilder()
A data source from Google Workspace.
.google.apps.card.v1.SelectionInput.PlatformDataSource platform_data_source = 9;- Specified by:
getPlatformDataSourceOrBuilderin interfaceSelectionInputOrBuilder
-
setUnknownFields
public final SelectionInput.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<SelectionInput.Builder>
-
mergeUnknownFields
public final SelectionInput.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<SelectionInput.Builder>
-
-