Interface SlashCommandMetadataOrBuilder (0.8.0)

public interface SlashCommandMetadataOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getBot()

public abstract User getBot()

The Chat app whose command was invoked.

.google.chat.v1.User bot = 1;

Returns
Type Description
User

The bot.

getBotOrBuilder()

public abstract UserOrBuilder getBotOrBuilder()

The Chat app whose command was invoked.

.google.chat.v1.User bot = 1;

Returns
Type Description
UserOrBuilder

getCommandId()

public abstract long getCommandId()

The command ID of the invoked slash command.

int64 command_id = 4;

Returns
Type Description
long

The commandId.

getCommandName()

public abstract String getCommandName()

The name of the invoked slash command.

string command_name = 3;

Returns
Type Description
String

The commandName.

getCommandNameBytes()

public abstract ByteString getCommandNameBytes()

The name of the invoked slash command.

string command_name = 3;

Returns
Type Description
ByteString

The bytes for commandName.

getTriggersDialog()

public abstract boolean getTriggersDialog()

Indicates whether the slash command is for a dialog.

bool triggers_dialog = 5;

Returns
Type Description
boolean

The triggersDialog.

getType()

public abstract SlashCommandMetadata.Type getType()

The type of slash command.

.google.chat.v1.SlashCommandMetadata.Type type = 2;

Returns
Type Description
SlashCommandMetadata.Type

The type.

getTypeValue()

public abstract int getTypeValue()

The type of slash command.

.google.chat.v1.SlashCommandMetadata.Type type = 2;

Returns
Type Description
int

The enum numeric value on the wire for type.

hasBot()

public abstract boolean hasBot()

The Chat app whose command was invoked.

.google.chat.v1.User bot = 1;

Returns
Type Description
boolean

Whether the bot field is set.