Class ExtensionChain.Builder

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

public static final class ExtensionChain.Builder extends com.google.protobuf.GeneratedMessage.Builder<ExtensionChain.Builder> implements ExtensionChainOrBuilder
 A single extension chain wrapper that contains the match conditions and
 extensions to execute.
 
Protobuf type google.cloud.networkservices.v1.ExtensionChain
  • 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<ExtensionChain.Builder>
    • clear

      public ExtensionChain.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<ExtensionChain.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<ExtensionChain.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public ExtensionChain.Builder mergeFrom(ExtensionChain other)
    • isInitialized

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

      public ExtensionChain.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<ExtensionChain.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       Required. The name for this extension chain.
       The name is logged as part of the HTTP request logs.
       The name must conform with RFC-1034, is restricted to lower-cased letters,
       numbers and hyphens, and can have a maximum length of 63 characters.
       Additionally, the first character must be a letter and the last a letter or
       a number.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getName in interface ExtensionChainOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Required. The name for this extension chain.
       The name is logged as part of the HTTP request logs.
       The name must conform with RFC-1034, is restricted to lower-cased letters,
       numbers and hyphens, and can have a maximum length of 63 characters.
       Additionally, the first character must be a letter and the last a letter or
       a number.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getNameBytes in interface ExtensionChainOrBuilder
      Returns:
      The bytes for name.
    • setName

      public ExtensionChain.Builder setName(String value)
       Required. The name for this extension chain.
       The name is logged as part of the HTTP request logs.
       The name must conform with RFC-1034, is restricted to lower-cased letters,
       numbers and hyphens, and can have a maximum length of 63 characters.
       Additionally, the first character must be a letter and the last a letter or
       a number.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public ExtensionChain.Builder clearName()
       Required. The name for this extension chain.
       The name is logged as part of the HTTP request logs.
       The name must conform with RFC-1034, is restricted to lower-cased letters,
       numbers and hyphens, and can have a maximum length of 63 characters.
       Additionally, the first character must be a letter and the last a letter or
       a number.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setNameBytes

      public ExtensionChain.Builder setNameBytes(com.google.protobuf.ByteString value)
       Required. The name for this extension chain.
       The name is logged as part of the HTTP request logs.
       The name must conform with RFC-1034, is restricted to lower-cased letters,
       numbers and hyphens, and can have a maximum length of 63 characters.
       Additionally, the first character must be a letter and the last a letter or
       a number.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • hasMatchCondition

      public boolean hasMatchCondition()
       Required. Conditions under which this chain is invoked for a request.
       
      .google.cloud.networkservices.v1.ExtensionChain.MatchCondition match_condition = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasMatchCondition in interface ExtensionChainOrBuilder
      Returns:
      Whether the matchCondition field is set.
    • getMatchCondition

      public ExtensionChain.MatchCondition getMatchCondition()
       Required. Conditions under which this chain is invoked for a request.
       
      .google.cloud.networkservices.v1.ExtensionChain.MatchCondition match_condition = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getMatchCondition in interface ExtensionChainOrBuilder
      Returns:
      The matchCondition.
    • setMatchCondition

      public ExtensionChain.Builder setMatchCondition(ExtensionChain.MatchCondition value)
       Required. Conditions under which this chain is invoked for a request.
       
      .google.cloud.networkservices.v1.ExtensionChain.MatchCondition match_condition = 2 [(.google.api.field_behavior) = REQUIRED];
    • setMatchCondition

      public ExtensionChain.Builder setMatchCondition(ExtensionChain.MatchCondition.Builder builderForValue)
       Required. Conditions under which this chain is invoked for a request.
       
      .google.cloud.networkservices.v1.ExtensionChain.MatchCondition match_condition = 2 [(.google.api.field_behavior) = REQUIRED];
    • mergeMatchCondition

      public ExtensionChain.Builder mergeMatchCondition(ExtensionChain.MatchCondition value)
       Required. Conditions under which this chain is invoked for a request.
       
      .google.cloud.networkservices.v1.ExtensionChain.MatchCondition match_condition = 2 [(.google.api.field_behavior) = REQUIRED];
    • clearMatchCondition

      public ExtensionChain.Builder clearMatchCondition()
       Required. Conditions under which this chain is invoked for a request.
       
      .google.cloud.networkservices.v1.ExtensionChain.MatchCondition match_condition = 2 [(.google.api.field_behavior) = REQUIRED];
    • getMatchConditionBuilder

      public ExtensionChain.MatchCondition.Builder getMatchConditionBuilder()
       Required. Conditions under which this chain is invoked for a request.
       
      .google.cloud.networkservices.v1.ExtensionChain.MatchCondition match_condition = 2 [(.google.api.field_behavior) = REQUIRED];
    • getMatchConditionOrBuilder

      public ExtensionChain.MatchConditionOrBuilder getMatchConditionOrBuilder()
       Required. Conditions under which this chain is invoked for a request.
       
      .google.cloud.networkservices.v1.ExtensionChain.MatchCondition match_condition = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getMatchConditionOrBuilder in interface ExtensionChainOrBuilder
    • getExtensionsList

      public List<ExtensionChain.Extension> getExtensionsList()
       Required. A set of extensions to execute for the matching request.
       At least one extension is required.
       Up to 3 extensions can be defined for each extension chain
       for `LbTrafficExtension` resource.
       `LbRouteExtension` and `LbEdgeExtension` chains are limited to 1 extension
       per extension chain.
       
      repeated .google.cloud.networkservices.v1.ExtensionChain.Extension extensions = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getExtensionsList in interface ExtensionChainOrBuilder
    • getExtensionsCount

      public int getExtensionsCount()
       Required. A set of extensions to execute for the matching request.
       At least one extension is required.
       Up to 3 extensions can be defined for each extension chain
       for `LbTrafficExtension` resource.
       `LbRouteExtension` and `LbEdgeExtension` chains are limited to 1 extension
       per extension chain.
       
      repeated .google.cloud.networkservices.v1.ExtensionChain.Extension extensions = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getExtensionsCount in interface ExtensionChainOrBuilder
    • getExtensions

      public ExtensionChain.Extension getExtensions(int index)
       Required. A set of extensions to execute for the matching request.
       At least one extension is required.
       Up to 3 extensions can be defined for each extension chain
       for `LbTrafficExtension` resource.
       `LbRouteExtension` and `LbEdgeExtension` chains are limited to 1 extension
       per extension chain.
       
      repeated .google.cloud.networkservices.v1.ExtensionChain.Extension extensions = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getExtensions in interface ExtensionChainOrBuilder
    • setExtensions

      public ExtensionChain.Builder setExtensions(int index, ExtensionChain.Extension value)
       Required. A set of extensions to execute for the matching request.
       At least one extension is required.
       Up to 3 extensions can be defined for each extension chain
       for `LbTrafficExtension` resource.
       `LbRouteExtension` and `LbEdgeExtension` chains are limited to 1 extension
       per extension chain.
       
      repeated .google.cloud.networkservices.v1.ExtensionChain.Extension extensions = 3 [(.google.api.field_behavior) = REQUIRED];
    • setExtensions

      public ExtensionChain.Builder setExtensions(int index, ExtensionChain.Extension.Builder builderForValue)
       Required. A set of extensions to execute for the matching request.
       At least one extension is required.
       Up to 3 extensions can be defined for each extension chain
       for `LbTrafficExtension` resource.
       `LbRouteExtension` and `LbEdgeExtension` chains are limited to 1 extension
       per extension chain.
       
      repeated .google.cloud.networkservices.v1.ExtensionChain.Extension extensions = 3 [(.google.api.field_behavior) = REQUIRED];
    • addExtensions

      public ExtensionChain.Builder addExtensions(ExtensionChain.Extension value)
       Required. A set of extensions to execute for the matching request.
       At least one extension is required.
       Up to 3 extensions can be defined for each extension chain
       for `LbTrafficExtension` resource.
       `LbRouteExtension` and `LbEdgeExtension` chains are limited to 1 extension
       per extension chain.
       
      repeated .google.cloud.networkservices.v1.ExtensionChain.Extension extensions = 3 [(.google.api.field_behavior) = REQUIRED];
    • addExtensions

      public ExtensionChain.Builder addExtensions(int index, ExtensionChain.Extension value)
       Required. A set of extensions to execute for the matching request.
       At least one extension is required.
       Up to 3 extensions can be defined for each extension chain
       for `LbTrafficExtension` resource.
       `LbRouteExtension` and `LbEdgeExtension` chains are limited to 1 extension
       per extension chain.
       
      repeated .google.cloud.networkservices.v1.ExtensionChain.Extension extensions = 3 [(.google.api.field_behavior) = REQUIRED];
    • addExtensions

      public ExtensionChain.Builder addExtensions(ExtensionChain.Extension.Builder builderForValue)
       Required. A set of extensions to execute for the matching request.
       At least one extension is required.
       Up to 3 extensions can be defined for each extension chain
       for `LbTrafficExtension` resource.
       `LbRouteExtension` and `LbEdgeExtension` chains are limited to 1 extension
       per extension chain.
       
      repeated .google.cloud.networkservices.v1.ExtensionChain.Extension extensions = 3 [(.google.api.field_behavior) = REQUIRED];
    • addExtensions

      public ExtensionChain.Builder addExtensions(int index, ExtensionChain.Extension.Builder builderForValue)
       Required. A set of extensions to execute for the matching request.
       At least one extension is required.
       Up to 3 extensions can be defined for each extension chain
       for `LbTrafficExtension` resource.
       `LbRouteExtension` and `LbEdgeExtension` chains are limited to 1 extension
       per extension chain.
       
      repeated .google.cloud.networkservices.v1.ExtensionChain.Extension extensions = 3 [(.google.api.field_behavior) = REQUIRED];
    • addAllExtensions

      public ExtensionChain.Builder addAllExtensions(Iterable<? extends ExtensionChain.Extension> values)
       Required. A set of extensions to execute for the matching request.
       At least one extension is required.
       Up to 3 extensions can be defined for each extension chain
       for `LbTrafficExtension` resource.
       `LbRouteExtension` and `LbEdgeExtension` chains are limited to 1 extension
       per extension chain.
       
      repeated .google.cloud.networkservices.v1.ExtensionChain.Extension extensions = 3 [(.google.api.field_behavior) = REQUIRED];
    • clearExtensions

      public ExtensionChain.Builder clearExtensions()
       Required. A set of extensions to execute for the matching request.
       At least one extension is required.
       Up to 3 extensions can be defined for each extension chain
       for `LbTrafficExtension` resource.
       `LbRouteExtension` and `LbEdgeExtension` chains are limited to 1 extension
       per extension chain.
       
      repeated .google.cloud.networkservices.v1.ExtensionChain.Extension extensions = 3 [(.google.api.field_behavior) = REQUIRED];
    • removeExtensions

      public ExtensionChain.Builder removeExtensions(int index)
       Required. A set of extensions to execute for the matching request.
       At least one extension is required.
       Up to 3 extensions can be defined for each extension chain
       for `LbTrafficExtension` resource.
       `LbRouteExtension` and `LbEdgeExtension` chains are limited to 1 extension
       per extension chain.
       
      repeated .google.cloud.networkservices.v1.ExtensionChain.Extension extensions = 3 [(.google.api.field_behavior) = REQUIRED];
    • getExtensionsBuilder

      public ExtensionChain.Extension.Builder getExtensionsBuilder(int index)
       Required. A set of extensions to execute for the matching request.
       At least one extension is required.
       Up to 3 extensions can be defined for each extension chain
       for `LbTrafficExtension` resource.
       `LbRouteExtension` and `LbEdgeExtension` chains are limited to 1 extension
       per extension chain.
       
      repeated .google.cloud.networkservices.v1.ExtensionChain.Extension extensions = 3 [(.google.api.field_behavior) = REQUIRED];
    • getExtensionsOrBuilder

      public ExtensionChain.ExtensionOrBuilder getExtensionsOrBuilder(int index)
       Required. A set of extensions to execute for the matching request.
       At least one extension is required.
       Up to 3 extensions can be defined for each extension chain
       for `LbTrafficExtension` resource.
       `LbRouteExtension` and `LbEdgeExtension` chains are limited to 1 extension
       per extension chain.
       
      repeated .google.cloud.networkservices.v1.ExtensionChain.Extension extensions = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getExtensionsOrBuilder in interface ExtensionChainOrBuilder
    • getExtensionsOrBuilderList

      public List<? extends ExtensionChain.ExtensionOrBuilder> getExtensionsOrBuilderList()
       Required. A set of extensions to execute for the matching request.
       At least one extension is required.
       Up to 3 extensions can be defined for each extension chain
       for `LbTrafficExtension` resource.
       `LbRouteExtension` and `LbEdgeExtension` chains are limited to 1 extension
       per extension chain.
       
      repeated .google.cloud.networkservices.v1.ExtensionChain.Extension extensions = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getExtensionsOrBuilderList in interface ExtensionChainOrBuilder
    • addExtensionsBuilder

      public ExtensionChain.Extension.Builder addExtensionsBuilder()
       Required. A set of extensions to execute for the matching request.
       At least one extension is required.
       Up to 3 extensions can be defined for each extension chain
       for `LbTrafficExtension` resource.
       `LbRouteExtension` and `LbEdgeExtension` chains are limited to 1 extension
       per extension chain.
       
      repeated .google.cloud.networkservices.v1.ExtensionChain.Extension extensions = 3 [(.google.api.field_behavior) = REQUIRED];
    • addExtensionsBuilder

      public ExtensionChain.Extension.Builder addExtensionsBuilder(int index)
       Required. A set of extensions to execute for the matching request.
       At least one extension is required.
       Up to 3 extensions can be defined for each extension chain
       for `LbTrafficExtension` resource.
       `LbRouteExtension` and `LbEdgeExtension` chains are limited to 1 extension
       per extension chain.
       
      repeated .google.cloud.networkservices.v1.ExtensionChain.Extension extensions = 3 [(.google.api.field_behavior) = REQUIRED];
    • getExtensionsBuilderList

      public List<ExtensionChain.Extension.Builder> getExtensionsBuilderList()
       Required. A set of extensions to execute for the matching request.
       At least one extension is required.
       Up to 3 extensions can be defined for each extension chain
       for `LbTrafficExtension` resource.
       `LbRouteExtension` and `LbEdgeExtension` chains are limited to 1 extension
       per extension chain.
       
      repeated .google.cloud.networkservices.v1.ExtensionChain.Extension extensions = 3 [(.google.api.field_behavior) = REQUIRED];