public static interface GrpcRoute.RouteRuleOrBuilder extends MessageOrBuilder
Implements
MessageOrBuilderMethods
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 | |
---|---|
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.events.cloud.networkservices.v1.GrpcRoute.RouteAction action = 2;
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.events.cloud.networkservices.v1.GrpcRoute.RouteMatch matches = 1;
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.events.cloud.networkservices.v1.GrpcRoute.RouteMatch matches = 1;
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.events.cloud.networkservices.v1.GrpcRoute.RouteMatch matches = 1;
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.events.cloud.networkservices.v1.GrpcRoute.RouteMatch matches = 1;
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.events.cloud.networkservices.v1.GrpcRoute.RouteMatch matches = 1;
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
boolean |
Whether the action field is set. |