Class OutlierDetectionEvent.Builder

    • 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<OutlierDetectionEvent.Builder>
      • clear

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

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

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

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

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

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

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

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

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

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

        public OutlierDetectionEvent.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<OutlierDetectionEvent.Builder>
        Throws:
        IOException
      • getTypeValue

        public int getTypeValue()
         In case of eject represents type of ejection that took place.
         
        .envoy.data.cluster.v2alpha.OutlierEjectionType type = 1 [(.validate.rules) = { ... }
        Specified by:
        getTypeValue in interface OutlierDetectionEventOrBuilder
        Returns:
        The enum numeric value on the wire for type.
      • setTypeValue

        public OutlierDetectionEvent.Builder setTypeValue​(int value)
         In case of eject represents type of ejection that took place.
         
        .envoy.data.cluster.v2alpha.OutlierEjectionType type = 1 [(.validate.rules) = { ... }
        Parameters:
        value - The enum numeric value on the wire for type to set.
        Returns:
        This builder for chaining.
      • getType

        public OutlierEjectionType getType()
         In case of eject represents type of ejection that took place.
         
        .envoy.data.cluster.v2alpha.OutlierEjectionType type = 1 [(.validate.rules) = { ... }
        Specified by:
        getType in interface OutlierDetectionEventOrBuilder
        Returns:
        The type.
      • setType

        public OutlierDetectionEvent.Builder setType​(OutlierEjectionType value)
         In case of eject represents type of ejection that took place.
         
        .envoy.data.cluster.v2alpha.OutlierEjectionType type = 1 [(.validate.rules) = { ... }
        Parameters:
        value - The type to set.
        Returns:
        This builder for chaining.
      • clearType

        public OutlierDetectionEvent.Builder clearType()
         In case of eject represents type of ejection that took place.
         
        .envoy.data.cluster.v2alpha.OutlierEjectionType type = 1 [(.validate.rules) = { ... }
        Returns:
        This builder for chaining.
      • hasTimestamp

        public boolean hasTimestamp()
         Timestamp for event.
         
        .google.protobuf.Timestamp timestamp = 2;
        Specified by:
        hasTimestamp in interface OutlierDetectionEventOrBuilder
        Returns:
        Whether the timestamp field is set.
      • getTimestamp

        public com.google.protobuf.Timestamp getTimestamp()
         Timestamp for event.
         
        .google.protobuf.Timestamp timestamp = 2;
        Specified by:
        getTimestamp in interface OutlierDetectionEventOrBuilder
        Returns:
        The timestamp.
      • setTimestamp

        public OutlierDetectionEvent.Builder setTimestamp​(com.google.protobuf.Timestamp value)
         Timestamp for event.
         
        .google.protobuf.Timestamp timestamp = 2;
      • setTimestamp

        public OutlierDetectionEvent.Builder setTimestamp​(com.google.protobuf.Timestamp.Builder builderForValue)
         Timestamp for event.
         
        .google.protobuf.Timestamp timestamp = 2;
      • mergeTimestamp

        public OutlierDetectionEvent.Builder mergeTimestamp​(com.google.protobuf.Timestamp value)
         Timestamp for event.
         
        .google.protobuf.Timestamp timestamp = 2;
      • getTimestampBuilder

        public com.google.protobuf.Timestamp.Builder getTimestampBuilder()
         Timestamp for event.
         
        .google.protobuf.Timestamp timestamp = 2;
      • hasSecsSinceLastAction

        public boolean hasSecsSinceLastAction()
         The time in seconds since the last action (either an ejection or unejection) took place.
         
        .google.protobuf.UInt64Value secs_since_last_action = 3;
        Specified by:
        hasSecsSinceLastAction in interface OutlierDetectionEventOrBuilder
        Returns:
        Whether the secsSinceLastAction field is set.
      • getSecsSinceLastAction

        public com.google.protobuf.UInt64Value getSecsSinceLastAction()
         The time in seconds since the last action (either an ejection or unejection) took place.
         
        .google.protobuf.UInt64Value secs_since_last_action = 3;
        Specified by:
        getSecsSinceLastAction in interface OutlierDetectionEventOrBuilder
        Returns:
        The secsSinceLastAction.
      • setSecsSinceLastAction

        public OutlierDetectionEvent.Builder setSecsSinceLastAction​(com.google.protobuf.UInt64Value value)
         The time in seconds since the last action (either an ejection or unejection) took place.
         
        .google.protobuf.UInt64Value secs_since_last_action = 3;
      • setSecsSinceLastAction

        public OutlierDetectionEvent.Builder setSecsSinceLastAction​(com.google.protobuf.UInt64Value.Builder builderForValue)
         The time in seconds since the last action (either an ejection or unejection) took place.
         
        .google.protobuf.UInt64Value secs_since_last_action = 3;
      • mergeSecsSinceLastAction

        public OutlierDetectionEvent.Builder mergeSecsSinceLastAction​(com.google.protobuf.UInt64Value value)
         The time in seconds since the last action (either an ejection or unejection) took place.
         
        .google.protobuf.UInt64Value secs_since_last_action = 3;
      • clearSecsSinceLastAction

        public OutlierDetectionEvent.Builder clearSecsSinceLastAction()
         The time in seconds since the last action (either an ejection or unejection) took place.
         
        .google.protobuf.UInt64Value secs_since_last_action = 3;
      • getSecsSinceLastActionBuilder

        public com.google.protobuf.UInt64Value.Builder getSecsSinceLastActionBuilder()
         The time in seconds since the last action (either an ejection or unejection) took place.
         
        .google.protobuf.UInt64Value secs_since_last_action = 3;
      • getSecsSinceLastActionOrBuilder

        public com.google.protobuf.UInt64ValueOrBuilder getSecsSinceLastActionOrBuilder()
         The time in seconds since the last action (either an ejection or unejection) took place.
         
        .google.protobuf.UInt64Value secs_since_last_action = 3;
        Specified by:
        getSecsSinceLastActionOrBuilder in interface OutlierDetectionEventOrBuilder
      • getClusterName

        public String getClusterName()
         The :ref:`cluster <envoy_api_msg_Cluster>` that owns the ejected host.
         
        string cluster_name = 4 [(.validate.rules) = { ... }
        Specified by:
        getClusterName in interface OutlierDetectionEventOrBuilder
        Returns:
        The clusterName.
      • getClusterNameBytes

        public com.google.protobuf.ByteString getClusterNameBytes()
         The :ref:`cluster <envoy_api_msg_Cluster>` that owns the ejected host.
         
        string cluster_name = 4 [(.validate.rules) = { ... }
        Specified by:
        getClusterNameBytes in interface OutlierDetectionEventOrBuilder
        Returns:
        The bytes for clusterName.
      • setClusterName

        public OutlierDetectionEvent.Builder setClusterName​(String value)
         The :ref:`cluster <envoy_api_msg_Cluster>` that owns the ejected host.
         
        string cluster_name = 4 [(.validate.rules) = { ... }
        Parameters:
        value - The clusterName to set.
        Returns:
        This builder for chaining.
      • clearClusterName

        public OutlierDetectionEvent.Builder clearClusterName()
         The :ref:`cluster <envoy_api_msg_Cluster>` that owns the ejected host.
         
        string cluster_name = 4 [(.validate.rules) = { ... }
        Returns:
        This builder for chaining.
      • setClusterNameBytes

        public OutlierDetectionEvent.Builder setClusterNameBytes​(com.google.protobuf.ByteString value)
         The :ref:`cluster <envoy_api_msg_Cluster>` that owns the ejected host.
         
        string cluster_name = 4 [(.validate.rules) = { ... }
        Parameters:
        value - The bytes for clusterName to set.
        Returns:
        This builder for chaining.
      • getUpstreamUrl

        public String getUpstreamUrl()
         The URL of the ejected host. E.g., ``tcp://1.2.3.4:80``.
         
        string upstream_url = 5 [(.validate.rules) = { ... }
        Specified by:
        getUpstreamUrl in interface OutlierDetectionEventOrBuilder
        Returns:
        The upstreamUrl.
      • getUpstreamUrlBytes

        public com.google.protobuf.ByteString getUpstreamUrlBytes()
         The URL of the ejected host. E.g., ``tcp://1.2.3.4:80``.
         
        string upstream_url = 5 [(.validate.rules) = { ... }
        Specified by:
        getUpstreamUrlBytes in interface OutlierDetectionEventOrBuilder
        Returns:
        The bytes for upstreamUrl.
      • setUpstreamUrl

        public OutlierDetectionEvent.Builder setUpstreamUrl​(String value)
         The URL of the ejected host. E.g., ``tcp://1.2.3.4:80``.
         
        string upstream_url = 5 [(.validate.rules) = { ... }
        Parameters:
        value - The upstreamUrl to set.
        Returns:
        This builder for chaining.
      • clearUpstreamUrl

        public OutlierDetectionEvent.Builder clearUpstreamUrl()
         The URL of the ejected host. E.g., ``tcp://1.2.3.4:80``.
         
        string upstream_url = 5 [(.validate.rules) = { ... }
        Returns:
        This builder for chaining.
      • setUpstreamUrlBytes

        public OutlierDetectionEvent.Builder setUpstreamUrlBytes​(com.google.protobuf.ByteString value)
         The URL of the ejected host. E.g., ``tcp://1.2.3.4:80``.
         
        string upstream_url = 5 [(.validate.rules) = { ... }
        Parameters:
        value - The bytes for upstreamUrl to set.
        Returns:
        This builder for chaining.
      • getActionValue

        public int getActionValue()
         The action that took place.
         
        .envoy.data.cluster.v2alpha.Action action = 6 [(.validate.rules) = { ... }
        Specified by:
        getActionValue in interface OutlierDetectionEventOrBuilder
        Returns:
        The enum numeric value on the wire for action.
      • setActionValue

        public OutlierDetectionEvent.Builder setActionValue​(int value)
         The action that took place.
         
        .envoy.data.cluster.v2alpha.Action action = 6 [(.validate.rules) = { ... }
        Parameters:
        value - The enum numeric value on the wire for action to set.
        Returns:
        This builder for chaining.
      • getAction

        public Action getAction()
         The action that took place.
         
        .envoy.data.cluster.v2alpha.Action action = 6 [(.validate.rules) = { ... }
        Specified by:
        getAction in interface OutlierDetectionEventOrBuilder
        Returns:
        The action.
      • setAction

        public OutlierDetectionEvent.Builder setAction​(Action value)
         The action that took place.
         
        .envoy.data.cluster.v2alpha.Action action = 6 [(.validate.rules) = { ... }
        Parameters:
        value - The action to set.
        Returns:
        This builder for chaining.
      • clearAction

        public OutlierDetectionEvent.Builder clearAction()
         The action that took place.
         
        .envoy.data.cluster.v2alpha.Action action = 6 [(.validate.rules) = { ... }
        Returns:
        This builder for chaining.
      • getNumEjections

        public int getNumEjections()
         If ``action`` is ``eject``, specifies the number of times the host has been ejected (local to
         that Envoy and gets reset if the host gets removed from the upstream cluster for any reason and
         then re-added).
         
        uint32 num_ejections = 7;
        Specified by:
        getNumEjections in interface OutlierDetectionEventOrBuilder
        Returns:
        The numEjections.
      • setNumEjections

        public OutlierDetectionEvent.Builder setNumEjections​(int value)
         If ``action`` is ``eject``, specifies the number of times the host has been ejected (local to
         that Envoy and gets reset if the host gets removed from the upstream cluster for any reason and
         then re-added).
         
        uint32 num_ejections = 7;
        Parameters:
        value - The numEjections to set.
        Returns:
        This builder for chaining.
      • clearNumEjections

        public OutlierDetectionEvent.Builder clearNumEjections()
         If ``action`` is ``eject``, specifies the number of times the host has been ejected (local to
         that Envoy and gets reset if the host gets removed from the upstream cluster for any reason and
         then re-added).
         
        uint32 num_ejections = 7;
        Returns:
        This builder for chaining.
      • getEnforced

        public boolean getEnforced()
         If ``action`` is ``eject``, specifies if the ejection was enforced. ``true`` means the host was
         ejected. ``false`` means the event was logged but the host was not actually ejected.
         
        bool enforced = 8;
        Specified by:
        getEnforced in interface OutlierDetectionEventOrBuilder
        Returns:
        The enforced.
      • setEnforced

        public OutlierDetectionEvent.Builder setEnforced​(boolean value)
         If ``action`` is ``eject``, specifies if the ejection was enforced. ``true`` means the host was
         ejected. ``false`` means the event was logged but the host was not actually ejected.
         
        bool enforced = 8;
        Parameters:
        value - The enforced to set.
        Returns:
        This builder for chaining.
      • clearEnforced

        public OutlierDetectionEvent.Builder clearEnforced()
         If ``action`` is ``eject``, specifies if the ejection was enforced. ``true`` means the host was
         ejected. ``false`` means the event was logged but the host was not actually ejected.
         
        bool enforced = 8;
        Returns:
        This builder for chaining.
      • hasEjectSuccessRateEvent

        public boolean hasEjectSuccessRateEvent()
        .envoy.data.cluster.v2alpha.OutlierEjectSuccessRate eject_success_rate_event = 9;
        Specified by:
        hasEjectSuccessRateEvent in interface OutlierDetectionEventOrBuilder
        Returns:
        Whether the ejectSuccessRateEvent field is set.
      • clearEjectSuccessRateEvent

        public OutlierDetectionEvent.Builder clearEjectSuccessRateEvent()
        .envoy.data.cluster.v2alpha.OutlierEjectSuccessRate eject_success_rate_event = 9;
      • getEjectSuccessRateEventBuilder

        public OutlierEjectSuccessRate.Builder getEjectSuccessRateEventBuilder()
        .envoy.data.cluster.v2alpha.OutlierEjectSuccessRate eject_success_rate_event = 9;
      • hasEjectConsecutiveEvent

        public boolean hasEjectConsecutiveEvent()
        .envoy.data.cluster.v2alpha.OutlierEjectConsecutive eject_consecutive_event = 10;
        Specified by:
        hasEjectConsecutiveEvent in interface OutlierDetectionEventOrBuilder
        Returns:
        Whether the ejectConsecutiveEvent field is set.
      • clearEjectConsecutiveEvent

        public OutlierDetectionEvent.Builder clearEjectConsecutiveEvent()
        .envoy.data.cluster.v2alpha.OutlierEjectConsecutive eject_consecutive_event = 10;
      • getEjectConsecutiveEventBuilder

        public OutlierEjectConsecutive.Builder getEjectConsecutiveEventBuilder()
        .envoy.data.cluster.v2alpha.OutlierEjectConsecutive eject_consecutive_event = 10;
      • hasEjectFailurePercentageEvent

        public boolean hasEjectFailurePercentageEvent()
        .envoy.data.cluster.v2alpha.OutlierEjectFailurePercentage eject_failure_percentage_event = 11;
        Specified by:
        hasEjectFailurePercentageEvent in interface OutlierDetectionEventOrBuilder
        Returns:
        Whether the ejectFailurePercentageEvent field is set.
      • clearEjectFailurePercentageEvent

        public OutlierDetectionEvent.Builder clearEjectFailurePercentageEvent()
        .envoy.data.cluster.v2alpha.OutlierEjectFailurePercentage eject_failure_percentage_event = 11;
      • getEjectFailurePercentageEventBuilder

        public OutlierEjectFailurePercentage.Builder getEjectFailurePercentageEventBuilder()
        .envoy.data.cluster.v2alpha.OutlierEjectFailurePercentage eject_failure_percentage_event = 11;
      • setUnknownFields

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

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