public final class Button 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 |
---|
Button() |
Modifier and Type | Method and Description |
---|---|
Button |
clone() |
ImageButton |
getImageButton()
A button with image and onclick action.
|
TextButton |
getTextButton()
A button with text and onclick action.
|
Button |
set(String fieldName,
Object value) |
Button |
setImageButton(ImageButton imageButton)
A button with image and onclick action.
|
Button |
setTextButton(TextButton textButton)
A button with text and onclick action.
|
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 ImageButton getImageButton()
null
for nonepublic Button setImageButton(ImageButton imageButton)
imageButton
- imageButton or null
for nonepublic TextButton getTextButton()
null
for nonepublic Button setTextButton(TextButton textButton)
textButton
- textButton or null
for nonepublic Button set(String fieldName, Object value)
set
in class GenericJson
public Button clone()
clone
in class GenericJson
Copyright © 2011–2021 Google. All rights reserved.