Class Probe.ExecAction.Builder (3.50.0)

public static final class Probe.ExecAction.Builder extends GeneratedMessageV3.Builder<Probe.ExecAction.Builder> implements Probe.ExecActionOrBuilder

ExecAction specifies a command to execute.

Protobuf type google.cloud.aiplatform.v1.Probe.ExecAction

Static Methods

getDescriptor()

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

Methods

addAllCommand(Iterable<String> values)

public Probe.ExecAction.Builder addAllCommand(Iterable<String> values)

Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy.

repeated string command = 1;

Parameter
Name Description
values Iterable<String>

The command to add.

Returns
Type Description
Probe.ExecAction.Builder

This builder for chaining.

addCommand(String value)

public Probe.ExecAction.Builder addCommand(String value)

Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy.

repeated string command = 1;

Parameter
Name Description
value String

The command to add.

Returns
Type Description
Probe.ExecAction.Builder

This builder for chaining.

addCommandBytes(ByteString value)

public Probe.ExecAction.Builder addCommandBytes(ByteString value)

Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy.

repeated string command = 1;

Parameter
Name Description
value ByteString

The bytes of the command to add.

Returns
Type Description
Probe.ExecAction.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Probe.ExecAction.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Probe.ExecAction.Builder
Overrides

build()

public Probe.ExecAction build()
Returns
Type Description
Probe.ExecAction

buildPartial()

public Probe.ExecAction buildPartial()
Returns
Type Description
Probe.ExecAction

clear()

public Probe.ExecAction.Builder clear()
Returns
Type Description
Probe.ExecAction.Builder
Overrides

clearCommand()

public Probe.ExecAction.Builder clearCommand()

Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy.

repeated string command = 1;

Returns
Type Description
Probe.ExecAction.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Probe.ExecAction.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Probe.ExecAction.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public Probe.ExecAction.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Probe.ExecAction.Builder
Overrides

clone()

public Probe.ExecAction.Builder clone()
Returns
Type Description
Probe.ExecAction.Builder
Overrides

getCommand(int index)

public String getCommand(int index)

Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy.

repeated string command = 1;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The command at the given index.

getCommandBytes(int index)

public ByteString getCommandBytes(int index)

Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy.

repeated string command = 1;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the command at the given index.

getCommandCount()

public int getCommandCount()

Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy.

repeated string command = 1;

Returns
Type Description
int

The count of command.

getCommandList()

public ProtocolStringList getCommandList()

Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy.

repeated string command = 1;

Returns
Type Description
ProtocolStringList

A list containing the command.

getDefaultInstanceForType()

public Probe.ExecAction getDefaultInstanceForType()
Returns
Type Description
Probe.ExecAction

getDescriptorForType()

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

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Probe.ExecAction other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Probe.ExecAction.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Probe.ExecAction.Builder
Overrides

setCommand(int index, String value)

public Probe.ExecAction.Builder setCommand(int index, String value)

Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy.

repeated string command = 1;

Parameters
Name Description
index int

The index to set the value at.

value String

The command to set.

Returns
Type Description
Probe.ExecAction.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public Probe.ExecAction.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Probe.ExecAction.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Probe.ExecAction.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Probe.ExecAction.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final Probe.ExecAction.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Probe.ExecAction.Builder
Overrides