Reference documentation and code samples for the Google Cloud Network Services V1 Client class RouteMatch.
RouteMatch defines specifications used to match requests. If multiple match
types are set, this RouteMatch will match if ALL type of matches are
matched.
Generated from protobuf messagegoogle.cloud.networkservices.v1.HttpRoute.RouteMatch
Namespace
Google \ Cloud \ NetworkServices \ V1 \ HttpRoute
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ full_path_match
string
The HTTP request path value should exactly match this value. Only one of full_path_match, prefix_match, or regex_match should be used.
↳ prefix_match
string
The HTTP request path value must begin with specified prefix_match. prefix_match must begin with a /. Only one of full_path_match, prefix_match, or regex_match should be used.
↳ regex_match
string
The HTTP request path value must satisfy the regular expression specified by regex_match after removing any query parameters and anchor supplied with the original URL. For regular expression grammar, please seehttps://github.com/google/re2/wiki/SyntaxOnly one of full_path_match, prefix_match, or regex_match should be used.
↳ ignore_case
bool
Specifies if prefix_match and full_path_match matches are case sensitive. The default value is false.
Specifies a list of query parameters to match against. ALL of the query parameters must be matched.
getFullPathMatch
The HTTP request path value should exactly match this value.
Only one of full_path_match, prefix_match, or regex_match should be
used.
Returns
Type
Description
string
hasFullPathMatch
setFullPathMatch
The HTTP request path value should exactly match this value.
Only one of full_path_match, prefix_match, or regex_match should be
used.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getPrefixMatch
The HTTP request path value must begin with specified prefix_match.
prefix_match must begin with a /.
Only one of full_path_match, prefix_match, or regex_match should be
used.
Returns
Type
Description
string
hasPrefixMatch
setPrefixMatch
The HTTP request path value must begin with specified prefix_match.
prefix_match must begin with a /.
Only one of full_path_match, prefix_match, or regex_match should be
used.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getRegexMatch
The HTTP request path value must satisfy the regular expression
specified by regex_match after removing any query parameters and anchor
supplied with the original URL. For regular expression grammar, please
seehttps://github.com/google/re2/wiki/SyntaxOnly one of full_path_match, prefix_match, or regex_match should be
used.
Returns
Type
Description
string
hasRegexMatch
setRegexMatch
The HTTP request path value must satisfy the regular expression
specified by regex_match after removing any query parameters and anchor
supplied with the original URL. For regular expression grammar, please
seehttps://github.com/google/re2/wiki/SyntaxOnly one of full_path_match, prefix_match, or regex_match should be
used.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getIgnoreCase
Specifies if prefix_match and full_path_match matches are case sensitive.
The default value is false.
Returns
Type
Description
bool
setIgnoreCase
Specifies if prefix_match and full_path_match matches are case sensitive.
The default value is false.
Parameter
Name
Description
var
bool
Returns
Type
Description
$this
getHeaders
Specifies a list of HTTP request headers to match against. ALL of the
supplied headers must be matched.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Cloud Network Services V1 Client - Class RouteMatch (0.6.1)\n\nVersion latestkeyboard_arrow_down\n\n- [0.6.1 (latest)](/php/docs/reference/cloud-networkservices/latest/V1.HttpRoute.RouteMatch)\n- [0.6.0](/php/docs/reference/cloud-networkservices/0.6.0/V1.HttpRoute.RouteMatch)\n- [0.5.0](/php/docs/reference/cloud-networkservices/0.5.0/V1.HttpRoute.RouteMatch)\n- [0.4.0](/php/docs/reference/cloud-networkservices/0.4.0/V1.HttpRoute.RouteMatch)\n- [0.3.0](/php/docs/reference/cloud-networkservices/0.3.0/V1.HttpRoute.RouteMatch)\n- [0.2.3](/php/docs/reference/cloud-networkservices/0.2.3/V1.HttpRoute.RouteMatch)\n- [0.1.1](/php/docs/reference/cloud-networkservices/0.1.1/V1.HttpRoute.RouteMatch) \nReference documentation and code samples for the Google Cloud Network Services V1 Client class RouteMatch.\n\nRouteMatch defines specifications used to match requests. If multiple match\ntypes are set, this RouteMatch will match if ALL type of matches are\nmatched.\n\nGenerated from protobuf message `google.cloud.networkservices.v1.HttpRoute.RouteMatch`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ NetworkServices \\\\ V1 \\\\ HttpRoute\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getFullPathMatch\n\nThe HTTP request path value should exactly match this value.\n\nOnly one of full_path_match, prefix_match, or regex_match should be\nused.\n\n### hasFullPathMatch\n\n### setFullPathMatch\n\nThe HTTP request path value should exactly match this value.\n\nOnly one of full_path_match, prefix_match, or regex_match should be\nused.\n\n### getPrefixMatch\n\nThe HTTP request path value must begin with specified prefix_match.\n\nprefix_match must begin with a /.\nOnly one of full_path_match, prefix_match, or regex_match should be\nused.\n\n### hasPrefixMatch\n\n### setPrefixMatch\n\nThe HTTP request path value must begin with specified prefix_match.\n\nprefix_match must begin with a /.\nOnly one of full_path_match, prefix_match, or regex_match should be\nused.\n\n### getRegexMatch\n\nThe HTTP request path value must satisfy the regular expression\nspecified by regex_match after removing any query parameters and anchor\nsupplied with the original URL. For regular expression grammar, please\nsee \u003chttps://github.com/google/re2/wiki/Syntax\u003e\nOnly one of full_path_match, prefix_match, or regex_match should be\nused.\n\n### hasRegexMatch\n\n### setRegexMatch\n\nThe HTTP request path value must satisfy the regular expression\nspecified by regex_match after removing any query parameters and anchor\nsupplied with the original URL. For regular expression grammar, please\nsee \u003chttps://github.com/google/re2/wiki/Syntax\u003e\nOnly one of full_path_match, prefix_match, or regex_match should be\nused.\n\n### getIgnoreCase\n\nSpecifies if prefix_match and full_path_match matches are case sensitive.\n\nThe default value is false.\n\n### setIgnoreCase\n\nSpecifies if prefix_match and full_path_match matches are case sensitive.\n\nThe default value is false.\n\n### getHeaders\n\nSpecifies a list of HTTP request headers to match against. ALL of the\nsupplied headers must be matched.\n\n### setHeaders\n\nSpecifies a list of HTTP request headers to match against. ALL of the\nsupplied headers must be matched.\n\n### getQueryParameters\n\nSpecifies a list of query parameters to match against. ALL of the query\nparameters must be matched.\n\n### setQueryParameters\n\nSpecifies a list of query parameters to match against. ALL of the query\nparameters must be matched.\n\n### getPathMatch"]]