Class HttpQueryParameterMatch.Builder (1.39.0)

public static final class HttpQueryParameterMatch.Builder extends GeneratedMessageV3.Builder<HttpQueryParameterMatch.Builder> implements HttpQueryParameterMatchOrBuilder

HttpRouteRuleMatch criteria for a request's query parameter.

Protobuf type google.cloud.compute.v1.HttpQueryParameterMatch

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public HttpQueryParameterMatch.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
HttpQueryParameterMatch.Builder
Overrides

build()

public HttpQueryParameterMatch build()
Returns
TypeDescription
HttpQueryParameterMatch

buildPartial()

public HttpQueryParameterMatch buildPartial()
Returns
TypeDescription
HttpQueryParameterMatch

clear()

public HttpQueryParameterMatch.Builder clear()
Returns
TypeDescription
HttpQueryParameterMatch.Builder
Overrides

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
TypeDescription
HttpQueryParameterMatch.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public HttpQueryParameterMatch.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
HttpQueryParameterMatch.Builder
Overrides

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
TypeDescription
HttpQueryParameterMatch.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public HttpQueryParameterMatch.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
HttpQueryParameterMatch.Builder
Overrides

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
TypeDescription
HttpQueryParameterMatch.Builder

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
TypeDescription
HttpQueryParameterMatch.Builder

This builder for chaining.

clone()

public HttpQueryParameterMatch.Builder clone()
Returns
TypeDescription
HttpQueryParameterMatch.Builder
Overrides

getDefaultInstanceForType()

public HttpQueryParameterMatch getDefaultInstanceForType()
Returns
TypeDescription
HttpQueryParameterMatch

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

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;

Returns
TypeDescription
String

The exactMatch.

getExactMatchBytes()

public 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;

Returns
TypeDescription
ByteString

The bytes for exactMatch.

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;

Returns
TypeDescription
String

The name.

getNameBytes()

public 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;

Returns
TypeDescription
ByteString

The bytes for name.

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;

Returns
TypeDescription
boolean

The presentMatch.

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;

Returns
TypeDescription
String

The regexMatch.

getRegexMatchBytes()

public 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;

Returns
TypeDescription
ByteString

The bytes for regexMatch.

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;

Returns
TypeDescription
boolean

Whether the exactMatch field is set.

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;

Returns
TypeDescription
boolean

Whether the name field is set.

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;

Returns
TypeDescription
boolean

Whether the presentMatch field is set.

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;

Returns
TypeDescription
boolean

Whether the regexMatch field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(HttpQueryParameterMatch other)

public HttpQueryParameterMatch.Builder mergeFrom(HttpQueryParameterMatch other)
Parameter
NameDescription
otherHttpQueryParameterMatch
Returns
TypeDescription
HttpQueryParameterMatch.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public HttpQueryParameterMatch.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
HttpQueryParameterMatch.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public HttpQueryParameterMatch.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
HttpQueryParameterMatch.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final HttpQueryParameterMatch.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
HttpQueryParameterMatch.Builder
Overrides

setExactMatch(String value)

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;

Parameter
NameDescription
valueString

The exactMatch to set.

Returns
TypeDescription
HttpQueryParameterMatch.Builder

This builder for chaining.

setExactMatchBytes(ByteString value)

public HttpQueryParameterMatch.Builder setExactMatchBytes(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;

Parameter
NameDescription
valueByteString

The bytes for exactMatch to set.

Returns
TypeDescription
HttpQueryParameterMatch.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public HttpQueryParameterMatch.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
HttpQueryParameterMatch.Builder
Overrides

setName(String value)

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;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
HttpQueryParameterMatch.Builder

This builder for chaining.

setNameBytes(ByteString value)

public HttpQueryParameterMatch.Builder setNameBytes(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;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
HttpQueryParameterMatch.Builder

This builder for chaining.

setPresentMatch(boolean value)

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;

Parameter
NameDescription
valueboolean

The presentMatch to set.

Returns
TypeDescription
HttpQueryParameterMatch.Builder

This builder for chaining.

setRegexMatch(String value)

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;

Parameter
NameDescription
valueString

The regexMatch to set.

Returns
TypeDescription
HttpQueryParameterMatch.Builder

This builder for chaining.

setRegexMatchBytes(ByteString value)

public HttpQueryParameterMatch.Builder setRegexMatchBytes(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;

Parameter
NameDescription
valueByteString

The bytes for regexMatch to set.

Returns
TypeDescription
HttpQueryParameterMatch.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public HttpQueryParameterMatch.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
HttpQueryParameterMatch.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final HttpQueryParameterMatch.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
HttpQueryParameterMatch.Builder
Overrides