Compute V1 Client - Class HttpQueryParameterMatch (1.5.0)

Reference documentation and code samples for the Compute V1 Client class HttpQueryParameterMatch.

HttpRouteRuleMatch criteria for a request's query parameter.

Generated from protobuf message google.cloud.compute.v1.HttpQueryParameterMatch

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ exact_match string

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.

↳ name string

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.

↳ present_match bool

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.

↳ regex_match string

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.

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.

Generated from protobuf field optional string exact_match = 457641093;

Returns
TypeDescription
string

hasExactMatch

clearExactMatch

setExactMatch

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.

Generated from protobuf field optional string exact_match = 457641093;

Parameter
NameDescription
var string
Returns
TypeDescription
$this

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.

Generated from protobuf field optional string name = 3373707;

Returns
TypeDescription
string

hasName

clearName

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.

Generated from protobuf field optional string name = 3373707;

Parameter
NameDescription
var string
Returns
TypeDescription
$this

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.

Generated from protobuf field optional bool present_match = 67435841;

Returns
TypeDescription
bool

hasPresentMatch

clearPresentMatch

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

Generated from protobuf field optional bool present_match = 67435841;

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

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.

Generated from protobuf field optional string regex_match = 107387853;

Returns
TypeDescription
string

hasRegexMatch

clearRegexMatch

setRegexMatch

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.

Generated from protobuf field optional string regex_match = 107387853;

Parameter
NameDescription
var string
Returns
TypeDescription
$this