public sealed class TlsRoute.Types.RouteRule : IMessage<TlsRoute.Types.RouteRule>, IEquatable<TlsRoute.Types.RouteRule>, IDeepCloneable<TlsRoute.Types.RouteRule>, IBufferMessage, IMessage
Reference documentation and code samples for the Network Services v1 API class TlsRoute.Types.RouteRule.
Specifies how to match traffic and how to route traffic when traffic is
matched.
public RepeatedField<TlsRoute.Types.RouteMatch> Matches { get; }
Required. RouteMatch defines the predicate used to match requests to a
given action. Multiple match types are "OR"ed for evaluation. Atleast one
RouteMatch must be supplied.
[[["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-06-13 UTC."],[[["This documentation covers the `TlsRoute.Types.RouteRule` class within the Network Services v1 API, detailing its role in traffic matching and routing."],["The `RouteRule` class implements several interfaces, including `IMessage`, `IEquatable`, `IDeepCloneable`, and `IBufferMessage`, providing various functionalities."],["The class includes properties `Action` of type `TlsRoute.Types.RouteAction`, which determines how matched traffic is routed, and `Matches` of type `RepeatedField\u003cTlsRoute.Types.RouteMatch\u003e`, which defines the criteria for matching requests."],["The `RouteRule` class has two constructors: a default one, `RouteRule()` and a second that takes another `RouteRule` object as a parameter, `RouteRule(TlsRoute.Types.RouteRule other)` that allows creating a copy."],["The `RouteRule` class inherits `GetHashCode()`, `GetType()`, `ToString()` from the `object` class."]]],[]]