Class TcpRoute.RouteRule.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<TcpRoute.RouteRule.Builder>
com.google.cloud.networkservices.v1.TcpRoute.RouteRule.Builder
All Implemented Interfaces:
TcpRoute.RouteRuleOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
TcpRoute.RouteRule

public static final class TcpRoute.RouteRule.Builder extends com.google.protobuf.GeneratedMessage.Builder<TcpRoute.RouteRule.Builder> implements TcpRoute.RouteRuleOrBuilder
 Specifies how to match traffic and how to route traffic when traffic is
 matched.
 
Protobuf type google.cloud.networkservices.v1.TcpRoute.RouteRule
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<TcpRoute.RouteRule.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<TcpRoute.RouteRule.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<TcpRoute.RouteRule.Builder>
    • getDefaultInstanceForType

      public TcpRoute.RouteRule getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public TcpRoute.RouteRule build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public TcpRoute.RouteRule buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public TcpRoute.RouteRule.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<TcpRoute.RouteRule.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<TcpRoute.RouteRule.Builder>
    • mergeFrom

      public TcpRoute.RouteRule.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<TcpRoute.RouteRule.Builder>
      Throws:
      IOException
    • getMatchesList

      public 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];
      Specified by:
      getMatchesList in interface TcpRoute.RouteRuleOrBuilder
    • getMatchesCount

      public 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];
      Specified by:
      getMatchesCount in interface TcpRoute.RouteRuleOrBuilder
    • getMatches

      public 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];
      Specified by:
      getMatches in interface TcpRoute.RouteRuleOrBuilder
    • setMatches

      public TcpRoute.RouteRule.Builder setMatches(int index, TcpRoute.RouteMatch value)
       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];
    • setMatches

      public TcpRoute.RouteRule.Builder setMatches(int index, TcpRoute.RouteMatch.Builder builderForValue)
       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];
    • addMatches

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

      public TcpRoute.RouteRule.Builder addMatches(int index, TcpRoute.RouteMatch value)
       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];
    • addMatches

      public TcpRoute.RouteRule.Builder addMatches(TcpRoute.RouteMatch.Builder builderForValue)
       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];
    • addMatches

      public TcpRoute.RouteRule.Builder addMatches(int index, TcpRoute.RouteMatch.Builder builderForValue)
       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];
    • addAllMatches

      public TcpRoute.RouteRule.Builder addAllMatches(Iterable<? extends TcpRoute.RouteMatch> values)
       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];
    • clearMatches

      public TcpRoute.RouteRule.Builder clearMatches()
       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];
    • removeMatches

      public TcpRoute.RouteRule.Builder removeMatches(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];
    • getMatchesBuilder

      public TcpRoute.RouteMatch.Builder getMatchesBuilder(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];
    • getMatchesOrBuilder

      public 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];
      Specified by:
      getMatchesOrBuilder in interface TcpRoute.RouteRuleOrBuilder
    • getMatchesOrBuilderList

      public 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];
      Specified by:
      getMatchesOrBuilderList in interface TcpRoute.RouteRuleOrBuilder
    • addMatchesBuilder

      public TcpRoute.RouteMatch.Builder addMatchesBuilder()
       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];
    • addMatchesBuilder

      public TcpRoute.RouteMatch.Builder addMatchesBuilder(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];
    • getMatchesBuilderList

      public List<TcpRoute.RouteMatch.Builder> getMatchesBuilderList()
       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

      public 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];
      Specified by:
      hasAction in interface TcpRoute.RouteRuleOrBuilder
      Returns:
      Whether the action field is set.
    • getAction

      public TcpRoute.RouteAction getAction()
       Required. The detailed rule defining how to route matched traffic.
       
      .google.cloud.networkservices.v1.TcpRoute.RouteAction action = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getAction in interface TcpRoute.RouteRuleOrBuilder
      Returns:
      The action.
    • setAction

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

      public TcpRoute.RouteRule.Builder setAction(TcpRoute.RouteAction.Builder builderForValue)
       Required. The detailed rule defining how to route matched traffic.
       
      .google.cloud.networkservices.v1.TcpRoute.RouteAction action = 2 [(.google.api.field_behavior) = REQUIRED];
    • mergeAction

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

      public TcpRoute.RouteRule.Builder clearAction()
       Required. The detailed rule defining how to route matched traffic.
       
      .google.cloud.networkservices.v1.TcpRoute.RouteAction action = 2 [(.google.api.field_behavior) = REQUIRED];
    • getActionBuilder

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

      public 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];
      Specified by:
      getActionOrBuilder in interface TcpRoute.RouteRuleOrBuilder