public final class DeprecatedEvent
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 |
|---|
DeprecatedEvent() |
| Modifier and Type | Method and Description |
|---|---|
DeprecatedEvent |
clone() |
FormAction |
getAction()
For `CARD_CLICKED` interaction events, the form action data associated when a user clicks a
card or dialog.
|
AppCommandMetadata |
getAppCommandMetadata()
Metadata about a Chat app command.
|
CommonEventObject |
getCommon()
Represents information about the user's client, such as locale, host app, and platform.
|
String |
getConfigCompleteRedirectUrl()
This URL is populated for `MESSAGE`, `ADDED_TO_SPACE`, and `APP_COMMAND` interaction events.
|
String |
getDialogEventType()
The type of [dialog](https://developers.google.com/workspace/chat/dialogs) interaction event
received.
|
String |
getEventTime()
The timestamp indicating when the interaction event occurred.
|
Boolean |
getIsDialogEvent()
For `CARD_CLICKED` and `MESSAGE` interaction events, whether the user is interacting with or
about to interact with a [dialog](https://developers.google.com/workspace/chat/dialogs).
|
Message |
getMessage()
For `ADDED_TO_SPACE`, `CARD_CLICKED`, and `MESSAGE` interaction events, the message that
triggered the interaction event, if applicable.
|
Space |
getSpace()
The space in which the user interacted with the Chat app.
|
Thread |
getThread()
The thread in which the user interacted with the Chat app.
|
String |
getThreadKey()
The Chat app-defined key for the thread related to the interaction event.
|
String |
getToken()
A secret value that legacy Chat apps can use to verify if a request is from Google.
|
String |
getType()
The [type](/workspace/chat/api/reference/rest/v1/EventType) of user interaction with the Chat
app, such as `MESSAGE` or `ADDED_TO_SPACE`.
|
User |
getUser()
The user that interacted with the Chat app.
|
DeprecatedEvent |
set(String fieldName,
Object value) |
DeprecatedEvent |
setAction(FormAction action)
For `CARD_CLICKED` interaction events, the form action data associated when a user clicks a
card or dialog.
|
DeprecatedEvent |
setAppCommandMetadata(AppCommandMetadata appCommandMetadata)
Metadata about a Chat app command.
|
DeprecatedEvent |
setCommon(CommonEventObject common)
Represents information about the user's client, such as locale, host app, and platform.
|
DeprecatedEvent |
setConfigCompleteRedirectUrl(String configCompleteRedirectUrl)
This URL is populated for `MESSAGE`, `ADDED_TO_SPACE`, and `APP_COMMAND` interaction events.
|
DeprecatedEvent |
setDialogEventType(String dialogEventType)
The type of [dialog](https://developers.google.com/workspace/chat/dialogs) interaction event
received.
|
DeprecatedEvent |
setEventTime(String eventTime)
The timestamp indicating when the interaction event occurred.
|
DeprecatedEvent |
setIsDialogEvent(Boolean isDialogEvent)
For `CARD_CLICKED` and `MESSAGE` interaction events, whether the user is interacting with or
about to interact with a [dialog](https://developers.google.com/workspace/chat/dialogs).
|
DeprecatedEvent |
setMessage(Message message)
For `ADDED_TO_SPACE`, `CARD_CLICKED`, and `MESSAGE` interaction events, the message that
triggered the interaction event, if applicable.
|
DeprecatedEvent |
setSpace(Space space)
The space in which the user interacted with the Chat app.
|
DeprecatedEvent |
setThread(Thread thread)
The thread in which the user interacted with the Chat app.
|
DeprecatedEvent |
setThreadKey(String threadKey)
The Chat app-defined key for the thread related to the interaction event.
|
DeprecatedEvent |
setToken(String token)
A secret value that legacy Chat apps can use to verify if a request is from Google.
|
DeprecatedEvent |
setType(String type)
The [type](/workspace/chat/api/reference/rest/v1/EventType) of user interaction with the Chat
app, such as `MESSAGE` or `ADDED_TO_SPACE`.
|
DeprecatedEvent |
setUser(User user)
The user that interacted with the Chat app.
|
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 FormAction getAction()
null for nonepublic DeprecatedEvent setAction(FormAction action)
action - action or null for nonepublic AppCommandMetadata getAppCommandMetadata()
null for nonepublic DeprecatedEvent setAppCommandMetadata(AppCommandMetadata appCommandMetadata)
appCommandMetadata - appCommandMetadata or null for nonepublic CommonEventObject getCommon()
null for nonepublic DeprecatedEvent setCommon(CommonEventObject common)
common - common or null for nonepublic String getConfigCompleteRedirectUrl()
null for nonepublic DeprecatedEvent setConfigCompleteRedirectUrl(String configCompleteRedirectUrl)
configCompleteRedirectUrl - configCompleteRedirectUrl or null for nonepublic String getDialogEventType()
null for nonepublic DeprecatedEvent setDialogEventType(String dialogEventType)
dialogEventType - dialogEventType or null for nonepublic String getEventTime()
null for nonepublic DeprecatedEvent setEventTime(String eventTime)
eventTime - eventTime or null for nonepublic Boolean getIsDialogEvent()
null for nonepublic DeprecatedEvent setIsDialogEvent(Boolean isDialogEvent)
isDialogEvent - isDialogEvent or null for nonepublic Message getMessage()
null for nonepublic DeprecatedEvent setMessage(Message message)
message - message or null for nonepublic Space getSpace()
null for nonepublic DeprecatedEvent setSpace(Space space)
space - space or null for nonepublic Thread getThread()
null for nonepublic DeprecatedEvent setThread(Thread thread)
thread - thread or null for nonepublic String getThreadKey()
null for nonepublic DeprecatedEvent setThreadKey(String threadKey)
threadKey - threadKey or null for nonepublic String getToken()
null for nonepublic DeprecatedEvent setToken(String token)
token - token or null for nonepublic String getType()
null for nonepublic DeprecatedEvent setType(String type)
type - type or null for nonepublic User getUser()
null for nonepublic DeprecatedEvent setUser(User user)
user - user or null for nonepublic DeprecatedEvent set(String fieldName, Object value)
set in class com.google.api.client.json.GenericJsonpublic DeprecatedEvent clone()
clone in class com.google.api.client.json.GenericJsonCopyright © 2011–2025 Google. All rights reserved.