Class HeaderMatcher.Builder

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

    public static final class HeaderMatcher.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<HeaderMatcher.Builder>
    implements HeaderMatcherOrBuilder
     .. attention::
       Internally, Envoy always uses the HTTP/2 *:authority* header to represent the HTTP/1 *Host*
       header. Thus, if attempting to match on *Host*, match on *:authority* instead.
     .. attention::
       To route on HTTP method, use the special HTTP/2 *:method* header. This works for both
       HTTP/1 and HTTP/2 as Envoy normalizes headers. E.g.,
       .. code-block:: json
         {
           "name": ":method",
           "exact_match": "POST"
         }
     .. attention::
       In the absence of any header match specifier, match will default to :ref:`present_match
       <envoy_v3_api_field_config.route.v3.HeaderMatcher.present_match>`. i.e, a request that has the :ref:`name
       <envoy_v3_api_field_config.route.v3.HeaderMatcher.name>` header will match, regardless of the header's
       value.
      [#next-major-version: HeaderMatcher should be refactored to use StringMatcher.]
     [#next-free-field: 14]
     
    Protobuf type envoy.config.route.v3.HeaderMatcher
    • 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<HeaderMatcher.Builder>
      • clear

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

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

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

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

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

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

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

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

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

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

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

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

        public HeaderMatcher.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<HeaderMatcher.Builder>
        Throws:
        IOException
      • getName

        public String getName()
         Specifies the name of the header in the request.
         
        string name = 1 [(.validate.rules) = { ... }
        Specified by:
        getName in interface HeaderMatcherOrBuilder
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         Specifies the name of the header in the request.
         
        string name = 1 [(.validate.rules) = { ... }
        Specified by:
        getNameBytes in interface HeaderMatcherOrBuilder
      • setName

        public HeaderMatcher.Builder setName​(String value)
         Specifies the name of the header in the request.
         
        string name = 1 [(.validate.rules) = { ... }
      • clearName

        public HeaderMatcher.Builder clearName()
         Specifies the name of the header in the request.
         
        string name = 1 [(.validate.rules) = { ... }
      • setNameBytes

        public HeaderMatcher.Builder setNameBytes​(com.google.protobuf.ByteString value)
         Specifies the name of the header in the request.
         
        string name = 1 [(.validate.rules) = { ... }
      • getExactMatch

        @Deprecated
        public String getExactMatch()
        Deprecated.
         If specified, header match will be performed based on the value of the header.
         This field is deprecated. Please use :ref:`string_match <envoy_v3_api_field_config.route.v3.HeaderMatcher.string_match>`.
         
        string exact_match = 4 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"];
        Specified by:
        getExactMatch in interface HeaderMatcherOrBuilder
      • getExactMatchBytes

        @Deprecated
        public com.google.protobuf.ByteString getExactMatchBytes()
        Deprecated.
         If specified, header match will be performed based on the value of the header.
         This field is deprecated. Please use :ref:`string_match <envoy_v3_api_field_config.route.v3.HeaderMatcher.string_match>`.
         
        string exact_match = 4 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"];
        Specified by:
        getExactMatchBytes in interface HeaderMatcherOrBuilder
      • setExactMatch

        @Deprecated
        public HeaderMatcher.Builder setExactMatch​(String value)
        Deprecated.
         If specified, header match will be performed based on the value of the header.
         This field is deprecated. Please use :ref:`string_match <envoy_v3_api_field_config.route.v3.HeaderMatcher.string_match>`.
         
        string exact_match = 4 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"];
      • clearExactMatch

        @Deprecated
        public HeaderMatcher.Builder clearExactMatch()
        Deprecated.
         If specified, header match will be performed based on the value of the header.
         This field is deprecated. Please use :ref:`string_match <envoy_v3_api_field_config.route.v3.HeaderMatcher.string_match>`.
         
        string exact_match = 4 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"];
      • setExactMatchBytes

        @Deprecated
        public HeaderMatcher.Builder setExactMatchBytes​(com.google.protobuf.ByteString value)
        Deprecated.
         If specified, header match will be performed based on the value of the header.
         This field is deprecated. Please use :ref:`string_match <envoy_v3_api_field_config.route.v3.HeaderMatcher.string_match>`.
         
        string exact_match = 4 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"];
      • hasSafeRegexMatch

        @Deprecated
        public boolean hasSafeRegexMatch()
        Deprecated.
         If specified, this regex string is a regular expression rule which implies the entire request
         header value must match the regex. The rule will not match if only a subsequence of the
         request header value matches the regex.
         This field is deprecated. Please use :ref:`string_match <envoy_v3_api_field_config.route.v3.HeaderMatcher.string_match>`.
         
        .envoy.type.matcher.v3.RegexMatcher safe_regex_match = 11 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"];
        Specified by:
        hasSafeRegexMatch in interface HeaderMatcherOrBuilder
      • getSafeRegexMatch

        @Deprecated
        public RegexMatcher getSafeRegexMatch()
        Deprecated.
         If specified, this regex string is a regular expression rule which implies the entire request
         header value must match the regex. The rule will not match if only a subsequence of the
         request header value matches the regex.
         This field is deprecated. Please use :ref:`string_match <envoy_v3_api_field_config.route.v3.HeaderMatcher.string_match>`.
         
        .envoy.type.matcher.v3.RegexMatcher safe_regex_match = 11 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"];
        Specified by:
        getSafeRegexMatch in interface HeaderMatcherOrBuilder
      • setSafeRegexMatch

        @Deprecated
        public HeaderMatcher.Builder setSafeRegexMatch​(RegexMatcher value)
        Deprecated.
         If specified, this regex string is a regular expression rule which implies the entire request
         header value must match the regex. The rule will not match if only a subsequence of the
         request header value matches the regex.
         This field is deprecated. Please use :ref:`string_match <envoy_v3_api_field_config.route.v3.HeaderMatcher.string_match>`.
         
        .envoy.type.matcher.v3.RegexMatcher safe_regex_match = 11 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"];
      • setSafeRegexMatch

        @Deprecated
        public HeaderMatcher.Builder setSafeRegexMatch​(RegexMatcher.Builder builderForValue)
        Deprecated.
         If specified, this regex string is a regular expression rule which implies the entire request
         header value must match the regex. The rule will not match if only a subsequence of the
         request header value matches the regex.
         This field is deprecated. Please use :ref:`string_match <envoy_v3_api_field_config.route.v3.HeaderMatcher.string_match>`.
         
        .envoy.type.matcher.v3.RegexMatcher safe_regex_match = 11 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"];
      • mergeSafeRegexMatch

        @Deprecated
        public HeaderMatcher.Builder mergeSafeRegexMatch​(RegexMatcher value)
        Deprecated.
         If specified, this regex string is a regular expression rule which implies the entire request
         header value must match the regex. The rule will not match if only a subsequence of the
         request header value matches the regex.
         This field is deprecated. Please use :ref:`string_match <envoy_v3_api_field_config.route.v3.HeaderMatcher.string_match>`.
         
        .envoy.type.matcher.v3.RegexMatcher safe_regex_match = 11 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"];
      • clearSafeRegexMatch

        @Deprecated
        public HeaderMatcher.Builder clearSafeRegexMatch()
        Deprecated.
         If specified, this regex string is a regular expression rule which implies the entire request
         header value must match the regex. The rule will not match if only a subsequence of the
         request header value matches the regex.
         This field is deprecated. Please use :ref:`string_match <envoy_v3_api_field_config.route.v3.HeaderMatcher.string_match>`.
         
        .envoy.type.matcher.v3.RegexMatcher safe_regex_match = 11 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"];
      • getSafeRegexMatchBuilder

        @Deprecated
        public RegexMatcher.Builder getSafeRegexMatchBuilder()
        Deprecated.
         If specified, this regex string is a regular expression rule which implies the entire request
         header value must match the regex. The rule will not match if only a subsequence of the
         request header value matches the regex.
         This field is deprecated. Please use :ref:`string_match <envoy_v3_api_field_config.route.v3.HeaderMatcher.string_match>`.
         
        .envoy.type.matcher.v3.RegexMatcher safe_regex_match = 11 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"];
      • getSafeRegexMatchOrBuilder

        @Deprecated
        public RegexMatcherOrBuilder getSafeRegexMatchOrBuilder()
        Deprecated.
         If specified, this regex string is a regular expression rule which implies the entire request
         header value must match the regex. The rule will not match if only a subsequence of the
         request header value matches the regex.
         This field is deprecated. Please use :ref:`string_match <envoy_v3_api_field_config.route.v3.HeaderMatcher.string_match>`.
         
        .envoy.type.matcher.v3.RegexMatcher safe_regex_match = 11 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"];
        Specified by:
        getSafeRegexMatchOrBuilder in interface HeaderMatcherOrBuilder
      • hasRangeMatch

        public boolean hasRangeMatch()
         If specified, header match will be performed based on range.
         The rule will match if the request header value is within this range.
         The entire request header value must represent an integer in base 10 notation: consisting of
         an optional plus or minus sign followed by a sequence of digits. The rule will not match if
         the header value does not represent an integer. Match will fail for empty values, floating
         point numbers or if only a subsequence of the header value is an integer.
         Examples:
         * For range [-10,0), route will match for header value -1, but not for 0, "somestring", 10.9,
           "-1somestring"
         
        .envoy.type.v3.Int64Range range_match = 6;
        Specified by:
        hasRangeMatch in interface HeaderMatcherOrBuilder
      • getRangeMatch

        public Int64Range getRangeMatch()
         If specified, header match will be performed based on range.
         The rule will match if the request header value is within this range.
         The entire request header value must represent an integer in base 10 notation: consisting of
         an optional plus or minus sign followed by a sequence of digits. The rule will not match if
         the header value does not represent an integer. Match will fail for empty values, floating
         point numbers or if only a subsequence of the header value is an integer.
         Examples:
         * For range [-10,0), route will match for header value -1, but not for 0, "somestring", 10.9,
           "-1somestring"
         
        .envoy.type.v3.Int64Range range_match = 6;
        Specified by:
        getRangeMatch in interface HeaderMatcherOrBuilder
      • setRangeMatch

        public HeaderMatcher.Builder setRangeMatch​(Int64Range value)
         If specified, header match will be performed based on range.
         The rule will match if the request header value is within this range.
         The entire request header value must represent an integer in base 10 notation: consisting of
         an optional plus or minus sign followed by a sequence of digits. The rule will not match if
         the header value does not represent an integer. Match will fail for empty values, floating
         point numbers or if only a subsequence of the header value is an integer.
         Examples:
         * For range [-10,0), route will match for header value -1, but not for 0, "somestring", 10.9,
           "-1somestring"
         
        .envoy.type.v3.Int64Range range_match = 6;
      • setRangeMatch

        public HeaderMatcher.Builder setRangeMatch​(Int64Range.Builder builderForValue)
         If specified, header match will be performed based on range.
         The rule will match if the request header value is within this range.
         The entire request header value must represent an integer in base 10 notation: consisting of
         an optional plus or minus sign followed by a sequence of digits. The rule will not match if
         the header value does not represent an integer. Match will fail for empty values, floating
         point numbers or if only a subsequence of the header value is an integer.
         Examples:
         * For range [-10,0), route will match for header value -1, but not for 0, "somestring", 10.9,
           "-1somestring"
         
        .envoy.type.v3.Int64Range range_match = 6;
      • mergeRangeMatch

        public HeaderMatcher.Builder mergeRangeMatch​(Int64Range value)
         If specified, header match will be performed based on range.
         The rule will match if the request header value is within this range.
         The entire request header value must represent an integer in base 10 notation: consisting of
         an optional plus or minus sign followed by a sequence of digits. The rule will not match if
         the header value does not represent an integer. Match will fail for empty values, floating
         point numbers or if only a subsequence of the header value is an integer.
         Examples:
         * For range [-10,0), route will match for header value -1, but not for 0, "somestring", 10.9,
           "-1somestring"
         
        .envoy.type.v3.Int64Range range_match = 6;
      • clearRangeMatch

        public HeaderMatcher.Builder clearRangeMatch()
         If specified, header match will be performed based on range.
         The rule will match if the request header value is within this range.
         The entire request header value must represent an integer in base 10 notation: consisting of
         an optional plus or minus sign followed by a sequence of digits. The rule will not match if
         the header value does not represent an integer. Match will fail for empty values, floating
         point numbers or if only a subsequence of the header value is an integer.
         Examples:
         * For range [-10,0), route will match for header value -1, but not for 0, "somestring", 10.9,
           "-1somestring"
         
        .envoy.type.v3.Int64Range range_match = 6;
      • getRangeMatchBuilder

        public Int64Range.Builder getRangeMatchBuilder()
         If specified, header match will be performed based on range.
         The rule will match if the request header value is within this range.
         The entire request header value must represent an integer in base 10 notation: consisting of
         an optional plus or minus sign followed by a sequence of digits. The rule will not match if
         the header value does not represent an integer. Match will fail for empty values, floating
         point numbers or if only a subsequence of the header value is an integer.
         Examples:
         * For range [-10,0), route will match for header value -1, but not for 0, "somestring", 10.9,
           "-1somestring"
         
        .envoy.type.v3.Int64Range range_match = 6;
      • getRangeMatchOrBuilder

        public Int64RangeOrBuilder getRangeMatchOrBuilder()
         If specified, header match will be performed based on range.
         The rule will match if the request header value is within this range.
         The entire request header value must represent an integer in base 10 notation: consisting of
         an optional plus or minus sign followed by a sequence of digits. The rule will not match if
         the header value does not represent an integer. Match will fail for empty values, floating
         point numbers or if only a subsequence of the header value is an integer.
         Examples:
         * For range [-10,0), route will match for header value -1, but not for 0, "somestring", 10.9,
           "-1somestring"
         
        .envoy.type.v3.Int64Range range_match = 6;
        Specified by:
        getRangeMatchOrBuilder in interface HeaderMatcherOrBuilder
      • getPresentMatch

        public boolean getPresentMatch()
         If specified as true, header match will be performed based on whether the header is in the
         request. If specified as false, header match will be performed based on whether the header is absent.
         
        bool present_match = 7;
        Specified by:
        getPresentMatch in interface HeaderMatcherOrBuilder
      • setPresentMatch

        public HeaderMatcher.Builder setPresentMatch​(boolean value)
         If specified as true, header match will be performed based on whether the header is in the
         request. If specified as false, header match will be performed based on whether the header is absent.
         
        bool present_match = 7;
      • clearPresentMatch

        public HeaderMatcher.Builder clearPresentMatch()
         If specified as true, header match will be performed based on whether the header is in the
         request. If specified as false, header match will be performed based on whether the header is absent.
         
        bool present_match = 7;
      • getPrefixMatch

        @Deprecated
        public String getPrefixMatch()
        Deprecated.
         If specified, header match will be performed based on the prefix of the header value.
         Note: empty prefix is not allowed, please use present_match instead.
         This field is deprecated. Please use :ref:`string_match <envoy_v3_api_field_config.route.v3.HeaderMatcher.string_match>`.
         Examples:
         * The prefix *abcd* matches the value *abcdxyz*, but not for *abcxyz*.
         
        string prefix_match = 9 [deprecated = true, (.validate.rules) = { ... }
        Specified by:
        getPrefixMatch in interface HeaderMatcherOrBuilder
      • getPrefixMatchBytes

        @Deprecated
        public com.google.protobuf.ByteString getPrefixMatchBytes()
        Deprecated.
         If specified, header match will be performed based on the prefix of the header value.
         Note: empty prefix is not allowed, please use present_match instead.
         This field is deprecated. Please use :ref:`string_match <envoy_v3_api_field_config.route.v3.HeaderMatcher.string_match>`.
         Examples:
         * The prefix *abcd* matches the value *abcdxyz*, but not for *abcxyz*.
         
        string prefix_match = 9 [deprecated = true, (.validate.rules) = { ... }
        Specified by:
        getPrefixMatchBytes in interface HeaderMatcherOrBuilder
      • setPrefixMatch

        @Deprecated
        public HeaderMatcher.Builder setPrefixMatch​(String value)
        Deprecated.
         If specified, header match will be performed based on the prefix of the header value.
         Note: empty prefix is not allowed, please use present_match instead.
         This field is deprecated. Please use :ref:`string_match <envoy_v3_api_field_config.route.v3.HeaderMatcher.string_match>`.
         Examples:
         * The prefix *abcd* matches the value *abcdxyz*, but not for *abcxyz*.
         
        string prefix_match = 9 [deprecated = true, (.validate.rules) = { ... }
      • clearPrefixMatch

        @Deprecated
        public HeaderMatcher.Builder clearPrefixMatch()
        Deprecated.
         If specified, header match will be performed based on the prefix of the header value.
         Note: empty prefix is not allowed, please use present_match instead.
         This field is deprecated. Please use :ref:`string_match <envoy_v3_api_field_config.route.v3.HeaderMatcher.string_match>`.
         Examples:
         * The prefix *abcd* matches the value *abcdxyz*, but not for *abcxyz*.
         
        string prefix_match = 9 [deprecated = true, (.validate.rules) = { ... }
      • setPrefixMatchBytes

        @Deprecated
        public HeaderMatcher.Builder setPrefixMatchBytes​(com.google.protobuf.ByteString value)
        Deprecated.
         If specified, header match will be performed based on the prefix of the header value.
         Note: empty prefix is not allowed, please use present_match instead.
         This field is deprecated. Please use :ref:`string_match <envoy_v3_api_field_config.route.v3.HeaderMatcher.string_match>`.
         Examples:
         * The prefix *abcd* matches the value *abcdxyz*, but not for *abcxyz*.
         
        string prefix_match = 9 [deprecated = true, (.validate.rules) = { ... }
      • getSuffixMatch

        @Deprecated
        public String getSuffixMatch()
        Deprecated.
         If specified, header match will be performed based on the suffix of the header value.
         Note: empty suffix is not allowed, please use present_match instead.
         This field is deprecated. Please use :ref:`string_match <envoy_v3_api_field_config.route.v3.HeaderMatcher.string_match>`.
         Examples:
         * The suffix *abcd* matches the value *xyzabcd*, but not for *xyzbcd*.
         
        string suffix_match = 10 [deprecated = true, (.validate.rules) = { ... }
        Specified by:
        getSuffixMatch in interface HeaderMatcherOrBuilder
      • getSuffixMatchBytes

        @Deprecated
        public com.google.protobuf.ByteString getSuffixMatchBytes()
        Deprecated.
         If specified, header match will be performed based on the suffix of the header value.
         Note: empty suffix is not allowed, please use present_match instead.
         This field is deprecated. Please use :ref:`string_match <envoy_v3_api_field_config.route.v3.HeaderMatcher.string_match>`.
         Examples:
         * The suffix *abcd* matches the value *xyzabcd*, but not for *xyzbcd*.
         
        string suffix_match = 10 [deprecated = true, (.validate.rules) = { ... }
        Specified by:
        getSuffixMatchBytes in interface HeaderMatcherOrBuilder
      • setSuffixMatch

        @Deprecated
        public HeaderMatcher.Builder setSuffixMatch​(String value)
        Deprecated.
         If specified, header match will be performed based on the suffix of the header value.
         Note: empty suffix is not allowed, please use present_match instead.
         This field is deprecated. Please use :ref:`string_match <envoy_v3_api_field_config.route.v3.HeaderMatcher.string_match>`.
         Examples:
         * The suffix *abcd* matches the value *xyzabcd*, but not for *xyzbcd*.
         
        string suffix_match = 10 [deprecated = true, (.validate.rules) = { ... }
      • clearSuffixMatch

        @Deprecated
        public HeaderMatcher.Builder clearSuffixMatch()
        Deprecated.
         If specified, header match will be performed based on the suffix of the header value.
         Note: empty suffix is not allowed, please use present_match instead.
         This field is deprecated. Please use :ref:`string_match <envoy_v3_api_field_config.route.v3.HeaderMatcher.string_match>`.
         Examples:
         * The suffix *abcd* matches the value *xyzabcd*, but not for *xyzbcd*.
         
        string suffix_match = 10 [deprecated = true, (.validate.rules) = { ... }
      • setSuffixMatchBytes

        @Deprecated
        public HeaderMatcher.Builder setSuffixMatchBytes​(com.google.protobuf.ByteString value)
        Deprecated.
         If specified, header match will be performed based on the suffix of the header value.
         Note: empty suffix is not allowed, please use present_match instead.
         This field is deprecated. Please use :ref:`string_match <envoy_v3_api_field_config.route.v3.HeaderMatcher.string_match>`.
         Examples:
         * The suffix *abcd* matches the value *xyzabcd*, but not for *xyzbcd*.
         
        string suffix_match = 10 [deprecated = true, (.validate.rules) = { ... }
      • getContainsMatch

        @Deprecated
        public String getContainsMatch()
        Deprecated.
         If specified, header match will be performed based on whether the header value contains
         the given value or not.
         Note: empty contains match is not allowed, please use present_match instead.
         This field is deprecated. Please use :ref:`string_match <envoy_v3_api_field_config.route.v3.HeaderMatcher.string_match>`.
         Examples:
         * The value *abcd* matches the value *xyzabcdpqr*, but not for *xyzbcdpqr*.
         
        string contains_match = 12 [deprecated = true, (.validate.rules) = { ... }
        Specified by:
        getContainsMatch in interface HeaderMatcherOrBuilder
      • getContainsMatchBytes

        @Deprecated
        public com.google.protobuf.ByteString getContainsMatchBytes()
        Deprecated.
         If specified, header match will be performed based on whether the header value contains
         the given value or not.
         Note: empty contains match is not allowed, please use present_match instead.
         This field is deprecated. Please use :ref:`string_match <envoy_v3_api_field_config.route.v3.HeaderMatcher.string_match>`.
         Examples:
         * The value *abcd* matches the value *xyzabcdpqr*, but not for *xyzbcdpqr*.
         
        string contains_match = 12 [deprecated = true, (.validate.rules) = { ... }
        Specified by:
        getContainsMatchBytes in interface HeaderMatcherOrBuilder
      • setContainsMatch

        @Deprecated
        public HeaderMatcher.Builder setContainsMatch​(String value)
        Deprecated.
         If specified, header match will be performed based on whether the header value contains
         the given value or not.
         Note: empty contains match is not allowed, please use present_match instead.
         This field is deprecated. Please use :ref:`string_match <envoy_v3_api_field_config.route.v3.HeaderMatcher.string_match>`.
         Examples:
         * The value *abcd* matches the value *xyzabcdpqr*, but not for *xyzbcdpqr*.
         
        string contains_match = 12 [deprecated = true, (.validate.rules) = { ... }
      • clearContainsMatch

        @Deprecated
        public HeaderMatcher.Builder clearContainsMatch()
        Deprecated.
         If specified, header match will be performed based on whether the header value contains
         the given value or not.
         Note: empty contains match is not allowed, please use present_match instead.
         This field is deprecated. Please use :ref:`string_match <envoy_v3_api_field_config.route.v3.HeaderMatcher.string_match>`.
         Examples:
         * The value *abcd* matches the value *xyzabcdpqr*, but not for *xyzbcdpqr*.
         
        string contains_match = 12 [deprecated = true, (.validate.rules) = { ... }
      • setContainsMatchBytes

        @Deprecated
        public HeaderMatcher.Builder setContainsMatchBytes​(com.google.protobuf.ByteString value)
        Deprecated.
         If specified, header match will be performed based on whether the header value contains
         the given value or not.
         Note: empty contains match is not allowed, please use present_match instead.
         This field is deprecated. Please use :ref:`string_match <envoy_v3_api_field_config.route.v3.HeaderMatcher.string_match>`.
         Examples:
         * The value *abcd* matches the value *xyzabcdpqr*, but not for *xyzbcdpqr*.
         
        string contains_match = 12 [deprecated = true, (.validate.rules) = { ... }
      • hasStringMatch

        public boolean hasStringMatch()
         If specified, header match will be performed based on the string match of the header value.
         
        .envoy.type.matcher.v3.StringMatcher string_match = 13;
        Specified by:
        hasStringMatch in interface HeaderMatcherOrBuilder
      • getStringMatch

        public StringMatcher getStringMatch()
         If specified, header match will be performed based on the string match of the header value.
         
        .envoy.type.matcher.v3.StringMatcher string_match = 13;
        Specified by:
        getStringMatch in interface HeaderMatcherOrBuilder
      • setStringMatch

        public HeaderMatcher.Builder setStringMatch​(StringMatcher value)
         If specified, header match will be performed based on the string match of the header value.
         
        .envoy.type.matcher.v3.StringMatcher string_match = 13;
      • setStringMatch

        public HeaderMatcher.Builder setStringMatch​(StringMatcher.Builder builderForValue)
         If specified, header match will be performed based on the string match of the header value.
         
        .envoy.type.matcher.v3.StringMatcher string_match = 13;
      • mergeStringMatch

        public HeaderMatcher.Builder mergeStringMatch​(StringMatcher value)
         If specified, header match will be performed based on the string match of the header value.
         
        .envoy.type.matcher.v3.StringMatcher string_match = 13;
      • clearStringMatch

        public HeaderMatcher.Builder clearStringMatch()
         If specified, header match will be performed based on the string match of the header value.
         
        .envoy.type.matcher.v3.StringMatcher string_match = 13;
      • getStringMatchBuilder

        public StringMatcher.Builder getStringMatchBuilder()
         If specified, header match will be performed based on the string match of the header value.
         
        .envoy.type.matcher.v3.StringMatcher string_match = 13;
      • getInvertMatch

        public boolean getInvertMatch()
         If specified, the match result will be inverted before checking. Defaults to false.
         Examples:
         * The regex ``\d{3}`` does not match the value *1234*, so it will match when inverted.
         * The range [-10,0) will match the value -1, so it will not match when inverted.
         
        bool invert_match = 8;
        Specified by:
        getInvertMatch in interface HeaderMatcherOrBuilder
      • setInvertMatch

        public HeaderMatcher.Builder setInvertMatch​(boolean value)
         If specified, the match result will be inverted before checking. Defaults to false.
         Examples:
         * The regex ``\d{3}`` does not match the value *1234*, so it will match when inverted.
         * The range [-10,0) will match the value -1, so it will not match when inverted.
         
        bool invert_match = 8;
      • clearInvertMatch

        public HeaderMatcher.Builder clearInvertMatch()
         If specified, the match result will be inverted before checking. Defaults to false.
         Examples:
         * The regex ``\d{3}`` does not match the value *1234*, so it will match when inverted.
         * The range [-10,0) will match the value -1, so it will not match when inverted.
         
        bool invert_match = 8;
      • setUnknownFields

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

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