public static final class TcpRoute.RouteAction.Builder extends GeneratedMessage.Builder<TcpRoute.RouteAction.Builder> implements TcpRoute.RouteActionOrBuilderThe specifications for routing traffic and applying associated policies.
Protobuf type google.cloud.networkservices.v1.TcpRoute.RouteAction
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > TcpRoute.RouteAction.BuilderImplements
TcpRoute.RouteActionOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addAllDestinations(Iterable<? extends TcpRoute.RouteDestination> values)
public TcpRoute.RouteAction.Builder addAllDestinations(Iterable<? extends TcpRoute.RouteDestination> values)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 |
values |
Iterable<? extends com.google.cloud.networkservices.v1.TcpRoute.RouteDestination> |
| Returns | |
|---|---|
| Type | Description |
TcpRoute.RouteAction.Builder |
|
addDestinations(TcpRoute.RouteDestination value)
public TcpRoute.RouteAction.Builder addDestinations(TcpRoute.RouteDestination value)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 |
value |
TcpRoute.RouteDestination |
| Returns | |
|---|---|
| Type | Description |
TcpRoute.RouteAction.Builder |
|
addDestinations(TcpRoute.RouteDestination.Builder builderForValue)
public TcpRoute.RouteAction.Builder addDestinations(TcpRoute.RouteDestination.Builder builderForValue)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 |
builderForValue |
TcpRoute.RouteDestination.Builder |
| Returns | |
|---|---|
| Type | Description |
TcpRoute.RouteAction.Builder |
|
addDestinations(int index, TcpRoute.RouteDestination value)
public TcpRoute.RouteAction.Builder addDestinations(int index, TcpRoute.RouteDestination value)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];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
TcpRoute.RouteDestination |
| Returns | |
|---|---|
| Type | Description |
TcpRoute.RouteAction.Builder |
|
addDestinations(int index, TcpRoute.RouteDestination.Builder builderForValue)
public TcpRoute.RouteAction.Builder addDestinations(int index, TcpRoute.RouteDestination.Builder builderForValue)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];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
TcpRoute.RouteDestination.Builder |
| Returns | |
|---|---|
| Type | Description |
TcpRoute.RouteAction.Builder |
|
addDestinationsBuilder()
public TcpRoute.RouteDestination.Builder addDestinationsBuilder()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 |
TcpRoute.RouteDestination.Builder |
|
addDestinationsBuilder(int index)
public TcpRoute.RouteDestination.Builder addDestinationsBuilder(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.Builder |
|
build()
public TcpRoute.RouteAction build()| Returns | |
|---|---|
| Type | Description |
TcpRoute.RouteAction |
|
buildPartial()
public TcpRoute.RouteAction buildPartial()| Returns | |
|---|---|
| Type | Description |
TcpRoute.RouteAction |
|
clear()
public TcpRoute.RouteAction.Builder clear()| Returns | |
|---|---|
| Type | Description |
TcpRoute.RouteAction.Builder |
|
clearDestinations()
public TcpRoute.RouteAction.Builder clearDestinations()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 |
TcpRoute.RouteAction.Builder |
|
clearIdleTimeout()
public TcpRoute.RouteAction.Builder clearIdleTimeout()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 |
TcpRoute.RouteAction.Builder |
|
clearOriginalDestination()
public TcpRoute.RouteAction.Builder clearOriginalDestination()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 |
TcpRoute.RouteAction.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public TcpRoute.RouteAction getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
TcpRoute.RouteAction |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getDestinations(int index)
public 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 |
|
getDestinationsBuilder(int index)
public TcpRoute.RouteDestination.Builder getDestinationsBuilder(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.Builder |
|
getDestinationsBuilderList()
public List<TcpRoute.RouteDestination.Builder> getDestinationsBuilderList()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<Builder> |
|
getDestinationsCount()
public 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 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 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 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 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. |
getIdleTimeoutBuilder()
public Duration.Builder getIdleTimeoutBuilder()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 |
Builder |
|
getIdleTimeoutOrBuilder()
public 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 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 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. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(TcpRoute.RouteAction other)
public TcpRoute.RouteAction.Builder mergeFrom(TcpRoute.RouteAction other)| Parameter | |
|---|---|
| Name | Description |
other |
TcpRoute.RouteAction |
| Returns | |
|---|---|
| Type | Description |
TcpRoute.RouteAction.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public TcpRoute.RouteAction.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
TcpRoute.RouteAction.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public TcpRoute.RouteAction.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
TcpRoute.RouteAction.Builder |
|
mergeIdleTimeout(Duration value)
public TcpRoute.RouteAction.Builder mergeIdleTimeout(Duration value)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];
| Parameter | |
|---|---|
| Name | Description |
value |
Duration |
| Returns | |
|---|---|
| Type | Description |
TcpRoute.RouteAction.Builder |
|
removeDestinations(int index)
public TcpRoute.RouteAction.Builder removeDestinations(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.RouteAction.Builder |
|
setDestinations(int index, TcpRoute.RouteDestination value)
public TcpRoute.RouteAction.Builder setDestinations(int index, TcpRoute.RouteDestination value)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];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
TcpRoute.RouteDestination |
| Returns | |
|---|---|
| Type | Description |
TcpRoute.RouteAction.Builder |
|
setDestinations(int index, TcpRoute.RouteDestination.Builder builderForValue)
public TcpRoute.RouteAction.Builder setDestinations(int index, TcpRoute.RouteDestination.Builder builderForValue)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];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
TcpRoute.RouteDestination.Builder |
| Returns | |
|---|---|
| Type | Description |
TcpRoute.RouteAction.Builder |
|
setIdleTimeout(Duration value)
public TcpRoute.RouteAction.Builder setIdleTimeout(Duration value)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];
| Parameter | |
|---|---|
| Name | Description |
value |
Duration |
| Returns | |
|---|---|
| Type | Description |
TcpRoute.RouteAction.Builder |
|
setIdleTimeout(Duration.Builder builderForValue)
public TcpRoute.RouteAction.Builder setIdleTimeout(Duration.Builder builderForValue)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];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
TcpRoute.RouteAction.Builder |
|
setOriginalDestination(boolean value)
public TcpRoute.RouteAction.Builder setOriginalDestination(boolean value)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];
| Parameter | |
|---|---|
| Name | Description |
value |
booleanThe originalDestination to set. |
| Returns | |
|---|---|
| Type | Description |
TcpRoute.RouteAction.Builder |
This builder for chaining. |