Class TcpRoute.RouteAction (0.4.0)

public static final class TcpRoute.RouteAction extends GeneratedMessageV3 implements TcpRoute.RouteActionOrBuilder

The specifications for routing traffic and applying associated policies.

Protobuf type google.cloud.networkservices.v1.TcpRoute.RouteAction

Static Fields

DESTINATIONS_FIELD_NUMBER

public static final int DESTINATIONS_FIELD_NUMBER
Field Value
Type Description
int

ORIGINAL_DESTINATION_FIELD_NUMBER

public static final int ORIGINAL_DESTINATION_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static TcpRoute.RouteAction getDefaultInstance()
Returns
Type Description
TcpRoute.RouteAction

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static TcpRoute.RouteAction.Builder newBuilder()
Returns
Type Description
TcpRoute.RouteAction.Builder

newBuilder(TcpRoute.RouteAction prototype)

public static TcpRoute.RouteAction.Builder newBuilder(TcpRoute.RouteAction prototype)
Parameter
Name Description
prototype TcpRoute.RouteAction
Returns
Type Description
TcpRoute.RouteAction.Builder

parseDelimitedFrom(InputStream input)

public static TcpRoute.RouteAction parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
TcpRoute.RouteAction
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static TcpRoute.RouteAction parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TcpRoute.RouteAction
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static TcpRoute.RouteAction parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
TcpRoute.RouteAction
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static TcpRoute.RouteAction parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TcpRoute.RouteAction
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static TcpRoute.RouteAction parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
TcpRoute.RouteAction
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static TcpRoute.RouteAction parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TcpRoute.RouteAction
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static TcpRoute.RouteAction parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
TcpRoute.RouteAction
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static TcpRoute.RouteAction parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TcpRoute.RouteAction
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static TcpRoute.RouteAction parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
TcpRoute.RouteAction
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static TcpRoute.RouteAction parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TcpRoute.RouteAction
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static TcpRoute.RouteAction parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
TcpRoute.RouteAction
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static TcpRoute.RouteAction parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TcpRoute.RouteAction
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<TcpRoute.RouteAction> parser()
Returns
Type Description
Parser<RouteAction>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public TcpRoute.RouteAction getDefaultInstanceForType()
Returns
Type Description
TcpRoute.RouteAction

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

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>

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.

getParserForType()

public Parser<TcpRoute.RouteAction> getParserForType()
Returns
Type Description
Parser<RouteAction>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public TcpRoute.RouteAction.Builder newBuilderForType()
Returns
Type Description
TcpRoute.RouteAction.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected TcpRoute.RouteAction.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
TcpRoute.RouteAction.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public TcpRoute.RouteAction.Builder toBuilder()
Returns
Type Description
TcpRoute.RouteAction.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException