Package io.envoyproxy.envoy.api.v2.route
Class QueryParameterMatcher.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<QueryParameterMatcher.Builder>
io.envoyproxy.envoy.api.v2.route.QueryParameterMatcher.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,QueryParameterMatcherOrBuilder,Cloneable
- Enclosing class:
- QueryParameterMatcher
public static final class QueryParameterMatcher.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<QueryParameterMatcher.Builder>
implements QueryParameterMatcherOrBuilder
Query parameter matching treats the query string of a request's :path header as an ampersand-separated list of keys and/or key=value elements. [#next-free-field: 7]Protobuf type
envoy.api.v2.route.QueryParameterMatcher-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()clearField(com.google.protobuf.Descriptors.FieldDescriptor field) Specifies the name of a key that must be present in the requested *path*'s query string.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) Specifies whether a query parameter should be present.Deprecated.Specifies whether a query parameter value should match against a string.Deprecated.envoy.api.v2.route.QueryParameterMatcher.value is deprecated.clone()static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetName()Specifies the name of a key that must be present in the requested *path*'s query string.com.google.protobuf.ByteStringSpecifies the name of a key that must be present in the requested *path*'s query string.booleanSpecifies whether a query parameter should be present.com.google.protobuf.BoolValuegetRegex()Deprecated.envoy.api.v2.route.QueryParameterMatcher.regex is deprecated.com.google.protobuf.BoolValue.BuilderDeprecated.com.google.protobuf.BoolValueOrBuilderDeprecated.Specifies whether a query parameter value should match against a string.Specifies whether a query parameter value should match against a string.Specifies whether a query parameter value should match against a string.getValue()Deprecated.envoy.api.v2.route.QueryParameterMatcher.value is deprecated.com.google.protobuf.ByteStringDeprecated.envoy.api.v2.route.QueryParameterMatcher.value is deprecated.booleanSpecifies whether a query parameter should be present.booleanhasRegex()Deprecated.envoy.api.v2.route.QueryParameterMatcher.regex is deprecated.booleanSpecifies whether a query parameter value should match against a string.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(QueryParameterMatcher other) mergeRegex(com.google.protobuf.BoolValue value) Deprecated.mergeStringMatch(StringMatcher value) Specifies whether a query parameter value should match against a string.mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Specifies the name of a key that must be present in the requested *path*'s query string.setNameBytes(com.google.protobuf.ByteString value) Specifies the name of a key that must be present in the requested *path*'s query string.setPresentMatch(boolean value) Specifies whether a query parameter should be present.setRegex(com.google.protobuf.BoolValue value) Deprecated.setRegex(com.google.protobuf.BoolValue.Builder builderForValue) Deprecated.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setStringMatch(StringMatcher value) Specifies whether a query parameter value should match against a string.setStringMatch(StringMatcher.Builder builderForValue) Specifies whether a query parameter value should match against a string.setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Deprecated.envoy.api.v2.route.QueryParameterMatcher.value is deprecated.setValueBytes(com.google.protobuf.ByteString value) Deprecated.envoy.api.v2.route.QueryParameterMatcher.value is deprecated.Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<QueryParameterMatcher.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<QueryParameterMatcher.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<QueryParameterMatcher.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<QueryParameterMatcher.Builder>
-
setField
public QueryParameterMatcher.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<QueryParameterMatcher.Builder>
-
clearField
public QueryParameterMatcher.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<QueryParameterMatcher.Builder>
-
clearOneof
public QueryParameterMatcher.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<QueryParameterMatcher.Builder>
-
setRepeatedField
public QueryParameterMatcher.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<QueryParameterMatcher.Builder>
-
addRepeatedField
public QueryParameterMatcher.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<QueryParameterMatcher.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<QueryParameterMatcher.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<QueryParameterMatcher.Builder>
-
mergeFrom
public QueryParameterMatcher.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<QueryParameterMatcher.Builder>- Throws:
IOException
-
getQueryParameterMatchSpecifierCase
- Specified by:
getQueryParameterMatchSpecifierCasein interfaceQueryParameterMatcherOrBuilder
-
clearQueryParameterMatchSpecifier
-
getName
Specifies the name of a key that must be present in the requested *path*'s query string.
string name = 1 [(.validate.rules) = { ... }- Specified by:
getNamein interfaceQueryParameterMatcherOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()Specifies the name of a key that must be present in the requested *path*'s query string.
string name = 1 [(.validate.rules) = { ... }- Specified by:
getNameBytesin interfaceQueryParameterMatcherOrBuilder- Returns:
- The bytes for name.
-
setName
Specifies the name of a key that must be present in the requested *path*'s query string.
string name = 1 [(.validate.rules) = { ... }- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
Specifies the name of a key that must be present in the requested *path*'s query string.
string name = 1 [(.validate.rules) = { ... }- Returns:
- This builder for chaining.
-
setNameBytes
Specifies the name of a key that must be present in the requested *path*'s query string.
string name = 1 [(.validate.rules) = { ... }- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getValue
Deprecated.envoy.api.v2.route.QueryParameterMatcher.value is deprecated. See envoy/api/v2/route/route_components.proto;l=1610Specifies the value of the key. If the value is absent, a request that contains the key in its query string will match, whether the key appears with a value (e.g., "?debug=true") or not (e.g., "?debug") ..attention:: This field is deprecated. Use an `exact` match inside the `string_match` field.
string value = 3 [deprecated = true, (.envoy.annotations.disallowed_by_default) = true];- Specified by:
getValuein interfaceQueryParameterMatcherOrBuilder- Returns:
- The value.
-
getValueBytes
Deprecated.envoy.api.v2.route.QueryParameterMatcher.value is deprecated. See envoy/api/v2/route/route_components.proto;l=1610Specifies the value of the key. If the value is absent, a request that contains the key in its query string will match, whether the key appears with a value (e.g., "?debug=true") or not (e.g., "?debug") ..attention:: This field is deprecated. Use an `exact` match inside the `string_match` field.
string value = 3 [deprecated = true, (.envoy.annotations.disallowed_by_default) = true];- Specified by:
getValueBytesin interfaceQueryParameterMatcherOrBuilder- Returns:
- The bytes for value.
-
setValue
Deprecated.envoy.api.v2.route.QueryParameterMatcher.value is deprecated. See envoy/api/v2/route/route_components.proto;l=1610Specifies the value of the key. If the value is absent, a request that contains the key in its query string will match, whether the key appears with a value (e.g., "?debug=true") or not (e.g., "?debug") ..attention:: This field is deprecated. Use an `exact` match inside the `string_match` field.
string value = 3 [deprecated = true, (.envoy.annotations.disallowed_by_default) = true];- Parameters:
value- The value to set.- Returns:
- This builder for chaining.
-
clearValue
Deprecated.envoy.api.v2.route.QueryParameterMatcher.value is deprecated. See envoy/api/v2/route/route_components.proto;l=1610Specifies the value of the key. If the value is absent, a request that contains the key in its query string will match, whether the key appears with a value (e.g., "?debug=true") or not (e.g., "?debug") ..attention:: This field is deprecated. Use an `exact` match inside the `string_match` field.
string value = 3 [deprecated = true, (.envoy.annotations.disallowed_by_default) = true];- Returns:
- This builder for chaining.
-
setValueBytes
@Deprecated public QueryParameterMatcher.Builder setValueBytes(com.google.protobuf.ByteString value) Deprecated.envoy.api.v2.route.QueryParameterMatcher.value is deprecated. See envoy/api/v2/route/route_components.proto;l=1610Specifies the value of the key. If the value is absent, a request that contains the key in its query string will match, whether the key appears with a value (e.g., "?debug=true") or not (e.g., "?debug") ..attention:: This field is deprecated. Use an `exact` match inside the `string_match` field.
string value = 3 [deprecated = true, (.envoy.annotations.disallowed_by_default) = true];- Parameters:
value- The bytes for value to set.- Returns:
- This builder for chaining.
-
hasRegex
Deprecated.envoy.api.v2.route.QueryParameterMatcher.regex is deprecated. See envoy/api/v2/route/route_components.proto;l=1619Specifies whether the query parameter value is a regular expression. Defaults to false. The entire query parameter value (i.e., the part to the right of the equals sign in "key=value") must match the regex. E.g., the regex ``\d+$`` will match *123* but not *a123* or *123a*. ..attention:: This field is deprecated. Use a `safe_regex` match inside the `string_match` field.
.google.protobuf.BoolValue regex = 4 [deprecated = true, (.envoy.annotations.disallowed_by_default) = true];- Specified by:
hasRegexin interfaceQueryParameterMatcherOrBuilder- Returns:
- Whether the regex field is set.
-
getRegex
Deprecated.envoy.api.v2.route.QueryParameterMatcher.regex is deprecated. See envoy/api/v2/route/route_components.proto;l=1619Specifies whether the query parameter value is a regular expression. Defaults to false. The entire query parameter value (i.e., the part to the right of the equals sign in "key=value") must match the regex. E.g., the regex ``\d+$`` will match *123* but not *a123* or *123a*. ..attention:: This field is deprecated. Use a `safe_regex` match inside the `string_match` field.
.google.protobuf.BoolValue regex = 4 [deprecated = true, (.envoy.annotations.disallowed_by_default) = true];- Specified by:
getRegexin interfaceQueryParameterMatcherOrBuilder- Returns:
- The regex.
-
setRegex
Deprecated.Specifies whether the query parameter value is a regular expression. Defaults to false. The entire query parameter value (i.e., the part to the right of the equals sign in "key=value") must match the regex. E.g., the regex ``\d+$`` will match *123* but not *a123* or *123a*. ..attention:: This field is deprecated. Use a `safe_regex` match inside the `string_match` field.
.google.protobuf.BoolValue regex = 4 [deprecated = true, (.envoy.annotations.disallowed_by_default) = true]; -
setRegex
@Deprecated public QueryParameterMatcher.Builder setRegex(com.google.protobuf.BoolValue.Builder builderForValue) Deprecated.Specifies whether the query parameter value is a regular expression. Defaults to false. The entire query parameter value (i.e., the part to the right of the equals sign in "key=value") must match the regex. E.g., the regex ``\d+$`` will match *123* but not *a123* or *123a*. ..attention:: This field is deprecated. Use a `safe_regex` match inside the `string_match` field.
.google.protobuf.BoolValue regex = 4 [deprecated = true, (.envoy.annotations.disallowed_by_default) = true]; -
mergeRegex
Deprecated.Specifies whether the query parameter value is a regular expression. Defaults to false. The entire query parameter value (i.e., the part to the right of the equals sign in "key=value") must match the regex. E.g., the regex ``\d+$`` will match *123* but not *a123* or *123a*. ..attention:: This field is deprecated. Use a `safe_regex` match inside the `string_match` field.
.google.protobuf.BoolValue regex = 4 [deprecated = true, (.envoy.annotations.disallowed_by_default) = true]; -
clearRegex
Deprecated.Specifies whether the query parameter value is a regular expression. Defaults to false. The entire query parameter value (i.e., the part to the right of the equals sign in "key=value") must match the regex. E.g., the regex ``\d+$`` will match *123* but not *a123* or *123a*. ..attention:: This field is deprecated. Use a `safe_regex` match inside the `string_match` field.
.google.protobuf.BoolValue regex = 4 [deprecated = true, (.envoy.annotations.disallowed_by_default) = true]; -
getRegexBuilder
Deprecated.Specifies whether the query parameter value is a regular expression. Defaults to false. The entire query parameter value (i.e., the part to the right of the equals sign in "key=value") must match the regex. E.g., the regex ``\d+$`` will match *123* but not *a123* or *123a*. ..attention:: This field is deprecated. Use a `safe_regex` match inside the `string_match` field.
.google.protobuf.BoolValue regex = 4 [deprecated = true, (.envoy.annotations.disallowed_by_default) = true]; -
getRegexOrBuilder
Deprecated.Specifies whether the query parameter value is a regular expression. Defaults to false. The entire query parameter value (i.e., the part to the right of the equals sign in "key=value") must match the regex. E.g., the regex ``\d+$`` will match *123* but not *a123* or *123a*. ..attention:: This field is deprecated. Use a `safe_regex` match inside the `string_match` field.
.google.protobuf.BoolValue regex = 4 [deprecated = true, (.envoy.annotations.disallowed_by_default) = true];- Specified by:
getRegexOrBuilderin interfaceQueryParameterMatcherOrBuilder
-
hasStringMatch
public boolean hasStringMatch()Specifies whether a query parameter value should match against a string.
.envoy.type.matcher.StringMatcher string_match = 5 [(.validate.rules) = { ... }- Specified by:
hasStringMatchin interfaceQueryParameterMatcherOrBuilder- Returns:
- Whether the stringMatch field is set.
-
getStringMatch
Specifies whether a query parameter value should match against a string.
.envoy.type.matcher.StringMatcher string_match = 5 [(.validate.rules) = { ... }- Specified by:
getStringMatchin interfaceQueryParameterMatcherOrBuilder- Returns:
- The stringMatch.
-
setStringMatch
Specifies whether a query parameter value should match against a string.
.envoy.type.matcher.StringMatcher string_match = 5 [(.validate.rules) = { ... } -
setStringMatch
Specifies whether a query parameter value should match against a string.
.envoy.type.matcher.StringMatcher string_match = 5 [(.validate.rules) = { ... } -
mergeStringMatch
Specifies whether a query parameter value should match against a string.
.envoy.type.matcher.StringMatcher string_match = 5 [(.validate.rules) = { ... } -
clearStringMatch
Specifies whether a query parameter value should match against a string.
.envoy.type.matcher.StringMatcher string_match = 5 [(.validate.rules) = { ... } -
getStringMatchBuilder
Specifies whether a query parameter value should match against a string.
.envoy.type.matcher.StringMatcher string_match = 5 [(.validate.rules) = { ... } -
getStringMatchOrBuilder
Specifies whether a query parameter value should match against a string.
.envoy.type.matcher.StringMatcher string_match = 5 [(.validate.rules) = { ... }- Specified by:
getStringMatchOrBuilderin interfaceQueryParameterMatcherOrBuilder
-
hasPresentMatch
public boolean hasPresentMatch()Specifies whether a query parameter should be present.
bool present_match = 6;- Specified by:
hasPresentMatchin interfaceQueryParameterMatcherOrBuilder- Returns:
- Whether the presentMatch field is set.
-
getPresentMatch
public boolean getPresentMatch()Specifies whether a query parameter should be present.
bool present_match = 6;- Specified by:
getPresentMatchin interfaceQueryParameterMatcherOrBuilder- Returns:
- The presentMatch.
-
setPresentMatch
Specifies whether a query parameter should be present.
bool present_match = 6;- Parameters:
value- The presentMatch to set.- Returns:
- This builder for chaining.
-
clearPresentMatch
Specifies whether a query parameter should be present.
bool present_match = 6;- Returns:
- This builder for chaining.
-
setUnknownFields
public final QueryParameterMatcher.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<QueryParameterMatcher.Builder>
-
mergeUnknownFields
public final QueryParameterMatcher.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<QueryParameterMatcher.Builder>
-