public final class HealthCheck extends GeneratedMessageV3 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 | Class and Description |
---|---|
static class |
HealthCheck.Builder
Health checking configuration for VM instances.
|
GeneratedMessageV3.BuilderParent, GeneratedMessageV3.ExtendableBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage,BuilderType extends GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageV3.ExtendableMessage<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.FieldAccessorTable
Modifier and Type | Field and Description |
---|---|
static int |
CHECK_INTERVAL_FIELD_NUMBER |
static int |
DISABLE_HEALTH_CHECK_FIELD_NUMBER |
static int |
HEALTHY_THRESHOLD_FIELD_NUMBER |
static int |
HOST_FIELD_NUMBER |
static int |
RESTART_THRESHOLD_FIELD_NUMBER |
static int |
TIMEOUT_FIELD_NUMBER |
static int |
UNHEALTHY_THRESHOLD_FIELD_NUMBER |
alwaysUseFieldBuilders, unknownFields
memoizedSize
memoizedHashCode
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
Duration |
getCheckInterval()
Interval between health checks.
|
DurationOrBuilder |
getCheckIntervalOrBuilder()
Interval between health checks.
|
static HealthCheck |
getDefaultInstance() |
HealthCheck |
getDefaultInstanceForType() |
static Descriptors.Descriptor |
getDescriptor() |
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.
|
Parser<HealthCheck> |
getParserForType() |
int |
getRestartThreshold()
Number of consecutive failed health checks required before an instance is
restarted.
|
int |
getSerializedSize() |
Duration |
getTimeout()
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.
|
UnknownFieldSet |
getUnknownFields() |
boolean |
hasCheckInterval()
Interval between health checks.
|
int |
hashCode() |
boolean |
hasTimeout()
Time before the health check is considered failed.
|
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static HealthCheck.Builder |
newBuilder() |
static HealthCheck.Builder |
newBuilder(HealthCheck prototype) |
HealthCheck.Builder |
newBuilderForType() |
protected HealthCheck.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent) |
static HealthCheck |
parseDelimitedFrom(java.io.InputStream input) |
static HealthCheck |
parseDelimitedFrom(java.io.InputStream input,
ExtensionRegistryLite extensionRegistry) |
static HealthCheck |
parseFrom(byte[] data) |
static HealthCheck |
parseFrom(byte[] data,
ExtensionRegistryLite extensionRegistry) |
static HealthCheck |
parseFrom(java.nio.ByteBuffer data) |
static HealthCheck |
parseFrom(java.nio.ByteBuffer data,
ExtensionRegistryLite extensionRegistry) |
static HealthCheck |
parseFrom(ByteString data) |
static HealthCheck |
parseFrom(ByteString data,
ExtensionRegistryLite extensionRegistry) |
static HealthCheck |
parseFrom(CodedInputStream input) |
static HealthCheck |
parseFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
static HealthCheck |
parseFrom(java.io.InputStream input) |
static HealthCheck |
parseFrom(java.io.InputStream input,
ExtensionRegistryLite extensionRegistry) |
static Parser<HealthCheck> |
parser() |
HealthCheck.Builder |
toBuilder() |
void |
writeTo(CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
toByteArray, toByteString, writeDelimitedTo, writeTo
public static final int DISABLE_HEALTH_CHECK_FIELD_NUMBER
public static final int HOST_FIELD_NUMBER
public static final int HEALTHY_THRESHOLD_FIELD_NUMBER
public static final int UNHEALTHY_THRESHOLD_FIELD_NUMBER
public static final int RESTART_THRESHOLD_FIELD_NUMBER
public static final int CHECK_INTERVAL_FIELD_NUMBER
public static final int TIMEOUT_FIELD_NUMBER
public final UnknownFieldSet getUnknownFields()
getUnknownFields
in interface MessageOrBuilder
getUnknownFields
in class GeneratedMessageV3
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3
public boolean getDisableHealthCheck()
Whether to explicitly disable health checks for this instance.
bool disable_health_check = 1;
getDisableHealthCheck
in interface HealthCheckOrBuilder
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 int getHealthyThreshold()
Number of consecutive successful health checks required before receiving traffic.
uint32 healthy_threshold = 3;
getHealthyThreshold
in interface HealthCheckOrBuilder
public int getUnhealthyThreshold()
Number of consecutive failed health checks required before removing traffic.
uint32 unhealthy_threshold = 4;
getUnhealthyThreshold
in interface HealthCheckOrBuilder
public int getRestartThreshold()
Number of consecutive failed health checks required before an instance is restarted.
uint32 restart_threshold = 5;
getRestartThreshold
in interface HealthCheckOrBuilder
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 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 DurationOrBuilder getTimeoutOrBuilder()
Time before the health check is considered failed.
.google.protobuf.Duration timeout = 7;
getTimeoutOrBuilder
in interface HealthCheckOrBuilder
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3
public void writeTo(CodedOutputStream output) throws java.io.IOException
writeTo
in interface MessageLite
writeTo
in class GeneratedMessageV3
java.io.IOException
public int getSerializedSize()
getSerializedSize
in interface MessageLite
getSerializedSize
in class GeneratedMessageV3
public boolean equals(java.lang.Object obj)
equals
in interface Message
equals
in class AbstractMessage
public int hashCode()
hashCode
in interface Message
hashCode
in class AbstractMessage
public static HealthCheck parseFrom(java.nio.ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static HealthCheck parseFrom(java.nio.ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static HealthCheck parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static HealthCheck parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static HealthCheck parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static HealthCheck parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static HealthCheck parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static HealthCheck parseFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static HealthCheck parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static HealthCheck parseDelimitedFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static HealthCheck parseFrom(CodedInputStream input) throws java.io.IOException
java.io.IOException
public static HealthCheck parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public HealthCheck.Builder newBuilderForType()
newBuilderForType
in interface Message
newBuilderForType
in interface MessageLite
public static HealthCheck.Builder newBuilder()
public static HealthCheck.Builder newBuilder(HealthCheck prototype)
public HealthCheck.Builder toBuilder()
toBuilder
in interface Message
toBuilder
in interface MessageLite
protected HealthCheck.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class GeneratedMessageV3
public static HealthCheck getDefaultInstance()
public static Parser<HealthCheck> parser()
public Parser<HealthCheck> getParserForType()
getParserForType
in interface Message
getParserForType
in interface MessageLite
getParserForType
in class GeneratedMessageV3
public HealthCheck getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder