Class SlashCommand.Builder (0.49.0)

public static final class SlashCommand.Builder extends GeneratedMessage.Builder<SlashCommand.Builder> implements SlashCommandOrBuilder

Metadata about a slash command in Google Chat.

Protobuf type google.chat.v1.SlashCommand

Static Methods

getDescriptor()

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

Methods

build()

public SlashCommand build()
Returns
Type Description
SlashCommand

buildPartial()

public SlashCommand buildPartial()
Returns
Type Description
SlashCommand

clear()

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

clearCommandId()

public SlashCommand.Builder clearCommandId()

The ID of the slash command.

int64 command_id = 1;

Returns
Type Description
SlashCommand.Builder

This builder for chaining.

getCommandId()

public long getCommandId()

The ID of the slash command.

int64 command_id = 1;

Returns
Type Description
long

The commandId.

getDefaultInstanceForType()

public SlashCommand getDefaultInstanceForType()
Returns
Type Description
SlashCommand

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(SlashCommand other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setCommandId(long value)

public SlashCommand.Builder setCommandId(long value)

The ID of the slash command.

int64 command_id = 1;

Parameter
Name Description
value long

The commandId to set.

Returns
Type Description
SlashCommand.Builder

This builder for chaining.