Class HttpProtocolOptions.OutlierDetection.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<HttpProtocolOptions.OutlierDetection.Builder>
io.envoyproxy.envoy.extensions.upstreams.http.v3.HttpProtocolOptions.OutlierDetection.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, HttpProtocolOptions.OutlierDetectionOrBuilder, Cloneable
Enclosing class:
HttpProtocolOptions.OutlierDetection

public static final class HttpProtocolOptions.OutlierDetection.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<HttpProtocolOptions.OutlierDetection.Builder> implements HttpProtocolOptions.OutlierDetectionOrBuilder
Protobuf type envoy.extensions.upstreams.http.v3.HttpProtocolOptions.OutlierDetection
  • Method Details

    • 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<HttpProtocolOptions.OutlierDetection.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<HttpProtocolOptions.OutlierDetection.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<HttpProtocolOptions.OutlierDetection.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public HttpProtocolOptions.OutlierDetection buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.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<HttpProtocolOptions.OutlierDetection.Builder>
    • setField

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

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

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

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

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

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

    • isInitialized

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

      public HttpProtocolOptions.OutlierDetection.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<HttpProtocolOptions.OutlierDetection.Builder>
      Throws:
      IOException
    • hasErrorMatcher

      public boolean hasErrorMatcher()
       If specified, only responses matching the matcher will be treated by outlier detection as errors.
       If not specified, only 5xx codes are treated by outlier detection as errors.
       
      .envoy.config.common.matcher.v3.MatchPredicate error_matcher = 1 [(.validate.rules) = { ... }
      Specified by:
      hasErrorMatcher in interface HttpProtocolOptions.OutlierDetectionOrBuilder
      Returns:
      Whether the errorMatcher field is set.
    • getErrorMatcher

      public MatchPredicate getErrorMatcher()
       If specified, only responses matching the matcher will be treated by outlier detection as errors.
       If not specified, only 5xx codes are treated by outlier detection as errors.
       
      .envoy.config.common.matcher.v3.MatchPredicate error_matcher = 1 [(.validate.rules) = { ... }
      Specified by:
      getErrorMatcher in interface HttpProtocolOptions.OutlierDetectionOrBuilder
      Returns:
      The errorMatcher.
    • setErrorMatcher

       If specified, only responses matching the matcher will be treated by outlier detection as errors.
       If not specified, only 5xx codes are treated by outlier detection as errors.
       
      .envoy.config.common.matcher.v3.MatchPredicate error_matcher = 1 [(.validate.rules) = { ... }
    • setErrorMatcher

      public HttpProtocolOptions.OutlierDetection.Builder setErrorMatcher(MatchPredicate.Builder builderForValue)
       If specified, only responses matching the matcher will be treated by outlier detection as errors.
       If not specified, only 5xx codes are treated by outlier detection as errors.
       
      .envoy.config.common.matcher.v3.MatchPredicate error_matcher = 1 [(.validate.rules) = { ... }
    • mergeErrorMatcher

       If specified, only responses matching the matcher will be treated by outlier detection as errors.
       If not specified, only 5xx codes are treated by outlier detection as errors.
       
      .envoy.config.common.matcher.v3.MatchPredicate error_matcher = 1 [(.validate.rules) = { ... }
    • clearErrorMatcher

       If specified, only responses matching the matcher will be treated by outlier detection as errors.
       If not specified, only 5xx codes are treated by outlier detection as errors.
       
      .envoy.config.common.matcher.v3.MatchPredicate error_matcher = 1 [(.validate.rules) = { ... }
    • getErrorMatcherBuilder

      public MatchPredicate.Builder getErrorMatcherBuilder()
       If specified, only responses matching the matcher will be treated by outlier detection as errors.
       If not specified, only 5xx codes are treated by outlier detection as errors.
       
      .envoy.config.common.matcher.v3.MatchPredicate error_matcher = 1 [(.validate.rules) = { ... }
    • getErrorMatcherOrBuilder

      public MatchPredicateOrBuilder getErrorMatcherOrBuilder()
       If specified, only responses matching the matcher will be treated by outlier detection as errors.
       If not specified, only 5xx codes are treated by outlier detection as errors.
       
      .envoy.config.common.matcher.v3.MatchPredicate error_matcher = 1 [(.validate.rules) = { ... }
      Specified by:
      getErrorMatcherOrBuilder in interface HttpProtocolOptions.OutlierDetectionOrBuilder
    • setUnknownFields

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

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