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.Flags
AbstractMap.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.
|
CommonEventObject |
getCommon()
Represents information about the user's client, such as locale, host app, and platform.
|
String |
getConfigCompleteRedirectUrl()
The URL the Chat app should redirect the user to after they have completed an authorization or
configuration flow outside of Google Chat.
|
String |
getDialogEventType()
The type of [dialog](https://developers.google.com/chat/how-tos/dialogs) interaction event
received.
|
String |
getEventTime()
The timestamp indicating when the interaction event occurred.
|
Boolean |
getIsDialogEvent()
For `CARD_CLICKED` interaction events, whether the user interacted with a
[dialog](https://developers.google.com/chat/how-tos/dialogs).
|
Message |
getMessage()
The message that triggered the interaction event, if applicable.
|
Space |
getSpace()
The space in which the interaction event occurred.
|
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 of interaction event.
|
User |
getUser()
The user that triggered the interaction event.
|
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 |
setCommon(CommonEventObject common)
Represents information about the user's client, such as locale, host app, and platform.
|
DeprecatedEvent |
setConfigCompleteRedirectUrl(String configCompleteRedirectUrl)
The URL the Chat app should redirect the user to after they have completed an authorization or
configuration flow outside of Google Chat.
|
DeprecatedEvent |
setDialogEventType(String dialogEventType)
The type of [dialog](https://developers.google.com/chat/how-tos/dialogs) interaction event
received.
|
DeprecatedEvent |
setEventTime(String eventTime)
The timestamp indicating when the interaction event occurred.
|
DeprecatedEvent |
setIsDialogEvent(Boolean isDialogEvent)
For `CARD_CLICKED` interaction events, whether the user interacted with a
[dialog](https://developers.google.com/chat/how-tos/dialogs).
|
DeprecatedEvent |
setMessage(Message message)
The message that triggered the interaction event, if applicable.
|
DeprecatedEvent |
setSpace(Space space)
The space in which the interaction event occurred.
|
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 of interaction event.
|
DeprecatedEvent |
setUser(User user)
The user that triggered the interaction 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 FormAction getAction()
null
for nonepublic DeprecatedEvent setAction(FormAction action)
action
- action 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 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.GenericJson
public DeprecatedEvent clone()
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2024 Google. All rights reserved.