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"]],[["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\u003eTlsRoute.Types.RouteRule\u003c/code\u003e class within the Network Services v1 API, detailing its role in traffic matching and routing.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eRouteRule\u003c/code\u003e class 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, providing various functionalities.\u003c/p\u003e\n"],["\u003cp\u003eThe class includes properties \u003ccode\u003eAction\u003c/code\u003e of type \u003ccode\u003eTlsRoute.Types.RouteAction\u003c/code\u003e, which determines how matched traffic is routed, and \u003ccode\u003eMatches\u003c/code\u003e of type \u003ccode\u003eRepeatedField<TlsRoute.Types.RouteMatch>\u003c/code\u003e, which defines the criteria for matching requests.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eRouteRule\u003c/code\u003e class has two constructors: a default one, \u003ccode\u003eRouteRule()\u003c/code\u003e and a second that takes another \u003ccode\u003eRouteRule\u003c/code\u003e object as a parameter, \u003ccode\u003eRouteRule(TlsRoute.Types.RouteRule other)\u003c/code\u003e that allows creating a copy.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eRouteRule\u003c/code\u003e class inherits \u003ccode\u003eGetHashCode()\u003c/code\u003e, \u003ccode\u003eGetType()\u003c/code\u003e, \u003ccode\u003eToString()\u003c/code\u003e from the \u003ccode\u003eobject\u003c/code\u003e class.\u003c/p\u003e\n"]]],[],null,[]]