Package io.envoyproxy.envoy.api.v2.route
Class RouteMatch
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- io.envoyproxy.envoy.api.v2.route.RouteMatch
-
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,RouteMatchOrBuilder,Serializable
public final class RouteMatch extends com.google.protobuf.GeneratedMessageV3 implements RouteMatchOrBuilder
[#next-free-field: 12]
Protobuf typeenvoy.api.v2.route.RouteMatch- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRouteMatch.Builder[#next-free-field: 12]static classRouteMatch.GrpcRouteMatchOptionsProtobuf typeenvoy.api.v2.route.RouteMatch.GrpcRouteMatchOptionsstatic interfaceRouteMatch.GrpcRouteMatchOptionsOrBuilderstatic classRouteMatch.PathSpecifierCasestatic classRouteMatch.TlsContextMatchOptionsProtobuf typeenvoy.api.v2.route.RouteMatch.TlsContextMatchOptionsstatic interfaceRouteMatch.TlsContextMatchOptionsOrBuilder-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intCASE_SENSITIVE_FIELD_NUMBERstatic intGRPC_FIELD_NUMBERstatic intHEADERS_FIELD_NUMBERstatic intPATH_FIELD_NUMBERstatic intPREFIX_FIELD_NUMBERstatic intQUERY_PARAMETERS_FIELD_NUMBERstatic intREGEX_FIELD_NUMBERstatic intRUNTIME_FRACTION_FIELD_NUMBERstatic intSAFE_REGEX_FIELD_NUMBERstatic intTLS_CONTEXT_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleanequals(Object obj)com.google.protobuf.BoolValuegetCaseSensitive()Indicates that prefix/path matching should be case sensitive.com.google.protobuf.BoolValueOrBuildergetCaseSensitiveOrBuilder()Indicates that prefix/path matching should be case sensitive.static RouteMatchgetDefaultInstance()RouteMatchgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()RouteMatch.GrpcRouteMatchOptionsgetGrpc()If specified, only gRPC requests will be matched.RouteMatch.GrpcRouteMatchOptionsOrBuildergetGrpcOrBuilder()If specified, only gRPC requests will be matched.HeaderMatchergetHeaders(int index)Specifies a set of headers that the route should match on.intgetHeadersCount()Specifies a set of headers that the route should match on.List<HeaderMatcher>getHeadersList()Specifies a set of headers that the route should match on.HeaderMatcherOrBuildergetHeadersOrBuilder(int index)Specifies a set of headers that the route should match on.List<? extends HeaderMatcherOrBuilder>getHeadersOrBuilderList()Specifies a set of headers that the route should match on.com.google.protobuf.Parser<RouteMatch>getParserForType()StringgetPath()If specified, the route is an exact path rule meaning that the path must exactly match the *:path* header once the query string is removed.com.google.protobuf.ByteStringgetPathBytes()If specified, the route is an exact path rule meaning that the path must exactly match the *:path* header once the query string is removed.RouteMatch.PathSpecifierCasegetPathSpecifierCase()StringgetPrefix()If specified, the route is a prefix rule meaning that the prefix must match the beginning of the *:path* header.com.google.protobuf.ByteStringgetPrefixBytes()If specified, the route is a prefix rule meaning that the prefix must match the beginning of the *:path* header.QueryParameterMatchergetQueryParameters(int index)Specifies a set of URL query parameters on which the route should match.intgetQueryParametersCount()Specifies a set of URL query parameters on which the route should match.List<QueryParameterMatcher>getQueryParametersList()Specifies a set of URL query parameters on which the route should match.QueryParameterMatcherOrBuildergetQueryParametersOrBuilder(int index)Specifies a set of URL query parameters on which the route should match.List<? extends QueryParameterMatcherOrBuilder>getQueryParametersOrBuilderList()Specifies a set of URL query parameters on which the route should match.StringgetRegex()Deprecated.envoy.api.v2.route.RouteMatch.regex is deprecated.com.google.protobuf.ByteStringgetRegexBytes()Deprecated.envoy.api.v2.route.RouteMatch.regex is deprecated.RuntimeFractionalPercentgetRuntimeFraction()Indicates that the route should additionally match on a runtime key.RuntimeFractionalPercentOrBuildergetRuntimeFractionOrBuilder()Indicates that the route should additionally match on a runtime key.RegexMatchergetSafeRegex()If specified, the route is a regular expression rule meaning that the regex must match the *:path* header once the query string is removed.RegexMatcherOrBuildergetSafeRegexOrBuilder()If specified, the route is a regular expression rule meaning that the regex must match the *:path* header once the query string is removed.intgetSerializedSize()RouteMatch.TlsContextMatchOptionsgetTlsContext()If specified, the client tls context will be matched against the defined match options.RouteMatch.TlsContextMatchOptionsOrBuildergetTlsContextOrBuilder()If specified, the client tls context will be matched against the defined match options.com.google.protobuf.UnknownFieldSetgetUnknownFields()booleanhasCaseSensitive()Indicates that prefix/path matching should be case sensitive.booleanhasGrpc()If specified, only gRPC requests will be matched.inthashCode()booleanhasPath()If specified, the route is an exact path rule meaning that the path must exactly match the *:path* header once the query string is removed.booleanhasPrefix()If specified, the route is a prefix rule meaning that the prefix must match the beginning of the *:path* header.booleanhasRegex()Deprecated.envoy.api.v2.route.RouteMatch.regex is deprecated.booleanhasRuntimeFraction()Indicates that the route should additionally match on a runtime key.booleanhasSafeRegex()If specified, the route is a regular expression rule meaning that the regex must match the *:path* header once the query string is removed.booleanhasTlsContext()If specified, the client tls context will be matched against the defined match options.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static RouteMatch.BuildernewBuilder()static RouteMatch.BuildernewBuilder(RouteMatch prototype)RouteMatch.BuildernewBuilderForType()protected RouteMatch.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static RouteMatchparseDelimitedFrom(InputStream input)static RouteMatchparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static RouteMatchparseFrom(byte[] data)static RouteMatchparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static RouteMatchparseFrom(com.google.protobuf.ByteString data)static RouteMatchparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static RouteMatchparseFrom(com.google.protobuf.CodedInputStream input)static RouteMatchparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static RouteMatchparseFrom(InputStream input)static RouteMatchparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static RouteMatchparseFrom(ByteBuffer data)static RouteMatchparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<RouteMatch>parser()RouteMatch.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
PREFIX_FIELD_NUMBER
public static final int PREFIX_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PATH_FIELD_NUMBER
public static final int PATH_FIELD_NUMBER
- See Also:
- Constant Field Values
-
REGEX_FIELD_NUMBER
public static final int REGEX_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SAFE_REGEX_FIELD_NUMBER
public static final int SAFE_REGEX_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CASE_SENSITIVE_FIELD_NUMBER
public static final int CASE_SENSITIVE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
RUNTIME_FRACTION_FIELD_NUMBER
public static final int RUNTIME_FRACTION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
HEADERS_FIELD_NUMBER
public static final int HEADERS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
QUERY_PARAMETERS_FIELD_NUMBER
public static final int QUERY_PARAMETERS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
GRPC_FIELD_NUMBER
public static final int GRPC_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TLS_CONTEXT_FIELD_NUMBER
public static final int TLS_CONTEXT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getUnknownFields
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
- Specified by:
getUnknownFieldsin interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3
-
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
-
getPathSpecifierCase
public RouteMatch.PathSpecifierCase getPathSpecifierCase()
- Specified by:
getPathSpecifierCasein interfaceRouteMatchOrBuilder
-
hasPrefix
public boolean hasPrefix()
If specified, the route is a prefix rule meaning that the prefix must match the beginning of the *:path* header.
string prefix = 1;- Specified by:
hasPrefixin interfaceRouteMatchOrBuilder- Returns:
- Whether the prefix field is set.
-
getPrefix
public String getPrefix()
If specified, the route is a prefix rule meaning that the prefix must match the beginning of the *:path* header.
string prefix = 1;- Specified by:
getPrefixin interfaceRouteMatchOrBuilder- Returns:
- The prefix.
-
getPrefixBytes
public com.google.protobuf.ByteString getPrefixBytes()
If specified, the route is a prefix rule meaning that the prefix must match the beginning of the *:path* header.
string prefix = 1;- Specified by:
getPrefixBytesin interfaceRouteMatchOrBuilder- Returns:
- The bytes for prefix.
-
hasPath
public boolean hasPath()
If specified, the route is an exact path rule meaning that the path must exactly match the *:path* header once the query string is removed.
string path = 2;- Specified by:
hasPathin interfaceRouteMatchOrBuilder- Returns:
- Whether the path field is set.
-
getPath
public String getPath()
If specified, the route is an exact path rule meaning that the path must exactly match the *:path* header once the query string is removed.
string path = 2;- Specified by:
getPathin interfaceRouteMatchOrBuilder- Returns:
- The path.
-
getPathBytes
public com.google.protobuf.ByteString getPathBytes()
If specified, the route is an exact path rule meaning that the path must exactly match the *:path* header once the query string is removed.
string path = 2;- Specified by:
getPathBytesin interfaceRouteMatchOrBuilder- Returns:
- The bytes for path.
-
hasRegex
@Deprecated public boolean hasRegex()
Deprecated.envoy.api.v2.route.RouteMatch.regex is deprecated. See envoy/api/v2/route/route_components.proto;l=418If specified, the route is a regular expression rule meaning that the regex must match the *:path* header once the query string is removed. The entire path (without the query string) must match the regex. The rule will not match if only a subsequence of the *:path* header matches the regex. The regex grammar is defined `here <https://en.cppreference.com/w/cpp/regex/ecmascript>`_. Examples: * The regex ``/b[io]t`` matches the path */bit* * The regex ``/b[io]t`` matches the path */bot* * The regex ``/b[io]t`` does not match the path */bite* * The regex ``/b[io]t`` does not match the path */bit/bot* .. attention:: This field has been deprecated in favor of `safe_regex` as it is not safe for use with untrusted input in all cases.
string regex = 3 [deprecated = true, (.validate.rules) = { ... }- Specified by:
hasRegexin interfaceRouteMatchOrBuilder- Returns:
- Whether the regex field is set.
-
getRegex
@Deprecated public String getRegex()
Deprecated.envoy.api.v2.route.RouteMatch.regex is deprecated. See envoy/api/v2/route/route_components.proto;l=418If specified, the route is a regular expression rule meaning that the regex must match the *:path* header once the query string is removed. The entire path (without the query string) must match the regex. The rule will not match if only a subsequence of the *:path* header matches the regex. The regex grammar is defined `here <https://en.cppreference.com/w/cpp/regex/ecmascript>`_. Examples: * The regex ``/b[io]t`` matches the path */bit* * The regex ``/b[io]t`` matches the path */bot* * The regex ``/b[io]t`` does not match the path */bite* * The regex ``/b[io]t`` does not match the path */bit/bot* .. attention:: This field has been deprecated in favor of `safe_regex` as it is not safe for use with untrusted input in all cases.
string regex = 3 [deprecated = true, (.validate.rules) = { ... }- Specified by:
getRegexin interfaceRouteMatchOrBuilder- Returns:
- The regex.
-
getRegexBytes
@Deprecated public com.google.protobuf.ByteString getRegexBytes()
Deprecated.envoy.api.v2.route.RouteMatch.regex is deprecated. See envoy/api/v2/route/route_components.proto;l=418If specified, the route is a regular expression rule meaning that the regex must match the *:path* header once the query string is removed. The entire path (without the query string) must match the regex. The rule will not match if only a subsequence of the *:path* header matches the regex. The regex grammar is defined `here <https://en.cppreference.com/w/cpp/regex/ecmascript>`_. Examples: * The regex ``/b[io]t`` matches the path */bit* * The regex ``/b[io]t`` matches the path */bot* * The regex ``/b[io]t`` does not match the path */bite* * The regex ``/b[io]t`` does not match the path */bit/bot* .. attention:: This field has been deprecated in favor of `safe_regex` as it is not safe for use with untrusted input in all cases.
string regex = 3 [deprecated = true, (.validate.rules) = { ... }- Specified by:
getRegexBytesin interfaceRouteMatchOrBuilder- Returns:
- The bytes for regex.
-
hasSafeRegex
public boolean hasSafeRegex()
If specified, the route is a regular expression rule meaning that the regex must match the *:path* header once the query string is removed. The entire path (without the query string) must match the regex. The rule will not match if only a subsequence of the *:path* header matches the regex. [#next-major-version: In the v3 API we should redo how path specification works such that we utilize StringMatcher, and additionally have consistent options around whether we strip query strings, do a case sensitive match, etc. In the interim it will be too disruptive to deprecate the existing options. We should even consider whether we want to do away with path_specifier entirely and just rely on a set of header matchers which can already match on :path, etc. The issue with that is it is unclear how to generically deal with query string stripping. This needs more thought.]
.envoy.type.matcher.RegexMatcher safe_regex = 10 [(.validate.rules) = { ... }- Specified by:
hasSafeRegexin interfaceRouteMatchOrBuilder- Returns:
- Whether the safeRegex field is set.
-
getSafeRegex
public RegexMatcher getSafeRegex()
If specified, the route is a regular expression rule meaning that the regex must match the *:path* header once the query string is removed. The entire path (without the query string) must match the regex. The rule will not match if only a subsequence of the *:path* header matches the regex. [#next-major-version: In the v3 API we should redo how path specification works such that we utilize StringMatcher, and additionally have consistent options around whether we strip query strings, do a case sensitive match, etc. In the interim it will be too disruptive to deprecate the existing options. We should even consider whether we want to do away with path_specifier entirely and just rely on a set of header matchers which can already match on :path, etc. The issue with that is it is unclear how to generically deal with query string stripping. This needs more thought.]
.envoy.type.matcher.RegexMatcher safe_regex = 10 [(.validate.rules) = { ... }- Specified by:
getSafeRegexin interfaceRouteMatchOrBuilder- Returns:
- The safeRegex.
-
getSafeRegexOrBuilder
public RegexMatcherOrBuilder getSafeRegexOrBuilder()
If specified, the route is a regular expression rule meaning that the regex must match the *:path* header once the query string is removed. The entire path (without the query string) must match the regex. The rule will not match if only a subsequence of the *:path* header matches the regex. [#next-major-version: In the v3 API we should redo how path specification works such that we utilize StringMatcher, and additionally have consistent options around whether we strip query strings, do a case sensitive match, etc. In the interim it will be too disruptive to deprecate the existing options. We should even consider whether we want to do away with path_specifier entirely and just rely on a set of header matchers which can already match on :path, etc. The issue with that is it is unclear how to generically deal with query string stripping. This needs more thought.]
.envoy.type.matcher.RegexMatcher safe_regex = 10 [(.validate.rules) = { ... }- Specified by:
getSafeRegexOrBuilderin interfaceRouteMatchOrBuilder
-
hasCaseSensitive
public boolean hasCaseSensitive()
Indicates that prefix/path matching should be case sensitive. The default is true.
.google.protobuf.BoolValue case_sensitive = 4;- Specified by:
hasCaseSensitivein interfaceRouteMatchOrBuilder- Returns:
- Whether the caseSensitive field is set.
-
getCaseSensitive
public com.google.protobuf.BoolValue getCaseSensitive()
Indicates that prefix/path matching should be case sensitive. The default is true.
.google.protobuf.BoolValue case_sensitive = 4;- Specified by:
getCaseSensitivein interfaceRouteMatchOrBuilder- Returns:
- The caseSensitive.
-
getCaseSensitiveOrBuilder
public com.google.protobuf.BoolValueOrBuilder getCaseSensitiveOrBuilder()
Indicates that prefix/path matching should be case sensitive. The default is true.
.google.protobuf.BoolValue case_sensitive = 4;- Specified by:
getCaseSensitiveOrBuilderin interfaceRouteMatchOrBuilder
-
hasRuntimeFraction
public boolean hasRuntimeFraction()
Indicates that the route should additionally match on a runtime key. Every time the route is considered for a match, it must also fall under the percentage of matches indicated by this field. For some fraction N/D, a random number in the range [0,D) is selected. If the number is <= the value of the numerator N, or if the key is not present, the default value, the router continues to evaluate the remaining match criteria. A runtime_fraction route configuration can be used to roll out route changes in a gradual manner without full code/config deploys. Refer to the :ref:`traffic shifting <config_http_conn_man_route_table_traffic_splitting_shift>` docs for additional documentation. .. note:: Parsing this field is implemented such that the runtime key's data may be represented as a FractionalPercent proto represented as JSON/YAML and may also be represented as an integer with the assumption that the value is an integral percentage out of 100. For instance, a runtime key lookup returning the value "42" would parse as a FractionalPercent whose numerator is 42 and denominator is HUNDRED. This preserves legacy semantics..envoy.api.v2.core.RuntimeFractionalPercent runtime_fraction = 9;- Specified by:
hasRuntimeFractionin interfaceRouteMatchOrBuilder- Returns:
- Whether the runtimeFraction field is set.
-
getRuntimeFraction
public RuntimeFractionalPercent getRuntimeFraction()
Indicates that the route should additionally match on a runtime key. Every time the route is considered for a match, it must also fall under the percentage of matches indicated by this field. For some fraction N/D, a random number in the range [0,D) is selected. If the number is <= the value of the numerator N, or if the key is not present, the default value, the router continues to evaluate the remaining match criteria. A runtime_fraction route configuration can be used to roll out route changes in a gradual manner without full code/config deploys. Refer to the :ref:`traffic shifting <config_http_conn_man_route_table_traffic_splitting_shift>` docs for additional documentation. .. note:: Parsing this field is implemented such that the runtime key's data may be represented as a FractionalPercent proto represented as JSON/YAML and may also be represented as an integer with the assumption that the value is an integral percentage out of 100. For instance, a runtime key lookup returning the value "42" would parse as a FractionalPercent whose numerator is 42 and denominator is HUNDRED. This preserves legacy semantics..envoy.api.v2.core.RuntimeFractionalPercent runtime_fraction = 9;- Specified by:
getRuntimeFractionin interfaceRouteMatchOrBuilder- Returns:
- The runtimeFraction.
-
getRuntimeFractionOrBuilder
public RuntimeFractionalPercentOrBuilder getRuntimeFractionOrBuilder()
Indicates that the route should additionally match on a runtime key. Every time the route is considered for a match, it must also fall under the percentage of matches indicated by this field. For some fraction N/D, a random number in the range [0,D) is selected. If the number is <= the value of the numerator N, or if the key is not present, the default value, the router continues to evaluate the remaining match criteria. A runtime_fraction route configuration can be used to roll out route changes in a gradual manner without full code/config deploys. Refer to the :ref:`traffic shifting <config_http_conn_man_route_table_traffic_splitting_shift>` docs for additional documentation. .. note:: Parsing this field is implemented such that the runtime key's data may be represented as a FractionalPercent proto represented as JSON/YAML and may also be represented as an integer with the assumption that the value is an integral percentage out of 100. For instance, a runtime key lookup returning the value "42" would parse as a FractionalPercent whose numerator is 42 and denominator is HUNDRED. This preserves legacy semantics..envoy.api.v2.core.RuntimeFractionalPercent runtime_fraction = 9;- Specified by:
getRuntimeFractionOrBuilderin interfaceRouteMatchOrBuilder
-
getHeadersList
public List<HeaderMatcher> getHeadersList()
Specifies a set of headers that the route should match on. The router will check the request’s headers against all the specified headers in the route config. A match will happen if all the headers in the route are present in the request with the same values (or based on presence if the value field is not in the config).
repeated .envoy.api.v2.route.HeaderMatcher headers = 6;- Specified by:
getHeadersListin interfaceRouteMatchOrBuilder
-
getHeadersOrBuilderList
public List<? extends HeaderMatcherOrBuilder> getHeadersOrBuilderList()
Specifies a set of headers that the route should match on. The router will check the request’s headers against all the specified headers in the route config. A match will happen if all the headers in the route are present in the request with the same values (or based on presence if the value field is not in the config).
repeated .envoy.api.v2.route.HeaderMatcher headers = 6;- Specified by:
getHeadersOrBuilderListin interfaceRouteMatchOrBuilder
-
getHeadersCount
public int getHeadersCount()
Specifies a set of headers that the route should match on. The router will check the request’s headers against all the specified headers in the route config. A match will happen if all the headers in the route are present in the request with the same values (or based on presence if the value field is not in the config).
repeated .envoy.api.v2.route.HeaderMatcher headers = 6;- Specified by:
getHeadersCountin interfaceRouteMatchOrBuilder
-
getHeaders
public HeaderMatcher getHeaders(int index)
Specifies a set of headers that the route should match on. The router will check the request’s headers against all the specified headers in the route config. A match will happen if all the headers in the route are present in the request with the same values (or based on presence if the value field is not in the config).
repeated .envoy.api.v2.route.HeaderMatcher headers = 6;- Specified by:
getHeadersin interfaceRouteMatchOrBuilder
-
getHeadersOrBuilder
public HeaderMatcherOrBuilder getHeadersOrBuilder(int index)
Specifies a set of headers that the route should match on. The router will check the request’s headers against all the specified headers in the route config. A match will happen if all the headers in the route are present in the request with the same values (or based on presence if the value field is not in the config).
repeated .envoy.api.v2.route.HeaderMatcher headers = 6;- Specified by:
getHeadersOrBuilderin interfaceRouteMatchOrBuilder
-
getQueryParametersList
public List<QueryParameterMatcher> getQueryParametersList()
Specifies a set of URL query parameters on which the route should match. The router will check the query string from the *path* header against all the specified query parameters. If the number of specified query parameters is nonzero, they all must match the *path* header's query string for a match to occur.
repeated .envoy.api.v2.route.QueryParameterMatcher query_parameters = 7;- Specified by:
getQueryParametersListin interfaceRouteMatchOrBuilder
-
getQueryParametersOrBuilderList
public List<? extends QueryParameterMatcherOrBuilder> getQueryParametersOrBuilderList()
Specifies a set of URL query parameters on which the route should match. The router will check the query string from the *path* header against all the specified query parameters. If the number of specified query parameters is nonzero, they all must match the *path* header's query string for a match to occur.
repeated .envoy.api.v2.route.QueryParameterMatcher query_parameters = 7;- Specified by:
getQueryParametersOrBuilderListin interfaceRouteMatchOrBuilder
-
getQueryParametersCount
public int getQueryParametersCount()
Specifies a set of URL query parameters on which the route should match. The router will check the query string from the *path* header against all the specified query parameters. If the number of specified query parameters is nonzero, they all must match the *path* header's query string for a match to occur.
repeated .envoy.api.v2.route.QueryParameterMatcher query_parameters = 7;- Specified by:
getQueryParametersCountin interfaceRouteMatchOrBuilder
-
getQueryParameters
public QueryParameterMatcher getQueryParameters(int index)
Specifies a set of URL query parameters on which the route should match. The router will check the query string from the *path* header against all the specified query parameters. If the number of specified query parameters is nonzero, they all must match the *path* header's query string for a match to occur.
repeated .envoy.api.v2.route.QueryParameterMatcher query_parameters = 7;- Specified by:
getQueryParametersin interfaceRouteMatchOrBuilder
-
getQueryParametersOrBuilder
public QueryParameterMatcherOrBuilder getQueryParametersOrBuilder(int index)
Specifies a set of URL query parameters on which the route should match. The router will check the query string from the *path* header against all the specified query parameters. If the number of specified query parameters is nonzero, they all must match the *path* header's query string for a match to occur.
repeated .envoy.api.v2.route.QueryParameterMatcher query_parameters = 7;- Specified by:
getQueryParametersOrBuilderin interfaceRouteMatchOrBuilder
-
hasGrpc
public boolean hasGrpc()
If specified, only gRPC requests will be matched. The router will check that the content-type header has a application/grpc or one of the various application/grpc+ values.
.envoy.api.v2.route.RouteMatch.GrpcRouteMatchOptions grpc = 8;- Specified by:
hasGrpcin interfaceRouteMatchOrBuilder- Returns:
- Whether the grpc field is set.
-
getGrpc
public RouteMatch.GrpcRouteMatchOptions getGrpc()
If specified, only gRPC requests will be matched. The router will check that the content-type header has a application/grpc or one of the various application/grpc+ values.
.envoy.api.v2.route.RouteMatch.GrpcRouteMatchOptions grpc = 8;- Specified by:
getGrpcin interfaceRouteMatchOrBuilder- Returns:
- The grpc.
-
getGrpcOrBuilder
public RouteMatch.GrpcRouteMatchOptionsOrBuilder getGrpcOrBuilder()
If specified, only gRPC requests will be matched. The router will check that the content-type header has a application/grpc or one of the various application/grpc+ values.
.envoy.api.v2.route.RouteMatch.GrpcRouteMatchOptions grpc = 8;- Specified by:
getGrpcOrBuilderin interfaceRouteMatchOrBuilder
-
hasTlsContext
public boolean hasTlsContext()
If specified, the client tls context will be matched against the defined match options. [#next-major-version: unify with RBAC]
.envoy.api.v2.route.RouteMatch.TlsContextMatchOptions tls_context = 11;- Specified by:
hasTlsContextin interfaceRouteMatchOrBuilder- Returns:
- Whether the tlsContext field is set.
-
getTlsContext
public RouteMatch.TlsContextMatchOptions getTlsContext()
If specified, the client tls context will be matched against the defined match options. [#next-major-version: unify with RBAC]
.envoy.api.v2.route.RouteMatch.TlsContextMatchOptions tls_context = 11;- Specified by:
getTlsContextin interfaceRouteMatchOrBuilder- Returns:
- The tlsContext.
-
getTlsContextOrBuilder
public RouteMatch.TlsContextMatchOptionsOrBuilder getTlsContextOrBuilder()
If specified, the client tls context will be matched against the defined match options. [#next-major-version: unify with RBAC]
.envoy.api.v2.route.RouteMatch.TlsContextMatchOptions tls_context = 11;- Specified by:
getTlsContextOrBuilderin interfaceRouteMatchOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static RouteMatch parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RouteMatch parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RouteMatch parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RouteMatch parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RouteMatch parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RouteMatch parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RouteMatch parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static RouteMatch parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static RouteMatch parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static RouteMatch parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static RouteMatch parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static RouteMatch parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public RouteMatch.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static RouteMatch.Builder newBuilder()
-
newBuilder
public static RouteMatch.Builder newBuilder(RouteMatch prototype)
-
toBuilder
public RouteMatch.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected RouteMatch.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static RouteMatch getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<RouteMatch> parser()
-
getParserForType
public com.google.protobuf.Parser<RouteMatch> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public RouteMatch getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-