Class TcpRoute.RouteRule (0.15.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.events.cloud.networkservices.v1.TcpRoute.RouteRule

Static Fields

ACTION_FIELD_NUMBER

public static final int ACTION_FIELD_NUMBER
Field Value
TypeDescription
int

MATCHES_FIELD_NUMBER

public static final int MATCHES_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static TcpRoute.RouteRule getDefaultInstance()
Returns
TypeDescription
TcpRoute.RouteRule

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static TcpRoute.RouteRule.Builder newBuilder()
Returns
TypeDescription
TcpRoute.RouteRule.Builder

newBuilder(TcpRoute.RouteRule prototype)

public static TcpRoute.RouteRule.Builder newBuilder(TcpRoute.RouteRule prototype)
Parameter
NameDescription
prototypeTcpRoute.RouteRule
Returns
TypeDescription
TcpRoute.RouteRule.Builder

parseDelimitedFrom(InputStream input)

public static TcpRoute.RouteRule parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
TcpRoute.RouteRule
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static TcpRoute.RouteRule parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TcpRoute.RouteRule
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static TcpRoute.RouteRule parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
TcpRoute.RouteRule
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static TcpRoute.RouteRule parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TcpRoute.RouteRule
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static TcpRoute.RouteRule parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
TcpRoute.RouteRule
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static TcpRoute.RouteRule parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TcpRoute.RouteRule
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static TcpRoute.RouteRule parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
TcpRoute.RouteRule
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static TcpRoute.RouteRule parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TcpRoute.RouteRule
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static TcpRoute.RouteRule parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
TcpRoute.RouteRule
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static TcpRoute.RouteRule parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TcpRoute.RouteRule
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static TcpRoute.RouteRule parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
TcpRoute.RouteRule
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static TcpRoute.RouteRule parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TcpRoute.RouteRule
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

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

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getAction()

public TcpRoute.RouteAction getAction()

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

.google.events.cloud.networkservices.v1.TcpRoute.RouteAction action = 2;

Returns
TypeDescription
TcpRoute.RouteAction

The action.

getActionOrBuilder()

public TcpRoute.RouteActionOrBuilder getActionOrBuilder()

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

.google.events.cloud.networkservices.v1.TcpRoute.RouteAction action = 2;

Returns
TypeDescription
TcpRoute.RouteActionOrBuilder

getDefaultInstanceForType()

public TcpRoute.RouteRule getDefaultInstanceForType()
Returns
TypeDescription
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.events.cloud.networkservices.v1.TcpRoute.RouteMatch matches = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
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.events.cloud.networkservices.v1.TcpRoute.RouteMatch matches = 1;

Returns
TypeDescription
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.events.cloud.networkservices.v1.TcpRoute.RouteMatch matches = 1;

Returns
TypeDescription
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.events.cloud.networkservices.v1.TcpRoute.RouteMatch matches = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
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.events.cloud.networkservices.v1.TcpRoute.RouteMatch matches = 1;

Returns
TypeDescription
List<? extends com.google.events.cloud.networkservices.v1.TcpRoute.RouteMatchOrBuilder>

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hasAction()

public boolean hasAction()

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

.google.events.cloud.networkservices.v1.TcpRoute.RouteAction action = 2;

Returns
TypeDescription
boolean

Whether the action field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public TcpRoute.RouteRule.Builder newBuilderForType()
Returns
TypeDescription
TcpRoute.RouteRule.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected TcpRoute.RouteRule.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
TcpRoute.RouteRule.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public TcpRoute.RouteRule.Builder toBuilder()
Returns
TypeDescription
TcpRoute.RouteRule.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException