Class HostHealthStatus.Builder

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

    public static final class HostHealthStatus.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<HostHealthStatus.Builder>
    implements HostHealthStatusOrBuilder
     Health status for a host.
     [#next-free-field: 9]
     
    Protobuf type envoy.admin.v3.HostHealthStatus
    • 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<HostHealthStatus.Builder>
      • clear

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

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

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

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

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

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

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

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

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

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

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

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

        public HostHealthStatus.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<HostHealthStatus.Builder>
        Throws:
        IOException
      • getFailedActiveHealthCheck

        public boolean getFailedActiveHealthCheck()
         The host is currently failing active health checks.
         
        bool failed_active_health_check = 1;
        Specified by:
        getFailedActiveHealthCheck in interface HostHealthStatusOrBuilder
        Returns:
        The failedActiveHealthCheck.
      • setFailedActiveHealthCheck

        public HostHealthStatus.Builder setFailedActiveHealthCheck​(boolean value)
         The host is currently failing active health checks.
         
        bool failed_active_health_check = 1;
        Parameters:
        value - The failedActiveHealthCheck to set.
        Returns:
        This builder for chaining.
      • clearFailedActiveHealthCheck

        public HostHealthStatus.Builder clearFailedActiveHealthCheck()
         The host is currently failing active health checks.
         
        bool failed_active_health_check = 1;
        Returns:
        This builder for chaining.
      • getFailedOutlierCheck

        public boolean getFailedOutlierCheck()
         The host is currently considered an outlier and has been ejected.
         
        bool failed_outlier_check = 2;
        Specified by:
        getFailedOutlierCheck in interface HostHealthStatusOrBuilder
        Returns:
        The failedOutlierCheck.
      • setFailedOutlierCheck

        public HostHealthStatus.Builder setFailedOutlierCheck​(boolean value)
         The host is currently considered an outlier and has been ejected.
         
        bool failed_outlier_check = 2;
        Parameters:
        value - The failedOutlierCheck to set.
        Returns:
        This builder for chaining.
      • clearFailedOutlierCheck

        public HostHealthStatus.Builder clearFailedOutlierCheck()
         The host is currently considered an outlier and has been ejected.
         
        bool failed_outlier_check = 2;
        Returns:
        This builder for chaining.
      • getFailedActiveDegradedCheck

        public boolean getFailedActiveDegradedCheck()
         The host is currently being marked as degraded through active health checking.
         
        bool failed_active_degraded_check = 4;
        Specified by:
        getFailedActiveDegradedCheck in interface HostHealthStatusOrBuilder
        Returns:
        The failedActiveDegradedCheck.
      • setFailedActiveDegradedCheck

        public HostHealthStatus.Builder setFailedActiveDegradedCheck​(boolean value)
         The host is currently being marked as degraded through active health checking.
         
        bool failed_active_degraded_check = 4;
        Parameters:
        value - The failedActiveDegradedCheck to set.
        Returns:
        This builder for chaining.
      • clearFailedActiveDegradedCheck

        public HostHealthStatus.Builder clearFailedActiveDegradedCheck()
         The host is currently being marked as degraded through active health checking.
         
        bool failed_active_degraded_check = 4;
        Returns:
        This builder for chaining.
      • getPendingDynamicRemoval

        public boolean getPendingDynamicRemoval()
         The host has been removed from service discovery, but is being stabilized due to active
         health checking.
         
        bool pending_dynamic_removal = 5;
        Specified by:
        getPendingDynamicRemoval in interface HostHealthStatusOrBuilder
        Returns:
        The pendingDynamicRemoval.
      • setPendingDynamicRemoval

        public HostHealthStatus.Builder setPendingDynamicRemoval​(boolean value)
         The host has been removed from service discovery, but is being stabilized due to active
         health checking.
         
        bool pending_dynamic_removal = 5;
        Parameters:
        value - The pendingDynamicRemoval to set.
        Returns:
        This builder for chaining.
      • clearPendingDynamicRemoval

        public HostHealthStatus.Builder clearPendingDynamicRemoval()
         The host has been removed from service discovery, but is being stabilized due to active
         health checking.
         
        bool pending_dynamic_removal = 5;
        Returns:
        This builder for chaining.
      • getPendingActiveHc

        public boolean getPendingActiveHc()
         The host has not yet been health checked.
         
        bool pending_active_hc = 6;
        Specified by:
        getPendingActiveHc in interface HostHealthStatusOrBuilder
        Returns:
        The pendingActiveHc.
      • setPendingActiveHc

        public HostHealthStatus.Builder setPendingActiveHc​(boolean value)
         The host has not yet been health checked.
         
        bool pending_active_hc = 6;
        Parameters:
        value - The pendingActiveHc to set.
        Returns:
        This builder for chaining.
      • clearPendingActiveHc

        public HostHealthStatus.Builder clearPendingActiveHc()
         The host has not yet been health checked.
         
        bool pending_active_hc = 6;
        Returns:
        This builder for chaining.
      • getExcludedViaImmediateHcFail

        public boolean getExcludedViaImmediateHcFail()
         The host should be excluded from panic, spillover, etc. calculations because it was explicitly
         taken out of rotation via protocol signal and is not meant to be routed to.
         
        bool excluded_via_immediate_hc_fail = 7;
        Specified by:
        getExcludedViaImmediateHcFail in interface HostHealthStatusOrBuilder
        Returns:
        The excludedViaImmediateHcFail.
      • setExcludedViaImmediateHcFail

        public HostHealthStatus.Builder setExcludedViaImmediateHcFail​(boolean value)
         The host should be excluded from panic, spillover, etc. calculations because it was explicitly
         taken out of rotation via protocol signal and is not meant to be routed to.
         
        bool excluded_via_immediate_hc_fail = 7;
        Parameters:
        value - The excludedViaImmediateHcFail to set.
        Returns:
        This builder for chaining.
      • clearExcludedViaImmediateHcFail

        public HostHealthStatus.Builder clearExcludedViaImmediateHcFail()
         The host should be excluded from panic, spillover, etc. calculations because it was explicitly
         taken out of rotation via protocol signal and is not meant to be routed to.
         
        bool excluded_via_immediate_hc_fail = 7;
        Returns:
        This builder for chaining.
      • getActiveHcTimeout

        public boolean getActiveHcTimeout()
         The host failed active HC due to timeout.
         
        bool active_hc_timeout = 8;
        Specified by:
        getActiveHcTimeout in interface HostHealthStatusOrBuilder
        Returns:
        The activeHcTimeout.
      • setActiveHcTimeout

        public HostHealthStatus.Builder setActiveHcTimeout​(boolean value)
         The host failed active HC due to timeout.
         
        bool active_hc_timeout = 8;
        Parameters:
        value - The activeHcTimeout to set.
        Returns:
        This builder for chaining.
      • clearActiveHcTimeout

        public HostHealthStatus.Builder clearActiveHcTimeout()
         The host failed active HC due to timeout.
         
        bool active_hc_timeout = 8;
        Returns:
        This builder for chaining.
      • getEdsHealthStatusValue

        public int getEdsHealthStatusValue()
         Health status as reported by EDS. Note: only HEALTHY and UNHEALTHY are currently supported
         here.
         [#comment:TODO(mrice32): pipe through remaining EDS health status possibilities.]
         
        .envoy.config.core.v3.HealthStatus eds_health_status = 3;
        Specified by:
        getEdsHealthStatusValue in interface HostHealthStatusOrBuilder
        Returns:
        The enum numeric value on the wire for edsHealthStatus.
      • setEdsHealthStatusValue

        public HostHealthStatus.Builder setEdsHealthStatusValue​(int value)
         Health status as reported by EDS. Note: only HEALTHY and UNHEALTHY are currently supported
         here.
         [#comment:TODO(mrice32): pipe through remaining EDS health status possibilities.]
         
        .envoy.config.core.v3.HealthStatus eds_health_status = 3;
        Parameters:
        value - The enum numeric value on the wire for edsHealthStatus to set.
        Returns:
        This builder for chaining.
      • getEdsHealthStatus

        public HealthStatus getEdsHealthStatus()
         Health status as reported by EDS. Note: only HEALTHY and UNHEALTHY are currently supported
         here.
         [#comment:TODO(mrice32): pipe through remaining EDS health status possibilities.]
         
        .envoy.config.core.v3.HealthStatus eds_health_status = 3;
        Specified by:
        getEdsHealthStatus in interface HostHealthStatusOrBuilder
        Returns:
        The edsHealthStatus.
      • setEdsHealthStatus

        public HostHealthStatus.Builder setEdsHealthStatus​(HealthStatus value)
         Health status as reported by EDS. Note: only HEALTHY and UNHEALTHY are currently supported
         here.
         [#comment:TODO(mrice32): pipe through remaining EDS health status possibilities.]
         
        .envoy.config.core.v3.HealthStatus eds_health_status = 3;
        Parameters:
        value - The edsHealthStatus to set.
        Returns:
        This builder for chaining.
      • clearEdsHealthStatus

        public HostHealthStatus.Builder clearEdsHealthStatus()
         Health status as reported by EDS. Note: only HEALTHY and UNHEALTHY are currently supported
         here.
         [#comment:TODO(mrice32): pipe through remaining EDS health status possibilities.]
         
        .envoy.config.core.v3.HealthStatus eds_health_status = 3;
        Returns:
        This builder for chaining.
      • setUnknownFields

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

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