Class Command (0.1.0)

public final class Command extends GeneratedMessage implements CommandOrBuilder

Command specifies the type of command to execute.

Protobuf type google.cloud.workloadmanager.v1.Command

Implements

CommandOrBuilder

Static Fields

AGENT_COMMAND_FIELD_NUMBER

public static final int AGENT_COMMAND_FIELD_NUMBER
Field Value
Type Description
int

SHELL_COMMAND_FIELD_NUMBER

public static final int SHELL_COMMAND_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static Command getDefaultInstance()
Returns
Type Description
Command

getDescriptor()

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

newBuilder()

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

newBuilder(Command prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

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.

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

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
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.

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

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

newBuilderForType(AbstractMessage.BuilderParent parent)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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