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.GeneratedMessageV3.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.GeneratedMessageV3.Builder<HttpQueryParameterMatch.Builder> implements HttpQueryParameterMatchOrBuilder
HttpRouteRuleMatch criteria for a request's query parameter.
Protobuf typegoogle.cloud.compute.v1.HttpQueryParameterMatch
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description HttpQueryParameterMatch.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)HttpQueryParameterMatchbuild()HttpQueryParameterMatchbuildPartial()HttpQueryParameterMatch.Builderclear()HttpQueryParameterMatch.BuilderclearExactMatch()The queryParameterMatch matches if the value of the parameter exactly matches the contents of exactMatch.HttpQueryParameterMatch.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)HttpQueryParameterMatch.BuilderclearName()The name of the query parameter to match.HttpQueryParameterMatch.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)HttpQueryParameterMatch.BuilderclearPresentMatch()Specifies that the queryParameterMatch matches if the request contains the query parameter, irrespective of whether the parameter has a value or not.HttpQueryParameterMatch.BuilderclearRegexMatch()The queryParameterMatch matches if the value of the parameter matches the regular expression specified by regexMatch.HttpQueryParameterMatch.Builderclone()HttpQueryParameterMatchgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetExactMatch()The queryParameterMatch matches if the value of the parameter exactly matches the contents of exactMatch.com.google.protobuf.ByteStringgetExactMatchBytes()The queryParameterMatch matches if the value of the parameter exactly matches the contents of exactMatch.StringgetName()The name of the query parameter to match.com.google.protobuf.ByteStringgetNameBytes()The name of the query parameter to match.booleangetPresentMatch()Specifies that the queryParameterMatch matches if the request contains the query parameter, irrespective of whether the parameter has a value or not.StringgetRegexMatch()The queryParameterMatch matches if the value of the parameter matches the regular expression specified by regexMatch.com.google.protobuf.ByteStringgetRegexMatchBytes()The queryParameterMatch matches if the value of the parameter matches the regular expression specified by regexMatch.booleanhasExactMatch()The queryParameterMatch matches if the value of the parameter exactly matches the contents of exactMatch.booleanhasName()The name of the query parameter to match.booleanhasPresentMatch()Specifies that the queryParameterMatch matches if the request contains the query parameter, irrespective of whether the parameter has a value or not.booleanhasRegexMatch()The queryParameterMatch matches if the value of the parameter matches the regular expression specified by regexMatch.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()HttpQueryParameterMatch.BuildermergeFrom(HttpQueryParameterMatch other)HttpQueryParameterMatch.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)HttpQueryParameterMatch.BuildermergeFrom(com.google.protobuf.Message other)HttpQueryParameterMatch.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)HttpQueryParameterMatch.BuildersetExactMatch(String value)The queryParameterMatch matches if the value of the parameter exactly matches the contents of exactMatch.HttpQueryParameterMatch.BuildersetExactMatchBytes(com.google.protobuf.ByteString value)The queryParameterMatch matches if the value of the parameter exactly matches the contents of exactMatch.HttpQueryParameterMatch.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)HttpQueryParameterMatch.BuildersetName(String value)The name of the query parameter to match.HttpQueryParameterMatch.BuildersetNameBytes(com.google.protobuf.ByteString value)The name of the query parameter to match.HttpQueryParameterMatch.BuildersetPresentMatch(boolean value)Specifies that the queryParameterMatch matches if the request contains the query parameter, irrespective of whether the parameter has a value or not.HttpQueryParameterMatch.BuildersetRegexMatch(String value)The queryParameterMatch matches if the value of the parameter matches the regular expression specified by regexMatch.HttpQueryParameterMatch.BuildersetRegexMatchBytes(com.google.protobuf.ByteString value)The queryParameterMatch matches if the value of the parameter matches the regular expression specified by regexMatch.HttpQueryParameterMatch.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)HttpQueryParameterMatch.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, 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
-
-
-
-
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<HttpQueryParameterMatch.Builder>
-
clear
public HttpQueryParameterMatch.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<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.GeneratedMessageV3.Builder<HttpQueryParameterMatch.Builder>
-
getDefaultInstanceForType
public HttpQueryParameterMatch getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public HttpQueryParameterMatch build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public HttpQueryParameterMatch buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public HttpQueryParameterMatch.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<HttpQueryParameterMatch.Builder>
-
setField
public HttpQueryParameterMatch.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<HttpQueryParameterMatch.Builder>
-
clearField
public HttpQueryParameterMatch.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<HttpQueryParameterMatch.Builder>
-
clearOneof
public HttpQueryParameterMatch.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<HttpQueryParameterMatch.Builder>
-
setRepeatedField
public HttpQueryParameterMatch.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<HttpQueryParameterMatch.Builder>
-
addRepeatedField
public HttpQueryParameterMatch.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<HttpQueryParameterMatch.Builder>
-
mergeFrom
public HttpQueryParameterMatch.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<HttpQueryParameterMatch.Builder>
-
mergeFrom
public HttpQueryParameterMatch.Builder mergeFrom(HttpQueryParameterMatch other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.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, or regexMatch must be set.
optional string exact_match = 457641093;- Specified by:
hasExactMatchin interfaceHttpQueryParameterMatchOrBuilder- Returns:
- Whether the exactMatch field is set.
-
getExactMatch
public String getExactMatch()
The queryParameterMatch matches if the value of the parameter exactly matches the contents of exactMatch. Only one of presentMatch, exactMatch, or regexMatch 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, or regexMatch must be set.
optional string exact_match = 457641093;- Specified by:
getExactMatchBytesin interfaceHttpQueryParameterMatchOrBuilder- Returns:
- The bytes for exactMatch.
-
setExactMatch
public HttpQueryParameterMatch.Builder setExactMatch(String value)
The queryParameterMatch matches if the value of the parameter exactly matches the contents of exactMatch. Only one of presentMatch, exactMatch, or regexMatch must be set.
optional string exact_match = 457641093;- Parameters:
value- The exactMatch to set.- Returns:
- This builder for chaining.
-
clearExactMatch
public HttpQueryParameterMatch.Builder clearExactMatch()
The queryParameterMatch matches if the value of the parameter exactly matches the contents of exactMatch. Only one of presentMatch, exactMatch, or regexMatch must be set.
optional string exact_match = 457641093;- Returns:
- This builder for chaining.
-
setExactMatchBytes
public HttpQueryParameterMatch.Builder setExactMatchBytes(com.google.protobuf.ByteString value)
The queryParameterMatch matches if the value of the parameter exactly matches the contents of exactMatch. Only one of presentMatch, exactMatch, or regexMatch 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
public String 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
public HttpQueryParameterMatch.Builder setName(String value)
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
public HttpQueryParameterMatch.Builder 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
public HttpQueryParameterMatch.Builder setNameBytes(com.google.protobuf.ByteString value)
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, or regexMatch 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, or regexMatch must be set.
optional bool present_match = 67435841;- Specified by:
getPresentMatchin interfaceHttpQueryParameterMatchOrBuilder- Returns:
- The presentMatch.
-
setPresentMatch
public HttpQueryParameterMatch.Builder 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. Only one of presentMatch, exactMatch, or regexMatch must be set.
optional bool present_match = 67435841;- Parameters:
value- The presentMatch to set.- Returns:
- This builder for chaining.
-
clearPresentMatch
public HttpQueryParameterMatch.Builder 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, or regexMatch 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 by regexMatch. For more information about regular expression syntax, see Syntax. Only one of presentMatch, exactMatch, or regexMatch must be set. Regular expressions can only be used when the loadBalancingScheme is set to INTERNAL_SELF_MANAGED.
optional string regex_match = 107387853;- Specified by:
hasRegexMatchin interfaceHttpQueryParameterMatchOrBuilder- Returns:
- Whether the regexMatch field is set.
-
getRegexMatch
public String getRegexMatch()
The queryParameterMatch matches if the value of the parameter matches the regular expression specified by regexMatch. For more information about regular expression syntax, see Syntax. Only one of presentMatch, exactMatch, or regexMatch must be set. Regular expressions can only be used when the loadBalancingScheme is set to INTERNAL_SELF_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 by regexMatch. For more information about regular expression syntax, see Syntax. Only one of presentMatch, exactMatch, or regexMatch must be set. Regular expressions can only be used when the loadBalancingScheme is set to INTERNAL_SELF_MANAGED.
optional string regex_match = 107387853;- Specified by:
getRegexMatchBytesin interfaceHttpQueryParameterMatchOrBuilder- Returns:
- The bytes for regexMatch.
-
setRegexMatch
public HttpQueryParameterMatch.Builder setRegexMatch(String value)
The queryParameterMatch matches if the value of the parameter matches the regular expression specified by regexMatch. For more information about regular expression syntax, see Syntax. Only one of presentMatch, exactMatch, or regexMatch must be set. Regular expressions can only be used when the loadBalancingScheme is set to INTERNAL_SELF_MANAGED.
optional string regex_match = 107387853;- Parameters:
value- The regexMatch to set.- Returns:
- This builder for chaining.
-
clearRegexMatch
public HttpQueryParameterMatch.Builder clearRegexMatch()
The queryParameterMatch matches if the value of the parameter matches the regular expression specified by regexMatch. For more information about regular expression syntax, see Syntax. Only one of presentMatch, exactMatch, or regexMatch must be set. Regular expressions can only be used when the loadBalancingScheme is set to INTERNAL_SELF_MANAGED.
optional string regex_match = 107387853;- Returns:
- This builder for chaining.
-
setRegexMatchBytes
public HttpQueryParameterMatch.Builder setRegexMatchBytes(com.google.protobuf.ByteString value)
The queryParameterMatch matches if the value of the parameter matches the regular expression specified by regexMatch. For more information about regular expression syntax, see Syntax. Only one of presentMatch, exactMatch, or regexMatch must be set. Regular expressions can only be used when the loadBalancingScheme is set to INTERNAL_SELF_MANAGED.
optional string regex_match = 107387853;- Parameters:
value- The bytes for regexMatch to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final HttpQueryParameterMatch.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<HttpQueryParameterMatch.Builder>
-
mergeUnknownFields
public final HttpQueryParameterMatch.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<HttpQueryParameterMatch.Builder>
-
-