Package com.google.appengine.v1
Class LivenessCheck.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<LivenessCheck.Builder>
-
- com.google.appengine.v1.LivenessCheck.Builder
-
- All Implemented Interfaces:
LivenessCheckOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- LivenessCheck
public static final class LivenessCheck.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<LivenessCheck.Builder> implements LivenessCheckOrBuilder
Health checking configuration for VM instances. Unhealthy instances are killed and replaced with new instances.
Protobuf typegoogle.appengine.v1.LivenessCheck
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description LivenessCheck.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
LivenessCheck
build()
LivenessCheck
buildPartial()
LivenessCheck.Builder
clear()
LivenessCheck.Builder
clearCheckInterval()
Interval between health checks.LivenessCheck.Builder
clearFailureThreshold()
Number of consecutive failed checks required before considering the VM unhealthy.LivenessCheck.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
LivenessCheck.Builder
clearHost()
Host header to send when performing a HTTP Liveness check.LivenessCheck.Builder
clearInitialDelay()
The initial delay before starting to execute the checks.LivenessCheck.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
LivenessCheck.Builder
clearPath()
The request path.LivenessCheck.Builder
clearSuccessThreshold()
Number of consecutive successful checks required before considering the VM healthy.LivenessCheck.Builder
clearTimeout()
Time before the check is considered failed.LivenessCheck.Builder
clone()
com.google.protobuf.Duration
getCheckInterval()
Interval between health checks.com.google.protobuf.Duration.Builder
getCheckIntervalBuilder()
Interval between health checks.com.google.protobuf.DurationOrBuilder
getCheckIntervalOrBuilder()
Interval between health checks.LivenessCheck
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
int
getFailureThreshold()
Number of consecutive failed checks required before considering the VM unhealthy.String
getHost()
Host header to send when performing a HTTP Liveness check.com.google.protobuf.ByteString
getHostBytes()
Host header to send when performing a HTTP Liveness check.com.google.protobuf.Duration
getInitialDelay()
The initial delay before starting to execute the checks.com.google.protobuf.Duration.Builder
getInitialDelayBuilder()
The initial delay before starting to execute the checks.com.google.protobuf.DurationOrBuilder
getInitialDelayOrBuilder()
The initial delay before starting to execute the checks.String
getPath()
The request path.com.google.protobuf.ByteString
getPathBytes()
The request path.int
getSuccessThreshold()
Number of consecutive successful checks required before considering the VM healthy.com.google.protobuf.Duration
getTimeout()
Time before the check is considered failed.com.google.protobuf.Duration.Builder
getTimeoutBuilder()
Time before the check is considered failed.com.google.protobuf.DurationOrBuilder
getTimeoutOrBuilder()
Time before the check is considered failed.boolean
hasCheckInterval()
Interval between health checks.boolean
hasInitialDelay()
The initial delay before starting to execute the checks.boolean
hasTimeout()
Time before the check is considered failed.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
LivenessCheck.Builder
mergeCheckInterval(com.google.protobuf.Duration value)
Interval between health checks.LivenessCheck.Builder
mergeFrom(LivenessCheck other)
LivenessCheck.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
LivenessCheck.Builder
mergeFrom(com.google.protobuf.Message other)
LivenessCheck.Builder
mergeInitialDelay(com.google.protobuf.Duration value)
The initial delay before starting to execute the checks.LivenessCheck.Builder
mergeTimeout(com.google.protobuf.Duration value)
Time before the check is considered failed.LivenessCheck.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
LivenessCheck.Builder
setCheckInterval(com.google.protobuf.Duration value)
Interval between health checks.LivenessCheck.Builder
setCheckInterval(com.google.protobuf.Duration.Builder builderForValue)
Interval between health checks.LivenessCheck.Builder
setFailureThreshold(int value)
Number of consecutive failed checks required before considering the VM unhealthy.LivenessCheck.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
LivenessCheck.Builder
setHost(String value)
Host header to send when performing a HTTP Liveness check.LivenessCheck.Builder
setHostBytes(com.google.protobuf.ByteString value)
Host header to send when performing a HTTP Liveness check.LivenessCheck.Builder
setInitialDelay(com.google.protobuf.Duration value)
The initial delay before starting to execute the checks.LivenessCheck.Builder
setInitialDelay(com.google.protobuf.Duration.Builder builderForValue)
The initial delay before starting to execute the checks.LivenessCheck.Builder
setPath(String value)
The request path.LivenessCheck.Builder
setPathBytes(com.google.protobuf.ByteString value)
The request path.LivenessCheck.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
LivenessCheck.Builder
setSuccessThreshold(int value)
Number of consecutive successful checks required before considering the VM healthy.LivenessCheck.Builder
setTimeout(com.google.protobuf.Duration value)
Time before the check is considered failed.LivenessCheck.Builder
setTimeout(com.google.protobuf.Duration.Builder builderForValue)
Time before the check is considered failed.LivenessCheck.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<LivenessCheck.Builder>
-
clear
public LivenessCheck.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<LivenessCheck.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<LivenessCheck.Builder>
-
getDefaultInstanceForType
public LivenessCheck getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public LivenessCheck build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public LivenessCheck buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public LivenessCheck.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<LivenessCheck.Builder>
-
setField
public LivenessCheck.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<LivenessCheck.Builder>
-
clearField
public LivenessCheck.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<LivenessCheck.Builder>
-
clearOneof
public LivenessCheck.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<LivenessCheck.Builder>
-
setRepeatedField
public LivenessCheck.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<LivenessCheck.Builder>
-
addRepeatedField
public LivenessCheck.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<LivenessCheck.Builder>
-
mergeFrom
public LivenessCheck.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<LivenessCheck.Builder>
-
mergeFrom
public LivenessCheck.Builder mergeFrom(LivenessCheck other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<LivenessCheck.Builder>
-
mergeFrom
public LivenessCheck.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<LivenessCheck.Builder>
- Throws:
IOException
-
getPath
public String getPath()
The request path.
string path = 1;
- Specified by:
getPath
in interfaceLivenessCheckOrBuilder
- Returns:
- The path.
-
getPathBytes
public com.google.protobuf.ByteString getPathBytes()
The request path.
string path = 1;
- Specified by:
getPathBytes
in interfaceLivenessCheckOrBuilder
- Returns:
- The bytes for path.
-
setPath
public LivenessCheck.Builder setPath(String value)
The request path.
string path = 1;
- Parameters:
value
- The path to set.- Returns:
- This builder for chaining.
-
clearPath
public LivenessCheck.Builder clearPath()
The request path.
string path = 1;
- Returns:
- This builder for chaining.
-
setPathBytes
public LivenessCheck.Builder setPathBytes(com.google.protobuf.ByteString value)
The request path.
string path = 1;
- Parameters:
value
- The bytes for path to set.- Returns:
- This builder for chaining.
-
getHost
public String getHost()
Host header to send when performing a HTTP Liveness check. Example: "myapp.appspot.com"
string host = 2;
- Specified by:
getHost
in interfaceLivenessCheckOrBuilder
- Returns:
- The host.
-
getHostBytes
public com.google.protobuf.ByteString getHostBytes()
Host header to send when performing a HTTP Liveness check. Example: "myapp.appspot.com"
string host = 2;
- Specified by:
getHostBytes
in interfaceLivenessCheckOrBuilder
- Returns:
- The bytes for host.
-
setHost
public LivenessCheck.Builder setHost(String value)
Host header to send when performing a HTTP Liveness check. Example: "myapp.appspot.com"
string host = 2;
- Parameters:
value
- The host to set.- Returns:
- This builder for chaining.
-
clearHost
public LivenessCheck.Builder clearHost()
Host header to send when performing a HTTP Liveness check. Example: "myapp.appspot.com"
string host = 2;
- Returns:
- This builder for chaining.
-
setHostBytes
public LivenessCheck.Builder setHostBytes(com.google.protobuf.ByteString value)
Host header to send when performing a HTTP Liveness check. Example: "myapp.appspot.com"
string host = 2;
- Parameters:
value
- The bytes for host to set.- Returns:
- This builder for chaining.
-
getFailureThreshold
public int getFailureThreshold()
Number of consecutive failed checks required before considering the VM unhealthy.
uint32 failure_threshold = 3;
- Specified by:
getFailureThreshold
in interfaceLivenessCheckOrBuilder
- Returns:
- The failureThreshold.
-
setFailureThreshold
public LivenessCheck.Builder setFailureThreshold(int value)
Number of consecutive failed checks required before considering the VM unhealthy.
uint32 failure_threshold = 3;
- Parameters:
value
- The failureThreshold to set.- Returns:
- This builder for chaining.
-
clearFailureThreshold
public LivenessCheck.Builder clearFailureThreshold()
Number of consecutive failed checks required before considering the VM unhealthy.
uint32 failure_threshold = 3;
- Returns:
- This builder for chaining.
-
getSuccessThreshold
public int getSuccessThreshold()
Number of consecutive successful checks required before considering the VM healthy.
uint32 success_threshold = 4;
- Specified by:
getSuccessThreshold
in interfaceLivenessCheckOrBuilder
- Returns:
- The successThreshold.
-
setSuccessThreshold
public LivenessCheck.Builder setSuccessThreshold(int value)
Number of consecutive successful checks required before considering the VM healthy.
uint32 success_threshold = 4;
- Parameters:
value
- The successThreshold to set.- Returns:
- This builder for chaining.
-
clearSuccessThreshold
public LivenessCheck.Builder clearSuccessThreshold()
Number of consecutive successful checks required before considering the VM healthy.
uint32 success_threshold = 4;
- Returns:
- This builder for chaining.
-
hasCheckInterval
public boolean hasCheckInterval()
Interval between health checks.
.google.protobuf.Duration check_interval = 5;
- Specified by:
hasCheckInterval
in interfaceLivenessCheckOrBuilder
- Returns:
- Whether the checkInterval field is set.
-
getCheckInterval
public com.google.protobuf.Duration getCheckInterval()
Interval between health checks.
.google.protobuf.Duration check_interval = 5;
- Specified by:
getCheckInterval
in interfaceLivenessCheckOrBuilder
- Returns:
- The checkInterval.
-
setCheckInterval
public LivenessCheck.Builder setCheckInterval(com.google.protobuf.Duration value)
Interval between health checks.
.google.protobuf.Duration check_interval = 5;
-
setCheckInterval
public LivenessCheck.Builder setCheckInterval(com.google.protobuf.Duration.Builder builderForValue)
Interval between health checks.
.google.protobuf.Duration check_interval = 5;
-
mergeCheckInterval
public LivenessCheck.Builder mergeCheckInterval(com.google.protobuf.Duration value)
Interval between health checks.
.google.protobuf.Duration check_interval = 5;
-
clearCheckInterval
public LivenessCheck.Builder clearCheckInterval()
Interval between health checks.
.google.protobuf.Duration check_interval = 5;
-
getCheckIntervalBuilder
public com.google.protobuf.Duration.Builder getCheckIntervalBuilder()
Interval between health checks.
.google.protobuf.Duration check_interval = 5;
-
getCheckIntervalOrBuilder
public com.google.protobuf.DurationOrBuilder getCheckIntervalOrBuilder()
Interval between health checks.
.google.protobuf.Duration check_interval = 5;
- Specified by:
getCheckIntervalOrBuilder
in interfaceLivenessCheckOrBuilder
-
hasTimeout
public boolean hasTimeout()
Time before the check is considered failed.
.google.protobuf.Duration timeout = 6;
- Specified by:
hasTimeout
in interfaceLivenessCheckOrBuilder
- Returns:
- Whether the timeout field is set.
-
getTimeout
public com.google.protobuf.Duration getTimeout()
Time before the check is considered failed.
.google.protobuf.Duration timeout = 6;
- Specified by:
getTimeout
in interfaceLivenessCheckOrBuilder
- Returns:
- The timeout.
-
setTimeout
public LivenessCheck.Builder setTimeout(com.google.protobuf.Duration value)
Time before the check is considered failed.
.google.protobuf.Duration timeout = 6;
-
setTimeout
public LivenessCheck.Builder setTimeout(com.google.protobuf.Duration.Builder builderForValue)
Time before the check is considered failed.
.google.protobuf.Duration timeout = 6;
-
mergeTimeout
public LivenessCheck.Builder mergeTimeout(com.google.protobuf.Duration value)
Time before the check is considered failed.
.google.protobuf.Duration timeout = 6;
-
clearTimeout
public LivenessCheck.Builder clearTimeout()
Time before the check is considered failed.
.google.protobuf.Duration timeout = 6;
-
getTimeoutBuilder
public com.google.protobuf.Duration.Builder getTimeoutBuilder()
Time before the check is considered failed.
.google.protobuf.Duration timeout = 6;
-
getTimeoutOrBuilder
public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder()
Time before the check is considered failed.
.google.protobuf.Duration timeout = 6;
- Specified by:
getTimeoutOrBuilder
in interfaceLivenessCheckOrBuilder
-
hasInitialDelay
public boolean hasInitialDelay()
The initial delay before starting to execute the checks.
.google.protobuf.Duration initial_delay = 7;
- Specified by:
hasInitialDelay
in interfaceLivenessCheckOrBuilder
- Returns:
- Whether the initialDelay field is set.
-
getInitialDelay
public com.google.protobuf.Duration getInitialDelay()
The initial delay before starting to execute the checks.
.google.protobuf.Duration initial_delay = 7;
- Specified by:
getInitialDelay
in interfaceLivenessCheckOrBuilder
- Returns:
- The initialDelay.
-
setInitialDelay
public LivenessCheck.Builder setInitialDelay(com.google.protobuf.Duration value)
The initial delay before starting to execute the checks.
.google.protobuf.Duration initial_delay = 7;
-
setInitialDelay
public LivenessCheck.Builder setInitialDelay(com.google.protobuf.Duration.Builder builderForValue)
The initial delay before starting to execute the checks.
.google.protobuf.Duration initial_delay = 7;
-
mergeInitialDelay
public LivenessCheck.Builder mergeInitialDelay(com.google.protobuf.Duration value)
The initial delay before starting to execute the checks.
.google.protobuf.Duration initial_delay = 7;
-
clearInitialDelay
public LivenessCheck.Builder clearInitialDelay()
The initial delay before starting to execute the checks.
.google.protobuf.Duration initial_delay = 7;
-
getInitialDelayBuilder
public com.google.protobuf.Duration.Builder getInitialDelayBuilder()
The initial delay before starting to execute the checks.
.google.protobuf.Duration initial_delay = 7;
-
getInitialDelayOrBuilder
public com.google.protobuf.DurationOrBuilder getInitialDelayOrBuilder()
The initial delay before starting to execute the checks.
.google.protobuf.Duration initial_delay = 7;
- Specified by:
getInitialDelayOrBuilder
in interfaceLivenessCheckOrBuilder
-
setUnknownFields
public final LivenessCheck.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<LivenessCheck.Builder>
-
mergeUnknownFields
public final LivenessCheck.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<LivenessCheck.Builder>
-
-