Interface TcpRoute.RouteRuleOrBuilder

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

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

    • getMatchesList

      List<TcpRoute.RouteMatch> getMatchesList()
       Optional. RouteMatch defines the predicate used to match requests to a
       given action. Multiple match types are "OR"ed for evaluation. If no
       routeMatch field is specified, this rule will unconditionally match
       traffic.
       
      repeated .google.cloud.networkservices.v1.TcpRoute.RouteMatch matches = 1 [(.google.api.field_behavior) = OPTIONAL];
    • getMatches

      TcpRoute.RouteMatch getMatches(int index)
       Optional. RouteMatch defines the predicate used to match requests to a
       given action. Multiple match types are "OR"ed for evaluation. If no
       routeMatch field is specified, this rule will unconditionally match
       traffic.
       
      repeated .google.cloud.networkservices.v1.TcpRoute.RouteMatch matches = 1 [(.google.api.field_behavior) = OPTIONAL];
    • getMatchesCount

      int getMatchesCount()
       Optional. RouteMatch defines the predicate used to match requests to a
       given action. Multiple match types are "OR"ed for evaluation. If no
       routeMatch field is specified, this rule will unconditionally match
       traffic.
       
      repeated .google.cloud.networkservices.v1.TcpRoute.RouteMatch matches = 1 [(.google.api.field_behavior) = OPTIONAL];
    • getMatchesOrBuilderList

      List<? extends TcpRoute.RouteMatchOrBuilder> getMatchesOrBuilderList()
       Optional. RouteMatch defines the predicate used to match requests to a
       given action. Multiple match types are "OR"ed for evaluation. If no
       routeMatch field is specified, this rule will unconditionally match
       traffic.
       
      repeated .google.cloud.networkservices.v1.TcpRoute.RouteMatch matches = 1 [(.google.api.field_behavior) = OPTIONAL];
    • getMatchesOrBuilder

      TcpRoute.RouteMatchOrBuilder getMatchesOrBuilder(int index)
       Optional. RouteMatch defines the predicate used to match requests to a
       given action. Multiple match types are "OR"ed for evaluation. If no
       routeMatch field is specified, this rule will unconditionally match
       traffic.
       
      repeated .google.cloud.networkservices.v1.TcpRoute.RouteMatch matches = 1 [(.google.api.field_behavior) = OPTIONAL];
    • hasAction

      boolean hasAction()
       Required. The detailed rule defining how to route matched traffic.
       
      .google.cloud.networkservices.v1.TcpRoute.RouteAction action = 2 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      Whether the action field is set.
    • getAction

       Required. The detailed rule defining how to route matched traffic.
       
      .google.cloud.networkservices.v1.TcpRoute.RouteAction action = 2 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      The action.
    • getActionOrBuilder

      TcpRoute.RouteActionOrBuilder getActionOrBuilder()
       Required. The detailed rule defining how to route matched traffic.
       
      .google.cloud.networkservices.v1.TcpRoute.RouteAction action = 2 [(.google.api.field_behavior) = REQUIRED];