public final class GoogleAppsCardV1SelectionItem extends 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
GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
GoogleAppsCardV1SelectionItem() |
| Modifier and Type | Method and Description |
|---|---|
GoogleAppsCardV1SelectionItem |
clone() |
Boolean |
getSelected()
If more than one item is selected for `RADIO_BUTTON` and `DROPDOWN`, the first selected item is
treated as selected and the ones after are ignored.
|
String |
getText()
The text to be displayed.
|
String |
getValue()
The value associated with this item.
|
GoogleAppsCardV1SelectionItem |
set(String fieldName,
Object value) |
GoogleAppsCardV1SelectionItem |
setSelected(Boolean selected)
If more than one item is selected for `RADIO_BUTTON` and `DROPDOWN`, the first selected item is
treated as selected and the ones after are ignored.
|
GoogleAppsCardV1SelectionItem |
setText(String text)
The text to be displayed.
|
GoogleAppsCardV1SelectionItem |
setValue(String value)
The value associated with this item.
|
getFactory, setFactory, toPrettyString, toStringentrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic Boolean getSelected()
null for nonepublic GoogleAppsCardV1SelectionItem setSelected(Boolean selected)
selected - selected or null for nonepublic String getText()
null for nonepublic GoogleAppsCardV1SelectionItem setText(String text)
text - text or null for nonepublic String getValue()
null for nonepublic GoogleAppsCardV1SelectionItem setValue(String value)
value - value or null for nonepublic GoogleAppsCardV1SelectionItem set(String fieldName, Object value)
set in class GenericJsonpublic GoogleAppsCardV1SelectionItem clone()
clone in class GenericJsonCopyright © 2011–2021 Google. All rights reserved.