Class ShellCommand (0.1.0)

public final class ShellCommand extends GeneratedMessage implements ShellCommandOrBuilder

A ShellCommand is invoked via the agent's command line executor.

Protobuf type google.cloud.workloadmanager.v1.ShellCommand

Static Fields

ARGS_FIELD_NUMBER

public static final int ARGS_FIELD_NUMBER
Field Value
Type Description
int

COMMAND_FIELD_NUMBER

public static final int COMMAND_FIELD_NUMBER
Field Value
Type Description
int

TIMEOUT_SECONDS_FIELD_NUMBER

public static final int TIMEOUT_SECONDS_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static ShellCommand getDefaultInstance()
Returns
Type Description
ShellCommand

getDescriptor()

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

newBuilder()

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

newBuilder(ShellCommand prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getArgs()

public String getArgs()

Arguments to be passed to the command.

string args = 2;

Returns
Type Description
String

The args.

getArgsBytes()

public ByteString getArgsBytes()

Arguments to be passed to the command.

string args = 2;

Returns
Type Description
ByteString

The bytes for args.

getCommand()

public String getCommand()

The name of the command to be executed.

string command = 1;

Returns
Type Description
String

The command.

getCommandBytes()

public ByteString getCommandBytes()

The name of the command to be executed.

string command = 1;

Returns
Type Description
ByteString

The bytes for command.

getDefaultInstanceForType()

public ShellCommand getDefaultInstanceForType()
Returns
Type Description
ShellCommand

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getTimeoutSeconds()

public int getTimeoutSeconds()

Optional. If not specified, the default timeout is 60 seconds.

int32 timeout_seconds = 3;

Returns
Type Description
int

The timeoutSeconds.

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 ShellCommand.Builder newBuilderForType()
Returns
Type Description
ShellCommand.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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