Class AgentCommand (0.1.0)

public final class AgentCommand extends GeneratedMessage implements AgentCommandOrBuilder

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

Protobuf type google.cloud.workloadmanager.v1.AgentCommand

Static Fields

COMMAND_FIELD_NUMBER

public static final int COMMAND_FIELD_NUMBER
Field Value
Type Description
int

PARAMETERS_FIELD_NUMBER

public static final int PARAMETERS_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static AgentCommand getDefaultInstance()
Returns
Type Description
AgentCommand

getDescriptor()

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

newBuilder()

public static AgentCommand.Builder newBuilder()
Returns
Type Description
AgentCommand.Builder

newBuilder(AgentCommand prototype)

public static AgentCommand.Builder newBuilder(AgentCommand prototype)
Parameter
Name Description
prototype AgentCommand
Returns
Type Description
AgentCommand.Builder

parseDelimitedFrom(InputStream input)

public static AgentCommand parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
AgentCommand
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AgentCommand parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AgentCommand
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static AgentCommand parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
AgentCommand
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static AgentCommand parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AgentCommand
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static AgentCommand parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
AgentCommand
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static AgentCommand parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AgentCommand
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static AgentCommand parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
AgentCommand
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static AgentCommand parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AgentCommand
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static AgentCommand parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
AgentCommand
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AgentCommand parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AgentCommand
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static AgentCommand parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
AgentCommand
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static AgentCommand parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AgentCommand
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<AgentCommand> parser()
Returns
Type Description
Parser<AgentCommand>

Methods

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

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

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

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

getParserForType()

public Parser<AgentCommand> getParserForType()
Returns
Type Description
Parser<AgentCommand>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

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.internalGetMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

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

newBuilderForType(AbstractMessage.BuilderParent parent)

protected AgentCommand.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
AgentCommand.Builder
Overrides

toBuilder()

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

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException