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

Returns
Type Description
GrpcRoute.RouteAction

The action.

getActionOrBuilder()

public abstract GrpcRoute.RouteActionOrBuilder getActionOrBuilder()

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

.google.cloud.networkservices.v1.GrpcRoute.RouteAction action = 2 [(.google.api.field_behavior) = REQUIRED];

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

Parameter
Name Description
index int
Returns
Type Description
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.cloud.networkservices.v1.GrpcRoute.RouteMatch matches = 1 [(.google.api.field_behavior) = OPTIONAL];

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

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

Parameter
Name Description
index int
Returns
Type Description
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.cloud.networkservices.v1.GrpcRoute.RouteMatch matches = 1 [(.google.api.field_behavior) = OPTIONAL];

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

hasAction()

public abstract boolean hasAction()

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

.google.cloud.networkservices.v1.GrpcRoute.RouteAction action = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the action field is set.