Package com.google.appengine.v1
Class ReadinessCheck.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<ReadinessCheck.Builder>
-
- com.google.appengine.v1.ReadinessCheck.Builder
-
- All Implemented Interfaces:
ReadinessCheckOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- ReadinessCheck
public static final class ReadinessCheck.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ReadinessCheck.Builder> implements ReadinessCheckOrBuilder
Readiness checking configuration for VM instances. Unhealthy instances are removed from traffic rotation.
Protobuf typegoogle.appengine.v1.ReadinessCheck
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ReadinessCheck.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
ReadinessCheck
build()
ReadinessCheck
buildPartial()
ReadinessCheck.Builder
clear()
ReadinessCheck.Builder
clearAppStartTimeout()
A maximum time limit on application initialization, measured from moment the application successfully replies to a healthcheck until it is ready to serve traffic.ReadinessCheck.Builder
clearCheckInterval()
Interval between health checks.ReadinessCheck.Builder
clearFailureThreshold()
Number of consecutive failed checks required before removing traffic.ReadinessCheck.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
ReadinessCheck.Builder
clearHost()
Host header to send when performing a HTTP Readiness check.ReadinessCheck.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
ReadinessCheck.Builder
clearPath()
The request path.ReadinessCheck.Builder
clearSuccessThreshold()
Number of consecutive successful checks required before receiving traffic.ReadinessCheck.Builder
clearTimeout()
Time before the check is considered failed.ReadinessCheck.Builder
clone()
com.google.protobuf.Duration
getAppStartTimeout()
A maximum time limit on application initialization, measured from moment the application successfully replies to a healthcheck until it is ready to serve traffic.com.google.protobuf.Duration.Builder
getAppStartTimeoutBuilder()
A maximum time limit on application initialization, measured from moment the application successfully replies to a healthcheck until it is ready to serve traffic.com.google.protobuf.DurationOrBuilder
getAppStartTimeoutOrBuilder()
A maximum time limit on application initialization, measured from moment the application successfully replies to a healthcheck until it is ready to serve traffic.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.ReadinessCheck
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
int
getFailureThreshold()
Number of consecutive failed checks required before removing traffic.String
getHost()
Host header to send when performing a HTTP Readiness check.com.google.protobuf.ByteString
getHostBytes()
Host header to send when performing a HTTP Readiness check.String
getPath()
The request path.com.google.protobuf.ByteString
getPathBytes()
The request path.int
getSuccessThreshold()
Number of consecutive successful checks required before receiving traffic.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
hasAppStartTimeout()
A maximum time limit on application initialization, measured from moment the application successfully replies to a healthcheck until it is ready to serve traffic.boolean
hasCheckInterval()
Interval between health checks.boolean
hasTimeout()
Time before the check is considered failed.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
ReadinessCheck.Builder
mergeAppStartTimeout(com.google.protobuf.Duration value)
A maximum time limit on application initialization, measured from moment the application successfully replies to a healthcheck until it is ready to serve traffic.ReadinessCheck.Builder
mergeCheckInterval(com.google.protobuf.Duration value)
Interval between health checks.ReadinessCheck.Builder
mergeFrom(ReadinessCheck other)
ReadinessCheck.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
ReadinessCheck.Builder
mergeFrom(com.google.protobuf.Message other)
ReadinessCheck.Builder
mergeTimeout(com.google.protobuf.Duration value)
Time before the check is considered failed.ReadinessCheck.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
ReadinessCheck.Builder
setAppStartTimeout(com.google.protobuf.Duration value)
A maximum time limit on application initialization, measured from moment the application successfully replies to a healthcheck until it is ready to serve traffic.ReadinessCheck.Builder
setAppStartTimeout(com.google.protobuf.Duration.Builder builderForValue)
A maximum time limit on application initialization, measured from moment the application successfully replies to a healthcheck until it is ready to serve traffic.ReadinessCheck.Builder
setCheckInterval(com.google.protobuf.Duration value)
Interval between health checks.ReadinessCheck.Builder
setCheckInterval(com.google.protobuf.Duration.Builder builderForValue)
Interval between health checks.ReadinessCheck.Builder
setFailureThreshold(int value)
Number of consecutive failed checks required before removing traffic.ReadinessCheck.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
ReadinessCheck.Builder
setHost(String value)
Host header to send when performing a HTTP Readiness check.ReadinessCheck.Builder
setHostBytes(com.google.protobuf.ByteString value)
Host header to send when performing a HTTP Readiness check.ReadinessCheck.Builder
setPath(String value)
The request path.ReadinessCheck.Builder
setPathBytes(com.google.protobuf.ByteString value)
The request path.ReadinessCheck.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
ReadinessCheck.Builder
setSuccessThreshold(int value)
Number of consecutive successful checks required before receiving traffic.ReadinessCheck.Builder
setTimeout(com.google.protobuf.Duration value)
Time before the check is considered failed.ReadinessCheck.Builder
setTimeout(com.google.protobuf.Duration.Builder builderForValue)
Time before the check is considered failed.ReadinessCheck.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<ReadinessCheck.Builder>
-
clear
public ReadinessCheck.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<ReadinessCheck.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<ReadinessCheck.Builder>
-
getDefaultInstanceForType
public ReadinessCheck getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public ReadinessCheck build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ReadinessCheck buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public ReadinessCheck.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<ReadinessCheck.Builder>
-
setField
public ReadinessCheck.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<ReadinessCheck.Builder>
-
clearField
public ReadinessCheck.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<ReadinessCheck.Builder>
-
clearOneof
public ReadinessCheck.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<ReadinessCheck.Builder>
-
setRepeatedField
public ReadinessCheck.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<ReadinessCheck.Builder>
-
addRepeatedField
public ReadinessCheck.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<ReadinessCheck.Builder>
-
mergeFrom
public ReadinessCheck.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ReadinessCheck.Builder>
-
mergeFrom
public ReadinessCheck.Builder mergeFrom(ReadinessCheck other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<ReadinessCheck.Builder>
-
mergeFrom
public ReadinessCheck.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<ReadinessCheck.Builder>
- Throws:
IOException
-
getPath
public String getPath()
The request path.
string path = 1;
- Specified by:
getPath
in interfaceReadinessCheckOrBuilder
- Returns:
- The path.
-
getPathBytes
public com.google.protobuf.ByteString getPathBytes()
The request path.
string path = 1;
- Specified by:
getPathBytes
in interfaceReadinessCheckOrBuilder
- Returns:
- The bytes for path.
-
setPath
public ReadinessCheck.Builder setPath(String value)
The request path.
string path = 1;
- Parameters:
value
- The path to set.- Returns:
- This builder for chaining.
-
clearPath
public ReadinessCheck.Builder clearPath()
The request path.
string path = 1;
- Returns:
- This builder for chaining.
-
setPathBytes
public ReadinessCheck.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 Readiness check. Example: "myapp.appspot.com"
string host = 2;
- Specified by:
getHost
in interfaceReadinessCheckOrBuilder
- Returns:
- The host.
-
getHostBytes
public com.google.protobuf.ByteString getHostBytes()
Host header to send when performing a HTTP Readiness check. Example: "myapp.appspot.com"
string host = 2;
- Specified by:
getHostBytes
in interfaceReadinessCheckOrBuilder
- Returns:
- The bytes for host.
-
setHost
public ReadinessCheck.Builder setHost(String value)
Host header to send when performing a HTTP Readiness check. Example: "myapp.appspot.com"
string host = 2;
- Parameters:
value
- The host to set.- Returns:
- This builder for chaining.
-
clearHost
public ReadinessCheck.Builder clearHost()
Host header to send when performing a HTTP Readiness check. Example: "myapp.appspot.com"
string host = 2;
- Returns:
- This builder for chaining.
-
setHostBytes
public ReadinessCheck.Builder setHostBytes(com.google.protobuf.ByteString value)
Host header to send when performing a HTTP Readiness 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 removing traffic.
uint32 failure_threshold = 3;
- Specified by:
getFailureThreshold
in interfaceReadinessCheckOrBuilder
- Returns:
- The failureThreshold.
-
setFailureThreshold
public ReadinessCheck.Builder setFailureThreshold(int value)
Number of consecutive failed checks required before removing traffic.
uint32 failure_threshold = 3;
- Parameters:
value
- The failureThreshold to set.- Returns:
- This builder for chaining.
-
clearFailureThreshold
public ReadinessCheck.Builder clearFailureThreshold()
Number of consecutive failed checks required before removing traffic.
uint32 failure_threshold = 3;
- Returns:
- This builder for chaining.
-
getSuccessThreshold
public int getSuccessThreshold()
Number of consecutive successful checks required before receiving traffic.
uint32 success_threshold = 4;
- Specified by:
getSuccessThreshold
in interfaceReadinessCheckOrBuilder
- Returns:
- The successThreshold.
-
setSuccessThreshold
public ReadinessCheck.Builder setSuccessThreshold(int value)
Number of consecutive successful checks required before receiving traffic.
uint32 success_threshold = 4;
- Parameters:
value
- The successThreshold to set.- Returns:
- This builder for chaining.
-
clearSuccessThreshold
public ReadinessCheck.Builder clearSuccessThreshold()
Number of consecutive successful checks required before receiving traffic.
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 interfaceReadinessCheckOrBuilder
- 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 interfaceReadinessCheckOrBuilder
- Returns:
- The checkInterval.
-
setCheckInterval
public ReadinessCheck.Builder setCheckInterval(com.google.protobuf.Duration value)
Interval between health checks.
.google.protobuf.Duration check_interval = 5;
-
setCheckInterval
public ReadinessCheck.Builder setCheckInterval(com.google.protobuf.Duration.Builder builderForValue)
Interval between health checks.
.google.protobuf.Duration check_interval = 5;
-
mergeCheckInterval
public ReadinessCheck.Builder mergeCheckInterval(com.google.protobuf.Duration value)
Interval between health checks.
.google.protobuf.Duration check_interval = 5;
-
clearCheckInterval
public ReadinessCheck.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 interfaceReadinessCheckOrBuilder
-
hasTimeout
public boolean hasTimeout()
Time before the check is considered failed.
.google.protobuf.Duration timeout = 6;
- Specified by:
hasTimeout
in interfaceReadinessCheckOrBuilder
- 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 interfaceReadinessCheckOrBuilder
- Returns:
- The timeout.
-
setTimeout
public ReadinessCheck.Builder setTimeout(com.google.protobuf.Duration value)
Time before the check is considered failed.
.google.protobuf.Duration timeout = 6;
-
setTimeout
public ReadinessCheck.Builder setTimeout(com.google.protobuf.Duration.Builder builderForValue)
Time before the check is considered failed.
.google.protobuf.Duration timeout = 6;
-
mergeTimeout
public ReadinessCheck.Builder mergeTimeout(com.google.protobuf.Duration value)
Time before the check is considered failed.
.google.protobuf.Duration timeout = 6;
-
clearTimeout
public ReadinessCheck.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 interfaceReadinessCheckOrBuilder
-
hasAppStartTimeout
public boolean hasAppStartTimeout()
A maximum time limit on application initialization, measured from moment the application successfully replies to a healthcheck until it is ready to serve traffic.
.google.protobuf.Duration app_start_timeout = 7;
- Specified by:
hasAppStartTimeout
in interfaceReadinessCheckOrBuilder
- Returns:
- Whether the appStartTimeout field is set.
-
getAppStartTimeout
public com.google.protobuf.Duration getAppStartTimeout()
A maximum time limit on application initialization, measured from moment the application successfully replies to a healthcheck until it is ready to serve traffic.
.google.protobuf.Duration app_start_timeout = 7;
- Specified by:
getAppStartTimeout
in interfaceReadinessCheckOrBuilder
- Returns:
- The appStartTimeout.
-
setAppStartTimeout
public ReadinessCheck.Builder setAppStartTimeout(com.google.protobuf.Duration value)
A maximum time limit on application initialization, measured from moment the application successfully replies to a healthcheck until it is ready to serve traffic.
.google.protobuf.Duration app_start_timeout = 7;
-
setAppStartTimeout
public ReadinessCheck.Builder setAppStartTimeout(com.google.protobuf.Duration.Builder builderForValue)
A maximum time limit on application initialization, measured from moment the application successfully replies to a healthcheck until it is ready to serve traffic.
.google.protobuf.Duration app_start_timeout = 7;
-
mergeAppStartTimeout
public ReadinessCheck.Builder mergeAppStartTimeout(com.google.protobuf.Duration value)
A maximum time limit on application initialization, measured from moment the application successfully replies to a healthcheck until it is ready to serve traffic.
.google.protobuf.Duration app_start_timeout = 7;
-
clearAppStartTimeout
public ReadinessCheck.Builder clearAppStartTimeout()
A maximum time limit on application initialization, measured from moment the application successfully replies to a healthcheck until it is ready to serve traffic.
.google.protobuf.Duration app_start_timeout = 7;
-
getAppStartTimeoutBuilder
public com.google.protobuf.Duration.Builder getAppStartTimeoutBuilder()
A maximum time limit on application initialization, measured from moment the application successfully replies to a healthcheck until it is ready to serve traffic.
.google.protobuf.Duration app_start_timeout = 7;
-
getAppStartTimeoutOrBuilder
public com.google.protobuf.DurationOrBuilder getAppStartTimeoutOrBuilder()
A maximum time limit on application initialization, measured from moment the application successfully replies to a healthcheck until it is ready to serve traffic.
.google.protobuf.Duration app_start_timeout = 7;
- Specified by:
getAppStartTimeoutOrBuilder
in interfaceReadinessCheckOrBuilder
-
setUnknownFields
public final ReadinessCheck.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ReadinessCheck.Builder>
-
mergeUnknownFields
public final ReadinessCheck.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ReadinessCheck.Builder>
-
-