Class Command.Builder (0.1.0)

public static final class Command.Builder extends GeneratedMessage.Builder<Command.Builder> implements CommandOrBuilder

Command specifies the type of command to execute.

Protobuf type google.cloud.workloadmanager.v1.Command

Implements

CommandOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public Command build()
Returns
Type Description
Command

buildPartial()

public Command buildPartial()
Returns
Type Description
Command

clear()

public Command.Builder clear()
Returns
Type Description
Command.Builder
Overrides

clearAgentCommand()

public Command.Builder clearAgentCommand()

AgentCommand specifies a one-time executable program for the agent to run.

.google.cloud.workloadmanager.v1.AgentCommand agent_command = 1;

Returns
Type Description
Command.Builder

clearCommandType()

public Command.Builder clearCommandType()
Returns
Type Description
Command.Builder

clearShellCommand()

public Command.Builder clearShellCommand()

ShellCommand is invoked via the agent's command line executor.

.google.cloud.workloadmanager.v1.ShellCommand shell_command = 2;

Returns
Type Description
Command.Builder

getAgentCommand()

public AgentCommand getAgentCommand()

AgentCommand specifies a one-time executable program for the agent to run.

.google.cloud.workloadmanager.v1.AgentCommand agent_command = 1;

Returns
Type Description
AgentCommand

The agentCommand.

getAgentCommandBuilder()

public AgentCommand.Builder getAgentCommandBuilder()

AgentCommand specifies a one-time executable program for the agent to run.

.google.cloud.workloadmanager.v1.AgentCommand agent_command = 1;

Returns
Type Description
AgentCommand.Builder

getAgentCommandOrBuilder()

public AgentCommandOrBuilder getAgentCommandOrBuilder()

AgentCommand specifies a one-time executable program for the agent to run.

.google.cloud.workloadmanager.v1.AgentCommand agent_command = 1;

Returns
Type Description
AgentCommandOrBuilder

getCommandTypeCase()

public Command.CommandTypeCase getCommandTypeCase()
Returns
Type Description
Command.CommandTypeCase

getDefaultInstanceForType()

public Command getDefaultInstanceForType()
Returns
Type Description
Command

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getShellCommand()

public ShellCommand getShellCommand()

ShellCommand is invoked via the agent's command line executor.

.google.cloud.workloadmanager.v1.ShellCommand shell_command = 2;

Returns
Type Description
ShellCommand

The shellCommand.

getShellCommandBuilder()

public ShellCommand.Builder getShellCommandBuilder()

ShellCommand is invoked via the agent's command line executor.

.google.cloud.workloadmanager.v1.ShellCommand shell_command = 2;

Returns
Type Description
ShellCommand.Builder

getShellCommandOrBuilder()

public ShellCommandOrBuilder getShellCommandOrBuilder()

ShellCommand is invoked via the agent's command line executor.

.google.cloud.workloadmanager.v1.ShellCommand shell_command = 2;

Returns
Type Description
ShellCommandOrBuilder

hasAgentCommand()

public boolean hasAgentCommand()

AgentCommand specifies a one-time executable program for the agent to run.

.google.cloud.workloadmanager.v1.AgentCommand agent_command = 1;

Returns
Type Description
boolean

Whether the agentCommand field is set.

hasShellCommand()

public boolean hasShellCommand()

ShellCommand is invoked via the agent's command line executor.

.google.cloud.workloadmanager.v1.ShellCommand shell_command = 2;

Returns
Type Description
boolean

Whether the shellCommand field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeAgentCommand(AgentCommand value)

public Command.Builder mergeAgentCommand(AgentCommand value)

AgentCommand specifies a one-time executable program for the agent to run.

.google.cloud.workloadmanager.v1.AgentCommand agent_command = 1;

Parameter
Name Description
value AgentCommand
Returns
Type Description
Command.Builder

mergeFrom(Command other)

public Command.Builder mergeFrom(Command other)
Parameter
Name Description
other Command
Returns
Type Description
Command.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Command.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Command.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

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

mergeShellCommand(ShellCommand value)

public Command.Builder mergeShellCommand(ShellCommand value)

ShellCommand is invoked via the agent's command line executor.

.google.cloud.workloadmanager.v1.ShellCommand shell_command = 2;

Parameter
Name Description
value ShellCommand
Returns
Type Description
Command.Builder

setAgentCommand(AgentCommand value)

public Command.Builder setAgentCommand(AgentCommand value)

AgentCommand specifies a one-time executable program for the agent to run.

.google.cloud.workloadmanager.v1.AgentCommand agent_command = 1;

Parameter
Name Description
value AgentCommand
Returns
Type Description
Command.Builder

setAgentCommand(AgentCommand.Builder builderForValue)

public Command.Builder setAgentCommand(AgentCommand.Builder builderForValue)

AgentCommand specifies a one-time executable program for the agent to run.

.google.cloud.workloadmanager.v1.AgentCommand agent_command = 1;

Parameter
Name Description
builderForValue AgentCommand.Builder
Returns
Type Description
Command.Builder

setShellCommand(ShellCommand value)

public Command.Builder setShellCommand(ShellCommand value)

ShellCommand is invoked via the agent's command line executor.

.google.cloud.workloadmanager.v1.ShellCommand shell_command = 2;

Parameter
Name Description
value ShellCommand
Returns
Type Description
Command.Builder

setShellCommand(ShellCommand.Builder builderForValue)

public Command.Builder setShellCommand(ShellCommand.Builder builderForValue)

ShellCommand is invoked via the agent's command line executor.

.google.cloud.workloadmanager.v1.ShellCommand shell_command = 2;

Parameter
Name Description
builderForValue ShellCommand.Builder
Returns
Type Description
Command.Builder