Class TlsRoute.RouteRule.Builder

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

public static final class TlsRoute.RouteRule.Builder extends com.google.protobuf.GeneratedMessage.Builder<TlsRoute.RouteRule.Builder> implements TlsRoute.RouteRuleOrBuilder
 Specifies how to match traffic and how to route traffic when traffic is
 matched.
 
Protobuf type google.cloud.networkservices.v1.TlsRoute.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<TlsRoute.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<TlsRoute.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<TlsRoute.RouteRule.Builder>
    • getDefaultInstanceForType

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

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

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

      public TlsRoute.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<TlsRoute.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<TlsRoute.RouteRule.Builder>
    • mergeFrom

      public TlsRoute.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<TlsRoute.RouteRule.Builder>
      Throws:
      IOException
    • getMatchesList

      public List<TlsRoute.RouteMatch> getMatchesList()
       Required. RouteMatch defines the predicate used to match requests to a
       given action. Multiple match types are "OR"ed for evaluation. Atleast one
       RouteMatch must be supplied.
       
      repeated .google.cloud.networkservices.v1.TlsRoute.RouteMatch matches = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getMatchesList in interface TlsRoute.RouteRuleOrBuilder
    • getMatchesCount

      public int getMatchesCount()
       Required. RouteMatch defines the predicate used to match requests to a
       given action. Multiple match types are "OR"ed for evaluation. Atleast one
       RouteMatch must be supplied.
       
      repeated .google.cloud.networkservices.v1.TlsRoute.RouteMatch matches = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getMatchesCount in interface TlsRoute.RouteRuleOrBuilder
    • getMatches

      public TlsRoute.RouteMatch getMatches(int index)
       Required. RouteMatch defines the predicate used to match requests to a
       given action. Multiple match types are "OR"ed for evaluation. Atleast one
       RouteMatch must be supplied.
       
      repeated .google.cloud.networkservices.v1.TlsRoute.RouteMatch matches = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getMatches in interface TlsRoute.RouteRuleOrBuilder
    • setMatches

      public TlsRoute.RouteRule.Builder setMatches(int index, TlsRoute.RouteMatch value)
       Required. RouteMatch defines the predicate used to match requests to a
       given action. Multiple match types are "OR"ed for evaluation. Atleast one
       RouteMatch must be supplied.
       
      repeated .google.cloud.networkservices.v1.TlsRoute.RouteMatch matches = 1 [(.google.api.field_behavior) = REQUIRED];
    • setMatches

      public TlsRoute.RouteRule.Builder setMatches(int index, TlsRoute.RouteMatch.Builder builderForValue)
       Required. RouteMatch defines the predicate used to match requests to a
       given action. Multiple match types are "OR"ed for evaluation. Atleast one
       RouteMatch must be supplied.
       
      repeated .google.cloud.networkservices.v1.TlsRoute.RouteMatch matches = 1 [(.google.api.field_behavior) = REQUIRED];
    • addMatches

       Required. RouteMatch defines the predicate used to match requests to a
       given action. Multiple match types are "OR"ed for evaluation. Atleast one
       RouteMatch must be supplied.
       
      repeated .google.cloud.networkservices.v1.TlsRoute.RouteMatch matches = 1 [(.google.api.field_behavior) = REQUIRED];
    • addMatches

      public TlsRoute.RouteRule.Builder addMatches(int index, TlsRoute.RouteMatch value)
       Required. RouteMatch defines the predicate used to match requests to a
       given action. Multiple match types are "OR"ed for evaluation. Atleast one
       RouteMatch must be supplied.
       
      repeated .google.cloud.networkservices.v1.TlsRoute.RouteMatch matches = 1 [(.google.api.field_behavior) = REQUIRED];
    • addMatches

      public TlsRoute.RouteRule.Builder addMatches(TlsRoute.RouteMatch.Builder builderForValue)
       Required. RouteMatch defines the predicate used to match requests to a
       given action. Multiple match types are "OR"ed for evaluation. Atleast one
       RouteMatch must be supplied.
       
      repeated .google.cloud.networkservices.v1.TlsRoute.RouteMatch matches = 1 [(.google.api.field_behavior) = REQUIRED];
    • addMatches

      public TlsRoute.RouteRule.Builder addMatches(int index, TlsRoute.RouteMatch.Builder builderForValue)
       Required. RouteMatch defines the predicate used to match requests to a
       given action. Multiple match types are "OR"ed for evaluation. Atleast one
       RouteMatch must be supplied.
       
      repeated .google.cloud.networkservices.v1.TlsRoute.RouteMatch matches = 1 [(.google.api.field_behavior) = REQUIRED];
    • addAllMatches

      public TlsRoute.RouteRule.Builder addAllMatches(Iterable<? extends TlsRoute.RouteMatch> values)
       Required. RouteMatch defines the predicate used to match requests to a
       given action. Multiple match types are "OR"ed for evaluation. Atleast one
       RouteMatch must be supplied.
       
      repeated .google.cloud.networkservices.v1.TlsRoute.RouteMatch matches = 1 [(.google.api.field_behavior) = REQUIRED];
    • clearMatches

      public TlsRoute.RouteRule.Builder clearMatches()
       Required. RouteMatch defines the predicate used to match requests to a
       given action. Multiple match types are "OR"ed for evaluation. Atleast one
       RouteMatch must be supplied.
       
      repeated .google.cloud.networkservices.v1.TlsRoute.RouteMatch matches = 1 [(.google.api.field_behavior) = REQUIRED];
    • removeMatches

      public TlsRoute.RouteRule.Builder removeMatches(int index)
       Required. RouteMatch defines the predicate used to match requests to a
       given action. Multiple match types are "OR"ed for evaluation. Atleast one
       RouteMatch must be supplied.
       
      repeated .google.cloud.networkservices.v1.TlsRoute.RouteMatch matches = 1 [(.google.api.field_behavior) = REQUIRED];
    • getMatchesBuilder

      public TlsRoute.RouteMatch.Builder getMatchesBuilder(int index)
       Required. RouteMatch defines the predicate used to match requests to a
       given action. Multiple match types are "OR"ed for evaluation. Atleast one
       RouteMatch must be supplied.
       
      repeated .google.cloud.networkservices.v1.TlsRoute.RouteMatch matches = 1 [(.google.api.field_behavior) = REQUIRED];
    • getMatchesOrBuilder

      public TlsRoute.RouteMatchOrBuilder getMatchesOrBuilder(int index)
       Required. RouteMatch defines the predicate used to match requests to a
       given action. Multiple match types are "OR"ed for evaluation. Atleast one
       RouteMatch must be supplied.
       
      repeated .google.cloud.networkservices.v1.TlsRoute.RouteMatch matches = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getMatchesOrBuilder in interface TlsRoute.RouteRuleOrBuilder
    • getMatchesOrBuilderList

      public List<? extends TlsRoute.RouteMatchOrBuilder> getMatchesOrBuilderList()
       Required. RouteMatch defines the predicate used to match requests to a
       given action. Multiple match types are "OR"ed for evaluation. Atleast one
       RouteMatch must be supplied.
       
      repeated .google.cloud.networkservices.v1.TlsRoute.RouteMatch matches = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getMatchesOrBuilderList in interface TlsRoute.RouteRuleOrBuilder
    • addMatchesBuilder

      public TlsRoute.RouteMatch.Builder addMatchesBuilder()
       Required. RouteMatch defines the predicate used to match requests to a
       given action. Multiple match types are "OR"ed for evaluation. Atleast one
       RouteMatch must be supplied.
       
      repeated .google.cloud.networkservices.v1.TlsRoute.RouteMatch matches = 1 [(.google.api.field_behavior) = REQUIRED];
    • addMatchesBuilder

      public TlsRoute.RouteMatch.Builder addMatchesBuilder(int index)
       Required. RouteMatch defines the predicate used to match requests to a
       given action. Multiple match types are "OR"ed for evaluation. Atleast one
       RouteMatch must be supplied.
       
      repeated .google.cloud.networkservices.v1.TlsRoute.RouteMatch matches = 1 [(.google.api.field_behavior) = REQUIRED];
    • getMatchesBuilderList

      public List<TlsRoute.RouteMatch.Builder> getMatchesBuilderList()
       Required. RouteMatch defines the predicate used to match requests to a
       given action. Multiple match types are "OR"ed for evaluation. Atleast one
       RouteMatch must be supplied.
       
      repeated .google.cloud.networkservices.v1.TlsRoute.RouteMatch matches = 1 [(.google.api.field_behavior) = REQUIRED];
    • hasAction

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

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

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

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

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

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

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

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