Package io.envoyproxy.envoy.api.v2.route
Class HeaderMatcher.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- 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 typeenvoy.api.v2.route.HeaderMatcher
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description HeaderMatcher.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)HeaderMatcherbuild()HeaderMatcherbuildPartial()HeaderMatcher.Builderclear()HeaderMatcher.BuilderclearExactMatch()If specified, header match will be performed based on the value of the header.HeaderMatcher.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)HeaderMatcher.BuilderclearHeaderMatchSpecifier()HeaderMatcher.BuilderclearInvertMatch()If specified, the match result will be inverted before checking.HeaderMatcher.BuilderclearName()Specifies the name of the header in the request.HeaderMatcher.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)HeaderMatcher.BuilderclearPrefixMatch()If specified, header match will be performed based on the prefix of the header value.HeaderMatcher.BuilderclearPresentMatch()If specified, header match will be performed based on whether the header is in the request.HeaderMatcher.BuilderclearRangeMatch()If specified, header match will be performed based on range.HeaderMatcher.BuilderclearRegexMatch()Deprecated.HeaderMatcher.BuilderclearSafeRegexMatch()If specified, this regex string is a regular expression rule which implies the entire request header value must match the regex.HeaderMatcher.BuilderclearSuffixMatch()If specified, header match will be performed based on the suffix of the header value.HeaderMatcher.Builderclone()HeaderMatchergetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetExactMatch()If specified, header match will be performed based on the value of the header.com.google.protobuf.ByteStringgetExactMatchBytes()If specified, header match will be performed based on the value of the header.HeaderMatcher.HeaderMatchSpecifierCasegetHeaderMatchSpecifierCase()booleangetInvertMatch()If specified, the match result will be inverted before checking.StringgetName()Specifies the name of the header in the request.com.google.protobuf.ByteStringgetNameBytes()Specifies the name of the header in the request.StringgetPrefixMatch()If specified, header match will be performed based on the prefix of the header value.com.google.protobuf.ByteStringgetPrefixMatchBytes()If specified, header match will be performed based on the prefix of the header value.booleangetPresentMatch()If specified, header match will be performed based on whether the header is in the request.Int64RangegetRangeMatch()If specified, header match will be performed based on range.Int64Range.BuildergetRangeMatchBuilder()If specified, header match will be performed based on range.Int64RangeOrBuildergetRangeMatchOrBuilder()If specified, header match will be performed based on range.StringgetRegexMatch()Deprecated.com.google.protobuf.ByteStringgetRegexMatchBytes()Deprecated.RegexMatchergetSafeRegexMatch()If specified, this regex string is a regular expression rule which implies the entire request header value must match the regex.RegexMatcher.BuildergetSafeRegexMatchBuilder()If specified, this regex string is a regular expression rule which implies the entire request header value must match the regex.RegexMatcherOrBuildergetSafeRegexMatchOrBuilder()If specified, this regex string is a regular expression rule which implies the entire request header value must match the regex.StringgetSuffixMatch()If specified, header match will be performed based on the suffix of the header value.com.google.protobuf.ByteStringgetSuffixMatchBytes()If specified, header match will be performed based on the suffix of the header value.booleanhasRangeMatch()If specified, header match will be performed based on range.booleanhasSafeRegexMatch()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.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()HeaderMatcher.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)HeaderMatcher.BuildermergeFrom(com.google.protobuf.Message other)HeaderMatcher.BuildermergeFrom(HeaderMatcher other)HeaderMatcher.BuildermergeRangeMatch(Int64Range value)If specified, header match will be performed based on range.HeaderMatcher.BuildermergeSafeRegexMatch(RegexMatcher value)If specified, this regex string is a regular expression rule which implies the entire request header value must match the regex.HeaderMatcher.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)HeaderMatcher.BuildersetExactMatch(String value)If specified, header match will be performed based on the value of the header.HeaderMatcher.BuildersetExactMatchBytes(com.google.protobuf.ByteString value)If specified, header match will be performed based on the value of the header.HeaderMatcher.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)HeaderMatcher.BuildersetInvertMatch(boolean value)If specified, the match result will be inverted before checking.HeaderMatcher.BuildersetName(String value)Specifies the name of the header in the request.HeaderMatcher.BuildersetNameBytes(com.google.protobuf.ByteString value)Specifies the name of the header in the request.HeaderMatcher.BuildersetPrefixMatch(String value)If specified, header match will be performed based on the prefix of the header value.HeaderMatcher.BuildersetPrefixMatchBytes(com.google.protobuf.ByteString value)If specified, header match will be performed based on the prefix of the header value.HeaderMatcher.BuildersetPresentMatch(boolean value)If specified, header match will be performed based on whether the header is in the request.HeaderMatcher.BuildersetRangeMatch(Int64Range value)If specified, header match will be performed based on range.HeaderMatcher.BuildersetRangeMatch(Int64Range.Builder builderForValue)If specified, header match will be performed based on range.HeaderMatcher.BuildersetRegexMatch(String value)Deprecated.HeaderMatcher.BuildersetRegexMatchBytes(com.google.protobuf.ByteString value)Deprecated.HeaderMatcher.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)HeaderMatcher.BuildersetSafeRegexMatch(RegexMatcher value)If specified, this regex string is a regular expression rule which implies the entire request header value must match the regex.HeaderMatcher.BuildersetSafeRegexMatch(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.BuildersetSuffixMatch(String value)If specified, header match will be performed based on the suffix of the header value.HeaderMatcher.BuildersetSuffixMatchBytes(com.google.protobuf.ByteString value)If specified, header match will be performed based on the suffix of the header value.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, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeFrom, newUninitializedMessageException
-
-
-
-
Method Detail
-
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
public 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
public HeaderMatcher getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public HeaderMatcher build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public HeaderMatcher buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public HeaderMatcher.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
public HeaderMatcher.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<HeaderMatcher.Builder>
-
clearOneof
public HeaderMatcher.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- 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
public HeaderMatcher.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<HeaderMatcher.Builder>
-
mergeFrom
public HeaderMatcher.Builder mergeFrom(HeaderMatcher other)
-
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
public HeaderMatcher.HeaderMatchSpecifierCase getHeaderMatchSpecifierCase()
- Specified by:
getHeaderMatchSpecifierCasein interfaceHeaderMatcherOrBuilder
-
clearHeaderMatchSpecifier
public HeaderMatcher.Builder clearHeaderMatchSpecifier()
-
getName
public String getName()
Specifies the name of the header in the request.
string name = 1 [(.validate.rules) = { ... }- Specified by:
getNamein interfaceHeaderMatcherOrBuilder
-
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
-
setName
public HeaderMatcher.Builder setName(String value)
Specifies the name of the header in the request.
string name = 1 [(.validate.rules) = { ... }
-
clearName
public HeaderMatcher.Builder clearName()
Specifies the name of the header in the request.
string name = 1 [(.validate.rules) = { ... }
-
setNameBytes
public HeaderMatcher.Builder setNameBytes(com.google.protobuf.ByteString value)
Specifies the name of the header in the request.
string name = 1 [(.validate.rules) = { ... }
-
getExactMatch
public String getExactMatch()
If specified, header match will be performed based on the value of the header.
string exact_match = 4;- Specified by:
getExactMatchin interfaceHeaderMatcherOrBuilder
-
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
-
setExactMatch
public HeaderMatcher.Builder setExactMatch(String value)
If specified, header match will be performed based on the value of the header.
string exact_match = 4;
-
clearExactMatch
public HeaderMatcher.Builder clearExactMatch()
If specified, header match will be performed based on the value of the header.
string exact_match = 4;
-
setExactMatchBytes
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;
-
getRegexMatch
@Deprecated public String getRegexMatch()
Deprecated.If specified, this regex string is a regular expression rule which implies the entire request header value must match the regex. The rule will not match if only a subsequence of the request header value matches the regex. 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
-
getRegexMatchBytes
@Deprecated public com.google.protobuf.ByteString getRegexMatchBytes()
Deprecated.If specified, this regex string is a regular expression rule which implies the entire request header value must match the regex. The rule will not match if only a subsequence of the request header value matches the regex. 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
-
setRegexMatch
@Deprecated public HeaderMatcher.Builder setRegexMatch(String value)
Deprecated.If specified, this regex string is a regular expression rule which implies the entire request header value must match the regex. The rule will not match if only a subsequence of the request header value matches the regex. 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) = { ... }
-
clearRegexMatch
@Deprecated public HeaderMatcher.Builder clearRegexMatch()
Deprecated.If specified, this regex string is a regular expression rule which implies the entire request header value must match the regex. The rule will not match if only a subsequence of the request header value matches the regex. 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) = { ... }
-
setRegexMatchBytes
@Deprecated public HeaderMatcher.Builder setRegexMatchBytes(com.google.protobuf.ByteString value)
Deprecated.If specified, this regex string is a regular expression rule which implies the entire request header value must match the regex. The rule will not match if only a subsequence of the request header value matches the regex. 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) = { ... }
-
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
-
getSafeRegexMatch
public 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.RegexMatcher safe_regex_match = 11;- Specified by:
getSafeRegexMatchin interfaceHeaderMatcherOrBuilder
-
setSafeRegexMatch
public 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.RegexMatcher safe_regex_match = 11;
-
setSafeRegexMatch
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.RegexMatcher safe_regex_match = 11;
-
mergeSafeRegexMatch
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.RegexMatcher safe_regex_match = 11;
-
clearSafeRegexMatch
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.RegexMatcher safe_regex_match = 11;
-
getSafeRegexMatchBuilder
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.RegexMatcher safe_regex_match = 11;
-
getSafeRegexMatchOrBuilder
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.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
-
getRangeMatch
public Int64Range getRangeMatch()
If specified, header match will be performed based on range. The rule will match if the request header value is within this range. The entire request header value must represent an integer in base 10 notation: consisting of an optional plus or minus sign followed by a sequence of digits. The rule will not match if the header value does not represent an integer. Match will fail for empty values, floating point numbers or if only a subsequence of the header value is an integer. Examples: * For range [-10,0), route will match for header value -1, but not for 0, "somestring", 10.9, "-1somestring"
.envoy.type.Int64Range range_match = 6;- Specified by:
getRangeMatchin interfaceHeaderMatcherOrBuilder
-
setRangeMatch
public HeaderMatcher.Builder setRangeMatch(Int64Range value)
If specified, header match will be performed based on range. The rule will match if the request header value is within this range. The entire request header value must represent an integer in base 10 notation: consisting of an optional plus or minus sign followed by a sequence of digits. The rule will not match if the header value does not represent an integer. Match will fail for empty values, floating point numbers or if only a subsequence of the header value is an integer. Examples: * For range [-10,0), route will match for header value -1, but not for 0, "somestring", 10.9, "-1somestring"
.envoy.type.Int64Range range_match = 6;
-
setRangeMatch
public HeaderMatcher.Builder setRangeMatch(Int64Range.Builder builderForValue)
If specified, header match will be performed based on range. The rule will match if the request header value is within this range. The entire request header value must represent an integer in base 10 notation: consisting of an optional plus or minus sign followed by a sequence of digits. The rule will not match if the header value does not represent an integer. Match will fail for empty values, floating point numbers or if only a subsequence of the header value is an integer. Examples: * For range [-10,0), route will match for header value -1, but not for 0, "somestring", 10.9, "-1somestring"
.envoy.type.Int64Range range_match = 6;
-
mergeRangeMatch
public HeaderMatcher.Builder mergeRangeMatch(Int64Range value)
If specified, header match will be performed based on range. The rule will match if the request header value is within this range. The entire request header value must represent an integer in base 10 notation: consisting of an optional plus or minus sign followed by a sequence of digits. The rule will not match if the header value does not represent an integer. Match will fail for empty values, floating point numbers or if only a subsequence of the header value is an integer. Examples: * For range [-10,0), route will match for header value -1, but not for 0, "somestring", 10.9, "-1somestring"
.envoy.type.Int64Range range_match = 6;
-
clearRangeMatch
public HeaderMatcher.Builder clearRangeMatch()
If specified, header match will be performed based on range. The rule will match if the request header value is within this range. The entire request header value must represent an integer in base 10 notation: consisting of an optional plus or minus sign followed by a sequence of digits. The rule will not match if the header value does not represent an integer. Match will fail for empty values, floating point numbers or if only a subsequence of the header value is an integer. Examples: * For range [-10,0), route will match for header value -1, but not for 0, "somestring", 10.9, "-1somestring"
.envoy.type.Int64Range range_match = 6;
-
getRangeMatchBuilder
public Int64Range.Builder getRangeMatchBuilder()
If specified, header match will be performed based on range. The rule will match if the request header value is within this range. The entire request header value must represent an integer in base 10 notation: consisting of an optional plus or minus sign followed by a sequence of digits. The rule will not match if the header value does not represent an integer. Match will fail for empty values, floating point numbers or if only a subsequence of the header value is an integer. Examples: * For range [-10,0), route will match for header value -1, but not for 0, "somestring", 10.9, "-1somestring"
.envoy.type.Int64Range range_match = 6;
-
getRangeMatchOrBuilder
public Int64RangeOrBuilder getRangeMatchOrBuilder()
If specified, header match will be performed based on range. The rule will match if the request header value is within this range. The entire request header value must represent an integer in base 10 notation: consisting of an optional plus or minus sign followed by a sequence of digits. The rule will not match if the header value does not represent an integer. Match will fail for empty values, floating point numbers or if only a subsequence of the header value is an integer. Examples: * For range [-10,0), route will match for header value -1, but not for 0, "somestring", 10.9, "-1somestring"
.envoy.type.Int64Range range_match = 6;- Specified by:
getRangeMatchOrBuilderin interfaceHeaderMatcherOrBuilder
-
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
-
setPresentMatch
public 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;
-
clearPresentMatch
public HeaderMatcher.Builder clearPresentMatch()
If specified, header match will be performed based on whether the header is in the request.
bool present_match = 7;
-
getPrefixMatch
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) = { ... }- Specified by:
getPrefixMatchin interfaceHeaderMatcherOrBuilder
-
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
-
setPrefixMatch
public 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) = { ... }
-
clearPrefixMatch
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) = { ... }
-
setPrefixMatchBytes
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) = { ... }
-
getSuffixMatch
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) = { ... }- Specified by:
getSuffixMatchin interfaceHeaderMatcherOrBuilder
-
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
-
setSuffixMatch
public 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) = { ... }
-
clearSuffixMatch
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) = { ... }
-
setSuffixMatchBytes
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) = { ... }
-
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
-
setInvertMatch
public HeaderMatcher.Builder setInvertMatch(boolean value)
If specified, the match result will be inverted before checking. Defaults to false. Examples: * The regex ``\d{3}`` does not match the value *1234*, so it will match when inverted. * The range [-10,0) will match the value -1, so it will not match when inverted.bool invert_match = 8;
-
clearInvertMatch
public HeaderMatcher.Builder clearInvertMatch()
If specified, the match result will be inverted before checking. Defaults to false. Examples: * The regex ``\d{3}`` does not match the value *1234*, so it will match when inverted. * The range [-10,0) will match the value -1, so it will not match when inverted.bool invert_match = 8;
-
setUnknownFields
public final HeaderMatcher.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
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>
-
-