public final class HealthCheck extends com.google.protobuf.GeneratedMessageV3 implements HealthCheckOrBuilder
Represents a Health Check resource. Google Compute Engine has two Health Check resources: * [Global](/compute/docs/reference/rest/v1/healthChecks) * [Regional](/compute/docs/reference/rest/v1/regionHealthChecks) Internal HTTP(S) load balancers must use regional health checks (`compute.v1.regionHealthChecks`). Traffic Director must use global health checks (`compute.v1.HealthChecks`). Internal TCP/UDP load balancers can use either regional or global health checks (`compute.v1.regionHealthChecks` or `compute.v1.HealthChecks`). External HTTP(S), TCP proxy, and SSL proxy load balancers as well as managed instance group auto-healing must use global health checks (`compute.v1.HealthChecks`). Backend service-based network load balancers must use regional health checks (`compute.v1.regionHealthChecks`). Target pool-based network load balancers must use legacy HTTP health checks (`compute.v1.httpHealthChecks`). For more information, see Health checks overview.Protobuf type
google.cloud.compute.v1.HealthCheck| Modifier and Type | Class and Description |
|---|---|
static class |
HealthCheck.Builder
Represents a Health Check resource.
|
static class |
HealthCheck.Type
Specifies the type of the healthCheck, either TCP, SSL, HTTP, HTTPS, HTTP2 or GRPC.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
CHECK_INTERVAL_SEC_FIELD_NUMBER |
static int |
CREATION_TIMESTAMP_FIELD_NUMBER |
static int |
DESCRIPTION_FIELD_NUMBER |
static int |
GRPC_HEALTH_CHECK_FIELD_NUMBER |
static int |
HEALTHY_THRESHOLD_FIELD_NUMBER |
static int |
HTTP_HEALTH_CHECK_FIELD_NUMBER |
static int |
HTTP2_HEALTH_CHECK_FIELD_NUMBER |
static int |
HTTPS_HEALTH_CHECK_FIELD_NUMBER |
static int |
ID_FIELD_NUMBER |
static int |
KIND_FIELD_NUMBER |
static int |
LOG_CONFIG_FIELD_NUMBER |
static int |
NAME_FIELD_NUMBER |
static int |
REGION_FIELD_NUMBER |
static int |
SELF_LINK_FIELD_NUMBER |
static int |
SSL_HEALTH_CHECK_FIELD_NUMBER |
static int |
TCP_HEALTH_CHECK_FIELD_NUMBER |
static int |
TIMEOUT_SEC_FIELD_NUMBER |
static int |
TYPE_FIELD_NUMBER |
static int |
UNHEALTHY_THRESHOLD_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
int |
getCheckIntervalSec()
How often (in seconds) to send a health check.
|
String |
getCreationTimestamp()
[Output Only] Creation timestamp in 3339 text format.
|
com.google.protobuf.ByteString |
getCreationTimestampBytes()
[Output Only] Creation timestamp in 3339 text format.
|
static HealthCheck |
getDefaultInstance() |
HealthCheck |
getDefaultInstanceForType() |
String |
getDescription()
An optional description of this resource.
|
com.google.protobuf.ByteString |
getDescriptionBytes()
An optional description of this resource.
|
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
GRPCHealthCheck |
getGrpcHealthCheck()
optional .google.cloud.compute.v1.GRPCHealthCheck grpc_health_check = 85529574; |
GRPCHealthCheckOrBuilder |
getGrpcHealthCheckOrBuilder()
optional .google.cloud.compute.v1.GRPCHealthCheck grpc_health_check = 85529574; |
int |
getHealthyThreshold()
A so-far unhealthy instance will be marked healthy after this many consecutive successes.
|
HTTP2HealthCheck |
getHttp2HealthCheck()
optional .google.cloud.compute.v1.HTTP2HealthCheck http2_health_check = 11360986; |
HTTP2HealthCheckOrBuilder |
getHttp2HealthCheckOrBuilder()
optional .google.cloud.compute.v1.HTTP2HealthCheck http2_health_check = 11360986; |
HTTPHealthCheck |
getHttpHealthCheck()
optional .google.cloud.compute.v1.HTTPHealthCheck http_health_check = 412586940; |
HTTPHealthCheckOrBuilder |
getHttpHealthCheckOrBuilder()
optional .google.cloud.compute.v1.HTTPHealthCheck http_health_check = 412586940; |
HTTPSHealthCheck |
getHttpsHealthCheck()
optional .google.cloud.compute.v1.HTTPSHealthCheck https_health_check = 436046905; |
HTTPSHealthCheckOrBuilder |
getHttpsHealthCheckOrBuilder()
optional .google.cloud.compute.v1.HTTPSHealthCheck https_health_check = 436046905; |
long |
getId()
[Output Only] The unique identifier for the resource.
|
String |
getKind()
Type of the resource.
|
com.google.protobuf.ByteString |
getKindBytes()
Type of the resource.
|
HealthCheckLogConfig |
getLogConfig()
Configure logging on this health check.
|
HealthCheckLogConfigOrBuilder |
getLogConfigOrBuilder()
Configure logging on this health check.
|
String |
getName()
Name of the resource.
|
com.google.protobuf.ByteString |
getNameBytes()
Name of the resource.
|
com.google.protobuf.Parser<HealthCheck> |
getParserForType() |
String |
getRegion()
[Output Only] Region where the health check resides.
|
com.google.protobuf.ByteString |
getRegionBytes()
[Output Only] Region where the health check resides.
|
String |
getSelfLink()
[Output Only] Server-defined URL for the resource.
|
com.google.protobuf.ByteString |
getSelfLinkBytes()
[Output Only] Server-defined URL for the resource.
|
int |
getSerializedSize() |
SSLHealthCheck |
getSslHealthCheck()
optional .google.cloud.compute.v1.SSLHealthCheck ssl_health_check = 280032440; |
SSLHealthCheckOrBuilder |
getSslHealthCheckOrBuilder()
optional .google.cloud.compute.v1.SSLHealthCheck ssl_health_check = 280032440; |
TCPHealthCheck |
getTcpHealthCheck()
optional .google.cloud.compute.v1.TCPHealthCheck tcp_health_check = 469980419; |
TCPHealthCheckOrBuilder |
getTcpHealthCheckOrBuilder()
optional .google.cloud.compute.v1.TCPHealthCheck tcp_health_check = 469980419; |
int |
getTimeoutSec()
How long (in seconds) to wait before claiming failure.
|
String |
getType()
Specifies the type of the healthCheck, either TCP, SSL, HTTP, HTTPS, HTTP2 or GRPC.
|
com.google.protobuf.ByteString |
getTypeBytes()
Specifies the type of the healthCheck, either TCP, SSL, HTTP, HTTPS, HTTP2 or GRPC.
|
int |
getUnhealthyThreshold()
A so-far healthy instance will be marked unhealthy after this many consecutive failures.
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
boolean |
hasCheckIntervalSec()
How often (in seconds) to send a health check.
|
boolean |
hasCreationTimestamp()
[Output Only] Creation timestamp in 3339 text format.
|
boolean |
hasDescription()
An optional description of this resource.
|
boolean |
hasGrpcHealthCheck()
optional .google.cloud.compute.v1.GRPCHealthCheck grpc_health_check = 85529574; |
int |
hashCode() |
boolean |
hasHealthyThreshold()
A so-far unhealthy instance will be marked healthy after this many consecutive successes.
|
boolean |
hasHttp2HealthCheck()
optional .google.cloud.compute.v1.HTTP2HealthCheck http2_health_check = 11360986; |
boolean |
hasHttpHealthCheck()
optional .google.cloud.compute.v1.HTTPHealthCheck http_health_check = 412586940; |
boolean |
hasHttpsHealthCheck()
optional .google.cloud.compute.v1.HTTPSHealthCheck https_health_check = 436046905; |
boolean |
hasId()
[Output Only] The unique identifier for the resource.
|
boolean |
hasKind()
Type of the resource.
|
boolean |
hasLogConfig()
Configure logging on this health check.
|
boolean |
hasName()
Name of the resource.
|
boolean |
hasRegion()
[Output Only] Region where the health check resides.
|
boolean |
hasSelfLink()
[Output Only] Server-defined URL for the resource.
|
boolean |
hasSslHealthCheck()
optional .google.cloud.compute.v1.SSLHealthCheck ssl_health_check = 280032440; |
boolean |
hasTcpHealthCheck()
optional .google.cloud.compute.v1.TCPHealthCheck tcp_health_check = 469980419; |
boolean |
hasTimeoutSec()
How long (in seconds) to wait before claiming failure.
|
boolean |
hasType()
Specifies the type of the healthCheck, either TCP, SSL, HTTP, HTTPS, HTTP2 or GRPC.
|
boolean |
hasUnhealthyThreshold()
A so-far healthy instance will be marked unhealthy after this many consecutive failures.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static HealthCheck.Builder |
newBuilder() |
static HealthCheck.Builder |
newBuilder(HealthCheck prototype) |
HealthCheck.Builder |
newBuilderForType() |
protected HealthCheck.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static HealthCheck |
parseDelimitedFrom(InputStream input) |
static HealthCheck |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static HealthCheck |
parseFrom(byte[] data) |
static HealthCheck |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static HealthCheck |
parseFrom(ByteBuffer data) |
static HealthCheck |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static HealthCheck |
parseFrom(com.google.protobuf.ByteString data) |
static HealthCheck |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static HealthCheck |
parseFrom(com.google.protobuf.CodedInputStream input) |
static HealthCheck |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static HealthCheck |
parseFrom(InputStream input) |
static HealthCheck |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<HealthCheck> |
parser() |
HealthCheck.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, 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, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int CHECK_INTERVAL_SEC_FIELD_NUMBER
public static final int CREATION_TIMESTAMP_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER
public static final int GRPC_HEALTH_CHECK_FIELD_NUMBER
public static final int HEALTHY_THRESHOLD_FIELD_NUMBER
public static final int HTTP2_HEALTH_CHECK_FIELD_NUMBER
public static final int HTTP_HEALTH_CHECK_FIELD_NUMBER
public static final int HTTPS_HEALTH_CHECK_FIELD_NUMBER
public static final int ID_FIELD_NUMBER
public static final int KIND_FIELD_NUMBER
public static final int LOG_CONFIG_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
public static final int REGION_FIELD_NUMBER
public static final int SELF_LINK_FIELD_NUMBER
public static final int SSL_HEALTH_CHECK_FIELD_NUMBER
public static final int TCP_HEALTH_CHECK_FIELD_NUMBER
public static final int TIMEOUT_SEC_FIELD_NUMBER
public static final int TYPE_FIELD_NUMBER
public static final int UNHEALTHY_THRESHOLD_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public boolean hasCheckIntervalSec()
How often (in seconds) to send a health check. The default value is 5 seconds.
optional int32 check_interval_sec = 345561006;hasCheckIntervalSec in interface HealthCheckOrBuilderpublic int getCheckIntervalSec()
How often (in seconds) to send a health check. The default value is 5 seconds.
optional int32 check_interval_sec = 345561006;getCheckIntervalSec in interface HealthCheckOrBuilderpublic boolean hasCreationTimestamp()
[Output Only] Creation timestamp in 3339 text format.
optional string creation_timestamp = 30525366;hasCreationTimestamp in interface HealthCheckOrBuilderpublic String getCreationTimestamp()
[Output Only] Creation timestamp in 3339 text format.
optional string creation_timestamp = 30525366;getCreationTimestamp in interface HealthCheckOrBuilderpublic com.google.protobuf.ByteString getCreationTimestampBytes()
[Output Only] Creation timestamp in 3339 text format.
optional string creation_timestamp = 30525366;getCreationTimestampBytes in interface HealthCheckOrBuilderpublic boolean hasDescription()
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;hasDescription in interface HealthCheckOrBuilderpublic String getDescription()
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;getDescription in interface HealthCheckOrBuilderpublic com.google.protobuf.ByteString getDescriptionBytes()
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;getDescriptionBytes in interface HealthCheckOrBuilderpublic boolean hasGrpcHealthCheck()
optional .google.cloud.compute.v1.GRPCHealthCheck grpc_health_check = 85529574;hasGrpcHealthCheck in interface HealthCheckOrBuilderpublic GRPCHealthCheck getGrpcHealthCheck()
optional .google.cloud.compute.v1.GRPCHealthCheck grpc_health_check = 85529574;getGrpcHealthCheck in interface HealthCheckOrBuilderpublic GRPCHealthCheckOrBuilder getGrpcHealthCheckOrBuilder()
optional .google.cloud.compute.v1.GRPCHealthCheck grpc_health_check = 85529574;getGrpcHealthCheckOrBuilder in interface HealthCheckOrBuilderpublic boolean hasHealthyThreshold()
A so-far unhealthy instance will be marked healthy after this many consecutive successes. The default value is 2.
optional int32 healthy_threshold = 403212361;hasHealthyThreshold in interface HealthCheckOrBuilderpublic int getHealthyThreshold()
A so-far unhealthy instance will be marked healthy after this many consecutive successes. The default value is 2.
optional int32 healthy_threshold = 403212361;getHealthyThreshold in interface HealthCheckOrBuilderpublic boolean hasHttp2HealthCheck()
optional .google.cloud.compute.v1.HTTP2HealthCheck http2_health_check = 11360986;hasHttp2HealthCheck in interface HealthCheckOrBuilderpublic HTTP2HealthCheck getHttp2HealthCheck()
optional .google.cloud.compute.v1.HTTP2HealthCheck http2_health_check = 11360986;getHttp2HealthCheck in interface HealthCheckOrBuilderpublic HTTP2HealthCheckOrBuilder getHttp2HealthCheckOrBuilder()
optional .google.cloud.compute.v1.HTTP2HealthCheck http2_health_check = 11360986;getHttp2HealthCheckOrBuilder in interface HealthCheckOrBuilderpublic boolean hasHttpHealthCheck()
optional .google.cloud.compute.v1.HTTPHealthCheck http_health_check = 412586940;hasHttpHealthCheck in interface HealthCheckOrBuilderpublic HTTPHealthCheck getHttpHealthCheck()
optional .google.cloud.compute.v1.HTTPHealthCheck http_health_check = 412586940;getHttpHealthCheck in interface HealthCheckOrBuilderpublic HTTPHealthCheckOrBuilder getHttpHealthCheckOrBuilder()
optional .google.cloud.compute.v1.HTTPHealthCheck http_health_check = 412586940;getHttpHealthCheckOrBuilder in interface HealthCheckOrBuilderpublic boolean hasHttpsHealthCheck()
optional .google.cloud.compute.v1.HTTPSHealthCheck https_health_check = 436046905;hasHttpsHealthCheck in interface HealthCheckOrBuilderpublic HTTPSHealthCheck getHttpsHealthCheck()
optional .google.cloud.compute.v1.HTTPSHealthCheck https_health_check = 436046905;getHttpsHealthCheck in interface HealthCheckOrBuilderpublic HTTPSHealthCheckOrBuilder getHttpsHealthCheckOrBuilder()
optional .google.cloud.compute.v1.HTTPSHealthCheck https_health_check = 436046905;getHttpsHealthCheckOrBuilder in interface HealthCheckOrBuilderpublic boolean hasId()
[Output Only] The unique identifier for the resource. This identifier is defined by the server.
optional uint64 id = 3355;hasId in interface HealthCheckOrBuilderpublic long getId()
[Output Only] The unique identifier for the resource. This identifier is defined by the server.
optional uint64 id = 3355;getId in interface HealthCheckOrBuilderpublic boolean hasKind()
Type of the resource.
optional string kind = 3292052;hasKind in interface HealthCheckOrBuilderpublic String getKind()
Type of the resource.
optional string kind = 3292052;getKind in interface HealthCheckOrBuilderpublic com.google.protobuf.ByteString getKindBytes()
Type of the resource.
optional string kind = 3292052;getKindBytes in interface HealthCheckOrBuilderpublic boolean hasLogConfig()
Configure logging on this health check.
optional .google.cloud.compute.v1.HealthCheckLogConfig log_config = 351299741;hasLogConfig in interface HealthCheckOrBuilderpublic HealthCheckLogConfig getLogConfig()
Configure logging on this health check.
optional .google.cloud.compute.v1.HealthCheckLogConfig log_config = 351299741;getLogConfig in interface HealthCheckOrBuilderpublic HealthCheckLogConfigOrBuilder getLogConfigOrBuilder()
Configure logging on this health check.
optional .google.cloud.compute.v1.HealthCheckLogConfig log_config = 351299741;getLogConfigOrBuilder in interface HealthCheckOrBuilderpublic boolean hasName()
Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. For example, a name that is 1-63 characters long, matches the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?`, and otherwise complies with RFC1035. This regular expression describes a name where the first character is a lowercase letter, and all following characters are a dash, lowercase letter, or digit, except the last character, which isn't a dash.
optional string name = 3373707;hasName in interface HealthCheckOrBuilderpublic String getName()
Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. For example, a name that is 1-63 characters long, matches the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?`, and otherwise complies with RFC1035. This regular expression describes a name where the first character is a lowercase letter, and all following characters are a dash, lowercase letter, or digit, except the last character, which isn't a dash.
optional string name = 3373707;getName in interface HealthCheckOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. For example, a name that is 1-63 characters long, matches the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?`, and otherwise complies with RFC1035. This regular expression describes a name where the first character is a lowercase letter, and all following characters are a dash, lowercase letter, or digit, except the last character, which isn't a dash.
optional string name = 3373707;getNameBytes in interface HealthCheckOrBuilderpublic boolean hasRegion()
[Output Only] Region where the health check resides. Not applicable to global health checks.
optional string region = 138946292;hasRegion in interface HealthCheckOrBuilderpublic String getRegion()
[Output Only] Region where the health check resides. Not applicable to global health checks.
optional string region = 138946292;getRegion in interface HealthCheckOrBuilderpublic com.google.protobuf.ByteString getRegionBytes()
[Output Only] Region where the health check resides. Not applicable to global health checks.
optional string region = 138946292;getRegionBytes in interface HealthCheckOrBuilderpublic boolean hasSelfLink()
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;hasSelfLink in interface HealthCheckOrBuilderpublic String getSelfLink()
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;getSelfLink in interface HealthCheckOrBuilderpublic com.google.protobuf.ByteString getSelfLinkBytes()
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;getSelfLinkBytes in interface HealthCheckOrBuilderpublic boolean hasSslHealthCheck()
optional .google.cloud.compute.v1.SSLHealthCheck ssl_health_check = 280032440;hasSslHealthCheck in interface HealthCheckOrBuilderpublic SSLHealthCheck getSslHealthCheck()
optional .google.cloud.compute.v1.SSLHealthCheck ssl_health_check = 280032440;getSslHealthCheck in interface HealthCheckOrBuilderpublic SSLHealthCheckOrBuilder getSslHealthCheckOrBuilder()
optional .google.cloud.compute.v1.SSLHealthCheck ssl_health_check = 280032440;getSslHealthCheckOrBuilder in interface HealthCheckOrBuilderpublic boolean hasTcpHealthCheck()
optional .google.cloud.compute.v1.TCPHealthCheck tcp_health_check = 469980419;hasTcpHealthCheck in interface HealthCheckOrBuilderpublic TCPHealthCheck getTcpHealthCheck()
optional .google.cloud.compute.v1.TCPHealthCheck tcp_health_check = 469980419;getTcpHealthCheck in interface HealthCheckOrBuilderpublic TCPHealthCheckOrBuilder getTcpHealthCheckOrBuilder()
optional .google.cloud.compute.v1.TCPHealthCheck tcp_health_check = 469980419;getTcpHealthCheckOrBuilder in interface HealthCheckOrBuilderpublic boolean hasTimeoutSec()
How long (in seconds) to wait before claiming failure. The default value is 5 seconds. It is invalid for timeoutSec to have greater value than checkIntervalSec.
optional int32 timeout_sec = 79994995;hasTimeoutSec in interface HealthCheckOrBuilderpublic int getTimeoutSec()
How long (in seconds) to wait before claiming failure. The default value is 5 seconds. It is invalid for timeoutSec to have greater value than checkIntervalSec.
optional int32 timeout_sec = 79994995;getTimeoutSec in interface HealthCheckOrBuilderpublic boolean hasType()
Specifies the type of the healthCheck, either TCP, SSL, HTTP, HTTPS, HTTP2 or GRPC. Exactly one of the protocol-specific health check fields must be specified, which must match type field. Check the Type enum for the list of possible values.
optional string type = 3575610;hasType in interface HealthCheckOrBuilderpublic String getType()
Specifies the type of the healthCheck, either TCP, SSL, HTTP, HTTPS, HTTP2 or GRPC. Exactly one of the protocol-specific health check fields must be specified, which must match type field. Check the Type enum for the list of possible values.
optional string type = 3575610;getType in interface HealthCheckOrBuilderpublic com.google.protobuf.ByteString getTypeBytes()
Specifies the type of the healthCheck, either TCP, SSL, HTTP, HTTPS, HTTP2 or GRPC. Exactly one of the protocol-specific health check fields must be specified, which must match type field. Check the Type enum for the list of possible values.
optional string type = 3575610;getTypeBytes in interface HealthCheckOrBuilderpublic boolean hasUnhealthyThreshold()
A so-far healthy instance will be marked unhealthy after this many consecutive failures. The default value is 2.
optional int32 unhealthy_threshold = 227958480;hasUnhealthyThreshold in interface HealthCheckOrBuilderpublic int getUnhealthyThreshold()
A so-far healthy instance will be marked unhealthy after this many consecutive failures. The default value is 2.
optional int32 unhealthy_threshold = 227958480;getUnhealthyThreshold in interface HealthCheckOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static HealthCheck parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static HealthCheck parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static HealthCheck parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static HealthCheck parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static HealthCheck parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static HealthCheck parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static HealthCheck parseFrom(InputStream input) throws IOException
IOExceptionpublic static HealthCheck parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static HealthCheck parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static HealthCheck parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static HealthCheck parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static HealthCheck parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic HealthCheck.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static HealthCheck.Builder newBuilder()
public static HealthCheck.Builder newBuilder(HealthCheck prototype)
public HealthCheck.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected HealthCheck.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static HealthCheck getDefaultInstance()
public static com.google.protobuf.Parser<HealthCheck> parser()
public com.google.protobuf.Parser<HealthCheck> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public HealthCheck getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2023 Google LLC. All rights reserved.