Class LivenessCheck.Builder (2.41.0)

public static final class LivenessCheck.Builder extends GeneratedMessageV3.Builder<LivenessCheck.Builder> implements LivenessCheckOrBuilder

Health checking configuration for VM instances. Unhealthy instances are killed and replaced with new instances.

Protobuf type google.appengine.v1.LivenessCheck

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public LivenessCheck build()
Returns
Type Description
LivenessCheck

buildPartial()

public LivenessCheck buildPartial()
Returns
Type Description
LivenessCheck

clear()

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

clearCheckInterval()

public LivenessCheck.Builder clearCheckInterval()

Interval between health checks.

.google.protobuf.Duration check_interval = 5;

Returns
Type Description
LivenessCheck.Builder

clearFailureThreshold()

public LivenessCheck.Builder clearFailureThreshold()

Number of consecutive failed checks required before considering the VM unhealthy.

uint32 failure_threshold = 3;

Returns
Type Description
LivenessCheck.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearHost()

public LivenessCheck.Builder clearHost()

Host header to send when performing a HTTP Liveness check. Example: "myapp.appspot.com"

string host = 2;

Returns
Type Description
LivenessCheck.Builder

This builder for chaining.

clearInitialDelay()

public LivenessCheck.Builder clearInitialDelay()

The initial delay before starting to execute the checks.

.google.protobuf.Duration initial_delay = 7;

Returns
Type Description
LivenessCheck.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPath()

public LivenessCheck.Builder clearPath()

The request path.

string path = 1;

Returns
Type Description
LivenessCheck.Builder

This builder for chaining.

clearSuccessThreshold()

public LivenessCheck.Builder clearSuccessThreshold()

Number of consecutive successful checks required before considering the VM healthy.

uint32 success_threshold = 4;

Returns
Type Description
LivenessCheck.Builder

This builder for chaining.

clearTimeout()

public LivenessCheck.Builder clearTimeout()

Time before the check is considered failed.

.google.protobuf.Duration timeout = 6;

Returns
Type Description
LivenessCheck.Builder

clone()

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

getCheckInterval()

public Duration getCheckInterval()

Interval between health checks.

.google.protobuf.Duration check_interval = 5;

Returns
Type Description
Duration

The checkInterval.

getCheckIntervalBuilder()

public Duration.Builder getCheckIntervalBuilder()

Interval between health checks.

.google.protobuf.Duration check_interval = 5;

Returns
Type Description
Builder

getCheckIntervalOrBuilder()

public DurationOrBuilder getCheckIntervalOrBuilder()

Interval between health checks.

.google.protobuf.Duration check_interval = 5;

Returns
Type Description
DurationOrBuilder

getDefaultInstanceForType()

public LivenessCheck getDefaultInstanceForType()
Returns
Type Description
LivenessCheck

getDescriptorForType()

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

getFailureThreshold()

public int getFailureThreshold()

Number of consecutive failed checks required before considering the VM unhealthy.

uint32 failure_threshold = 3;

Returns
Type Description
int

The failureThreshold.

getHost()

public String getHost()

Host header to send when performing a HTTP Liveness check. Example: "myapp.appspot.com"

string host = 2;

Returns
Type Description
String

The host.

getHostBytes()

public ByteString getHostBytes()

Host header to send when performing a HTTP Liveness check. Example: "myapp.appspot.com"

string host = 2;

Returns
Type Description
ByteString

The bytes for host.

getInitialDelay()

public Duration getInitialDelay()

The initial delay before starting to execute the checks.

.google.protobuf.Duration initial_delay = 7;

Returns
Type Description
Duration

The initialDelay.

getInitialDelayBuilder()

public Duration.Builder getInitialDelayBuilder()

The initial delay before starting to execute the checks.

.google.protobuf.Duration initial_delay = 7;

Returns
Type Description
Builder

getInitialDelayOrBuilder()

public DurationOrBuilder getInitialDelayOrBuilder()

The initial delay before starting to execute the checks.

.google.protobuf.Duration initial_delay = 7;

Returns
Type Description
DurationOrBuilder

getPath()

public String getPath()

The request path.

string path = 1;

Returns
Type Description
String

The path.

getPathBytes()

public ByteString getPathBytes()

The request path.

string path = 1;

Returns
Type Description
ByteString

The bytes for path.

getSuccessThreshold()

public int getSuccessThreshold()

Number of consecutive successful checks required before considering the VM healthy.

uint32 success_threshold = 4;

Returns
Type Description
int

The successThreshold.

getTimeout()

public Duration getTimeout()

Time before the check is considered failed.

.google.protobuf.Duration timeout = 6;

Returns
Type Description
Duration

The timeout.

getTimeoutBuilder()

public Duration.Builder getTimeoutBuilder()

Time before the check is considered failed.

.google.protobuf.Duration timeout = 6;

Returns
Type Description
Builder

getTimeoutOrBuilder()

public DurationOrBuilder getTimeoutOrBuilder()

