Package com.google.cloud.compute.v1
Class HealthCheck
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.compute.v1.HealthCheck
-
- All Implemented Interfaces:
HealthCheckOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
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 typegoogle.cloud.compute.v1.HealthCheck- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classHealthCheck.BuilderRepresents a Health Check resource.static classHealthCheck.TypeSpecifies the type of the healthCheck, either TCP, SSL, HTTP, HTTPS, HTTP2 or GRPC.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intCHECK_INTERVAL_SEC_FIELD_NUMBERstatic intCREATION_TIMESTAMP_FIELD_NUMBERstatic intDESCRIPTION_FIELD_NUMBERstatic intGRPC_HEALTH_CHECK_FIELD_NUMBERstatic intHEALTHY_THRESHOLD_FIELD_NUMBERstatic intHTTP_HEALTH_CHECK_FIELD_NUMBERstatic intHTTP2_HEALTH_CHECK_FIELD_NUMBERstatic intHTTPS_HEALTH_CHECK_FIELD_NUMBERstatic intID_FIELD_NUMBERstatic intKIND_FIELD_NUMBERstatic intLOG_CONFIG_FIELD_NUMBERstatic intNAME_FIELD_NUMBERstatic intREGION_FIELD_NUMBERstatic intSELF_LINK_FIELD_NUMBERstatic intSSL_HEALTH_CHECK_FIELD_NUMBERstatic intTCP_HEALTH_CHECK_FIELD_NUMBERstatic intTIMEOUT_SEC_FIELD_NUMBERstatic intTYPE_FIELD_NUMBERstatic intUNHEALTHY_THRESHOLD_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)intgetCheckIntervalSec()How often (in seconds) to send a health check.StringgetCreationTimestamp()[Output Only] Creation timestamp in 3339 text format.com.google.protobuf.ByteStringgetCreationTimestampBytes()[Output Only] Creation timestamp in 3339 text format.static HealthCheckgetDefaultInstance()HealthCheckgetDefaultInstanceForType()StringgetDescription()An optional description of this resource.com.google.protobuf.ByteStringgetDescriptionBytes()An optional description of this resource.static com.google.protobuf.Descriptors.DescriptorgetDescriptor()GRPCHealthCheckgetGrpcHealthCheck()optional .google.cloud.compute.v1.GRPCHealthCheck grpc_health_check = 85529574;GRPCHealthCheckOrBuildergetGrpcHealthCheckOrBuilder()optional .google.cloud.compute.v1.GRPCHealthCheck grpc_health_check = 85529574;intgetHealthyThreshold()A so-far unhealthy instance will be marked healthy after this many consecutive successes.HTTP2HealthCheckgetHttp2HealthCheck()optional .google.cloud.compute.v1.HTTP2HealthCheck http2_health_check = 11360986;HTTP2HealthCheckOrBuildergetHttp2HealthCheckOrBuilder()optional .google.cloud.compute.v1.HTTP2HealthCheck http2_health_check = 11360986;HTTPHealthCheckgetHttpHealthCheck()optional .google.cloud.compute.v1.HTTPHealthCheck http_health_check = 412586940;HTTPHealthCheckOrBuildergetHttpHealthCheckOrBuilder()optional .google.cloud.compute.v1.HTTPHealthCheck http_health_check = 412586940;HTTPSHealthCheckgetHttpsHealthCheck()optional .google.cloud.compute.v1.HTTPSHealthCheck https_health_check = 436046905;HTTPSHealthCheckOrBuildergetHttpsHealthCheckOrBuilder()optional .google.cloud.compute.v1.HTTPSHealthCheck https_health_check = 436046905;longgetId()[Output Only] The unique identifier for the resource.StringgetKind()Type of the resource.com.google.protobuf.ByteStringgetKindBytes()Type of the resource.HealthCheckLogConfiggetLogConfig()Configure logging on this health check.HealthCheckLogConfigOrBuildergetLogConfigOrBuilder()Configure logging on this health check.StringgetName()Name of the resource.com.google.protobuf.ByteStringgetNameBytes()Name of the resource.com.google.protobuf.Parser<HealthCheck>getParserForType()StringgetRegion()[Output Only] Region where the health check resides.com.google.protobuf.ByteStringgetRegionBytes()[Output Only] Region where the health check resides.StringgetSelfLink()[Output Only] Server-defined URL for the resource.com.google.protobuf.ByteStringgetSelfLinkBytes()[Output Only] Server-defined URL for the resource.intgetSerializedSize()SSLHealthCheckgetSslHealthCheck()optional .google.cloud.compute.v1.SSLHealthCheck ssl_health_check = 280032440;SSLHealthCheckOrBuildergetSslHealthCheckOrBuilder()optional .google.cloud.compute.v1.SSLHealthCheck ssl_health_check = 280032440;TCPHealthCheckgetTcpHealthCheck()optional .google.cloud.compute.v1.TCPHealthCheck tcp_health_check = 469980419;TCPHealthCheckOrBuildergetTcpHealthCheckOrBuilder()optional .google.cloud.compute.v1.TCPHealthCheck tcp_health_check = 469980419;intgetTimeoutSec()How long (in seconds) to wait before claiming failure.StringgetType()Specifies the type of the healthCheck, either TCP, SSL, HTTP, HTTPS, HTTP2 or GRPC.com.google.protobuf.ByteStringgetTypeBytes()Specifies the type of the healthCheck, either TCP, SSL, HTTP, HTTPS, HTTP2 or GRPC.intgetUnhealthyThreshold()A so-far healthy instance will be marked unhealthy after this many consecutive failures.booleanhasCheckIntervalSec()How often (in seconds) to send a health check.booleanhasCreationTimestamp()[Output Only] Creation timestamp in 3339 text format.booleanhasDescription()An optional description of this resource.booleanhasGrpcHealthCheck()optional .google.cloud.compute.v1.GRPCHealthCheck grpc_health_check = 85529574;inthashCode()booleanhasHealthyThreshold()A so-far unhealthy instance will be marked healthy after this many consecutive successes.booleanhasHttp2HealthCheck()optional .google.cloud.compute.v1.HTTP2HealthCheck http2_health_check = 11360986;booleanhasHttpHealthCheck()optional .google.cloud.compute.v1.HTTPHealthCheck http_health_check = 412586940;booleanhasHttpsHealthCheck()optional .google.cloud.compute.v1.HTTPSHealthCheck https_health_check = 436046905;booleanhasId()[Output Only] The unique identifier for the resource.booleanhasKind()Type of the resource.booleanhasLogConfig()Configure logging on this health check.booleanhasName()Name of the resource.booleanhasRegion()[Output Only] Region where the health check resides.booleanhasSelfLink()[Output Only] Server-defined URL for the resource.booleanhasSslHealthCheck()optional .google.cloud.compute.v1.SSLHealthCheck ssl_health_check = 280032440;booleanhasTcpHealthCheck()optional .google.cloud.compute.v1.TCPHealthCheck tcp_health_check = 469980419;booleanhasTimeoutSec()How long (in seconds) to wait before claiming failure.booleanhasType()Specifies the type of the healthCheck, either TCP, SSL, HTTP, HTTPS, HTTP2 or GRPC.booleanhasUnhealthyThreshold()A so-far healthy instance will be marked unhealthy after this many consecutive failures.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static HealthCheck.BuildernewBuilder()static HealthCheck.BuildernewBuilder(HealthCheck prototype)HealthCheck.BuildernewBuilderForType()protected HealthCheck.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static HealthCheckparseDelimitedFrom(InputStream input)static HealthCheckparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static HealthCheckparseFrom(byte[] data)static HealthCheckparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static HealthCheckparseFrom(com.google.protobuf.ByteString data)static HealthCheckparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static HealthCheckparseFrom(com.google.protobuf.CodedInputStream input)static HealthCheckparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static HealthCheckparseFrom(InputStream input)static HealthCheckparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static HealthCheckparseFrom(ByteBuffer data)static HealthCheckparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<HealthCheck>parser()HealthCheck.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, 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, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
CHECK_INTERVAL_SEC_FIELD_NUMBER
public static final int CHECK_INTERVAL_SEC_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CREATION_TIMESTAMP_FIELD_NUMBER
public static final int CREATION_TIMESTAMP_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DESCRIPTION_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
GRPC_HEALTH_CHECK_FIELD_NUMBER
public static final int GRPC_HEALTH_CHECK_FIELD_NUMBER
- See Also:
- Constant Field Values
-
HEALTHY_THRESHOLD_FIELD_NUMBER
public static final int HEALTHY_THRESHOLD_FIELD_NUMBER
- See Also:
- Constant Field Values
-
HTTP2_HEALTH_CHECK_FIELD_NUMBER
public static final int HTTP2_HEALTH_CHECK_FIELD_NUMBER
- See Also:
- Constant Field Values
-
HTTP_HEALTH_CHECK_FIELD_NUMBER
public static final int HTTP_HEALTH_CHECK_FIELD_NUMBER
- See Also:
- Constant Field Values
-
HTTPS_HEALTH_CHECK_FIELD_NUMBER
public static final int HTTPS_HEALTH_CHECK_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ID_FIELD_NUMBER
public static final int ID_FIELD_NUMBER
- See Also:
- Constant Field Values
-
KIND_FIELD_NUMBER
public static final int KIND_FIELD_NUMBER
- See Also:
- Constant Field Values
-
LOG_CONFIG_FIELD_NUMBER
public static final int LOG_CONFIG_FIELD_NUMBER
- See Also:
- Constant Field Values
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
REGION_FIELD_NUMBER
public static final int REGION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SELF_LINK_FIELD_NUMBER
public static final int SELF_LINK_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SSL_HEALTH_CHECK_FIELD_NUMBER
public static final int SSL_HEALTH_CHECK_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TCP_HEALTH_CHECK_FIELD_NUMBER
public static final int TCP_HEALTH_CHECK_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TIMEOUT_SEC_FIELD_NUMBER
public static final int TIMEOUT_SEC_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TYPE_FIELD_NUMBER
public static final int TYPE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
UNHEALTHY_THRESHOLD_FIELD_NUMBER
public static final int UNHEALTHY_THRESHOLD_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
hasCheckIntervalSec
public boolean hasCheckIntervalSec()
How often (in seconds) to send a health check. The default value is 5 seconds.
optional int32 check_interval_sec = 345561006;- Specified by:
hasCheckIntervalSecin interfaceHealthCheckOrBuilder- Returns:
- Whether the checkIntervalSec field is set.
-
getCheckIntervalSec
public int getCheckIntervalSec()
How often (in seconds) to send a health check. The default value is 5 seconds.
optional int32 check_interval_sec = 345561006;- Specified by:
getCheckIntervalSecin interfaceHealthCheckOrBuilder- Returns:
- The checkIntervalSec.
-
hasCreationTimestamp
public boolean hasCreationTimestamp()
[Output Only] Creation timestamp in 3339 text format.
optional string creation_timestamp = 30525366;- Specified by:
hasCreationTimestampin interfaceHealthCheckOrBuilder- Returns:
- Whether the creationTimestamp field is set.
-
getCreationTimestamp
public String getCreationTimestamp()
[Output Only] Creation timestamp in 3339 text format.
optional string creation_timestamp = 30525366;- Specified by:
getCreationTimestampin interfaceHealthCheckOrBuilder- Returns:
- The creationTimestamp.
-
getCreationTimestampBytes
public com.google.protobuf.ByteString getCreationTimestampBytes()
[Output Only] Creation timestamp in 3339 text format.
optional string creation_timestamp = 30525366;- Specified by:
getCreationTimestampBytesin interfaceHealthCheckOrBuilder- Returns:
- The bytes for creationTimestamp.
-
hasDescription
public boolean hasDescription()
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;- Specified by:
hasDescriptionin interfaceHealthCheckOrBuilder- Returns:
- Whether the description field is set.
-
getDescription
public String getDescription()
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;- Specified by:
getDescriptionin interfaceHealthCheckOrBuilder- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;- Specified by:
getDescriptionBytesin interfaceHealthCheckOrBuilder- Returns:
- The bytes for description.
-
hasGrpcHealthCheck
public boolean hasGrpcHealthCheck()
optional .google.cloud.compute.v1.GRPCHealthCheck grpc_health_check = 85529574;- Specified by:
hasGrpcHealthCheckin interfaceHealthCheckOrBuilder- Returns:
- Whether the grpcHealthCheck field is set.
-
getGrpcHealthCheck
public GRPCHealthCheck getGrpcHealthCheck()
optional .google.cloud.compute.v1.GRPCHealthCheck grpc_health_check = 85529574;- Specified by:
getGrpcHealthCheckin interfaceHealthCheckOrBuilder- Returns:
- The grpcHealthCheck.
-
getGrpcHealthCheckOrBuilder
public GRPCHealthCheckOrBuilder getGrpcHealthCheckOrBuilder()
optional .google.cloud.compute.v1.GRPCHealthCheck grpc_health_check = 85529574;- Specified by:
getGrpcHealthCheckOrBuilderin interfaceHealthCheckOrBuilder
-
hasHealthyThreshold
public 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;- Specified by:
hasHealthyThresholdin interfaceHealthCheckOrBuilder- Returns:
- Whether the healthyThreshold field is set.
-
getHealthyThreshold
public 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;- Specified by:
getHealthyThresholdin interfaceHealthCheckOrBuilder- Returns:
- The healthyThreshold.
-
hasHttp2HealthCheck
public boolean hasHttp2HealthCheck()
optional .google.cloud.compute.v1.HTTP2HealthCheck http2_health_check = 11360986;- Specified by:
hasHttp2HealthCheckin interfaceHealthCheckOrBuilder- Returns:
- Whether the http2HealthCheck field is set.
-
getHttp2HealthCheck
public HTTP2HealthCheck getHttp2HealthCheck()
optional .google.cloud.compute.v1.HTTP2HealthCheck http2_health_check = 11360986;- Specified by:
getHttp2HealthCheckin interfaceHealthCheckOrBuilder- Returns:
- The http2HealthCheck.
-
getHttp2HealthCheckOrBuilder
public HTTP2HealthCheckOrBuilder getHttp2HealthCheckOrBuilder()
optional .google.cloud.compute.v1.HTTP2HealthCheck http2_health_check = 11360986;- Specified by:
getHttp2HealthCheckOrBuilderin interfaceHealthCheckOrBuilder
-
hasHttpHealthCheck
public boolean hasHttpHealthCheck()
optional .google.cloud.compute.v1.HTTPHealthCheck http_health_check = 412586940;- Specified by:
hasHttpHealthCheckin interfaceHealthCheckOrBuilder- Returns:
- Whether the httpHealthCheck field is set.
-
getHttpHealthCheck
public HTTPHealthCheck getHttpHealthCheck()
optional .google.cloud.compute.v1.HTTPHealthCheck http_health_check = 412586940;- Specified by:
getHttpHealthCheckin interfaceHealthCheckOrBuilder- Returns:
- The httpHealthCheck.
-
getHttpHealthCheckOrBuilder
public HTTPHealthCheckOrBuilder getHttpHealthCheckOrBuilder()
optional .google.cloud.compute.v1.HTTPHealthCheck http_health_check = 412586940;- Specified by:
getHttpHealthCheckOrBuilderin interfaceHealthCheckOrBuilder
-
hasHttpsHealthCheck
public boolean hasHttpsHealthCheck()
optional .google.cloud.compute.v1.HTTPSHealthCheck https_health_check = 436046905;- Specified by:
hasHttpsHealthCheckin interfaceHealthCheckOrBuilder- Returns:
- Whether the httpsHealthCheck field is set.
-
getHttpsHealthCheck
public HTTPSHealthCheck getHttpsHealthCheck()
optional .google.cloud.compute.v1.HTTPSHealthCheck https_health_check = 436046905;- Specified by:
getHttpsHealthCheckin interfaceHealthCheckOrBuilder- Returns:
- The httpsHealthCheck.
-
getHttpsHealthCheckOrBuilder
public HTTPSHealthCheckOrBuilder getHttpsHealthCheckOrBuilder()
optional .google.cloud.compute.v1.HTTPSHealthCheck https_health_check = 436046905;- Specified by:
getHttpsHealthCheckOrBuilderin interfaceHealthCheckOrBuilder
-
hasId
public boolean hasId()
[Output Only] The unique identifier for the resource. This identifier is defined by the server.
optional uint64 id = 3355;- Specified by:
hasIdin interfaceHealthCheckOrBuilder- Returns:
- Whether the id field is set.
-
getId
public long getId()
[Output Only] The unique identifier for the resource. This identifier is defined by the server.
optional uint64 id = 3355;- Specified by:
getIdin interfaceHealthCheckOrBuilder- Returns:
- The id.
-
hasKind
public boolean hasKind()
Type of the resource.
optional string kind = 3292052;- Specified by:
hasKindin interfaceHealthCheckOrBuilder- Returns:
- Whether the kind field is set.
-
getKind
public String getKind()
Type of the resource.
optional string kind = 3292052;- Specified by:
getKindin interfaceHealthCheckOrBuilder- Returns:
- The kind.
-
getKindBytes
public com.google.protobuf.ByteString getKindBytes()
Type of the resource.
optional string kind = 3292052;- Specified by:
getKindBytesin interfaceHealthCheckOrBuilder- Returns:
- The bytes for kind.
-
hasLogConfig
public boolean hasLogConfig()
Configure logging on this health check.
optional .google.cloud.compute.v1.HealthCheckLogConfig log_config = 351299741;- Specified by:
hasLogConfigin interfaceHealthCheckOrBuilder- Returns:
- Whether the logConfig field is set.
-
getLogConfig
public HealthCheckLogConfig getLogConfig()
Configure logging on this health check.
optional .google.cloud.compute.v1.HealthCheckLogConfig log_config = 351299741;- Specified by:
getLogConfigin interfaceHealthCheckOrBuilder- Returns:
- The logConfig.
-
getLogConfigOrBuilder
public HealthCheckLogConfigOrBuilder getLogConfigOrBuilder()
Configure logging on this health check.
optional .google.cloud.compute.v1.HealthCheckLogConfig log_config = 351299741;- Specified by:
getLogConfigOrBuilderin interfaceHealthCheckOrBuilder
-
hasName
public 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;- Specified by:
hasNamein interfaceHealthCheckOrBuilder- Returns:
- Whether the name field is set.
-
getName
public 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;- Specified by:
getNamein interfaceHealthCheckOrBuilder- Returns:
- The name.
-
getNameBytes
public 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;- Specified by:
getNameBytesin interfaceHealthCheckOrBuilder- Returns:
- The bytes for name.
-
hasRegion
public boolean hasRegion()
[Output Only] Region where the health check resides. Not applicable to global health checks.
optional string region = 138946292;- Specified by:
hasRegionin interfaceHealthCheckOrBuilder- Returns:
- Whether the region field is set.
-
getRegion
public String getRegion()
[Output Only] Region where the health check resides. Not applicable to global health checks.
optional string region = 138946292;- Specified by:
getRegionin interfaceHealthCheckOrBuilder- Returns:
- The region.
-
getRegionBytes
public com.google.protobuf.ByteString getRegionBytes()
[Output Only] Region where the health check resides. Not applicable to global health checks.
optional string region = 138946292;- Specified by:
getRegionBytesin interfaceHealthCheckOrBuilder- Returns:
- The bytes for region.
-
hasSelfLink
public boolean hasSelfLink()
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;- Specified by:
hasSelfLinkin interfaceHealthCheckOrBuilder- Returns:
- Whether the selfLink field is set.
-
getSelfLink
public String getSelfLink()
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;- Specified by:
getSelfLinkin interfaceHealthCheckOrBuilder- Returns:
- The selfLink.
-
getSelfLinkBytes
public com.google.protobuf.ByteString getSelfLinkBytes()
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;- Specified by:
getSelfLinkBytesin interfaceHealthCheckOrBuilder- Returns:
- The bytes for selfLink.
-
hasSslHealthCheck
public boolean hasSslHealthCheck()
optional .google.cloud.compute.v1.SSLHealthCheck ssl_health_check = 280032440;- Specified by:
hasSslHealthCheckin interfaceHealthCheckOrBuilder- Returns:
- Whether the sslHealthCheck field is set.
-
getSslHealthCheck
public SSLHealthCheck getSslHealthCheck()
optional .google.cloud.compute.v1.SSLHealthCheck ssl_health_check = 280032440;- Specified by:
getSslHealthCheckin interfaceHealthCheckOrBuilder- Returns:
- The sslHealthCheck.
-
getSslHealthCheckOrBuilder
public SSLHealthCheckOrBuilder getSslHealthCheckOrBuilder()
optional .google.cloud.compute.v1.SSLHealthCheck ssl_health_check = 280032440;- Specified by:
getSslHealthCheckOrBuilderin interfaceHealthCheckOrBuilder
-
hasTcpHealthCheck
public boolean hasTcpHealthCheck()
optional .google.cloud.compute.v1.TCPHealthCheck tcp_health_check = 469980419;- Specified by:
hasTcpHealthCheckin interfaceHealthCheckOrBuilder- Returns:
- Whether the tcpHealthCheck field is set.
-
getTcpHealthCheck
public TCPHealthCheck getTcpHealthCheck()
optional .google.cloud.compute.v1.TCPHealthCheck tcp_health_check = 469980419;- Specified by:
getTcpHealthCheckin interfaceHealthCheckOrBuilder- Returns:
- The tcpHealthCheck.
-
getTcpHealthCheckOrBuilder
public TCPHealthCheckOrBuilder getTcpHealthCheckOrBuilder()
optional .google.cloud.compute.v1.TCPHealthCheck tcp_health_check = 469980419;- Specified by:
getTcpHealthCheckOrBuilderin interfaceHealthCheckOrBuilder
-
hasTimeoutSec
public 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;- Specified by:
hasTimeoutSecin interfaceHealthCheckOrBuilder- Returns:
- Whether the timeoutSec field is set.
-
getTimeoutSec
public 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;- Specified by:
getTimeoutSecin interfaceHealthCheckOrBuilder- Returns:
- The timeoutSec.
-
hasType
public 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;- Specified by:
hasTypein interfaceHealthCheckOrBuilder- Returns:
- Whether the type field is set.
-
getType
public 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;- Specified by:
getTypein interfaceHealthCheckOrBuilder- Returns:
- The type.
-
getTypeBytes
public 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;- Specified by:
getTypeBytesin interfaceHealthCheckOrBuilder- Returns:
- The bytes for type.
-
hasUnhealthyThreshold
public 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;- Specified by:
hasUnhealthyThresholdin interfaceHealthCheckOrBuilder- Returns:
- Whether the unhealthyThreshold field is set.
-
getUnhealthyThreshold
public 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;- Specified by:
getUnhealthyThresholdin interfaceHealthCheckOrBuilder- Returns:
- The unhealthyThreshold.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static HealthCheck parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static HealthCheck parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static HealthCheck parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static HealthCheck parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static HealthCheck parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static HealthCheck parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static HealthCheck parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static HealthCheck parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static HealthCheck parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static HealthCheck parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static HealthCheck parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static HealthCheck parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public HealthCheck.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static HealthCheck.Builder newBuilder()
-
newBuilder
public static HealthCheck.Builder newBuilder(HealthCheck prototype)
-
toBuilder
public HealthCheck.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected HealthCheck.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static HealthCheck getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<HealthCheck> parser()
-
getParserForType
public com.google.protobuf.Parser<HealthCheck> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public HealthCheck getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-