Package io.envoyproxy.envoy.api.v2.route
Class HeaderMatcher.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<HeaderMatcher.Builder>
io.envoyproxy.envoy.api.v2.route.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_api_field_route.HeaderMatcher.present_match>`. i.e, a request that has the :ref:`name
<envoy_api_field_route.HeaderMatcher.name>` header will match, regardless of the header's
value.
[#next-major-version: HeaderMatcher should be refactored to use StringMatcher.]
[#next-free-field: 12]
Protobuf type envoy.api.v2.route.HeaderMatcher-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()If specified, header match will be performed based on the value of the header.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) If specified, the match result will be inverted before checking.Specifies the name of the header in the request.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) If specified, header match will be performed based on the prefix of the header value.If specified, 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.envoy.api.v2.route.HeaderMatcher.regex_match is deprecated.If specified, this regex string is a regular expression rule which implies the entire request header value must match the regex.If specified, header match will be performed based on the suffix of the header value.clone()static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorIf specified, header match will be performed based on the value of the header.com.google.protobuf.ByteStringIf specified, header match will be performed based on the value of the header.booleanIf specified, the match result will be inverted before checking.getName()Specifies the name of the header in the request.com.google.protobuf.ByteStringSpecifies the name of the header in the request.If specified, header match will be performed based on the prefix of the header value.com.google.protobuf.ByteStringIf specified, header match will be performed based on the prefix of the header value.booleanIf specified, 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.If specified, header match will be performed based on range.Deprecated.envoy.api.v2.route.HeaderMatcher.regex_match is deprecated.com.google.protobuf.ByteStringDeprecated.envoy.api.v2.route.HeaderMatcher.regex_match is deprecated.If specified, this regex string is a regular expression rule which implies the entire request header value must match the regex.If specified, this regex string is a regular expression rule which implies the entire request header value must match the regex.If specified, this regex string is a regular expression rule which implies the entire request header value must match the regex.If specified, header match will be performed based on the suffix of the header value.com.google.protobuf.ByteStringIf specified, header match will be performed based on the suffix of the header value.booleanIf specified, header match will be performed based on the value of the header.booleanIf specified, header match will be performed based on the prefix of the header value.booleanIf specified, header match will be performed based on whether the header is in the request.booleanIf specified, header match will be performed based on range.booleanDeprecated.envoy.api.v2.route.HeaderMatcher.regex_match is deprecated.booleanIf specified, this regex string is a regular expression rule which implies the entire request header value must match the regex.booleanIf specified, header match will be performed based on the suffix of the header value.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(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) If specified, this regex string is a regular expression rule which implies the entire request header value must match the regex.final HeaderMatcher.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setExactMatch(String value) If specified, header match will be performed based on the value of the header.setExactMatchBytes(com.google.protobuf.ByteString value) If specified, header match will be performed based on the value of the header.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) If specified, header match will be performed based on the prefix of the header value.setPrefixMatchBytes(com.google.protobuf.ByteString value) If specified, header match will be performed based on the prefix of the header value.setPresentMatch(boolean value) If specified, 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.setRegexMatch(String value) Deprecated.envoy.api.v2.route.HeaderMatcher.regex_match is deprecated.setRegexMatchBytes(com.google.protobuf.ByteString value) Deprecated.envoy.api.v2.route.HeaderMatcher.regex_match is deprecated.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setSafeRegexMatch(RegexMatcher value) If specified, this regex string is a regular expression rule which implies the entire request header value must match the regex.setSafeRegexMatch(RegexMatcher.Builder builderForValue) If specified, this regex string is a regular expression rule which implies the entire request header value must match the regex.setSuffixMatch(String value) If specified, header match will be performed based on the suffix of the header value.setSuffixMatchBytes(com.google.protobuf.ByteString value) If specified, header match will be performed based on the suffix of the header value.final HeaderMatcher.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<HeaderMatcher.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<HeaderMatcher.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<HeaderMatcher.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<HeaderMatcher.Builder>
-
setField
public HeaderMatcher.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<HeaderMatcher.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<HeaderMatcher.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<HeaderMatcher.Builder>
-
setRepeatedField
public HeaderMatcher.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<HeaderMatcher.Builder>
-
addRepeatedField
public HeaderMatcher.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<HeaderMatcher.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<HeaderMatcher.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<HeaderMatcher.Builder>- Throws:
IOException
-
getHeaderMatchSpecifierCase
- Specified by:
getHeaderMatchSpecifierCasein interfaceHeaderMatcherOrBuilder
-
clearHeaderMatchSpecifier
-
getName
Specifies the name of the header in the request.
string name = 1 [(.validate.rules) = { ... }- Specified by:
getNamein 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:
getNameBytesin 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
public boolean hasExactMatch()If specified, header match will be performed based on the value of the header.
string exact_match = 4;- Specified by:
hasExactMatchin interfaceHeaderMatcherOrBuilder- Returns:
- Whether the exactMatch field is set.
-
getExactMatch
If specified, header match will be performed based on the value of the header.
string exact_match = 4;- Specified by:
getExactMatchin interfaceHeaderMatcherOrBuilder- Returns:
- The exactMatch.
-
getExactMatchBytes
public com.google.protobuf.ByteString getExactMatchBytes()If specified, header match will be performed based on the value of the header.
string exact_match = 4;- Specified by:
getExactMatchBytesin interfaceHeaderMatcherOrBuilder- Returns:
- The bytes for exactMatch.
-
setExactMatch
If specified, header match will be performed based on the value of the header.
string exact_match = 4;- Parameters:
value- The exactMatch to set.- Returns:
- This builder for chaining.
-
clearExactMatch
If specified, header match will be performed based on the value of the header.
string exact_match = 4;- Returns:
- This builder for chaining.
-
setExactMatchBytes
If specified, header match will be performed based on the value of the header.
string exact_match = 4;- Parameters:
value- The bytes for exactMatch to set.- Returns:
- This builder for chaining.
-
hasRegexMatch
Deprecated.envoy.api.v2.route.HeaderMatcher.regex_match is deprecated. See envoy/api/v2/route/route_components.proto;l=1542If 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. The regex grammar used in the value field is defined `here <https://en.cppreference.com/w/cpp/regex/ecmascript>`_. Examples: * The regex ``\d{3}`` matches the value *123* * The regex ``\d{3}`` does not match the value *1234* * The regex ``\d{3}`` does not match the value *123.456* .. attention:: This field has been deprecated in favor of `safe_regex_match` as it is not safe for use with untrusted input in all cases.string regex_match = 5 [deprecated = true, (.validate.rules) = { ... }- Specified by:
hasRegexMatchin interfaceHeaderMatcherOrBuilder- Returns:
- Whether the regexMatch field is set.
-
getRegexMatch
Deprecated.envoy.api.v2.route.HeaderMatcher.regex_match is deprecated. See envoy/api/v2/route/route_components.proto;l=1542If 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. The regex grammar used in the value field is defined `here <https://en.cppreference.com/w/cpp/regex/ecmascript>`_. Examples: * The regex ``\d{3}`` matches the value *123* * The regex ``\d{3}`` does not match the value *1234* * The regex ``\d{3}`` does not match the value *123.456* .. attention:: This field has been deprecated in favor of `safe_regex_match` as it is not safe for use with untrusted input in all cases.string regex_match = 5 [deprecated = true, (.validate.rules) = { ... }- Specified by:
getRegexMatchin interfaceHeaderMatcherOrBuilder- Returns:
- The regexMatch.
-
getRegexMatchBytes
Deprecated.envoy.api.v2.route.HeaderMatcher.regex_match is deprecated. See envoy/api/v2/route/route_components.proto;l=1542If 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. The regex grammar used in the value field is defined `here <https://en.cppreference.com/w/cpp/regex/ecmascript>`_. Examples: * The regex ``\d{3}`` matches the value *123* * The regex ``\d{3}`` does not match the value *1234* * The regex ``\d{3}`` does not match the value *123.456* .. attention:: This field has been deprecated in favor of `safe_regex_match` as it is not safe for use with untrusted input in all cases.string regex_match = 5 [deprecated = true, (.validate.rules) = { ... }- Specified by:
getRegexMatchBytesin interfaceHeaderMatcherOrBuilder- Returns:
- The bytes for regexMatch.
-
setRegexMatch
Deprecated.envoy.api.v2.route.HeaderMatcher.regex_match is deprecated. See envoy/api/v2/route/route_components.proto;l=1542If 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. The regex grammar used in the value field is defined `here <https://en.cppreference.com/w/cpp/regex/ecmascript>`_. Examples: * The regex ``\d{3}`` matches the value *123* * The regex ``\d{3}`` does not match the value *1234* * The regex ``\d{3}`` does not match the value *123.456* .. attention:: This field has been deprecated in favor of `safe_regex_match` as it is not safe for use with untrusted input in all cases.string regex_match = 5 [deprecated = true, (.validate.rules) = { ... }- Parameters:
value- The regexMatch to set.- Returns:
- This builder for chaining.
-
clearRegexMatch
Deprecated.envoy.api.v2.route.HeaderMatcher.regex_match is deprecated. See envoy/api/v2/route/route_components.proto;l=1542If 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. The regex grammar used in the value field is defined `here <https://en.cppreference.com/w/cpp/regex/ecmascript>`_. Examples: * The regex ``\d{3}`` matches the value *123* * The regex ``\d{3}`` does not match the value *1234* * The regex ``\d{3}`` does not match the value *123.456* .. attention:: This field has been deprecated in favor of `safe_regex_match` as it is not safe for use with untrusted input in all cases.string regex_match = 5 [deprecated = true, (.validate.rules) = { ... }- Returns:
- This builder for chaining.
-
setRegexMatchBytes
Deprecated.envoy.api.v2.route.HeaderMatcher.regex_match is deprecated. See envoy/api/v2/route/route_components.proto;l=1542If 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. The regex grammar used in the value field is defined `here <https://en.cppreference.com/w/cpp/regex/ecmascript>`_. Examples: * The regex ``\d{3}`` matches the value *123* * The regex ``\d{3}`` does not match the value *1234* * The regex ``\d{3}`` does not match the value *123.456* .. attention:: This field has been deprecated in favor of `safe_regex_match` as it is not safe for use with untrusted input in all cases.string regex_match = 5 [deprecated = true, (.validate.rules) = { ... }- Parameters:
value- The bytes for regexMatch to set.- Returns:
- This builder for chaining.
-
hasSafeRegexMatch
public boolean hasSafeRegexMatch()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.
.envoy.type.matcher.RegexMatcher safe_regex_match = 11;- Specified by:
hasSafeRegexMatchin interfaceHeaderMatcherOrBuilder- Returns:
- Whether the safeRegexMatch field is set.
-
getSafeRegexMatch
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.
.envoy.type.matcher.RegexMatcher safe_regex_match = 11;- Specified by:
getSafeRegexMatchin interfaceHeaderMatcherOrBuilder- Returns:
- The safeRegexMatch.
-
setSafeRegexMatch
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.
.envoy.type.matcher.RegexMatcher safe_regex_match = 11; -
setSafeRegexMatch
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.
.envoy.type.matcher.RegexMatcher safe_regex_match = 11; -
mergeSafeRegexMatch
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.
.envoy.type.matcher.RegexMatcher safe_regex_match = 11; -
clearSafeRegexMatch
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.
.envoy.type.matcher.RegexMatcher safe_regex_match = 11; -
getSafeRegexMatchBuilder
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.
.envoy.type.matcher.RegexMatcher safe_regex_match = 11; -
getSafeRegexMatchOrBuilder
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.
.envoy.type.matcher.RegexMatcher safe_regex_match = 11;- Specified by:
getSafeRegexMatchOrBuilderin interfaceHeaderMatcherOrBuilder
-
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.Int64Range range_match = 6;- Specified by:
hasRangeMatchin 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.Int64Range range_match = 6;- Specified by:
getRangeMatchin 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.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.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.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.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.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.Int64Range range_match = 6;- Specified by:
getRangeMatchOrBuilderin interfaceHeaderMatcherOrBuilder
-
hasPresentMatch
public boolean hasPresentMatch()If specified, header match will be performed based on whether the header is in the request.
bool present_match = 7;- Specified by:
hasPresentMatchin interfaceHeaderMatcherOrBuilder- Returns:
- Whether the presentMatch field is set.
-
getPresentMatch
public boolean getPresentMatch()If specified, header match will be performed based on whether the header is in the request.
bool present_match = 7;- Specified by:
getPresentMatchin interfaceHeaderMatcherOrBuilder- Returns:
- The presentMatch.
-
setPresentMatch
If specified, header match will be performed based on whether the header is in the request.
bool present_match = 7;- Parameters:
value- The presentMatch to set.- Returns:
- This builder for chaining.
-
clearPresentMatch
If specified, header match will be performed based on whether the header is in the request.
bool present_match = 7;- Returns:
- This builder for chaining.
-
hasPrefixMatch
public boolean hasPrefixMatch()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. Examples: * The prefix *abcd* matches the value *abcdxyz*, but not for *abcxyz*.
string prefix_match = 9 [(.validate.rules) = { ... }- Specified by:
hasPrefixMatchin interfaceHeaderMatcherOrBuilder- Returns:
- Whether the prefixMatch field is set.
-
getPrefixMatch
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. Examples: * The prefix *abcd* matches the value *abcdxyz*, but not for *abcxyz*.
string prefix_match = 9 [(.validate.rules) = { ... }- Specified by:
getPrefixMatchin interfaceHeaderMatcherOrBuilder- Returns:
- The prefixMatch.
-
getPrefixMatchBytes
public com.google.protobuf.ByteString getPrefixMatchBytes()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. Examples: * The prefix *abcd* matches the value *abcdxyz*, but not for *abcxyz*.
string prefix_match = 9 [(.validate.rules) = { ... }- Specified by:
getPrefixMatchBytesin interfaceHeaderMatcherOrBuilder- Returns:
- The bytes for prefixMatch.
-
setPrefixMatch
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. Examples: * The prefix *abcd* matches the value *abcdxyz*, but not for *abcxyz*.
string prefix_match = 9 [(.validate.rules) = { ... }- Parameters:
value- The prefixMatch to set.- Returns:
- This builder for chaining.
-
clearPrefixMatch
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. Examples: * The prefix *abcd* matches the value *abcdxyz*, but not for *abcxyz*.
string prefix_match = 9 [(.validate.rules) = { ... }- Returns:
- This builder for chaining.
-
setPrefixMatchBytes
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. Examples: * The prefix *abcd* matches the value *abcdxyz*, but not for *abcxyz*.
string prefix_match = 9 [(.validate.rules) = { ... }- Parameters:
value- The bytes for prefixMatch to set.- Returns:
- This builder for chaining.
-
hasSuffixMatch
public boolean hasSuffixMatch()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. Examples: * The suffix *abcd* matches the value *xyzabcd*, but not for *xyzbcd*.
string suffix_match = 10 [(.validate.rules) = { ... }- Specified by:
hasSuffixMatchin interfaceHeaderMatcherOrBuilder- Returns:
- Whether the suffixMatch field is set.
-
getSuffixMatch
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. Examples: * The suffix *abcd* matches the value *xyzabcd*, but not for *xyzbcd*.
string suffix_match = 10 [(.validate.rules) = { ... }- Specified by:
getSuffixMatchin interfaceHeaderMatcherOrBuilder- Returns:
- The suffixMatch.
-
getSuffixMatchBytes
public com.google.protobuf.ByteString getSuffixMatchBytes()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. Examples: * The suffix *abcd* matches the value *xyzabcd*, but not for *xyzbcd*.
string suffix_match = 10 [(.validate.rules) = { ... }- Specified by:
getSuffixMatchBytesin interfaceHeaderMatcherOrBuilder- Returns:
- The bytes for suffixMatch.
-
setSuffixMatch
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. Examples: * The suffix *abcd* matches the value *xyzabcd*, but not for *xyzbcd*.
string suffix_match = 10 [(.validate.rules) = { ... }- Parameters:
value- The suffixMatch to set.- Returns:
- This builder for chaining.
-
clearSuffixMatch
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. Examples: * The suffix *abcd* matches the value *xyzabcd*, but not for *xyzbcd*.
string suffix_match = 10 [(.validate.rules) = { ... }- Returns:
- This builder for chaining.
-
setSuffixMatchBytes
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. Examples: * The suffix *abcd* matches the value *xyzabcd*, but not for *xyzbcd*.
string suffix_match = 10 [(.validate.rules) = { ... }- Parameters:
value- The bytes for suffixMatch to set.- Returns:
- This builder for chaining.
-
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:
getInvertMatchin 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.
-
setUnknownFields
public final HeaderMatcher.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<HeaderMatcher.Builder>
-
mergeUnknownFields
public final HeaderMatcher.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<HeaderMatcher.Builder>
-