public final class CommonEventObject
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 |
---|
CommonEventObject() |
Modifier and Type | Method and Description |
---|---|
CommonEventObject |
clone() |
Map<String,Inputs> |
getFormInputs()
A map containing the values that a user inputs in a widget from a card or dialog.
|
String |
getHostApp()
The hostApp enum which indicates the app the add-on is invoked from.
|
String |
getInvokedFunction()
Name of the invoked function associated with the widget.
|
Map<String,String> |
getParameters()
Custom [parameters](/chat/api/reference/rest/v1/cards#ActionParameter) passed to the invoked
function.
|
String |
getPlatform()
The platform enum which indicates the platform where the event originates (`WEB`, `IOS`, or
`ANDROID`).
|
TimeZone |
getTimeZone()
The timezone ID and offset from Coordinated Universal Time (UTC).
|
String |
getUserLocale()
The full `locale.displayName` in the format of [ISO 639 language code]-[ISO 3166 country/region
code] such as "en-US".
|
CommonEventObject |
set(String fieldName,
Object value) |
CommonEventObject |
setFormInputs(Map<String,Inputs> formInputs)
A map containing the values that a user inputs in a widget from a card or dialog.
|
CommonEventObject |
setHostApp(String hostApp)
The hostApp enum which indicates the app the add-on is invoked from.
|
CommonEventObject |
setInvokedFunction(String invokedFunction)
Name of the invoked function associated with the widget.
|
CommonEventObject |
setParameters(Map<String,String> parameters)
Custom [parameters](/chat/api/reference/rest/v1/cards#ActionParameter) passed to the invoked
function.
|
CommonEventObject |
setPlatform(String platform)
The platform enum which indicates the platform where the event originates (`WEB`, `IOS`, or
`ANDROID`).
|
CommonEventObject |
setTimeZone(TimeZone timeZone)
The timezone ID and offset from Coordinated Universal Time (UTC).
|
CommonEventObject |
setUserLocale(String userLocale)
The full `locale.displayName` in the format of [ISO 639 language code]-[ISO 3166 country/region
code] such as "en-US".
|
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 Map<String,Inputs> getFormInputs()
null
for nonepublic CommonEventObject setFormInputs(Map<String,Inputs> formInputs)
formInputs
- formInputs or null
for nonepublic String getHostApp()
null
for nonepublic CommonEventObject setHostApp(String hostApp)
hostApp
- hostApp or null
for nonepublic String getInvokedFunction()
null
for nonepublic CommonEventObject setInvokedFunction(String invokedFunction)
invokedFunction
- invokedFunction or null
for nonepublic Map<String,String> getParameters()
null
for nonepublic CommonEventObject setParameters(Map<String,String> parameters)
parameters
- parameters or null
for nonepublic String getPlatform()
null
for nonepublic CommonEventObject setPlatform(String platform)
platform
- platform or null
for nonepublic TimeZone getTimeZone()
null
for nonepublic CommonEventObject setTimeZone(TimeZone timeZone)
timeZone
- timeZone or null
for nonepublic String getUserLocale()
null
for nonepublic CommonEventObject setUserLocale(String userLocale)
userLocale
- userLocale or null
for nonepublic CommonEventObject set(String fieldName, Object value)
set
in class com.google.api.client.json.GenericJson
public CommonEventObject clone()
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2024 Google. All rights reserved.