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.Flags
AbstractMap.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, 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 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 GenericJson
public GoogleAppsCardV1SelectionItem clone()
clone
in class GenericJson
Copyright © 2011–2021 Google. All rights reserved.