Class SlashCommand.Builder (0.16.0)

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

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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

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

int64 command_id = 1;

Returns
Type Description
SlashCommand.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getCommandId()

public long getCommandId()

The ID of the slash command invoked.

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setCommandId(long value)

public SlashCommand.Builder setCommandId(long value)

The ID of the slash command invoked.

int64 command_id = 1;

Parameter
Name Description
value long

The commandId to set.

Returns
Type Description
SlashCommand.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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