Class ShellCommand.Builder (0.1.0)

public static final class ShellCommand.Builder extends GeneratedMessage.Builder<ShellCommand.Builder> implements ShellCommandOrBuilder

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

Protobuf type google.cloud.workloadmanager.v1.ShellCommand

Static Methods

getDescriptor()

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

Methods

build()

public ShellCommand build()
Returns
Type Description
ShellCommand

buildPartial()

public ShellCommand buildPartial()
Returns
Type Description
ShellCommand

clear()

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

clearArgs()

public ShellCommand.Builder clearArgs()

Arguments to be passed to the command.

string args = 2;

Returns
Type Description
ShellCommand.Builder

This builder for chaining.

clearCommand()

public ShellCommand.Builder clearCommand()

The name of the command to be executed.

string command = 1;

Returns
Type Description
ShellCommand.Builder

This builder for chaining.

clearTimeoutSeconds()

public ShellCommand.Builder clearTimeoutSeconds()

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

int32 timeout_seconds = 3;

Returns
Type Description
ShellCommand.Builder

This builder for chaining.

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
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.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ShellCommand other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public ShellCommand.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ShellCommand.Builder
Overrides

setArgs(String value)

public ShellCommand.Builder setArgs(String value)

Arguments to be passed to the command.

string args = 2;

Parameter
Name Description
value String

The args to set.

Returns
Type Description
ShellCommand.Builder

This builder for chaining.

setArgsBytes(ByteString value)

public ShellCommand.Builder setArgsBytes(ByteString value)

Arguments to be passed to the command.

string args = 2;

Parameter
Name Description
value ByteString

The bytes for args to set.

Returns
Type Description
ShellCommand.Builder

This builder for chaining.

setCommand(String value)

public ShellCommand.Builder setCommand(String value)

The name of the command to be executed.

string command = 1;

Parameter
Name Description
value String

The command to set.

Returns
Type Description
ShellCommand.Builder

This builder for chaining.

setCommandBytes(ByteString value)

public ShellCommand.Builder setCommandBytes(ByteString value)

The name of the command to be executed.

string command = 1;

Parameter
Name Description
value ByteString

The bytes for command to set.

Returns
Type Description
ShellCommand.Builder

This builder for chaining.

setTimeoutSeconds(int value)

public ShellCommand.Builder setTimeoutSeconds(int value)

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

int32 timeout_seconds = 3;

Parameter
Name Description
value int

The timeoutSeconds to set.

Returns
Type Description
ShellCommand.Builder

This builder for chaining.