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
      • setFailedActiveHealthCheck

        public HostHealthStatus.Builder setFailedActiveHealthCheck​(boolean value)
         The host is currently failing active health checks.
         
        bool failed_active_health_check = 1;
      • clearFailedActiveHealthCheck

        public HostHealthStatus.Builder clearFailedActiveHealthCheck()
         The host is currently failing active health checks.
         
        bool failed_active_health_check = 1;
      • 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
      • setFailedOutlierCheck

        public HostHealthStatus.Builder setFailedOutlierCheck​(boolean value)
         The host is currently considered an outlier and has been ejected.
         
        bool failed_outlier_check = 2;
      • clearFailedOutlierCheck

        public HostHealthStatus.Builder clearFailedOutlierCheck()
         The host is currently considered an outlier and has been ejected.
         
        bool failed_outlier_check = 2;
      • 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
      • 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;
      • clearFailedActiveDegradedCheck

        public HostHealthStatus.Builder clearFailedActiveDegradedCheck()
         The host is currently being marked as degraded through active health checking.
         
        bool failed_active_degraded_check = 4;
      • 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
      • 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;
      • 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;
      • setPendingActiveHc

        public HostHealthStatus.Builder setPendingActiveHc​(boolean value)
         The host has not yet been health checked.
         
        bool pending_active_hc = 6;
      • clearPendingActiveHc

        public HostHealthStatus.Builder clearPendingActiveHc()
         The host has not yet been health checked.
         
        bool pending_active_hc = 6;
      • 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
      • 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;
      • 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;
      • setActiveHcTimeout

        public HostHealthStatus.Builder setActiveHcTimeout​(boolean value)
         The host failed active HC due to timeout.
         
        bool active_hc_timeout = 8;
      • clearActiveHcTimeout

        public HostHealthStatus.Builder clearActiveHcTimeout()
         The host failed active HC due to timeout.
         
        bool active_hc_timeout = 8;
      • 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
      • 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;
      • 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
      • 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;
      • 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;
      • 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>