Interface GrpcRoute.RouteRuleOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
GrpcRoute.RouteRule, GrpcRoute.RouteRule.Builder
Enclosing class:
GrpcRoute

public static interface GrpcRoute.RouteRuleOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Details

    • getMatchesList

      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];
    • getMatches

      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];
    • getMatchesCount

      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];
    • getMatchesOrBuilderList

      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];
    • getMatchesOrBuilder

      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];
    • hasAction

      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:
      Whether the action field is set.
    • 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:
      The action.
    • getActionOrBuilder

      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];