Reference documentation and code samples for the Recommender V1 Client class ValueMatcher.
Contains various matching options for values for a GCP resource field.
Generated from protobuf message google.cloud.recommender.v1.ValueMatcher
Namespace
Google \ Cloud \ Recommender \ V1
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ matches_pattern
string
To be used for full regex matching. The regular expression is using the Google RE2 syntax (https://github.com/google/re2/wiki/Syntax), so to be used with RE2::FullMatch
getMatchesPattern
To be used for full regex matching. The regular expression is using the
Google RE2 syntax (https://github.com/google/re2/wiki/Syntax), so to be
used with RE2::FullMatch
Returns
Type
Description
string
hasMatchesPattern
setMatchesPattern
To be used for full regex matching. The regular expression is using the
Google RE2 syntax (https://github.com/google/re2/wiki/Syntax), so to be
used with RE2::FullMatch
[[["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,["# Recommender V1 Client - Class ValueMatcher (2.0.5)\n\nVersion latestkeyboard_arrow_down\n\n- [2.0.5 (latest)](/php/docs/reference/cloud-recommender/latest/V1.ValueMatcher)\n- [2.0.4](/php/docs/reference/cloud-recommender/2.0.4/V1.ValueMatcher)\n- [1.11.5](/php/docs/reference/cloud-recommender/1.11.5/V1.ValueMatcher)\n- [1.10.0](/php/docs/reference/cloud-recommender/1.10.0/V1.ValueMatcher)\n- [1.9.1](/php/docs/reference/cloud-recommender/1.9.1/V1.ValueMatcher)\n- [1.8.2](/php/docs/reference/cloud-recommender/1.8.2/V1.ValueMatcher)\n- [1.7.8](/php/docs/reference/cloud-recommender/1.7.8/V1.ValueMatcher) \nReference documentation and code samples for the Recommender V1 Client class ValueMatcher.\n\nContains various matching options for values for a GCP resource field.\n\nGenerated from protobuf message `google.cloud.recommender.v1.ValueMatcher`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Recommender \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getMatchesPattern\n\nTo be used for full regex matching. The regular expression is using the\nGoogle RE2 syntax (\u003chttps://github.com/google/re2/wiki/Syntax\u003e), so to be\nused with RE2::FullMatch\n\n### hasMatchesPattern\n\n### setMatchesPattern\n\nTo be used for full regex matching. The regular expression is using the\nGoogle RE2 syntax (\u003chttps://github.com/google/re2/wiki/Syntax\u003e), so to be\nused with RE2::FullMatch\n\n### getMatchVariant"]]