Package com.google.cloud.compute.v1
Class HttpQueryParameterMatch.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<HttpQueryParameterMatch.Builder>
com.google.cloud.compute.v1.HttpQueryParameterMatch.Builder
- All Implemented Interfaces:
HttpQueryParameterMatchOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- HttpQueryParameterMatch
public static final class HttpQueryParameterMatch.Builder
extends com.google.protobuf.GeneratedMessage.Builder<HttpQueryParameterMatch.Builder>
implements HttpQueryParameterMatchOrBuilder
HttpRouteRuleMatch criteria for a request's query parameter.Protobuf type
google.cloud.compute.v1.HttpQueryParameterMatch-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()The queryParameterMatch matches if the value of the parameter exactly matches the contents of exactMatch.The name of the query parameter to match.Specifies that the queryParameterMatch matches if the request contains the query parameter, irrespective of whether the parameter has a value or not.The queryParameterMatch matches if the value of the parameter matches the regular expression specified byregexMatch.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe queryParameterMatch matches if the value of the parameter exactly matches the contents of exactMatch.com.google.protobuf.ByteStringThe queryParameterMatch matches if the value of the parameter exactly matches the contents of exactMatch.getName()The name of the query parameter to match.com.google.protobuf.ByteStringThe name of the query parameter to match.booleanSpecifies that the queryParameterMatch matches if the request contains the query parameter, irrespective of whether the parameter has a value or not.The queryParameterMatch matches if the value of the parameter matches the regular expression specified byregexMatch.com.google.protobuf.ByteStringThe queryParameterMatch matches if the value of the parameter matches the regular expression specified byregexMatch.booleanThe queryParameterMatch matches if the value of the parameter exactly matches the contents of exactMatch.booleanhasName()The name of the query parameter to match.booleanSpecifies that the queryParameterMatch matches if the request contains the query parameter, irrespective of whether the parameter has a value or not.booleanThe queryParameterMatch matches if the value of the parameter matches the regular expression specified byregexMatch.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(HttpQueryParameterMatch other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setExactMatch(String value) The queryParameterMatch matches if the value of the parameter exactly matches the contents of exactMatch.setExactMatchBytes(com.google.protobuf.ByteString value) The queryParameterMatch matches if the value of the parameter exactly matches the contents of exactMatch.The name of the query parameter to match.setNameBytes(com.google.protobuf.ByteString value) The name of the query parameter to match.setPresentMatch(boolean value) Specifies that the queryParameterMatch matches if the request contains the query parameter, irrespective of whether the parameter has a value or not.setRegexMatch(String value) The queryParameterMatch matches if the value of the parameter matches the regular expression specified byregexMatch.setRegexMatchBytes(com.google.protobuf.ByteString value) The queryParameterMatch matches if the value of the parameter matches the regular expression specified byregexMatch.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<HttpQueryParameterMatch.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<HttpQueryParameterMatch.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<HttpQueryParameterMatch.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<HttpQueryParameterMatch.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<HttpQueryParameterMatch.Builder>
-
mergeFrom
public HttpQueryParameterMatch.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<HttpQueryParameterMatch.Builder>- Throws:
IOException
-
hasExactMatch
public boolean hasExactMatch()The queryParameterMatch matches if the value of the parameter exactly matches the contents of exactMatch. Only one of presentMatch, exactMatch, orregexMatch must be set.
optional string exact_match = 457641093;- Specified by:
hasExactMatchin interfaceHttpQueryParameterMatchOrBuilder- Returns:
- Whether the exactMatch field is set.
-
getExactMatch
The queryParameterMatch matches if the value of the parameter exactly matches the contents of exactMatch. Only one of presentMatch, exactMatch, orregexMatch must be set.
optional string exact_match = 457641093;- Specified by:
getExactMatchin interfaceHttpQueryParameterMatchOrBuilder- Returns:
- The exactMatch.
-
getExactMatchBytes
public com.google.protobuf.ByteString getExactMatchBytes()The queryParameterMatch matches if the value of the parameter exactly matches the contents of exactMatch. Only one of presentMatch, exactMatch, orregexMatch must be set.
optional string exact_match = 457641093;- Specified by:
getExactMatchBytesin interfaceHttpQueryParameterMatchOrBuilder- Returns:
- The bytes for exactMatch.
-
setExactMatch
The queryParameterMatch matches if the value of the parameter exactly matches the contents of exactMatch. Only one of presentMatch, exactMatch, orregexMatch must be set.
optional string exact_match = 457641093;- Parameters:
value- The exactMatch to set.- Returns:
- This builder for chaining.
-
clearExactMatch
The queryParameterMatch matches if the value of the parameter exactly matches the contents of exactMatch. Only one of presentMatch, exactMatch, orregexMatch must be set.
optional string exact_match = 457641093;- Returns:
- This builder for chaining.
-
setExactMatchBytes
The queryParameterMatch matches if the value of the parameter exactly matches the contents of exactMatch. Only one of presentMatch, exactMatch, orregexMatch must be set.
optional string exact_match = 457641093;- Parameters:
value- The bytes for exactMatch to set.- Returns:
- This builder for chaining.
-
hasName
public boolean hasName()The name of the query parameter to match. The query parameter must exist in the request, in the absence of which the request match fails.
optional string name = 3373707;- Specified by:
hasNamein interfaceHttpQueryParameterMatchOrBuilder- Returns:
- Whether the name field is set.
-
getName
The name of the query parameter to match. The query parameter must exist in the request, in the absence of which the request match fails.
optional string name = 3373707;- Specified by:
getNamein interfaceHttpQueryParameterMatchOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()The name of the query parameter to match. The query parameter must exist in the request, in the absence of which the request match fails.
optional string name = 3373707;- Specified by:
getNameBytesin interfaceHttpQueryParameterMatchOrBuilder- Returns:
- The bytes for name.
-
setName
The name of the query parameter to match. The query parameter must exist in the request, in the absence of which the request match fails.
optional string name = 3373707;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
The name of the query parameter to match. The query parameter must exist in the request, in the absence of which the request match fails.
optional string name = 3373707;- Returns:
- This builder for chaining.
-
setNameBytes
The name of the query parameter to match. The query parameter must exist in the request, in the absence of which the request match fails.
optional string name = 3373707;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
hasPresentMatch
public boolean hasPresentMatch()Specifies that the queryParameterMatch matches if the request contains the query parameter, irrespective of whether the parameter has a value or not. Only one of presentMatch, exactMatch, orregexMatch must be set.
optional bool present_match = 67435841;- Specified by:
hasPresentMatchin interfaceHttpQueryParameterMatchOrBuilder- Returns:
- Whether the presentMatch field is set.
-
getPresentMatch
public boolean getPresentMatch()Specifies that the queryParameterMatch matches if the request contains the query parameter, irrespective of whether the parameter has a value or not. Only one of presentMatch, exactMatch, orregexMatch must be set.
optional bool present_match = 67435841;- Specified by:
getPresentMatchin interfaceHttpQueryParameterMatchOrBuilder- Returns:
- The presentMatch.
-
setPresentMatch
Specifies that the queryParameterMatch matches if the request contains the query parameter, irrespective of whether the parameter has a value or not. Only one of presentMatch, exactMatch, orregexMatch must be set.
optional bool present_match = 67435841;- Parameters:
value- The presentMatch to set.- Returns:
- This builder for chaining.
-
clearPresentMatch
Specifies that the queryParameterMatch matches if the request contains the query parameter, irrespective of whether the parameter has a value or not. Only one of presentMatch, exactMatch, orregexMatch must be set.
optional bool present_match = 67435841;- Returns:
- This builder for chaining.
-
hasRegexMatch
public boolean hasRegexMatch()The queryParameterMatch matches if the value of the parameter matches the regular expression specified byregexMatch. For more information about regular expression syntax, see Syntax. Only one of presentMatch, exactMatch, orregexMatch must be set. Regular expressions can only be used when the loadBalancingScheme is set to INTERNAL_SELF_MANAGED, EXTERNAL_MANAGED (regional scope) or INTERNAL_MANAGED.
optional string regex_match = 107387853;- Specified by:
hasRegexMatchin interfaceHttpQueryParameterMatchOrBuilder- Returns:
- Whether the regexMatch field is set.
-
getRegexMatch
The queryParameterMatch matches if the value of the parameter matches the regular expression specified byregexMatch. For more information about regular expression syntax, see Syntax. Only one of presentMatch, exactMatch, orregexMatch must be set. Regular expressions can only be used when the loadBalancingScheme is set to INTERNAL_SELF_MANAGED, EXTERNAL_MANAGED (regional scope) or INTERNAL_MANAGED.
optional string regex_match = 107387853;- Specified by:
getRegexMatchin interfaceHttpQueryParameterMatchOrBuilder- Returns:
- The regexMatch.
-
getRegexMatchBytes
public com.google.protobuf.ByteString getRegexMatchBytes()The queryParameterMatch matches if the value of the parameter matches the regular expression specified byregexMatch. For more information about regular expression syntax, see Syntax. Only one of presentMatch, exactMatch, orregexMatch must be set. Regular expressions can only be used when the loadBalancingScheme is set to INTERNAL_SELF_MANAGED, EXTERNAL_MANAGED (regional scope) or INTERNAL_MANAGED.
optional string regex_match = 107387853;- Specified by:
getRegexMatchBytesin interfaceHttpQueryParameterMatchOrBuilder- Returns:
- The bytes for regexMatch.
-
setRegexMatch
The queryParameterMatch matches if the value of the parameter matches the regular expression specified byregexMatch. For more information about regular expression syntax, see Syntax. Only one of presentMatch, exactMatch, orregexMatch must be set. Regular expressions can only be used when the loadBalancingScheme is set to INTERNAL_SELF_MANAGED, EXTERNAL_MANAGED (regional scope) or INTERNAL_MANAGED.
optional string regex_match = 107387853;- Parameters:
value- The regexMatch to set.- Returns:
- This builder for chaining.
-
clearRegexMatch
The queryParameterMatch matches if the value of the parameter matches the regular expression specified byregexMatch. For more information about regular expression syntax, see Syntax. Only one of presentMatch, exactMatch, orregexMatch must be set. Regular expressions can only be used when the loadBalancingScheme is set to INTERNAL_SELF_MANAGED, EXTERNAL_MANAGED (regional scope) or INTERNAL_MANAGED.
optional string regex_match = 107387853;- Returns:
- This builder for chaining.
-
setRegexMatchBytes
The queryParameterMatch matches if the value of the parameter matches the regular expression specified byregexMatch. For more information about regular expression syntax, see Syntax. Only one of presentMatch, exactMatch, orregexMatch must be set. Regular expressions can only be used when the loadBalancingScheme is set to INTERNAL_SELF_MANAGED, EXTERNAL_MANAGED (regional scope) or INTERNAL_MANAGED.
optional string regex_match = 107387853;- Parameters:
value- The bytes for regexMatch to set.- Returns:
- This builder for chaining.
-