Class TcpRoute.RouteAction.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<TcpRoute.RouteAction.Builder>
com.google.cloud.networkservices.v1.TcpRoute.RouteAction.Builder
- All Implemented Interfaces:
TcpRoute.RouteActionOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- TcpRoute.RouteAction
public static final class TcpRoute.RouteAction.Builder
extends com.google.protobuf.GeneratedMessage.Builder<TcpRoute.RouteAction.Builder>
implements TcpRoute.RouteActionOrBuilder
The specifications for routing traffic and applying associated policies.Protobuf type
google.cloud.networkservices.v1.TcpRoute.RouteAction-
Method Summary
Modifier and TypeMethodDescriptionaddAllDestinations(Iterable<? extends TcpRoute.RouteDestination> values) Optional.addDestinations(int index, TcpRoute.RouteDestination value) Optional.addDestinations(int index, TcpRoute.RouteDestination.Builder builderForValue) Optional.Optional.addDestinations(TcpRoute.RouteDestination.Builder builderForValue) Optional.Optional.addDestinationsBuilder(int index) Optional.build()clear()Optional.Optional.Optional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetDestinations(int index) Optional.getDestinationsBuilder(int index) Optional.Optional.intOptional.Optional.getDestinationsOrBuilder(int index) Optional.List<? extends TcpRoute.RouteDestinationOrBuilder>Optional.com.google.protobuf.DurationOptional.com.google.protobuf.Duration.BuilderOptional.com.google.protobuf.DurationOrBuilderOptional.booleanOptional.booleanOptional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(TcpRoute.RouteAction other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeIdleTimeout(com.google.protobuf.Duration value) Optional.removeDestinations(int index) Optional.setDestinations(int index, TcpRoute.RouteDestination value) Optional.setDestinations(int index, TcpRoute.RouteDestination.Builder builderForValue) Optional.setIdleTimeout(com.google.protobuf.Duration value) Optional.setIdleTimeout(com.google.protobuf.Duration.Builder builderForValue) Optional.setOriginalDestination(boolean value) Optional.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<TcpRoute.RouteAction.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<TcpRoute.RouteAction.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<TcpRoute.RouteAction.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<TcpRoute.RouteAction.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<TcpRoute.RouteAction.Builder>
-
mergeFrom
public TcpRoute.RouteAction.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<TcpRoute.RouteAction.Builder>- Throws:
IOException
-
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];- Specified by:
getDestinationsListin interfaceTcpRoute.RouteActionOrBuilder
-
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];- Specified by:
getDestinationsCountin interfaceTcpRoute.RouteActionOrBuilder
-
getDestinations
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];- Specified by:
getDestinationsin interfaceTcpRoute.RouteActionOrBuilder
-
setDestinations
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]; -
setDestinations
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]; -
addDestinations
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]; -
addDestinations
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]; -
addDestinations
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]; -
addDestinations
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]; -
addAllDestinations
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]; -
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]; -
removeDestinations
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]; -
getDestinationsBuilder
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]; -
getDestinationsOrBuilder
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];- Specified by:
getDestinationsOrBuilderin interfaceTcpRoute.RouteActionOrBuilder
-
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];- Specified by:
getDestinationsOrBuilderListin interfaceTcpRoute.RouteActionOrBuilder
-
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]; -
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]; -
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]; -
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];- Specified by:
getOriginalDestinationin interfaceTcpRoute.RouteActionOrBuilder- Returns:
- The originalDestination.
-
setOriginalDestination
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];- Parameters:
value- The originalDestination to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
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];- Specified by:
hasIdleTimeoutin interfaceTcpRoute.RouteActionOrBuilder- Returns:
- Whether the idleTimeout field is set.
-
getIdleTimeout
public com.google.protobuf.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];- Specified by:
getIdleTimeoutin interfaceTcpRoute.RouteActionOrBuilder- Returns:
- The idleTimeout.
-
setIdleTimeout
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]; -
setIdleTimeout
public TcpRoute.RouteAction.Builder setIdleTimeout(com.google.protobuf.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]; -
mergeIdleTimeout
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]; -
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]; -
getIdleTimeoutBuilder
public com.google.protobuf.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]; -
getIdleTimeoutOrBuilder
public com.google.protobuf.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];- Specified by:
getIdleTimeoutOrBuilderin interfaceTcpRoute.RouteActionOrBuilder
-