public sealed class GrpcRoute.Types.RouteRule : IMessage<GrpcRoute.Types.RouteRule>, IEquatable<GrpcRoute.Types.RouteRule>, IDeepCloneable<GrpcRoute.Types.RouteRule>, IBufferMessage, IMessage
Reference documentation and code samples for the Network Services v1 API class GrpcRoute.Types.RouteRule.
public RepeatedField<GrpcRoute.Types.RouteMatch> Matches { get; }
Optional. Matches define conditions used for matching the rule against
incoming gRPC 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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThis documentation covers the \u003ccode\u003eGrpcRoute.Types.RouteRule\u003c/code\u003e class within the Google Cloud Network Services v1 API, used for defining traffic routing rules.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eRouteRule\u003c/code\u003e class inherits from \u003ccode\u003eobject\u003c/code\u003e and implements several interfaces including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe class includes a required \u003ccode\u003eAction\u003c/code\u003e property of type \u003ccode\u003eGrpcRoute.Types.RouteAction\u003c/code\u003e, which determines how to route traffic.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eMatches\u003c/code\u003e property, a \u003ccode\u003eRepeatedField\u003c/code\u003e of \u003ccode\u003eGrpcRoute.Types.RouteMatch\u003c/code\u003e, defines the conditions under which a rule will match incoming gRPC requests, and if no match is defined it will unconditionally match.\u003c/p\u003e\n"],["\u003cp\u003eTwo constructors are described, \u003ccode\u003eRouteRule()\u003c/code\u003e for a new instance and \u003ccode\u003eRouteRule(GrpcRoute.Types.RouteRule other)\u003c/code\u003e to make a new instance based on another \u003ccode\u003eGrpcRoute.Types.RouteRule\u003c/code\u003e instance.\u003c/p\u003e\n"]]],[],null,[]]