public final class SlashCommandMetadata
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 |
---|
SlashCommandMetadata() |
Modifier and Type | Method and Description |
---|---|
SlashCommandMetadata |
clone() |
User |
getBot()
The Chat app whose command was invoked.
|
Long |
getCommandId()
The command ID of the invoked slash command.
|
String |
getCommandName()
The name of the invoked slash command.
|
Boolean |
getTriggersDialog()
Indicates whether the slash command is for a dialog.
|
String |
getType()
The type of slash command.
|
SlashCommandMetadata |
set(String fieldName,
Object value) |
SlashCommandMetadata |
setBot(User bot)
The Chat app whose command was invoked.
|
SlashCommandMetadata |
setCommandId(Long commandId)
The command ID of the invoked slash command.
|
SlashCommandMetadata |
setCommandName(String commandName)
The name of the invoked slash command.
|
SlashCommandMetadata |
setTriggersDialog(Boolean triggersDialog)
Indicates whether the slash command is for a dialog.
|
SlashCommandMetadata |
setType(String type)
The type of slash command.
|
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 User getBot()
null
for nonepublic SlashCommandMetadata setBot(User bot)
bot
- bot or null
for nonepublic Long getCommandId()
null
for nonepublic SlashCommandMetadata setCommandId(Long commandId)
commandId
- commandId or null
for nonepublic String getCommandName()
null
for nonepublic SlashCommandMetadata setCommandName(String commandName)
commandName
- commandName or null
for nonepublic Boolean getTriggersDialog()
null
for nonepublic SlashCommandMetadata setTriggersDialog(Boolean triggersDialog)
triggersDialog
- triggersDialog or null
for nonepublic String getType()
null
for nonepublic SlashCommandMetadata setType(String type)
type
- type or null
for nonepublic SlashCommandMetadata set(String fieldName, Object value)
set
in class com.google.api.client.json.GenericJson
public SlashCommandMetadata clone()
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2024 Google. All rights reserved.