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"]],[["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-03-21 UTC."],[[["This documentation covers the `GrpcRoute.Types.RouteRule` class within the Google Cloud Network Services v1 API, used for defining traffic routing rules."],["The `RouteRule` class inherits from `object` and implements several interfaces including `IMessage`, `IEquatable`, `IDeepCloneable`, and `IBufferMessage`."],["The class includes a required `Action` property of type `GrpcRoute.Types.RouteAction`, which determines how to route traffic."],["The `Matches` property, a `RepeatedField` of `GrpcRoute.Types.RouteMatch`, defines the conditions under which a rule will match incoming gRPC requests, and if no match is defined it will unconditionally match."],["Two constructors are described, `RouteRule()` for a new instance and `RouteRule(GrpcRoute.Types.RouteRule other)` to make a new instance based on another `GrpcRoute.Types.RouteRule` instance."]]],[]]