object SelectionInput extends GeneratedMessageCompanion[SelectionInput]
- Source
- SelectionInput.scala
- Alphabetic
- By Inheritance
- SelectionInput
- GeneratedMessageCompanion
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- sealed trait MultiSelectDataSource extends GeneratedOneof
- final case class PlatformDataSource(dataSource: DataSource = com.google.apps.card.v1.card.SelectionInput.PlatformDataSource.DataSource.Empty, unknownFields: UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty) extends GeneratedMessage with Updatable[PlatformDataSource] with Product with Serializable
For a [
SelectionInput
][google.apps.card.v1.SelectionInput] widget that uses a multiselect menu, a data source from Google Workspace.For a [
SelectionInput
][google.apps.card.v1.SelectionInput] widget that uses a multiselect menu, a data source from Google Workspace. Used to populate items in a multiselect menu.[Google Chat apps](https://developers.google.com/workspace/chat):
- Annotations
- @SerialVersionUID()
- implicit class SelectionInputLens[UpperPB] extends ObjectLens[UpperPB, SelectionInput]
- final case class SelectionItem(text: String = "", value: String = "", selected: Boolean = false, startIconUri: String = "", bottomText: String = "", unknownFields: UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty) extends GeneratedMessage with Updatable[SelectionItem] with Product with Serializable
An item that users can select in a selection input, such as a checkbox or switch.
An item that users can select in a selection input, such as a checkbox or switch.
[Google Workspace Add-ons and Chat apps](https://developers.google.com/workspace/extend):
- text
The text that identifies or describes the item to users.
- value
The value associated with this item. The client should use this as a form input value. For details about working with form inputs, see [Receive form data](https://developers.google.com/workspace/chat/read-form-data).
- selected
Whether the item is selected by default. If the selection input only accepts one value (such as for radio buttons or a dropdown menu), only set this field for one item.
- startIconUri
For multiselect menus, the URL for the icon displayed next to the item's
text
field. Supports PNG and JPEG files. Must be anHTTPS
URL. For example,https://developers.google.com/workspace/chat/images/quickstart-app-avatar.png
.- bottomText
For multiselect menus, a text description or label that's displayed below the item's
text
field.
- Annotations
- @SerialVersionUID()
- sealed abstract class SelectionType extends GeneratedEnum
The format for the items that users can select.
The format for the items that users can select. Different options support different types of interactions. For example, users can select multiple checkboxes, but can only select one item from a dropdown menu.
Each selection input supports one type of selection. Mixing checkboxes and switches, for example, isn't supported.
[Google Workspace Add-ons and Chat apps](https://developers.google.com/workspace/extend):
- type ValueType = SelectionInput
- Definition Classes
- GeneratedMessageCompanion
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
- final val EXTERNAL_DATA_SOURCE_FIELD_NUMBER: Int(8)
- final val ITEMS_FIELD_NUMBER: Int(4)
- final val LABEL_FIELD_NUMBER: Int(2)
- final val MULTI_SELECT_MAX_SELECTED_ITEMS_FIELD_NUMBER: Int(6)
- final val MULTI_SELECT_MIN_QUERY_LENGTH_FIELD_NUMBER: Int(7)
- final val NAME_FIELD_NUMBER: Int(1)
- final val ON_CHANGE_ACTION_FIELD_NUMBER: Int(5)
- final val PLATFORM_DATA_SOURCE_FIELD_NUMBER: Int(9)
- final val TYPE_FIELD_NUMBER: Int(3)
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- lazy val defaultInstance: SelectionInput
- Definition Classes
- SelectionInput → GeneratedMessageCompanion
- def enumCompanionForField(field: FieldDescriptor): GeneratedEnumCompanion[_]
- Definition Classes
- GeneratedMessageCompanion
- def enumCompanionForFieldNumber(__fieldNumber: Int): GeneratedEnumCompanion[_]
- Definition Classes
- SelectionInput → GeneratedMessageCompanion
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def fromAscii(s: String): SelectionInput
- Definition Classes
- GeneratedMessageCompanion
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def javaDescriptor: Descriptor
- Definition Classes
- SelectionInput → GeneratedMessageCompanion
- def merge(a: SelectionInput, input: CodedInputStream): SelectionInput
- Definition Classes
- GeneratedMessageCompanion
- implicit def messageCompanion: GeneratedMessageCompanion[SelectionInput]
- def messageCompanionForField(field: FieldDescriptor): GeneratedMessageCompanion[_]
- Definition Classes
- GeneratedMessageCompanion
- def messageCompanionForFieldNumber(__number: Int): GeneratedMessageCompanion[_]
- Definition Classes
- SelectionInput → GeneratedMessageCompanion
- implicit def messageReads: Reads[SelectionInput]
- Definition Classes
- SelectionInput → GeneratedMessageCompanion
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- lazy val nestedMessagesCompanions: Seq[GeneratedMessageCompanion[_ <: GeneratedMessage]]
- Definition Classes
- SelectionInput → GeneratedMessageCompanion
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def of(name: String, label: String, type: SelectionType, items: Seq[SelectionItem], onChangeAction: Option[Action], multiSelectMaxSelectedItems: Int, multiSelectMinQueryLength: Int, multiSelectDataSource: MultiSelectDataSource): SelectionInput
- def parseDelimitedFrom(input: InputStream): Option[SelectionInput]
- Definition Classes
- GeneratedMessageCompanion
- def parseDelimitedFrom(input: CodedInputStream): Option[SelectionInput]
- Definition Classes
- GeneratedMessageCompanion
- def parseFrom(_input__: CodedInputStream): SelectionInput
- Definition Classes
- SelectionInput → GeneratedMessageCompanion
- def parseFrom(s: Array[Byte]): SelectionInput
- Definition Classes
- GeneratedMessageCompanion
- def parseFrom(input: InputStream): SelectionInput
- Definition Classes
- GeneratedMessageCompanion
- def scalaDescriptor: Descriptor
- Definition Classes
- SelectionInput → GeneratedMessageCompanion
- def streamFromDelimitedInput(input: InputStream): Stream[SelectionInput]
- Definition Classes
- GeneratedMessageCompanion
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toByteArray(a: SelectionInput): Array[Byte]
- Definition Classes
- GeneratedMessageCompanion
- def toString(): String
- Definition Classes
- AnyRef → Any
- def validate(s: Array[Byte]): Try[SelectionInput]
- Definition Classes
- GeneratedMessageCompanion
- def validateAscii(s: String): Either[TextFormatError, SelectionInput]
- Definition Classes
- GeneratedMessageCompanion
- 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()
- object MultiSelectDataSource extends Serializable
- object PlatformDataSource extends GeneratedMessageCompanion[PlatformDataSource]
- object SelectionItem extends GeneratedMessageCompanion[SelectionItem]
- object SelectionType extends GeneratedEnumCompanion[SelectionType]