Class 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 type google.appengine.v1.ReadinessCheck
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<ReadinessCheck.Builder>
      • clear

        public ReadinessCheck.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<ReadinessCheck.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<ReadinessCheck.Builder>
      • getDefaultInstanceForType

        public ReadinessCheck getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public ReadinessCheck build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public ReadinessCheck buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public ReadinessCheck.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<ReadinessCheck.Builder>
      • setField

        public ReadinessCheck.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                               Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<ReadinessCheck.Builder>
      • clearField

        public ReadinessCheck.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<ReadinessCheck.Builder>
      • clearOneof

        public ReadinessCheck.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.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 interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ReadinessCheck.Builder>
      • addRepeatedField

        public ReadinessCheck.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                       Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ReadinessCheck.Builder>
      • mergeFrom

        public ReadinessCheck.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ReadinessCheck.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.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 interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ReadinessCheck.Builder>
        Throws:
        IOException
      • getPathBytes

        public com.google.protobuf.ByteString getPathBytes()
         The request path.
         
        string path = 1;
        Specified by:
        getPathBytes in interface ReadinessCheckOrBuilder
        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 interface ReadinessCheckOrBuilder
        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 interface ReadinessCheckOrBuilder
        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 interface ReadinessCheckOrBuilder
        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 interface ReadinessCheckOrBuilder
        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 interface ReadinessCheckOrBuilder
        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 interface ReadinessCheckOrBuilder
        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 interface ReadinessCheckOrBuilder
      • hasTimeout

        public boolean hasTimeout()
         Time before the check is considered failed.
         
        .google.protobuf.Duration timeout = 6;
        Specified by:
        hasTimeout in interface ReadinessCheckOrBuilder
        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 interface ReadinessCheckOrBuilder
        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 interface ReadinessCheckOrBuilder
      • 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 interface ReadinessCheckOrBuilder
        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 interface ReadinessCheckOrBuilder
        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 interface ReadinessCheckOrBuilder
      • setUnknownFields

        public final ReadinessCheck.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ReadinessCheck.Builder>
      • mergeUnknownFields

        public final ReadinessCheck.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ReadinessCheck.Builder>