Class AppCommandMetadata.Builder (0.63.0)

public static final class AppCommandMetadata.Builder extends GeneratedMessage.Builder<AppCommandMetadata.Builder> implements AppCommandMetadataOrBuilder

Metadata about a Chat app command.

Protobuf type google.chat.v1.AppCommandMetadata

Static 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
Overrides

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
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

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
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

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

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 int

The 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.AppCommandType

The 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 int

The enum numeric value on the wire for appCommandType to set.

Returns
Type Description
AppCommandMetadata.Builder

This builder for chaining.