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_config.route.v3.HeaderMatcher.present_match>`. i.e, a request that has the :ref:`name
<envoy_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: 13]
Protobuf type envoy.config.route.v3.HeaderMatcher| Modifier and Type | Method and Description |
|---|---|
HeaderMatcher.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
HeaderMatcher |
build() |
HeaderMatcher |
buildPartial() |
HeaderMatcher.Builder |
clear() |
HeaderMatcher.Builder |
clearContainsMatch()
If specified, header match will be performed based on whether the header value contains
the given value or not.
|
HeaderMatcher.Builder |
clearExactMatch()
If specified, header match will be performed based on the value of the header.
|
HeaderMatcher.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
HeaderMatcher.Builder |
clearHeaderMatchSpecifier() |
HeaderMatcher.Builder |
clearInvertMatch()
If specified, the match result will be inverted before checking.
|
HeaderMatcher.Builder |
clearName()
Specifies the name of the header in the request.
|
HeaderMatcher.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
HeaderMatcher.Builder |
clearPrefixMatch()
If specified, header match will be performed based on the prefix of the header value.
|
HeaderMatcher.Builder |
clearPresentMatch()
If specified, header match will be performed based on whether the header is in the
request.
|
HeaderMatcher.Builder |
clearRangeMatch()
If specified, header match will be performed based on range.
|
HeaderMatcher.Builder |
clearSafeRegexMatch()
If specified, this regex string is a regular expression rule which implies the entire request
header value must match the regex.
|
HeaderMatcher.Builder |
clearSuffixMatch()
If specified, header match will be performed based on the suffix of the header value.
|
HeaderMatcher.Builder |
clone() |
String |
getContainsMatch()
If specified, header match will be performed based on whether the header value contains
the given value or not.
|
com.google.protobuf.ByteString |
getContainsMatchBytes()
If specified, header match will be performed based on whether the header value contains
the given value or not.
|
HeaderMatcher |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getExactMatch()
If specified, header match will be performed based on the value of the header.
|
com.google.protobuf.ByteString |
getExactMatchBytes()
If specified, header match will be performed based on the value of the header.
|
HeaderMatcher.HeaderMatchSpecifierCase |
getHeaderMatchSpecifierCase() |
boolean |
getInvertMatch()
If specified, the match result will be inverted before checking.
|
String |
getName()
Specifies the name of the header in the request.
|
com.google.protobuf.ByteString |
getNameBytes()
Specifies the name of the header in the request.
|
String |
getPrefixMatch()
If specified, header match will be performed based on the prefix of the header value.
|
com.google.protobuf.ByteString |
getPrefixMatchBytes()
If specified, header match will be performed based on the prefix of the header value.
|
boolean |
getPresentMatch()
If specified, header match will be performed based on whether the header is in the
request.
|
Int64Range |
getRangeMatch()
If specified, header match will be performed based on range.
|
Int64Range.Builder |
getRangeMatchBuilder()
If specified, header match will be performed based on range.
|
Int64RangeOrBuilder |
getRangeMatchOrBuilder()
If specified, header match will be performed based on range.
|
RegexMatcher |
getSafeRegexMatch()
If specified, this regex string is a regular expression rule which implies the entire request
header value must match the regex.
|
RegexMatcher.Builder |
getSafeRegexMatchBuilder()
If specified, this regex string is a regular expression rule which implies the entire request
header value must match the regex.
|
RegexMatcherOrBuilder |
getSafeRegexMatchOrBuilder()
If specified, this regex string is a regular expression rule which implies the entire request
header value must match the regex.
|
String |
getSuffixMatch()
If specified, header match will be performed based on the suffix of the header value.
|
com.google.protobuf.ByteString |
getSuffixMatchBytes()
If specified, header match will be performed based on the suffix of the header value.
|
boolean |
hasRangeMatch()
If specified, header match will be performed based on range.
|
boolean |
hasSafeRegexMatch()
If specified, this regex string is a regular expression rule which implies the entire request
header value must match the regex.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
HeaderMatcher.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
HeaderMatcher.Builder |
mergeFrom(HeaderMatcher other) |
HeaderMatcher.Builder |
mergeFrom(com.google.protobuf.Message other) |
HeaderMatcher.Builder |
mergeRangeMatch(Int64Range value)
If specified, header match will be performed based on range.
|
HeaderMatcher.Builder |
mergeSafeRegexMatch(RegexMatcher value)
If specified, this regex string is a regular expression rule which implies the entire request
header value must match the regex.
|
HeaderMatcher.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
HeaderMatcher.Builder |
setContainsMatch(String value)
If specified, header match will be performed based on whether the header value contains
the given value or not.
|
HeaderMatcher.Builder |
setContainsMatchBytes(com.google.protobuf.ByteString value)
If specified, header match will be performed based on whether the header value contains
the given value or not.
|
HeaderMatcher.Builder |
setExactMatch(String value)
If specified, header match will be performed based on the value of the header.
|
HeaderMatcher.Builder |
setExactMatchBytes(com.google.protobuf.ByteString value)
If specified, header match will be performed based on the value of the header.
|
HeaderMatcher.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
HeaderMatcher.Builder |
setInvertMatch(boolean value)
If specified, the match result will be inverted before checking.
|
HeaderMatcher.Builder |
setName(String value)
Specifies the name of the header in the request.
|
HeaderMatcher.Builder |
setNameBytes(com.google.protobuf.ByteString value)
Specifies the name of the header in the request.
|
HeaderMatcher.Builder |
setPrefixMatch(String value)
If specified, header match will be performed based on the prefix of the header value.
|
HeaderMatcher.Builder |
setPrefixMatchBytes(com.google.protobuf.ByteString value)
If specified, header match will be performed based on the prefix of the header value.
|
HeaderMatcher.Builder |
setPresentMatch(boolean value)
If specified, header match will be performed based on whether the header is in the
request.
|
HeaderMatcher.Builder |
setRangeMatch(Int64Range.Builder builderForValue)
If specified, header match will be performed based on range.
|
HeaderMatcher.Builder |
setRangeMatch(Int64Range value)
If specified, header match will be performed based on range.
|
HeaderMatcher.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
HeaderMatcher.Builder |
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.
|
HeaderMatcher.Builder |
setSafeRegexMatch(RegexMatcher value)
If specified, this regex string is a regular expression rule which implies the entire request
header value must match the regex.
|
HeaderMatcher.Builder |
setSuffixMatch(String value)
If specified, header match will be performed based on the suffix of the header value.
|
HeaderMatcher.Builder |
setSuffixMatchBytes(com.google.protobuf.ByteString value)
If specified, header match will be performed based on the suffix of the header value.
|
HeaderMatcher.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<HeaderMatcher.Builder>public HeaderMatcher.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<HeaderMatcher.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<HeaderMatcher.Builder>public HeaderMatcher getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic HeaderMatcher build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic HeaderMatcher buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic HeaderMatcher.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<HeaderMatcher.Builder>public HeaderMatcher.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<HeaderMatcher.Builder>public HeaderMatcher.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<HeaderMatcher.Builder>public HeaderMatcher.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<HeaderMatcher.Builder>public HeaderMatcher.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<HeaderMatcher.Builder>public HeaderMatcher.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<HeaderMatcher.Builder>public HeaderMatcher.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<HeaderMatcher.Builder>public HeaderMatcher.Builder mergeFrom(HeaderMatcher other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<HeaderMatcher.Builder>public HeaderMatcher.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<HeaderMatcher.Builder>IOExceptionpublic HeaderMatcher.HeaderMatchSpecifierCase getHeaderMatchSpecifierCase()
getHeaderMatchSpecifierCase in interface HeaderMatcherOrBuilderpublic HeaderMatcher.Builder clearHeaderMatchSpecifier()
public String getName()
Specifies the name of the header in the request.
string name = 1 [(.validate.rules) = { ... }getName in interface HeaderMatcherOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
Specifies the name of the header in the request.
string name = 1 [(.validate.rules) = { ... }getNameBytes in interface HeaderMatcherOrBuilderpublic HeaderMatcher.Builder setName(String value)
Specifies the name of the header in the request.
string name = 1 [(.validate.rules) = { ... }public HeaderMatcher.Builder clearName()
Specifies the name of the header in the request.
string name = 1 [(.validate.rules) = { ... }public HeaderMatcher.Builder setNameBytes(com.google.protobuf.ByteString value)
Specifies the name of the header in the request.
string name = 1 [(.validate.rules) = { ... }public String getExactMatch()
If specified, header match will be performed based on the value of the header.
string exact_match = 4;getExactMatch in interface HeaderMatcherOrBuilderpublic com.google.protobuf.ByteString getExactMatchBytes()
If specified, header match will be performed based on the value of the header.
string exact_match = 4;getExactMatchBytes in interface HeaderMatcherOrBuilderpublic HeaderMatcher.Builder setExactMatch(String value)
If specified, header match will be performed based on the value of the header.
string exact_match = 4;public HeaderMatcher.Builder clearExactMatch()
If specified, header match will be performed based on the value of the header.
string exact_match = 4;public HeaderMatcher.Builder setExactMatchBytes(com.google.protobuf.ByteString value)
If specified, header match will be performed based on the value of the header.
string exact_match = 4;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.v3.RegexMatcher safe_regex_match = 11;hasSafeRegexMatch in interface HeaderMatcherOrBuilderpublic RegexMatcher 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.v3.RegexMatcher safe_regex_match = 11;getSafeRegexMatch in interface HeaderMatcherOrBuilderpublic HeaderMatcher.Builder setSafeRegexMatch(RegexMatcher value)
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.v3.RegexMatcher safe_regex_match = 11;public HeaderMatcher.Builder 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. The rule will not match if only a subsequence of the request header value matches the regex.
.envoy.type.matcher.v3.RegexMatcher safe_regex_match = 11;public HeaderMatcher.Builder mergeSafeRegexMatch(RegexMatcher value)
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.v3.RegexMatcher safe_regex_match = 11;public HeaderMatcher.Builder 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.v3.RegexMatcher safe_regex_match = 11;public RegexMatcher.Builder 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.v3.RegexMatcher safe_regex_match = 11;public RegexMatcherOrBuilder 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.v3.RegexMatcher safe_regex_match = 11;getSafeRegexMatchOrBuilder in interface HeaderMatcherOrBuilderpublic 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;hasRangeMatch in interface HeaderMatcherOrBuilderpublic 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;getRangeMatch in interface HeaderMatcherOrBuilderpublic 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;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;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;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;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;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;getRangeMatchOrBuilder in interface HeaderMatcherOrBuilderpublic boolean getPresentMatch()
If specified, header match will be performed based on whether the header is in the request.
bool present_match = 7;getPresentMatch in interface HeaderMatcherOrBuilderpublic HeaderMatcher.Builder setPresentMatch(boolean value)
If specified, header match will be performed based on whether the header is in the request.
bool present_match = 7;public HeaderMatcher.Builder clearPresentMatch()
If specified, header match will be performed based on whether the header is in the request.
bool present_match = 7;public String 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) = { ... }getPrefixMatch in interface HeaderMatcherOrBuilderpublic 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) = { ... }getPrefixMatchBytes in interface HeaderMatcherOrBuilderpublic HeaderMatcher.Builder setPrefixMatch(String value)
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) = { ... }public HeaderMatcher.Builder 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) = { ... }public HeaderMatcher.Builder setPrefixMatchBytes(com.google.protobuf.ByteString value)
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) = { ... }public String 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) = { ... }getSuffixMatch in interface HeaderMatcherOrBuilderpublic 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) = { ... }getSuffixMatchBytes in interface HeaderMatcherOrBuilderpublic HeaderMatcher.Builder setSuffixMatch(String value)
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) = { ... }public HeaderMatcher.Builder 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) = { ... }public HeaderMatcher.Builder setSuffixMatchBytes(com.google.protobuf.ByteString value)
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) = { ... }public String getContainsMatch()
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. Examples: * The value *abcd* matches the value *xyzabcdpqr*, but not for *xyzbcdpqr*.
string contains_match = 12 [(.validate.rules) = { ... }getContainsMatch in interface HeaderMatcherOrBuilderpublic com.google.protobuf.ByteString getContainsMatchBytes()
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. Examples: * The value *abcd* matches the value *xyzabcdpqr*, but not for *xyzbcdpqr*.
string contains_match = 12 [(.validate.rules) = { ... }getContainsMatchBytes in interface HeaderMatcherOrBuilderpublic HeaderMatcher.Builder setContainsMatch(String value)
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. Examples: * The value *abcd* matches the value *xyzabcdpqr*, but not for *xyzbcdpqr*.
string contains_match = 12 [(.validate.rules) = { ... }public HeaderMatcher.Builder clearContainsMatch()
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. Examples: * The value *abcd* matches the value *xyzabcdpqr*, but not for *xyzbcdpqr*.
string contains_match = 12 [(.validate.rules) = { ... }public HeaderMatcher.Builder setContainsMatchBytes(com.google.protobuf.ByteString value)
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. Examples: * The value *abcd* matches the value *xyzabcdpqr*, but not for *xyzbcdpqr*.
string contains_match = 12 [(.validate.rules) = { ... }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;getInvertMatch in interface HeaderMatcherOrBuilderpublic 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;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;public final HeaderMatcher.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<HeaderMatcher.Builder>public final HeaderMatcher.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<HeaderMatcher.Builder>Copyright © 2018–2021 The Envoy Project. All rights reserved.