All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.envoyproxy.envoy.config.common.mutation_rules.v3.HeaderMutationRules Maven / Gradle / Ivy

There is a newer version: 1.0.46
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: envoy/config/common/mutation_rules/v3/mutation_rules.proto

package io.envoyproxy.envoy.config.common.mutation_rules.v3;

/**
 * 
 * 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 {@code envoy.config.common.mutation_rules.v3.HeaderMutationRules} */ public final class HeaderMutationRules extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:envoy.config.common.mutation_rules.v3.HeaderMutationRules) HeaderMutationRulesOrBuilder { private static final long serialVersionUID = 0L; // Use HeaderMutationRules.newBuilder() to construct. private HeaderMutationRules(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private HeaderMutationRules() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new HeaderMutationRules(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private HeaderMutationRules( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.google.protobuf.BoolValue.Builder subBuilder = null; if (allowAllRouting_ != null) { subBuilder = allowAllRouting_.toBuilder(); } allowAllRouting_ = input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(allowAllRouting_); allowAllRouting_ = subBuilder.buildPartial(); } break; } case 18: { com.google.protobuf.BoolValue.Builder subBuilder = null; if (allowEnvoy_ != null) { subBuilder = allowEnvoy_.toBuilder(); } allowEnvoy_ = input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(allowEnvoy_); allowEnvoy_ = subBuilder.buildPartial(); } break; } case 26: { com.google.protobuf.BoolValue.Builder subBuilder = null; if (disallowSystem_ != null) { subBuilder = disallowSystem_.toBuilder(); } disallowSystem_ = input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(disallowSystem_); disallowSystem_ = subBuilder.buildPartial(); } break; } case 34: { com.google.protobuf.BoolValue.Builder subBuilder = null; if (disallowAll_ != null) { subBuilder = disallowAll_.toBuilder(); } disallowAll_ = input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(disallowAll_); disallowAll_ = subBuilder.buildPartial(); } break; } case 42: { io.envoyproxy.envoy.type.matcher.v3.RegexMatcher.Builder subBuilder = null; if (allowExpression_ != null) { subBuilder = allowExpression_.toBuilder(); } allowExpression_ = input.readMessage(io.envoyproxy.envoy.type.matcher.v3.RegexMatcher.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(allowExpression_); allowExpression_ = subBuilder.buildPartial(); } break; } case 50: { io.envoyproxy.envoy.type.matcher.v3.RegexMatcher.Builder subBuilder = null; if (disallowExpression_ != null) { subBuilder = disallowExpression_.toBuilder(); } disallowExpression_ = input.readMessage(io.envoyproxy.envoy.type.matcher.v3.RegexMatcher.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(disallowExpression_); disallowExpression_ = subBuilder.buildPartial(); } break; } case 58: { com.google.protobuf.BoolValue.Builder subBuilder = null; if (disallowIsError_ != null) { subBuilder = disallowIsError_.toBuilder(); } disallowIsError_ = input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(disallowIsError_); disallowIsError_ = subBuilder.buildPartial(); } break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.envoyproxy.envoy.config.common.mutation_rules.v3.MutationRulesProto.internal_static_envoy_config_common_mutation_rules_v3_HeaderMutationRules_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.config.common.mutation_rules.v3.MutationRulesProto.internal_static_envoy_config_common_mutation_rules_v3_HeaderMutationRules_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.config.common.mutation_rules.v3.HeaderMutationRules.class, io.envoyproxy.envoy.config.common.mutation_rules.v3.HeaderMutationRules.Builder.class); } public static final int ALLOW_ALL_ROUTING_FIELD_NUMBER = 1; private com.google.protobuf.BoolValue allowAllRouting_; /** *
   * 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; * @return Whether the allowAllRouting field is set. */ @java.lang.Override public boolean hasAllowAllRouting() { return allowAllRouting_ != null; } /** *
   * 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; * @return The allowAllRouting. */ @java.lang.Override public com.google.protobuf.BoolValue getAllowAllRouting() { return allowAllRouting_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : allowAllRouting_; } /** *
   * 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; */ @java.lang.Override public com.google.protobuf.BoolValueOrBuilder getAllowAllRoutingOrBuilder() { return getAllowAllRouting(); } public static final int ALLOW_ENVOY_FIELD_NUMBER = 2; private com.google.protobuf.BoolValue allowEnvoy_; /** *
   * 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; * @return Whether the allowEnvoy field is set. */ @java.lang.Override public boolean hasAllowEnvoy() { return allowEnvoy_ != null; } /** *
   * 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; * @return The allowEnvoy. */ @java.lang.Override public com.google.protobuf.BoolValue getAllowEnvoy() { return allowEnvoy_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : allowEnvoy_; } /** *
   * 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; */ @java.lang.Override public com.google.protobuf.BoolValueOrBuilder getAllowEnvoyOrBuilder() { return getAllowEnvoy(); } public static final int DISALLOW_SYSTEM_FIELD_NUMBER = 3; private com.google.protobuf.BoolValue disallowSystem_; /** *
   * 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; * @return Whether the disallowSystem field is set. */ @java.lang.Override public boolean hasDisallowSystem() { return disallowSystem_ != null; } /** *
   * 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; * @return The disallowSystem. */ @java.lang.Override public com.google.protobuf.BoolValue getDisallowSystem() { return disallowSystem_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : disallowSystem_; } /** *
   * 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; */ @java.lang.Override public com.google.protobuf.BoolValueOrBuilder getDisallowSystemOrBuilder() { return getDisallowSystem(); } public static final int DISALLOW_ALL_FIELD_NUMBER = 4; private com.google.protobuf.BoolValue disallowAll_; /** *
   * 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; * @return Whether the disallowAll field is set. */ @java.lang.Override public boolean hasDisallowAll() { return disallowAll_ != null; } /** *
   * 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; * @return The disallowAll. */ @java.lang.Override public com.google.protobuf.BoolValue getDisallowAll() { return disallowAll_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : disallowAll_; } /** *
   * 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; */ @java.lang.Override public com.google.protobuf.BoolValueOrBuilder getDisallowAllOrBuilder() { return getDisallowAll(); } public static final int ALLOW_EXPRESSION_FIELD_NUMBER = 5; private io.envoyproxy.envoy.type.matcher.v3.RegexMatcher allowExpression_; /** *
   * 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; * @return Whether the allowExpression field is set. */ @java.lang.Override public boolean hasAllowExpression() { return allowExpression_ != null; } /** *
   * 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; * @return The allowExpression. */ @java.lang.Override public io.envoyproxy.envoy.type.matcher.v3.RegexMatcher getAllowExpression() { return allowExpression_ == null ? io.envoyproxy.envoy.type.matcher.v3.RegexMatcher.getDefaultInstance() : allowExpression_; } /** *
   * 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; */ @java.lang.Override public io.envoyproxy.envoy.type.matcher.v3.RegexMatcherOrBuilder getAllowExpressionOrBuilder() { return getAllowExpression(); } public static final int DISALLOW_EXPRESSION_FIELD_NUMBER = 6; private io.envoyproxy.envoy.type.matcher.v3.RegexMatcher disallowExpression_; /** *
   * If set, specifically disallow any header that matches this regular
   * expression regardless of any other settings.
   * 
* * .envoy.type.matcher.v3.RegexMatcher disallow_expression = 6; * @return Whether the disallowExpression field is set. */ @java.lang.Override public boolean hasDisallowExpression() { return disallowExpression_ != null; } /** *
   * If set, specifically disallow any header that matches this regular
   * expression regardless of any other settings.
   * 
* * .envoy.type.matcher.v3.RegexMatcher disallow_expression = 6; * @return The disallowExpression. */ @java.lang.Override public io.envoyproxy.envoy.type.matcher.v3.RegexMatcher getDisallowExpression() { return disallowExpression_ == null ? io.envoyproxy.envoy.type.matcher.v3.RegexMatcher.getDefaultInstance() : disallowExpression_; } /** *
   * If set, specifically disallow any header that matches this regular
   * expression regardless of any other settings.
   * 
* * .envoy.type.matcher.v3.RegexMatcher disallow_expression = 6; */ @java.lang.Override public io.envoyproxy.envoy.type.matcher.v3.RegexMatcherOrBuilder getDisallowExpressionOrBuilder() { return getDisallowExpression(); } public static final int DISALLOW_IS_ERROR_FIELD_NUMBER = 7; private com.google.protobuf.BoolValue disallowIsError_; /** *
   * 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; * @return Whether the disallowIsError field is set. */ @java.lang.Override public boolean hasDisallowIsError() { return disallowIsError_ != null; } /** *
   * 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; * @return The disallowIsError. */ @java.lang.Override public com.google.protobuf.BoolValue getDisallowIsError() { return disallowIsError_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : disallowIsError_; } /** *
   * 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; */ @java.lang.Override public com.google.protobuf.BoolValueOrBuilder getDisallowIsErrorOrBuilder() { return getDisallowIsError(); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (allowAllRouting_ != null) { output.writeMessage(1, getAllowAllRouting()); } if (allowEnvoy_ != null) { output.writeMessage(2, getAllowEnvoy()); } if (disallowSystem_ != null) { output.writeMessage(3, getDisallowSystem()); } if (disallowAll_ != null) { output.writeMessage(4, getDisallowAll()); } if (allowExpression_ != null) { output.writeMessage(5, getAllowExpression()); } if (disallowExpression_ != null) { output.writeMessage(6, getDisallowExpression()); } if (disallowIsError_ != null) { output.writeMessage(7, getDisallowIsError()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (allowAllRouting_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getAllowAllRouting()); } if (allowEnvoy_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getAllowEnvoy()); } if (disallowSystem_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getDisallowSystem()); } if (disallowAll_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getDisallowAll()); } if (allowExpression_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getAllowExpression()); } if (disallowExpression_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getDisallowExpression()); } if (disallowIsError_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, getDisallowIsError()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof io.envoyproxy.envoy.config.common.mutation_rules.v3.HeaderMutationRules)) { return super.equals(obj); } io.envoyproxy.envoy.config.common.mutation_rules.v3.HeaderMutationRules other = (io.envoyproxy.envoy.config.common.mutation_rules.v3.HeaderMutationRules) obj; if (hasAllowAllRouting() != other.hasAllowAllRouting()) return false; if (hasAllowAllRouting()) { if (!getAllowAllRouting() .equals(other.getAllowAllRouting())) return false; } if (hasAllowEnvoy() != other.hasAllowEnvoy()) return false; if (hasAllowEnvoy()) { if (!getAllowEnvoy() .equals(other.getAllowEnvoy())) return false; } if (hasDisallowSystem() != other.hasDisallowSystem()) return false; if (hasDisallowSystem()) { if (!getDisallowSystem() .equals(other.getDisallowSystem())) return false; } if (hasDisallowAll() != other.hasDisallowAll()) return false; if (hasDisallowAll()) { if (!getDisallowAll() .equals(other.getDisallowAll())) return false; } if (hasAllowExpression() != other.hasAllowExpression()) return false; if (hasAllowExpression()) { if (!getAllowExpression() .equals(other.getAllowExpression())) return false; } if (hasDisallowExpression() != other.hasDisallowExpression()) return false; if (hasDisallowExpression()) { if (!getDisallowExpression() .equals(other.getDisallowExpression())) return false; } if (hasDisallowIsError() != other.hasDisallowIsError()) return false; if (hasDisallowIsError()) { if (!getDisallowIsError() .equals(other.getDisallowIsError())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasAllowAllRouting()) { hash = (37 * hash) + ALLOW_ALL_ROUTING_FIELD_NUMBER; hash = (53 * hash) + getAllowAllRouting().hashCode(); } if (hasAllowEnvoy()) { hash = (37 * hash) + ALLOW_ENVOY_FIELD_NUMBER; hash = (53 * hash) + getAllowEnvoy().hashCode(); } if (hasDisallowSystem()) { hash = (37 * hash) + DISALLOW_SYSTEM_FIELD_NUMBER; hash = (53 * hash) + getDisallowSystem().hashCode(); } if (hasDisallowAll()) { hash = (37 * hash) + DISALLOW_ALL_FIELD_NUMBER; hash = (53 * hash) + getDisallowAll().hashCode(); } if (hasAllowExpression()) { hash = (37 * hash) + ALLOW_EXPRESSION_FIELD_NUMBER; hash = (53 * hash) + getAllowExpression().hashCode(); } if (hasDisallowExpression()) { hash = (37 * hash) + DISALLOW_EXPRESSION_FIELD_NUMBER; hash = (53 * hash) + getDisallowExpression().hashCode(); } if (hasDisallowIsError()) { hash = (37 * hash) + DISALLOW_IS_ERROR_FIELD_NUMBER; hash = (53 * hash) + getDisallowIsError().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.envoyproxy.envoy.config.common.mutation_rules.v3.HeaderMutationRules parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.config.common.mutation_rules.v3.HeaderMutationRules parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.envoyproxy.envoy.config.common.mutation_rules.v3.HeaderMutationRules parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.config.common.mutation_rules.v3.HeaderMutationRules parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.envoyproxy.envoy.config.common.mutation_rules.v3.HeaderMutationRules parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.config.common.mutation_rules.v3.HeaderMutationRules parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.envoyproxy.envoy.config.common.mutation_rules.v3.HeaderMutationRules parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.envoyproxy.envoy.config.common.mutation_rules.v3.HeaderMutationRules parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static io.envoyproxy.envoy.config.common.mutation_rules.v3.HeaderMutationRules parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.envoyproxy.envoy.config.common.mutation_rules.v3.HeaderMutationRules parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static io.envoyproxy.envoy.config.common.mutation_rules.v3.HeaderMutationRules parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.envoyproxy.envoy.config.common.mutation_rules.v3.HeaderMutationRules parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(io.envoyproxy.envoy.config.common.mutation_rules.v3.HeaderMutationRules prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
   * 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 {@code envoy.config.common.mutation_rules.v3.HeaderMutationRules} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:envoy.config.common.mutation_rules.v3.HeaderMutationRules) io.envoyproxy.envoy.config.common.mutation_rules.v3.HeaderMutationRulesOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.envoyproxy.envoy.config.common.mutation_rules.v3.MutationRulesProto.internal_static_envoy_config_common_mutation_rules_v3_HeaderMutationRules_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.config.common.mutation_rules.v3.MutationRulesProto.internal_static_envoy_config_common_mutation_rules_v3_HeaderMutationRules_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.config.common.mutation_rules.v3.HeaderMutationRules.class, io.envoyproxy.envoy.config.common.mutation_rules.v3.HeaderMutationRules.Builder.class); } // Construct using io.envoyproxy.envoy.config.common.mutation_rules.v3.HeaderMutationRules.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); if (allowAllRoutingBuilder_ == null) { allowAllRouting_ = null; } else { allowAllRouting_ = null; allowAllRoutingBuilder_ = null; } if (allowEnvoyBuilder_ == null) { allowEnvoy_ = null; } else { allowEnvoy_ = null; allowEnvoyBuilder_ = null; } if (disallowSystemBuilder_ == null) { disallowSystem_ = null; } else { disallowSystem_ = null; disallowSystemBuilder_ = null; } if (disallowAllBuilder_ == null) { disallowAll_ = null; } else { disallowAll_ = null; disallowAllBuilder_ = null; } if (allowExpressionBuilder_ == null) { allowExpression_ = null; } else { allowExpression_ = null; allowExpressionBuilder_ = null; } if (disallowExpressionBuilder_ == null) { disallowExpression_ = null; } else { disallowExpression_ = null; disallowExpressionBuilder_ = null; } if (disallowIsErrorBuilder_ == null) { disallowIsError_ = null; } else { disallowIsError_ = null; disallowIsErrorBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.envoyproxy.envoy.config.common.mutation_rules.v3.MutationRulesProto.internal_static_envoy_config_common_mutation_rules_v3_HeaderMutationRules_descriptor; } @java.lang.Override public io.envoyproxy.envoy.config.common.mutation_rules.v3.HeaderMutationRules getDefaultInstanceForType() { return io.envoyproxy.envoy.config.common.mutation_rules.v3.HeaderMutationRules.getDefaultInstance(); } @java.lang.Override public io.envoyproxy.envoy.config.common.mutation_rules.v3.HeaderMutationRules build() { io.envoyproxy.envoy.config.common.mutation_rules.v3.HeaderMutationRules result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.envoyproxy.envoy.config.common.mutation_rules.v3.HeaderMutationRules buildPartial() { io.envoyproxy.envoy.config.common.mutation_rules.v3.HeaderMutationRules result = new io.envoyproxy.envoy.config.common.mutation_rules.v3.HeaderMutationRules(this); if (allowAllRoutingBuilder_ == null) { result.allowAllRouting_ = allowAllRouting_; } else { result.allowAllRouting_ = allowAllRoutingBuilder_.build(); } if (allowEnvoyBuilder_ == null) { result.allowEnvoy_ = allowEnvoy_; } else { result.allowEnvoy_ = allowEnvoyBuilder_.build(); } if (disallowSystemBuilder_ == null) { result.disallowSystem_ = disallowSystem_; } else { result.disallowSystem_ = disallowSystemBuilder_.build(); } if (disallowAllBuilder_ == null) { result.disallowAll_ = disallowAll_; } else { result.disallowAll_ = disallowAllBuilder_.build(); } if (allowExpressionBuilder_ == null) { result.allowExpression_ = allowExpression_; } else { result.allowExpression_ = allowExpressionBuilder_.build(); } if (disallowExpressionBuilder_ == null) { result.disallowExpression_ = disallowExpression_; } else { result.disallowExpression_ = disallowExpressionBuilder_.build(); } if (disallowIsErrorBuilder_ == null) { result.disallowIsError_ = disallowIsError_; } else { result.disallowIsError_ = disallowIsErrorBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof io.envoyproxy.envoy.config.common.mutation_rules.v3.HeaderMutationRules) { return mergeFrom((io.envoyproxy.envoy.config.common.mutation_rules.v3.HeaderMutationRules)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.envoyproxy.envoy.config.common.mutation_rules.v3.HeaderMutationRules other) { if (other == io.envoyproxy.envoy.config.common.mutation_rules.v3.HeaderMutationRules.getDefaultInstance()) return this; if (other.hasAllowAllRouting()) { mergeAllowAllRouting(other.getAllowAllRouting()); } if (other.hasAllowEnvoy()) { mergeAllowEnvoy(other.getAllowEnvoy()); } if (other.hasDisallowSystem()) { mergeDisallowSystem(other.getDisallowSystem()); } if (other.hasDisallowAll()) { mergeDisallowAll(other.getDisallowAll()); } if (other.hasAllowExpression()) { mergeAllowExpression(other.getAllowExpression()); } if (other.hasDisallowExpression()) { mergeDisallowExpression(other.getDisallowExpression()); } if (other.hasDisallowIsError()) { mergeDisallowIsError(other.getDisallowIsError()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { io.envoyproxy.envoy.config.common.mutation_rules.v3.HeaderMutationRules parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.envoyproxy.envoy.config.common.mutation_rules.v3.HeaderMutationRules) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.google.protobuf.BoolValue allowAllRouting_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> allowAllRoutingBuilder_; /** *
     * 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; * @return Whether the allowAllRouting field is set. */ public boolean hasAllowAllRouting() { return allowAllRoutingBuilder_ != null || allowAllRouting_ != null; } /** *
     * 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; * @return The allowAllRouting. */ public com.google.protobuf.BoolValue getAllowAllRouting() { if (allowAllRoutingBuilder_ == null) { return allowAllRouting_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : allowAllRouting_; } else { return allowAllRoutingBuilder_.getMessage(); } } /** *
     * 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; */ public Builder setAllowAllRouting(com.google.protobuf.BoolValue value) { if (allowAllRoutingBuilder_ == null) { if (value == null) { throw new NullPointerException(); } allowAllRouting_ = value; onChanged(); } else { allowAllRoutingBuilder_.setMessage(value); } return this; } /** *
     * 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; */ public Builder setAllowAllRouting( com.google.protobuf.BoolValue.Builder builderForValue) { if (allowAllRoutingBuilder_ == null) { allowAllRouting_ = builderForValue.build(); onChanged(); } else { allowAllRoutingBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * 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; */ public Builder mergeAllowAllRouting(com.google.protobuf.BoolValue value) { if (allowAllRoutingBuilder_ == null) { if (allowAllRouting_ != null) { allowAllRouting_ = com.google.protobuf.BoolValue.newBuilder(allowAllRouting_).mergeFrom(value).buildPartial(); } else { allowAllRouting_ = value; } onChanged(); } else { allowAllRoutingBuilder_.mergeFrom(value); } return this; } /** *
     * 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; */ public Builder clearAllowAllRouting() { if (allowAllRoutingBuilder_ == null) { allowAllRouting_ = null; onChanged(); } else { allowAllRouting_ = null; allowAllRoutingBuilder_ = null; } return this; } /** *
     * 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; */ public com.google.protobuf.BoolValue.Builder getAllowAllRoutingBuilder() { onChanged(); return getAllowAllRoutingFieldBuilder().getBuilder(); } /** *
     * 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; */ public com.google.protobuf.BoolValueOrBuilder getAllowAllRoutingOrBuilder() { if (allowAllRoutingBuilder_ != null) { return allowAllRoutingBuilder_.getMessageOrBuilder(); } else { return allowAllRouting_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : allowAllRouting_; } } /** *
     * 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; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> getAllowAllRoutingFieldBuilder() { if (allowAllRoutingBuilder_ == null) { allowAllRoutingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>( getAllowAllRouting(), getParentForChildren(), isClean()); allowAllRouting_ = null; } return allowAllRoutingBuilder_; } private com.google.protobuf.BoolValue allowEnvoy_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> allowEnvoyBuilder_; /** *
     * 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; * @return Whether the allowEnvoy field is set. */ public boolean hasAllowEnvoy() { return allowEnvoyBuilder_ != null || allowEnvoy_ != null; } /** *
     * 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; * @return The allowEnvoy. */ public com.google.protobuf.BoolValue getAllowEnvoy() { if (allowEnvoyBuilder_ == null) { return allowEnvoy_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : allowEnvoy_; } else { return allowEnvoyBuilder_.getMessage(); } } /** *
     * 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; */ public Builder setAllowEnvoy(com.google.protobuf.BoolValue value) { if (allowEnvoyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } allowEnvoy_ = value; onChanged(); } else { allowEnvoyBuilder_.setMessage(value); } return this; } /** *
     * 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; */ public Builder setAllowEnvoy( com.google.protobuf.BoolValue.Builder builderForValue) { if (allowEnvoyBuilder_ == null) { allowEnvoy_ = builderForValue.build(); onChanged(); } else { allowEnvoyBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * 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; */ public Builder mergeAllowEnvoy(com.google.protobuf.BoolValue value) { if (allowEnvoyBuilder_ == null) { if (allowEnvoy_ != null) { allowEnvoy_ = com.google.protobuf.BoolValue.newBuilder(allowEnvoy_).mergeFrom(value).buildPartial(); } else { allowEnvoy_ = value; } onChanged(); } else { allowEnvoyBuilder_.mergeFrom(value); } return this; } /** *
     * 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; */ public Builder clearAllowEnvoy() { if (allowEnvoyBuilder_ == null) { allowEnvoy_ = null; onChanged(); } else { allowEnvoy_ = null; allowEnvoyBuilder_ = null; } return this; } /** *
     * 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; */ public com.google.protobuf.BoolValue.Builder getAllowEnvoyBuilder() { onChanged(); return getAllowEnvoyFieldBuilder().getBuilder(); } /** *
     * 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; */ public com.google.protobuf.BoolValueOrBuilder getAllowEnvoyOrBuilder() { if (allowEnvoyBuilder_ != null) { return allowEnvoyBuilder_.getMessageOrBuilder(); } else { return allowEnvoy_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : allowEnvoy_; } } /** *
     * 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; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> getAllowEnvoyFieldBuilder() { if (allowEnvoyBuilder_ == null) { allowEnvoyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>( getAllowEnvoy(), getParentForChildren(), isClean()); allowEnvoy_ = null; } return allowEnvoyBuilder_; } private com.google.protobuf.BoolValue disallowSystem_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> disallowSystemBuilder_; /** *
     * 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; * @return Whether the disallowSystem field is set. */ public boolean hasDisallowSystem() { return disallowSystemBuilder_ != null || disallowSystem_ != null; } /** *
     * 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; * @return The disallowSystem. */ public com.google.protobuf.BoolValue getDisallowSystem() { if (disallowSystemBuilder_ == null) { return disallowSystem_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : disallowSystem_; } else { return disallowSystemBuilder_.getMessage(); } } /** *
     * 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; */ public Builder setDisallowSystem(com.google.protobuf.BoolValue value) { if (disallowSystemBuilder_ == null) { if (value == null) { throw new NullPointerException(); } disallowSystem_ = value; onChanged(); } else { disallowSystemBuilder_.setMessage(value); } return this; } /** *
     * 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; */ public Builder setDisallowSystem( com.google.protobuf.BoolValue.Builder builderForValue) { if (disallowSystemBuilder_ == null) { disallowSystem_ = builderForValue.build(); onChanged(); } else { disallowSystemBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * 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; */ public Builder mergeDisallowSystem(com.google.protobuf.BoolValue value) { if (disallowSystemBuilder_ == null) { if (disallowSystem_ != null) { disallowSystem_ = com.google.protobuf.BoolValue.newBuilder(disallowSystem_).mergeFrom(value).buildPartial(); } else { disallowSystem_ = value; } onChanged(); } else { disallowSystemBuilder_.mergeFrom(value); } return this; } /** *
     * 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; */ public Builder clearDisallowSystem() { if (disallowSystemBuilder_ == null) { disallowSystem_ = null; onChanged(); } else { disallowSystem_ = null; disallowSystemBuilder_ = null; } return this; } /** *
     * 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; */ public com.google.protobuf.BoolValue.Builder getDisallowSystemBuilder() { onChanged(); return getDisallowSystemFieldBuilder().getBuilder(); } /** *
     * 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; */ public com.google.protobuf.BoolValueOrBuilder getDisallowSystemOrBuilder() { if (disallowSystemBuilder_ != null) { return disallowSystemBuilder_.getMessageOrBuilder(); } else { return disallowSystem_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : disallowSystem_; } } /** *
     * 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; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> getDisallowSystemFieldBuilder() { if (disallowSystemBuilder_ == null) { disallowSystemBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>( getDisallowSystem(), getParentForChildren(), isClean()); disallowSystem_ = null; } return disallowSystemBuilder_; } private com.google.protobuf.BoolValue disallowAll_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> disallowAllBuilder_; /** *
     * 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; * @return Whether the disallowAll field is set. */ public boolean hasDisallowAll() { return disallowAllBuilder_ != null || disallowAll_ != null; } /** *
     * 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; * @return The disallowAll. */ public com.google.protobuf.BoolValue getDisallowAll() { if (disallowAllBuilder_ == null) { return disallowAll_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : disallowAll_; } else { return disallowAllBuilder_.getMessage(); } } /** *
     * 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; */ public Builder setDisallowAll(com.google.protobuf.BoolValue value) { if (disallowAllBuilder_ == null) { if (value == null) { throw new NullPointerException(); } disallowAll_ = value; onChanged(); } else { disallowAllBuilder_.setMessage(value); } return this; } /** *
     * 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; */ public Builder setDisallowAll( com.google.protobuf.BoolValue.Builder builderForValue) { if (disallowAllBuilder_ == null) { disallowAll_ = builderForValue.build(); onChanged(); } else { disallowAllBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * 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; */ public Builder mergeDisallowAll(com.google.protobuf.BoolValue value) { if (disallowAllBuilder_ == null) { if (disallowAll_ != null) { disallowAll_ = com.google.protobuf.BoolValue.newBuilder(disallowAll_).mergeFrom(value).buildPartial(); } else { disallowAll_ = value; } onChanged(); } else { disallowAllBuilder_.mergeFrom(value); } return this; } /** *
     * 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; */ public Builder clearDisallowAll() { if (disallowAllBuilder_ == null) { disallowAll_ = null; onChanged(); } else { disallowAll_ = null; disallowAllBuilder_ = null; } return this; } /** *
     * 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; */ public com.google.protobuf.BoolValue.Builder getDisallowAllBuilder() { onChanged(); return getDisallowAllFieldBuilder().getBuilder(); } /** *
     * 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; */ public com.google.protobuf.BoolValueOrBuilder getDisallowAllOrBuilder() { if (disallowAllBuilder_ != null) { return disallowAllBuilder_.getMessageOrBuilder(); } else { return disallowAll_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : disallowAll_; } } /** *
     * 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; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> getDisallowAllFieldBuilder() { if (disallowAllBuilder_ == null) { disallowAllBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>( getDisallowAll(), getParentForChildren(), isClean()); disallowAll_ = null; } return disallowAllBuilder_; } private io.envoyproxy.envoy.type.matcher.v3.RegexMatcher allowExpression_; private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.type.matcher.v3.RegexMatcher, io.envoyproxy.envoy.type.matcher.v3.RegexMatcher.Builder, io.envoyproxy.envoy.type.matcher.v3.RegexMatcherOrBuilder> allowExpressionBuilder_; /** *
     * 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; * @return Whether the allowExpression field is set. */ public boolean hasAllowExpression() { return allowExpressionBuilder_ != null || allowExpression_ != null; } /** *
     * 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; * @return The allowExpression. */ public io.envoyproxy.envoy.type.matcher.v3.RegexMatcher getAllowExpression() { if (allowExpressionBuilder_ == null) { return allowExpression_ == null ? io.envoyproxy.envoy.type.matcher.v3.RegexMatcher.getDefaultInstance() : allowExpression_; } else { return allowExpressionBuilder_.getMessage(); } } /** *
     * 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; */ public Builder setAllowExpression(io.envoyproxy.envoy.type.matcher.v3.RegexMatcher value) { if (allowExpressionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } allowExpression_ = value; onChanged(); } else { allowExpressionBuilder_.setMessage(value); } return this; } /** *
     * 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; */ public Builder setAllowExpression( io.envoyproxy.envoy.type.matcher.v3.RegexMatcher.Builder builderForValue) { if (allowExpressionBuilder_ == null) { allowExpression_ = builderForValue.build(); onChanged(); } else { allowExpressionBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * 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; */ public Builder mergeAllowExpression(io.envoyproxy.envoy.type.matcher.v3.RegexMatcher value) { if (allowExpressionBuilder_ == null) { if (allowExpression_ != null) { allowExpression_ = io.envoyproxy.envoy.type.matcher.v3.RegexMatcher.newBuilder(allowExpression_).mergeFrom(value).buildPartial(); } else { allowExpression_ = value; } onChanged(); } else { allowExpressionBuilder_.mergeFrom(value); } return this; } /** *
     * 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; */ public Builder clearAllowExpression() { if (allowExpressionBuilder_ == null) { allowExpression_ = null; onChanged(); } else { allowExpression_ = null; allowExpressionBuilder_ = null; } return this; } /** *
     * 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; */ public io.envoyproxy.envoy.type.matcher.v3.RegexMatcher.Builder getAllowExpressionBuilder() { onChanged(); return getAllowExpressionFieldBuilder().getBuilder(); } /** *
     * 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; */ public io.envoyproxy.envoy.type.matcher.v3.RegexMatcherOrBuilder getAllowExpressionOrBuilder() { if (allowExpressionBuilder_ != null) { return allowExpressionBuilder_.getMessageOrBuilder(); } else { return allowExpression_ == null ? io.envoyproxy.envoy.type.matcher.v3.RegexMatcher.getDefaultInstance() : allowExpression_; } } /** *
     * 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; */ private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.type.matcher.v3.RegexMatcher, io.envoyproxy.envoy.type.matcher.v3.RegexMatcher.Builder, io.envoyproxy.envoy.type.matcher.v3.RegexMatcherOrBuilder> getAllowExpressionFieldBuilder() { if (allowExpressionBuilder_ == null) { allowExpressionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.type.matcher.v3.RegexMatcher, io.envoyproxy.envoy.type.matcher.v3.RegexMatcher.Builder, io.envoyproxy.envoy.type.matcher.v3.RegexMatcherOrBuilder>( getAllowExpression(), getParentForChildren(), isClean()); allowExpression_ = null; } return allowExpressionBuilder_; } private io.envoyproxy.envoy.type.matcher.v3.RegexMatcher disallowExpression_; private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.type.matcher.v3.RegexMatcher, io.envoyproxy.envoy.type.matcher.v3.RegexMatcher.Builder, io.envoyproxy.envoy.type.matcher.v3.RegexMatcherOrBuilder> disallowExpressionBuilder_; /** *
     * If set, specifically disallow any header that matches this regular
     * expression regardless of any other settings.
     * 
* * .envoy.type.matcher.v3.RegexMatcher disallow_expression = 6; * @return Whether the disallowExpression field is set. */ public boolean hasDisallowExpression() { return disallowExpressionBuilder_ != null || disallowExpression_ != null; } /** *
     * If set, specifically disallow any header that matches this regular
     * expression regardless of any other settings.
     * 
* * .envoy.type.matcher.v3.RegexMatcher disallow_expression = 6; * @return The disallowExpression. */ public io.envoyproxy.envoy.type.matcher.v3.RegexMatcher getDisallowExpression() { if (disallowExpressionBuilder_ == null) { return disallowExpression_ == null ? io.envoyproxy.envoy.type.matcher.v3.RegexMatcher.getDefaultInstance() : disallowExpression_; } else { return disallowExpressionBuilder_.getMessage(); } } /** *
     * If set, specifically disallow any header that matches this regular
     * expression regardless of any other settings.
     * 
* * .envoy.type.matcher.v3.RegexMatcher disallow_expression = 6; */ public Builder setDisallowExpression(io.envoyproxy.envoy.type.matcher.v3.RegexMatcher value) { if (disallowExpressionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } disallowExpression_ = value; onChanged(); } else { disallowExpressionBuilder_.setMessage(value); } return this; } /** *
     * If set, specifically disallow any header that matches this regular
     * expression regardless of any other settings.
     * 
* * .envoy.type.matcher.v3.RegexMatcher disallow_expression = 6; */ public Builder setDisallowExpression( io.envoyproxy.envoy.type.matcher.v3.RegexMatcher.Builder builderForValue) { if (disallowExpressionBuilder_ == null) { disallowExpression_ = builderForValue.build(); onChanged(); } else { disallowExpressionBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * If set, specifically disallow any header that matches this regular
     * expression regardless of any other settings.
     * 
* * .envoy.type.matcher.v3.RegexMatcher disallow_expression = 6; */ public Builder mergeDisallowExpression(io.envoyproxy.envoy.type.matcher.v3.RegexMatcher value) { if (disallowExpressionBuilder_ == null) { if (disallowExpression_ != null) { disallowExpression_ = io.envoyproxy.envoy.type.matcher.v3.RegexMatcher.newBuilder(disallowExpression_).mergeFrom(value).buildPartial(); } else { disallowExpression_ = value; } onChanged(); } else { disallowExpressionBuilder_.mergeFrom(value); } return this; } /** *
     * If set, specifically disallow any header that matches this regular
     * expression regardless of any other settings.
     * 
* * .envoy.type.matcher.v3.RegexMatcher disallow_expression = 6; */ public Builder clearDisallowExpression() { if (disallowExpressionBuilder_ == null) { disallowExpression_ = null; onChanged(); } else { disallowExpression_ = null; disallowExpressionBuilder_ = null; } return this; } /** *
     * If set, specifically disallow any header that matches this regular
     * expression regardless of any other settings.
     * 
* * .envoy.type.matcher.v3.RegexMatcher disallow_expression = 6; */ public io.envoyproxy.envoy.type.matcher.v3.RegexMatcher.Builder getDisallowExpressionBuilder() { onChanged(); return getDisallowExpressionFieldBuilder().getBuilder(); } /** *
     * If set, specifically disallow any header that matches this regular
     * expression regardless of any other settings.
     * 
* * .envoy.type.matcher.v3.RegexMatcher disallow_expression = 6; */ public io.envoyproxy.envoy.type.matcher.v3.RegexMatcherOrBuilder getDisallowExpressionOrBuilder() { if (disallowExpressionBuilder_ != null) { return disallowExpressionBuilder_.getMessageOrBuilder(); } else { return disallowExpression_ == null ? io.envoyproxy.envoy.type.matcher.v3.RegexMatcher.getDefaultInstance() : disallowExpression_; } } /** *
     * If set, specifically disallow any header that matches this regular
     * expression regardless of any other settings.
     * 
* * .envoy.type.matcher.v3.RegexMatcher disallow_expression = 6; */ private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.type.matcher.v3.RegexMatcher, io.envoyproxy.envoy.type.matcher.v3.RegexMatcher.Builder, io.envoyproxy.envoy.type.matcher.v3.RegexMatcherOrBuilder> getDisallowExpressionFieldBuilder() { if (disallowExpressionBuilder_ == null) { disallowExpressionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.type.matcher.v3.RegexMatcher, io.envoyproxy.envoy.type.matcher.v3.RegexMatcher.Builder, io.envoyproxy.envoy.type.matcher.v3.RegexMatcherOrBuilder>( getDisallowExpression(), getParentForChildren(), isClean()); disallowExpression_ = null; } return disallowExpressionBuilder_; } private com.google.protobuf.BoolValue disallowIsError_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> disallowIsErrorBuilder_; /** *
     * 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; * @return Whether the disallowIsError field is set. */ public boolean hasDisallowIsError() { return disallowIsErrorBuilder_ != null || disallowIsError_ != null; } /** *
     * 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; * @return The disallowIsError. */ public com.google.protobuf.BoolValue getDisallowIsError() { if (disallowIsErrorBuilder_ == null) { return disallowIsError_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : disallowIsError_; } else { return disallowIsErrorBuilder_.getMessage(); } } /** *
     * 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; */ public Builder setDisallowIsError(com.google.protobuf.BoolValue value) { if (disallowIsErrorBuilder_ == null) { if (value == null) { throw new NullPointerException(); } disallowIsError_ = value; onChanged(); } else { disallowIsErrorBuilder_.setMessage(value); } return this; } /** *
     * 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; */ public Builder setDisallowIsError( com.google.protobuf.BoolValue.Builder builderForValue) { if (disallowIsErrorBuilder_ == null) { disallowIsError_ = builderForValue.build(); onChanged(); } else { disallowIsErrorBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * 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; */ public Builder mergeDisallowIsError(com.google.protobuf.BoolValue value) { if (disallowIsErrorBuilder_ == null) { if (disallowIsError_ != null) { disallowIsError_ = com.google.protobuf.BoolValue.newBuilder(disallowIsError_).mergeFrom(value).buildPartial(); } else { disallowIsError_ = value; } onChanged(); } else { disallowIsErrorBuilder_.mergeFrom(value); } return this; } /** *
     * 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; */ public Builder clearDisallowIsError() { if (disallowIsErrorBuilder_ == null) { disallowIsError_ = null; onChanged(); } else { disallowIsError_ = null; disallowIsErrorBuilder_ = null; } return this; } /** *
     * 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; */ public com.google.protobuf.BoolValue.Builder getDisallowIsErrorBuilder() { onChanged(); return getDisallowIsErrorFieldBuilder().getBuilder(); } /** *
     * 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; */ public com.google.protobuf.BoolValueOrBuilder getDisallowIsErrorOrBuilder() { if (disallowIsErrorBuilder_ != null) { return disallowIsErrorBuilder_.getMessageOrBuilder(); } else { return disallowIsError_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : disallowIsError_; } } /** *
     * 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; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> getDisallowIsErrorFieldBuilder() { if (disallowIsErrorBuilder_ == null) { disallowIsErrorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>( getDisallowIsError(), getParentForChildren(), isClean()); disallowIsError_ = null; } return disallowIsErrorBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:envoy.config.common.mutation_rules.v3.HeaderMutationRules) } // @@protoc_insertion_point(class_scope:envoy.config.common.mutation_rules.v3.HeaderMutationRules) private static final io.envoyproxy.envoy.config.common.mutation_rules.v3.HeaderMutationRules DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.envoyproxy.envoy.config.common.mutation_rules.v3.HeaderMutationRules(); } public static io.envoyproxy.envoy.config.common.mutation_rules.v3.HeaderMutationRules getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public HeaderMutationRules parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new HeaderMutationRules(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public io.envoyproxy.envoy.config.common.mutation_rules.v3.HeaderMutationRules getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy