Class AgentCommand.Builder (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

Static Methods

getDescriptor()

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

Methods

build()

public AgentCommand build()
Returns
Type Description
AgentCommand

buildPartial()

public AgentCommand buildPartial()
Returns
Type Description
AgentCommand

clear()

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

clearCommand()

public AgentCommand.Builder clearCommand()

The name of the agent one-time executable that will be invoked.

string command = 1;

Returns
Type Description
AgentCommand.Builder

This builder for chaining.

clearParameters()

public AgentCommand.Builder clearParameters()
Returns
Type Description
AgentCommand.Builder

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
Returns
Type Description
boolean

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()
Returns
Type Description
AgentCommand

getDescriptorForType()

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

getMutableParameters() (deprecated)

public Map<String,String> getMutableParameters()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,String>

getParameters() (deprecated)

public Map<String,String> getParameters()

Use #getParametersMap() instead.

Returns
Type Description
Map<String,String>

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;

Returns
Type Description
Map<String,String>

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;

Parameters
Name Description
key String
defaultValue String
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()
Returns
Type Description
FieldAccessorTable
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()
Returns
Type Description
boolean
Overrides

mergeFrom(AgentCommand other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public AgentCommand.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
AgentCommand.Builder
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;

Parameter
Name Description
values Map<String,String>
Returns
Type Description
AgentCommand.Builder

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;

Parameters
Name Description
key String
value String
Returns
Type Description
AgentCommand.Builder

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
Returns
Type Description
AgentCommand.Builder

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.

Returns
Type Description
AgentCommand.Builder

This builder for chaining.

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.

Returns
Type Description
AgentCommand.Builder

This builder for chaining.