Package com.google.cloud.compute.v1
Class HealthCheck.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<HealthCheck.Builder>
com.google.cloud.compute.v1.HealthCheck.Builder
- All Implemented Interfaces:
HealthCheckOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- HealthCheck
public static final class HealthCheck.Builder
extends com.google.protobuf.GeneratedMessage.Builder<HealthCheck.Builder>
implements HealthCheckOrBuilder
Represents a health check resource. Google Compute Engine has two health check resources: * [Regional](/compute/docs/reference/rest/v1/regionHealthChecks) * [Global](/compute/docs/reference/rest/v1/healthChecks) These health check resources can be used for load balancing and for autohealing VMs in a managed instance group (MIG). **Load balancing** Health check requirements vary depending on the type of load balancer. For details about the type of health check supported for each load balancer and corresponding backend type, see Health checks overview: Load balancer guide. **Autohealing in MIGs** The health checks that you use for autohealing VMs in a MIG can be either regional or global. For more information, see Set up an application health check and autohealing. For more information, seeHealth checks overview.Protobuf type
google.cloud.compute.v1.HealthCheck-
Method Summary
Modifier and TypeMethodDescriptionaddAllSourceRegions(Iterable<String> values) The list of cloud regions from which health checks are performed.addSourceRegions(String value) The list of cloud regions from which health checks are performed.addSourceRegionsBytes(com.google.protobuf.ByteString value) The list of cloud regions from which health checks are performed.build()clear()How often (in seconds) to send a health check.Output only.An optional description of this resource.optional .google.cloud.compute.v1.GRPCHealthCheck grpc_health_check = 85529574;optional .google.cloud.compute.v1.GRPCTLSHealthCheck grpc_tls_health_check = 267273258;A so-far unhealthy instance will be marked healthy after this many consecutive successes.optional .google.cloud.compute.v1.HTTP2HealthCheck http2_health_check = 11360986;optional .google.cloud.compute.v1.HTTPHealthCheck http_health_check = 412586940;optional .google.cloud.compute.v1.HTTPSHealthCheck https_health_check = 436046905;clearId()[Output Only] The unique identifier for the resource.Output only.Configure logging on this health check.Name of the resource.Output only.[Output Only] Server-defined URL for the resource.The list of cloud regions from which health checks are performed.optional .google.cloud.compute.v1.SSLHealthCheck ssl_health_check = 280032440;optional .google.cloud.compute.v1.TCPHealthCheck tcp_health_check = 469980419;How long (in seconds) to wait before claiming failure.Specifies the type of the healthCheck, either TCP,SSL, HTTP, HTTPS,HTTP2 or GRPC.A so-far healthy instance will be marked unhealthy after this many consecutive failures.intHow often (in seconds) to send a health check.Output only.com.google.protobuf.ByteStringOutput only.An optional description of this resource.com.google.protobuf.ByteStringAn optional description of this resource.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptoroptional .google.cloud.compute.v1.GRPCHealthCheck grpc_health_check = 85529574;optional .google.cloud.compute.v1.GRPCHealthCheck grpc_health_check = 85529574;optional .google.cloud.compute.v1.GRPCHealthCheck grpc_health_check = 85529574;optional .google.cloud.compute.v1.GRPCTLSHealthCheck grpc_tls_health_check = 267273258;optional .google.cloud.compute.v1.GRPCTLSHealthCheck grpc_tls_health_check = 267273258;optional .google.cloud.compute.v1.GRPCTLSHealthCheck grpc_tls_health_check = 267273258;intA so-far unhealthy instance will be marked healthy after this many consecutive successes.optional .google.cloud.compute.v1.HTTP2HealthCheck http2_health_check = 11360986;optional .google.cloud.compute.v1.HTTP2HealthCheck http2_health_check = 11360986;optional .google.cloud.compute.v1.HTTP2HealthCheck http2_health_check = 11360986;optional .google.cloud.compute.v1.HTTPHealthCheck http_health_check = 412586940;optional .google.cloud.compute.v1.HTTPHealthCheck http_health_check = 412586940;optional .google.cloud.compute.v1.HTTPHealthCheck http_health_check = 412586940;optional .google.cloud.compute.v1.HTTPSHealthCheck https_health_check = 436046905;optional .google.cloud.compute.v1.HTTPSHealthCheck https_health_check = 436046905;optional .google.cloud.compute.v1.HTTPSHealthCheck https_health_check = 436046905;longgetId()[Output Only] The unique identifier for the resource.getKind()Output only.com.google.protobuf.ByteStringOutput only.Configure logging on this health check.Configure logging on this health check.Configure logging on this health check.getName()Name of the resource.com.google.protobuf.ByteStringName of the resource.Output only.com.google.protobuf.ByteStringOutput only.[Output Only] Server-defined URL for the resource.com.google.protobuf.ByteString[Output Only] Server-defined URL for the resource.getSourceRegions(int index) The list of cloud regions from which health checks are performed.com.google.protobuf.ByteStringgetSourceRegionsBytes(int index) The list of cloud regions from which health checks are performed.intThe list of cloud regions from which health checks are performed.com.google.protobuf.ProtocolStringListThe list of cloud regions from which health checks are performed.optional .google.cloud.compute.v1.SSLHealthCheck ssl_health_check = 280032440;optional .google.cloud.compute.v1.SSLHealthCheck ssl_health_check = 280032440;optional .google.cloud.compute.v1.SSLHealthCheck ssl_health_check = 280032440;optional .google.cloud.compute.v1.TCPHealthCheck tcp_health_check = 469980419;optional .google.cloud.compute.v1.TCPHealthCheck tcp_health_check = 469980419;optional .google.cloud.compute.v1.TCPHealthCheck tcp_health_check = 469980419;intHow long (in seconds) to wait before claiming failure.getType()Specifies the type of the healthCheck, either TCP,SSL, HTTP, HTTPS,HTTP2 or GRPC.com.google.protobuf.ByteStringSpecifies the type of the healthCheck, either TCP,SSL, HTTP, HTTPS,HTTP2 or GRPC.intA so-far healthy instance will be marked unhealthy after this many consecutive failures.booleanHow often (in seconds) to send a health check.booleanOutput only.booleanAn optional description of this resource.booleanoptional .google.cloud.compute.v1.GRPCHealthCheck grpc_health_check = 85529574;booleanoptional .google.cloud.compute.v1.GRPCTLSHealthCheck grpc_tls_health_check = 267273258;booleanA so-far unhealthy instance will be marked healthy after this many consecutive successes.booleanoptional .google.cloud.compute.v1.HTTP2HealthCheck http2_health_check = 11360986;booleanoptional .google.cloud.compute.v1.HTTPHealthCheck http_health_check = 412586940;booleanoptional .google.cloud.compute.v1.HTTPSHealthCheck https_health_check = 436046905;booleanhasId()[Output Only] The unique identifier for the resource.booleanhasKind()Output only.booleanConfigure logging on this health check.booleanhasName()Name of the resource.booleanOutput only.boolean[Output Only] Server-defined URL for the resource.booleanoptional .google.cloud.compute.v1.SSLHealthCheck ssl_health_check = 280032440;booleanoptional .google.cloud.compute.v1.TCPHealthCheck tcp_health_check = 469980419;booleanHow long (in seconds) to wait before claiming failure.booleanhasType()Specifies the type of the healthCheck, either TCP,SSL, HTTP, HTTPS,HTTP2 or GRPC.booleanA so-far healthy instance will be marked unhealthy after this many consecutive failures.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(HealthCheck other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) optional .google.cloud.compute.v1.GRPCHealthCheck grpc_health_check = 85529574;optional .google.cloud.compute.v1.GRPCTLSHealthCheck grpc_tls_health_check = 267273258;optional .google.cloud.compute.v1.HTTP2HealthCheck http2_health_check = 11360986;optional .google.cloud.compute.v1.HTTPHealthCheck http_health_check = 412586940;optional .google.cloud.compute.v1.HTTPSHealthCheck https_health_check = 436046905;Configure logging on this health check.optional .google.cloud.compute.v1.SSLHealthCheck ssl_health_check = 280032440;optional .google.cloud.compute.v1.TCPHealthCheck tcp_health_check = 469980419;setCheckIntervalSec(int value) How often (in seconds) to send a health check.setCreationTimestamp(String value) Output only.setCreationTimestampBytes(com.google.protobuf.ByteString value) Output only.setDescription(String value) An optional description of this resource.setDescriptionBytes(com.google.protobuf.ByteString value) An optional description of this resource.optional .google.cloud.compute.v1.GRPCHealthCheck grpc_health_check = 85529574;setGrpcHealthCheck(GRPCHealthCheck.Builder builderForValue) optional .google.cloud.compute.v1.GRPCHealthCheck grpc_health_check = 85529574;optional .google.cloud.compute.v1.GRPCTLSHealthCheck grpc_tls_health_check = 267273258;setGrpcTlsHealthCheck(GRPCTLSHealthCheck.Builder builderForValue) optional .google.cloud.compute.v1.GRPCTLSHealthCheck grpc_tls_health_check = 267273258;setHealthyThreshold(int value) A so-far unhealthy instance will be marked healthy after this many consecutive successes.optional .google.cloud.compute.v1.HTTP2HealthCheck http2_health_check = 11360986;setHttp2HealthCheck(HTTP2HealthCheck.Builder builderForValue) optional .google.cloud.compute.v1.HTTP2HealthCheck http2_health_check = 11360986;optional .google.cloud.compute.v1.HTTPHealthCheck http_health_check = 412586940;setHttpHealthCheck(HTTPHealthCheck.Builder builderForValue) optional .google.cloud.compute.v1.HTTPHealthCheck http_health_check = 412586940;optional .google.cloud.compute.v1.HTTPSHealthCheck https_health_check = 436046905;setHttpsHealthCheck(HTTPSHealthCheck.Builder builderForValue) optional .google.cloud.compute.v1.HTTPSHealthCheck https_health_check = 436046905;setId(long value) [Output Only] The unique identifier for the resource.Output only.setKindBytes(com.google.protobuf.ByteString value) Output only.setLogConfig(HealthCheckLogConfig value) Configure logging on this health check.setLogConfig(HealthCheckLogConfig.Builder builderForValue) Configure logging on this health check.Name of the resource.setNameBytes(com.google.protobuf.ByteString value) Name of the resource.Output only.setRegionBytes(com.google.protobuf.ByteString value) Output only.setSelfLink(String value) [Output Only] Server-defined URL for the resource.setSelfLinkBytes(com.google.protobuf.ByteString value) [Output Only] Server-defined URL for the resource.setSourceRegions(int index, String value) The list of cloud regions from which health checks are performed.setSslHealthCheck(SSLHealthCheck value) optional .google.cloud.compute.v1.SSLHealthCheck ssl_health_check = 280032440;setSslHealthCheck(SSLHealthCheck.Builder builderForValue) optional .google.cloud.compute.v1.SSLHealthCheck ssl_health_check = 280032440;setTcpHealthCheck(TCPHealthCheck value) optional .google.cloud.compute.v1.TCPHealthCheck tcp_health_check = 469980419;setTcpHealthCheck(TCPHealthCheck.Builder builderForValue) optional .google.cloud.compute.v1.TCPHealthCheck tcp_health_check = 469980419;setTimeoutSec(int value) How long (in seconds) to wait before claiming failure.Specifies the type of the healthCheck, either TCP,SSL, HTTP, HTTPS,HTTP2 or GRPC.setTypeBytes(com.google.protobuf.ByteString value) Specifies the type of the healthCheck, either TCP,SSL, HTTP, HTTPS,HTTP2 or GRPC.setUnhealthyThreshold(int value) A so-far healthy instance will be marked unhealthy after this many consecutive failures.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<HealthCheck.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<HealthCheck.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<HealthCheck.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<HealthCheck.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<HealthCheck.Builder>
-
mergeFrom
public HealthCheck.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<HealthCheck.Builder>- Throws:
IOException
-
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.
-
setCheckIntervalSec
How often (in seconds) to send a health check. The default value is 5 seconds.
optional int32 check_interval_sec = 345561006;- Parameters:
value- The checkIntervalSec to set.- Returns:
- This builder for chaining.
-
clearCheckIntervalSec
How often (in seconds) to send a health check. The default value is 5 seconds.
optional int32 check_interval_sec = 345561006;- Returns:
- This builder for chaining.
-
hasCreationTimestamp
public boolean hasCreationTimestamp()Output only. [Output Only] Creation timestamp in3339 text format.
optional string creation_timestamp = 30525366;- Specified by:
hasCreationTimestampin interfaceHealthCheckOrBuilder- Returns:
- Whether the creationTimestamp field is set.
-
getCreationTimestamp
Output only. [Output Only] Creation timestamp in3339 text format.
optional string creation_timestamp = 30525366;- Specified by:
getCreationTimestampin interfaceHealthCheckOrBuilder- Returns:
- The creationTimestamp.
-
getCreationTimestampBytes
public com.google.protobuf.ByteString getCreationTimestampBytes()Output only. [Output Only] Creation timestamp in3339 text format.
optional string creation_timestamp = 30525366;- Specified by:
getCreationTimestampBytesin interfaceHealthCheckOrBuilder- Returns:
- The bytes for creationTimestamp.
-
setCreationTimestamp
Output only. [Output Only] Creation timestamp in3339 text format.
optional string creation_timestamp = 30525366;- Parameters:
value- The creationTimestamp to set.- Returns:
- This builder for chaining.
-
clearCreationTimestamp
Output only. [Output Only] Creation timestamp in3339 text format.
optional string creation_timestamp = 30525366;- Returns:
- This builder for chaining.
-
setCreationTimestampBytes
Output only. [Output Only] Creation timestamp in3339 text format.
optional string creation_timestamp = 30525366;- Parameters:
value- The bytes for creationTimestamp to set.- Returns:
- This builder for chaining.
-
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
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.
-
setDescription
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;- Parameters:
value- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;- Returns:
- This builder for chaining.
-
setDescriptionBytes
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;- Parameters:
value- The bytes for description to set.- Returns:
- This builder for chaining.
-
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
optional .google.cloud.compute.v1.GRPCHealthCheck grpc_health_check = 85529574;- Specified by:
getGrpcHealthCheckin interfaceHealthCheckOrBuilder- Returns:
- The grpcHealthCheck.
-
setGrpcHealthCheck
optional .google.cloud.compute.v1.GRPCHealthCheck grpc_health_check = 85529574; -
setGrpcHealthCheck
optional .google.cloud.compute.v1.GRPCHealthCheck grpc_health_check = 85529574; -
mergeGrpcHealthCheck
optional .google.cloud.compute.v1.GRPCHealthCheck grpc_health_check = 85529574; -
clearGrpcHealthCheck
optional .google.cloud.compute.v1.GRPCHealthCheck grpc_health_check = 85529574; -
getGrpcHealthCheckBuilder
optional .google.cloud.compute.v1.GRPCHealthCheck grpc_health_check = 85529574; -
getGrpcHealthCheckOrBuilder
optional .google.cloud.compute.v1.GRPCHealthCheck grpc_health_check = 85529574;- Specified by:
getGrpcHealthCheckOrBuilderin interfaceHealthCheckOrBuilder
-
hasGrpcTlsHealthCheck
public boolean hasGrpcTlsHealthCheck()optional .google.cloud.compute.v1.GRPCTLSHealthCheck grpc_tls_health_check = 267273258;- Specified by:
hasGrpcTlsHealthCheckin interfaceHealthCheckOrBuilder- Returns:
- Whether the grpcTlsHealthCheck field is set.
-
getGrpcTlsHealthCheck
optional .google.cloud.compute.v1.GRPCTLSHealthCheck grpc_tls_health_check = 267273258;- Specified by:
getGrpcTlsHealthCheckin interfaceHealthCheckOrBuilder- Returns:
- The grpcTlsHealthCheck.
-
setGrpcTlsHealthCheck
optional .google.cloud.compute.v1.GRPCTLSHealthCheck grpc_tls_health_check = 267273258; -
setGrpcTlsHealthCheck
optional .google.cloud.compute.v1.GRPCTLSHealthCheck grpc_tls_health_check = 267273258; -
mergeGrpcTlsHealthCheck
optional .google.cloud.compute.v1.GRPCTLSHealthCheck grpc_tls_health_check = 267273258; -
clearGrpcTlsHealthCheck
optional .google.cloud.compute.v1.GRPCTLSHealthCheck grpc_tls_health_check = 267273258; -
getGrpcTlsHealthCheckBuilder
optional .google.cloud.compute.v1.GRPCTLSHealthCheck grpc_tls_health_check = 267273258; -
getGrpcTlsHealthCheckOrBuilder
optional .google.cloud.compute.v1.GRPCTLSHealthCheck grpc_tls_health_check = 267273258;- Specified by:
getGrpcTlsHealthCheckOrBuilderin 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.
-
setHealthyThreshold
A so-far unhealthy instance will be marked healthy after this many consecutive successes. The default value is 2.
optional int32 healthy_threshold = 403212361;- Parameters:
value- The healthyThreshold to set.- Returns:
- This builder for chaining.
-
clearHealthyThreshold
A so-far unhealthy instance will be marked healthy after this many consecutive successes. The default value is 2.
optional int32 healthy_threshold = 403212361;- Returns:
- This builder for chaining.
-
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
optional .google.cloud.compute.v1.HTTP2HealthCheck http2_health_check = 11360986;- Specified by:
getHttp2HealthCheckin interfaceHealthCheckOrBuilder- Returns:
- The http2HealthCheck.
-
setHttp2HealthCheck
optional .google.cloud.compute.v1.HTTP2HealthCheck http2_health_check = 11360986; -
setHttp2HealthCheck
optional .google.cloud.compute.v1.HTTP2HealthCheck http2_health_check = 11360986; -
mergeHttp2HealthCheck
optional .google.cloud.compute.v1.HTTP2HealthCheck http2_health_check = 11360986; -
clearHttp2HealthCheck
optional .google.cloud.compute.v1.HTTP2HealthCheck http2_health_check = 11360986; -
getHttp2HealthCheckBuilder
optional .google.cloud.compute.v1.HTTP2HealthCheck http2_health_check = 11360986; -
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
optional .google.cloud.compute.v1.HTTPHealthCheck http_health_check = 412586940;- Specified by:
getHttpHealthCheckin interfaceHealthCheckOrBuilder- Returns:
- The httpHealthCheck.
-
setHttpHealthCheck
optional .google.cloud.compute.v1.HTTPHealthCheck http_health_check = 412586940; -
setHttpHealthCheck
optional .google.cloud.compute.v1.HTTPHealthCheck http_health_check = 412586940; -
mergeHttpHealthCheck
optional .google.cloud.compute.v1.HTTPHealthCheck http_health_check = 412586940; -
clearHttpHealthCheck
optional .google.cloud.compute.v1.HTTPHealthCheck http_health_check = 412586940; -
getHttpHealthCheckBuilder
optional .google.cloud.compute.v1.HTTPHealthCheck http_health_check = 412586940; -
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
optional .google.cloud.compute.v1.HTTPSHealthCheck https_health_check = 436046905;- Specified by:
getHttpsHealthCheckin interfaceHealthCheckOrBuilder- Returns:
- The httpsHealthCheck.
-
setHttpsHealthCheck
optional .google.cloud.compute.v1.HTTPSHealthCheck https_health_check = 436046905; -
setHttpsHealthCheck
optional .google.cloud.compute.v1.HTTPSHealthCheck https_health_check = 436046905; -
mergeHttpsHealthCheck
optional .google.cloud.compute.v1.HTTPSHealthCheck https_health_check = 436046905; -
clearHttpsHealthCheck
optional .google.cloud.compute.v1.HTTPSHealthCheck https_health_check = 436046905; -
getHttpsHealthCheckBuilder
optional .google.cloud.compute.v1.HTTPSHealthCheck https_health_check = 436046905; -
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.
-
setId
[Output Only] The unique identifier for the resource. This identifier is defined by the server.
optional uint64 id = 3355;- Parameters:
value- The id to set.- Returns:
- This builder for chaining.
-
clearId
[Output Only] The unique identifier for the resource. This identifier is defined by the server.
optional uint64 id = 3355;- Returns:
- This builder for chaining.
-
hasKind
public boolean hasKind()Output only. Type of the resource.
optional string kind = 3292052;- Specified by:
hasKindin interfaceHealthCheckOrBuilder- Returns:
- Whether the kind field is set.
-
getKind
Output only. Type of the resource.
optional string kind = 3292052;- Specified by:
getKindin interfaceHealthCheckOrBuilder- Returns:
- The kind.
-
getKindBytes
public com.google.protobuf.ByteString getKindBytes()Output only. Type of the resource.
optional string kind = 3292052;- Specified by:
getKindBytesin interfaceHealthCheckOrBuilder- Returns:
- The bytes for kind.
-
setKind
Output only. Type of the resource.
optional string kind = 3292052;- Parameters:
value- The kind to set.- Returns:
- This builder for chaining.
-
clearKind
Output only. Type of the resource.
optional string kind = 3292052;- Returns:
- This builder for chaining.
-
setKindBytes
Output only. Type of the resource.
optional string kind = 3292052;- Parameters:
value- The bytes for kind to set.- Returns:
- This builder for chaining.
-
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
Configure logging on this health check.
optional .google.cloud.compute.v1.HealthCheckLogConfig log_config = 351299741;- Specified by:
getLogConfigin interfaceHealthCheckOrBuilder- Returns:
- The logConfig.
-
setLogConfig
Configure logging on this health check.
optional .google.cloud.compute.v1.HealthCheckLogConfig log_config = 351299741; -
setLogConfig
Configure logging on this health check.
optional .google.cloud.compute.v1.HealthCheckLogConfig log_config = 351299741; -
mergeLogConfig
Configure logging on this health check.
optional .google.cloud.compute.v1.HealthCheckLogConfig log_config = 351299741; -
clearLogConfig
Configure logging on this health check.
optional .google.cloud.compute.v1.HealthCheckLogConfig log_config = 351299741; -
getLogConfigBuilder
Configure logging on this health check.
optional .google.cloud.compute.v1.HealthCheckLogConfig log_config = 351299741; -
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 withRFC1035. 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
Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply withRFC1035. 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 withRFC1035. 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.
-
setName
Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply withRFC1035. 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;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply withRFC1035. 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;- Returns:
- This builder for chaining.
-
setNameBytes
Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply withRFC1035. 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;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
hasRegion
public boolean hasRegion()Output only. [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
Output only. [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. [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.
-
setRegion
Output only. [Output Only] Region where the health check resides. Not applicable to global health checks.
optional string region = 138946292;- Parameters:
value- The region to set.- Returns:
- This builder for chaining.
-
clearRegion
Output only. [Output Only] Region where the health check resides. Not applicable to global health checks.
optional string region = 138946292;- Returns:
- This builder for chaining.
-
setRegionBytes
Output only. [Output Only] Region where the health check resides. Not applicable to global health checks.
optional string region = 138946292;- Parameters:
value- The bytes for region to set.- Returns:
- This builder for chaining.
-
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
[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.
-
setSelfLink
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;- Parameters:
value- The selfLink to set.- Returns:
- This builder for chaining.
-
clearSelfLink
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;- Returns:
- This builder for chaining.
-
setSelfLinkBytes
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;- Parameters:
value- The bytes for selfLink to set.- Returns:
- This builder for chaining.
-
getSourceRegionsList
public com.google.protobuf.ProtocolStringList getSourceRegionsList()The list of cloud regions from which health checks are performed. If any regions are specified, then exactly 3 regions should be specified. The region names must be valid names of Google Cloud regions. This can only be set for global health check. If this list is non-empty, then there are restrictions on what other health check fields are supported and what other resources can use this health check: - SSL, HTTP2, and GRPC protocols are not supported. - The TCP request field is not supported. - The proxyHeader field for HTTP, HTTPS, and TCP is not supported. - The checkIntervalSec field must be at least 30. - The health check cannot be used with BackendService nor with managed instance group auto-healing.
repeated string source_regions = 405568475;- Specified by:
getSourceRegionsListin interfaceHealthCheckOrBuilder- Returns:
- A list containing the sourceRegions.
-
getSourceRegionsCount
public int getSourceRegionsCount()The list of cloud regions from which health checks are performed. If any regions are specified, then exactly 3 regions should be specified. The region names must be valid names of Google Cloud regions. This can only be set for global health check. If this list is non-empty, then there are restrictions on what other health check fields are supported and what other resources can use this health check: - SSL, HTTP2, and GRPC protocols are not supported. - The TCP request field is not supported. - The proxyHeader field for HTTP, HTTPS, and TCP is not supported. - The checkIntervalSec field must be at least 30. - The health check cannot be used with BackendService nor with managed instance group auto-healing.
repeated string source_regions = 405568475;- Specified by:
getSourceRegionsCountin interfaceHealthCheckOrBuilder- Returns:
- The count of sourceRegions.
-
getSourceRegions
The list of cloud regions from which health checks are performed. If any regions are specified, then exactly 3 regions should be specified. The region names must be valid names of Google Cloud regions. This can only be set for global health check. If this list is non-empty, then there are restrictions on what other health check fields are supported and what other resources can use this health check: - SSL, HTTP2, and GRPC protocols are not supported. - The TCP request field is not supported. - The proxyHeader field for HTTP, HTTPS, and TCP is not supported. - The checkIntervalSec field must be at least 30. - The health check cannot be used with BackendService nor with managed instance group auto-healing.
repeated string source_regions = 405568475;- Specified by:
getSourceRegionsin interfaceHealthCheckOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The sourceRegions at the given index.
-
getSourceRegionsBytes
public com.google.protobuf.ByteString getSourceRegionsBytes(int index) The list of cloud regions from which health checks are performed. If any regions are specified, then exactly 3 regions should be specified. The region names must be valid names of Google Cloud regions. This can only be set for global health check. If this list is non-empty, then there are restrictions on what other health check fields are supported and what other resources can use this health check: - SSL, HTTP2, and GRPC protocols are not supported. - The TCP request field is not supported. - The proxyHeader field for HTTP, HTTPS, and TCP is not supported. - The checkIntervalSec field must be at least 30. - The health check cannot be used with BackendService nor with managed instance group auto-healing.
repeated string source_regions = 405568475;- Specified by:
getSourceRegionsBytesin interfaceHealthCheckOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the sourceRegions at the given index.
-
setSourceRegions
The list of cloud regions from which health checks are performed. If any regions are specified, then exactly 3 regions should be specified. The region names must be valid names of Google Cloud regions. This can only be set for global health check. If this list is non-empty, then there are restrictions on what other health check fields are supported and what other resources can use this health check: - SSL, HTTP2, and GRPC protocols are not supported. - The TCP request field is not supported. - The proxyHeader field for HTTP, HTTPS, and TCP is not supported. - The checkIntervalSec field must be at least 30. - The health check cannot be used with BackendService nor with managed instance group auto-healing.
repeated string source_regions = 405568475;- Parameters:
index- The index to set the value at.value- The sourceRegions to set.- Returns:
- This builder for chaining.
-
addSourceRegions
The list of cloud regions from which health checks are performed. If any regions are specified, then exactly 3 regions should be specified. The region names must be valid names of Google Cloud regions. This can only be set for global health check. If this list is non-empty, then there are restrictions on what other health check fields are supported and what other resources can use this health check: - SSL, HTTP2, and GRPC protocols are not supported. - The TCP request field is not supported. - The proxyHeader field for HTTP, HTTPS, and TCP is not supported. - The checkIntervalSec field must be at least 30. - The health check cannot be used with BackendService nor with managed instance group auto-healing.
repeated string source_regions = 405568475;- Parameters:
value- The sourceRegions to add.- Returns:
- This builder for chaining.
-
addAllSourceRegions
The list of cloud regions from which health checks are performed. If any regions are specified, then exactly 3 regions should be specified. The region names must be valid names of Google Cloud regions. This can only be set for global health check. If this list is non-empty, then there are restrictions on what other health check fields are supported and what other resources can use this health check: - SSL, HTTP2, and GRPC protocols are not supported. - The TCP request field is not supported. - The proxyHeader field for HTTP, HTTPS, and TCP is not supported. - The checkIntervalSec field must be at least 30. - The health check cannot be used with BackendService nor with managed instance group auto-healing.
repeated string source_regions = 405568475;- Parameters:
values- The sourceRegions to add.- Returns:
- This builder for chaining.
-
clearSourceRegions
The list of cloud regions from which health checks are performed. If any regions are specified, then exactly 3 regions should be specified. The region names must be valid names of Google Cloud regions. This can only be set for global health check. If this list is non-empty, then there are restrictions on what other health check fields are supported and what other resources can use this health check: - SSL, HTTP2, and GRPC protocols are not supported. - The TCP request field is not supported. - The proxyHeader field for HTTP, HTTPS, and TCP is not supported. - The checkIntervalSec field must be at least 30. - The health check cannot be used with BackendService nor with managed instance group auto-healing.
repeated string source_regions = 405568475;- Returns:
- This builder for chaining.
-
addSourceRegionsBytes
The list of cloud regions from which health checks are performed. If any regions are specified, then exactly 3 regions should be specified. The region names must be valid names of Google Cloud regions. This can only be set for global health check. If this list is non-empty, then there are restrictions on what other health check fields are supported and what other resources can use this health check: - SSL, HTTP2, and GRPC protocols are not supported. - The TCP request field is not supported. - The proxyHeader field for HTTP, HTTPS, and TCP is not supported. - The checkIntervalSec field must be at least 30. - The health check cannot be used with BackendService nor with managed instance group auto-healing.
repeated string source_regions = 405568475;- Parameters:
value- The bytes of the sourceRegions to add.- Returns:
- This builder for chaining.
-
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
optional .google.cloud.compute.v1.SSLHealthCheck ssl_health_check = 280032440;- Specified by:
getSslHealthCheckin interfaceHealthCheckOrBuilder- Returns:
- The sslHealthCheck.
-
setSslHealthCheck
optional .google.cloud.compute.v1.SSLHealthCheck ssl_health_check = 280032440; -
setSslHealthCheck
optional .google.cloud.compute.v1.SSLHealthCheck ssl_health_check = 280032440; -
mergeSslHealthCheck
optional .google.cloud.compute.v1.SSLHealthCheck ssl_health_check = 280032440; -
clearSslHealthCheck
optional .google.cloud.compute.v1.SSLHealthCheck ssl_health_check = 280032440; -
getSslHealthCheckBuilder
optional .google.cloud.compute.v1.SSLHealthCheck ssl_health_check = 280032440; -
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
optional .google.cloud.compute.v1.TCPHealthCheck tcp_health_check = 469980419;- Specified by:
getTcpHealthCheckin interfaceHealthCheckOrBuilder- Returns:
- The tcpHealthCheck.
-
setTcpHealthCheck
optional .google.cloud.compute.v1.TCPHealthCheck tcp_health_check = 469980419; -
setTcpHealthCheck
optional .google.cloud.compute.v1.TCPHealthCheck tcp_health_check = 469980419; -
mergeTcpHealthCheck
optional .google.cloud.compute.v1.TCPHealthCheck tcp_health_check = 469980419; -
clearTcpHealthCheck
optional .google.cloud.compute.v1.TCPHealthCheck tcp_health_check = 469980419; -
getTcpHealthCheckBuilder
optional .google.cloud.compute.v1.TCPHealthCheck tcp_health_check = 469980419; -
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.
-
setTimeoutSec
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;- Parameters:
value- The timeoutSec to set.- Returns:
- This builder for chaining.
-
clearTimeoutSec
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;- Returns:
- This builder for chaining.
-
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 matchtype 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
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 matchtype 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 matchtype field. Check the Type enum for the list of possible values.
optional string type = 3575610;- Specified by:
getTypeBytesin interfaceHealthCheckOrBuilder- Returns:
- The bytes for type.
-
setType
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 matchtype field. Check the Type enum for the list of possible values.
optional string type = 3575610;- Parameters:
value- The type to set.- Returns:
- This builder for chaining.
-
clearType
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 matchtype field. Check the Type enum for the list of possible values.
optional string type = 3575610;- Returns:
- This builder for chaining.
-
setTypeBytes
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 matchtype field. Check the Type enum for the list of possible values.
optional string type = 3575610;- Parameters:
value- The bytes for type to set.- Returns:
- This builder for chaining.
-
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.
-
setUnhealthyThreshold
A so-far healthy instance will be marked unhealthy after this many consecutive failures. The default value is 2.
optional int32 unhealthy_threshold = 227958480;- Parameters:
value- The unhealthyThreshold to set.- Returns:
- This builder for chaining.
-
clearUnhealthyThreshold
A so-far healthy instance will be marked unhealthy after this many consecutive failures. The default value is 2.
optional int32 unhealthy_threshold = 227958480;- Returns:
- This builder for chaining.
-