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.events.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.events.cloud.networkservices.v1.TcpRoute.RouteDestination destinations = 1;
Parameter |
Name |
Description |
values |
Iterable<? extends com.google.events.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.events.cloud.networkservices.v1.TcpRoute.RouteDestination destinations = 1;
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.events.cloud.networkservices.v1.TcpRoute.RouteDestination destinations = 1;
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.events.cloud.networkservices.v1.TcpRoute.RouteDestination destinations = 1;
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.events.cloud.networkservices.v1.TcpRoute.RouteDestination destinations = 1;
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.events.cloud.networkservices.v1.TcpRoute.RouteDestination destinations = 1;
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.events.cloud.networkservices.v1.TcpRoute.RouteDestination destinations = 1;
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.events.cloud.networkservices.v1.TcpRoute.RouteDestination destinations = 1;
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;
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.events.cloud.networkservices.v1.TcpRoute.RouteDestination destinations = 1;
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.events.cloud.networkservices.v1.TcpRoute.RouteDestination destinations = 1;
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.events.cloud.networkservices.v1.TcpRoute.RouteDestination destinations = 1;
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.events.cloud.networkservices.v1.TcpRoute.RouteDestination destinations = 1;
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.events.cloud.networkservices.v1.TcpRoute.RouteDestination destinations = 1;
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.events.cloud.networkservices.v1.TcpRoute.RouteDestination destinations = 1;
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.events.cloud.networkservices.v1.TcpRoute.RouteDestination destinations = 1;
Returns |
Type |
Description |
List<? extends com.google.events.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;
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.events.cloud.networkservices.v1.TcpRoute.RouteDestination destinations = 1;
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.events.cloud.networkservices.v1.TcpRoute.RouteDestination destinations = 1;
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.events.cloud.networkservices.v1.TcpRoute.RouteDestination destinations = 1;
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;
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