Google Cloud Network Services V1 Client - Class QueryParameterMatch (0.1.1)

Reference documentation and code samples for the Google Cloud Network Services V1 Client class QueryParameterMatch.

Specifications to match a query parameter in the request.

Generated from protobuf message google.cloud.networkservices.v1.HttpRoute.QueryParameterMatch

Namespace

Google \ Cloud \ NetworkServices \ V1 \ HttpRoute

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ exact_match string

The value of the query parameter must exactly match the contents of exact_match. Only one of exact_match, regex_match, or present_match must be set.

↳ regex_match string

The value of the query parameter must match the regular expression specified by regex_match. For regular expression grammar, please see https://github.com/google/re2/wiki/Syntax Only one of exact_match, regex_match, or present_match must be set.

↳ present_match bool

Specifies that the QueryParameterMatcher matches if request contains query parameter, irrespective of whether the parameter has a value or not. Only one of exact_match, regex_match, or present_match must be set.

↳ query_parameter string

The name of the query parameter to match.

getExactMatch

The value of the query parameter must exactly match the contents of exact_match.

Only one of exact_match, regex_match, or present_match must be set.

Returns
Type Description
string

hasExactMatch

setExactMatch

The value of the query parameter must exactly match the contents of exact_match.

Only one of exact_match, regex_match, or present_match must be set.

Parameter
Name Description
var string
Returns
Type Description
$this

getRegexMatch

The value of the query parameter must match the regular expression specified by regex_match. For regular expression grammar, please see https://github.com/google/re2/wiki/Syntax Only one of exact_match, regex_match, or present_match must be set.

Returns
Type Description
string

hasRegexMatch

setRegexMatch

The value of the query parameter must match the regular expression specified by regex_match. For regular expression grammar, please see https://github.com/google/re2/wiki/Syntax Only one of exact_match, regex_match, or present_match must be set.

Parameter
Name Description
var string
Returns
Type Description
$this

getPresentMatch

Specifies that the QueryParameterMatcher matches if request contains query parameter, irrespective of whether the parameter has a value or not.

Only one of exact_match, regex_match, or present_match must be set.

Returns
Type Description
bool

hasPresentMatch

setPresentMatch

Specifies that the QueryParameterMatcher matches if request contains query parameter, irrespective of whether the parameter has a value or not.

Only one of exact_match, regex_match, or present_match must be set.

Parameter
Name Description
var bool
Returns
Type Description
$this

getQueryParameter

The name of the query parameter to match.

Returns
Type Description
string

setQueryParameter

The name of the query parameter to match.

Parameter
Name Description
var string
Returns
Type Description
$this

getMatchType

Returns
Type Description
string