Class AgentCommand.Builder (0.7.0)
0.7.0 (latest)
0.4.0
0.3.0
0.1.0
public static final class AgentCommand . Builder extends GeneratedMessage . Builder<AgentCommand . Builder > implements AgentCommandOrBuilder
An AgentCommand specifies a one-time executable program for the agent to run.
Protobuf type google.cloud.workloadmanager.v1.AgentCommand
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()
public AgentCommand build ()
buildPartial()
public AgentCommand buildPartial ()
clear()
public AgentCommand . Builder clear ()
Overrides
clearCommand()
public AgentCommand . Builder clearCommand ()
The name of the agent one-time executable that will be invoked.
string command = 1;
clearParameters()
public AgentCommand . Builder clearParameters ()
containsParameters(String key)
public boolean containsParameters ( String key )
A map of key/value pairs that can be used to specify
additional one-time executable settings.
map<string, string> parameters = 2;
Parameter
Name
Description
key
String
getCommand()
public String getCommand ()
The name of the agent one-time executable that will be invoked.
string command = 1;
Returns
Type
Description
String
The command.
getCommandBytes()
public ByteString getCommandBytes ()
The name of the agent one-time executable that will be invoked.
string command = 1;
Returns
Type
Description
ByteString
The bytes for command.
getDefaultInstanceForType()
public AgentCommand getDefaultInstanceForType ()
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
Overrides
getMutableParameters() (deprecated)
public Map<String , String > getMutableParameters ()
Use alternate mutation accessors instead.
getParameters() (deprecated)
public Map<String , String > getParameters ()
getParametersCount()
public int getParametersCount ()
A map of key/value pairs that can be used to specify
additional one-time executable settings.
map<string, string> parameters = 2;
Returns
Type
Description
int
getParametersMap()
public Map<String , String > getParametersMap ()
A map of key/value pairs that can be used to specify
additional one-time executable settings.
map<string, string> parameters = 2;
getParametersOrDefault(String key, String defaultValue)
public String getParametersOrDefault ( String key , String defaultValue )
A map of key/value pairs that can be used to specify
additional one-time executable settings.
map<string, string> parameters = 2;
Returns
Type
Description
String
getParametersOrThrow(String key)
public String getParametersOrThrow ( String key )
A map of key/value pairs that can be used to specify
additional one-time executable settings.
map<string, string> parameters = 2;
Parameter
Name
Description
key
String
Returns
Type
Description
String
internalGetFieldAccessorTable()
protected GeneratedMessage . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
internalGetMapFieldReflection(int number)
protected MapFieldReflectionAccessor internalGetMapFieldReflection ( int number )
Parameter
Name
Description
number
int
Returns
Type
Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessage.Builder.internalGetMapFieldReflection(int)
internalGetMutableMapFieldReflection(int number)
protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection ( int number )
Parameter
Name
Description
number
int
Returns
Type
Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessage.Builder.internalGetMutableMapFieldReflection(int)
isInitialized()
public final boolean isInitialized ()
Overrides
mergeFrom(AgentCommand other)
public AgentCommand . Builder mergeFrom ( AgentCommand other )
public AgentCommand . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Overrides
mergeFrom(Message other)
public AgentCommand . Builder mergeFrom ( Message other )
Parameter
Name
Description
other
Message
Overrides
putAllParameters(Map<String,String> values)
public AgentCommand . Builder putAllParameters ( Map<String , String > values )
A map of key/value pairs that can be used to specify
additional one-time executable settings.
map<string, string> parameters = 2;
putParameters(String key, String value)
public AgentCommand . Builder putParameters ( String key , String value )
A map of key/value pairs that can be used to specify
additional one-time executable settings.
map<string, string> parameters = 2;
removeParameters(String key)
public AgentCommand . Builder removeParameters ( String key )
A map of key/value pairs that can be used to specify
additional one-time executable settings.
map<string, string> parameters = 2;
Parameter
Name
Description
key
String
setCommand(String value)
public AgentCommand . Builder setCommand ( String value )
The name of the agent one-time executable that will be invoked.
string command = 1;
Parameter
Name
Description
value
String The command to set.
setCommandBytes(ByteString value)
public AgentCommand . Builder setCommandBytes ( ByteString value )
The name of the agent one-time executable that will be invoked.
string command = 1;
Parameter
Name
Description
value
ByteString The bytes for command to set.
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-04-25 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-04-25 UTC."],[],[]]