public final class DeprecatedEvent extends 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
GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
DeprecatedEvent() |
Modifier and Type | Method and Description |
---|---|
DeprecatedEvent |
clone() |
FormAction |
getAction()
The form action data associated with an interactive card that was clicked.
|
String |
getConfigCompleteRedirectUrl()
The URL the bot should redirect the user to after they have completed an authorization or
configuration flow outside of Google Chat.
|
String |
getEventTime()
The timestamp indicating when the event was dispatched.
|
Message |
getMessage()
The message that triggered the event, if applicable.
|
Space |
getSpace()
The room or DM in which the event occurred.
|
String |
getThreadKey()
The bot-defined key for the thread related to the event.
|
String |
getToken()
A secret value that bots can use to verify if a request is from Google.
|
String |
getType()
The type of the event.
|
User |
getUser()
The user that triggered the event.
|
DeprecatedEvent |
set(String fieldName,
Object value) |
DeprecatedEvent |
setAction(FormAction action)
The form action data associated with an interactive card that was clicked.
|
DeprecatedEvent |
setConfigCompleteRedirectUrl(String configCompleteRedirectUrl)
The URL the bot should redirect the user to after they have completed an authorization or
configuration flow outside of Google Chat.
|
DeprecatedEvent |
setEventTime(String eventTime)
The timestamp indicating when the event was dispatched.
|
DeprecatedEvent |
setMessage(Message message)
The message that triggered the event, if applicable.
|
DeprecatedEvent |
setSpace(Space space)
The room or DM in which the event occurred.
|
DeprecatedEvent |
setThreadKey(String threadKey)
The bot-defined key for the thread related to the event.
|
DeprecatedEvent |
setToken(String token)
A secret value that bots can use to verify if a request is from Google.
|
DeprecatedEvent |
setType(String type)
The type of the event.
|
DeprecatedEvent |
setUser(User user)
The user that triggered the 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 String getConfigCompleteRedirectUrl()
null
for nonepublic DeprecatedEvent setConfigCompleteRedirectUrl(String configCompleteRedirectUrl)
configCompleteRedirectUrl
- configCompleteRedirectUrl or null
for nonepublic String getEventTime()
null
for nonepublic DeprecatedEvent setEventTime(String eventTime)
eventTime
- eventTime 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 GenericJson
public DeprecatedEvent clone()
clone
in class GenericJson
Copyright © 2011–2021 Google. All rights reserved.