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 Hangouts 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
Constructor and Description |
---|
KeyValue() |
Modifier and Type | Method and Description |
---|---|
KeyValue |
clone() |
java.lang.String |
getBottomLabel()
The text of the bottom label.
|
Button |
getButton()
A button that can be clicked to trigger an action.
|
java.lang.String |
getContent()
The text of the content.
|
java.lang.Boolean |
getContentMultiline()
If the content should be multiline.
|
java.lang.String |
getIcon()
An enum value that will be replaced by the Chat API with the corresponding icon image.
|
java.lang.String |
getIconUrl()
The icon specified by a URL.
|
OnClick |
getOnClick()
The onclick action.
|
java.lang.String |
getTopLabel()
The text of the top label.
|
KeyValue |
set(java.lang.String fieldName,
java.lang.Object value) |
KeyValue |
setBottomLabel(java.lang.String bottomLabel)
The text of the bottom label.
|
KeyValue |
setButton(Button button)
A button that can be clicked to trigger an action.
|
KeyValue |
setContent(java.lang.String content)
The text of the content.
|
KeyValue |
setContentMultiline(java.lang.Boolean contentMultiline)
If the content should be multiline.
|
KeyValue |
setIcon(java.lang.String icon)
An enum value that will be replaced by the Chat API with the corresponding icon image.
|
KeyValue |
setIconUrl(java.lang.String iconUrl)
The icon specified by a URL.
|
KeyValue |
setOnClick(OnClick onClick)
The onclick action.
|
KeyValue |
setTopLabel(java.lang.String topLabel)
The text of the top label.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public java.lang.String getBottomLabel()
null
for nonepublic KeyValue setBottomLabel(java.lang.String bottomLabel)
bottomLabel
- bottomLabel or null
for nonepublic Button getButton()
null
for nonepublic KeyValue setButton(Button button)
button
- button or null
for nonepublic java.lang.String getContent()
null
for nonepublic KeyValue setContent(java.lang.String content)
content
- content or null
for nonepublic java.lang.Boolean getContentMultiline()
null
for nonepublic KeyValue setContentMultiline(java.lang.Boolean contentMultiline)
contentMultiline
- contentMultiline or null
for nonepublic java.lang.String getIcon()
null
for nonepublic KeyValue setIcon(java.lang.String icon)
icon
- icon or null
for nonepublic java.lang.String getIconUrl()
null
for nonepublic KeyValue setIconUrl(java.lang.String iconUrl)
iconUrl
- iconUrl or null
for nonepublic OnClick getOnClick()
null
for nonepublic KeyValue setOnClick(OnClick onClick)
onClick
- onClick or null
for nonepublic java.lang.String getTopLabel()
null
for nonepublic KeyValue setTopLabel(java.lang.String topLabel)
topLabel
- topLabel or null
for nonepublic KeyValue set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public KeyValue clone()
clone
in class com.google.api.client.json.GenericJson