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.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)LivenessCheckbuild()LivenessCheckbuildPartial()LivenessCheck.Builderclear()LivenessCheck.BuilderclearCheckInterval()Interval between health checks.LivenessCheck.BuilderclearFailureThreshold()Number of consecutive failed checks required before considering the VM unhealthy.LivenessCheck.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)LivenessCheck.BuilderclearHost()Host header to send when performing a HTTP Liveness check.LivenessCheck.BuilderclearInitialDelay()The initial delay before starting to execute the checks.LivenessCheck.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)LivenessCheck.BuilderclearPath()The request path.LivenessCheck.BuilderclearSuccessThreshold()Number of consecutive successful checks required before considering the VM healthy.LivenessCheck.BuilderclearTimeout()Time before the check is considered failed.LivenessCheck.Builderclone()com.google.protobuf.DurationgetCheckInterval()Interval between health checks.com.google.protobuf.Duration.BuildergetCheckIntervalBuilder()Interval between health checks.com.google.protobuf.DurationOrBuildergetCheckIntervalOrBuilder()Interval between health checks.LivenessCheckgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()intgetFailureThreshold()Number of consecutive failed checks required before considering the VM unhealthy.StringgetHost()Host header to send when performing a HTTP Liveness check.com.google.protobuf.ByteStringgetHostBytes()Host header to send when performing a HTTP Liveness check.com.google.protobuf.DurationgetInitialDelay()The initial delay before starting to execute the checks.com.google.protobuf.Duration.BuildergetInitialDelayBuilder()The initial delay before starting to execute the checks.com.google.protobuf.DurationOrBuildergetInitialDelayOrBuilder()The initial delay before starting to execute the checks.StringgetPath()The request path.com.google.protobuf.ByteStringgetPathBytes()The request path.intgetSuccessThreshold()Number of consecutive successful checks required before considering the VM healthy.com.google.protobuf.DurationgetTimeout()Time before the check is considered failed.com.google.protobuf.Duration.BuildergetTimeoutBuilder()Time before the check is considered failed.com.google.protobuf.DurationOrBuildergetTimeoutOrBuilder()Time before the check is considered failed.booleanhasCheckInterval()Interval between health checks.booleanhasInitialDelay()The initial delay before starting to execute the checks.booleanhasTimeout()Time before the check is considered failed.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()LivenessCheck.BuildermergeCheckInterval(com.google.protobuf.Duration value)Interval between health checks.LivenessCheck.BuildermergeFrom(LivenessCheck other)LivenessCheck.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)LivenessCheck.BuildermergeFrom(com.google.protobuf.Message other)LivenessCheck.BuildermergeInitialDelay(com.google.protobuf.Duration value)The initial delay before starting to execute the checks.LivenessCheck.BuildermergeTimeout(com.google.protobuf.Duration value)Time before the check is considered failed.LivenessCheck.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)LivenessCheck.BuildersetCheckInterval(com.google.protobuf.Duration value)Interval between health checks.LivenessCheck.BuildersetCheckInterval(com.google.protobuf.Duration.Builder builderForValue)Interval between health checks.LivenessCheck.BuildersetFailureThreshold(int value)Number of consecutive failed checks required before considering the VM unhealthy.LivenessCheck.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)LivenessCheck.BuildersetHost(String value)Host header to send when performing a HTTP Liveness check.LivenessCheck.BuildersetHostBytes(com.google.protobuf.ByteString value)Host header to send when performing a HTTP Liveness check.LivenessCheck.BuildersetInitialDelay(com.google.protobuf.Duration value)The initial delay before starting to execute the checks.LivenessCheck.BuildersetInitialDelay(com.google.protobuf.Duration.Builder builderForValue)The initial delay before starting to execute the checks.LivenessCheck.BuildersetPath(String value)The request path.LivenessCheck.BuildersetPathBytes(com.google.protobuf.ByteString value)The request path.LivenessCheck.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)LivenessCheck.BuildersetSuccessThreshold(int value)Number of consecutive successful checks required before considering the VM healthy.LivenessCheck.BuildersetTimeout(com.google.protobuf.Duration value)Time before the check is considered failed.LivenessCheck.BuildersetTimeout(com.google.protobuf.Duration.Builder builderForValue)Time before the check is considered failed.LivenessCheck.BuildersetUnknownFields(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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<LivenessCheck.Builder>
-
clear
public LivenessCheck.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<LivenessCheck.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<LivenessCheck.Builder>
-
getDefaultInstanceForType
public LivenessCheck getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public LivenessCheck build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public LivenessCheck buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public LivenessCheck.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<LivenessCheck.Builder>
-
setField
public LivenessCheck.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<LivenessCheck.Builder>
-
clearField
public LivenessCheck.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<LivenessCheck.Builder>
-
clearOneof
public LivenessCheck.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<LivenessCheck.Builder>
-
setRepeatedField
public LivenessCheck.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<LivenessCheck.Builder>
-
addRepeatedField
public LivenessCheck.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<LivenessCheck.Builder>
-
mergeFrom
public LivenessCheck.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<LivenessCheck.Builder>
-
mergeFrom
public LivenessCheck.Builder mergeFrom(LivenessCheck other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin 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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<LivenessCheck.Builder>- Throws:
IOException
-
getPath
public String getPath()
The request path.
string path = 1;- Specified by:
getPathin interfaceLivenessCheckOrBuilder- Returns:
- The path.
-
getPathBytes
public com.google.protobuf.ByteString getPathBytes()
The request path.
string path = 1;- Specified by:
getPathBytesin 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:
getHostin 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:
getHostBytesin 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:
getFailureThresholdin 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:
getSuccessThresholdin 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:
hasCheckIntervalin 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:
getCheckIntervalin 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:
getCheckIntervalOrBuilderin interfaceLivenessCheckOrBuilder
-
hasTimeout
public boolean hasTimeout()
Time before the check is considered failed.
.google.protobuf.Duration timeout = 6;- Specified by:
hasTimeoutin 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:
getTimeoutin 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:
getTimeoutOrBuilderin interfaceLivenessCheckOrBuilder
-
hasInitialDelay
public boolean hasInitialDelay()
The initial delay before starting to execute the checks.
.google.protobuf.Duration initial_delay = 7;- Specified by:
hasInitialDelayin 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:
getInitialDelayin 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:
getInitialDelayOrBuilderin interfaceLivenessCheckOrBuilder
-
setUnknownFields
public final LivenessCheck.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<LivenessCheck.Builder>
-
mergeUnknownFields
public final LivenessCheck.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<LivenessCheck.Builder>
-
-