Class HeaderMutationRules.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<HeaderMutationRules.Builder>
io.envoyproxy.envoy.config.common.mutation_rules.v3.HeaderMutationRules.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, HeaderMutationRulesOrBuilder, Cloneable
Enclosing class:
HeaderMutationRules

public static final class HeaderMutationRules.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<HeaderMutationRules.Builder> implements HeaderMutationRulesOrBuilder
 The HeaderMutationRules structure specifies what headers may be
 manipulated by a processing filter. This set of rules makes it
 possible to control which modifications a filter may make.

 By default, an external processing server may add, modify, or remove
 any header except for an "Envoy internal" header (which is typically
 denoted by an x-envoy prefix) or specific headers that may affect
 further filter processing:

 * ``host``
 * ``:authority``
 * ``:scheme``
 * ``:method``

 Every attempt to add, change, append, or remove a header will be
 tested against the rules here. Disallowed header mutations will be
 ignored unless ``disallow_is_error`` is set to true.

 Attempts to remove headers are further constrained -- regardless of the
 settings, system-defined headers (that start with ``:``) and the ``host``
 header may never be removed.

 In addition, a counter will be incremented whenever a mutation is
 rejected. In the ext_proc filter, that counter is named
 ``rejected_header_mutations``.
 [#next-free-field: 8]
 
Protobuf type envoy.config.common.mutation_rules.v3.HeaderMutationRules
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<HeaderMutationRules.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.GeneratedMessageV3.Builder<HeaderMutationRules.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.GeneratedMessageV3.Builder<HeaderMutationRules.Builder>
    • getDefaultInstanceForType

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

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

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

      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<HeaderMutationRules.Builder>
    • setField

      public HeaderMutationRules.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<HeaderMutationRules.Builder>
    • clearField

      public HeaderMutationRules.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<HeaderMutationRules.Builder>
    • clearOneof

      public HeaderMutationRules.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<HeaderMutationRules.Builder>
    • setRepeatedField

      public HeaderMutationRules.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<HeaderMutationRules.Builder>
    • addRepeatedField

      public HeaderMutationRules.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<HeaderMutationRules.Builder>
    • mergeFrom

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

    • isInitialized

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

      public HeaderMutationRules.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<HeaderMutationRules.Builder>
      Throws:
      IOException
    • hasAllowAllRouting

      public boolean hasAllowAllRouting()
       By default, certain headers that could affect processing of subsequent
       filters or request routing cannot be modified. These headers are
       ``host``, ``:authority``, ``:scheme``, and ``:method``. Setting this parameter
       to true allows these headers to be modified as well.
       
      .google.protobuf.BoolValue allow_all_routing = 1;
      Specified by:
      hasAllowAllRouting in interface HeaderMutationRulesOrBuilder
      Returns:
      Whether the allowAllRouting field is set.
    • getAllowAllRouting

      public com.google.protobuf.BoolValue getAllowAllRouting()
       By default, certain headers that could affect processing of subsequent
       filters or request routing cannot be modified. These headers are
       ``host``, ``:authority``, ``:scheme``, and ``:method``. Setting this parameter
       to true allows these headers to be modified as well.
       
      .google.protobuf.BoolValue allow_all_routing = 1;
      Specified by:
      getAllowAllRouting in interface HeaderMutationRulesOrBuilder
      Returns:
      The allowAllRouting.
    • setAllowAllRouting

      public HeaderMutationRules.Builder setAllowAllRouting(com.google.protobuf.BoolValue value)
       By default, certain headers that could affect processing of subsequent
       filters or request routing cannot be modified. These headers are
       ``host``, ``:authority``, ``:scheme``, and ``:method``. Setting this parameter
       to true allows these headers to be modified as well.
       
      .google.protobuf.BoolValue allow_all_routing = 1;
    • setAllowAllRouting

      public HeaderMutationRules.Builder setAllowAllRouting(com.google.protobuf.BoolValue.Builder builderForValue)
       By default, certain headers that could affect processing of subsequent
       filters or request routing cannot be modified. These headers are
       ``host``, ``:authority``, ``:scheme``, and ``:method``. Setting this parameter
       to true allows these headers to be modified as well.
       
      .google.protobuf.BoolValue allow_all_routing = 1;
    • mergeAllowAllRouting

      public HeaderMutationRules.Builder mergeAllowAllRouting(com.google.protobuf.BoolValue value)
       By default, certain headers that could affect processing of subsequent
       filters or request routing cannot be modified. These headers are
       ``host``, ``:authority``, ``:scheme``, and ``:method``. Setting this parameter
       to true allows these headers to be modified as well.
       
      .google.protobuf.BoolValue allow_all_routing = 1;
    • clearAllowAllRouting

      public HeaderMutationRules.Builder clearAllowAllRouting()
       By default, certain headers that could affect processing of subsequent
       filters or request routing cannot be modified. These headers are
       ``host``, ``:authority``, ``:scheme``, and ``:method``. Setting this parameter
       to true allows these headers to be modified as well.
       
      .google.protobuf.BoolValue allow_all_routing = 1;
    • getAllowAllRoutingBuilder

      public com.google.protobuf.BoolValue.Builder getAllowAllRoutingBuilder()
       By default, certain headers that could affect processing of subsequent
       filters or request routing cannot be modified. These headers are
       ``host``, ``:authority``, ``:scheme``, and ``:method``. Setting this parameter
       to true allows these headers to be modified as well.
       
      .google.protobuf.BoolValue allow_all_routing = 1;
    • getAllowAllRoutingOrBuilder

      public com.google.protobuf.BoolValueOrBuilder getAllowAllRoutingOrBuilder()
       By default, certain headers that could affect processing of subsequent
       filters or request routing cannot be modified. These headers are
       ``host``, ``:authority``, ``:scheme``, and ``:method``. Setting this parameter
       to true allows these headers to be modified as well.
       
      .google.protobuf.BoolValue allow_all_routing = 1;
      Specified by:
      getAllowAllRoutingOrBuilder in interface HeaderMutationRulesOrBuilder
    • hasAllowEnvoy

      public boolean hasAllowEnvoy()
       If true, allow modification of envoy internal headers. By default, these
       start with ``x-envoy`` but this may be overridden in the ``Bootstrap``
       configuration using the
       :ref:`header_prefix <envoy_v3_api_field_config.bootstrap.v3.Bootstrap.header_prefix>`
       field. Default is false.
       
      .google.protobuf.BoolValue allow_envoy = 2;
      Specified by:
      hasAllowEnvoy in interface HeaderMutationRulesOrBuilder
      Returns:
      Whether the allowEnvoy field is set.
    • getAllowEnvoy

      public com.google.protobuf.BoolValue getAllowEnvoy()
       If true, allow modification of envoy internal headers. By default, these
       start with ``x-envoy`` but this may be overridden in the ``Bootstrap``
       configuration using the
       :ref:`header_prefix <envoy_v3_api_field_config.bootstrap.v3.Bootstrap.header_prefix>`
       field. Default is false.
       
      .google.protobuf.BoolValue allow_envoy = 2;
      Specified by:
      getAllowEnvoy in interface HeaderMutationRulesOrBuilder
      Returns:
      The allowEnvoy.
    • setAllowEnvoy

      public HeaderMutationRules.Builder setAllowEnvoy(com.google.protobuf.BoolValue value)
       If true, allow modification of envoy internal headers. By default, these
       start with ``x-envoy`` but this may be overridden in the ``Bootstrap``
       configuration using the
       :ref:`header_prefix <envoy_v3_api_field_config.bootstrap.v3.Bootstrap.header_prefix>`
       field. Default is false.
       
      .google.protobuf.BoolValue allow_envoy = 2;
    • setAllowEnvoy

      public HeaderMutationRules.Builder setAllowEnvoy(com.google.protobuf.BoolValue.Builder builderForValue)
       If true, allow modification of envoy internal headers. By default, these
       start with ``x-envoy`` but this may be overridden in the ``Bootstrap``
       configuration using the
       :ref:`header_prefix <envoy_v3_api_field_config.bootstrap.v3.Bootstrap.header_prefix>`
       field. Default is false.
       
      .google.protobuf.BoolValue allow_envoy = 2;
    • mergeAllowEnvoy

      public HeaderMutationRules.Builder mergeAllowEnvoy(com.google.protobuf.BoolValue value)
       If true, allow modification of envoy internal headers. By default, these
       start with ``x-envoy`` but this may be overridden in the ``Bootstrap``
       configuration using the
       :ref:`header_prefix <envoy_v3_api_field_config.bootstrap.v3.Bootstrap.header_prefix>`
       field. Default is false.
       
      .google.protobuf.BoolValue allow_envoy = 2;
    • clearAllowEnvoy

      public HeaderMutationRules.Builder clearAllowEnvoy()
       If true, allow modification of envoy internal headers. By default, these
       start with ``x-envoy`` but this may be overridden in the ``Bootstrap``
       configuration using the
       :ref:`header_prefix <envoy_v3_api_field_config.bootstrap.v3.Bootstrap.header_prefix>`
       field. Default is false.
       
      .google.protobuf.BoolValue allow_envoy = 2;
    • getAllowEnvoyBuilder

      public com.google.protobuf.BoolValue.Builder getAllowEnvoyBuilder()
       If true, allow modification of envoy internal headers. By default, these
       start with ``x-envoy`` but this may be overridden in the ``Bootstrap``
       configuration using the
       :ref:`header_prefix <envoy_v3_api_field_config.bootstrap.v3.Bootstrap.header_prefix>`
       field. Default is false.
       
      .google.protobuf.BoolValue allow_envoy = 2;
    • getAllowEnvoyOrBuilder

      public com.google.protobuf.BoolValueOrBuilder getAllowEnvoyOrBuilder()
       If true, allow modification of envoy internal headers. By default, these
       start with ``x-envoy`` but this may be overridden in the ``Bootstrap``
       configuration using the
       :ref:`header_prefix <envoy_v3_api_field_config.bootstrap.v3.Bootstrap.header_prefix>`
       field. Default is false.
       
      .google.protobuf.BoolValue allow_envoy = 2;
      Specified by:
      getAllowEnvoyOrBuilder in interface HeaderMutationRulesOrBuilder
    • hasDisallowSystem

      public boolean hasDisallowSystem()
       If true, prevent modification of any system header, defined as a header
       that starts with a ``:`` character, regardless of any other settings.
       A processing server may still override the ``:status`` of an HTTP response
       using an ``ImmediateResponse`` message. Default is false.
       
      .google.protobuf.BoolValue disallow_system = 3;
      Specified by:
      hasDisallowSystem in interface HeaderMutationRulesOrBuilder
      Returns:
      Whether the disallowSystem field is set.
    • getDisallowSystem

      public com.google.protobuf.BoolValue getDisallowSystem()
       If true, prevent modification of any system header, defined as a header
       that starts with a ``:`` character, regardless of any other settings.
       A processing server may still override the ``:status`` of an HTTP response
       using an ``ImmediateResponse`` message. Default is false.
       
      .google.protobuf.BoolValue disallow_system = 3;
      Specified by:
      getDisallowSystem in interface HeaderMutationRulesOrBuilder
      Returns:
      The disallowSystem.
    • setDisallowSystem

      public HeaderMutationRules.Builder setDisallowSystem(com.google.protobuf.BoolValue value)
       If true, prevent modification of any system header, defined as a header
       that starts with a ``:`` character, regardless of any other settings.
       A processing server may still override the ``:status`` of an HTTP response
       using an ``ImmediateResponse`` message. Default is false.
       
      .google.protobuf.BoolValue disallow_system = 3;
    • setDisallowSystem

      public HeaderMutationRules.Builder setDisallowSystem(com.google.protobuf.BoolValue.Builder builderForValue)
       If true, prevent modification of any system header, defined as a header
       that starts with a ``:`` character, regardless of any other settings.
       A processing server may still override the ``:status`` of an HTTP response
       using an ``ImmediateResponse`` message. Default is false.
       
      .google.protobuf.BoolValue disallow_system = 3;
    • mergeDisallowSystem

      public HeaderMutationRules.Builder mergeDisallowSystem(com.google.protobuf.BoolValue value)
       If true, prevent modification of any system header, defined as a header
       that starts with a ``:`` character, regardless of any other settings.
       A processing server may still override the ``:status`` of an HTTP response
       using an ``ImmediateResponse`` message. Default is false.
       
      .google.protobuf.BoolValue disallow_system = 3;
    • clearDisallowSystem

      public HeaderMutationRules.Builder clearDisallowSystem()
       If true, prevent modification of any system header, defined as a header
       that starts with a ``:`` character, regardless of any other settings.
       A processing server may still override the ``:status`` of an HTTP response
       using an ``ImmediateResponse`` message. Default is false.
       
      .google.protobuf.BoolValue disallow_system = 3;
    • getDisallowSystemBuilder

      public com.google.protobuf.BoolValue.Builder getDisallowSystemBuilder()
       If true, prevent modification of any system header, defined as a header
       that starts with a ``:`` character, regardless of any other settings.
       A processing server may still override the ``:status`` of an HTTP response
       using an ``ImmediateResponse`` message. Default is false.
       
      .google.protobuf.BoolValue disallow_system = 3;
    • getDisallowSystemOrBuilder

      public com.google.protobuf.BoolValueOrBuilder getDisallowSystemOrBuilder()
       If true, prevent modification of any system header, defined as a header
       that starts with a ``:`` character, regardless of any other settings.
       A processing server may still override the ``:status`` of an HTTP response
       using an ``ImmediateResponse`` message. Default is false.
       
      .google.protobuf.BoolValue disallow_system = 3;
      Specified by:
      getDisallowSystemOrBuilder in interface HeaderMutationRulesOrBuilder
    • hasDisallowAll

      public boolean hasDisallowAll()
       If true, prevent modifications of all header values, regardless of any
       other settings. A processing server may still override the ``:status``
       of an HTTP response using an ``ImmediateResponse`` message. Default is false.
       
      .google.protobuf.BoolValue disallow_all = 4;
      Specified by:
      hasDisallowAll in interface HeaderMutationRulesOrBuilder
      Returns:
      Whether the disallowAll field is set.
    • getDisallowAll

      public com.google.protobuf.BoolValue getDisallowAll()
       If true, prevent modifications of all header values, regardless of any
       other settings. A processing server may still override the ``:status``
       of an HTTP response using an ``ImmediateResponse`` message. Default is false.
       
      .google.protobuf.BoolValue disallow_all = 4;
      Specified by:
      getDisallowAll in interface HeaderMutationRulesOrBuilder
      Returns:
      The disallowAll.
    • setDisallowAll

      public HeaderMutationRules.Builder setDisallowAll(com.google.protobuf.BoolValue value)
       If true, prevent modifications of all header values, regardless of any
       other settings. A processing server may still override the ``:status``
       of an HTTP response using an ``ImmediateResponse`` message. Default is false.
       
      .google.protobuf.BoolValue disallow_all = 4;
    • setDisallowAll

      public HeaderMutationRules.Builder setDisallowAll(com.google.protobuf.BoolValue.Builder builderForValue)
       If true, prevent modifications of all header values, regardless of any
       other settings. A processing server may still override the ``:status``
       of an HTTP response using an ``ImmediateResponse`` message. Default is false.
       
      .google.protobuf.BoolValue disallow_all = 4;
    • mergeDisallowAll

      public HeaderMutationRules.Builder mergeDisallowAll(com.google.protobuf.BoolValue value)
       If true, prevent modifications of all header values, regardless of any
       other settings. A processing server may still override the ``:status``
       of an HTTP response using an ``ImmediateResponse`` message. Default is false.
       
      .google.protobuf.BoolValue disallow_all = 4;
    • clearDisallowAll

      public HeaderMutationRules.Builder clearDisallowAll()
       If true, prevent modifications of all header values, regardless of any
       other settings. A processing server may still override the ``:status``
       of an HTTP response using an ``ImmediateResponse`` message. Default is false.
       
      .google.protobuf.BoolValue disallow_all = 4;
    • getDisallowAllBuilder

      public com.google.protobuf.BoolValue.Builder getDisallowAllBuilder()
       If true, prevent modifications of all header values, regardless of any
       other settings. A processing server may still override the ``:status``
       of an HTTP response using an ``ImmediateResponse`` message. Default is false.
       
      .google.protobuf.BoolValue disallow_all = 4;
    • getDisallowAllOrBuilder

      public com.google.protobuf.BoolValueOrBuilder getDisallowAllOrBuilder()
       If true, prevent modifications of all header values, regardless of any
       other settings. A processing server may still override the ``:status``
       of an HTTP response using an ``ImmediateResponse`` message. Default is false.
       
      .google.protobuf.BoolValue disallow_all = 4;
      Specified by:
      getDisallowAllOrBuilder in interface HeaderMutationRulesOrBuilder
    • hasAllowExpression

      public boolean hasAllowExpression()
       If set, specifically allow any header that matches this regular
       expression. This overrides all other settings except for
       ``disallow_expression``.
       
      .envoy.type.matcher.v3.RegexMatcher allow_expression = 5;
      Specified by:
      hasAllowExpression in interface HeaderMutationRulesOrBuilder
      Returns:
      Whether the allowExpression field is set.
    • getAllowExpression

      public RegexMatcher getAllowExpression()
       If set, specifically allow any header that matches this regular
       expression. This overrides all other settings except for
       ``disallow_expression``.
       
      .envoy.type.matcher.v3.RegexMatcher allow_expression = 5;
      Specified by:
      getAllowExpression in interface HeaderMutationRulesOrBuilder
      Returns:
      The allowExpression.
    • setAllowExpression

      public HeaderMutationRules.Builder setAllowExpression(RegexMatcher value)
       If set, specifically allow any header that matches this regular
       expression. This overrides all other settings except for
       ``disallow_expression``.
       
      .envoy.type.matcher.v3.RegexMatcher allow_expression = 5;
    • setAllowExpression

      public HeaderMutationRules.Builder setAllowExpression(RegexMatcher.Builder builderForValue)
       If set, specifically allow any header that matches this regular
       expression. This overrides all other settings except for
       ``disallow_expression``.
       
      .envoy.type.matcher.v3.RegexMatcher allow_expression = 5;
    • mergeAllowExpression

      public HeaderMutationRules.Builder mergeAllowExpression(RegexMatcher value)
       If set, specifically allow any header that matches this regular
       expression. This overrides all other settings except for
       ``disallow_expression``.
       
      .envoy.type.matcher.v3.RegexMatcher allow_expression = 5;
    • clearAllowExpression

      public HeaderMutationRules.Builder clearAllowExpression()
       If set, specifically allow any header that matches this regular
       expression. This overrides all other settings except for
       ``disallow_expression``.
       
      .envoy.type.matcher.v3.RegexMatcher allow_expression = 5;
    • getAllowExpressionBuilder

      public RegexMatcher.Builder getAllowExpressionBuilder()
       If set, specifically allow any header that matches this regular
       expression. This overrides all other settings except for
       ``disallow_expression``.
       
      .envoy.type.matcher.v3.RegexMatcher allow_expression = 5;
    • getAllowExpressionOrBuilder

      public RegexMatcherOrBuilder getAllowExpressionOrBuilder()
       If set, specifically allow any header that matches this regular
       expression. This overrides all other settings except for
       ``disallow_expression``.
       
      .envoy.type.matcher.v3.RegexMatcher allow_expression = 5;
      Specified by:
      getAllowExpressionOrBuilder in interface HeaderMutationRulesOrBuilder
    • hasDisallowExpression

      public boolean hasDisallowExpression()
       If set, specifically disallow any header that matches this regular
       expression regardless of any other settings.
       
      .envoy.type.matcher.v3.RegexMatcher disallow_expression = 6;
      Specified by:
      hasDisallowExpression in interface HeaderMutationRulesOrBuilder
      Returns:
      Whether the disallowExpression field is set.
    • getDisallowExpression

      public RegexMatcher getDisallowExpression()
       If set, specifically disallow any header that matches this regular
       expression regardless of any other settings.
       
      .envoy.type.matcher.v3.RegexMatcher disallow_expression = 6;
      Specified by:
      getDisallowExpression in interface HeaderMutationRulesOrBuilder
      Returns:
      The disallowExpression.
    • setDisallowExpression

      public HeaderMutationRules.Builder setDisallowExpression(RegexMatcher value)
       If set, specifically disallow any header that matches this regular
       expression regardless of any other settings.
       
      .envoy.type.matcher.v3.RegexMatcher disallow_expression = 6;
    • setDisallowExpression

      public HeaderMutationRules.Builder setDisallowExpression(RegexMatcher.Builder builderForValue)
       If set, specifically disallow any header that matches this regular
       expression regardless of any other settings.
       
      .envoy.type.matcher.v3.RegexMatcher disallow_expression = 6;
    • mergeDisallowExpression

      public HeaderMutationRules.Builder mergeDisallowExpression(RegexMatcher value)
       If set, specifically disallow any header that matches this regular
       expression regardless of any other settings.
       
      .envoy.type.matcher.v3.RegexMatcher disallow_expression = 6;
    • clearDisallowExpression

      public HeaderMutationRules.Builder clearDisallowExpression()
       If set, specifically disallow any header that matches this regular
       expression regardless of any other settings.
       
      .envoy.type.matcher.v3.RegexMatcher disallow_expression = 6;
    • getDisallowExpressionBuilder

      public RegexMatcher.Builder getDisallowExpressionBuilder()
       If set, specifically disallow any header that matches this regular
       expression regardless of any other settings.
       
      .envoy.type.matcher.v3.RegexMatcher disallow_expression = 6;
    • getDisallowExpressionOrBuilder

      public RegexMatcherOrBuilder getDisallowExpressionOrBuilder()
       If set, specifically disallow any header that matches this regular
       expression regardless of any other settings.
       
      .envoy.type.matcher.v3.RegexMatcher disallow_expression = 6;
      Specified by:
      getDisallowExpressionOrBuilder in interface HeaderMutationRulesOrBuilder
    • hasDisallowIsError

      public boolean hasDisallowIsError()
       If true, and if the rules in this list cause a header mutation to be
       disallowed, then the filter using this configuration will terminate the
       request with a 500 error. In addition, regardless of the setting of this
       parameter, any attempt to set, add, or modify a disallowed header will
       cause the ``rejected_header_mutations`` counter to be incremented.
       Default is false.
       
      .google.protobuf.BoolValue disallow_is_error = 7;
      Specified by:
      hasDisallowIsError in interface HeaderMutationRulesOrBuilder
      Returns:
      Whether the disallowIsError field is set.
    • getDisallowIsError

      public com.google.protobuf.BoolValue getDisallowIsError()
       If true, and if the rules in this list cause a header mutation to be
       disallowed, then the filter using this configuration will terminate the
       request with a 500 error. In addition, regardless of the setting of this
       parameter, any attempt to set, add, or modify a disallowed header will
       cause the ``rejected_header_mutations`` counter to be incremented.
       Default is false.
       
      .google.protobuf.BoolValue disallow_is_error = 7;
      Specified by:
      getDisallowIsError in interface HeaderMutationRulesOrBuilder
      Returns:
      The disallowIsError.
    • setDisallowIsError

      public HeaderMutationRules.Builder setDisallowIsError(com.google.protobuf.BoolValue value)
       If true, and if the rules in this list cause a header mutation to be
       disallowed, then the filter using this configuration will terminate the
       request with a 500 error. In addition, regardless of the setting of this
       parameter, any attempt to set, add, or modify a disallowed header will
       cause the ``rejected_header_mutations`` counter to be incremented.
       Default is false.
       
      .google.protobuf.BoolValue disallow_is_error = 7;
    • setDisallowIsError

      public HeaderMutationRules.Builder setDisallowIsError(com.google.protobuf.BoolValue.Builder builderForValue)
       If true, and if the rules in this list cause a header mutation to be
       disallowed, then the filter using this configuration will terminate the
       request with a 500 error. In addition, regardless of the setting of this
       parameter, any attempt to set, add, or modify a disallowed header will
       cause the ``rejected_header_mutations`` counter to be incremented.
       Default is false.
       
      .google.protobuf.BoolValue disallow_is_error = 7;
    • mergeDisallowIsError

      public HeaderMutationRules.Builder mergeDisallowIsError(com.google.protobuf.BoolValue value)
       If true, and if the rules in this list cause a header mutation to be
       disallowed, then the filter using this configuration will terminate the
       request with a 500 error. In addition, regardless of the setting of this
       parameter, any attempt to set, add, or modify a disallowed header will
       cause the ``rejected_header_mutations`` counter to be incremented.
       Default is false.
       
      .google.protobuf.BoolValue disallow_is_error = 7;
    • clearDisallowIsError

      public HeaderMutationRules.Builder clearDisallowIsError()
       If true, and if the rules in this list cause a header mutation to be
       disallowed, then the filter using this configuration will terminate the
       request with a 500 error. In addition, regardless of the setting of this
       parameter, any attempt to set, add, or modify a disallowed header will
       cause the ``rejected_header_mutations`` counter to be incremented.
       Default is false.
       
      .google.protobuf.BoolValue disallow_is_error = 7;
    • getDisallowIsErrorBuilder

      public com.google.protobuf.BoolValue.Builder getDisallowIsErrorBuilder()
       If true, and if the rules in this list cause a header mutation to be
       disallowed, then the filter using this configuration will terminate the
       request with a 500 error. In addition, regardless of the setting of this
       parameter, any attempt to set, add, or modify a disallowed header will
       cause the ``rejected_header_mutations`` counter to be incremented.
       Default is false.
       
      .google.protobuf.BoolValue disallow_is_error = 7;
    • getDisallowIsErrorOrBuilder

      public com.google.protobuf.BoolValueOrBuilder getDisallowIsErrorOrBuilder()
       If true, and if the rules in this list cause a header mutation to be
       disallowed, then the filter using this configuration will terminate the
       request with a 500 error. In addition, regardless of the setting of this
       parameter, any attempt to set, add, or modify a disallowed header will
       cause the ``rejected_header_mutations`` counter to be incremented.
       Default is false.
       
      .google.protobuf.BoolValue disallow_is_error = 7;
      Specified by:
      getDisallowIsErrorOrBuilder in interface HeaderMutationRulesOrBuilder
    • setUnknownFields

      public final HeaderMutationRules.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<HeaderMutationRules.Builder>
    • mergeUnknownFields

      public final HeaderMutationRules.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<HeaderMutationRules.Builder>