Class SlashCommandMetadata.Builder (0.3.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public SlashCommandMetadata.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
SlashCommandMetadata.Builder
Overrides

build()

public SlashCommandMetadata build()
Returns
TypeDescription
SlashCommandMetadata

buildPartial()

public SlashCommandMetadata buildPartial()
Returns
TypeDescription
SlashCommandMetadata

clear()

public SlashCommandMetadata.Builder clear()
Returns
TypeDescription
SlashCommandMetadata.Builder
Overrides

clearBot()

public SlashCommandMetadata.Builder clearBot()

The Chat app whose command was invoked.

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

Returns
TypeDescription
SlashCommandMetadata.Builder

clearCommandId()

public SlashCommandMetadata.Builder clearCommandId()

The command ID of the invoked slash command.

int64 command_id = 4;

Returns
TypeDescription
SlashCommandMetadata.Builder

This builder for chaining.

clearCommandName()

public SlashCommandMetadata.Builder clearCommandName()

The name of the invoked slash command.

string command_name = 3;

Returns
TypeDescription
SlashCommandMetadata.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public SlashCommandMetadata.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
SlashCommandMetadata.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public SlashCommandMetadata.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
SlashCommandMetadata.Builder
Overrides

clearTriggersDialog()

public SlashCommandMetadata.Builder clearTriggersDialog()

Indicates whether the slash command is for a dialog.

bool triggers_dialog = 5;

Returns
TypeDescription
SlashCommandMetadata.Builder

This builder for chaining.

clearType()

public SlashCommandMetadata.Builder clearType()

The type of slash command.

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

Returns
TypeDescription
SlashCommandMetadata.Builder

This builder for chaining.

clone()

public SlashCommandMetadata.Builder clone()
Returns
TypeDescription
SlashCommandMetadata.Builder
Overrides

getBot()

public User getBot()

The Chat app whose command was invoked.

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

Returns
TypeDescription
User

The bot.

getBotBuilder()

public User.Builder getBotBuilder()

The Chat app whose command was invoked.

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

Returns
TypeDescription
User.Builder

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

getDescriptorForType()

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

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueUser
Returns
TypeDescription
SlashCommandMetadata.Builder

mergeFrom(SlashCommandMetadata other)

public SlashCommandMetadata.Builder mergeFrom(SlashCommandMetadata other)
Parameter
NameDescription
otherSlashCommandMetadata
Returns
TypeDescription
SlashCommandMetadata.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public SlashCommandMetadata.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SlashCommandMetadata.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public SlashCommandMetadata.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
SlashCommandMetadata.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SlashCommandMetadata.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueUser
Returns
TypeDescription
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
NameDescription
builderForValueUser.Builder
Returns
TypeDescription
SlashCommandMetadata.Builder

setCommandId(long value)

public SlashCommandMetadata.Builder setCommandId(long value)

The command ID of the invoked slash command.

int64 command_id = 4;

Parameter
NameDescription
valuelong

The commandId to set.

Returns
TypeDescription
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
NameDescription
valueString

The commandName to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for commandName to set.

Returns
TypeDescription
SlashCommandMetadata.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public SlashCommandMetadata.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
SlashCommandMetadata.Builder
Overrides

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

public SlashCommandMetadata.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueboolean

The triggersDialog to set.

Returns
TypeDescription
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
NameDescription
valueSlashCommandMetadata.Type

The type to set.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
SlashCommandMetadata.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final SlashCommandMetadata.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
SlashCommandMetadata.Builder
Overrides