Package com.google.apps.card.v1
Class SelectionInput
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
com.google.apps.card.v1.SelectionInput
- All Implemented Interfaces:
SelectionInputOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
public final class SelectionInput
extends com.google.protobuf.GeneratedMessageV3
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 type
google.apps.card.v1.SelectionInput- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA widget that creates one or more UI items that users can select.static enumstatic final classFor a [`SelectionInput`][google.apps.card.v1.SelectionInput] widget that uses a multiselect menu, a data source from Google Workspace.static interfacestatic final classAn item that users can select in a selection input, such as a checkbox or switch.static interfacestatic enumThe format for the items that users can select.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageV3
alwaysUseFieldBuilders, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic SelectionInputstatic final com.google.protobuf.Descriptors.DescriptorAn external data source, such as a relational data base.An external data source, such as a relational data base.getItems(int index) An array of selectable items.intAn array of selectable items.An array of selectable items.getItemsOrBuilder(int index) An array of selectable items.List<? extends SelectionInput.SelectionItemOrBuilder>An array of selectable items.getLabel()The text that appears above the selection input field in the user interface.com.google.protobuf.ByteStringThe text that appears above the selection input field in the user interface.intFor multiselect menus, the maximum number of items that a user can select.intFor multiselect menus, the number of text characters that a user inputs before the app queries autocomplete and displays suggested items in the menu.getName()The name that identifies the selection input in a form input event.com.google.protobuf.ByteStringThe name that identifies the selection input in a form input event.If specified, the form is submitted when the selection changes.If specified, the form is submitted when the selection changes.com.google.protobuf.Parser<SelectionInput>A data source from Google Workspace.A data source from Google Workspace.intgetType()The type of items that are displayed to users in a `SelectionInput` widget.intThe type of items that are displayed to users in a `SelectionInput` widget.booleanAn external data source, such as a relational data base.inthashCode()booleanIf specified, the form is submitted when the selection changes.booleanA data source from Google Workspace.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanstatic SelectionInput.Builderstatic SelectionInput.BuildernewBuilder(SelectionInput prototype) protected SelectionInput.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static SelectionInputparseDelimitedFrom(InputStream input) static SelectionInputparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SelectionInputparseFrom(byte[] data) static SelectionInputparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SelectionInputparseFrom(com.google.protobuf.ByteString data) static SelectionInputparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SelectionInputparseFrom(com.google.protobuf.CodedInputStream input) static SelectionInputparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SelectionInputparseFrom(InputStream input) static SelectionInputparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SelectionInputparseFrom(ByteBuffer data) static SelectionInputparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<SelectionInput>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER- See Also:
-
LABEL_FIELD_NUMBER
public static final int LABEL_FIELD_NUMBER- See Also:
-
TYPE_FIELD_NUMBER
public static final int TYPE_FIELD_NUMBER- See Also:
-
ITEMS_FIELD_NUMBER
public static final int ITEMS_FIELD_NUMBER- See Also:
-
ON_CHANGE_ACTION_FIELD_NUMBER
public static final int ON_CHANGE_ACTION_FIELD_NUMBER- See Also:
-
MULTI_SELECT_MAX_SELECTED_ITEMS_FIELD_NUMBER
public static final int MULTI_SELECT_MAX_SELECTED_ITEMS_FIELD_NUMBER- See Also:
-
MULTI_SELECT_MIN_QUERY_LENGTH_FIELD_NUMBER
public static final int MULTI_SELECT_MIN_QUERY_LENGTH_FIELD_NUMBER- See Also:
-
EXTERNAL_DATA_SOURCE_FIELD_NUMBER
public static final int EXTERNAL_DATA_SOURCE_FIELD_NUMBER- See Also:
-
PLATFORM_DATA_SOURCE_FIELD_NUMBER
public static final int PLATFORM_DATA_SOURCE_FIELD_NUMBER- See Also:
-
-
Method Details
-
newInstance
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getMultiSelectDataSourceCase
- Specified by:
getMultiSelectDataSourceCasein interfaceSelectionInputOrBuilder
-
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.
-
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.
-
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.
-
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.
-
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
-
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
-
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
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
-
getItemsOrBuilder
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
-
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
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.
-
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.
-
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.
-
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
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.
-
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
A data source from Google Workspace.
.google.apps.card.v1.SelectionInput.PlatformDataSource platform_data_source = 9;- Specified by:
getPlatformDataSourcein interfaceSelectionInputOrBuilder- Returns:
- The platformDataSource.
-
getPlatformDataSourceOrBuilder
A data source from Google Workspace.
.google.apps.card.v1.SelectionInput.PlatformDataSource platform_data_source = 9;- Specified by:
getPlatformDataSourceOrBuilderin interfaceSelectionInputOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static SelectionInput parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SelectionInput parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SelectionInput parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SelectionInput parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SelectionInput parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SelectionInput parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static SelectionInput parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static SelectionInput parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static SelectionInput parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static SelectionInput parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected SelectionInput.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) - Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-