Class GrpcRoute.RouteRule.Builder

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

public static final class GrpcRoute.RouteRule.Builder extends com.google.protobuf.GeneratedMessage.Builder<GrpcRoute.RouteRule.Builder> implements GrpcRoute.RouteRuleOrBuilder
 Describes how to route traffic.
 
Protobuf type google.cloud.networkservices.v1.GrpcRoute.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<GrpcRoute.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<GrpcRoute.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<GrpcRoute.RouteRule.Builder>
    • getDefaultInstanceForType

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      public GrpcRoute.RouteAction 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];
      Specified by:
      getAction in interface GrpcRoute.RouteRuleOrBuilder
      Returns:
      The action.
    • setAction

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

      public GrpcRoute.RouteRule.Builder setAction(GrpcRoute.RouteAction.Builder builderForValue)
       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];
    • mergeAction

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

      public GrpcRoute.RouteRule.Builder clearAction()
       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];
    • getActionBuilder

      public GrpcRoute.RouteAction.Builder getActionBuilder()
       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];
    • getActionOrBuilder

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