Interface TcpRoute.RouteActionOrBuilder (0.5.0)

public static interface TcpRoute.RouteActionOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getDestinations(int index)

public abstract TcpRoute.RouteDestination getDestinations(int index)

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.

repeated .google.cloud.networkservices.v1.TcpRoute.RouteDestination destinations = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
TcpRoute.RouteDestination

getDestinationsCount()

public abstract int getDestinationsCount()

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.

repeated .google.cloud.networkservices.v1.TcpRoute.RouteDestination destinations = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getDestinationsList()

public abstract List<TcpRoute.RouteDestination> getDestinationsList()

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.

repeated .google.cloud.networkservices.v1.TcpRoute.RouteDestination destinations = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<RouteDestination>

getDestinationsOrBuilder(int index)

public abstract TcpRoute.RouteDestinationOrBuilder getDestinationsOrBuilder(int index)

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.

repeated .google.cloud.networkservices.v1.TcpRoute.RouteDestination destinations = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
TcpRoute.RouteDestinationOrBuilder

getDestinationsOrBuilderList()

public abstract List<? extends TcpRoute.RouteDestinationOrBuilder> getDestinationsOrBuilderList()

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.

repeated .google.cloud.networkservices.v1.TcpRoute.RouteDestination destinations = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<? extends com.google.cloud.networkservices.v1.TcpRoute.RouteDestinationOrBuilder>

getOriginalDestination()

public abstract boolean getOriginalDestination()

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.

bool original_destination = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The originalDestination.