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. 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. 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. 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. 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. 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.
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.
[[["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-08-16 UTC."],[],[],null,["# Interface TcpRoute.RouteActionOrBuilder (0.28.0)\n\nVersion latestkeyboard_arrow_down\n\n- [0.28.0 (latest)](/java/docs/reference/google-cloud-networkservices/latest/com.google.cloud.networkservices.v1.TcpRoute.RouteActionOrBuilder)\n- [0.26.0](/java/docs/reference/google-cloud-networkservices/0.26.0/com.google.cloud.networkservices.v1.TcpRoute.RouteActionOrBuilder)\n- [0.24.0](/java/docs/reference/google-cloud-networkservices/0.24.0/com.google.cloud.networkservices.v1.TcpRoute.RouteActionOrBuilder)\n- [0.23.0](/java/docs/reference/google-cloud-networkservices/0.23.0/com.google.cloud.networkservices.v1.TcpRoute.RouteActionOrBuilder)\n- [0.20.0](/java/docs/reference/google-cloud-networkservices/0.20.0/com.google.cloud.networkservices.v1.TcpRoute.RouteActionOrBuilder)\n- [0.19.0](/java/docs/reference/google-cloud-networkservices/0.19.0/com.google.cloud.networkservices.v1.TcpRoute.RouteActionOrBuilder)\n- [0.18.0](/java/docs/reference/google-cloud-networkservices/0.18.0/com.google.cloud.networkservices.v1.TcpRoute.RouteActionOrBuilder)\n- [0.16.0](/java/docs/reference/google-cloud-networkservices/0.16.0/com.google.cloud.networkservices.v1.TcpRoute.RouteActionOrBuilder)\n- [0.15.0](/java/docs/reference/google-cloud-networkservices/0.15.0/com.google.cloud.networkservices.v1.TcpRoute.RouteActionOrBuilder)\n- [0.14.0](/java/docs/reference/google-cloud-networkservices/0.14.0/com.google.cloud.networkservices.v1.TcpRoute.RouteActionOrBuilder)\n- [0.13.0](/java/docs/reference/google-cloud-networkservices/0.13.0/com.google.cloud.networkservices.v1.TcpRoute.RouteActionOrBuilder)\n- [0.12.0](/java/docs/reference/google-cloud-networkservices/0.12.0/com.google.cloud.networkservices.v1.TcpRoute.RouteActionOrBuilder)\n- [0.11.0](/java/docs/reference/google-cloud-networkservices/0.11.0/com.google.cloud.networkservices.v1.TcpRoute.RouteActionOrBuilder)\n- [0.10.0](/java/docs/reference/google-cloud-networkservices/0.10.0/com.google.cloud.networkservices.v1.TcpRoute.RouteActionOrBuilder)\n- [0.9.0](/java/docs/reference/google-cloud-networkservices/0.9.0/com.google.cloud.networkservices.v1.TcpRoute.RouteActionOrBuilder)\n- [0.8.0](/java/docs/reference/google-cloud-networkservices/0.8.0/com.google.cloud.networkservices.v1.TcpRoute.RouteActionOrBuilder)\n- [0.7.0](/java/docs/reference/google-cloud-networkservices/0.7.0/com.google.cloud.networkservices.v1.TcpRoute.RouteActionOrBuilder)\n- [0.5.0](/java/docs/reference/google-cloud-networkservices/0.5.0/com.google.cloud.networkservices.v1.TcpRoute.RouteActionOrBuilder)\n- [0.4.0](/java/docs/reference/google-cloud-networkservices/0.4.0/com.google.cloud.networkservices.v1.TcpRoute.RouteActionOrBuilder)\n- [0.3.0](/java/docs/reference/google-cloud-networkservices/0.3.0/com.google.cloud.networkservices.v1.TcpRoute.RouteActionOrBuilder)\n- [0.2.0](/java/docs/reference/google-cloud-networkservices/0.2.0/com.google.cloud.networkservices.v1.TcpRoute.RouteActionOrBuilder)\n- [0.1.0](/java/docs/reference/google-cloud-networkservices/0.1.0/com.google.cloud.networkservices.v1.TcpRoute.RouteActionOrBuilder) \n\n public static interface TcpRoute.RouteActionOrBuilder extends MessageOrBuilder\n\nImplements\n----------\n\n[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)\n\nMethods\n-------\n\n### getDestinations(int index)\n\n public abstract TcpRoute.RouteDestination getDestinations(int index)\n\nOptional. The destination services to which traffic should be forwarded.\nAt least one destination service is required. Only one of route\ndestination or original destination can be set.\n\n`\nrepeated .google.cloud.networkservices.v1.TcpRoute.RouteDestination destinations = 1 [(.google.api.field_behavior) = OPTIONAL];\n`\n\n### getDestinationsCount()\n\n public abstract int getDestinationsCount()\n\nOptional. The destination services to which traffic should be forwarded.\nAt least one destination service is required. Only one of route\ndestination or original destination can be set.\n\n`\nrepeated .google.cloud.networkservices.v1.TcpRoute.RouteDestination destinations = 1 [(.google.api.field_behavior) = OPTIONAL];\n`\n\n### getDestinationsList()\n\n public abstract List\u003cTcpRoute.RouteDestination\u003e getDestinationsList()\n\nOptional. The destination services to which traffic should be forwarded.\nAt least one destination service is required. Only one of route\ndestination or original destination can be set.\n\n`\nrepeated .google.cloud.networkservices.v1.TcpRoute.RouteDestination destinations = 1 [(.google.api.field_behavior) = OPTIONAL];\n`\n\n### getDestinationsOrBuilder(int index)\n\n public abstract TcpRoute.RouteDestinationOrBuilder getDestinationsOrBuilder(int index)\n\nOptional. The destination services to which traffic should be forwarded.\nAt least one destination service is required. Only one of route\ndestination or original destination can be set.\n\n`\nrepeated .google.cloud.networkservices.v1.TcpRoute.RouteDestination destinations = 1 [(.google.api.field_behavior) = OPTIONAL];\n`\n\n### getDestinationsOrBuilderList()\n\n public abstract List\u003c? extends TcpRoute.RouteDestinationOrBuilder\u003e getDestinationsOrBuilderList()\n\nOptional. The destination services to which traffic should be forwarded.\nAt least one destination service is required. Only one of route\ndestination or original destination can be set.\n\n`\nrepeated .google.cloud.networkservices.v1.TcpRoute.RouteDestination destinations = 1 [(.google.api.field_behavior) = OPTIONAL];\n`\n\n### getIdleTimeout()\n\n public abstract Duration getIdleTimeout()\n\nOptional. Specifies the idle timeout for the selected route. The idle\ntimeout is defined as the period in which there are no bytes sent or\nreceived on either the upstream or downstream connection. If not set, the\ndefault idle timeout is 30 seconds. If set to 0s, the timeout will be\ndisabled.\n\n`.google.protobuf.Duration idle_timeout = 5 [(.google.api.field_behavior) = OPTIONAL];\n`\n\n### getIdleTimeoutOrBuilder()\n\n public abstract DurationOrBuilder getIdleTimeoutOrBuilder()\n\nOptional. Specifies the idle timeout for the selected route. The idle\ntimeout is defined as the period in which there are no bytes sent or\nreceived on either the upstream or downstream connection. If not set, the\ndefault idle timeout is 30 seconds. If set to 0s, the timeout will be\ndisabled.\n\n`.google.protobuf.Duration idle_timeout = 5 [(.google.api.field_behavior) = OPTIONAL];\n`\n\n### getOriginalDestination()\n\n public abstract boolean getOriginalDestination()\n\nOptional. If true, Router will use the destination IP and port of the\noriginal connection as the destination of the request. Default is false.\nOnly one of route destinations or original destination can be set.\n\n`bool original_destination = 3 [(.google.api.field_behavior) = OPTIONAL];`\n\n### hasIdleTimeout()\n\n public abstract boolean hasIdleTimeout()\n\nOptional. Specifies the idle timeout for the selected route. The idle\ntimeout is defined as the period in which there are no bytes sent or\nreceived on either the upstream or downstream connection. If not set, the\ndefault idle timeout is 30 seconds. If set to 0s, the timeout will be\ndisabled.\n\n`.google.protobuf.Duration idle_timeout = 5 [(.google.api.field_behavior) = OPTIONAL];\n`"]]