public final class GoogleAppsCardV1SwitchControl
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.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
GoogleAppsCardV1SwitchControl() |
Modifier and Type | Method and Description |
---|---|
GoogleAppsCardV1SwitchControl |
clone() |
String |
getControlType()
How the switch appears in the user interface.
|
String |
getName()
The name by which the switch widget is identified in a form input event.
|
GoogleAppsCardV1Action |
getOnChangeAction()
The action to perform when the switch state is changed, such as what function to run.
|
Boolean |
getSelected()
When `true`, the switch is selected.
|
String |
getValue()
The value entered by a user, returned as part of a form input event.
|
GoogleAppsCardV1SwitchControl |
set(String fieldName,
Object value) |
GoogleAppsCardV1SwitchControl |
setControlType(String controlType)
How the switch appears in the user interface.
|
GoogleAppsCardV1SwitchControl |
setName(String name)
The name by which the switch widget is identified in a form input event.
|
GoogleAppsCardV1SwitchControl |
setOnChangeAction(GoogleAppsCardV1Action onChangeAction)
The action to perform when the switch state is changed, such as what function to run.
|
GoogleAppsCardV1SwitchControl |
setSelected(Boolean selected)
When `true`, the switch is selected.
|
GoogleAppsCardV1SwitchControl |
setValue(String value)
The value entered by a user, returned as part of a form input event.
|
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 String getControlType()
null
for nonepublic GoogleAppsCardV1SwitchControl setControlType(String controlType)
controlType
- controlType or null
for nonepublic String getName()
null
for nonepublic GoogleAppsCardV1SwitchControl setName(String name)
name
- name or null
for nonepublic GoogleAppsCardV1Action getOnChangeAction()
null
for nonepublic GoogleAppsCardV1SwitchControl setOnChangeAction(GoogleAppsCardV1Action onChangeAction)
onChangeAction
- onChangeAction or null
for nonepublic Boolean getSelected()
null
for nonepublic GoogleAppsCardV1SwitchControl setSelected(Boolean selected)
selected
- selected or null
for nonepublic String getValue()
null
for nonepublic GoogleAppsCardV1SwitchControl setValue(String value)
value
- value or null
for nonepublic GoogleAppsCardV1SwitchControl set(String fieldName, Object value)
set
in class com.google.api.client.json.GenericJson
public GoogleAppsCardV1SwitchControl clone()
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2024 Google. All rights reserved.