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. 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"]],[["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-07 UTC."],[],[],null,["# Interface TcpRoute.RouteActionOrBuilder (0.16.0)\n\nVersion latestkeyboard_arrow_down\n\n- [0.16.0 (latest)](/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.networkservices.v1.TcpRoute.RouteActionOrBuilder)\n- [0.15.0](/java/docs/reference/google-cloudevent-types/0.15.0/com.google.events.cloud.networkservices.v1.TcpRoute.RouteActionOrBuilder)\n- [0.14.1](/java/docs/reference/google-cloudevent-types/0.14.1/com.google.events.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.events.cloud.networkservices.v1.TcpRoute.RouteDestination destinations = 1;\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.events.cloud.networkservices.v1.TcpRoute.RouteDestination destinations = 1;\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.events.cloud.networkservices.v1.TcpRoute.RouteDestination destinations = 1;\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.events.cloud.networkservices.v1.TcpRoute.RouteDestination destinations = 1;\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.events.cloud.networkservices.v1.TcpRoute.RouteDestination destinations = 1;\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;`"]]