public sealed class TcpRoute.Types.RouteDestination : IMessage<TcpRoute.Types.RouteDestination>, IEquatable<TcpRoute.Types.RouteDestination>, IDeepCloneable<TcpRoute.Types.RouteDestination>, IBufferMessage, IMessage
Reference documentation and code samples for the Network Services v1 API class TcpRoute.Types.RouteDestination.
Describe the destination for traffic to be routed to.
Optional. Specifies the proportion of requests forwarded to the backend
referenced by the serviceName field. This is computed as:
weight/Sum(weights in this destination list).
For non-zero values, there may be some epsilon from the exact proportion
defined here depending on the precision an implementation supports.
If only one serviceName is specified and it has a weight greater than 0,
100% of the traffic is forwarded to that backend.
If weights are specified for any one service name, they need to be
specified for all of them.
If weights are unspecified for all services, then, traffic is distributed
in equal proportions to all of them.
[[["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\u003eTcpRoute.Types.RouteDestination\u003c/code\u003e class within the Network Services v1 API, which defines where traffic should be routed.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eRouteDestination\u003c/code\u003e class inherits from \u003ccode\u003eobject\u003c/code\u003e and implements interfaces like \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, allowing for message handling, equality checks, deep cloning, and buffered message handling.\u003c/p\u003e\n"],["\u003cp\u003eThe class has two constructors, a default constructor, and one that accepts another \u003ccode\u003eTcpRoute.Types.RouteDestination\u003c/code\u003e object as a parameter.\u003c/p\u003e\n"],["\u003cp\u003eKey properties of \u003ccode\u003eRouteDestination\u003c/code\u003e include \u003ccode\u003eServiceName\u003c/code\u003e, a string representing the URL of a BackendService, \u003ccode\u003eServiceNameAsBackendServiceName\u003c/code\u003e, and an \u003ccode\u003eint\u003c/code\u003e named \u003ccode\u003eWeight\u003c/code\u003e representing the proportion of requests forwarded to the specified backend.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eWeight\u003c/code\u003e property determines traffic distribution among multiple services, defaulting to equal distribution if weights are unspecified.\u003c/p\u003e\n"]]],[],null,[]]