public static final class TlsRoute.RouteAction.Builder extends GeneratedMessage.Builder<TlsRoute.RouteAction.Builder> implements TlsRoute.RouteActionOrBuilderThe specifications for routing traffic and applying associated policies.
Protobuf type google.cloud.networkservices.v1.TlsRoute.RouteAction
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > TlsRoute.RouteAction.BuilderImplements
TlsRoute.RouteActionOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addAllDestinations(Iterable<? extends TlsRoute.RouteDestination> values)
public TlsRoute.RouteAction.Builder addAllDestinations(Iterable<? extends TlsRoute.RouteDestination> values)Required. The destination services to which traffic should be forwarded. At least one destination service is required.
repeated .google.cloud.networkservices.v1.TlsRoute.RouteDestination destinations = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<? extends com.google.cloud.networkservices.v1.TlsRoute.RouteDestination> |
| Returns | |
|---|---|
| Type | Description |
TlsRoute.RouteAction.Builder |
|
addDestinations(TlsRoute.RouteDestination value)
public TlsRoute.RouteAction.Builder addDestinations(TlsRoute.RouteDestination value)Required. The destination services to which traffic should be forwarded. At least one destination service is required.
repeated .google.cloud.networkservices.v1.TlsRoute.RouteDestination destinations = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
TlsRoute.RouteDestination |
| Returns | |
|---|---|
| Type | Description |
TlsRoute.RouteAction.Builder |
|
addDestinations(TlsRoute.RouteDestination.Builder builderForValue)
public TlsRoute.RouteAction.Builder addDestinations(TlsRoute.RouteDestination.Builder builderForValue)Required. The destination services to which traffic should be forwarded. At least one destination service is required.
repeated .google.cloud.networkservices.v1.TlsRoute.RouteDestination destinations = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
TlsRoute.RouteDestination.Builder |
| Returns | |
|---|---|
| Type | Description |
TlsRoute.RouteAction.Builder |
|
addDestinations(int index, TlsRoute.RouteDestination value)
public TlsRoute.RouteAction.Builder addDestinations(int index, TlsRoute.RouteDestination value)Required. The destination services to which traffic should be forwarded. At least one destination service is required.
repeated .google.cloud.networkservices.v1.TlsRoute.RouteDestination destinations = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
TlsRoute.RouteDestination |
| Returns | |
|---|---|
| Type | Description |
TlsRoute.RouteAction.Builder |
|
addDestinations(int index, TlsRoute.RouteDestination.Builder builderForValue)
public TlsRoute.RouteAction.Builder addDestinations(int index, TlsRoute.RouteDestination.Builder builderForValue)Required. The destination services to which traffic should be forwarded. At least one destination service is required.
repeated .google.cloud.networkservices.v1.TlsRoute.RouteDestination destinations = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
TlsRoute.RouteDestination.Builder |
| Returns | |
|---|---|
| Type | Description |
TlsRoute.RouteAction.Builder |
|
addDestinationsBuilder()
public TlsRoute.RouteDestination.Builder addDestinationsBuilder()Required. The destination services to which traffic should be forwarded. At least one destination service is required.
repeated .google.cloud.networkservices.v1.TlsRoute.RouteDestination destinations = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
TlsRoute.RouteDestination.Builder |
|
addDestinationsBuilder(int index)
public TlsRoute.RouteDestination.Builder addDestinationsBuilder(int index)Required. The destination services to which traffic should be forwarded. At least one destination service is required.
repeated .google.cloud.networkservices.v1.TlsRoute.RouteDestination destinations = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
TlsRoute.RouteDestination.Builder |
|
build()
public TlsRoute.RouteAction build()| Returns | |
|---|---|
| Type | Description |
TlsRoute.RouteAction |
|
buildPartial()
public TlsRoute.RouteAction buildPartial()| Returns | |
|---|---|
| Type | Description |
TlsRoute.RouteAction |
|
clear()
public TlsRoute.RouteAction.Builder clear()| Returns | |
|---|---|
| Type | Description |
TlsRoute.RouteAction.Builder |
|
clearDestinations()
public TlsRoute.RouteAction.Builder clearDestinations()Required. The destination services to which traffic should be forwarded. At least one destination service is required.
repeated .google.cloud.networkservices.v1.TlsRoute.RouteDestination destinations = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
TlsRoute.RouteAction.Builder |
|
clearIdleTimeout()
public TlsRoute.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 1 hour. If set to 0s, the timeout will be disabled.
.google.protobuf.Duration idle_timeout = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
TlsRoute.RouteAction.Builder |
|
getDefaultInstanceForType()
public TlsRoute.RouteAction getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
TlsRoute.RouteAction |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getDestinations(int index)
public TlsRoute.RouteDestination getDestinations(int index)Required. The destination services to which traffic should be forwarded. At least one destination service is required.
repeated .google.cloud.networkservices.v1.TlsRoute.RouteDestination destinations = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
TlsRoute.RouteDestination |
|
getDestinationsBuilder(int index)
public TlsRoute.RouteDestination.Builder getDestinationsBuilder(int index)Required. The destination services to which traffic should be forwarded. At least one destination service is required.
repeated .google.cloud.networkservices.v1.TlsRoute.RouteDestination destinations = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
TlsRoute.RouteDestination.Builder |
|
getDestinationsBuilderList()
public List<TlsRoute.RouteDestination.Builder> getDestinationsBuilderList()Required. The destination services to which traffic should be forwarded. At least one destination service is required.
repeated .google.cloud.networkservices.v1.TlsRoute.RouteDestination destinations = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
List<Builder> |
|
getDestinationsCount()
public int getDestinationsCount()Required. The destination services to which traffic should be forwarded. At least one destination service is required.
repeated .google.cloud.networkservices.v1.TlsRoute.RouteDestination destinations = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
int |
|
getDestinationsList()
public List<TlsRoute.RouteDestination> getDestinationsList()Required. The destination services to which traffic should be forwarded. At least one destination service is required.
repeated .google.cloud.networkservices.v1.TlsRoute.RouteDestination destinations = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
List<RouteDestination> |
|
getDestinationsOrBuilder(int index)
public TlsRoute.RouteDestinationOrBuilder getDestinationsOrBuilder(int index)Required. The destination services to which traffic should be forwarded. At least one destination service is required.
repeated .google.cloud.networkservices.v1.TlsRoute.RouteDestination destinations = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
TlsRoute.RouteDestinationOrBuilder |
|
getDestinationsOrBuilderList()
public List<? extends TlsRoute.RouteDestinationOrBuilder> getDestinationsOrBuilderList()Required. The destination services to which traffic should be forwarded. At least one destination service is required.
repeated .google.cloud.networkservices.v1.TlsRoute.RouteDestination destinations = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
List<? extends com.google.cloud.networkservices.v1.TlsRoute.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 1 hour. If set to 0s, the timeout will be disabled.
.google.protobuf.Duration idle_timeout = 4 [(.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 1 hour. If set to 0s, the timeout will be disabled.
.google.protobuf.Duration idle_timeout = 4 [(.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 1 hour. If set to 0s, the timeout will be disabled.
.google.protobuf.Duration idle_timeout = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
DurationOrBuilder |
|
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 1 hour. If set to 0s, the timeout will be disabled.
.google.protobuf.Duration idle_timeout = 4 [(.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(TlsRoute.RouteAction other)
public TlsRoute.RouteAction.Builder mergeFrom(TlsRoute.RouteAction other)| Parameter | |
|---|---|
| Name | Description |
other |
TlsRoute.RouteAction |
| Returns | |
|---|---|
| Type | Description |
TlsRoute.RouteAction.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public TlsRoute.RouteAction.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
TlsRoute.RouteAction.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public TlsRoute.RouteAction.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
TlsRoute.RouteAction.Builder |
|
mergeIdleTimeout(Duration value)
public TlsRoute.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 1 hour. If set to 0s, the timeout will be disabled.
.google.protobuf.Duration idle_timeout = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
Duration |
| Returns | |
|---|---|
| Type | Description |
TlsRoute.RouteAction.Builder |
|
removeDestinations(int index)
public TlsRoute.RouteAction.Builder removeDestinations(int index)Required. The destination services to which traffic should be forwarded. At least one destination service is required.
repeated .google.cloud.networkservices.v1.TlsRoute.RouteDestination destinations = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
TlsRoute.RouteAction.Builder |
|
setDestinations(int index, TlsRoute.RouteDestination value)
public TlsRoute.RouteAction.Builder setDestinations(int index, TlsRoute.RouteDestination value)Required. The destination services to which traffic should be forwarded. At least one destination service is required.
repeated .google.cloud.networkservices.v1.TlsRoute.RouteDestination destinations = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
TlsRoute.RouteDestination |
| Returns | |
|---|---|
| Type | Description |
TlsRoute.RouteAction.Builder |
|
setDestinations(int index, TlsRoute.RouteDestination.Builder builderForValue)
public TlsRoute.RouteAction.Builder setDestinations(int index, TlsRoute.RouteDestination.Builder builderForValue)Required. The destination services to which traffic should be forwarded. At least one destination service is required.
repeated .google.cloud.networkservices.v1.TlsRoute.RouteDestination destinations = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
TlsRoute.RouteDestination.Builder |
| Returns | |
|---|---|
| Type | Description |
TlsRoute.RouteAction.Builder |
|
setIdleTimeout(Duration value)
public TlsRoute.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 1 hour. If set to 0s, the timeout will be disabled.
.google.protobuf.Duration idle_timeout = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
Duration |
| Returns | |
|---|---|
| Type | Description |
TlsRoute.RouteAction.Builder |
|
setIdleTimeout(Duration.Builder builderForValue)
public TlsRoute.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 1 hour. If set to 0s, the timeout will be disabled.
.google.protobuf.Duration idle_timeout = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
TlsRoute.RouteAction.Builder |
|