public static final class TcpRoute.RouteAction.Builder extends GeneratedMessageV3.Builder<TcpRoute.RouteAction.Builder> implements TcpRoute.RouteActionOrBuilder
The specifications for routing traffic and applying associated policies.
Protobuf type google.cloud.networkservices.v1.TcpRoute.RouteAction
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
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>
|
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];
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];
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];
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];
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];
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
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public TcpRoute.RouteAction.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public TcpRoute.RouteAction build()
buildPartial()
public TcpRoute.RouteAction buildPartial()
clear()
public TcpRoute.RouteAction.Builder clear()
Overrides
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];
clearField(Descriptors.FieldDescriptor field)
public TcpRoute.RouteAction.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public TcpRoute.RouteAction.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
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];
clone()
public TcpRoute.RouteAction.Builder clone()
Overrides
getDefaultInstanceForType()
public TcpRoute.RouteAction getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
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
|
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
|
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];
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];
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
|
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> |
|
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.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(TcpRoute.RouteAction other)
public TcpRoute.RouteAction.Builder mergeFrom(TcpRoute.RouteAction other)
public TcpRoute.RouteAction.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public TcpRoute.RouteAction.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final TcpRoute.RouteAction.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
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
|
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];
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];
setField(Descriptors.FieldDescriptor field, Object value)
public TcpRoute.RouteAction.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
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 |
boolean
The originalDestination to set.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public TcpRoute.RouteAction.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final TcpRoute.RouteAction.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides