public sealed class TcpRoute.Types.RouteAction : IMessage<TcpRoute.Types.RouteAction>, IEquatable<TcpRoute.Types.RouteAction>, IDeepCloneable<TcpRoute.Types.RouteAction>, IBufferMessage, IMessage
Reference documentation and code samples for the Network Services v1 API class TcpRoute.Types.RouteAction.
The specifications for routing traffic and applying associated policies.
public RepeatedField<TcpRoute.Types.RouteDestination> Destinations { get; }
Optional. The destination services to which traffic should be forwarded.
At least one destination service is required. Only one of route
destination or original destination can be set.
Optional. Specifies the idle timeout for the selected route. The idle
timeout is defined as the period in which there are no bytes sent or
received on either the upstream or downstream connection. If not set, the
default idle timeout is 30 seconds. If set to 0s, the timeout will be
disabled.
Optional. If true, Router will use the destination IP and port of the
original connection as the destination of the request. Default is false.
Only one of route destinations or original destination can be set.
[[["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.RouteAction\u003c/code\u003e class within the Google Cloud Network Services v1 API, used for defining specifications for routing traffic.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eTcpRoute.Types.RouteAction\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, and inherits from the base \u003ccode\u003eobject\u003c/code\u003e class.\u003c/p\u003e\n"],["\u003cp\u003eThe class includes a \u003ccode\u003eDestinations\u003c/code\u003e property which is a required list of destination services where traffic can be forwarded, represented by a \u003ccode\u003eRepeatedField\u003c/code\u003e of \u003ccode\u003eTcpRoute.Types.RouteDestination\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe class also contains an \u003ccode\u003eOriginalDestination\u003c/code\u003e property that, if set to \u003ccode\u003etrue\u003c/code\u003e, will direct the traffic to the original destination IP and port of the connection.\u003c/p\u003e\n"]]],[],null,[]]