public final class KeyValue
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.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
KeyValue() |
| Modifier and Type | Method and Description |
|---|---|
KeyValue |
clone() |
String |
getBottomLabel()
The text of the bottom label.
|
Button |
getButton()
A button that can be clicked to trigger an action.
|
String |
getContent()
The text of the content.
|
Boolean |
getContentMultiline()
If the content should be multiline.
|
String |
getIcon()
An enum value that's replaced by the Chat API with the corresponding icon image.
|
String |
getIconUrl()
The icon specified by a URL.
|
OnClick |
getOnClick()
The `onclick` action.
|
String |
getTopLabel()
The text of the top label.
|
KeyValue |
set(String fieldName,
Object value) |
KeyValue |
setBottomLabel(String bottomLabel)
The text of the bottom label.
|
KeyValue |
setButton(Button button)
A button that can be clicked to trigger an action.
|
KeyValue |
setContent(String content)
The text of the content.
|
KeyValue |
setContentMultiline(Boolean contentMultiline)
If the content should be multiline.
|
KeyValue |
setIcon(String icon)
An enum value that's replaced by the Chat API with the corresponding icon image.
|
KeyValue |
setIconUrl(String iconUrl)
The icon specified by a URL.
|
KeyValue |
setOnClick(OnClick onClick)
The `onclick` action.
|
KeyValue |
setTopLabel(String topLabel)
The text of the top label.
|
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 String getBottomLabel()
null for nonepublic KeyValue setBottomLabel(String bottomLabel)
bottomLabel - bottomLabel or null for nonepublic Button getButton()
null for nonepublic KeyValue setButton(Button button)
button - button or null for nonepublic String getContent()
null for nonepublic KeyValue setContent(String content)
content - content or null for nonepublic Boolean getContentMultiline()
null for nonepublic KeyValue setContentMultiline(Boolean contentMultiline)
contentMultiline - contentMultiline or null for nonepublic String getIcon()
null for nonepublic KeyValue setIcon(String icon)
icon - icon or null for nonepublic String getIconUrl()
null for nonepublic KeyValue setIconUrl(String iconUrl)
iconUrl - iconUrl or null for nonepublic OnClick getOnClick()
null for nonepublic KeyValue setOnClick(OnClick onClick)
onClick - onClick or null for nonepublic String getTopLabel()
null for nonepublic KeyValue setTopLabel(String topLabel)
topLabel - topLabel or null for nonepublic KeyValue set(String fieldName, Object value)
set in class com.google.api.client.json.GenericJsonpublic KeyValue clone()
clone in class com.google.api.client.json.GenericJsonCopyright © 2011–2025 Google. All rights reserved.