Class TcpRoute.RouteRule (0.1.0)

public static final class TcpRoute.RouteRule extends GeneratedMessageV3 implements TcpRoute.RouteRuleOrBuilder

Specifies how to match traffic and how to route traffic when traffic is matched.

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

Static Fields

ACTION_FIELD_NUMBER

public static final int ACTION_FIELD_NUMBER
Field Value
Type Description
int

MATCHES_FIELD_NUMBER

public static final int MATCHES_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

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

getDescriptor()

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

newBuilder()

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

newBuilder(TcpRoute.RouteRule prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getAction()

public TcpRoute.RouteAction getAction()

Required. The detailed rule defining how to route matched traffic.

.google.cloud.networkservices.v1.TcpRoute.RouteAction action = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
TcpRoute.RouteAction

The action.

getActionOrBuilder()

public TcpRoute.RouteActionOrBuilder getActionOrBuilder()

Required. The detailed rule defining how to route matched traffic.

.google.cloud.networkservices.v1.TcpRoute.RouteAction action = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
TcpRoute.RouteActionOrBuilder

getDefaultInstanceForType()

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

getMatches(int index)

public TcpRoute.RouteMatch getMatches(int index)

Optional. RouteMatch defines the predicate used to match requests to a given action. Multiple match types are "OR"ed for evaluation. If no routeMatch field is specified, this rule will unconditionally match traffic.

repeated .google.cloud.networkservices.v1.TcpRoute.RouteMatch matches = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
TcpRoute.RouteMatch

getMatchesCount()

public int getMatchesCount()

Optional. RouteMatch defines the predicate used to match requests to a given action. Multiple match types are "OR"ed for evaluation. If no routeMatch field is specified, this rule will unconditionally match traffic.

repeated .google.cloud.networkservices.v1.TcpRoute.RouteMatch matches = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getMatchesList()

public List<TcpRoute.RouteMatch> getMatchesList()

Optional. RouteMatch defines the predicate used to match requests to a given action. Multiple match types are "OR"ed for evaluation. If no routeMatch field is specified, this rule will unconditionally match traffic.

repeated .google.cloud.networkservices.v1.TcpRoute.RouteMatch matches = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<RouteMatch>

getMatchesOrBuilder(int index)

public TcpRoute.RouteMatchOrBuilder getMatchesOrBuilder(int index)

Optional. RouteMatch defines the predicate used to match requests to a given action. Multiple match types are "OR"ed for evaluation. If no routeMatch field is specified, this rule will unconditionally match traffic.

repeated .google.cloud.networkservices.v1.TcpRoute.RouteMatch matches = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
TcpRoute.RouteMatchOrBuilder

getMatchesOrBuilderList()

public List<? extends TcpRoute.RouteMatchOrBuilder> getMatchesOrBuilderList()

Optional. RouteMatch defines the predicate used to match requests to a given action. Multiple match types are "OR"ed for evaluation. If no routeMatch field is specified, this rule will unconditionally match traffic.

repeated .google.cloud.networkservices.v1.TcpRoute.RouteMatch matches = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<? extends com.google.cloud.networkservices.v1.TcpRoute.RouteMatchOrBuilder>

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasAction()

public boolean hasAction()

Required. The detailed rule defining how to route matched traffic.

.google.cloud.networkservices.v1.TcpRoute.RouteAction action = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the action field is set.

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.RouteRule.Builder newBuilderForType()
Returns
Type Description
TcpRoute.RouteRule.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected TcpRoute.RouteRule.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
TcpRoute.RouteRule.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.RouteRule.Builder toBuilder()
Returns
Type Description
TcpRoute.RouteRule.Builder

writeTo(CodedOutputStream output)

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