Class HttpRoute.QueryParameterMatch.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<HttpRoute.QueryParameterMatch.Builder>
com.google.cloud.networkservices.v1.HttpRoute.QueryParameterMatch.Builder
- All Implemented Interfaces:
HttpRoute.QueryParameterMatchOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- HttpRoute.QueryParameterMatch
public static final class HttpRoute.QueryParameterMatch.Builder
extends com.google.protobuf.GeneratedMessage.Builder<HttpRoute.QueryParameterMatch.Builder>
implements HttpRoute.QueryParameterMatchOrBuilder
Specifications to match a query parameter in the request.Protobuf type
google.cloud.networkservices.v1.HttpRoute.QueryParameterMatch-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()The value of the query parameter must exactly match the contents of exact_match.Specifies that the QueryParameterMatcher matches if request contains query parameter, irrespective of whether the parameter has a value or not.The name of the query parameter to match.The value of the query parameter must match the regular expression specified by regex_match.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe value of the query parameter must exactly match the contents of exact_match.com.google.protobuf.ByteStringThe value of the query parameter must exactly match the contents of exact_match.booleanSpecifies that the QueryParameterMatcher matches if request contains query parameter, irrespective of whether the parameter has a value or not.The name of the query parameter to match.com.google.protobuf.ByteStringThe name of the query parameter to match.The value of the query parameter must match the regular expression specified by regex_match.com.google.protobuf.ByteStringThe value of the query parameter must match the regular expression specified by regex_match.booleanThe value of the query parameter must exactly match the contents of exact_match.booleanSpecifies that the QueryParameterMatcher matches if request contains query parameter, irrespective of whether the parameter has a value or not.booleanThe value of the query parameter must match the regular expression specified by regex_match.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setExactMatch(String value) The value of the query parameter must exactly match the contents of exact_match.setExactMatchBytes(com.google.protobuf.ByteString value) The value of the query parameter must exactly match the contents of exact_match.setPresentMatch(boolean value) Specifies that the QueryParameterMatcher matches if request contains query parameter, irrespective of whether the parameter has a value or not.setQueryParameter(String value) The name of the query parameter to match.setQueryParameterBytes(com.google.protobuf.ByteString value) The name of the query parameter to match.setRegexMatch(String value) The value of the query parameter must match the regular expression specified by regex_match.setRegexMatchBytes(com.google.protobuf.ByteString value) The value of the query parameter must match the regular expression specified by regex_match.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, 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.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<HttpRoute.QueryParameterMatch.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<HttpRoute.QueryParameterMatch.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.GeneratedMessage.Builder<HttpRoute.QueryParameterMatch.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
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<HttpRoute.QueryParameterMatch.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<HttpRoute.QueryParameterMatch.Builder>
-
mergeFrom
public HttpRoute.QueryParameterMatch.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<HttpRoute.QueryParameterMatch.Builder>- Throws:
IOException
-
getMatchTypeCase
- Specified by:
getMatchTypeCasein interfaceHttpRoute.QueryParameterMatchOrBuilder
-
clearMatchType
-
hasExactMatch
public boolean hasExactMatch()The value of the query parameter must exactly match the contents of exact_match. Only one of exact_match, regex_match, or present_match must be set.
string exact_match = 2;- Specified by:
hasExactMatchin interfaceHttpRoute.QueryParameterMatchOrBuilder- Returns:
- Whether the exactMatch field is set.
-
getExactMatch
The value of the query parameter must exactly match the contents of exact_match. Only one of exact_match, regex_match, or present_match must be set.
string exact_match = 2;- Specified by:
getExactMatchin interfaceHttpRoute.QueryParameterMatchOrBuilder- Returns:
- The exactMatch.
-
getExactMatchBytes
public com.google.protobuf.ByteString getExactMatchBytes()The value of the query parameter must exactly match the contents of exact_match. Only one of exact_match, regex_match, or present_match must be set.
string exact_match = 2;- Specified by:
getExactMatchBytesin interfaceHttpRoute.QueryParameterMatchOrBuilder- Returns:
- The bytes for exactMatch.
-
setExactMatch
The value of the query parameter must exactly match the contents of exact_match. Only one of exact_match, regex_match, or present_match must be set.
string exact_match = 2;- Parameters:
value- The exactMatch to set.- Returns:
- This builder for chaining.
-
clearExactMatch
The value of the query parameter must exactly match the contents of exact_match. Only one of exact_match, regex_match, or present_match must be set.
string exact_match = 2;- Returns:
- This builder for chaining.
-
setExactMatchBytes
public HttpRoute.QueryParameterMatch.Builder setExactMatchBytes(com.google.protobuf.ByteString value) The value of the query parameter must exactly match the contents of exact_match. Only one of exact_match, regex_match, or present_match must be set.
string exact_match = 2;- Parameters:
value- The bytes for exactMatch to set.- Returns:
- This builder for chaining.
-
hasRegexMatch
public boolean hasRegexMatch()The value of the query parameter must match the regular expression specified by regex_match. For regular expression grammar, please see https://github.com/google/re2/wiki/Syntax Only one of exact_match, regex_match, or present_match must be set.
string regex_match = 3;- Specified by:
hasRegexMatchin interfaceHttpRoute.QueryParameterMatchOrBuilder- Returns:
- Whether the regexMatch field is set.
-
getRegexMatch
The value of the query parameter must match the regular expression specified by regex_match. For regular expression grammar, please see https://github.com/google/re2/wiki/Syntax Only one of exact_match, regex_match, or present_match must be set.
string regex_match = 3;- Specified by:
getRegexMatchin interfaceHttpRoute.QueryParameterMatchOrBuilder- Returns:
- The regexMatch.
-
getRegexMatchBytes
public com.google.protobuf.ByteString getRegexMatchBytes()The value of the query parameter must match the regular expression specified by regex_match. For regular expression grammar, please see https://github.com/google/re2/wiki/Syntax Only one of exact_match, regex_match, or present_match must be set.
string regex_match = 3;- Specified by:
getRegexMatchBytesin interfaceHttpRoute.QueryParameterMatchOrBuilder- Returns:
- The bytes for regexMatch.
-
setRegexMatch
The value of the query parameter must match the regular expression specified by regex_match. For regular expression grammar, please see https://github.com/google/re2/wiki/Syntax Only one of exact_match, regex_match, or present_match must be set.
string regex_match = 3;- Parameters:
value- The regexMatch to set.- Returns:
- This builder for chaining.
-
clearRegexMatch
The value of the query parameter must match the regular expression specified by regex_match. For regular expression grammar, please see https://github.com/google/re2/wiki/Syntax Only one of exact_match, regex_match, or present_match must be set.
string regex_match = 3;- Returns:
- This builder for chaining.
-
setRegexMatchBytes
public HttpRoute.QueryParameterMatch.Builder setRegexMatchBytes(com.google.protobuf.ByteString value) The value of the query parameter must match the regular expression specified by regex_match. For regular expression grammar, please see https://github.com/google/re2/wiki/Syntax Only one of exact_match, regex_match, or present_match must be set.
string regex_match = 3;- Parameters:
value- The bytes for regexMatch to set.- Returns:
- This builder for chaining.
-
hasPresentMatch
public boolean hasPresentMatch()Specifies that the QueryParameterMatcher matches if request contains query parameter, irrespective of whether the parameter has a value or not. Only one of exact_match, regex_match, or present_match must be set.
bool present_match = 4;- Specified by:
hasPresentMatchin interfaceHttpRoute.QueryParameterMatchOrBuilder- Returns:
- Whether the presentMatch field is set.
-
getPresentMatch
public boolean getPresentMatch()Specifies that the QueryParameterMatcher matches if request contains query parameter, irrespective of whether the parameter has a value or not. Only one of exact_match, regex_match, or present_match must be set.
bool present_match = 4;- Specified by:
getPresentMatchin interfaceHttpRoute.QueryParameterMatchOrBuilder- Returns:
- The presentMatch.
-
setPresentMatch
Specifies that the QueryParameterMatcher matches if request contains query parameter, irrespective of whether the parameter has a value or not. Only one of exact_match, regex_match, or present_match must be set.
bool present_match = 4;- Parameters:
value- The presentMatch to set.- Returns:
- This builder for chaining.
-
clearPresentMatch
Specifies that the QueryParameterMatcher matches if request contains query parameter, irrespective of whether the parameter has a value or not. Only one of exact_match, regex_match, or present_match must be set.
bool present_match = 4;- Returns:
- This builder for chaining.
-
getQueryParameter
The name of the query parameter to match.
string query_parameter = 1;- Specified by:
getQueryParameterin interfaceHttpRoute.QueryParameterMatchOrBuilder- Returns:
- The queryParameter.
-
getQueryParameterBytes
public com.google.protobuf.ByteString getQueryParameterBytes()The name of the query parameter to match.
string query_parameter = 1;- Specified by:
getQueryParameterBytesin interfaceHttpRoute.QueryParameterMatchOrBuilder- Returns:
- The bytes for queryParameter.
-
setQueryParameter
The name of the query parameter to match.
string query_parameter = 1;- Parameters:
value- The queryParameter to set.- Returns:
- This builder for chaining.
-
clearQueryParameter
The name of the query parameter to match.
string query_parameter = 1;- Returns:
- This builder for chaining.
-
setQueryParameterBytes
public HttpRoute.QueryParameterMatch.Builder setQueryParameterBytes(com.google.protobuf.ByteString value) The name of the query parameter to match.
string query_parameter = 1;- Parameters:
value- The bytes for queryParameter to set.- Returns:
- This builder for chaining.
-