Class SlashCommand.Builder (0.5.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public SlashCommand build()
Returns
TypeDescription
SlashCommand

buildPartial()

public SlashCommand buildPartial()
Returns
TypeDescription
SlashCommand

clear()

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

clearCommandId()

public SlashCommand.Builder clearCommandId()

The ID of the slash command invoked.

int64 command_id = 1;

Returns
TypeDescription
SlashCommand.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getCommandId()

public long getCommandId()

The ID of the slash command invoked.

int64 command_id = 1;

Returns
TypeDescription
long

The commandId.

getDefaultInstanceForType()

public SlashCommand getDefaultInstanceForType()
Returns
TypeDescription
SlashCommand

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(SlashCommand other)

public SlashCommand.Builder mergeFrom(SlashCommand other)
Parameter
NameDescription
otherSlashCommand
Returns
TypeDescription
SlashCommand.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SlashCommand.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
SlashCommand.Builder
Overrides

setCommandId(long value)

public SlashCommand.Builder setCommandId(long value)

The ID of the slash command invoked.

int64 command_id = 1;

Parameter
NameDescription
valuelong

The commandId to set.

Returns
TypeDescription
SlashCommand.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public SlashCommand.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
SlashCommand.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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