Class HealthCheck.Builder

  • All Implemented Interfaces:
    HealthCheckOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    HealthCheck

    public static final class HealthCheck.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<HealthCheck.Builder>
    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
    • 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<HealthCheck.Builder>
      • clear

        public HealthCheck.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<HealthCheck.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<HealthCheck.Builder>
      • getDefaultInstanceForType

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

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

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

        public HealthCheck.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<HealthCheck.Builder>
      • setField

        public HealthCheck.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<HealthCheck.Builder>
      • clearField

        public HealthCheck.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<HealthCheck.Builder>
      • clearOneof

        public HealthCheck.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<HealthCheck.Builder>
      • setRepeatedField

        public HealthCheck.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<HealthCheck.Builder>
      • addRepeatedField

        public HealthCheck.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<HealthCheck.Builder>
      • mergeFrom

        public HealthCheck.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<HealthCheck.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<HealthCheck.Builder>
      • mergeFrom

        public HealthCheck.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<HealthCheck.Builder>
        Throws:
        IOException
      • getDisableHealthCheck

        public boolean getDisableHealthCheck()
         Whether to explicitly disable health checks for this instance.
         
        bool disable_health_check = 1;
        Specified by:
        getDisableHealthCheck in interface HealthCheckOrBuilder
        Returns:
        The disableHealthCheck.
      • setDisableHealthCheck

        public HealthCheck.Builder setDisableHealthCheck​(boolean value)
         Whether to explicitly disable health checks for this instance.
         
        bool disable_health_check = 1;
        Parameters:
        value - The disableHealthCheck to set.
        Returns:
        This builder for chaining.
      • clearDisableHealthCheck

        public HealthCheck.Builder clearDisableHealthCheck()
         Whether to explicitly disable health checks for this instance.
         
        bool disable_health_check = 1;
        Returns:
        This builder for chaining.
      • getHost

        public String getHost()
         Host header to send when performing an HTTP health check.
         Example: "myapp.appspot.com"
         
        string host = 2;
        Specified by:
        getHost in interface HealthCheckOrBuilder
        Returns:
        The host.
      • getHostBytes

        public com.google.protobuf.ByteString getHostBytes()
         Host header to send when performing an HTTP health check.
         Example: "myapp.appspot.com"
         
        string host = 2;
        Specified by:
        getHostBytes in interface HealthCheckOrBuilder
        Returns:
        The bytes for host.
      • setHost

        public HealthCheck.Builder setHost​(String value)
         Host header to send when performing an HTTP health check.
         Example: "myapp.appspot.com"
         
        string host = 2;
        Parameters:
        value - The host to set.
        Returns:
        This builder for chaining.
      • clearHost

        public HealthCheck.Builder clearHost()
         Host header to send when performing an HTTP health check.
         Example: "myapp.appspot.com"
         
        string host = 2;
        Returns:
        This builder for chaining.
      • setHostBytes

        public HealthCheck.Builder setHostBytes​(com.google.protobuf.ByteString value)
         Host header to send when performing an HTTP health check.
         Example: "myapp.appspot.com"
         
        string host = 2;
        Parameters:
        value - The bytes for host to set.
        Returns:
        This builder for chaining.
      • getHealthyThreshold

        public int getHealthyThreshold()
         Number of consecutive successful health checks required before receiving
         traffic.
         
        uint32 healthy_threshold = 3;
        Specified by:
        getHealthyThreshold in interface HealthCheckOrBuilder
        Returns:
        The healthyThreshold.
      • setHealthyThreshold

        public HealthCheck.Builder setHealthyThreshold​(int value)
         Number of consecutive successful health checks required before receiving
         traffic.
         
        uint32 healthy_threshold = 3;
        Parameters:
        value - The healthyThreshold to set.
        Returns:
        This builder for chaining.
      • clearHealthyThreshold

        public HealthCheck.Builder clearHealthyThreshold()
         Number of consecutive successful health checks required before receiving
         traffic.
         
        uint32 healthy_threshold = 3;
        Returns:
        This builder for chaining.
      • getUnhealthyThreshold

        public int getUnhealthyThreshold()
         Number of consecutive failed health checks required before removing
         traffic.
         
        uint32 unhealthy_threshold = 4;
        Specified by:
        getUnhealthyThreshold in interface HealthCheckOrBuilder
        Returns:
        The unhealthyThreshold.
      • setUnhealthyThreshold

        public HealthCheck.Builder setUnhealthyThreshold​(int value)
         Number of consecutive failed health checks required before removing
         traffic.
         
        uint32 unhealthy_threshold = 4;
        Parameters:
        value - The unhealthyThreshold to set.
        Returns:
        This builder for chaining.
      • clearUnhealthyThreshold

        public HealthCheck.Builder clearUnhealthyThreshold()
         Number of consecutive failed health checks required before removing
         traffic.
         
        uint32 unhealthy_threshold = 4;
        Returns:
        This builder for chaining.
      • getRestartThreshold

        public int getRestartThreshold()
         Number of consecutive failed health checks required before an instance is
         restarted.
         
        uint32 restart_threshold = 5;
        Specified by:
        getRestartThreshold in interface HealthCheckOrBuilder
        Returns:
        The restartThreshold.
      • setRestartThreshold

        public HealthCheck.Builder setRestartThreshold​(int value)
         Number of consecutive failed health checks required before an instance is
         restarted.
         
        uint32 restart_threshold = 5;
        Parameters:
        value - The restartThreshold to set.
        Returns:
        This builder for chaining.
      • clearRestartThreshold

        public HealthCheck.Builder clearRestartThreshold()
         Number of consecutive failed health checks required before an instance is
         restarted.
         
        uint32 restart_threshold = 5;
        Returns:
        This builder for chaining.
      • hasCheckInterval

        public boolean hasCheckInterval()
         Interval between health checks.
         
        .google.protobuf.Duration check_interval = 6;
        Specified by:
        hasCheckInterval in interface HealthCheckOrBuilder
        Returns:
        Whether the checkInterval field is set.
      • getCheckInterval

        public com.google.protobuf.Duration getCheckInterval()
         Interval between health checks.
         
        .google.protobuf.Duration check_interval = 6;
        Specified by:
        getCheckInterval in interface HealthCheckOrBuilder
        Returns:
        The checkInterval.
      • setCheckInterval

        public HealthCheck.Builder setCheckInterval​(com.google.protobuf.Duration value)
         Interval between health checks.
         
        .google.protobuf.Duration check_interval = 6;
      • setCheckInterval

        public HealthCheck.Builder setCheckInterval​(com.google.protobuf.Duration.Builder builderForValue)
         Interval between health checks.
         
        .google.protobuf.Duration check_interval = 6;
      • mergeCheckInterval

        public HealthCheck.Builder mergeCheckInterval​(com.google.protobuf.Duration value)
         Interval between health checks.
         
        .google.protobuf.Duration check_interval = 6;
      • clearCheckInterval

        public HealthCheck.Builder clearCheckInterval()
         Interval between health checks.
         
        .google.protobuf.Duration check_interval = 6;
      • getCheckIntervalBuilder

        public com.google.protobuf.Duration.Builder getCheckIntervalBuilder()
         Interval between health checks.
         
        .google.protobuf.Duration check_interval = 6;
      • getCheckIntervalOrBuilder

        public com.google.protobuf.DurationOrBuilder getCheckIntervalOrBuilder()
         Interval between health checks.
         
        .google.protobuf.Duration check_interval = 6;
        Specified by:
        getCheckIntervalOrBuilder in interface HealthCheckOrBuilder
      • hasTimeout

        public boolean hasTimeout()
         Time before the health check is considered failed.
         
        .google.protobuf.Duration timeout = 7;
        Specified by:
        hasTimeout in interface HealthCheckOrBuilder
        Returns:
        Whether the timeout field is set.
      • getTimeout

        public com.google.protobuf.Duration getTimeout()
         Time before the health check is considered failed.
         
        .google.protobuf.Duration timeout = 7;
        Specified by:
        getTimeout in interface HealthCheckOrBuilder
        Returns:
        The timeout.
      • setTimeout

        public HealthCheck.Builder setTimeout​(com.google.protobuf.Duration value)
         Time before the health check is considered failed.
         
        .google.protobuf.Duration timeout = 7;
      • setTimeout

        public HealthCheck.Builder setTimeout​(com.google.protobuf.Duration.Builder builderForValue)
         Time before the health check is considered failed.
         
        .google.protobuf.Duration timeout = 7;
      • mergeTimeout

        public HealthCheck.Builder mergeTimeout​(com.google.protobuf.Duration value)
         Time before the health check is considered failed.
         
        .google.protobuf.Duration timeout = 7;
      • clearTimeout

        public HealthCheck.Builder clearTimeout()
         Time before the health check is considered failed.
         
        .google.protobuf.Duration timeout = 7;
      • getTimeoutBuilder

        public com.google.protobuf.Duration.Builder getTimeoutBuilder()
         Time before the health check is considered failed.
         
        .google.protobuf.Duration timeout = 7;
      • getTimeoutOrBuilder

        public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder()
         Time before the health check is considered failed.
         
        .google.protobuf.Duration timeout = 7;
        Specified by:
        getTimeoutOrBuilder in interface HealthCheckOrBuilder
      • setUnknownFields

        public final HealthCheck.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<HealthCheck.Builder>
      • mergeUnknownFields

        public final HealthCheck.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<HealthCheck.Builder>