Interface TcpRoute.RouteRuleOrBuilder (0.15.0)

public static interface TcpRoute.RouteRuleOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getAction()

public abstract TcpRoute.RouteAction getAction()

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

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

Returns
Type Description
TcpRoute.RouteAction

The action.

getActionOrBuilder()

public abstract TcpRoute.RouteActionOrBuilder getActionOrBuilder()

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

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

Returns
Type Description
TcpRoute.RouteActionOrBuilder

getMatches(int index)

public abstract 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
Name Description
index int
Returns
Type Description
TcpRoute.RouteMatch

getMatchesCount()

public abstract 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
Type Description
int

getMatchesList()

public abstract 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
Type Description
List<RouteMatch>

getMatchesOrBuilder(int index)

public abstract 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
Name Description
index int
Returns
Type Description
TcpRoute.RouteMatchOrBuilder

getMatchesOrBuilderList()

public abstract 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
Type Description
List<? extends com.google.events.cloud.networkservices.v1.TcpRoute.RouteMatchOrBuilder>

hasAction()

public abstract boolean hasAction()

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

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

Returns
Type Description
boolean

Whether the action field is set.