Class Probe.Builder (3.54.0)

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

Probe describes a health check to be performed against a container to determine whether it is alive or ready to receive traffic.

Protobuf type google.cloud.aiplatform.v1beta1.Probe

Implements

ProbeOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Probe build()
Returns
Type Description
Probe

buildPartial()

public Probe buildPartial()
Returns
Type Description
Probe

clear()

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

clearExec()

public Probe.Builder clearExec()

ExecAction probes the health of a container by executing a command.

.google.cloud.aiplatform.v1beta1.Probe.ExecAction exec = 1;

Returns
Type Description
Probe.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPeriodSeconds()

public Probe.Builder clearPeriodSeconds()

How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. Must be less than timeout_seconds.

Maps to Kubernetes probe argument 'periodSeconds'.

int32 period_seconds = 2;

Returns
Type Description
Probe.Builder

This builder for chaining.

clearProbeType()

public Probe.Builder clearProbeType()
Returns
Type Description
Probe.Builder

clearTimeoutSeconds()

public Probe.Builder clearTimeoutSeconds()

Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. Must be greater or equal to period_seconds.

Maps to Kubernetes probe argument 'timeoutSeconds'.

int32 timeout_seconds = 3;

Returns
Type Description
Probe.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public Probe getDefaultInstanceForType()
Returns
Type Description
Probe

getDescriptorForType()

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

getExec()

public Probe.ExecAction getExec()

ExecAction probes the health of a container by executing a command.

.google.cloud.aiplatform.v1beta1.Probe.ExecAction exec = 1;

Returns
Type Description
Probe.ExecAction

The exec.

getExecBuilder()

public Probe.ExecAction.Builder getExecBuilder()

ExecAction probes the health of a container by executing a command.

.google.cloud.aiplatform.v1beta1.Probe.ExecAction exec = 1;

Returns
Type Description
Probe.ExecAction.Builder

getExecOrBuilder()

public Probe.ExecActionOrBuilder getExecOrBuilder()

ExecAction probes the health of a container by executing a command.

.google.cloud.aiplatform.v1beta1.Probe.ExecAction exec = 1;

Returns
Type Description
Probe.ExecActionOrBuilder

getPeriodSeconds()

public int getPeriodSeconds()

How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. Must be less than timeout_seconds.

Maps to Kubernetes probe argument 'periodSeconds'.

int32 period_seconds = 2;

Returns
Type Description
int

The periodSeconds.

getProbeTypeCase()

public Probe.ProbeTypeCase getProbeTypeCase()
Returns
Type Description
Probe.ProbeTypeCase

getTimeoutSeconds()

public int getTimeoutSeconds()

Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. Must be greater or equal to period_seconds.

Maps to Kubernetes probe argument 'timeoutSeconds'.

int32 timeout_seconds = 3;

Returns
Type Description
int

The timeoutSeconds.

hasExec()

public boolean hasExec()

ExecAction probes the health of a container by executing a command.

.google.cloud.aiplatform.v1beta1.Probe.ExecAction exec = 1;

Returns
Type Description
boolean

Whether the exec field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeExec(Probe.ExecAction value)

public Probe.Builder mergeExec(Probe.ExecAction value)

ExecAction probes the health of a container by executing a command.

.google.cloud.aiplatform.v1beta1.Probe.ExecAction exec = 1;

Parameter
Name Description
value Probe.ExecAction
Returns
Type Description
Probe.Builder

mergeFrom(Probe other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setExec(Probe.ExecAction value)

public Probe.Builder setExec(Probe.ExecAction value)

ExecAction probes the health of a container by executing a command.

.google.cloud.aiplatform.v1beta1.Probe.ExecAction exec = 1;

Parameter
Name Description
value Probe.ExecAction
Returns
Type Description
Probe.Builder

setExec(Probe.ExecAction.Builder builderForValue)

public Probe.Builder setExec(Probe.ExecAction.Builder builderForValue)

ExecAction probes the health of a container by executing a command.

.google.cloud.aiplatform.v1beta1.Probe.ExecAction exec = 1;

Parameter
Name Description
builderForValue Probe.ExecAction.Builder
Returns
Type Description
Probe.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setPeriodSeconds(int value)

public Probe.Builder setPeriodSeconds(int value)

How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. Must be less than timeout_seconds.

Maps to Kubernetes probe argument 'periodSeconds'.

int32 period_seconds = 2;

Parameter
Name Description
value int

The periodSeconds to set.

Returns
Type Description
Probe.Builder

This builder for chaining.

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

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

setTimeoutSeconds(int value)

public Probe.Builder setTimeoutSeconds(int value)

Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. Must be greater or equal to period_seconds.

Maps to Kubernetes probe argument 'timeoutSeconds'.

int32 timeout_seconds = 3;

Parameter
Name Description
value int

The timeoutSeconds to set.

Returns
Type Description
Probe.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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