Interface TcpRoute.RouteRuleOrBuilder (0.8.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.cloud.networkservices.v1.TcpRoute.RouteAction action = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
TcpRoute.RouteAction

The action.

getActionOrBuilder()

public abstract 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

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.cloud.networkservices.v1.TcpRoute.RouteMatch matches = 1 [(.google.api.field_behavior) = OPTIONAL];

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.cloud.networkservices.v1.TcpRoute.RouteMatch matches = 1 [(.google.api.field_behavior) = OPTIONAL];

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.cloud.networkservices.v1.TcpRoute.RouteMatch matches = 1 [(.google.api.field_behavior) = OPTIONAL];

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.cloud.networkservices.v1.TcpRoute.RouteMatch matches = 1 [(.google.api.field_behavior) = OPTIONAL];

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.cloud.networkservices.v1.TcpRoute.RouteMatch matches = 1 [(.google.api.field_behavior) = OPTIONAL];

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

hasAction()

public abstract 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.