final case class SelectionInput(name: String = "", label: String = "", type: SelectionType = com.google.apps.card.v1.card.SelectionInput.SelectionType.CHECK_BOX, items: Seq[SelectionItem] = _root_.scala.Seq.empty, onChangeAction: Option[Action] = _root_.scala.None, multiSelectMaxSelectedItems: Int = 0, multiSelectMinQueryLength: Int = 0, multiSelectDataSource: MultiSelectDataSource = com.google.apps.card.v1.card.SelectionInput.MultiSelectDataSource.Empty, unknownFields: UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty) extends GeneratedMessage with Updatable[SelectionInput] with Product with Serializable
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):
- name
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).
- label
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".
- type
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.- items
An array of selectable items. For example, an array of radio buttons or checkboxes. Supports up to 100 items.
- onChangeAction
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).
- multiSelectMaxSelectedItems
For multiselect menus, the maximum number of items that a user can select. Minimum value is 1 item. If unspecified, defaults to 3 items.
- multiSelectMinQueryLength
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.
- Annotations
- @SerialVersionUID()
- Source
- SelectionInput.scala
- Alphabetic
- By Inheritance
- SelectionInput
- Updatable
- GeneratedMessage
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new SelectionInput(name: String = "", label: String = "", type: SelectionType = com.google.apps.card.v1.card.SelectionInput.SelectionType.CHECK_BOX, items: Seq[SelectionItem] = _root_.scala.Seq.empty, onChangeAction: Option[Action] = _root_.scala.None, multiSelectMaxSelectedItems: Int = 0, multiSelectMinQueryLength: Int = 0, multiSelectDataSource: MultiSelectDataSource = com.google.apps.card.v1.card.SelectionInput.MultiSelectDataSource.Empty, unknownFields: UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty)
- name
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).
- label
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".
- type
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.- items
An array of selectable items. For example, an array of radio buttons or checkboxes. Supports up to 100 items.
- onChangeAction
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).
- multiSelectMaxSelectedItems
For multiselect menus, the maximum number of items that a user can select. Minimum value is 1 item. If unspecified, defaults to 3 items.
- multiSelectMinQueryLength
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.
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def addAllItems(__vs: Iterable[SelectionItem]): SelectionInput
- def addItems(__vs: SelectionItem*): SelectionInput
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clearItems: SelectionInput
- def clearMultiSelectDataSource: SelectionInput
- def clearOnChangeAction: SelectionInput
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def companion: SelectionInput.type
- Definition Classes
- SelectionInput → GeneratedMessage
- def discardUnknownFields: SelectionInput
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def getExternalDataSource: Action
- def getField(__field: FieldDescriptor): PValue
- Definition Classes
- SelectionInput → GeneratedMessage
- def getFieldByNumber(__fieldNumber: Int): Any
- Definition Classes
- SelectionInput → GeneratedMessage
- def getOnChangeAction: Action
- def getPlatformDataSource: PlatformDataSource
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val items: Seq[SelectionItem]
- val label: String
- val multiSelectDataSource: MultiSelectDataSource
- val multiSelectMaxSelectedItems: Int
- val multiSelectMinQueryLength: Int
- val name: String
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- val onChangeAction: Option[Action]
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- def serializedSize: Int
- Definition Classes
- SelectionInput → GeneratedMessage
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- final def toByteArray: Array[Byte]
- Definition Classes
- GeneratedMessage
- final def toByteString: ByteString
- Definition Classes
- GeneratedMessage
- final def toPMessage: PMessage
- Definition Classes
- GeneratedMessage
- def toProtoString: String
- Definition Classes
- SelectionInput → GeneratedMessage
- val type: SelectionType
- val unknownFields: UnknownFieldSet
- def update(ms: (Lens[SelectionInput, SelectionInput]) => Mutation[SelectionInput]*): SelectionInput
- Definition Classes
- Updatable
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- def withExternalDataSource(__v: Action): SelectionInput
- def withItems(__v: Seq[SelectionItem]): SelectionInput
- def withLabel(__v: String): SelectionInput
- def withMultiSelectDataSource(__v: MultiSelectDataSource): SelectionInput
- def withMultiSelectMaxSelectedItems(__v: Int): SelectionInput
- def withMultiSelectMinQueryLength(__v: Int): SelectionInput
- def withName(__v: String): SelectionInput
- def withOnChangeAction(__v: Action): SelectionInput
- def withPlatformDataSource(__v: PlatformDataSource): SelectionInput
- def withType(__v: SelectionType): SelectionInput
- def withUnknownFields(__v: UnknownFieldSet): SelectionInput
- final def writeDelimitedTo(output: OutputStream): Unit
- Definition Classes
- GeneratedMessage
- def writeTo(_output__: CodedOutputStream): Unit
- Definition Classes
- SelectionInput → GeneratedMessage
- final def writeTo(output: OutputStream): Unit
- Definition Classes
- GeneratedMessage