Class LivenessCheck.Builder (2.16.0)

publicstaticfinalclass LivenessCheck.BuilderextendsGeneratedMessageV3.Builder<LivenessCheck.Builder>implementsLivenessCheckOrBuilder

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

Protobuf type google.appengine.v1.LivenessCheck

Inherited Members

com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)

Static Methods

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

publicLivenessCheck.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
LivenessCheck.Builder
Overrides

build()

publicLivenessCheckbuild()
Returns
Type Description
LivenessCheck

buildPartial()

publicLivenessCheckbuildPartial()
Returns
Type Description
LivenessCheck

clear()

publicLivenessCheck.Builderclear()
Returns
Type Description
LivenessCheck.Builder
Overrides

clearCheckInterval()

publicLivenessCheck.BuilderclearCheckInterval()

Interval between health checks.

.google.protobuf.Duration check_interval = 5;

Returns
Type Description
LivenessCheck.Builder

clearFailureThreshold()

publicLivenessCheck.BuilderclearFailureThreshold()

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)

publicLivenessCheck.BuilderclearField(Descriptors.FieldDescriptorfield)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
LivenessCheck.Builder
Overrides

clearHost()

publicLivenessCheck.BuilderclearHost()

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()

publicLivenessCheck.BuilderclearInitialDelay()

The initial delay before starting to execute the checks.

.google.protobuf.Duration initial_delay = 7;

Returns
Type Description
LivenessCheck.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

publicLivenessCheck.BuilderclearOneof(Descriptors.OneofDescriptoroneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
LivenessCheck.Builder
Overrides

clearPath()

publicLivenessCheck.BuilderclearPath()

The request path.

string path = 1;

Returns
Type Description
LivenessCheck.Builder

This builder for chaining.

clearSuccessThreshold()

publicLivenessCheck.BuilderclearSuccessThreshold()

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()

publicLivenessCheck.BuilderclearTimeout()

Time before the check is considered failed.

.google.protobuf.Duration timeout = 6;

Returns
Type Description
LivenessCheck.Builder

clone()

publicLivenessCheck.Builderclone()
Returns
Type Description
LivenessCheck.Builder
Overrides

getCheckInterval()

publicDurationgetCheckInterval()

Interval between health checks.

.google.protobuf.Duration check_interval = 5;

Returns
Type Description
Duration

The checkInterval.

getCheckIntervalBuilder()

publicDuration.BuildergetCheckIntervalBuilder()

Interval between health checks.

.google.protobuf.Duration check_interval = 5;

Returns
Type Description
Builder

getCheckIntervalOrBuilder()

publicDurationOrBuildergetCheckIntervalOrBuilder()

Interval between health checks.

.google.protobuf.Duration check_interval = 5;

Returns
Type Description
DurationOrBuilder

getDefaultInstanceForType()

publicLivenessCheckgetDefaultInstanceForType()
Returns
Type Description
LivenessCheck

getDescriptorForType()

publicDescriptors.DescriptorgetDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getFailureThreshold()

publicintgetFailureThreshold()

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

uint32 failure_threshold = 3;

Returns
Type Description
int

The failureThreshold.

getHost()

publicStringgetHost()

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

string host = 2;

Returns
Type Description
String

The host.

getHostBytes()

publicByteStringgetHostBytes()

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()

publicDurationgetInitialDelay()

The initial delay before starting to execute the checks.

.google.protobuf.Duration initial_delay = 7;

Returns
Type Description
Duration

The initialDelay.

getInitialDelayBuilder()

publicDuration.BuildergetInitialDelayBuilder()

The initial delay before starting to execute the checks.

.google.protobuf.Duration initial_delay = 7;

Returns
Type Description
Builder

getInitialDelayOrBuilder()

publicDurationOrBuildergetInitialDelayOrBuilder()

The initial delay before starting to execute the checks.

.google.protobuf.Duration initial_delay = 7;

Returns
Type Description
DurationOrBuilder

getPath()

publicStringgetPath()

The request path.

string path = 1;

Returns
Type Description
String

The path.

getPathBytes()

publicByteStringgetPathBytes()

The request path.

string path = 1;

Returns
Type Description
ByteString

The bytes for path.

getSuccessThreshold()

publicintgetSuccessThreshold()

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

uint32 success_threshold = 4;

Returns
Type Description
int

The successThreshold.

getTimeout()

publicDurationgetTimeout()

Time before the check is considered failed.

.google.protobuf.Duration timeout = 6;

Returns
Type Description
Duration

The timeout.

getTimeoutBuilder()

publicDuration.BuildergetTimeoutBuilder()

Time before the check is considered failed.

.google.protobuf.Duration timeout = 6;

Returns
Type Description
Builder

getTimeoutOrBuilder()

publicDurationOrBuildergetTimeoutOrBuilder()

Time before the check is considered failed.

.google.protobuf.Duration timeout = 6;

Returns
Type Description
DurationOrBuilder

hasCheckInterval()

publicbooleanhasCheckInterval()

Interval between health checks.

.google.protobuf.Duration check_interval = 5;

Returns
Type Description
boolean

Whether the checkInterval field is set.

hasInitialDelay()

publicbooleanhasInitialDelay()

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()

publicbooleanhasTimeout()

Time before the check is considered failed.

.google.protobuf.Duration timeout = 6;

Returns
Type Description
boolean

Whether the timeout field is set.

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

mergeCheckInterval(Duration value)

publicLivenessCheck.BuildermergeCheckInterval(Durationvalue)

Interval between health checks.

.google.protobuf.Duration check_interval = 5;

Parameter
Name Description
value Duration
Returns
Type Description
LivenessCheck.Builder

mergeFrom(LivenessCheck other)

publicLivenessCheck.BuildermergeFrom(LivenessCheckother)
Parameter
Name Description
other LivenessCheck
Returns
Type Description
LivenessCheck.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicLivenessCheck.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LivenessCheck.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

publicLivenessCheck.BuildermergeFrom(Messageother)
Parameter
Name Description
other Message
Returns
Type Description
LivenessCheck.Builder
Overrides

mergeInitialDelay(Duration value)

publicLivenessCheck.BuildermergeInitialDelay(Durationvalue)

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)

