Class SlashCommandMetadata (0.11.0)

public final class SlashCommandMetadata extends GeneratedMessageV3 implements SlashCommandMetadataOrBuilder

Annotation metadata for slash commands (/).

Protobuf type google.chat.v1.SlashCommandMetadata

Static Fields

BOT_FIELD_NUMBER

public static final int BOT_FIELD_NUMBER
Field Value
Type Description
int

COMMAND_ID_FIELD_NUMBER

public static final int COMMAND_ID_FIELD_NUMBER
Field Value
Type Description
int

COMMAND_NAME_FIELD_NUMBER

public static final int COMMAND_NAME_FIELD_NUMBER
Field Value
Type Description
int

TRIGGERS_DIALOG_FIELD_NUMBER

public static final int TRIGGERS_DIALOG_FIELD_NUMBER
Field Value
Type Description
int

TYPE_FIELD_NUMBER

public static final int TYPE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static SlashCommandMetadata getDefaultInstance()
Returns
Type Description
SlashCommandMetadata

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static SlashCommandMetadata.Builder newBuilder()
Returns
Type Description
SlashCommandMetadata.Builder

newBuilder(SlashCommandMetadata prototype)

public static SlashCommandMetadata.Builder newBuilder(SlashCommandMetadata prototype)
Parameter
Name Description
prototype SlashCommandMetadata
Returns
Type Description
SlashCommandMetadata.Builder

parseDelimitedFrom(InputStream input)

public static SlashCommandMetadata parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
SlashCommandMetadata
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static SlashCommandMetadata parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SlashCommandMetadata
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static SlashCommandMetadata parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
SlashCommandMetadata
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static SlashCommandMetadata parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SlashCommandMetadata
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static SlashCommandMetadata parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
SlashCommandMetadata
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static SlashCommandMetadata parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SlashCommandMetadata
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static SlashCommandMetadata parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
SlashCommandMetadata
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static SlashCommandMetadata parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SlashCommandMetadata
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static SlashCommandMetadata parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
SlashCommandMetadata
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static SlashCommandMetadata parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SlashCommandMetadata
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static SlashCommandMetadata parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
SlashCommandMetadata
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static SlashCommandMetadata parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SlashCommandMetadata
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<SlashCommandMetadata> parser()
Returns
Type Description
Parser<SlashCommandMetadata>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getBot()

public User getBot()

The Chat app whose command was invoked.

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

Returns
Type Description
User

The bot.

getBotOrBuilder()

public UserOrBuilder getBotOrBuilder()

The Chat app whose command was invoked.

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

Returns
Type Description
UserOrBuilder

getCommandId()

public long getCommandId()

The command ID of the invoked slash command.

int64 command_id = 4;

Returns
Type Description
long

The commandId.

getCommandName()

public String getCommandName()

The name of the invoked slash command.

string command_name = 3;

Returns
Type Description
String

The commandName.

getCommandNameBytes()

public ByteString getCommandNameBytes()

The name of the invoked slash command.

string command_name = 3;

Returns
Type Description
ByteString

The bytes for commandName.

getDefaultInstanceForType()

public SlashCommandMetadata getDefaultInstanceForType()
Returns
Type Description
SlashCommandMetadata

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getTriggersDialog()

public boolean getTriggersDialog()

Indicates whether the slash command is for a dialog.

bool triggers_dialog = 5;

Returns
Type Description
boolean

The triggersDialog.

getType()

public SlashCommandMetadata.Type getType()

The type of slash command.

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

Returns
Type Description
SlashCommandMetadata.Type

The type.

getTypeValue()

public 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 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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public SlashCommandMetadata.Builder newBuilderForType()
Returns
Type Description
SlashCommandMetadata.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected SlashCommandMetadata.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
SlashCommandMetadata.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public SlashCommandMetadata.Builder toBuilder()
Returns
Type Description
SlashCommandMetadata.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException