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.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
HttpQueryParameterMatch
build()
HttpQueryParameterMatch
buildPartial()
HttpQueryParameterMatch.Builder
clear()
HttpQueryParameterMatch.Builder
clearExactMatch()
The queryParameterMatch matches if the value of the parameter exactly matches the contents of exactMatch.HttpQueryParameterMatch.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
HttpQueryParameterMatch.Builder
clearName()
The name of the query parameter to match.HttpQueryParameterMatch.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
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.HttpQueryParameterMatch.Builder
clearRegexMatch()
The queryParameterMatch matches if the value of the parameter matches the regular expression specified by regexMatch.HttpQueryParameterMatch.Builder
clone()
HttpQueryParameterMatch
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
String
getExactMatch()
The queryParameterMatch matches if the value of the parameter exactly matches the contents of exactMatch.com.google.protobuf.ByteString
getExactMatchBytes()
The queryParameterMatch matches if the value of the parameter exactly matches the contents of exactMatch.String
getName()
The name of the query parameter to match.com.google.protobuf.ByteString
getNameBytes()
The name of the query parameter to match.boolean
getPresentMatch()
Specifies that the queryParameterMatch matches if the request contains the query parameter, irrespective of whether the parameter has a value or not.String
getRegexMatch()
The queryParameterMatch matches if the value of the parameter matches the regular expression specified by regexMatch.com.google.protobuf.ByteString
getRegexMatchBytes()
The queryParameterMatch matches if the value of the parameter matches the regular expression specified by regexMatch.boolean
hasExactMatch()
The queryParameterMatch matches if the value of the parameter exactly matches the contents of exactMatch.boolean
hasName()
The name of the query parameter to match.boolean
hasPresentMatch()
Specifies that the queryParameterMatch matches if the request contains the query parameter, irrespective of whether the parameter has a value or not.boolean
hasRegexMatch()
The queryParameterMatch matches if the value of the parameter matches the regular expression specified by regexMatch.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
HttpQueryParameterMatch.Builder
mergeFrom(HttpQueryParameterMatch other)
HttpQueryParameterMatch.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
HttpQueryParameterMatch.Builder
mergeFrom(com.google.protobuf.Message other)
HttpQueryParameterMatch.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
HttpQueryParameterMatch.Builder
setExactMatch(String value)
The queryParameterMatch matches if the value of the parameter exactly matches the contents of exactMatch.HttpQueryParameterMatch.Builder
setExactMatchBytes(com.google.protobuf.ByteString value)
The queryParameterMatch matches if the value of the parameter exactly matches the contents of exactMatch.HttpQueryParameterMatch.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
HttpQueryParameterMatch.Builder
setName(String value)
The name of the query parameter to match.HttpQueryParameterMatch.Builder
setNameBytes(com.google.protobuf.ByteString value)
The name of the query parameter to match.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.HttpQueryParameterMatch.Builder
setRegexMatch(String value)
The queryParameterMatch matches if the value of the parameter matches the regular expression specified by regexMatch.HttpQueryParameterMatch.Builder
setRegexMatchBytes(com.google.protobuf.ByteString value)
The queryParameterMatch matches if the value of the parameter matches the regular expression specified by regexMatch.HttpQueryParameterMatch.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
HttpQueryParameterMatch.Builder
setUnknownFields(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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<HttpQueryParameterMatch.Builder>
-
clear
public HttpQueryParameterMatch.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.GeneratedMessageV3.Builder<HttpQueryParameterMatch.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.GeneratedMessageV3.Builder<HttpQueryParameterMatch.Builder>
-
getDefaultInstanceForType
public HttpQueryParameterMatch getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public HttpQueryParameterMatch build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public HttpQueryParameterMatch buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public HttpQueryParameterMatch.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<HttpQueryParameterMatch.Builder>
-
setField
public HttpQueryParameterMatch.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<HttpQueryParameterMatch.Builder>
-
clearField
public HttpQueryParameterMatch.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<HttpQueryParameterMatch.Builder>
-
clearOneof
public HttpQueryParameterMatch.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<HttpQueryParameterMatch.Builder>
-
setRepeatedField
public HttpQueryParameterMatch.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<HttpQueryParameterMatch.Builder>
-
addRepeatedField
public HttpQueryParameterMatch.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<HttpQueryParameterMatch.Builder>
-
mergeFrom
public HttpQueryParameterMatch.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<HttpQueryParameterMatch.Builder>
-
mergeFrom
public HttpQueryParameterMatch.Builder mergeFrom(HttpQueryParameterMatch other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
hasExactMatch
in 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:
getExactMatch
in 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:
getExactMatchBytes
in 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:
hasName
in 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:
getName
in 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:
getNameBytes
in 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:
hasPresentMatch
in 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:
getPresentMatch
in 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:
hasRegexMatch
in 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:
getRegexMatch
in 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:
getRegexMatchBytes
in 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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<HttpQueryParameterMatch.Builder>
-
mergeUnknownFields
public final HttpQueryParameterMatch.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<HttpQueryParameterMatch.Builder>
-
-