Class Probe.ExecAction.Builder (3.40.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
TypeDescription
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
NameDescription
valuesIterable<String>

The command to add.

Returns
TypeDescription
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
NameDescription
valueString

The command to add.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes of the command to add.

Returns
TypeDescription
Probe.ExecAction.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Probe.ExecAction.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Probe.ExecAction.Builder
Overrides

build()

public Probe.ExecAction build()
Returns
TypeDescription
Probe.ExecAction

buildPartial()

public Probe.ExecAction buildPartial()
Returns
TypeDescription
Probe.ExecAction

clear()

public Probe.ExecAction.Builder clear()
Returns
TypeDescription
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
TypeDescription
Probe.ExecAction.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Probe.ExecAction.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Probe.ExecAction.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public Probe.ExecAction.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Probe.ExecAction.Builder
Overrides

clone()

public Probe.ExecAction.Builder clone()
Returns
TypeDescription
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
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
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
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ProtocolStringList

A list containing the command.

getDefaultInstanceForType()

public Probe.ExecAction getDefaultInstanceForType()
Returns
TypeDescription
Probe.ExecAction

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Probe.ExecAction other)

public Probe.ExecAction.Builder mergeFrom(Probe.ExecAction other)
Parameter
NameDescription
otherProbe.ExecAction
Returns
TypeDescription
Probe.ExecAction.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Probe.ExecAction.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Probe.ExecAction.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Probe.ExecAction.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Probe.ExecAction.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Probe.ExecAction.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint

The index to set the value at.

valueString

The command to set.

Returns
TypeDescription
Probe.ExecAction.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public Probe.ExecAction.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Probe.ExecAction.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final Probe.ExecAction.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Probe.ExecAction.Builder
Overrides