Class LbRouteExtension.Builder

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

public static final class LbRouteExtension.Builder extends com.google.protobuf.GeneratedMessage.Builder<LbRouteExtension.Builder> implements LbRouteExtensionOrBuilder
 `LbRouteExtension` is a resource that lets you control where traffic is
 routed to for a given request.
 
Protobuf type google.cloud.networkservices.v1.LbRouteExtension
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<LbRouteExtension.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<LbRouteExtension.Builder>
    • internalGetFieldAccessorTable

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

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

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

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

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

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

      public LbRouteExtension.Builder mergeFrom(LbRouteExtension other)
    • isInitialized

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

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

      public String getName()
       Required. Identifier. Name of the `LbRouteExtension` resource in the
       following format:
       `projects/{project}/locations/{location}/lbRouteExtensions/{lb_route_extension}`.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getName in interface LbRouteExtensionOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Required. Identifier. Name of the `LbRouteExtension` resource in the
       following format:
       `projects/{project}/locations/{location}/lbRouteExtensions/{lb_route_extension}`.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getNameBytes in interface LbRouteExtensionOrBuilder
      Returns:
      The bytes for name.
    • setName

      public LbRouteExtension.Builder setName(String value)
       Required. Identifier. Name of the `LbRouteExtension` resource in the
       following format:
       `projects/{project}/locations/{location}/lbRouteExtensions/{lb_route_extension}`.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public LbRouteExtension.Builder clearName()
       Required. Identifier. Name of the `LbRouteExtension` resource in the
       following format:
       `projects/{project}/locations/{location}/lbRouteExtensions/{lb_route_extension}`.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER];
      Returns:
      This builder for chaining.
    • setNameBytes

      public LbRouteExtension.Builder setNameBytes(com.google.protobuf.ByteString value)
       Required. Identifier. Name of the `LbRouteExtension` resource in the
       following format:
       `projects/{project}/locations/{location}/lbRouteExtensions/{lb_route_extension}`.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • hasCreateTime

      public boolean hasCreateTime()
       Output only. The timestamp when the resource was created.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasCreateTime in interface LbRouteExtensionOrBuilder
      Returns:
      Whether the createTime field is set.
    • getCreateTime

      public com.google.protobuf.Timestamp getCreateTime()
       Output only. The timestamp when the resource was created.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTime in interface LbRouteExtensionOrBuilder
      Returns:
      The createTime.
    • setCreateTime

      public LbRouteExtension.Builder setCreateTime(com.google.protobuf.Timestamp value)
       Output only. The timestamp when the resource was created.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setCreateTime

      public LbRouteExtension.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. The timestamp when the resource was created.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeCreateTime

      public LbRouteExtension.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
       Output only. The timestamp when the resource was created.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearCreateTime

      public LbRouteExtension.Builder clearCreateTime()
       Output only. The timestamp when the resource was created.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
       Output only. The timestamp when the resource was created.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
       Output only. The timestamp when the resource was created.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTimeOrBuilder in interface LbRouteExtensionOrBuilder
    • hasUpdateTime

      public boolean hasUpdateTime()
       Output only. The timestamp when the resource was updated.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasUpdateTime in interface LbRouteExtensionOrBuilder
      Returns:
      Whether the updateTime field is set.
    • getUpdateTime

      public com.google.protobuf.Timestamp getUpdateTime()
       Output only. The timestamp when the resource was updated.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTime in interface LbRouteExtensionOrBuilder
      Returns:
      The updateTime.
    • setUpdateTime

      public LbRouteExtension.Builder setUpdateTime(com.google.protobuf.Timestamp value)
       Output only. The timestamp when the resource was updated.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setUpdateTime

      public LbRouteExtension.Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. The timestamp when the resource was updated.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeUpdateTime

      public LbRouteExtension.Builder mergeUpdateTime(com.google.protobuf.Timestamp value)
       Output only. The timestamp when the resource was updated.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearUpdateTime

      public LbRouteExtension.Builder clearUpdateTime()
       Output only. The timestamp when the resource was updated.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUpdateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()
       Output only. The timestamp when the resource was updated.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUpdateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
       Output only. The timestamp when the resource was updated.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTimeOrBuilder in interface LbRouteExtensionOrBuilder
    • getDescription

      public String getDescription()
       Optional. A human-readable description of the resource.
       
      string description = 9 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDescription in interface LbRouteExtensionOrBuilder
      Returns:
      The description.
    • getDescriptionBytes

      public com.google.protobuf.ByteString getDescriptionBytes()
       Optional. A human-readable description of the resource.
       
      string description = 9 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDescriptionBytes in interface LbRouteExtensionOrBuilder
      Returns:
      The bytes for description.
    • setDescription

      public LbRouteExtension.Builder setDescription(String value)
       Optional. A human-readable description of the resource.
       
      string description = 9 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The description to set.
      Returns:
      This builder for chaining.
    • clearDescription

      public LbRouteExtension.Builder clearDescription()
       Optional. A human-readable description of the resource.
       
      string description = 9 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setDescriptionBytes

      public LbRouteExtension.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
       Optional. A human-readable description of the resource.
       
      string description = 9 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for description to set.
      Returns:
      This builder for chaining.
    • getLabelsCount

      public int getLabelsCount()
      Description copied from interface: LbRouteExtensionOrBuilder
       Optional. Set of labels associated with the `LbRouteExtension` resource.
      
       The format must comply with [the requirements for
       labels](https://cloud.google.com/compute/docs/labeling-resources#requirements)
       for Google Cloud resources.
       
      map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsCount in interface LbRouteExtensionOrBuilder
    • containsLabels

      public boolean containsLabels(String key)
       Optional. Set of labels associated with the `LbRouteExtension` resource.
      
       The format must comply with [the requirements for
       labels](https://cloud.google.com/compute/docs/labeling-resources#requirements)
       for Google Cloud resources.
       
      map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      containsLabels in interface LbRouteExtensionOrBuilder
    • getLabels

      @Deprecated public Map<String,String> getLabels()
      Deprecated.
      Use getLabelsMap() instead.
      Specified by:
      getLabels in interface LbRouteExtensionOrBuilder
    • getLabelsMap

      public Map<String,String> getLabelsMap()
       Optional. Set of labels associated with the `LbRouteExtension` resource.
      
       The format must comply with [the requirements for
       labels](https://cloud.google.com/compute/docs/labeling-resources#requirements)
       for Google Cloud resources.
       
      map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsMap in interface LbRouteExtensionOrBuilder
    • getLabelsOrDefault

      public String getLabelsOrDefault(String key, String defaultValue)
       Optional. Set of labels associated with the `LbRouteExtension` resource.
      
       The format must comply with [the requirements for
       labels](https://cloud.google.com/compute/docs/labeling-resources#requirements)
       for Google Cloud resources.
       
      map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsOrDefault in interface LbRouteExtensionOrBuilder
    • getLabelsOrThrow

      public String getLabelsOrThrow(String key)
       Optional. Set of labels associated with the `LbRouteExtension` resource.
      
       The format must comply with [the requirements for
       labels](https://cloud.google.com/compute/docs/labeling-resources#requirements)
       for Google Cloud resources.
       
      map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsOrThrow in interface LbRouteExtensionOrBuilder
    • clearLabels

      public LbRouteExtension.Builder clearLabels()
    • removeLabels

      public LbRouteExtension.Builder removeLabels(String key)
       Optional. Set of labels associated with the `LbRouteExtension` resource.
      
       The format must comply with [the requirements for
       labels](https://cloud.google.com/compute/docs/labeling-resources#requirements)
       for Google Cloud resources.
       
      map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
    • getMutableLabels

      @Deprecated public Map<String,String> getMutableLabels()
      Deprecated.
      Use alternate mutation accessors instead.
    • putLabels

      public LbRouteExtension.Builder putLabels(String key, String value)
       Optional. Set of labels associated with the `LbRouteExtension` resource.
      
       The format must comply with [the requirements for
       labels](https://cloud.google.com/compute/docs/labeling-resources#requirements)
       for Google Cloud resources.
       
      map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
    • putAllLabels

      public LbRouteExtension.Builder putAllLabels(Map<String,String> values)
       Optional. Set of labels associated with the `LbRouteExtension` resource.
      
       The format must comply with [the requirements for
       labels](https://cloud.google.com/compute/docs/labeling-resources#requirements)
       for Google Cloud resources.
       
      map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
    • getForwardingRulesList

      public com.google.protobuf.ProtocolStringList getForwardingRulesList()
       Required. A list of references to the forwarding rules to which this
       service extension is attached. At least one forwarding rule is required.
       Only one `LbRouteExtension` resource can be associated with a forwarding
       rule.
       
      repeated string forwarding_rules = 5 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getForwardingRulesList in interface LbRouteExtensionOrBuilder
      Returns:
      A list containing the forwardingRules.
    • getForwardingRulesCount

      public int getForwardingRulesCount()
       Required. A list of references to the forwarding rules to which this
       service extension is attached. At least one forwarding rule is required.
       Only one `LbRouteExtension` resource can be associated with a forwarding
       rule.
       
      repeated string forwarding_rules = 5 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getForwardingRulesCount in interface LbRouteExtensionOrBuilder
      Returns:
      The count of forwardingRules.
    • getForwardingRules

      public String getForwardingRules(int index)
       Required. A list of references to the forwarding rules to which this
       service extension is attached. At least one forwarding rule is required.
       Only one `LbRouteExtension` resource can be associated with a forwarding
       rule.
       
      repeated string forwarding_rules = 5 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getForwardingRules in interface LbRouteExtensionOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The forwardingRules at the given index.
    • getForwardingRulesBytes

      public com.google.protobuf.ByteString getForwardingRulesBytes(int index)
       Required. A list of references to the forwarding rules to which this
       service extension is attached. At least one forwarding rule is required.
       Only one `LbRouteExtension` resource can be associated with a forwarding
       rule.
       
      repeated string forwarding_rules = 5 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getForwardingRulesBytes in interface LbRouteExtensionOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the forwardingRules at the given index.
    • setForwardingRules

      public LbRouteExtension.Builder setForwardingRules(int index, String value)
       Required. A list of references to the forwarding rules to which this
       service extension is attached. At least one forwarding rule is required.
       Only one `LbRouteExtension` resource can be associated with a forwarding
       rule.
       
      repeated string forwarding_rules = 5 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      index - The index to set the value at.
      value - The forwardingRules to set.
      Returns:
      This builder for chaining.
    • addForwardingRules

      public LbRouteExtension.Builder addForwardingRules(String value)
       Required. A list of references to the forwarding rules to which this
       service extension is attached. At least one forwarding rule is required.
       Only one `LbRouteExtension` resource can be associated with a forwarding
       rule.
       
      repeated string forwarding_rules = 5 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The forwardingRules to add.
      Returns:
      This builder for chaining.
    • addAllForwardingRules

      public LbRouteExtension.Builder addAllForwardingRules(Iterable<String> values)
       Required. A list of references to the forwarding rules to which this
       service extension is attached. At least one forwarding rule is required.
       Only one `LbRouteExtension` resource can be associated with a forwarding
       rule.
       
      repeated string forwarding_rules = 5 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      values - The forwardingRules to add.
      Returns:
      This builder for chaining.
    • clearForwardingRules

      public LbRouteExtension.Builder clearForwardingRules()
       Required. A list of references to the forwarding rules to which this
       service extension is attached. At least one forwarding rule is required.
       Only one `LbRouteExtension` resource can be associated with a forwarding
       rule.
       
      repeated string forwarding_rules = 5 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • addForwardingRulesBytes

      public LbRouteExtension.Builder addForwardingRulesBytes(com.google.protobuf.ByteString value)
       Required. A list of references to the forwarding rules to which this
       service extension is attached. At least one forwarding rule is required.
       Only one `LbRouteExtension` resource can be associated with a forwarding
       rule.
       
      repeated string forwarding_rules = 5 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes of the forwardingRules to add.
      Returns:
      This builder for chaining.
    • getExtensionChainsList

      public List<ExtensionChain> getExtensionChainsList()
       Required. A set of ordered extension chains that contain the match
       conditions and extensions to execute. Match conditions for each extension
       chain are evaluated in sequence for a given request. The first extension
       chain that has a condition that matches the request is executed.
       Any subsequent extension chains do not execute.
       Limited to 5 extension chains per resource.
       
      repeated .google.cloud.networkservices.v1.ExtensionChain extension_chains = 7 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getExtensionChainsList in interface LbRouteExtensionOrBuilder
    • getExtensionChainsCount

      public int getExtensionChainsCount()
       Required. A set of ordered extension chains that contain the match
       conditions and extensions to execute. Match conditions for each extension
       chain are evaluated in sequence for a given request. The first extension
       chain that has a condition that matches the request is executed.
       Any subsequent extension chains do not execute.
       Limited to 5 extension chains per resource.
       
      repeated .google.cloud.networkservices.v1.ExtensionChain extension_chains = 7 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getExtensionChainsCount in interface LbRouteExtensionOrBuilder
    • getExtensionChains

      public ExtensionChain getExtensionChains(int index)
       Required. A set of ordered extension chains that contain the match
       conditions and extensions to execute. Match conditions for each extension
       chain are evaluated in sequence for a given request. The first extension
       chain that has a condition that matches the request is executed.
       Any subsequent extension chains do not execute.
       Limited to 5 extension chains per resource.
       
      repeated .google.cloud.networkservices.v1.ExtensionChain extension_chains = 7 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getExtensionChains in interface LbRouteExtensionOrBuilder
    • setExtensionChains

      public LbRouteExtension.Builder setExtensionChains(int index, ExtensionChain value)
       Required. A set of ordered extension chains that contain the match
       conditions and extensions to execute. Match conditions for each extension
       chain are evaluated in sequence for a given request. The first extension
       chain that has a condition that matches the request is executed.
       Any subsequent extension chains do not execute.
       Limited to 5 extension chains per resource.
       
      repeated .google.cloud.networkservices.v1.ExtensionChain extension_chains = 7 [(.google.api.field_behavior) = REQUIRED];
    • setExtensionChains

      public LbRouteExtension.Builder setExtensionChains(int index, ExtensionChain.Builder builderForValue)
       Required. A set of ordered extension chains that contain the match
       conditions and extensions to execute. Match conditions for each extension
       chain are evaluated in sequence for a given request. The first extension
       chain that has a condition that matches the request is executed.
       Any subsequent extension chains do not execute.
       Limited to 5 extension chains per resource.
       
      repeated .google.cloud.networkservices.v1.ExtensionChain extension_chains = 7 [(.google.api.field_behavior) = REQUIRED];
    • addExtensionChains

      public LbRouteExtension.Builder addExtensionChains(ExtensionChain value)
       Required. A set of ordered extension chains that contain the match
       conditions and extensions to execute. Match conditions for each extension
       chain are evaluated in sequence for a given request. The first extension
       chain that has a condition that matches the request is executed.
       Any subsequent extension chains do not execute.
       Limited to 5 extension chains per resource.
       
      repeated .google.cloud.networkservices.v1.ExtensionChain extension_chains = 7 [(.google.api.field_behavior) = REQUIRED];
    • addExtensionChains

      public LbRouteExtension.Builder addExtensionChains(int index, ExtensionChain value)
       Required. A set of ordered extension chains that contain the match
       conditions and extensions to execute. Match conditions for each extension
       chain are evaluated in sequence for a given request. The first extension
       chain that has a condition that matches the request is executed.
       Any subsequent extension chains do not execute.
       Limited to 5 extension chains per resource.
       
      repeated .google.cloud.networkservices.v1.ExtensionChain extension_chains = 7 [(.google.api.field_behavior) = REQUIRED];
    • addExtensionChains

      public LbRouteExtension.Builder addExtensionChains(ExtensionChain.Builder builderForValue)
       Required. A set of ordered extension chains that contain the match
       conditions and extensions to execute. Match conditions for each extension
       chain are evaluated in sequence for a given request. The first extension
       chain that has a condition that matches the request is executed.
       Any subsequent extension chains do not execute.
       Limited to 5 extension chains per resource.
       
      repeated .google.cloud.networkservices.v1.ExtensionChain extension_chains = 7 [(.google.api.field_behavior) = REQUIRED];
    • addExtensionChains

      public LbRouteExtension.Builder addExtensionChains(int index, ExtensionChain.Builder builderForValue)
       Required. A set of ordered extension chains that contain the match
       conditions and extensions to execute. Match conditions for each extension
       chain are evaluated in sequence for a given request. The first extension
       chain that has a condition that matches the request is executed.
       Any subsequent extension chains do not execute.
       Limited to 5 extension chains per resource.
       
      repeated .google.cloud.networkservices.v1.ExtensionChain extension_chains = 7 [(.google.api.field_behavior) = REQUIRED];
    • addAllExtensionChains

      public LbRouteExtension.Builder addAllExtensionChains(Iterable<? extends ExtensionChain> values)
       Required. A set of ordered extension chains that contain the match
       conditions and extensions to execute. Match conditions for each extension
       chain are evaluated in sequence for a given request. The first extension
       chain that has a condition that matches the request is executed.
       Any subsequent extension chains do not execute.
       Limited to 5 extension chains per resource.
       
      repeated .google.cloud.networkservices.v1.ExtensionChain extension_chains = 7 [(.google.api.field_behavior) = REQUIRED];
    • clearExtensionChains

      public LbRouteExtension.Builder clearExtensionChains()
       Required. A set of ordered extension chains that contain the match
       conditions and extensions to execute. Match conditions for each extension
       chain are evaluated in sequence for a given request. The first extension
       chain that has a condition that matches the request is executed.
       Any subsequent extension chains do not execute.
       Limited to 5 extension chains per resource.
       
      repeated .google.cloud.networkservices.v1.ExtensionChain extension_chains = 7 [(.google.api.field_behavior) = REQUIRED];
    • removeExtensionChains

      public LbRouteExtension.Builder removeExtensionChains(int index)
       Required. A set of ordered extension chains that contain the match
       conditions and extensions to execute. Match conditions for each extension
       chain are evaluated in sequence for a given request. The first extension
       chain that has a condition that matches the request is executed.
       Any subsequent extension chains do not execute.
       Limited to 5 extension chains per resource.
       
      repeated .google.cloud.networkservices.v1.ExtensionChain extension_chains = 7 [(.google.api.field_behavior) = REQUIRED];
    • getExtensionChainsBuilder

      public ExtensionChain.Builder getExtensionChainsBuilder(int index)
       Required. A set of ordered extension chains that contain the match
       conditions and extensions to execute. Match conditions for each extension
       chain are evaluated in sequence for a given request. The first extension
       chain that has a condition that matches the request is executed.
       Any subsequent extension chains do not execute.
       Limited to 5 extension chains per resource.
       
      repeated .google.cloud.networkservices.v1.ExtensionChain extension_chains = 7 [(.google.api.field_behavior) = REQUIRED];
    • getExtensionChainsOrBuilder

      public ExtensionChainOrBuilder getExtensionChainsOrBuilder(int index)
       Required. A set of ordered extension chains that contain the match
       conditions and extensions to execute. Match conditions for each extension
       chain are evaluated in sequence for a given request. The first extension
       chain that has a condition that matches the request is executed.
       Any subsequent extension chains do not execute.
       Limited to 5 extension chains per resource.
       
      repeated .google.cloud.networkservices.v1.ExtensionChain extension_chains = 7 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getExtensionChainsOrBuilder in interface LbRouteExtensionOrBuilder
    • getExtensionChainsOrBuilderList

      public List<? extends ExtensionChainOrBuilder> getExtensionChainsOrBuilderList()
       Required. A set of ordered extension chains that contain the match
       conditions and extensions to execute. Match conditions for each extension
       chain are evaluated in sequence for a given request. The first extension
       chain that has a condition that matches the request is executed.
       Any subsequent extension chains do not execute.
       Limited to 5 extension chains per resource.
       
      repeated .google.cloud.networkservices.v1.ExtensionChain extension_chains = 7 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getExtensionChainsOrBuilderList in interface LbRouteExtensionOrBuilder
    • addExtensionChainsBuilder

      public ExtensionChain.Builder addExtensionChainsBuilder()
       Required. A set of ordered extension chains that contain the match
       conditions and extensions to execute. Match conditions for each extension
       chain are evaluated in sequence for a given request. The first extension
       chain that has a condition that matches the request is executed.
       Any subsequent extension chains do not execute.
       Limited to 5 extension chains per resource.
       
      repeated .google.cloud.networkservices.v1.ExtensionChain extension_chains = 7 [(.google.api.field_behavior) = REQUIRED];
    • addExtensionChainsBuilder

      public ExtensionChain.Builder addExtensionChainsBuilder(int index)
       Required. A set of ordered extension chains that contain the match
       conditions and extensions to execute. Match conditions for each extension
       chain are evaluated in sequence for a given request. The first extension
       chain that has a condition that matches the request is executed.
       Any subsequent extension chains do not execute.
       Limited to 5 extension chains per resource.
       
      repeated .google.cloud.networkservices.v1.ExtensionChain extension_chains = 7 [(.google.api.field_behavior) = REQUIRED];
    • getExtensionChainsBuilderList

      public List<ExtensionChain.Builder> getExtensionChainsBuilderList()
       Required. A set of ordered extension chains that contain the match
       conditions and extensions to execute. Match conditions for each extension
       chain are evaluated in sequence for a given request. The first extension
       chain that has a condition that matches the request is executed.
       Any subsequent extension chains do not execute.
       Limited to 5 extension chains per resource.
       
      repeated .google.cloud.networkservices.v1.ExtensionChain extension_chains = 7 [(.google.api.field_behavior) = REQUIRED];
    • getLoadBalancingSchemeValue

      public int getLoadBalancingSchemeValue()
       Required. All backend services and forwarding rules referenced by this
       extension must share the same load balancing scheme. Supported values:
       `INTERNAL_MANAGED`, `EXTERNAL_MANAGED`. For more information, refer to
       [Backend services
       overview](https://cloud.google.com/load-balancing/docs/backend-service).
       
      .google.cloud.networkservices.v1.LoadBalancingScheme load_balancing_scheme = 8 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getLoadBalancingSchemeValue in interface LbRouteExtensionOrBuilder
      Returns:
      The enum numeric value on the wire for loadBalancingScheme.
    • setLoadBalancingSchemeValue

      public LbRouteExtension.Builder setLoadBalancingSchemeValue(int value)
       Required. All backend services and forwarding rules referenced by this
       extension must share the same load balancing scheme. Supported values:
       `INTERNAL_MANAGED`, `EXTERNAL_MANAGED`. For more information, refer to
       [Backend services
       overview](https://cloud.google.com/load-balancing/docs/backend-service).
       
      .google.cloud.networkservices.v1.LoadBalancingScheme load_balancing_scheme = 8 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The enum numeric value on the wire for loadBalancingScheme to set.
      Returns:
      This builder for chaining.
    • getLoadBalancingScheme

      public LoadBalancingScheme getLoadBalancingScheme()
       Required. All backend services and forwarding rules referenced by this
       extension must share the same load balancing scheme. Supported values:
       `INTERNAL_MANAGED`, `EXTERNAL_MANAGED`. For more information, refer to
       [Backend services
       overview](https://cloud.google.com/load-balancing/docs/backend-service).
       
      .google.cloud.networkservices.v1.LoadBalancingScheme load_balancing_scheme = 8 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getLoadBalancingScheme in interface LbRouteExtensionOrBuilder
      Returns:
      The loadBalancingScheme.
    • setLoadBalancingScheme

      public LbRouteExtension.Builder setLoadBalancingScheme(LoadBalancingScheme value)
       Required. All backend services and forwarding rules referenced by this
       extension must share the same load balancing scheme. Supported values:
       `INTERNAL_MANAGED`, `EXTERNAL_MANAGED`. For more information, refer to
       [Backend services
       overview](https://cloud.google.com/load-balancing/docs/backend-service).
       
      .google.cloud.networkservices.v1.LoadBalancingScheme load_balancing_scheme = 8 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The loadBalancingScheme to set.
      Returns:
      This builder for chaining.
    • clearLoadBalancingScheme

      public LbRouteExtension.Builder clearLoadBalancingScheme()
       Required. All backend services and forwarding rules referenced by this
       extension must share the same load balancing scheme. Supported values:
       `INTERNAL_MANAGED`, `EXTERNAL_MANAGED`. For more information, refer to
       [Backend services
       overview](https://cloud.google.com/load-balancing/docs/backend-service).
       
      .google.cloud.networkservices.v1.LoadBalancingScheme load_balancing_scheme = 8 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • hasMetadata

      public boolean hasMetadata()
       Optional. The metadata provided here is included as part of the
       `metadata_context` (of type `google.protobuf.Struct`) in the
       `ProcessingRequest` message sent to the extension server.
      
       The metadata applies to all extensions in all extensions chains in this
       resource.
      
       The metadata is available under the key
       `com.google.lb_route_extension.<resource_name>`.
      
       The following variables are supported in the metadata:
      
       `{forwarding_rule_id}` - substituted with the forwarding rule's fully
       qualified resource name.
      
       This field must not be set if at least one of the extension chains
       contains plugin extensions. Setting it results in a validation error.
      
       You can set metadata at either the resource level or the extension level.
       The extension level metadata is recommended because you can pass a
       different set of metadata through each extension to the backend.
       
      .google.protobuf.Struct metadata = 10 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasMetadata in interface LbRouteExtensionOrBuilder
      Returns:
      Whether the metadata field is set.
    • getMetadata

      public com.google.protobuf.Struct getMetadata()
       Optional. The metadata provided here is included as part of the
       `metadata_context` (of type `google.protobuf.Struct`) in the
       `ProcessingRequest` message sent to the extension server.
      
       The metadata applies to all extensions in all extensions chains in this
       resource.
      
       The metadata is available under the key
       `com.google.lb_route_extension.<resource_name>`.
      
       The following variables are supported in the metadata:
      
       `{forwarding_rule_id}` - substituted with the forwarding rule's fully
       qualified resource name.
      
       This field must not be set if at least one of the extension chains
       contains plugin extensions. Setting it results in a validation error.
      
       You can set metadata at either the resource level or the extension level.
       The extension level metadata is recommended because you can pass a
       different set of metadata through each extension to the backend.
       
      .google.protobuf.Struct metadata = 10 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getMetadata in interface LbRouteExtensionOrBuilder
      Returns:
      The metadata.
    • setMetadata

      public LbRouteExtension.Builder setMetadata(com.google.protobuf.Struct value)
       Optional. The metadata provided here is included as part of the
       `metadata_context` (of type `google.protobuf.Struct`) in the
       `ProcessingRequest` message sent to the extension server.
      
       The metadata applies to all extensions in all extensions chains in this
       resource.
      
       The metadata is available under the key
       `com.google.lb_route_extension.<resource_name>`.
      
       The following variables are supported in the metadata:
      
       `{forwarding_rule_id}` - substituted with the forwarding rule's fully
       qualified resource name.
      
       This field must not be set if at least one of the extension chains
       contains plugin extensions. Setting it results in a validation error.
      
       You can set metadata at either the resource level or the extension level.
       The extension level metadata is recommended because you can pass a
       different set of metadata through each extension to the backend.
       
      .google.protobuf.Struct metadata = 10 [(.google.api.field_behavior) = OPTIONAL];
    • setMetadata

      public LbRouteExtension.Builder setMetadata(com.google.protobuf.Struct.Builder builderForValue)
       Optional. The metadata provided here is included as part of the
       `metadata_context` (of type `google.protobuf.Struct`) in the
       `ProcessingRequest` message sent to the extension server.
      
       The metadata applies to all extensions in all extensions chains in this
       resource.
      
       The metadata is available under the key
       `com.google.lb_route_extension.<resource_name>`.
      
       The following variables are supported in the metadata:
      
       `{forwarding_rule_id}` - substituted with the forwarding rule's fully
       qualified resource name.
      
       This field must not be set if at least one of the extension chains
       contains plugin extensions. Setting it results in a validation error.
      
       You can set metadata at either the resource level or the extension level.
       The extension level metadata is recommended because you can pass a
       different set of metadata through each extension to the backend.
       
      .google.protobuf.Struct metadata = 10 [(.google.api.field_behavior) = OPTIONAL];
    • mergeMetadata

      public LbRouteExtension.Builder mergeMetadata(com.google.protobuf.Struct value)
       Optional. The metadata provided here is included as part of the
       `metadata_context` (of type `google.protobuf.Struct`) in the
       `ProcessingRequest` message sent to the extension server.
      
       The metadata applies to all extensions in all extensions chains in this
       resource.
      
       The metadata is available under the key
       `com.google.lb_route_extension.<resource_name>`.
      
       The following variables are supported in the metadata:
      
       `{forwarding_rule_id}` - substituted with the forwarding rule's fully
       qualified resource name.
      
       This field must not be set if at least one of the extension chains
       contains plugin extensions. Setting it results in a validation error.
      
       You can set metadata at either the resource level or the extension level.
       The extension level metadata is recommended because you can pass a
       different set of metadata through each extension to the backend.
       
      .google.protobuf.Struct metadata = 10 [(.google.api.field_behavior) = OPTIONAL];
    • clearMetadata

      public LbRouteExtension.Builder clearMetadata()
       Optional. The metadata provided here is included as part of the
       `metadata_context` (of type `google.protobuf.Struct`) in the
       `ProcessingRequest` message sent to the extension server.
      
       The metadata applies to all extensions in all extensions chains in this
       resource.
      
       The metadata is available under the key
       `com.google.lb_route_extension.<resource_name>`.
      
       The following variables are supported in the metadata:
      
       `{forwarding_rule_id}` - substituted with the forwarding rule's fully
       qualified resource name.
      
       This field must not be set if at least one of the extension chains
       contains plugin extensions. Setting it results in a validation error.
      
       You can set metadata at either the resource level or the extension level.
       The extension level metadata is recommended because you can pass a
       different set of metadata through each extension to the backend.
       
      .google.protobuf.Struct metadata = 10 [(.google.api.field_behavior) = OPTIONAL];
    • getMetadataBuilder

      public com.google.protobuf.Struct.Builder getMetadataBuilder()
       Optional. The metadata provided here is included as part of the
       `metadata_context` (of type `google.protobuf.Struct`) in the
       `ProcessingRequest` message sent to the extension server.
      
       The metadata applies to all extensions in all extensions chains in this
       resource.
      
       The metadata is available under the key
       `com.google.lb_route_extension.<resource_name>`.
      
       The following variables are supported in the metadata:
      
       `{forwarding_rule_id}` - substituted with the forwarding rule's fully
       qualified resource name.
      
       This field must not be set if at least one of the extension chains
       contains plugin extensions. Setting it results in a validation error.
      
       You can set metadata at either the resource level or the extension level.
       The extension level metadata is recommended because you can pass a
       different set of metadata through each extension to the backend.
       
      .google.protobuf.Struct metadata = 10 [(.google.api.field_behavior) = OPTIONAL];
    • getMetadataOrBuilder

      public com.google.protobuf.StructOrBuilder getMetadataOrBuilder()
       Optional. The metadata provided here is included as part of the
       `metadata_context` (of type `google.protobuf.Struct`) in the
       `ProcessingRequest` message sent to the extension server.
      
       The metadata applies to all extensions in all extensions chains in this
       resource.
      
       The metadata is available under the key
       `com.google.lb_route_extension.<resource_name>`.
      
       The following variables are supported in the metadata:
      
       `{forwarding_rule_id}` - substituted with the forwarding rule's fully
       qualified resource name.
      
       This field must not be set if at least one of the extension chains
       contains plugin extensions. Setting it results in a validation error.
      
       You can set metadata at either the resource level or the extension level.
       The extension level metadata is recommended because you can pass a
       different set of metadata through each extension to the backend.
       
      .google.protobuf.Struct metadata = 10 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getMetadataOrBuilder in interface LbRouteExtensionOrBuilder