public static final class RouteOuterClass.HeaderMatcher.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<RouteOuterClass.HeaderMatcher.Builder> implements RouteOuterClass.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.
Protobuf type envoy.api.v2.route.HeaderMatcher| Modifier and Type | Method and Description |
|---|---|
RouteOuterClass.HeaderMatcher.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
RouteOuterClass.HeaderMatcher |
build() |
RouteOuterClass.HeaderMatcher |
buildPartial() |
RouteOuterClass.HeaderMatcher.Builder |
clear() |
RouteOuterClass.HeaderMatcher.Builder |
clearExactMatch()
If specified, header match will be performed based on the value of the header.
|
RouteOuterClass.HeaderMatcher.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
RouteOuterClass.HeaderMatcher.Builder |
clearHeaderMatchSpecifier() |
RouteOuterClass.HeaderMatcher.Builder |
clearInvertMatch()
If specified, the match result will be inverted before checking.
|
RouteOuterClass.HeaderMatcher.Builder |
clearName()
Specifies the name of the header in the request.
|
RouteOuterClass.HeaderMatcher.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
RouteOuterClass.HeaderMatcher.Builder |
clearPrefixMatch()
If specified, header match will be performed based on the prefix of the header value.
|
RouteOuterClass.HeaderMatcher.Builder |
clearPresentMatch()
If specified, header match will be be performed based on whether the header is in the
request.
|
RouteOuterClass.HeaderMatcher.Builder |
clearRangeMatch()
If specified, header match will be performed based on range.
|
RouteOuterClass.HeaderMatcher.Builder |
clearRegexMatch()
If specified, this regex string is a regular expression rule which implies the entire request
header value must match the regex.
|
RouteOuterClass.HeaderMatcher.Builder |
clearSuffixMatch()
If specified, header match will be performed based on the suffix of the header value.
|
RouteOuterClass.HeaderMatcher.Builder |
clone() |
RouteOuterClass.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.
|
RouteOuterClass.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 be performed based on whether the header is in the
request.
|
Range.Int64Range |
getRangeMatch()
If specified, header match will be performed based on range.
|
Range.Int64Range.Builder |
getRangeMatchBuilder()
If specified, header match will be performed based on range.
|
Range.Int64RangeOrBuilder |
getRangeMatchOrBuilder()
If specified, header match will be performed based on range.
|
String |
getRegexMatch()
If specified, this regex string is a regular expression rule which implies the entire request
header value must match the regex.
|
com.google.protobuf.ByteString |
getRegexMatchBytes()
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.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
RouteOuterClass.HeaderMatcher.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
RouteOuterClass.HeaderMatcher.Builder |
mergeFrom(com.google.protobuf.Message other) |
RouteOuterClass.HeaderMatcher.Builder |
mergeFrom(RouteOuterClass.HeaderMatcher other) |
RouteOuterClass.HeaderMatcher.Builder |
mergeRangeMatch(Range.Int64Range value)
If specified, header match will be performed based on range.
|
RouteOuterClass.HeaderMatcher.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
RouteOuterClass.HeaderMatcher.Builder |
setExactMatch(String value)
If specified, header match will be performed based on the value of the header.
|
RouteOuterClass.HeaderMatcher.Builder |
setExactMatchBytes(com.google.protobuf.ByteString value)
If specified, header match will be performed based on the value of the header.
|
RouteOuterClass.HeaderMatcher.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
RouteOuterClass.HeaderMatcher.Builder |
setInvertMatch(boolean value)
If specified, the match result will be inverted before checking.
|
RouteOuterClass.HeaderMatcher.Builder |
setName(String value)
Specifies the name of the header in the request.
|
RouteOuterClass.HeaderMatcher.Builder |
setNameBytes(com.google.protobuf.ByteString value)
Specifies the name of the header in the request.
|
RouteOuterClass.HeaderMatcher.Builder |
setPrefixMatch(String value)
If specified, header match will be performed based on the prefix of the header value.
|
RouteOuterClass.HeaderMatcher.Builder |
setPrefixMatchBytes(com.google.protobuf.ByteString value)
If specified, header match will be performed based on the prefix of the header value.
|
RouteOuterClass.HeaderMatcher.Builder |
setPresentMatch(boolean value)
If specified, header match will be be performed based on whether the header is in the
request.
|
RouteOuterClass.HeaderMatcher.Builder |
setRangeMatch(Range.Int64Range.Builder builderForValue)
If specified, header match will be performed based on range.
|
RouteOuterClass.HeaderMatcher.Builder |
setRangeMatch(Range.Int64Range value)
If specified, header match will be performed based on range.
|
RouteOuterClass.HeaderMatcher.Builder |
setRegexMatch(String value)
If specified, this regex string is a regular expression rule which implies the entire request
header value must match the regex.
|
RouteOuterClass.HeaderMatcher.Builder |
setRegexMatchBytes(com.google.protobuf.ByteString value)
If specified, this regex string is a regular expression rule which implies the entire request
header value must match the regex.
|
RouteOuterClass.HeaderMatcher.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
RouteOuterClass.HeaderMatcher.Builder |
setSuffixMatch(String value)
If specified, header match will be performed based on the suffix of the header value.
|
RouteOuterClass.HeaderMatcher.Builder |
setSuffixMatchBytes(com.google.protobuf.ByteString value)
If specified, header match will be performed based on the suffix of the header value.
|
RouteOuterClass.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<RouteOuterClass.HeaderMatcher.Builder>public RouteOuterClass.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<RouteOuterClass.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<RouteOuterClass.HeaderMatcher.Builder>public RouteOuterClass.HeaderMatcher getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic RouteOuterClass.HeaderMatcher build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic RouteOuterClass.HeaderMatcher buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic RouteOuterClass.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<RouteOuterClass.HeaderMatcher.Builder>public RouteOuterClass.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<RouteOuterClass.HeaderMatcher.Builder>public RouteOuterClass.HeaderMatcher.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<RouteOuterClass.HeaderMatcher.Builder>public RouteOuterClass.HeaderMatcher.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<RouteOuterClass.HeaderMatcher.Builder>public RouteOuterClass.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<RouteOuterClass.HeaderMatcher.Builder>public RouteOuterClass.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<RouteOuterClass.HeaderMatcher.Builder>public RouteOuterClass.HeaderMatcher.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<RouteOuterClass.HeaderMatcher.Builder>public RouteOuterClass.HeaderMatcher.Builder mergeFrom(RouteOuterClass.HeaderMatcher other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<RouteOuterClass.HeaderMatcher.Builder>public RouteOuterClass.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<RouteOuterClass.HeaderMatcher.Builder>IOExceptionpublic RouteOuterClass.HeaderMatcher.HeaderMatchSpecifierCase getHeaderMatchSpecifierCase()
getHeaderMatchSpecifierCase in interface RouteOuterClass.HeaderMatcherOrBuilderpublic RouteOuterClass.HeaderMatcher.Builder clearHeaderMatchSpecifier()
public String getName()
Specifies the name of the header in the request.
string name = 1 [(.validate.rules) = { ... }getName in interface RouteOuterClass.HeaderMatcherOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
Specifies the name of the header in the request.
string name = 1 [(.validate.rules) = { ... }getNameBytes in interface RouteOuterClass.HeaderMatcherOrBuilderpublic RouteOuterClass.HeaderMatcher.Builder setName(String value)
Specifies the name of the header in the request.
string name = 1 [(.validate.rules) = { ... }public RouteOuterClass.HeaderMatcher.Builder clearName()
Specifies the name of the header in the request.
string name = 1 [(.validate.rules) = { ... }public RouteOuterClass.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 RouteOuterClass.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 RouteOuterClass.HeaderMatcherOrBuilderpublic RouteOuterClass.HeaderMatcher.Builder setExactMatch(String value)
If specified, header match will be performed based on the value of the header.
string exact_match = 4;public RouteOuterClass.HeaderMatcher.Builder clearExactMatch()
If specified, header match will be performed based on the value of the header.
string exact_match = 4;public RouteOuterClass.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 String getRegexMatch()
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. The regex grammar used in the value field is defined
`here <http://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*
string regex_match = 5 [(.validate.rules) = { ... }getRegexMatch in interface RouteOuterClass.HeaderMatcherOrBuilderpublic com.google.protobuf.ByteString getRegexMatchBytes()
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. The regex grammar used in the value field is defined
`here <http://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*
string regex_match = 5 [(.validate.rules) = { ... }getRegexMatchBytes in interface RouteOuterClass.HeaderMatcherOrBuilderpublic RouteOuterClass.HeaderMatcher.Builder setRegexMatch(String 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. The regex grammar used in the value field is defined
`here <http://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*
string regex_match = 5 [(.validate.rules) = { ... }public RouteOuterClass.HeaderMatcher.Builder clearRegexMatch()
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. The regex grammar used in the value field is defined
`here <http://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*
string regex_match = 5 [(.validate.rules) = { ... }public RouteOuterClass.HeaderMatcher.Builder setRegexMatchBytes(com.google.protobuf.ByteString 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. The regex grammar used in the value field is defined
`here <http://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*
string regex_match = 5 [(.validate.rules) = { ... }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;hasRangeMatch in interface RouteOuterClass.HeaderMatcherOrBuilderpublic Range.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.Int64Range range_match = 6;getRangeMatch in interface RouteOuterClass.HeaderMatcherOrBuilderpublic RouteOuterClass.HeaderMatcher.Builder setRangeMatch(Range.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.Int64Range range_match = 6;public RouteOuterClass.HeaderMatcher.Builder setRangeMatch(Range.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.Int64Range range_match = 6;public RouteOuterClass.HeaderMatcher.Builder mergeRangeMatch(Range.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.Int64Range range_match = 6;public RouteOuterClass.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.Int64Range range_match = 6;public Range.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.Int64Range range_match = 6;public Range.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.Int64Range range_match = 6;getRangeMatchOrBuilder in interface RouteOuterClass.HeaderMatcherOrBuilderpublic boolean getPresentMatch()
If specified, header match will be be performed based on whether the header is in the request.
bool present_match = 7;getPresentMatch in interface RouteOuterClass.HeaderMatcherOrBuilderpublic RouteOuterClass.HeaderMatcher.Builder setPresentMatch(boolean value)
If specified, header match will be be performed based on whether the header is in the request.
bool present_match = 7;public RouteOuterClass.HeaderMatcher.Builder clearPresentMatch()
If specified, header match will be 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 RouteOuterClass.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 RouteOuterClass.HeaderMatcherOrBuilderpublic RouteOuterClass.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 RouteOuterClass.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 RouteOuterClass.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 RouteOuterClass.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 RouteOuterClass.HeaderMatcherOrBuilderpublic RouteOuterClass.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 RouteOuterClass.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 RouteOuterClass.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 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 RouteOuterClass.HeaderMatcherOrBuilderpublic RouteOuterClass.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 RouteOuterClass.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 RouteOuterClass.HeaderMatcher.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<RouteOuterClass.HeaderMatcher.Builder>public final RouteOuterClass.HeaderMatcher.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<RouteOuterClass.HeaderMatcher.Builder>Copyright © 2018 The Envoy Project. All rights reserved.