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.FlagsAbstractMap.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 current values of the widgets in the displayed card.
|
String |
getHostApp()
Indicates the host app the add-on is active in when the event object is generated.
|
String |
getInvokedFunction()
Name of the function to invoke.
|
Map<String,String> |
getParameters()
Any additional parameters you supply to an action using
[`actionParameters`](https://developers.google.com/workspace/add-
ons/reference/rpc/google.apps.card.v1#google.apps.card.v1.Action.ActionParameter) or
[`Action.setParameters()`](https://developers.google.com/apps-script/reference/card-
service/action#setparametersparameters).
|
String |
getPlatform()
The platform enum which indicates the platform where the event originates (`WEB`, `IOS`, or
`ANDROID`).
|
TimeZone |
getTimeZone()
**Disabled by default.** The timezone ID and offset from Coordinated Universal Time (UTC).
|
String |
getUserLocale()
**Disabled by default.** The user's language and country/region identifier in the format of
[ISO 639](https://wikipedia.org/wiki/ISO_639_macrolanguage) language code-[ISO
3166](https://wikipedia.org/wiki/ISO_3166) country/region code.
|
CommonEventObject |
set(String fieldName,
Object value) |
CommonEventObject |
setFormInputs(Map<String,Inputs> formInputs)
A map containing the current values of the widgets in the displayed card.
|
CommonEventObject |
setHostApp(String hostApp)
Indicates the host app the add-on is active in when the event object is generated.
|
CommonEventObject |
setInvokedFunction(String invokedFunction)
Name of the function to invoke.
|
CommonEventObject |
setParameters(Map<String,String> parameters)
Any additional parameters you supply to an action using
[`actionParameters`](https://developers.google.com/workspace/add-
ons/reference/rpc/google.apps.card.v1#google.apps.card.v1.Action.ActionParameter) or
[`Action.setParameters()`](https://developers.google.com/apps-script/reference/card-
service/action#setparametersparameters).
|
CommonEventObject |
setPlatform(String platform)
The platform enum which indicates the platform where the event originates (`WEB`, `IOS`, or
`ANDROID`).
|
CommonEventObject |
setTimeZone(TimeZone timeZone)
**Disabled by default.** The timezone ID and offset from Coordinated Universal Time (UTC).
|
CommonEventObject |
setUserLocale(String userLocale)
**Disabled by default.** The user's language and country/region identifier in the format of
[ISO 639](https://wikipedia.org/wiki/ISO_639_macrolanguage) language code-[ISO
3166](https://wikipedia.org/wiki/ISO_3166) country/region code.
|
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 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.GenericJsonpublic CommonEventObject clone()
clone in class com.google.api.client.json.GenericJsonCopyright © 2011–2025 Google. All rights reserved.