public static final class HealthCheck.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<HealthCheck.Builder> implements HealthCheckOrBuilder
Health checking configuration for VM instances. Unhealthy instances are killed and replaced with new instances. Only applicable for instances in App Engine flexible environment.Protobuf type
google.appengine.v1.HealthCheck| Modifier and Type | Method and Description |
|---|---|
HealthCheck.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
HealthCheck |
build() |
HealthCheck |
buildPartial() |
HealthCheck.Builder |
clear() |
HealthCheck.Builder |
clearCheckInterval()
Interval between health checks.
|
HealthCheck.Builder |
clearDisableHealthCheck()
Whether to explicitly disable health checks for this instance.
|
HealthCheck.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
HealthCheck.Builder |
clearHealthyThreshold()
Number of consecutive successful health checks required before receiving
traffic.
|
HealthCheck.Builder |
clearHost()
Host header to send when performing an HTTP health check.
|
HealthCheck.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
HealthCheck.Builder |
clearRestartThreshold()
Number of consecutive failed health checks required before an instance is
restarted.
|
HealthCheck.Builder |
clearTimeout()
Time before the health check is considered failed.
|
HealthCheck.Builder |
clearUnhealthyThreshold()
Number of consecutive failed health checks required before removing
traffic.
|
HealthCheck.Builder |
clone() |
com.google.protobuf.Duration |
getCheckInterval()
Interval between health checks.
|
com.google.protobuf.Duration.Builder |
getCheckIntervalBuilder()
Interval between health checks.
|
com.google.protobuf.DurationOrBuilder |
getCheckIntervalOrBuilder()
Interval between health checks.
|
HealthCheck |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
boolean |
getDisableHealthCheck()
Whether to explicitly disable health checks for this instance.
|
int |
getHealthyThreshold()
Number of consecutive successful health checks required before receiving
traffic.
|
java.lang.String |
getHost()
Host header to send when performing an HTTP health check.
|
com.google.protobuf.ByteString |
getHostBytes()
Host header to send when performing an HTTP health check.
|
int |
getRestartThreshold()
Number of consecutive failed health checks required before an instance is
restarted.
|
com.google.protobuf.Duration |
getTimeout()
Time before the health check is considered failed.
|
com.google.protobuf.Duration.Builder |
getTimeoutBuilder()
Time before the health check is considered failed.
|
com.google.protobuf.DurationOrBuilder |
getTimeoutOrBuilder()
Time before the health check is considered failed.
|
int |
getUnhealthyThreshold()
Number of consecutive failed health checks required before removing
traffic.
|
boolean |
hasCheckInterval()
Interval between health checks.
|
boolean |
hasTimeout()
Time before the health check is considered failed.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
HealthCheck.Builder |
mergeCheckInterval(com.google.protobuf.Duration value)
Interval between health checks.
|
HealthCheck.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
HealthCheck.Builder |
mergeFrom(HealthCheck other) |
HealthCheck.Builder |
mergeFrom(com.google.protobuf.Message other) |
HealthCheck.Builder |
mergeTimeout(com.google.protobuf.Duration value)
Time before the health check is considered failed.
|
HealthCheck.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
HealthCheck.Builder |
setCheckInterval(com.google.protobuf.Duration.Builder builderForValue)
Interval between health checks.
|
HealthCheck.Builder |
setCheckInterval(com.google.protobuf.Duration value)
Interval between health checks.
|
HealthCheck.Builder |
setDisableHealthCheck(boolean value)
Whether to explicitly disable health checks for this instance.
|
HealthCheck.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
HealthCheck.Builder |
setHealthyThreshold(int value)
Number of consecutive successful health checks required before receiving
traffic.
|
HealthCheck.Builder |
setHost(java.lang.String value)
Host header to send when performing an HTTP health check.
|
HealthCheck.Builder |
setHostBytes(com.google.protobuf.ByteString value)
Host header to send when performing an HTTP health check.
|
HealthCheck.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
HealthCheck.Builder |
setRestartThreshold(int value)
Number of consecutive failed health checks required before an instance is
restarted.
|
HealthCheck.Builder |
setTimeout(com.google.protobuf.Duration.Builder builderForValue)
Time before the health check is considered failed.
|
HealthCheck.Builder |
setTimeout(com.google.protobuf.Duration value)
Time before the health check is considered failed.
|
HealthCheck.Builder |
setUnhealthyThreshold(int value)
Number of consecutive failed health checks required before removing
traffic.
|
HealthCheck.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, parseUnknownFieldfindInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<HealthCheck.Builder>public HealthCheck.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<HealthCheck.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<HealthCheck.Builder>public HealthCheck getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic HealthCheck build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic HealthCheck buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic HealthCheck.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<HealthCheck.Builder>public HealthCheck.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<HealthCheck.Builder>public HealthCheck.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<HealthCheck.Builder>public HealthCheck.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<HealthCheck.Builder>public HealthCheck.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<HealthCheck.Builder>public HealthCheck.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<HealthCheck.Builder>public HealthCheck.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<HealthCheck.Builder>public HealthCheck.Builder mergeFrom(HealthCheck other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<HealthCheck.Builder>public HealthCheck.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<HealthCheck.Builder>java.io.IOExceptionpublic boolean getDisableHealthCheck()
Whether to explicitly disable health checks for this instance.
optional bool disable_health_check = 1;getDisableHealthCheck in interface HealthCheckOrBuilderpublic HealthCheck.Builder setDisableHealthCheck(boolean value)
Whether to explicitly disable health checks for this instance.
optional bool disable_health_check = 1;public HealthCheck.Builder clearDisableHealthCheck()
Whether to explicitly disable health checks for this instance.
optional bool disable_health_check = 1;public java.lang.String getHost()
Host header to send when performing an HTTP health check. Example: "myapp.appspot.com"
optional string host = 2;getHost in interface HealthCheckOrBuilderpublic com.google.protobuf.ByteString getHostBytes()
Host header to send when performing an HTTP health check. Example: "myapp.appspot.com"
optional string host = 2;getHostBytes in interface HealthCheckOrBuilderpublic HealthCheck.Builder setHost(java.lang.String value)
Host header to send when performing an HTTP health check. Example: "myapp.appspot.com"
optional string host = 2;public HealthCheck.Builder clearHost()
Host header to send when performing an HTTP health check. Example: "myapp.appspot.com"
optional string host = 2;public HealthCheck.Builder setHostBytes(com.google.protobuf.ByteString value)
Host header to send when performing an HTTP health check. Example: "myapp.appspot.com"
optional string host = 2;public int getHealthyThreshold()
Number of consecutive successful health checks required before receiving traffic.
optional uint32 healthy_threshold = 3;getHealthyThreshold in interface HealthCheckOrBuilderpublic HealthCheck.Builder setHealthyThreshold(int value)
Number of consecutive successful health checks required before receiving traffic.
optional uint32 healthy_threshold = 3;public HealthCheck.Builder clearHealthyThreshold()
Number of consecutive successful health checks required before receiving traffic.
optional uint32 healthy_threshold = 3;public int getUnhealthyThreshold()
Number of consecutive failed health checks required before removing traffic.
optional uint32 unhealthy_threshold = 4;getUnhealthyThreshold in interface HealthCheckOrBuilderpublic HealthCheck.Builder setUnhealthyThreshold(int value)
Number of consecutive failed health checks required before removing traffic.
optional uint32 unhealthy_threshold = 4;public HealthCheck.Builder clearUnhealthyThreshold()
Number of consecutive failed health checks required before removing traffic.
optional uint32 unhealthy_threshold = 4;public int getRestartThreshold()
Number of consecutive failed health checks required before an instance is restarted.
optional uint32 restart_threshold = 5;getRestartThreshold in interface HealthCheckOrBuilderpublic HealthCheck.Builder setRestartThreshold(int value)
Number of consecutive failed health checks required before an instance is restarted.
optional uint32 restart_threshold = 5;public HealthCheck.Builder clearRestartThreshold()
Number of consecutive failed health checks required before an instance is restarted.
optional uint32 restart_threshold = 5;public boolean hasCheckInterval()
Interval between health checks.
optional .google.protobuf.Duration check_interval = 6;hasCheckInterval in interface HealthCheckOrBuilderpublic com.google.protobuf.Duration getCheckInterval()
Interval between health checks.
optional .google.protobuf.Duration check_interval = 6;getCheckInterval in interface HealthCheckOrBuilderpublic HealthCheck.Builder setCheckInterval(com.google.protobuf.Duration value)
Interval between health checks.
optional .google.protobuf.Duration check_interval = 6;public HealthCheck.Builder setCheckInterval(com.google.protobuf.Duration.Builder builderForValue)
Interval between health checks.
optional .google.protobuf.Duration check_interval = 6;public HealthCheck.Builder mergeCheckInterval(com.google.protobuf.Duration value)
Interval between health checks.
optional .google.protobuf.Duration check_interval = 6;public HealthCheck.Builder clearCheckInterval()
Interval between health checks.
optional .google.protobuf.Duration check_interval = 6;public com.google.protobuf.Duration.Builder getCheckIntervalBuilder()
Interval between health checks.
optional .google.protobuf.Duration check_interval = 6;public com.google.protobuf.DurationOrBuilder getCheckIntervalOrBuilder()
Interval between health checks.
optional .google.protobuf.Duration check_interval = 6;getCheckIntervalOrBuilder in interface HealthCheckOrBuilderpublic boolean hasTimeout()
Time before the health check is considered failed.
optional .google.protobuf.Duration timeout = 7;hasTimeout in interface HealthCheckOrBuilderpublic com.google.protobuf.Duration getTimeout()
Time before the health check is considered failed.
optional .google.protobuf.Duration timeout = 7;getTimeout in interface HealthCheckOrBuilderpublic HealthCheck.Builder setTimeout(com.google.protobuf.Duration value)
Time before the health check is considered failed.
optional .google.protobuf.Duration timeout = 7;public HealthCheck.Builder setTimeout(com.google.protobuf.Duration.Builder builderForValue)
Time before the health check is considered failed.
optional .google.protobuf.Duration timeout = 7;public HealthCheck.Builder mergeTimeout(com.google.protobuf.Duration value)
Time before the health check is considered failed.
optional .google.protobuf.Duration timeout = 7;public HealthCheck.Builder clearTimeout()
Time before the health check is considered failed.
optional .google.protobuf.Duration timeout = 7;public com.google.protobuf.Duration.Builder getTimeoutBuilder()
Time before the health check is considered failed.
optional .google.protobuf.Duration timeout = 7;public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder()
Time before the health check is considered failed.
optional .google.protobuf.Duration timeout = 7;getTimeoutOrBuilder in interface HealthCheckOrBuilderpublic final HealthCheck.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<HealthCheck.Builder>public final HealthCheck.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<HealthCheck.Builder>