Class SlashCommandMetadata (0.21.0)

publicfinalclass SlashCommandMetadataextendsGeneratedMessageV3implementsSlashCommandMetadataOrBuilder

Annotation metadata for slash commands (/).

Protobuf type google.chat.v1.SlashCommandMetadata

Inherited Members

com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)

Static Fields

BOT_FIELD_NUMBER

publicstaticfinalintBOT_FIELD_NUMBER
Field Value
Type Description
int

COMMAND_ID_FIELD_NUMBER

publicstaticfinalintCOMMAND_ID_FIELD_NUMBER
Field Value
Type Description
int

COMMAND_NAME_FIELD_NUMBER

publicstaticfinalintCOMMAND_NAME_FIELD_NUMBER
Field Value
Type Description
int

TRIGGERS_DIALOG_FIELD_NUMBER

publicstaticfinalintTRIGGERS_DIALOG_FIELD_NUMBER
Field Value
Type Description
int

TYPE_FIELD_NUMBER

publicstaticfinalintTYPE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

publicstaticSlashCommandMetadatagetDefaultInstance()
Returns
Type Description
SlashCommandMetadata

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

newBuilder()

publicstaticSlashCommandMetadata.BuildernewBuilder()
Returns
Type Description
SlashCommandMetadata.Builder

newBuilder(SlashCommandMetadata prototype)

publicstaticSlashCommandMetadata.BuildernewBuilder(SlashCommandMetadataprototype)
Parameter
Name Description
prototype SlashCommandMetadata
Returns
Type Description
SlashCommandMetadata.Builder

parseDelimitedFrom(InputStream input)

publicstaticSlashCommandMetadataparseDelimitedFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
SlashCommandMetadata
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticSlashCommandMetadataparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SlashCommandMetadata
Exceptions
Type Description
IOException

parseFrom(byte[] data)

publicstaticSlashCommandMetadataparseFrom(byte[]data)
Parameter
Name Description
data byte[]
Returns
Type Description
SlashCommandMetadata
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

publicstaticSlashCommandMetadataparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SlashCommandMetadata
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

publicstaticSlashCommandMetadataparseFrom(ByteStringdata)
Parameter
Name Description
data ByteString
Returns
Type Description
SlashCommandMetadata
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

publicstaticSlashCommandMetadataparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SlashCommandMetadata
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

publicstaticSlashCommandMetadataparseFrom(CodedInputStreaminput)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
SlashCommandMetadata
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticSlashCommandMetadataparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SlashCommandMetadata
Exceptions
Type Description
IOException

parseFrom(InputStream input)

publicstaticSlashCommandMetadataparseFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
SlashCommandMetadata
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticSlashCommandMetadataparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SlashCommandMetadata
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

publicstaticSlashCommandMetadataparseFrom(ByteBufferdata)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
SlashCommandMetadata
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

publicstaticSlashCommandMetadataparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SlashCommandMetadata
Exceptions
Type Description
InvalidProtocolBufferException

parser()

publicstaticParser<SlashCommandMetadata>parser()
Returns
Type Description
Parser<SlashCommandMetadata>

Methods

equals(Object obj)

publicbooleanequals(Objectobj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getBot()

publicUsergetBot()

The Chat app whose command was invoked.

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

Returns
Type Description
User

The bot.

getBotOrBuilder()

publicUserOrBuildergetBotOrBuilder()

The Chat app whose command was invoked.

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

Returns
Type Description
UserOrBuilder

getCommandId()

publiclonggetCommandId()

The command ID of the invoked slash command.

int64 command_id = 4;

Returns
Type Description
long

The commandId.

getCommandName()

publicStringgetCommandName()

The name of the invoked slash command.

string command_name = 3;

Returns
Type Description
String

The commandName.

getCommandNameBytes()

publicByteStringgetCommandNameBytes()

The name of the invoked slash command.

string command_name = 3;

Returns
Type Description
ByteString

The bytes for commandName.

getDefaultInstanceForType()

publicSlashCommandMetadatagetDefaultInstanceForType()
Returns
Type Description
SlashCommandMetadata

getParserForType()

publicParser<SlashCommandMetadata>getParserForType()
Returns
Type Description
Parser<SlashCommandMetadata>
Overrides

getSerializedSize()

publicintgetSerializedSize()
Returns
Type Description
int
Overrides

getTriggersDialog()

publicbooleangetTriggersDialog()

Indicates whether the slash command is for a dialog.

bool triggers_dialog = 5;

Returns
Type Description
boolean

The triggersDialog.

getType()

publicSlashCommandMetadata.TypegetType()

The type of slash command.

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

Returns
Type Description
SlashCommandMetadata.Type

The type.

getTypeValue()

publicintgetTypeValue()

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()

publicbooleanhasBot()

The Chat app whose command was invoked.

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

Returns
Type Description
boolean

Whether the bot field is set.

hashCode()

publicinthashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

publicSlashCommandMetadata.BuildernewBuilderForType()
Returns
Type Description
SlashCommandMetadata.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protectedSlashCommandMetadata.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
SlashCommandMetadata.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protectedObjectnewInstance(GeneratedMessageV3.UnusedPrivateParameterunused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

publicSlashCommandMetadata.BuildertoBuilder()
Returns
Type Description
SlashCommandMetadata.Builder

writeTo(CodedOutputStream output)

publicvoidwriteTo(CodedOutputStreamoutput)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.