Class QueryParameterMatcher.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<QueryParameterMatcher.Builder>
com.google.protobuf.GeneratedMessage.Builder<QueryParameterMatcher.Builder>
io.envoyproxy.envoy.config.route.v3.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.GeneratedMessage.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.config.route.v3.QueryParameterMatcher
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate int
private Object
private Object
private int
private com.google.protobuf.SingleFieldBuilder
<StringMatcher, StringMatcher.Builder, StringMatcherOrBuilder> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
private void
buildPartial0
(QueryParameterMatcher result) private void
clear()
Specifies the name of a key that must be present in the requested ``path``'s query string.Specifies whether a query parameter should be present.Specifies whether a query parameter value should match against a string.static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
getName()
Specifies the name of a key that must be present in the requested ``path``'s query string.com.google.protobuf.ByteString
Specifies the name of a key that must be present in the requested ``path``'s query string.boolean
Specifies whether a query parameter should be present.Specifies whether a query parameter value should match against a string.Specifies whether a query parameter value should match against a string.private com.google.protobuf.SingleFieldBuilder
<StringMatcher, StringMatcher.Builder, StringMatcherOrBuilder> Specifies whether a query parameter value should match against a string.Specifies whether a query parameter value should match against a string.boolean
Specifies whether a query parameter should be present.boolean
Specifies whether a query parameter value should match against a string.protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
final boolean
mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) mergeFrom
(QueryParameterMatcher other) mergeStringMatch
(StringMatcher value) Specifies whether a query parameter value should match against a string.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.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.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
queryParameterMatchSpecifierCase_
private int queryParameterMatchSpecifierCase_ -
queryParameterMatchSpecifier_
-
bitField0_
private int bitField0_ -
name_
-
stringMatchBuilder_
private com.google.protobuf.SingleFieldBuilder<StringMatcher,StringMatcher.Builder, stringMatchBuilder_StringMatcherOrBuilder>
-
-
Constructor Details
-
Builder
private Builder() -
Builder
private Builder(com.google.protobuf.AbstractMessage.BuilderParent parent)
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessage.Builder<QueryParameterMatcher.Builder>
-
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessage.Builder<QueryParameterMatcher.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessage.Builder<QueryParameterMatcher.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial0
-
buildPartialOneofs
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<QueryParameterMatcher.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessage.Builder<QueryParameterMatcher.Builder>
-
mergeFrom
public QueryParameterMatcher.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<QueryParameterMatcher.Builder>
- Throws:
IOException
-
getQueryParameterMatchSpecifierCase
- Specified by:
getQueryParameterMatchSpecifierCase
in 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:
getName
in 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:
getNameBytes
in 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.
-
hasStringMatch
public boolean hasStringMatch()Specifies whether a query parameter value should match against a string.
.envoy.type.matcher.v3.StringMatcher string_match = 5 [(.validate.rules) = { ... }
- Specified by:
hasStringMatch
in interfaceQueryParameterMatcherOrBuilder
- Returns:
- Whether the stringMatch field is set.
-
getStringMatch
Specifies whether a query parameter value should match against a string.
.envoy.type.matcher.v3.StringMatcher string_match = 5 [(.validate.rules) = { ... }
- Specified by:
getStringMatch
in interfaceQueryParameterMatcherOrBuilder
- Returns:
- The stringMatch.
-
setStringMatch
Specifies whether a query parameter value should match against a string.
.envoy.type.matcher.v3.StringMatcher string_match = 5 [(.validate.rules) = { ... }
-
setStringMatch
Specifies whether a query parameter value should match against a string.
.envoy.type.matcher.v3.StringMatcher string_match = 5 [(.validate.rules) = { ... }
-
mergeStringMatch
Specifies whether a query parameter value should match against a string.
.envoy.type.matcher.v3.StringMatcher string_match = 5 [(.validate.rules) = { ... }
-
clearStringMatch
Specifies whether a query parameter value should match against a string.
.envoy.type.matcher.v3.StringMatcher string_match = 5 [(.validate.rules) = { ... }
-
getStringMatchBuilder
Specifies whether a query parameter value should match against a string.
.envoy.type.matcher.v3.StringMatcher string_match = 5 [(.validate.rules) = { ... }
-
getStringMatchOrBuilder
Specifies whether a query parameter value should match against a string.
.envoy.type.matcher.v3.StringMatcher string_match = 5 [(.validate.rules) = { ... }
- Specified by:
getStringMatchOrBuilder
in interfaceQueryParameterMatcherOrBuilder
-
getStringMatchFieldBuilder
private com.google.protobuf.SingleFieldBuilder<StringMatcher,StringMatcher.Builder, getStringMatchFieldBuilder()StringMatcherOrBuilder> Specifies whether a query parameter value should match against a string.
.envoy.type.matcher.v3.StringMatcher string_match = 5 [(.validate.rules) = { ... }
-
hasPresentMatch
public boolean hasPresentMatch()Specifies whether a query parameter should be present.
bool present_match = 6;
- Specified by:
hasPresentMatch
in 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:
getPresentMatch
in 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.
-