Class HeaderMatcher.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<HeaderMatcher.Builder>
com.google.protobuf.GeneratedMessage.Builder<HeaderMatcher.Builder>
io.envoyproxy.envoy.config.route.v3.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.GeneratedMessage.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", "string_match": { "exact": "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: 15]Protobuf type
envoy.config.route.v3.HeaderMatcher
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate int
private Object
private int
private boolean
private Object
private com.google.protobuf.SingleFieldBuilder
<Int64Range, Int64Range.Builder, Int64RangeOrBuilder> private com.google.protobuf.SingleFieldBuilder
<RegexMatcher, RegexMatcher.Builder, RegexMatcherOrBuilder> private com.google.protobuf.SingleFieldBuilder
<StringMatcher, StringMatcher.Builder, StringMatcherOrBuilder> private boolean
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
private void
buildPartial0
(HeaderMatcher result) private void
buildPartialOneofs
(HeaderMatcher result) clear()
Deprecated.envoy.config.route.v3.HeaderMatcher.contains_match is deprecated.Deprecated.envoy.config.route.v3.HeaderMatcher.exact_match is deprecated.If specified, the match result will be inverted before checking.Specifies the name of the header in the request.Deprecated.envoy.config.route.v3.HeaderMatcher.prefix_match is deprecated.If specified as true, header match will be performed based on whether the header is in the request.If specified, header match will be performed based on range.Deprecated.If specified, header match will be performed based on the string match of the header value.Deprecated.envoy.config.route.v3.HeaderMatcher.suffix_match is deprecated.If specified, for any header match rule, if the header match rule specified header does not exist, this header value will be treated as empty.Deprecated.envoy.config.route.v3.HeaderMatcher.contains_match is deprecated.com.google.protobuf.ByteString
Deprecated.envoy.config.route.v3.HeaderMatcher.contains_match is deprecated.static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
Deprecated.envoy.config.route.v3.HeaderMatcher.exact_match is deprecated.com.google.protobuf.ByteString
Deprecated.envoy.config.route.v3.HeaderMatcher.exact_match is deprecated.boolean
If specified, the match result will be inverted before checking.getName()
Specifies the name of the header in the request.com.google.protobuf.ByteString
Specifies the name of the header in the request.Deprecated.envoy.config.route.v3.HeaderMatcher.prefix_match is deprecated.com.google.protobuf.ByteString
Deprecated.envoy.config.route.v3.HeaderMatcher.prefix_match is deprecated.boolean
If specified as true, header match will be performed based on whether the header is in the request.If specified, header match will be performed based on range.If specified, header match will be performed based on range.private com.google.protobuf.SingleFieldBuilder
<Int64Range, Int64Range.Builder, Int64RangeOrBuilder> If specified, header match will be performed based on range.If specified, header match will be performed based on range.Deprecated.envoy.config.route.v3.HeaderMatcher.safe_regex_match is deprecated.Deprecated.private com.google.protobuf.SingleFieldBuilder
<RegexMatcher, RegexMatcher.Builder, RegexMatcherOrBuilder> If specified, this regex string is a regular expression rule which implies the entire request header value must match the regex.Deprecated.If specified, header match will be performed based on the string match of the header value.If specified, header match will be performed based on the string match of the header value.private com.google.protobuf.SingleFieldBuilder
<StringMatcher, StringMatcher.Builder, StringMatcherOrBuilder> If specified, header match will be performed based on the string match of the header value.If specified, header match will be performed based on the string match of the header value.Deprecated.envoy.config.route.v3.HeaderMatcher.suffix_match is deprecated.com.google.protobuf.ByteString
Deprecated.envoy.config.route.v3.HeaderMatcher.suffix_match is deprecated.boolean
If specified, for any header match rule, if the header match rule specified header does not exist, this header value will be treated as empty.boolean
Deprecated.envoy.config.route.v3.HeaderMatcher.contains_match is deprecated.boolean
Deprecated.envoy.config.route.v3.HeaderMatcher.exact_match is deprecated.boolean
Deprecated.envoy.config.route.v3.HeaderMatcher.prefix_match is deprecated.boolean
If specified as true, header match will be performed based on whether the header is in the request.boolean
If specified, header match will be performed based on range.boolean
Deprecated.envoy.config.route.v3.HeaderMatcher.safe_regex_match is deprecated.boolean
If specified, header match will be performed based on the string match of the header value.boolean
Deprecated.envoy.config.route.v3.HeaderMatcher.suffix_match is deprecated.protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
final boolean
mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) mergeFrom
(HeaderMatcher other) mergeRangeMatch
(Int64Range value) If specified, header match will be performed based on range.mergeSafeRegexMatch
(RegexMatcher value) Deprecated.mergeStringMatch
(StringMatcher value) If specified, header match will be performed based on the string match of the header value.setContainsMatch
(String value) Deprecated.envoy.config.route.v3.HeaderMatcher.contains_match is deprecated.setContainsMatchBytes
(com.google.protobuf.ByteString value) Deprecated.envoy.config.route.v3.HeaderMatcher.contains_match is deprecated.setExactMatch
(String value) Deprecated.envoy.config.route.v3.HeaderMatcher.exact_match is deprecated.setExactMatchBytes
(com.google.protobuf.ByteString value) Deprecated.envoy.config.route.v3.HeaderMatcher.exact_match is deprecated.setInvertMatch
(boolean value) If specified, the match result will be inverted before checking.Specifies the name of the header in the request.setNameBytes
(com.google.protobuf.ByteString value) Specifies the name of the header in the request.setPrefixMatch
(String value) Deprecated.envoy.config.route.v3.HeaderMatcher.prefix_match is deprecated.setPrefixMatchBytes
(com.google.protobuf.ByteString value) Deprecated.envoy.config.route.v3.HeaderMatcher.prefix_match is deprecated.setPresentMatch
(boolean value) If specified as true, header match will be performed based on whether the header is in the request.setRangeMatch
(Int64Range value) If specified, header match will be performed based on range.setRangeMatch
(Int64Range.Builder builderForValue) If specified, header match will be performed based on range.setSafeRegexMatch
(RegexMatcher value) Deprecated.setSafeRegexMatch
(RegexMatcher.Builder builderForValue) Deprecated.setStringMatch
(StringMatcher value) If specified, header match will be performed based on the string match of the header value.setStringMatch
(StringMatcher.Builder builderForValue) If specified, header match will be performed based on the string match of the header value.setSuffixMatch
(String value) Deprecated.envoy.config.route.v3.HeaderMatcher.suffix_match is deprecated.setSuffixMatchBytes
(com.google.protobuf.ByteString value) Deprecated.envoy.config.route.v3.HeaderMatcher.suffix_match is deprecated.setTreatMissingHeaderAsEmpty
(boolean value) If specified, for any header match rule, if the header match rule specified header does not exist, this header value will be treated as empty.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
headerMatchSpecifierCase_
private int headerMatchSpecifierCase_ -
headerMatchSpecifier_
-
bitField0_
private int bitField0_ -
name_
-
safeRegexMatchBuilder_
private com.google.protobuf.SingleFieldBuilder<RegexMatcher,RegexMatcher.Builder, safeRegexMatchBuilder_RegexMatcherOrBuilder> -
rangeMatchBuilder_
private com.google.protobuf.SingleFieldBuilder<Int64Range,Int64Range.Builder, rangeMatchBuilder_Int64RangeOrBuilder> -
stringMatchBuilder_
private com.google.protobuf.SingleFieldBuilder<StringMatcher,StringMatcher.Builder, stringMatchBuilder_StringMatcherOrBuilder> -
invertMatch_
private boolean invertMatch_ -
treatMissingHeaderAsEmpty_
private boolean treatMissingHeaderAsEmpty_
-
-
Constructor Details
-
Builder
private Builder() -
Builder
private Builder(com.google.protobuf.AbstractMessage.BuilderParent parent)
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessage.Builder<HeaderMatcher.Builder>
-
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessage.Builder<HeaderMatcher.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessage.Builder<HeaderMatcher.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial0
-
buildPartialOneofs
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<HeaderMatcher.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessage.Builder<HeaderMatcher.Builder>
-
mergeFrom
public HeaderMatcher.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<HeaderMatcher.Builder>
- Throws:
IOException
-
getHeaderMatchSpecifierCase
- Specified by:
getHeaderMatchSpecifierCase
in interfaceHeaderMatcherOrBuilder
-
clearHeaderMatchSpecifier
-
getName
Specifies the name of the header in the request.
string name = 1 [(.validate.rules) = { ... }
- Specified by:
getName
in interfaceHeaderMatcherOrBuilder
- Returns:
- The name.
-
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 interfaceHeaderMatcherOrBuilder
- Returns:
- The bytes for name.
-
setName
Specifies the name of the header in the request.
string name = 1 [(.validate.rules) = { ... }
- Parameters:
value
- The name to set.- Returns:
- This builder for chaining.
-
clearName
Specifies the name of the header in the request.
string name = 1 [(.validate.rules) = { ... }
- Returns:
- This builder for chaining.
-
setNameBytes
Specifies the name of the header in the request.
string name = 1 [(.validate.rules) = { ... }
- Parameters:
value
- The bytes for name to set.- Returns:
- This builder for chaining.
-
hasExactMatch
Deprecated.envoy.config.route.v3.HeaderMatcher.exact_match is deprecated. See envoy/config/route/v3/route_components.proto;l=2241If 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:
hasExactMatch
in interfaceHeaderMatcherOrBuilder
- Returns:
- Whether the exactMatch field is set.
-
getExactMatch
Deprecated.envoy.config.route.v3.HeaderMatcher.exact_match is deprecated. See envoy/config/route/v3/route_components.proto;l=2241If 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 interfaceHeaderMatcherOrBuilder
- Returns:
- The exactMatch.
-
getExactMatchBytes
Deprecated.envoy.config.route.v3.HeaderMatcher.exact_match is deprecated. See envoy/config/route/v3/route_components.proto;l=2241If 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 interfaceHeaderMatcherOrBuilder
- Returns:
- The bytes for exactMatch.
-
setExactMatch
Deprecated.envoy.config.route.v3.HeaderMatcher.exact_match is deprecated. See envoy/config/route/v3/route_components.proto;l=2241If 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"];
- Parameters:
value
- The exactMatch to set.- Returns:
- This builder for chaining.
-
clearExactMatch
Deprecated.envoy.config.route.v3.HeaderMatcher.exact_match is deprecated. See envoy/config/route/v3/route_components.proto;l=2241If 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"];
- Returns:
- This builder for chaining.
-
setExactMatchBytes
Deprecated.envoy.config.route.v3.HeaderMatcher.exact_match is deprecated. See envoy/config/route/v3/route_components.proto;l=2241If 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"];
- Parameters:
value
- The bytes for exactMatch to set.- Returns:
- This builder for chaining.
-
hasSafeRegexMatch
Deprecated.envoy.config.route.v3.HeaderMatcher.safe_regex_match is deprecated. See envoy/config/route/v3/route_components.proto;l=2248If 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 interfaceHeaderMatcherOrBuilder
- Returns:
- Whether the safeRegexMatch field is set.
-
getSafeRegexMatch
Deprecated.envoy.config.route.v3.HeaderMatcher.safe_regex_match is deprecated. See envoy/config/route/v3/route_components.proto;l=2248If 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 interfaceHeaderMatcherOrBuilder
- Returns:
- The safeRegexMatch.
-
setSafeRegexMatch
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.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.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.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.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.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 interfaceHeaderMatcherOrBuilder
-
getSafeRegexMatchFieldBuilder
private com.google.protobuf.SingleFieldBuilder<RegexMatcher,RegexMatcher.Builder, getSafeRegexMatchFieldBuilder()RegexMatcherOrBuilder> 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"];
-
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 interfaceHeaderMatcherOrBuilder
- Returns:
- Whether the rangeMatch field is set.
-
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 interfaceHeaderMatcherOrBuilder
- Returns:
- The rangeMatch.
-
setRangeMatch
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
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
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
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
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
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 interfaceHeaderMatcherOrBuilder
-
getRangeMatchFieldBuilder
private com.google.protobuf.SingleFieldBuilder<Int64Range,Int64Range.Builder, getRangeMatchFieldBuilder()Int64RangeOrBuilder> 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;
-
hasPresentMatch
public boolean hasPresentMatch()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:
hasPresentMatch
in interfaceHeaderMatcherOrBuilder
- Returns:
- Whether the presentMatch field is set.
-
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 interfaceHeaderMatcherOrBuilder
- Returns:
- The presentMatch.
-
setPresentMatch
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;
- Parameters:
value
- The presentMatch to set.- Returns:
- This builder for chaining.
-
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;
- Returns:
- This builder for chaining.
-
hasPrefixMatch
Deprecated.envoy.config.route.v3.HeaderMatcher.prefix_match is deprecated. See envoy/config/route/v3/route_components.proto;l=2275If 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:
hasPrefixMatch
in interfaceHeaderMatcherOrBuilder
- Returns:
- Whether the prefixMatch field is set.
-
getPrefixMatch
Deprecated.envoy.config.route.v3.HeaderMatcher.prefix_match is deprecated. See envoy/config/route/v3/route_components.proto;l=2275If 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 interfaceHeaderMatcherOrBuilder
- Returns:
- The prefixMatch.
-
getPrefixMatchBytes
Deprecated.envoy.config.route.v3.HeaderMatcher.prefix_match is deprecated. See envoy/config/route/v3/route_components.proto;l=2275If 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 interfaceHeaderMatcherOrBuilder
- Returns:
- The bytes for prefixMatch.
-
setPrefixMatch
Deprecated.envoy.config.route.v3.HeaderMatcher.prefix_match is deprecated. See envoy/config/route/v3/route_components.proto;l=2275If 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) = { ... }
- Parameters:
value
- The prefixMatch to set.- Returns:
- This builder for chaining.
-
clearPrefixMatch
Deprecated.envoy.config.route.v3.HeaderMatcher.prefix_match is deprecated. See envoy/config/route/v3/route_components.proto;l=2275If 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) = { ... }
- Returns:
- This builder for chaining.
-
setPrefixMatchBytes
Deprecated.envoy.config.route.v3.HeaderMatcher.prefix_match is deprecated. See envoy/config/route/v3/route_components.proto;l=2275If 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) = { ... }
- Parameters:
value
- The bytes for prefixMatch to set.- Returns:
- This builder for chaining.
-
hasSuffixMatch
Deprecated.envoy.config.route.v3.HeaderMatcher.suffix_match is deprecated. See envoy/config/route/v3/route_components.proto;l=2288If 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:
hasSuffixMatch
in interfaceHeaderMatcherOrBuilder
- Returns:
- Whether the suffixMatch field is set.
-
getSuffixMatch
Deprecated.envoy.config.route.v3.HeaderMatcher.suffix_match is deprecated. See envoy/config/route/v3/route_components.proto;l=2288If 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 interfaceHeaderMatcherOrBuilder
- Returns:
- The suffixMatch.
-
getSuffixMatchBytes
Deprecated.envoy.config.route.v3.HeaderMatcher.suffix_match is deprecated. See envoy/config/route/v3/route_components.proto;l=2288If 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 interfaceHeaderMatcherOrBuilder
- Returns:
- The bytes for suffixMatch.
-
setSuffixMatch
Deprecated.envoy.config.route.v3.HeaderMatcher.suffix_match is deprecated. See envoy/config/route/v3/route_components.proto;l=2288If 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) = { ... }
- Parameters:
value
- The suffixMatch to set.- Returns:
- This builder for chaining.
-
clearSuffixMatch
Deprecated.envoy.config.route.v3.HeaderMatcher.suffix_match is deprecated. See envoy/config/route/v3/route_components.proto;l=2288If 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) = { ... }
- Returns:
- This builder for chaining.
-
setSuffixMatchBytes
Deprecated.envoy.config.route.v3.HeaderMatcher.suffix_match is deprecated. See envoy/config/route/v3/route_components.proto;l=2288If 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) = { ... }
- Parameters:
value
- The bytes for suffixMatch to set.- Returns:
- This builder for chaining.
-
hasContainsMatch
Deprecated.envoy.config.route.v3.HeaderMatcher.contains_match is deprecated. See envoy/config/route/v3/route_components.proto;l=2302If 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:
hasContainsMatch
in interfaceHeaderMatcherOrBuilder
- Returns:
- Whether the containsMatch field is set.
-
getContainsMatch
Deprecated.envoy.config.route.v3.HeaderMatcher.contains_match is deprecated. See envoy/config/route/v3/route_components.proto;l=2302If 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 interfaceHeaderMatcherOrBuilder
- Returns:
- The containsMatch.
-
getContainsMatchBytes
Deprecated.envoy.config.route.v3.HeaderMatcher.contains_match is deprecated. See envoy/config/route/v3/route_components.proto;l=2302If 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 interfaceHeaderMatcherOrBuilder
- Returns:
- The bytes for containsMatch.
-
setContainsMatch
Deprecated.envoy.config.route.v3.HeaderMatcher.contains_match is deprecated. See envoy/config/route/v3/route_components.proto;l=2302If 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) = { ... }
- Parameters:
value
- The containsMatch to set.- Returns:
- This builder for chaining.
-
clearContainsMatch
Deprecated.envoy.config.route.v3.HeaderMatcher.contains_match is deprecated. See envoy/config/route/v3/route_components.proto;l=2302If 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) = { ... }
- Returns:
- This builder for chaining.
-
setContainsMatchBytes
@Deprecated public HeaderMatcher.Builder setContainsMatchBytes(com.google.protobuf.ByteString value) Deprecated.envoy.config.route.v3.HeaderMatcher.contains_match is deprecated. See envoy/config/route/v3/route_components.proto;l=2302If 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) = { ... }
- Parameters:
value
- The bytes for containsMatch to set.- Returns:
- This builder for chaining.
-
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 interfaceHeaderMatcherOrBuilder
- Returns:
- Whether the stringMatch field is set.
-
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 interfaceHeaderMatcherOrBuilder
- Returns:
- The stringMatch.
-
setStringMatch
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
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
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
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
If specified, header match will be performed based on the string match of the header value.
.envoy.type.matcher.v3.StringMatcher string_match = 13;
-
getStringMatchOrBuilder
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:
getStringMatchOrBuilder
in interfaceHeaderMatcherOrBuilder
-
getStringMatchFieldBuilder
private com.google.protobuf.SingleFieldBuilder<StringMatcher,StringMatcher.Builder, getStringMatchFieldBuilder()StringMatcherOrBuilder> 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 interfaceHeaderMatcherOrBuilder
- Returns:
- The invertMatch.
-
setInvertMatch
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;
- Parameters:
value
- The invertMatch to set.- Returns:
- This builder for chaining.
-
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;
- Returns:
- This builder for chaining.
-
getTreatMissingHeaderAsEmpty
public boolean getTreatMissingHeaderAsEmpty()If specified, for any header match rule, if the header match rule specified header does not exist, this header value will be treated as empty. Defaults to false. Examples: * The header match rule specified header "header1" to range match of [0, 10], :ref:`invert_match <envoy_v3_api_field_config.route.v3.HeaderMatcher.invert_match>` is set to true and :ref:`treat_missing_header_as_empty <envoy_v3_api_field_config.route.v3.HeaderMatcher.treat_missing_header_as_empty>` is set to true; The "header1" header is not present. The match rule will treat the "header1" as an empty header. The empty header does not match the range, so it will match when inverted. * The header match rule specified header "header2" to range match of [0, 10], :ref:`invert_match <envoy_v3_api_field_config.route.v3.HeaderMatcher.invert_match>` is set to true and :ref:`treat_missing_header_as_empty <envoy_v3_api_field_config.route.v3.HeaderMatcher.treat_missing_header_as_empty>` is set to false; The "header2" header is not present and the header matcher rule for "header2" will be ignored so it will not match. * The header match rule specified header "header3" to a string regex match ``^$`` which means an empty string, and :ref:`treat_missing_header_as_empty <envoy_v3_api_field_config.route.v3.HeaderMatcher.treat_missing_header_as_empty>` is set to true; The "header3" header is not present. The match rule will treat the "header3" header as an empty header so it will match. * The header match rule specified header "header4" to a string regex match ``^$`` which means an empty string, and :ref:`treat_missing_header_as_empty <envoy_v3_api_field_config.route.v3.HeaderMatcher.treat_missing_header_as_empty>` is set to false; The "header4" header is not present. The match rule for "header4" will be ignored so it will not match.
bool treat_missing_header_as_empty = 14;
- Specified by:
getTreatMissingHeaderAsEmpty
in interfaceHeaderMatcherOrBuilder
- Returns:
- The treatMissingHeaderAsEmpty.
-
setTreatMissingHeaderAsEmpty
If specified, for any header match rule, if the header match rule specified header does not exist, this header value will be treated as empty. Defaults to false. Examples: * The header match rule specified header "header1" to range match of [0, 10], :ref:`invert_match <envoy_v3_api_field_config.route.v3.HeaderMatcher.invert_match>` is set to true and :ref:`treat_missing_header_as_empty <envoy_v3_api_field_config.route.v3.HeaderMatcher.treat_missing_header_as_empty>` is set to true; The "header1" header is not present. The match rule will treat the "header1" as an empty header. The empty header does not match the range, so it will match when inverted. * The header match rule specified header "header2" to range match of [0, 10], :ref:`invert_match <envoy_v3_api_field_config.route.v3.HeaderMatcher.invert_match>` is set to true and :ref:`treat_missing_header_as_empty <envoy_v3_api_field_config.route.v3.HeaderMatcher.treat_missing_header_as_empty>` is set to false; The "header2" header is not present and the header matcher rule for "header2" will be ignored so it will not match. * The header match rule specified header "header3" to a string regex match ``^$`` which means an empty string, and :ref:`treat_missing_header_as_empty <envoy_v3_api_field_config.route.v3.HeaderMatcher.treat_missing_header_as_empty>` is set to true; The "header3" header is not present. The match rule will treat the "header3" header as an empty header so it will match. * The header match rule specified header "header4" to a string regex match ``^$`` which means an empty string, and :ref:`treat_missing_header_as_empty <envoy_v3_api_field_config.route.v3.HeaderMatcher.treat_missing_header_as_empty>` is set to false; The "header4" header is not present. The match rule for "header4" will be ignored so it will not match.
bool treat_missing_header_as_empty = 14;
- Parameters:
value
- The treatMissingHeaderAsEmpty to set.- Returns:
- This builder for chaining.
-
clearTreatMissingHeaderAsEmpty
If specified, for any header match rule, if the header match rule specified header does not exist, this header value will be treated as empty. Defaults to false. Examples: * The header match rule specified header "header1" to range match of [0, 10], :ref:`invert_match <envoy_v3_api_field_config.route.v3.HeaderMatcher.invert_match>` is set to true and :ref:`treat_missing_header_as_empty <envoy_v3_api_field_config.route.v3.HeaderMatcher.treat_missing_header_as_empty>` is set to true; The "header1" header is not present. The match rule will treat the "header1" as an empty header. The empty header does not match the range, so it will match when inverted. * The header match rule specified header "header2" to range match of [0, 10], :ref:`invert_match <envoy_v3_api_field_config.route.v3.HeaderMatcher.invert_match>` is set to true and :ref:`treat_missing_header_as_empty <envoy_v3_api_field_config.route.v3.HeaderMatcher.treat_missing_header_as_empty>` is set to false; The "header2" header is not present and the header matcher rule for "header2" will be ignored so it will not match. * The header match rule specified header "header3" to a string regex match ``^$`` which means an empty string, and :ref:`treat_missing_header_as_empty <envoy_v3_api_field_config.route.v3.HeaderMatcher.treat_missing_header_as_empty>` is set to true; The "header3" header is not present. The match rule will treat the "header3" header as an empty header so it will match. * The header match rule specified header "header4" to a string regex match ``^$`` which means an empty string, and :ref:`treat_missing_header_as_empty <envoy_v3_api_field_config.route.v3.HeaderMatcher.treat_missing_header_as_empty>` is set to false; The "header4" header is not present. The match rule for "header4" will be ignored so it will not match.
bool treat_missing_header_as_empty = 14;
- Returns:
- This builder for chaining.
-