publicLivenessCheck.BuildermergeTimeout(Durationvalue)

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)

publicfinalLivenessCheck.BuildermergeUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
LivenessCheck.Builder
Overrides

setCheckInterval(Duration value)

publicLivenessCheck.BuildersetCheckInterval(Durationvalue)

Interval between health checks.

.google.protobuf.Duration check_interval = 5;

Parameter
Name Description
value Duration
Returns
Type Description
LivenessCheck.Builder

setCheckInterval(Duration.Builder builderForValue)

publicLivenessCheck.BuildersetCheckInterval(Duration.BuilderbuilderForValue)

Interval between health checks.

.google.protobuf.Duration check_interval = 5;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
LivenessCheck.Builder

setFailureThreshold(int value)

publicLivenessCheck.BuildersetFailureThreshold(intvalue)

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)

publicLivenessCheck.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
LivenessCheck.Builder
Overrides

setHost(String value)

publicLivenessCheck.BuildersetHost(Stringvalue)

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)

publicLivenessCheck.BuildersetHostBytes(ByteStringvalue)

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)

publicLivenessCheck.BuildersetInitialDelay(Durationvalue)

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)

publicLivenessCheck.BuildersetInitialDelay(Duration.BuilderbuilderForValue)

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)

publicLivenessCheck.BuildersetPath(Stringvalue)

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)

publicLivenessCheck.BuildersetPathBytes(ByteStringvalue)

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)

publicLivenessCheck.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
LivenessCheck.Builder
Overrides

setSuccessThreshold(int value)

publicLivenessCheck.BuildersetSuccessThreshold(intvalue)

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)

publicLivenessCheck.BuildersetTimeout(Durationvalue)

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)

publicLivenessCheck.BuildersetTimeout(Duration.BuilderbuilderForValue)

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)

publicfinalLivenessCheck.BuildersetUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
LivenessCheck.Builder
Overrides

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.