Send feedback
Class Command.Builder (0.1.0)
Stay organized with collections
Save and categorize content based on your preferences.
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
Inherited Members
com.google.protobuf.GeneratedMessage.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessage.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessage.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessage.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessage.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
com.google.protobuf.GeneratedMessage.Builder.setUnknownFieldsProto3(com.google.protobuf.UnknownFieldSet)
Static Methods
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
Methods
build()
buildPartial()
public Command buildPartial ()
clear()
public Command . Builder clear ()
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;
clearCommandType()
public Command . Builder clearCommandType ()
clearShellCommand()
public Command . Builder clearShellCommand ()
ShellCommand is invoked via the agent's command line executor.
.google.cloud.workloadmanager.v1.ShellCommand shell_command = 2;
getAgentCommand()
public AgentCommand getAgentCommand ()
AgentCommand specifies a one-time executable program for the agent to
run.
.google.cloud.workloadmanager.v1.AgentCommand agent_command = 1;
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;
getAgentCommandOrBuilder()
public AgentCommandOrBuilder getAgentCommandOrBuilder ()
AgentCommand specifies a one-time executable program for the agent to
run.
.google.cloud.workloadmanager.v1.AgentCommand agent_command = 1;
getCommandTypeCase()
public Command . CommandTypeCase getCommandTypeCase ()
getDefaultInstanceForType()
public Command getDefaultInstanceForType ()
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
Overrides
getShellCommand()
public ShellCommand getShellCommand ()
ShellCommand is invoked via the agent's command line executor.
.google.cloud.workloadmanager.v1.ShellCommand shell_command = 2;
getShellCommandBuilder()
public ShellCommand . Builder getShellCommandBuilder ()
ShellCommand is invoked via the agent's command line executor.
.google.cloud.workloadmanager.v1.ShellCommand shell_command = 2;
getShellCommandOrBuilder()
public ShellCommandOrBuilder getShellCommandOrBuilder ()
ShellCommand is invoked via the agent's command line executor.
.google.cloud.workloadmanager.v1.ShellCommand shell_command = 2;
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 ()
Overrides
isInitialized()
public final boolean isInitialized ()
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;
mergeFrom(Command other)
public Command . Builder mergeFrom ( Command other )
Parameter
Name
Description
other
Command
public Command . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Overrides
mergeFrom(Message other)
public Command . Builder mergeFrom ( Message other )
Parameter
Name
Description
other
Message
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;
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;
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;
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;
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;
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-02-21 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-02-21 UTC."],[],[]]