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.GeneratedMessageV3.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.GeneratedMessageV3.Builder<HealthCheck.Builder> 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
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description HealthCheck.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
HealthCheck
build()
HealthCheck
buildPartial()
HealthCheck.Builder
clear()
HealthCheck.Builder
clearCheckIntervalSec()
How often (in seconds) to send a health check.HealthCheck.Builder
clearCreationTimestamp()
[Output Only] Creation timestamp in 3339 text format.HealthCheck.Builder
clearDescription()
An optional description of this resource.HealthCheck.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
HealthCheck.Builder
clearGrpcHealthCheck()
optional .google.cloud.compute.v1.GRPCHealthCheck grpc_health_check = 85529574;
HealthCheck.Builder
clearHealthyThreshold()
A so-far unhealthy instance will be marked healthy after this many consecutive successes.HealthCheck.Builder
clearHttp2HealthCheck()
optional .google.cloud.compute.v1.HTTP2HealthCheck http2_health_check = 11360986;
HealthCheck.Builder
clearHttpHealthCheck()
optional .google.cloud.compute.v1.HTTPHealthCheck http_health_check = 412586940;
HealthCheck.Builder
clearHttpsHealthCheck()
optional .google.cloud.compute.v1.HTTPSHealthCheck https_health_check = 436046905;
HealthCheck.Builder
clearId()
[Output Only] The unique identifier for the resource.HealthCheck.Builder
clearKind()
Type of the resource.HealthCheck.Builder
clearLogConfig()
Configure logging on this health check.HealthCheck.Builder
clearName()
Name of the resource.HealthCheck.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
HealthCheck.Builder
clearRegion()
[Output Only] Region where the health check resides.HealthCheck.Builder
clearSelfLink()
[Output Only] Server-defined URL for the resource.HealthCheck.Builder
clearSslHealthCheck()
optional .google.cloud.compute.v1.SSLHealthCheck ssl_health_check = 280032440;
HealthCheck.Builder
clearTcpHealthCheck()
optional .google.cloud.compute.v1.TCPHealthCheck tcp_health_check = 469980419;
HealthCheck.Builder
clearTimeoutSec()
How long (in seconds) to wait before claiming failure.HealthCheck.Builder
clearType()
Specifies the type of the healthCheck, either TCP, SSL, HTTP, HTTPS, HTTP2 or GRPC.HealthCheck.Builder
clearUnhealthyThreshold()
A so-far healthy instance will be marked unhealthy after this many consecutive failures.HealthCheck.Builder
clone()
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.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()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
GRPCHealthCheck
getGrpcHealthCheck()
optional .google.cloud.compute.v1.GRPCHealthCheck grpc_health_check = 85529574;
GRPCHealthCheck.Builder
getGrpcHealthCheckBuilder()
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;
HTTP2HealthCheck.Builder
getHttp2HealthCheckBuilder()
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;
HTTPHealthCheck.Builder
getHttpHealthCheckBuilder()
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;
HTTPSHealthCheck.Builder
getHttpsHealthCheckBuilder()
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.HealthCheckLogConfig.Builder
getLogConfigBuilder()
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.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.SSLHealthCheck
getSslHealthCheck()
optional .google.cloud.compute.v1.SSLHealthCheck ssl_health_check = 280032440;
SSLHealthCheck.Builder
getSslHealthCheckBuilder()
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;
TCPHealthCheck.Builder
getTcpHealthCheckBuilder()
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.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;
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()
HealthCheck.Builder
mergeFrom(HealthCheck other)
HealthCheck.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
HealthCheck.Builder
mergeFrom(com.google.protobuf.Message other)
HealthCheck.Builder
mergeGrpcHealthCheck(GRPCHealthCheck value)
optional .google.cloud.compute.v1.GRPCHealthCheck grpc_health_check = 85529574;
HealthCheck.Builder
mergeHttp2HealthCheck(HTTP2HealthCheck value)
optional .google.cloud.compute.v1.HTTP2HealthCheck http2_health_check = 11360986;
HealthCheck.Builder
mergeHttpHealthCheck(HTTPHealthCheck value)
optional .google.cloud.compute.v1.HTTPHealthCheck http_health_check = 412586940;
HealthCheck.Builder
mergeHttpsHealthCheck(HTTPSHealthCheck value)
optional .google.cloud.compute.v1.HTTPSHealthCheck https_health_check = 436046905;
HealthCheck.Builder
mergeLogConfig(HealthCheckLogConfig value)
Configure logging on this health check.HealthCheck.Builder
mergeSslHealthCheck(SSLHealthCheck value)
optional .google.cloud.compute.v1.SSLHealthCheck ssl_health_check = 280032440;
HealthCheck.Builder
mergeTcpHealthCheck(TCPHealthCheck value)
optional .google.cloud.compute.v1.TCPHealthCheck tcp_health_check = 469980419;
HealthCheck.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
HealthCheck.Builder
setCheckIntervalSec(int value)
How often (in seconds) to send a health check.HealthCheck.Builder
setCreationTimestamp(String value)
[Output Only] Creation timestamp in 3339 text format.HealthCheck.Builder
setCreationTimestampBytes(com.google.protobuf.ByteString value)
[Output Only] Creation timestamp in 3339 text format.HealthCheck.Builder
setDescription(String value)
An optional description of this resource.HealthCheck.Builder
setDescriptionBytes(com.google.protobuf.ByteString value)
An optional description of this resource.HealthCheck.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
HealthCheck.Builder
setGrpcHealthCheck(GRPCHealthCheck value)
optional .google.cloud.compute.v1.GRPCHealthCheck grpc_health_check = 85529574;
HealthCheck.Builder
setGrpcHealthCheck(GRPCHealthCheck.Builder builderForValue)
optional .google.cloud.compute.v1.GRPCHealthCheck grpc_health_check = 85529574;
HealthCheck.Builder
setHealthyThreshold(int value)
A so-far unhealthy instance will be marked healthy after this many consecutive successes.HealthCheck.Builder
setHttp2HealthCheck(HTTP2HealthCheck value)
optional .google.cloud.compute.v1.HTTP2HealthCheck http2_health_check = 11360986;
HealthCheck.Builder
setHttp2HealthCheck(HTTP2HealthCheck.Builder builderForValue)
optional .google.cloud.compute.v1.HTTP2HealthCheck http2_health_check = 11360986;
HealthCheck.Builder
setHttpHealthCheck(HTTPHealthCheck value)
optional .google.cloud.compute.v1.HTTPHealthCheck http_health_check = 412586940;
HealthCheck.Builder
setHttpHealthCheck(HTTPHealthCheck.Builder builderForValue)
optional .google.cloud.compute.v1.HTTPHealthCheck http_health_check = 412586940;
HealthCheck.Builder
setHttpsHealthCheck(HTTPSHealthCheck value)
optional .google.cloud.compute.v1.HTTPSHealthCheck https_health_check = 436046905;
HealthCheck.Builder
setHttpsHealthCheck(HTTPSHealthCheck.Builder builderForValue)
optional .google.cloud.compute.v1.HTTPSHealthCheck https_health_check = 436046905;
HealthCheck.Builder
setId(long value)
[Output Only] The unique identifier for the resource.HealthCheck.Builder
setKind(String value)
Type of the resource.HealthCheck.Builder
setKindBytes(com.google.protobuf.ByteString value)
Type of the resource.HealthCheck.Builder
setLogConfig(HealthCheckLogConfig value)
Configure logging on this health check.HealthCheck.Builder
setLogConfig(HealthCheckLogConfig.Builder builderForValue)
Configure logging on this health check.HealthCheck.Builder
setName(String value)
Name of the resource.HealthCheck.Builder
setNameBytes(com.google.protobuf.ByteString value)
Name of the resource.HealthCheck.Builder
setRegion(String value)
[Output Only] Region where the health check resides.HealthCheck.Builder
setRegionBytes(com.google.protobuf.ByteString value)
[Output Only] Region where the health check resides.HealthCheck.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
HealthCheck.Builder
setSelfLink(String value)
[Output Only] Server-defined URL for the resource.HealthCheck.Builder
setSelfLinkBytes(com.google.protobuf.ByteString value)
[Output Only] Server-defined URL for the resource.HealthCheck.Builder
setSslHealthCheck(SSLHealthCheck value)
optional .google.cloud.compute.v1.SSLHealthCheck ssl_health_check = 280032440;
HealthCheck.Builder
setSslHealthCheck(SSLHealthCheck.Builder builderForValue)
optional .google.cloud.compute.v1.SSLHealthCheck ssl_health_check = 280032440;
HealthCheck.Builder
setTcpHealthCheck(TCPHealthCheck value)
optional .google.cloud.compute.v1.TCPHealthCheck tcp_health_check = 469980419;
HealthCheck.Builder
setTcpHealthCheck(TCPHealthCheck.Builder builderForValue)
optional .google.cloud.compute.v1.TCPHealthCheck tcp_health_check = 469980419;
HealthCheck.Builder
setTimeoutSec(int value)
How long (in seconds) to wait before claiming failure.HealthCheck.Builder
setType(String value)
Specifies the type of the healthCheck, either TCP, SSL, HTTP, HTTPS, HTTP2 or GRPC.HealthCheck.Builder
setTypeBytes(com.google.protobuf.ByteString value)
Specifies the type of the healthCheck, either TCP, SSL, HTTP, HTTPS, HTTP2 or GRPC.HealthCheck.Builder
setUnhealthyThreshold(int value)
A so-far healthy instance will be marked unhealthy after this many consecutive failures.HealthCheck.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<HealthCheck.Builder>
-
clear
public HealthCheck.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<HealthCheck.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<HealthCheck.Builder>
-
getDefaultInstanceForType
public HealthCheck getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public HealthCheck build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public HealthCheck buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public HealthCheck.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<HealthCheck.Builder>
-
setField
public HealthCheck.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<HealthCheck.Builder>
-
clearField
public HealthCheck.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<HealthCheck.Builder>
-
clearOneof
public HealthCheck.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<HealthCheck.Builder>
-
setRepeatedField
public HealthCheck.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<HealthCheck.Builder>
-
addRepeatedField
public HealthCheck.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<HealthCheck.Builder>
-
mergeFrom
public HealthCheck.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<HealthCheck.Builder>
-
mergeFrom
public HealthCheck.Builder mergeFrom(HealthCheck other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<HealthCheck.Builder>
-
mergeFrom
public HealthCheck.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
hasCheckIntervalSec
in 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:
getCheckIntervalSec
in interfaceHealthCheckOrBuilder
- Returns:
- The checkIntervalSec.
-
setCheckIntervalSec
public HealthCheck.Builder setCheckIntervalSec(int value)
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
public HealthCheck.Builder 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] Creation timestamp in 3339 text format.
optional string creation_timestamp = 30525366;
- Specified by:
hasCreationTimestamp
in 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:
getCreationTimestamp
in 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:
getCreationTimestampBytes
in interfaceHealthCheckOrBuilder
- Returns:
- The bytes for creationTimestamp.
-
setCreationTimestamp
public HealthCheck.Builder setCreationTimestamp(String value)
[Output Only] Creation timestamp in 3339 text format.
optional string creation_timestamp = 30525366;
- Parameters:
value
- The creationTimestamp to set.- Returns:
- This builder for chaining.
-
clearCreationTimestamp
public HealthCheck.Builder clearCreationTimestamp()
[Output Only] Creation timestamp in 3339 text format.
optional string creation_timestamp = 30525366;
- Returns:
- This builder for chaining.
-
setCreationTimestampBytes
public HealthCheck.Builder setCreationTimestampBytes(com.google.protobuf.ByteString value)
[Output Only] Creation timestamp in 3339 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:
hasDescription
in 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:
getDescription
in 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:
getDescriptionBytes
in interfaceHealthCheckOrBuilder
- Returns:
- The bytes for description.
-
setDescription
public HealthCheck.Builder setDescription(String value)
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
public HealthCheck.Builder 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
public HealthCheck.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
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:
hasGrpcHealthCheck
in interfaceHealthCheckOrBuilder
- Returns:
- Whether the grpcHealthCheck field is set.
-
getGrpcHealthCheck
public GRPCHealthCheck getGrpcHealthCheck()
optional .google.cloud.compute.v1.GRPCHealthCheck grpc_health_check = 85529574;
- Specified by:
getGrpcHealthCheck
in interfaceHealthCheckOrBuilder
- Returns:
- The grpcHealthCheck.
-
setGrpcHealthCheck
public HealthCheck.Builder setGrpcHealthCheck(GRPCHealthCheck value)
optional .google.cloud.compute.v1.GRPCHealthCheck grpc_health_check = 85529574;
-
setGrpcHealthCheck
public HealthCheck.Builder setGrpcHealthCheck(GRPCHealthCheck.Builder builderForValue)
optional .google.cloud.compute.v1.GRPCHealthCheck grpc_health_check = 85529574;
-
mergeGrpcHealthCheck
public HealthCheck.Builder mergeGrpcHealthCheck(GRPCHealthCheck value)
optional .google.cloud.compute.v1.GRPCHealthCheck grpc_health_check = 85529574;
-
clearGrpcHealthCheck
public HealthCheck.Builder clearGrpcHealthCheck()
optional .google.cloud.compute.v1.GRPCHealthCheck grpc_health_check = 85529574;
-
getGrpcHealthCheckBuilder
public GRPCHealthCheck.Builder getGrpcHealthCheckBuilder()
optional .google.cloud.compute.v1.GRPCHealthCheck grpc_health_check = 85529574;
-
getGrpcHealthCheckOrBuilder
public GRPCHealthCheckOrBuilder getGrpcHealthCheckOrBuilder()
optional .google.cloud.compute.v1.GRPCHealthCheck grpc_health_check = 85529574;
- Specified by:
getGrpcHealthCheckOrBuilder
in 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:
hasHealthyThreshold
in 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:
getHealthyThreshold
in interfaceHealthCheckOrBuilder
- Returns:
- The healthyThreshold.
-
setHealthyThreshold
public HealthCheck.Builder setHealthyThreshold(int value)
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
public HealthCheck.Builder 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:
hasHttp2HealthCheck
in interfaceHealthCheckOrBuilder
- Returns:
- Whether the http2HealthCheck field is set.
-
getHttp2HealthCheck
public HTTP2HealthCheck getHttp2HealthCheck()
optional .google.cloud.compute.v1.HTTP2HealthCheck http2_health_check = 11360986;
- Specified by:
getHttp2HealthCheck
in interfaceHealthCheckOrBuilder
- Returns:
- The http2HealthCheck.
-
setHttp2HealthCheck
public HealthCheck.Builder setHttp2HealthCheck(HTTP2HealthCheck value)
optional .google.cloud.compute.v1.HTTP2HealthCheck http2_health_check = 11360986;
-
setHttp2HealthCheck
public HealthCheck.Builder setHttp2HealthCheck(HTTP2HealthCheck.Builder builderForValue)
optional .google.cloud.compute.v1.HTTP2HealthCheck http2_health_check = 11360986;
-
mergeHttp2HealthCheck
public HealthCheck.Builder mergeHttp2HealthCheck(HTTP2HealthCheck value)
optional .google.cloud.compute.v1.HTTP2HealthCheck http2_health_check = 11360986;
-
clearHttp2HealthCheck
public HealthCheck.Builder clearHttp2HealthCheck()
optional .google.cloud.compute.v1.HTTP2HealthCheck http2_health_check = 11360986;
-
getHttp2HealthCheckBuilder
public HTTP2HealthCheck.Builder getHttp2HealthCheckBuilder()
optional .google.cloud.compute.v1.HTTP2HealthCheck http2_health_check = 11360986;
-
getHttp2HealthCheckOrBuilder
public HTTP2HealthCheckOrBuilder getHttp2HealthCheckOrBuilder()
optional .google.cloud.compute.v1.HTTP2HealthCheck http2_health_check = 11360986;
- Specified by:
getHttp2HealthCheckOrBuilder
in interfaceHealthCheckOrBuilder
-
hasHttpHealthCheck
public boolean hasHttpHealthCheck()
optional .google.cloud.compute.v1.HTTPHealthCheck http_health_check = 412586940;
- Specified by:
hasHttpHealthCheck
in interfaceHealthCheckOrBuilder
- Returns:
- Whether the httpHealthCheck field is set.
-
getHttpHealthCheck
public HTTPHealthCheck getHttpHealthCheck()
optional .google.cloud.compute.v1.HTTPHealthCheck http_health_check = 412586940;
- Specified by:
getHttpHealthCheck
in interfaceHealthCheckOrBuilder
- Returns:
- The httpHealthCheck.
-
setHttpHealthCheck
public HealthCheck.Builder setHttpHealthCheck(HTTPHealthCheck value)
optional .google.cloud.compute.v1.HTTPHealthCheck http_health_check = 412586940;
-
setHttpHealthCheck
public HealthCheck.Builder setHttpHealthCheck(HTTPHealthCheck.Builder builderForValue)
optional .google.cloud.compute.v1.HTTPHealthCheck http_health_check = 412586940;
-
mergeHttpHealthCheck
public HealthCheck.Builder mergeHttpHealthCheck(HTTPHealthCheck value)
optional .google.cloud.compute.v1.HTTPHealthCheck http_health_check = 412586940;
-
clearHttpHealthCheck
public HealthCheck.Builder clearHttpHealthCheck()
optional .google.cloud.compute.v1.HTTPHealthCheck http_health_check = 412586940;
-
getHttpHealthCheckBuilder
public HTTPHealthCheck.Builder getHttpHealthCheckBuilder()
optional .google.cloud.compute.v1.HTTPHealthCheck http_health_check = 412586940;
-
getHttpHealthCheckOrBuilder
public HTTPHealthCheckOrBuilder getHttpHealthCheckOrBuilder()
optional .google.cloud.compute.v1.HTTPHealthCheck http_health_check = 412586940;
- Specified by:
getHttpHealthCheckOrBuilder
in interfaceHealthCheckOrBuilder
-
hasHttpsHealthCheck
public boolean hasHttpsHealthCheck()
optional .google.cloud.compute.v1.HTTPSHealthCheck https_health_check = 436046905;
- Specified by:
hasHttpsHealthCheck
in interfaceHealthCheckOrBuilder
- Returns:
- Whether the httpsHealthCheck field is set.
-
getHttpsHealthCheck
public HTTPSHealthCheck getHttpsHealthCheck()
optional .google.cloud.compute.v1.HTTPSHealthCheck https_health_check = 436046905;
- Specified by:
getHttpsHealthCheck
in interfaceHealthCheckOrBuilder
- Returns:
- The httpsHealthCheck.
-
setHttpsHealthCheck
public HealthCheck.Builder setHttpsHealthCheck(HTTPSHealthCheck value)
optional .google.cloud.compute.v1.HTTPSHealthCheck https_health_check = 436046905;
-
setHttpsHealthCheck
public HealthCheck.Builder setHttpsHealthCheck(HTTPSHealthCheck.Builder builderForValue)
optional .google.cloud.compute.v1.HTTPSHealthCheck https_health_check = 436046905;
-
mergeHttpsHealthCheck
public HealthCheck.Builder mergeHttpsHealthCheck(HTTPSHealthCheck value)
optional .google.cloud.compute.v1.HTTPSHealthCheck https_health_check = 436046905;
-
clearHttpsHealthCheck
public HealthCheck.Builder clearHttpsHealthCheck()
optional .google.cloud.compute.v1.HTTPSHealthCheck https_health_check = 436046905;
-
getHttpsHealthCheckBuilder
public HTTPSHealthCheck.Builder getHttpsHealthCheckBuilder()
optional .google.cloud.compute.v1.HTTPSHealthCheck https_health_check = 436046905;
-
getHttpsHealthCheckOrBuilder
public HTTPSHealthCheckOrBuilder getHttpsHealthCheckOrBuilder()
optional .google.cloud.compute.v1.HTTPSHealthCheck https_health_check = 436046905;
- Specified by:
getHttpsHealthCheckOrBuilder
in 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:
hasId
in 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:
getId
in interfaceHealthCheckOrBuilder
- Returns:
- The id.
-
setId
public HealthCheck.Builder setId(long value)
[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
public HealthCheck.Builder 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()
Type of the resource.
optional string kind = 3292052;
- Specified by:
hasKind
in interfaceHealthCheckOrBuilder
- Returns:
- Whether the kind field is set.
-
getKind
public String getKind()
Type of the resource.
optional string kind = 3292052;
- Specified by:
getKind
in interfaceHealthCheckOrBuilder
- Returns:
- The kind.
-
getKindBytes
public com.google.protobuf.ByteString getKindBytes()
Type of the resource.
optional string kind = 3292052;
- Specified by:
getKindBytes
in interfaceHealthCheckOrBuilder
- Returns:
- The bytes for kind.
-
setKind
public HealthCheck.Builder setKind(String value)
Type of the resource.
optional string kind = 3292052;
- Parameters:
value
- The kind to set.- Returns:
- This builder for chaining.
-
clearKind
public HealthCheck.Builder clearKind()
Type of the resource.
optional string kind = 3292052;
- Returns:
- This builder for chaining.
-
setKindBytes
public HealthCheck.Builder setKindBytes(com.google.protobuf.ByteString value)
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:
hasLogConfig
in 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:
getLogConfig
in interfaceHealthCheckOrBuilder
- Returns:
- The logConfig.
-
setLogConfig
public HealthCheck.Builder setLogConfig(HealthCheckLogConfig value)
Configure logging on this health check.
optional .google.cloud.compute.v1.HealthCheckLogConfig log_config = 351299741;
-
setLogConfig
public HealthCheck.Builder setLogConfig(HealthCheckLogConfig.Builder builderForValue)
Configure logging on this health check.
optional .google.cloud.compute.v1.HealthCheckLogConfig log_config = 351299741;
-
mergeLogConfig
public HealthCheck.Builder mergeLogConfig(HealthCheckLogConfig value)
Configure logging on this health check.
optional .google.cloud.compute.v1.HealthCheckLogConfig log_config = 351299741;
-
clearLogConfig
public HealthCheck.Builder clearLogConfig()
Configure logging on this health check.
optional .google.cloud.compute.v1.HealthCheckLogConfig log_config = 351299741;
-
getLogConfigBuilder
public HealthCheckLogConfig.Builder getLogConfigBuilder()
Configure logging on this health check.
optional .google.cloud.compute.v1.HealthCheckLogConfig log_config = 351299741;
-
getLogConfigOrBuilder
public HealthCheckLogConfigOrBuilder getLogConfigOrBuilder()
Configure logging on this health check.
optional .google.cloud.compute.v1.HealthCheckLogConfig log_config = 351299741;
- Specified by:
getLogConfigOrBuilder
in 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:
hasName
in 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:
getName
in 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:
getNameBytes
in interfaceHealthCheckOrBuilder
- Returns:
- The bytes for name.
-
setName
public HealthCheck.Builder setName(String value)
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;
- Parameters:
value
- The name to set.- Returns:
- This builder for chaining.
-
clearName
public HealthCheck.Builder clearName()
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;
- Returns:
- This builder for chaining.
-
setNameBytes
public HealthCheck.Builder setNameBytes(com.google.protobuf.ByteString value)
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;
- Parameters:
value
- The bytes for name to set.- Returns:
- This builder for chaining.
-
hasRegion
public boolean hasRegion()
[Output Only] Region where the health check resides. Not applicable to global health checks.
optional string region = 138946292;
- Specified by:
hasRegion
in 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:
getRegion
in 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:
getRegionBytes
in interfaceHealthCheckOrBuilder
- Returns:
- The bytes for region.
-
setRegion
public HealthCheck.Builder setRegion(String value)
[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
public HealthCheck.Builder clearRegion()
[Output Only] Region where the health check resides. Not applicable to global health checks.
optional string region = 138946292;
- Returns:
- This builder for chaining.
-
setRegionBytes
public HealthCheck.Builder setRegionBytes(com.google.protobuf.ByteString value)
[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:
hasSelfLink
in 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:
getSelfLink
in 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:
getSelfLinkBytes
in interfaceHealthCheckOrBuilder
- Returns:
- The bytes for selfLink.
-
setSelfLink
public HealthCheck.Builder setSelfLink(String value)
[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
public HealthCheck.Builder clearSelfLink()
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;
- Returns:
- This builder for chaining.
-
setSelfLinkBytes
public HealthCheck.Builder setSelfLinkBytes(com.google.protobuf.ByteString value)
[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.
-
hasSslHealthCheck
public boolean hasSslHealthCheck()
optional .google.cloud.compute.v1.SSLHealthCheck ssl_health_check = 280032440;
- Specified by:
hasSslHealthCheck
in interfaceHealthCheckOrBuilder
- Returns:
- Whether the sslHealthCheck field is set.
-
getSslHealthCheck
public SSLHealthCheck getSslHealthCheck()
optional .google.cloud.compute.v1.SSLHealthCheck ssl_health_check = 280032440;
- Specified by:
getSslHealthCheck
in interfaceHealthCheckOrBuilder
- Returns:
- The sslHealthCheck.
-
setSslHealthCheck
public HealthCheck.Builder setSslHealthCheck(SSLHealthCheck value)
optional .google.cloud.compute.v1.SSLHealthCheck ssl_health_check = 280032440;
-
setSslHealthCheck
public HealthCheck.Builder setSslHealthCheck(SSLHealthCheck.Builder builderForValue)
optional .google.cloud.compute.v1.SSLHealthCheck ssl_health_check = 280032440;
-
mergeSslHealthCheck
public HealthCheck.Builder mergeSslHealthCheck(SSLHealthCheck value)
optional .google.cloud.compute.v1.SSLHealthCheck ssl_health_check = 280032440;
-
clearSslHealthCheck
public HealthCheck.Builder clearSslHealthCheck()
optional .google.cloud.compute.v1.SSLHealthCheck ssl_health_check = 280032440;
-
getSslHealthCheckBuilder
public SSLHealthCheck.Builder getSslHealthCheckBuilder()
optional .google.cloud.compute.v1.SSLHealthCheck ssl_health_check = 280032440;
-
getSslHealthCheckOrBuilder
public SSLHealthCheckOrBuilder getSslHealthCheckOrBuilder()
optional .google.cloud.compute.v1.SSLHealthCheck ssl_health_check = 280032440;
- Specified by:
getSslHealthCheckOrBuilder
in interfaceHealthCheckOrBuilder
-
hasTcpHealthCheck
public boolean hasTcpHealthCheck()
optional .google.cloud.compute.v1.TCPHealthCheck tcp_health_check = 469980419;
- Specified by:
hasTcpHealthCheck
in interfaceHealthCheckOrBuilder
- Returns:
- Whether the tcpHealthCheck field is set.
-
getTcpHealthCheck
public TCPHealthCheck getTcpHealthCheck()
optional .google.cloud.compute.v1.TCPHealthCheck tcp_health_check = 469980419;
- Specified by:
getTcpHealthCheck
in interfaceHealthCheckOrBuilder
- Returns:
- The tcpHealthCheck.
-
setTcpHealthCheck
public HealthCheck.Builder setTcpHealthCheck(TCPHealthCheck value)
optional .google.cloud.compute.v1.TCPHealthCheck tcp_health_check = 469980419;
-
setTcpHealthCheck
public HealthCheck.Builder setTcpHealthCheck(TCPHealthCheck.Builder builderForValue)
optional .google.cloud.compute.v1.TCPHealthCheck tcp_health_check = 469980419;
-
mergeTcpHealthCheck
public HealthCheck.Builder mergeTcpHealthCheck(TCPHealthCheck value)
optional .google.cloud.compute.v1.TCPHealthCheck tcp_health_check = 469980419;
-
clearTcpHealthCheck
public HealthCheck.Builder clearTcpHealthCheck()
optional .google.cloud.compute.v1.TCPHealthCheck tcp_health_check = 469980419;
-
getTcpHealthCheckBuilder
public TCPHealthCheck.Builder getTcpHealthCheckBuilder()
optional .google.cloud.compute.v1.TCPHealthCheck tcp_health_check = 469980419;
-
getTcpHealthCheckOrBuilder
public TCPHealthCheckOrBuilder getTcpHealthCheckOrBuilder()
optional .google.cloud.compute.v1.TCPHealthCheck tcp_health_check = 469980419;
- Specified by:
getTcpHealthCheckOrBuilder
in 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:
hasTimeoutSec
in 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:
getTimeoutSec
in interfaceHealthCheckOrBuilder
- Returns:
- The timeoutSec.
-
setTimeoutSec
public HealthCheck.Builder setTimeoutSec(int value)
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
public HealthCheck.Builder 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 match type field. Check the Type enum for the list of possible values.
optional string type = 3575610;
- Specified by:
hasType
in 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:
getType
in 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:
getTypeBytes
in interfaceHealthCheckOrBuilder
- Returns:
- The bytes for type.
-
setType
public HealthCheck.Builder setType(String value)
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;
- Parameters:
value
- The type to set.- Returns:
- This builder for chaining.
-
clearType
public HealthCheck.Builder 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 match type field. Check the Type enum for the list of possible values.
optional string type = 3575610;
- Returns:
- This builder for chaining.
-
setTypeBytes
public HealthCheck.Builder setTypeBytes(com.google.protobuf.ByteString value)
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;
- 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:
hasUnhealthyThreshold
in 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:
getUnhealthyThreshold
in interfaceHealthCheckOrBuilder
- Returns:
- The unhealthyThreshold.
-
setUnhealthyThreshold
public HealthCheck.Builder setUnhealthyThreshold(int value)
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
public HealthCheck.Builder 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.
-
setUnknownFields
public final HealthCheck.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<HealthCheck.Builder>
-
mergeUnknownFields
public final HealthCheck.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<HealthCheck.Builder>
-
-