public final class GoogleAppsCardV1SelectionInput
extends com.google.api.client.json.GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Google Chat API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
com.google.api.client.util.GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
GoogleAppsCardV1SelectionInput() |
Modifier and Type | Method and Description |
---|---|
GoogleAppsCardV1SelectionInput |
clone() |
GoogleAppsCardV1Action |
getExternalDataSource()
An external data source, such as a relational data base.
|
List<GoogleAppsCardV1SelectionItem> |
getItems()
An array of selectable items.
|
String |
getLabel()
The text that appears above the selection input field in the user interface.
|
Integer |
getMultiSelectMaxSelectedItems()
For multiselect menus, the maximum number of items that a user can select.
|
Integer |
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.
|
String |
getName()
The name that identifies the selection input in a form input event.
|
GoogleAppsCardV1Action |
getOnChangeAction()
If specified, the form is submitted when the selection changes.
|
GoogleAppsCardV1PlatformDataSource |
getPlatformDataSource()
A data source from Google Workspace.
|
String |
getType()
The type of items that are displayed to users in a `SelectionInput` widget.
|
GoogleAppsCardV1SelectionInput |
set(String fieldName,
Object value) |
GoogleAppsCardV1SelectionInput |
setExternalDataSource(GoogleAppsCardV1Action externalDataSource)
An external data source, such as a relational data base.
|
GoogleAppsCardV1SelectionInput |
setItems(List<GoogleAppsCardV1SelectionItem> items)
An array of selectable items.
|
GoogleAppsCardV1SelectionInput |
setLabel(String label)
The text that appears above the selection input field in the user interface.
|
GoogleAppsCardV1SelectionInput |
setMultiSelectMaxSelectedItems(Integer multiSelectMaxSelectedItems)
For multiselect menus, the maximum number of items that a user can select.
|
GoogleAppsCardV1SelectionInput |
setMultiSelectMinQueryLength(Integer multiSelectMinQueryLength)
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.
|
GoogleAppsCardV1SelectionInput |
setName(String name)
The name that identifies the selection input in a form input event.
|
GoogleAppsCardV1SelectionInput |
setOnChangeAction(GoogleAppsCardV1Action onChangeAction)
If specified, the form is submitted when the selection changes.
|
GoogleAppsCardV1SelectionInput |
setPlatformDataSource(GoogleAppsCardV1PlatformDataSource platformDataSource)
A data source from Google Workspace.
|
GoogleAppsCardV1SelectionInput |
setType(String type)
The type of items that are displayed to users in a `SelectionInput` widget.
|
getFactory, setFactory, toPrettyString, toString
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, isEmpty, keySet, size, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public GoogleAppsCardV1Action getExternalDataSource()
null
for nonepublic GoogleAppsCardV1SelectionInput setExternalDataSource(GoogleAppsCardV1Action externalDataSource)
externalDataSource
- externalDataSource or null
for nonepublic List<GoogleAppsCardV1SelectionItem> getItems()
null
for nonepublic GoogleAppsCardV1SelectionInput setItems(List<GoogleAppsCardV1SelectionItem> items)
items
- items or null
for nonepublic String getLabel()
null
for nonepublic GoogleAppsCardV1SelectionInput setLabel(String label)
label
- label or null
for nonepublic Integer getMultiSelectMaxSelectedItems()
null
for nonepublic GoogleAppsCardV1SelectionInput setMultiSelectMaxSelectedItems(Integer multiSelectMaxSelectedItems)
multiSelectMaxSelectedItems
- multiSelectMaxSelectedItems or null
for nonepublic Integer getMultiSelectMinQueryLength()
null
for nonepublic GoogleAppsCardV1SelectionInput setMultiSelectMinQueryLength(Integer multiSelectMinQueryLength)
multiSelectMinQueryLength
- multiSelectMinQueryLength or null
for nonepublic String getName()
null
for nonepublic GoogleAppsCardV1SelectionInput setName(String name)
name
- name or null
for nonepublic GoogleAppsCardV1Action getOnChangeAction()
null
for nonepublic GoogleAppsCardV1SelectionInput setOnChangeAction(GoogleAppsCardV1Action onChangeAction)
onChangeAction
- onChangeAction or null
for nonepublic GoogleAppsCardV1PlatformDataSource getPlatformDataSource()
null
for nonepublic GoogleAppsCardV1SelectionInput setPlatformDataSource(GoogleAppsCardV1PlatformDataSource platformDataSource)
platformDataSource
- platformDataSource or null
for nonepublic String getType()
null
for nonepublic GoogleAppsCardV1SelectionInput setType(String type)
type
- type or null
for nonepublic GoogleAppsCardV1SelectionInput set(String fieldName, Object value)
set
in class com.google.api.client.json.GenericJson
public GoogleAppsCardV1SelectionInput clone()
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2024 Google. All rights reserved.