public static final class AppCommandMetadata.Builder extends GeneratedMessage.Builder<AppCommandMetadata.Builder> implements AppCommandMetadataOrBuilderMetadata about a Chat app command.
Protobuf type google.chat.v1.AppCommandMetadata
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > AppCommandMetadata.BuilderImplements
AppCommandMetadataOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public AppCommandMetadata build()| Returns | |
|---|---|
| Type | Description |
AppCommandMetadata |
|
buildPartial()
public AppCommandMetadata buildPartial()| Returns | |
|---|---|
| Type | Description |
AppCommandMetadata |
|
clear()
public AppCommandMetadata.Builder clear()| Returns | |
|---|---|
| Type | Description |
AppCommandMetadata.Builder |
|
clearAppCommandId()
public AppCommandMetadata.Builder clearAppCommandId()The ID for the command specified in the Chat API configuration.
int32 app_command_id = 1;
| Returns | |
|---|---|
| Type | Description |
AppCommandMetadata.Builder |
This builder for chaining. |
clearAppCommandType()
public AppCommandMetadata.Builder clearAppCommandType()The type of Chat app command.
.google.chat.v1.AppCommandMetadata.AppCommandType app_command_type = 2;
| Returns | |
|---|---|
| Type | Description |
AppCommandMetadata.Builder |
This builder for chaining. |
getAppCommandId()
public int getAppCommandId()The ID for the command specified in the Chat API configuration.
int32 app_command_id = 1;
| Returns | |
|---|---|
| Type | Description |
int |
The appCommandId. |
getAppCommandType()
public AppCommandMetadata.AppCommandType getAppCommandType()The type of Chat app command.
.google.chat.v1.AppCommandMetadata.AppCommandType app_command_type = 2;
| Returns | |
|---|---|
| Type | Description |
AppCommandMetadata.AppCommandType |
The appCommandType. |
getAppCommandTypeValue()
public int getAppCommandTypeValue()The type of Chat app command.
.google.chat.v1.AppCommandMetadata.AppCommandType app_command_type = 2;
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for appCommandType. |
getDefaultInstanceForType()
public AppCommandMetadata getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
AppCommandMetadata |
|
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(AppCommandMetadata other)
public AppCommandMetadata.Builder mergeFrom(AppCommandMetadata other)| Parameter | |
|---|---|
| Name | Description |
other |
AppCommandMetadata |
| Returns | |
|---|---|
| Type | Description |
AppCommandMetadata.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public AppCommandMetadata.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
AppCommandMetadata.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public AppCommandMetadata.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
AppCommandMetadata.Builder |
|
setAppCommandId(int value)
public AppCommandMetadata.Builder setAppCommandId(int value)The ID for the command specified in the Chat API configuration.
int32 app_command_id = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
intThe appCommandId to set. |
| Returns | |
|---|---|
| Type | Description |
AppCommandMetadata.Builder |
This builder for chaining. |
setAppCommandType(AppCommandMetadata.AppCommandType value)
public AppCommandMetadata.Builder setAppCommandType(AppCommandMetadata.AppCommandType value)The type of Chat app command.
.google.chat.v1.AppCommandMetadata.AppCommandType app_command_type = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
AppCommandMetadata.AppCommandTypeThe appCommandType to set. |
| Returns | |
|---|---|
| Type | Description |
AppCommandMetadata.Builder |
This builder for chaining. |
setAppCommandTypeValue(int value)
public AppCommandMetadata.Builder setAppCommandTypeValue(int value)The type of Chat app command.
.google.chat.v1.AppCommandMetadata.AppCommandType app_command_type = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for appCommandType to set. |
| Returns | |
|---|---|
| Type | Description |
AppCommandMetadata.Builder |
This builder for chaining. |