Class QueryParameterMatcher.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.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.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 typeenvoy.config.route.v3.QueryParameterMatcher
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description QueryParameterMatcher.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)QueryParameterMatcherbuild()QueryParameterMatcherbuildPartial()QueryParameterMatcher.Builderclear()QueryParameterMatcher.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)QueryParameterMatcher.BuilderclearName()Specifies the name of a key that must be present in the requested ``path``'s query string.QueryParameterMatcher.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)QueryParameterMatcher.BuilderclearPresentMatch()Specifies whether a query parameter should be present.QueryParameterMatcher.BuilderclearQueryParameterMatchSpecifier()QueryParameterMatcher.BuilderclearStringMatch()Specifies whether a query parameter value should match against a string.QueryParameterMatcher.Builderclone()QueryParameterMatchergetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetName()Specifies the name of a key that must be present in the requested ``path``'s query string.com.google.protobuf.ByteStringgetNameBytes()Specifies the name of a key that must be present in the requested ``path``'s query string.booleangetPresentMatch()Specifies whether a query parameter should be present.QueryParameterMatcher.QueryParameterMatchSpecifierCasegetQueryParameterMatchSpecifierCase()StringMatchergetStringMatch()Specifies whether a query parameter value should match against a string.StringMatcher.BuildergetStringMatchBuilder()Specifies whether a query parameter value should match against a string.StringMatcherOrBuildergetStringMatchOrBuilder()Specifies whether a query parameter value should match against a string.booleanhasPresentMatch()Specifies whether a query parameter should be present.booleanhasStringMatch()Specifies whether a query parameter value should match against a string.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()QueryParameterMatcher.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)QueryParameterMatcher.BuildermergeFrom(com.google.protobuf.Message other)QueryParameterMatcher.BuildermergeFrom(QueryParameterMatcher other)QueryParameterMatcher.BuildermergeStringMatch(StringMatcher value)Specifies whether a query parameter value should match against a string.QueryParameterMatcher.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)QueryParameterMatcher.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)QueryParameterMatcher.BuildersetName(String value)Specifies the name of a key that must be present in the requested ``path``'s query string.QueryParameterMatcher.BuildersetNameBytes(com.google.protobuf.ByteString value)Specifies the name of a key that must be present in the requested ``path``'s query string.QueryParameterMatcher.BuildersetPresentMatch(boolean value)Specifies whether a query parameter should be present.QueryParameterMatcher.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)QueryParameterMatcher.BuildersetStringMatch(StringMatcher value)Specifies whether a query parameter value should match against a string.QueryParameterMatcher.BuildersetStringMatch(StringMatcher.Builder builderForValue)Specifies whether a query parameter value should match against a string.QueryParameterMatcher.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, 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
-
-
-
-
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<QueryParameterMatcher.Builder>
-
clear
public 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
public QueryParameterMatcher getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public QueryParameterMatcher build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public QueryParameterMatcher buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public QueryParameterMatcher.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
public QueryParameterMatcher.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<QueryParameterMatcher.Builder>
-
mergeFrom
public QueryParameterMatcher.Builder mergeFrom(QueryParameterMatcher other)
-
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
public QueryParameterMatcher.QueryParameterMatchSpecifierCase getQueryParameterMatchSpecifierCase()
- Specified by:
getQueryParameterMatchSpecifierCasein interfaceQueryParameterMatcherOrBuilder
-
clearQueryParameterMatchSpecifier
public QueryParameterMatcher.Builder clearQueryParameterMatchSpecifier()
-
getName
public String 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
public QueryParameterMatcher.Builder setName(String value)
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
public QueryParameterMatcher.Builder 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
public QueryParameterMatcher.Builder setNameBytes(com.google.protobuf.ByteString value)
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:
hasStringMatchin interfaceQueryParameterMatcherOrBuilder- Returns:
- Whether the stringMatch field is set.
-
getStringMatch
public StringMatcher getStringMatch()
Specifies whether a query parameter value should match against a string.
.envoy.type.matcher.v3.StringMatcher string_match = 5 [(.validate.rules) = { ... }- Specified by:
getStringMatchin interfaceQueryParameterMatcherOrBuilder- Returns:
- The stringMatch.
-
setStringMatch
public QueryParameterMatcher.Builder setStringMatch(StringMatcher value)
Specifies whether a query parameter value should match against a string.
.envoy.type.matcher.v3.StringMatcher string_match = 5 [(.validate.rules) = { ... }
-
setStringMatch
public QueryParameterMatcher.Builder setStringMatch(StringMatcher.Builder builderForValue)
Specifies whether a query parameter value should match against a string.
.envoy.type.matcher.v3.StringMatcher string_match = 5 [(.validate.rules) = { ... }
-
mergeStringMatch
public QueryParameterMatcher.Builder mergeStringMatch(StringMatcher value)
Specifies whether a query parameter value should match against a string.
.envoy.type.matcher.v3.StringMatcher string_match = 5 [(.validate.rules) = { ... }
-
clearStringMatch
public QueryParameterMatcher.Builder clearStringMatch()
Specifies whether a query parameter value should match against a string.
.envoy.type.matcher.v3.StringMatcher string_match = 5 [(.validate.rules) = { ... }
-
getStringMatchBuilder
public StringMatcher.Builder getStringMatchBuilder()
Specifies whether a query parameter value should match against a string.
.envoy.type.matcher.v3.StringMatcher string_match = 5 [(.validate.rules) = { ... }
-
getStringMatchOrBuilder
public StringMatcherOrBuilder getStringMatchOrBuilder()
Specifies whether a query parameter value should match against a string.
.envoy.type.matcher.v3.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
public QueryParameterMatcher.Builder setPresentMatch(boolean value)
Specifies whether a query parameter should be present.
bool present_match = 6;- Parameters:
value- The presentMatch to set.- Returns:
- This builder for chaining.
-
clearPresentMatch
public QueryParameterMatcher.Builder 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>
-
-