public static interface TcpRoute.RouteActionOrBuilder extends MessageOrBuilder
Implements
MessageOrBuilderMethods
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> |
getIdleTimeout()
public abstract Duration getIdleTimeout()
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.
.google.protobuf.Duration idle_timeout = 5 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
Duration |
The idleTimeout. |
getIdleTimeoutOrBuilder()
public abstract DurationOrBuilder getIdleTimeoutOrBuilder()
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.
.google.protobuf.Duration idle_timeout = 5 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
DurationOrBuilder |
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. |
hasIdleTimeout()
public abstract boolean hasIdleTimeout()
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.
.google.protobuf.Duration idle_timeout = 5 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
boolean |
Whether the idleTimeout field is set. |