- 2.54.0 (latest)
- 2.53.0
- 2.52.0
- 2.49.0
- 2.48.0
- 2.47.0
- 2.46.0
- 2.45.0
- 2.44.0
- 2.43.0
- 2.42.0
- 2.41.0
- 2.40.0
- 2.39.0
- 2.37.0
- 2.36.0
- 2.35.0
- 2.34.0
- 2.33.0
- 2.32.0
- 2.31.0
- 2.30.0
- 2.29.0
- 2.28.0
- 2.27.0
- 2.24.0
- 2.23.0
- 2.22.0
- 2.21.0
- 2.20.0
- 2.19.0
- 2.18.0
- 2.17.0
- 2.16.0
- 2.15.0
- 2.14.0
- 2.13.0
- 2.12.0
- 2.11.0
- 2.10.0
- 2.9.0
- 2.8.0
- 2.7.0
- 2.6.0
- 2.5.0
- 2.4.0
- 2.3.4
- 2.2.0
- 2.1.10
- 0.2.0
public static final class HealthCheck.Builder extends GeneratedMessageV3.Builder<HealthCheck.Builder> implements HealthCheckOrBuilder
Health checking configuration for VM instances. Unhealthy instances are killed and replaced with new instances. Only applicable for instances in App Engine flexible environment.
Protobuf type google.appengine.v1.HealthCheck
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > HealthCheck.BuilderImplements
HealthCheckOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public HealthCheck.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
HealthCheck.Builder |
build()
public HealthCheck build()
Type | Description |
HealthCheck |
buildPartial()
public HealthCheck buildPartial()
Type | Description |
HealthCheck |
clear()
public HealthCheck.Builder clear()
Type | Description |
HealthCheck.Builder |
clearCheckInterval()
public HealthCheck.Builder clearCheckInterval()
Interval between health checks.
.google.protobuf.Duration check_interval = 6;
Type | Description |
HealthCheck.Builder |
clearDisableHealthCheck()
public HealthCheck.Builder clearDisableHealthCheck()
Whether to explicitly disable health checks for this instance.
bool disable_health_check = 1;
Type | Description |
HealthCheck.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public HealthCheck.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
HealthCheck.Builder |
clearHealthyThreshold()
public HealthCheck.Builder clearHealthyThreshold()
Number of consecutive successful health checks required before receiving traffic.
uint32 healthy_threshold = 3;
Type | Description |
HealthCheck.Builder | This builder for chaining. |
clearHost()
public HealthCheck.Builder clearHost()
Host header to send when performing an HTTP health check. Example: "myapp.appspot.com"
string host = 2;
Type | Description |
HealthCheck.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public HealthCheck.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
HealthCheck.Builder |
clearRestartThreshold()
public HealthCheck.Builder clearRestartThreshold()
Number of consecutive failed health checks required before an instance is restarted.
uint32 restart_threshold = 5;
Type | Description |
HealthCheck.Builder | This builder for chaining. |
clearTimeout()
public HealthCheck.Builder clearTimeout()
Time before the health check is considered failed.
.google.protobuf.Duration timeout = 7;
Type | Description |
HealthCheck.Builder |
clearUnhealthyThreshold()
public HealthCheck.Builder clearUnhealthyThreshold()
Number of consecutive failed health checks required before removing traffic.
uint32 unhealthy_threshold = 4;
Type | Description |
HealthCheck.Builder | This builder for chaining. |
clone()
public HealthCheck.Builder clone()
Type | Description |
HealthCheck.Builder |
getCheckInterval()
public Duration getCheckInterval()
Interval between health checks.
.google.protobuf.Duration check_interval = 6;
Type | Description |
Duration | The checkInterval. |
getCheckIntervalBuilder()
public Duration.Builder getCheckIntervalBuilder()
Interval between health checks.
.google.protobuf.Duration check_interval = 6;
Type | Description |
Builder |
getCheckIntervalOrBuilder()
public DurationOrBuilder getCheckIntervalOrBuilder()
Interval between health checks.
.google.protobuf.Duration check_interval = 6;
Type | Description |
DurationOrBuilder |
getDefaultInstanceForType()
public HealthCheck getDefaultInstanceForType()
Type | Description |
HealthCheck |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getDisableHealthCheck()
public boolean getDisableHealthCheck()
Whether to explicitly disable health checks for this instance.
bool disable_health_check = 1;
Type | Description |
boolean | The disableHealthCheck. |
getHealthyThreshold()
public int getHealthyThreshold()
Number of consecutive successful health checks required before receiving traffic.
uint32 healthy_threshold = 3;
Type | Description |
int | The healthyThreshold. |
getHost()
public String getHost()
Host header to send when performing an HTTP health check. Example: "myapp.appspot.com"
string host = 2;
Type | Description |
String | The host. |
getHostBytes()
public ByteString getHostBytes()
Host header to send when performing an HTTP health check. Example: "myapp.appspot.com"
string host = 2;
Type | Description |
ByteString | The bytes for host. |
getRestartThreshold()
public int getRestartThreshold()
Number of consecutive failed health checks required before an instance is restarted.
uint32 restart_threshold = 5;
Type | Description |
int | The restartThreshold. |
getTimeout()
public Duration getTimeout()
Time before the health check is considered failed.
.google.protobuf.Duration timeout = 7;
Type | Description |
Duration | The timeout. |
getTimeoutBuilder()
public Duration.Builder getTimeoutBuilder()
Time before the health check is considered failed.
.google.protobuf.Duration timeout = 7;
Type | Description |
Builder |
getTimeoutOrBuilder()
public DurationOrBuilder getTimeoutOrBuilder()
Time before the health check is considered failed.
.google.protobuf.Duration timeout = 7;
Type | Description |
DurationOrBuilder |
getUnhealthyThreshold()
public int getUnhealthyThreshold()
Number of consecutive failed health checks required before removing traffic.
uint32 unhealthy_threshold = 4;
Type | Description |
int | The unhealthyThreshold. |
hasCheckInterval()
public boolean hasCheckInterval()
Interval between health checks.
.google.protobuf.Duration check_interval = 6;
Type | Description |
boolean | Whether the checkInterval field is set. |
hasTimeout()
public boolean hasTimeout()
Time before the health check is considered failed.
.google.protobuf.Duration timeout = 7;
Type | Description |
boolean | Whether the timeout field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeCheckInterval(Duration value)
public HealthCheck.Builder mergeCheckInterval(Duration value)
Interval between health checks.
.google.protobuf.Duration check_interval = 6;
Name | Description |
value | Duration |
Type | Description |
HealthCheck.Builder |
mergeFrom(HealthCheck other)
public HealthCheck.Builder mergeFrom(HealthCheck other)
Name | Description |
other | HealthCheck |
Type | Description |
HealthCheck.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public HealthCheck.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
HealthCheck.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public HealthCheck.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
HealthCheck.Builder |
mergeTimeout(Duration value)
public HealthCheck.Builder mergeTimeout(Duration value)
Time before the health check is considered failed.
.google.protobuf.Duration timeout = 7;
Name | Description |
value | Duration |
Type | Description |
HealthCheck.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final HealthCheck.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
HealthCheck.Builder |
setCheckInterval(Duration value)
public HealthCheck.Builder setCheckInterval(Duration value)
Interval between health checks.
.google.protobuf.Duration check_interval = 6;
Name | Description |
value | Duration |
Type | Description |
HealthCheck.Builder |
setCheckInterval(Duration.Builder builderForValue)
public HealthCheck.Builder setCheckInterval(Duration.Builder builderForValue)
Interval between health checks.
.google.protobuf.Duration check_interval = 6;
Name | Description |
builderForValue | Builder |
Type | Description |
HealthCheck.Builder |
setDisableHealthCheck(boolean value)
public HealthCheck.Builder setDisableHealthCheck(boolean value)
Whether to explicitly disable health checks for this instance.
bool disable_health_check = 1;
Name | Description |
value | boolean The disableHealthCheck to set. |
Type | Description |
HealthCheck.Builder | This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public HealthCheck.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
HealthCheck.Builder |
setHealthyThreshold(int value)
public HealthCheck.Builder setHealthyThreshold(int value)
Number of consecutive successful health checks required before receiving traffic.
uint32 healthy_threshold = 3;
Name | Description |
value | int The healthyThreshold to set. |
Type | Description |
HealthCheck.Builder | This builder for chaining. |
setHost(String value)
public HealthCheck.Builder setHost(String value)
Host header to send when performing an HTTP health check. Example: "myapp.appspot.com"
string host = 2;
Name | Description |
value | String The host to set. |
Type | Description |
HealthCheck.Builder | This builder for chaining. |
setHostBytes(ByteString value)
public HealthCheck.Builder setHostBytes(ByteString value)
Host header to send when performing an HTTP health check. Example: "myapp.appspot.com"
string host = 2;
Name | Description |
value | ByteString The bytes for host to set. |
Type | Description |
HealthCheck.Builder | This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public HealthCheck.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
HealthCheck.Builder |
setRestartThreshold(int value)
public HealthCheck.Builder setRestartThreshold(int value)
Number of consecutive failed health checks required before an instance is restarted.
uint32 restart_threshold = 5;
Name | Description |
value | int The restartThreshold to set. |
Type | Description |
HealthCheck.Builder | This builder for chaining. |
setTimeout(Duration value)
public HealthCheck.Builder setTimeout(Duration value)
Time before the health check is considered failed.
.google.protobuf.Duration timeout = 7;
Name | Description |
value | Duration |
Type | Description |
HealthCheck.Builder |
setTimeout(Duration.Builder builderForValue)
public HealthCheck.Builder setTimeout(Duration.Builder builderForValue)
Time before the health check is considered failed.
.google.protobuf.Duration timeout = 7;
Name | Description |
builderForValue | Builder |
Type | Description |
HealthCheck.Builder |
setUnhealthyThreshold(int value)
public HealthCheck.Builder setUnhealthyThreshold(int value)
Number of consecutive failed health checks required before removing traffic.
uint32 unhealthy_threshold = 4;
Name | Description |
value | int The unhealthyThreshold to set. |
Type | Description |
HealthCheck.Builder | This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final HealthCheck.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
HealthCheck.Builder |