public static final class HealthCheck.Builder extends 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(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(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(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() |
Duration |
getCheckInterval()
Interval between health checks.
|
Duration.Builder |
getCheckIntervalBuilder()
Interval between health checks.
|
DurationOrBuilder |
getCheckIntervalOrBuilder()
Interval between health checks.
|
HealthCheck |
getDefaultInstanceForType() |
static Descriptors.Descriptor |
getDescriptor() |
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.
|
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.
|
Duration |
getTimeout()
Time before the health check is considered failed.
|
Duration.Builder |
getTimeoutBuilder()
Time before the health check is considered failed.
|
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 GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
HealthCheck.Builder |
mergeCheckInterval(Duration value)
Interval between health checks.
|
HealthCheck.Builder |
mergeFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
HealthCheck.Builder |
mergeFrom(HealthCheck other) |
HealthCheck.Builder |
mergeFrom(Message other) |
HealthCheck.Builder |
mergeTimeout(Duration value)
Time before the health check is considered failed.
|
HealthCheck.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields) |
HealthCheck.Builder |
setCheckInterval(Duration.Builder builderForValue)
Interval between health checks.
|
HealthCheck.Builder |
setCheckInterval(Duration value)
Interval between health checks.
|
HealthCheck.Builder |
setDisableHealthCheck(boolean value)
Whether to explicitly disable health checks for this instance.
|
HealthCheck.Builder |
setField(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(ByteString value)
Host header to send when performing an HTTP health check.
|
HealthCheck.Builder |
setRepeatedField(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(Duration.Builder builderForValue)
Time before the health check is considered failed.
|
HealthCheck.Builder |
setTimeout(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(UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<HealthCheck.Builder>
public HealthCheck.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<HealthCheck.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<HealthCheck.Builder>
public HealthCheck getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public HealthCheck build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public HealthCheck buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public HealthCheck.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<HealthCheck.Builder>
public HealthCheck.Builder setField(Descriptors.FieldDescriptor field, java.lang.Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<HealthCheck.Builder>
public HealthCheck.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<HealthCheck.Builder>
public HealthCheck.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<HealthCheck.Builder>
public HealthCheck.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<HealthCheck.Builder>
public HealthCheck.Builder addRepeatedField(Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<HealthCheck.Builder>
public HealthCheck.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<HealthCheck.Builder>
public HealthCheck.Builder mergeFrom(HealthCheck other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<HealthCheck.Builder>
public HealthCheck.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<HealthCheck.Builder>
java.io.IOException
public boolean getDisableHealthCheck()
Whether to explicitly disable health checks for this instance.
bool disable_health_check = 1;
getDisableHealthCheck
in interface HealthCheckOrBuilder
public HealthCheck.Builder setDisableHealthCheck(boolean value)
Whether to explicitly disable health checks for this instance.
bool disable_health_check = 1;
public HealthCheck.Builder clearDisableHealthCheck()
Whether to explicitly disable health checks for this instance.
bool disable_health_check = 1;
public java.lang.String getHost()
Host header to send when performing an HTTP health check. Example: "myapp.appspot.com"
string host = 2;
getHost
in interface HealthCheckOrBuilder
public ByteString getHostBytes()
Host header to send when performing an HTTP health check. Example: "myapp.appspot.com"
string host = 2;
getHostBytes
in interface HealthCheckOrBuilder
public HealthCheck.Builder setHost(java.lang.String value)
Host header to send when performing an HTTP health check. Example: "myapp.appspot.com"
string host = 2;
public HealthCheck.Builder clearHost()
Host header to send when performing an HTTP health check. Example: "myapp.appspot.com"
string host = 2;
public HealthCheck.Builder setHostBytes(ByteString value)
Host header to send when performing an HTTP health check. Example: "myapp.appspot.com"
string host = 2;
public int getHealthyThreshold()
Number of consecutive successful health checks required before receiving traffic.
uint32 healthy_threshold = 3;
getHealthyThreshold
in interface HealthCheckOrBuilder
public HealthCheck.Builder setHealthyThreshold(int value)
Number of consecutive successful health checks required before receiving traffic.
uint32 healthy_threshold = 3;
public HealthCheck.Builder clearHealthyThreshold()
Number of consecutive successful health checks required before receiving traffic.
uint32 healthy_threshold = 3;
public int getUnhealthyThreshold()
Number of consecutive failed health checks required before removing traffic.
uint32 unhealthy_threshold = 4;
getUnhealthyThreshold
in interface HealthCheckOrBuilder
public HealthCheck.Builder setUnhealthyThreshold(int value)
Number of consecutive failed health checks required before removing traffic.
uint32 unhealthy_threshold = 4;
public HealthCheck.Builder clearUnhealthyThreshold()
Number of consecutive failed health checks required before removing traffic.
uint32 unhealthy_threshold = 4;
public int getRestartThreshold()
Number of consecutive failed health checks required before an instance is restarted.
uint32 restart_threshold = 5;
getRestartThreshold
in interface HealthCheckOrBuilder
public HealthCheck.Builder setRestartThreshold(int value)
Number of consecutive failed health checks required before an instance is restarted.
uint32 restart_threshold = 5;
public HealthCheck.Builder clearRestartThreshold()
Number of consecutive failed health checks required before an instance is restarted.
uint32 restart_threshold = 5;
public boolean hasCheckInterval()
Interval between health checks.
.google.protobuf.Duration check_interval = 6;
hasCheckInterval
in interface HealthCheckOrBuilder
public Duration getCheckInterval()
Interval between health checks.
.google.protobuf.Duration check_interval = 6;
getCheckInterval
in interface HealthCheckOrBuilder
public HealthCheck.Builder setCheckInterval(Duration value)
Interval between health checks.
.google.protobuf.Duration check_interval = 6;
public HealthCheck.Builder setCheckInterval(Duration.Builder builderForValue)
Interval between health checks.
.google.protobuf.Duration check_interval = 6;
public HealthCheck.Builder mergeCheckInterval(Duration value)
Interval between health checks.
.google.protobuf.Duration check_interval = 6;
public HealthCheck.Builder clearCheckInterval()
Interval between health checks.
.google.protobuf.Duration check_interval = 6;
public Duration.Builder getCheckIntervalBuilder()
Interval between health checks.
.google.protobuf.Duration check_interval = 6;
public DurationOrBuilder getCheckIntervalOrBuilder()
Interval between health checks.
.google.protobuf.Duration check_interval = 6;
getCheckIntervalOrBuilder
in interface HealthCheckOrBuilder
public boolean hasTimeout()
Time before the health check is considered failed.
.google.protobuf.Duration timeout = 7;
hasTimeout
in interface HealthCheckOrBuilder
public Duration getTimeout()
Time before the health check is considered failed.
.google.protobuf.Duration timeout = 7;
getTimeout
in interface HealthCheckOrBuilder
public HealthCheck.Builder setTimeout(Duration value)
Time before the health check is considered failed.
.google.protobuf.Duration timeout = 7;
public HealthCheck.Builder setTimeout(Duration.Builder builderForValue)
Time before the health check is considered failed.
.google.protobuf.Duration timeout = 7;
public HealthCheck.Builder mergeTimeout(Duration value)
Time before the health check is considered failed.
.google.protobuf.Duration timeout = 7;
public HealthCheck.Builder clearTimeout()
Time before the health check is considered failed.
.google.protobuf.Duration timeout = 7;
public Duration.Builder getTimeoutBuilder()
Time before the health check is considered failed.
.google.protobuf.Duration timeout = 7;
public DurationOrBuilder getTimeoutOrBuilder()
Time before the health check is considered failed.
.google.protobuf.Duration timeout = 7;
getTimeoutOrBuilder
in interface HealthCheckOrBuilder
public final HealthCheck.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<HealthCheck.Builder>
public final HealthCheck.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<HealthCheck.Builder>