Time before the check is considered failed.

.google.protobuf.Duration timeout = 6;

Returns
Type Description
DurationOrBuilder

hasCheckInterval()

public boolean hasCheckInterval()

Interval between health checks.

.google.protobuf.Duration check_interval = 5;

Returns
Type Description
boolean

Whether the checkInterval field is set.

hasInitialDelay()

public boolean hasInitialDelay()

The initial delay before starting to execute the checks.

.google.protobuf.Duration initial_delay = 7;

Returns
Type Description
boolean

Whether the initialDelay field is set.

hasTimeout()

public boolean hasTimeout()

Time before the check is considered failed.

.google.protobuf.Duration timeout = 6;

Returns
Type Description
boolean

Whether the timeout field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCheckInterval(Duration value)

public LivenessCheck.Builder mergeCheckInterval(Duration value)

Interval between health checks.

.google.protobuf.Duration check_interval = 5;

Parameter
Name Description
value Duration
Returns
Type Description
LivenessCheck.Builder

mergeFrom(LivenessCheck other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeInitialDelay(Duration value)

public LivenessCheck.Builder mergeInitialDelay(Duration value)

The initial delay before starting to execute the checks.

.google.protobuf.Duration initial_delay = 7;

Parameter
Name Description
value Duration
Returns
Type Description
LivenessCheck.Builder

mergeTimeout(Duration value)

public LivenessCheck.Builder mergeTimeout(Duration value)

Time before the check is considered failed.

.google.protobuf.Duration timeout = 6;

Parameter
Name Description
value Duration
Returns
Type Description
LivenessCheck.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setCheckInterval(Duration value)

public LivenessCheck.Builder setCheckInterval(Duration value)

Interval between health checks.

.google.protobuf.Duration check_interval = 5;

Parameter
Name Description
value Duration
Returns
Type Description
LivenessCheck.Builder

setCheckInterval(Duration.Builder builderForValue)

public LivenessCheck.Builder setCheckInterval(Duration.Builder builderForValue)

Interval between health checks.

.google.protobuf.Duration check_interval = 5;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
LivenessCheck.Builder

setFailureThreshold(int value)

public LivenessCheck.Builder setFailureThreshold(int value)

Number of consecutive failed checks required before considering the VM unhealthy.

uint32 failure_threshold = 3;

Parameter
Name Description
value int

The failureThreshold to set.

Returns
Type Description
LivenessCheck.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setHost(String value)

public LivenessCheck.Builder setHost(String value)

Host header to send when performing a HTTP Liveness check. Example: "myapp.appspot.com"

string host = 2;

Parameter
Name Description
value String

The host to set.

Returns
Type Description
LivenessCheck.Builder

This builder for chaining.

setHostBytes(ByteString value)

public LivenessCheck.Builder setHostBytes(ByteString value)

Host header to send when performing a HTTP Liveness check. Example: "myapp.appspot.com"

string host = 2;

Parameter
Name Description
value ByteString

The bytes for host to set.

Returns
Type Description
LivenessCheck.Builder

This builder for chaining.

setInitialDelay(Duration value)

public LivenessCheck.Builder setInitialDelay(Duration value)

The initial delay before starting to execute the checks.

.google.protobuf.Duration initial_delay = 7;

Parameter
Name Description
value Duration
Returns
Type Description
LivenessCheck.Builder

setInitialDelay(Duration.Builder builderForValue)

public LivenessCheck.Builder setInitialDelay(Duration.Builder builderForValue)

The initial delay before starting to execute the checks.

.google.protobuf.Duration initial_delay = 7;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
LivenessCheck.Builder

setPath(String value)

public LivenessCheck.Builder setPath(String value)

The request path.

string path = 1;

Parameter
Name Description
value String

The path to set.

Returns
Type Description
LivenessCheck.Builder

This builder for chaining.

setPathBytes(ByteString value)

public LivenessCheck.Builder setPathBytes(ByteString value)

The request path.

string path = 1;

Parameter
Name Description
value ByteString

The bytes for path to set.

Returns
Type Description
LivenessCheck.Builder

This builder for chaining.

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

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

setSuccessThreshold(int value)

public LivenessCheck.Builder setSuccessThreshold(int value)

Number of consecutive successful checks required before considering the VM healthy.

uint32 success_threshold = 4;

Parameter
Name Description
value int

The successThreshold to set.

Returns
Type Description
LivenessCheck.Builder

This builder for chaining.

setTimeout(Duration value)

public LivenessCheck.Builder setTimeout(Duration value)

Time before the check is considered failed.

.google.protobuf.Duration timeout = 6;

Parameter
Name Description
value Duration
Returns
Type Description
LivenessCheck.Builder

setTimeout(Duration.Builder builderForValue)

public LivenessCheck.Builder setTimeout(Duration.Builder builderForValue)

Time before the check is considered failed.

.google.protobuf.Duration timeout = 6;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
LivenessCheck.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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