Class HttpQueryParameterMatch.Builder (1.93.0)

public static final class HttpQueryParameterMatch.Builder extends GeneratedMessage.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
Type Description
Descriptor

Methods

build()

public HttpQueryParameterMatch build()
Returns
Type Description
HttpQueryParameterMatch

buildPartial()

public HttpQueryParameterMatch buildPartial()
Returns
Type Description
HttpQueryParameterMatch

clear()

public HttpQueryParameterMatch.Builder clear()
Returns
Type Description
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, orregexMatch must be set.

optional string exact_match = 457641093;

Returns
Type Description
HttpQueryParameterMatch.Builder

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
Type Description
HttpQueryParameterMatch.Builder

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, orregexMatch must be set.

optional bool present_match = 67435841;

Returns
Type Description
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 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
Type Description
HttpQueryParameterMatch.Builder

This builder for chaining.

getDefaultInstanceForType()

public HttpQueryParameterMatch getDefaultInstanceForType()
Returns
Type Description
HttpQueryParameterMatch

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
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, orregexMatch must be set.

optional string exact_match = 457641093;

Returns
Type Description
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, orregexMatch must be set.

optional string exact_match = 457641093;

Returns
Type Description
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
Type Description
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
Type Description
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, orregexMatch must be set.

optional bool present_match = 67435841;

Returns
Type Description
boolean

The presentMatch.

getRegexMatch()

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

Returns
Type Description
String

The regexMatch.

getRegexMatchBytes()

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

Returns
Type Description
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, orregexMatch must be set.

optional string exact_match = 457641093;

Returns
Type Description
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
Type Description
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, orregexMatch must be set.

optional bool present_match = 67435841;

Returns
Type Description
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 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
Type Description
boolean

Whether the regexMatch field is set.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(HttpQueryParameterMatch other)

public HttpQueryParameterMatch.Builder mergeFrom(HttpQueryParameterMatch other)
Parameter
Name Description
other HttpQueryParameterMatch
Returns
Type Description
HttpQueryParameterMatch.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public HttpQueryParameterMatch.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
HttpQueryParameterMatch.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public HttpQueryParameterMatch.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
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, orregexMatch must be set.

optional string exact_match = 457641093;

Parameter
Name Description
value String

The exactMatch to set.

Returns
Type Description
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, orregexMatch must be set.

optional string exact_match = 457641093;

Parameter
Name Description
value ByteString

The bytes for exactMatch to set.

Returns
Type Description
HttpQueryParameterMatch.Builder

This builder for chaining.

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
Name Description
value String

The name to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
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, orregexMatch must be set.

optional bool present_match = 67435841;

Parameter
Name Description
value boolean

The presentMatch to set.

Returns
Type Description
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 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;

Parameter
Name Description
value String

The regexMatch to set.

Returns
Type Description
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 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;

Parameter
Name Description
value ByteString

The bytes for regexMatch to set.

Returns
Type Description
HttpQueryParameterMatch.Builder

This builder for chaining.