Class SlashCommandMetadata.Builder (0.8.0)

public static final class SlashCommandMetadata.Builder extends GeneratedMessageV3.Builder<SlashCommandMetadata.Builder> implements SlashCommandMetadataOrBuilder

Annotation metadata for slash commands (/).

Protobuf type google.chat.v1.SlashCommandMetadata

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public SlashCommandMetadata.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
SlashCommandMetadata.Builder
Overrides

build()

public SlashCommandMetadata build()
Returns
Type Description
SlashCommandMetadata

buildPartial()

public SlashCommandMetadata buildPartial()
Returns
Type Description
SlashCommandMetadata

clear()

public SlashCommandMetadata.Builder clear()
Returns
Type Description
SlashCommandMetadata.Builder
Overrides

clearBot()

public SlashCommandMetadata.Builder clearBot()

The Chat app whose command was invoked.

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

Returns
Type Description
SlashCommandMetadata.Builder

clearCommandId()

public SlashCommandMetadata.Builder clearCommandId()

The command ID of the invoked slash command.

int64 command_id = 4;

Returns
Type Description
SlashCommandMetadata.Builder

This builder for chaining.

clearCommandName()

public SlashCommandMetadata.Builder clearCommandName()

The name of the invoked slash command.

string command_name = 3;

Returns
Type Description
SlashCommandMetadata.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public SlashCommandMetadata.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
SlashCommandMetadata.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public SlashCommandMetadata.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
SlashCommandMetadata.Builder
Overrides

clearTriggersDialog()

public SlashCommandMetadata.Builder clearTriggersDialog()

Indicates whether the slash command is for a dialog.

bool triggers_dialog = 5;

Returns
Type Description
SlashCommandMetadata.Builder

This builder for chaining.

clearType()

public SlashCommandMetadata.Builder clearType()

The type of slash command.

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

Returns
Type Description
SlashCommandMetadata.Builder

This builder for chaining.

clone()

public SlashCommandMetadata.Builder clone()
Returns
Type Description
SlashCommandMetadata.Builder
Overrides

getBot()

public User getBot()

The Chat app whose command was invoked.

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

Returns
Type Description
User

The bot.

getBotBuilder()

public User.Builder getBotBuilder()

The Chat app whose command was invoked.

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

Returns
Type Description
User.Builder

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
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.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeBot(User value)

public SlashCommandMetadata.Builder mergeBot(User value)

The Chat app whose command was invoked.

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

Parameter
Name Description
value User
Returns
Type Description
SlashCommandMetadata.Builder

mergeFrom(SlashCommandMetadata other)

public SlashCommandMetadata.Builder mergeFrom(SlashCommandMetadata other)
Parameter
Name Description
other SlashCommandMetadata
Returns
Type Description
SlashCommandMetadata.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public SlashCommandMetadata.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SlashCommandMetadata.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public SlashCommandMetadata.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
SlashCommandMetadata.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SlashCommandMetadata.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SlashCommandMetadata.Builder
Overrides

setBot(User value)

public SlashCommandMetadata.Builder setBot(User value)

The Chat app whose command was invoked.

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

Parameter
Name Description
value User
Returns
Type Description
SlashCommandMetadata.Builder

setBot(User.Builder builderForValue)

public SlashCommandMetadata.Builder setBot(User.Builder builderForValue)

The Chat app whose command was invoked.

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

Parameter
Name Description
builderForValue User.Builder
Returns
Type Description
SlashCommandMetadata.Builder

setCommandId(long value)

public SlashCommandMetadata.Builder setCommandId(long value)

The command ID of the invoked slash command.

int64 command_id = 4;

Parameter
Name Description
value long

The commandId to set.

Returns
Type Description
SlashCommandMetadata.Builder

This builder for chaining.

setCommandName(String value)

public SlashCommandMetadata.Builder setCommandName(String value)

The name of the invoked slash command.

string command_name = 3;

Parameter
Name Description
value String

The commandName to set.

Returns
Type Description
SlashCommandMetadata.Builder

This builder for chaining.

setCommandNameBytes(ByteString value)

public SlashCommandMetadata.Builder setCommandNameBytes(ByteString value)

The name of the invoked slash command.

string command_name = 3;

Parameter
Name Description
value ByteString

The bytes for commandName to set.

Returns
Type Description
SlashCommandMetadata.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public SlashCommandMetadata.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
SlashCommandMetadata.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public SlashCommandMetadata.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
SlashCommandMetadata.Builder
Overrides

setTriggersDialog(boolean value)

public SlashCommandMetadata.Builder setTriggersDialog(boolean value)

Indicates whether the slash command is for a dialog.

bool triggers_dialog = 5;

Parameter
Name Description
value boolean

The triggersDialog to set.

Returns
Type Description
SlashCommandMetadata.Builder

This builder for chaining.

setType(SlashCommandMetadata.Type value)

public SlashCommandMetadata.Builder setType(SlashCommandMetadata.Type value)

The type of slash command.

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

Parameter
Name Description
value SlashCommandMetadata.Type

The type to set.

Returns
Type Description
SlashCommandMetadata.Builder

This builder for chaining.

setTypeValue(int value)

public SlashCommandMetadata.Builder setTypeValue(int value)

The type of slash command.

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

Parameter
Name Description
value int

The enum numeric value on the wire for type to set.

Returns
Type Description
SlashCommandMetadata.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final SlashCommandMetadata.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SlashCommandMetadata.Builder
Overrides