Class SlashCommandMetadata (0.1.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
TypeDescription
int

COMMAND_ID_FIELD_NUMBER

public static final int COMMAND_ID_FIELD_NUMBER
Field Value
TypeDescription
int

COMMAND_NAME_FIELD_NUMBER

public static final int COMMAND_NAME_FIELD_NUMBER
Field Value
TypeDescription
int

TRIGGERS_DIALOG_FIELD_NUMBER

public static final int TRIGGERS_DIALOG_FIELD_NUMBER
Field Value
TypeDescription
int

TYPE_FIELD_NUMBER

public static final int TYPE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static SlashCommandMetadata getDefaultInstance()
Returns
TypeDescription
SlashCommandMetadata

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static SlashCommandMetadata.Builder newBuilder()
Returns
TypeDescription
SlashCommandMetadata.Builder

newBuilder(SlashCommandMetadata prototype)

public static SlashCommandMetadata.Builder newBuilder(SlashCommandMetadata prototype)
Parameter
NameDescription
prototypeSlashCommandMetadata
Returns
TypeDescription
SlashCommandMetadata.Builder

parseDelimitedFrom(InputStream input)

public static SlashCommandMetadata parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
SlashCommandMetadata
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static SlashCommandMetadata parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SlashCommandMetadata
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static SlashCommandMetadata parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
SlashCommandMetadata
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static SlashCommandMetadata parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SlashCommandMetadata
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static SlashCommandMetadata parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
SlashCommandMetadata
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static SlashCommandMetadata parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SlashCommandMetadata
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static SlashCommandMetadata parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
SlashCommandMetadata
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static SlashCommandMetadata parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SlashCommandMetadata
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static SlashCommandMetadata parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
SlashCommandMetadata
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static SlashCommandMetadata parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SlashCommandMetadata
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static SlashCommandMetadata parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
SlashCommandMetadata
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static SlashCommandMetadata parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SlashCommandMetadata
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<SlashCommandMetadata> parser()
Returns
TypeDescription
Parser<SlashCommandMetadata>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getBot()

public User getBot()

The Chat app whose command was invoked.

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

Returns
TypeDescription
User

The bot.

getBotOrBuilder()

public UserOrBuilder getBotOrBuilder()

The Chat app whose command was invoked.

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

Returns
TypeDescription
UserOrBuilder

getCommandId()

public long getCommandId()

The command ID of the invoked slash command.

int64 command_id = 4;

Returns
TypeDescription
long

The commandId.

getCommandName()

public String getCommandName()

The name of the invoked slash command.

string command_name = 3;

Returns
TypeDescription
String

The commandName.

getCommandNameBytes()

public ByteString getCommandNameBytes()

The name of the invoked slash command.

string command_name = 3;

Returns
TypeDescription
ByteString

The bytes for commandName.

getDefaultInstanceForType()

public SlashCommandMetadata getDefaultInstanceForType()
Returns
TypeDescription
SlashCommandMetadata

getParserForType()

public Parser<SlashCommandMetadata> getParserForType()
Returns
TypeDescription
Parser<SlashCommandMetadata>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getTriggersDialog()

public boolean getTriggersDialog()

Indicates whether the slash command is for a dialog.

bool triggers_dialog = 5;

Returns
TypeDescription
boolean

The triggersDialog.

getType()

public SlashCommandMetadata.Type getType()

The type of slash command.

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

Returns
TypeDescription
SlashCommandMetadata.Type

The type.

getTypeValue()

public int getTypeValue()

The type of slash command.

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

Returns
TypeDescription
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
TypeDescription
boolean

Whether the bot field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public SlashCommandMetadata.Builder newBuilderForType()
Returns
TypeDescription
SlashCommandMetadata.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected SlashCommandMetadata.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
SlashCommandMetadata.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public SlashCommandMetadata.Builder toBuilder()
Returns
TypeDescription
SlashCommandMetadata.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException