Send feedback
Class HealthCheck (2.40.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 2.40.0 keyboard_arrow_down
public final class HealthCheck extends GeneratedMessageV3 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
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
CHECK_INTERVAL_FIELD_NUMBER
public static final int CHECK_INTERVAL_FIELD_NUMBER
Field Value Type Description int
DISABLE_HEALTH_CHECK_FIELD_NUMBER
public static final int DISABLE_HEALTH_CHECK_FIELD_NUMBER
Field Value Type Description int
HEALTHY_THRESHOLD_FIELD_NUMBER
public static final int HEALTHY_THRESHOLD_FIELD_NUMBER
Field Value Type Description int
HOST_FIELD_NUMBER
public static final int HOST_FIELD_NUMBER
Field Value Type Description int
RESTART_THRESHOLD_FIELD_NUMBER
public static final int RESTART_THRESHOLD_FIELD_NUMBER
Field Value Type Description int
TIMEOUT_FIELD_NUMBER
public static final int TIMEOUT_FIELD_NUMBER
Field Value Type Description int
UNHEALTHY_THRESHOLD_FIELD_NUMBER
public static final int UNHEALTHY_THRESHOLD_FIELD_NUMBER
Field Value Type Description int
Static Methods
getDefaultInstance()
public static HealthCheck getDefaultInstance ()
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
newBuilder()
public static HealthCheck . Builder newBuilder ()
newBuilder(HealthCheck prototype)
public static HealthCheck . Builder newBuilder ( HealthCheck prototype )
public static HealthCheck parseDelimitedFrom ( InputStream input )
public static HealthCheck parseDelimitedFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
parseFrom(byte[] data)
public static HealthCheck parseFrom ( byte [] data )
Parameter Name Description data
byte []
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static HealthCheck parseFrom ( byte [] data , ExtensionRegistryLite extensionRegistry )
parseFrom(ByteString data)
public static HealthCheck parseFrom ( ByteString data )
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static HealthCheck parseFrom ( ByteString data , ExtensionRegistryLite extensionRegistry )
public static HealthCheck parseFrom ( CodedInputStream input )
public static HealthCheck parseFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
public static HealthCheck parseFrom ( InputStream input )
public static HealthCheck parseFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
parseFrom(ByteBuffer data)
public static HealthCheck parseFrom ( ByteBuffer data )
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static HealthCheck parseFrom ( ByteBuffer data , ExtensionRegistryLite extensionRegistry )
parser()
public static Parser<HealthCheck> parser ()
Methods
equals(Object obj)
public boolean equals ( Object obj )
Parameter Name Description obj
Object
Overrides
getCheckInterval()
public Duration getCheckInterval ()
Interval between health checks.
.google.protobuf.Duration check_interval = 6;
Returns Type Description Duration
The checkInterval.
getCheckIntervalOrBuilder()
public DurationOrBuilder getCheckIntervalOrBuilder ()
Interval between health checks.
.google.protobuf.Duration check_interval = 6;
getDefaultInstanceForType()
public HealthCheck getDefaultInstanceForType ()
getDisableHealthCheck()
public boolean getDisableHealthCheck ()
Whether to explicitly disable health checks for this instance.
bool disable_health_check = 1;
Returns Type Description boolean
The disableHealthCheck.
getHealthyThreshold()
public int getHealthyThreshold ()
Number of consecutive successful health checks required before receiving
traffic.
uint32 healthy_threshold = 3;
Returns Type Description int
The healthyThreshold.
getHost()
Host header to send when performing an HTTP health check.
Example: "myapp.appspot.com"
string host = 2;
Returns 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;
Returns Type Description ByteString
The bytes for host.
getParserForType()
public Parser<HealthCheck> getParserForType ()
Overrides
getRestartThreshold()
public int getRestartThreshold ()
Number of consecutive failed health checks required before an instance is
restarted.
uint32 restart_threshold = 5;
Returns Type Description int
The restartThreshold.
getSerializedSize()
public int getSerializedSize ()
Returns Type Description int
Overrides
getTimeout()
public Duration getTimeout ()
Time before the health check is considered failed.
.google.protobuf.Duration timeout = 7;
Returns Type Description Duration
The timeout.
getTimeoutOrBuilder()
public DurationOrBuilder getTimeoutOrBuilder ()
Time before the health check is considered failed.
.google.protobuf.Duration timeout = 7;
getUnhealthyThreshold()
public int getUnhealthyThreshold ()
Number of consecutive failed health checks required before removing
traffic.
uint32 unhealthy_threshold = 4;
Returns Type Description int
The unhealthyThreshold.
hasCheckInterval()
public boolean hasCheckInterval ()
Interval between health checks.
.google.protobuf.Duration check_interval = 6;
Returns 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;
Returns Type Description boolean
Whether the timeout field is set.
hashCode()
Returns Type Description int
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
newBuilderForType()
public HealthCheck . Builder newBuilderForType ()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected HealthCheck . Builder newBuilderForType ( GeneratedMessageV3 . BuilderParent parent )
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance ( GeneratedMessageV3 . UnusedPrivateParameter unused )
Overrides
toBuilder()
public HealthCheck . Builder toBuilder ()
writeTo(CodedOutputStream output)
public void writeTo ( CodedOutputStream output )
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-28 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-28 UTC."],[],[]]