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 Hangouts 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
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.
|
java.lang.String |
getConfigCompleteRedirectUrl()
The URL the bot should redirect the user to after they have completed an authorization or
configuration flow outside of Hangouts Chat.
|
java.lang.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.
|
java.lang.String |
getThreadKey()
The bot-defined key for the thread related to the event.
|
java.lang.String |
getToken()
A secret value that bots can use to verify if a request is from Google.
|
java.lang.String |
getType()
The type of the event.
|
User |
getUser()
The user that triggered the event.
|
DeprecatedEvent |
set(java.lang.String fieldName,
java.lang.Object value) |
DeprecatedEvent |
setAction(FormAction action)
The form action data associated with an interactive card that was clicked.
|
DeprecatedEvent |
setConfigCompleteRedirectUrl(java.lang.String configCompleteRedirectUrl)
The URL the bot should redirect the user to after they have completed an authorization or
configuration flow outside of Hangouts Chat.
|
DeprecatedEvent |
setEventTime(java.lang.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(java.lang.String threadKey)
The bot-defined key for the thread related to the event.
|
DeprecatedEvent |
setToken(java.lang.String token)
A secret value that bots can use to verify if a request is from Google.
|
DeprecatedEvent |
setType(java.lang.String type)
The type of the event.
|
DeprecatedEvent |
setUser(User user)
The user that triggered the event.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public FormAction getAction()
null
for nonepublic DeprecatedEvent setAction(FormAction action)
action
- action or null
for nonepublic java.lang.String getConfigCompleteRedirectUrl()
null
for nonepublic DeprecatedEvent setConfigCompleteRedirectUrl(java.lang.String configCompleteRedirectUrl)
configCompleteRedirectUrl
- configCompleteRedirectUrl or null
for nonepublic java.lang.String getEventTime()
null
for nonepublic DeprecatedEvent setEventTime(java.lang.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 java.lang.String getThreadKey()
null
for nonepublic DeprecatedEvent setThreadKey(java.lang.String threadKey)
threadKey
- threadKey or null
for nonepublic java.lang.String getToken()
null
for nonepublic DeprecatedEvent setToken(java.lang.String token)
token
- token or null
for nonepublic java.lang.String getType()
null
for nonepublic DeprecatedEvent setType(java.lang.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(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public DeprecatedEvent clone()
clone
in class com.google.api.client.json.GenericJson