public static final class SlashCommand.Builder extends GeneratedMessage.Builder<SlashCommand.Builder> implements SlashCommandOrBuilderMetadata about a slash command in Google Chat.
Protobuf type google.chat.v1.SlashCommand
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > SlashCommand.BuilderImplements
SlashCommandOrBuilderStatic 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 |
|
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 |
|
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public SlashCommand.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
SlashCommand.Builder |
|
setCommandId(long value)
public SlashCommand.Builder setCommandId(long value)The ID of the slash command.
int64 command_id = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
longThe commandId to set. |
| Returns | |
|---|---|
| Type | Description |
SlashCommand.Builder |
This builder for chaining. |