A list of matches define conditions used for matching the rule against incoming HTTP requests. Each match is independent, i.e. this rule will be matched if ANY one of the matches is satisfied. If no matches field is specified, this rule will unconditionally match traffic. If a default rule is desired to be configured, add a rule with no matches specified to the end of the rules list.
The detailed rule defining how to route matched traffic.
getMatches
A list of matches define conditions used for matching the rule against
incoming HTTP requests. Each match is independent, i.e. this rule will be
matched if ANY one of the matches is satisfied.
If no matches field is specified, this rule will unconditionally match
traffic.
If a default rule is desired to be configured, add a rule with no matches
specified to the end of the rules list.
A list of matches define conditions used for matching the rule against
incoming HTTP requests. Each match is independent, i.e. this rule will be
matched if ANY one of the matches is satisfied.
If no matches field is specified, this rule will unconditionally match
traffic.
If a default rule is desired to be configured, add a rule with no matches
specified to the end of the rules list.
[[["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 RouteRule (0.6.1)\n\nVersion latestkeyboard_arrow_down\n\n- [0.6.1 (latest)](/php/docs/reference/cloud-networkservices/latest/V1.HttpRoute.RouteRule)\n- [0.6.0](/php/docs/reference/cloud-networkservices/0.6.0/V1.HttpRoute.RouteRule)\n- [0.5.0](/php/docs/reference/cloud-networkservices/0.5.0/V1.HttpRoute.RouteRule)\n- [0.4.0](/php/docs/reference/cloud-networkservices/0.4.0/V1.HttpRoute.RouteRule)\n- [0.3.0](/php/docs/reference/cloud-networkservices/0.3.0/V1.HttpRoute.RouteRule)\n- [0.2.3](/php/docs/reference/cloud-networkservices/0.2.3/V1.HttpRoute.RouteRule)\n- [0.1.1](/php/docs/reference/cloud-networkservices/0.1.1/V1.HttpRoute.RouteRule) \nReference documentation and code samples for the Google Cloud Network Services V1 Client class RouteRule.\n\nSpecifies how to match traffic and how to route traffic when traffic is\nmatched.\n\nGenerated from protobuf message `google.cloud.networkservices.v1.HttpRoute.RouteRule`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ NetworkServices \\\\ V1 \\\\ HttpRoute\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getMatches\n\nA list of matches define conditions used for matching the rule against\nincoming HTTP requests. Each match is independent, i.e. this rule will be\nmatched if ANY one of the matches is satisfied.\n\nIf no matches field is specified, this rule will unconditionally match\ntraffic.\nIf a default rule is desired to be configured, add a rule with no matches\nspecified to the end of the rules list.\n\n### setMatches\n\nA list of matches define conditions used for matching the rule against\nincoming HTTP requests. Each match is independent, i.e. this rule will be\nmatched if ANY one of the matches is satisfied.\n\nIf no matches field is specified, this rule will unconditionally match\ntraffic.\nIf a default rule is desired to be configured, add a rule with no matches\nspecified to the end of the rules list.\n\n### getAction\n\nThe detailed rule defining how to route matched traffic.\n\n### hasAction\n\n### clearAction\n\n### setAction\n\nThe detailed rule defining how to route matched traffic."]]