Interface GrpcRoute.RouteRuleOrBuilder (0.15.0)

public static interface GrpcRoute.RouteRuleOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getAction()

public abstract GrpcRoute.RouteAction getAction()

Required. A detailed rule defining how to route traffic. This field is required.

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

Returns
TypeDescription
GrpcRoute.RouteAction

The action.

getActionOrBuilder()

public abstract GrpcRoute.RouteActionOrBuilder getActionOrBuilder()

Required. A detailed rule defining how to route traffic. This field is required.

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

Returns
TypeDescription
GrpcRoute.RouteActionOrBuilder

getMatches(int index)

public abstract GrpcRoute.RouteMatch getMatches(int index)

Optional. Matches define conditions used for matching the rule against incoming gRPC 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.

repeated .google.events.cloud.networkservices.v1.GrpcRoute.RouteMatch matches = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
GrpcRoute.RouteMatch

getMatchesCount()

public abstract int getMatchesCount()

Optional. Matches define conditions used for matching the rule against incoming gRPC 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.

repeated .google.events.cloud.networkservices.v1.GrpcRoute.RouteMatch matches = 1;

Returns
TypeDescription
int

getMatchesList()

public abstract List<GrpcRoute.RouteMatch> getMatchesList()

Optional. Matches define conditions used for matching the rule against incoming gRPC 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.

repeated .google.events.cloud.networkservices.v1.GrpcRoute.RouteMatch matches = 1;

Returns
TypeDescription
List<RouteMatch>

getMatchesOrBuilder(int index)

public abstract GrpcRoute.RouteMatchOrBuilder getMatchesOrBuilder(int index)

Optional. Matches define conditions used for matching the rule against incoming gRPC 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.

repeated .google.events.cloud.networkservices.v1.GrpcRoute.RouteMatch matches = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
GrpcRoute.RouteMatchOrBuilder

getMatchesOrBuilderList()

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

Optional. Matches define conditions used for matching the rule against incoming gRPC 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.

repeated .google.events.cloud.networkservices.v1.GrpcRoute.RouteMatch matches = 1;

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

hasAction()

public abstract boolean hasAction()

Required. A detailed rule defining how to route traffic. This field is required.

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

Returns
TypeDescription
boolean

Whether the action field is set.