Interface HttpRoute.RouteRuleOrBuilder (0.7.0)

public static interface HttpRoute.RouteRuleOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getAction()

public abstract HttpRoute.RouteAction getAction()

The detailed rule defining how to route matched traffic.

.google.cloud.networkservices.v1.HttpRoute.RouteAction action = 2;

Returns
Type Description
HttpRoute.RouteAction

The action.

getActionOrBuilder()

public abstract HttpRoute.RouteActionOrBuilder getActionOrBuilder()

The detailed rule defining how to route matched traffic.

.google.cloud.networkservices.v1.HttpRoute.RouteAction action = 2;

Returns
Type Description
HttpRoute.RouteActionOrBuilder

getMatches(int index)

public abstract HttpRoute.RouteMatch getMatches(int index)

A list of matches define conditions used for matching the rule against incoming HTTP requests. Each match is independent, i.e. this rule will be matched if ANY one of the matches is satisfied.

If no matches field is specified, this rule will unconditionally match traffic.

If a default rule is desired to be configured, add a rule with no matches specified to the end of the rules list.

repeated .google.cloud.networkservices.v1.HttpRoute.RouteMatch matches = 1;

Parameter
Name Description
index int
Returns
Type Description
HttpRoute.RouteMatch

getMatchesCount()

public abstract int getMatchesCount()

A list of matches define conditions used for matching the rule against incoming HTTP requests. Each match is independent, i.e. this rule will be matched if ANY one of the matches is satisfied.

If no matches field is specified, this rule will unconditionally match traffic.

If a default rule is desired to be configured, add a rule with no matches specified to the end of the rules list.

repeated .google.cloud.networkservices.v1.HttpRoute.RouteMatch matches = 1;

Returns
Type Description
int

getMatchesList()

public abstract List<HttpRoute.RouteMatch> getMatchesList()

A list of matches define conditions used for matching the rule against incoming HTTP requests. Each match is independent, i.e. this rule will be matched if ANY one of the matches is satisfied.

If no matches field is specified, this rule will unconditionally match traffic.

If a default rule is desired to be configured, add a rule with no matches specified to the end of the rules list.

repeated .google.cloud.networkservices.v1.HttpRoute.RouteMatch matches = 1;

Returns
Type Description
List<RouteMatch>

getMatchesOrBuilder(int index)

public abstract HttpRoute.RouteMatchOrBuilder getMatchesOrBuilder(int index)

A list of matches define conditions used for matching the rule against incoming HTTP requests. Each match is independent, i.e. this rule will be matched if ANY one of the matches is satisfied.

If no matches field is specified, this rule will unconditionally match traffic.

If a default rule is desired to be configured, add a rule with no matches specified to the end of the rules list.

repeated .google.cloud.networkservices.v1.HttpRoute.RouteMatch matches = 1;

Parameter
Name Description
index int
Returns
Type Description
HttpRoute.RouteMatchOrBuilder

getMatchesOrBuilderList()

public abstract List<? extends HttpRoute.RouteMatchOrBuilder> getMatchesOrBuilderList()

A list of matches define conditions used for matching the rule against incoming HTTP requests. Each match is independent, i.e. this rule will be matched if ANY one of the matches is satisfied.

If no matches field is specified, this rule will unconditionally match traffic.

If a default rule is desired to be configured, add a rule with no matches specified to the end of the rules list.

repeated .google.cloud.networkservices.v1.HttpRoute.RouteMatch matches = 1;

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

hasAction()

public abstract boolean hasAction()

The detailed rule defining how to route matched traffic.

.google.cloud.networkservices.v1.HttpRoute.RouteAction action = 2;

Returns
Type Description
boolean

Whether the action field is set.