
io.envoyproxy.envoy.config.common.mutation_rules.v3.HeaderMutationRules Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: envoy/config/common/mutation_rules/v3/mutation_rules.proto
// Protobuf Java Version: 3.25.1
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();
}
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);
}
private int bitField0_;
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 ((bitField0_ & 0x00000001) != 0);
}
/**
*
* 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 allowAllRouting_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : allowAllRouting_;
}
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 ((bitField0_ & 0x00000002) != 0);
}
/**
*
* 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 allowEnvoy_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : allowEnvoy_;
}
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 ((bitField0_ & 0x00000004) != 0);
}
/**
*
* 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 disallowSystem_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : disallowSystem_;
}
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 ((bitField0_ & 0x00000008) != 0);
}
/**
*
* 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 disallowAll_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : disallowAll_;
}
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 ((bitField0_ & 0x00000010) != 0);
}
/**
*
* 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 allowExpression_ == null ? io.envoyproxy.envoy.type.matcher.v3.RegexMatcher.getDefaultInstance() : allowExpression_;
}
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 ((bitField0_ & 0x00000020) != 0);
}
/**
*
* 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 disallowExpression_ == null ? io.envoyproxy.envoy.type.matcher.v3.RegexMatcher.getDefaultInstance() : disallowExpression_;
}
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 ((bitField0_ & 0x00000040) != 0);
}
/**
*
* 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 disallowIsError_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : disallowIsError_;
}
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 (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getAllowAllRouting());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(2, getAllowEnvoy());
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeMessage(3, getDisallowSystem());
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeMessage(4, getDisallowAll());
}
if (((bitField0_ & 0x00000010) != 0)) {
output.writeMessage(5, getAllowExpression());
}
if (((bitField0_ & 0x00000020) != 0)) {
output.writeMessage(6, getDisallowExpression());
}
if (((bitField0_ & 0x00000040) != 0)) {
output.writeMessage(7, getDisallowIsError());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getAllowAllRouting());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getAllowEnvoy());
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getDisallowSystem());
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getDisallowAll());
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getAllowExpression());
}
if (((bitField0_ & 0x00000020) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, getDisallowExpression());
}
if (((bitField0_ & 0x00000040) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, getDisallowIsError());
}
size += getUnknownFields().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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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) {
getAllowAllRoutingFieldBuilder();
getAllowEnvoyFieldBuilder();
getDisallowSystemFieldBuilder();
getDisallowAllFieldBuilder();
getAllowExpressionFieldBuilder();
getDisallowExpressionFieldBuilder();
getDisallowIsErrorFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
allowAllRouting_ = null;
if (allowAllRoutingBuilder_ != null) {
allowAllRoutingBuilder_.dispose();
allowAllRoutingBuilder_ = null;
}
allowEnvoy_ = null;
if (allowEnvoyBuilder_ != null) {
allowEnvoyBuilder_.dispose();
allowEnvoyBuilder_ = null;
}
disallowSystem_ = null;
if (disallowSystemBuilder_ != null) {
disallowSystemBuilder_.dispose();
disallowSystemBuilder_ = null;
}
disallowAll_ = null;
if (disallowAllBuilder_ != null) {
disallowAllBuilder_.dispose();
disallowAllBuilder_ = null;
}
allowExpression_ = null;
if (allowExpressionBuilder_ != null) {
allowExpressionBuilder_.dispose();
allowExpressionBuilder_ = null;
}
disallowExpression_ = null;
if (disallowExpressionBuilder_ != null) {
disallowExpressionBuilder_.dispose();
disallowExpressionBuilder_ = null;
}
disallowIsError_ = null;
if (disallowIsErrorBuilder_ != null) {
disallowIsErrorBuilder_.dispose();
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 (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(io.envoyproxy.envoy.config.common.mutation_rules.v3.HeaderMutationRules result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.allowAllRouting_ = allowAllRoutingBuilder_ == null
? allowAllRouting_
: allowAllRoutingBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.allowEnvoy_ = allowEnvoyBuilder_ == null
? allowEnvoy_
: allowEnvoyBuilder_.build();
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.disallowSystem_ = disallowSystemBuilder_ == null
? disallowSystem_
: disallowSystemBuilder_.build();
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.disallowAll_ = disallowAllBuilder_ == null
? disallowAll_
: disallowAllBuilder_.build();
to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.allowExpression_ = allowExpressionBuilder_ == null
? allowExpression_
: allowExpressionBuilder_.build();
to_bitField0_ |= 0x00000010;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.disallowExpression_ = disallowExpressionBuilder_ == null
? disallowExpression_
: disallowExpressionBuilder_.build();
to_bitField0_ |= 0x00000020;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.disallowIsError_ = disallowIsErrorBuilder_ == null
? disallowIsError_
: disallowIsErrorBuilder_.build();
to_bitField0_ |= 0x00000040;
}
result.bitField0_ |= to_bitField0_;
}
@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.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
input.readMessage(
getAllowAllRoutingFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
input.readMessage(
getAllowEnvoyFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
input.readMessage(
getDisallowSystemFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000004;
break;
} // case 26
case 34: {
input.readMessage(
getDisallowAllFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000008;
break;
} // case 34
case 42: {
input.readMessage(
getAllowExpressionFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000010;
break;
} // case 42
case 50: {
input.readMessage(
getDisallowExpressionFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000020;
break;
} // case 50
case 58: {
input.readMessage(
getDisallowIsErrorFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000040;
break;
} // case 58
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
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 ((bitField0_ & 0x00000001) != 0);
}
/**
*
* 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;
} else {
allowAllRoutingBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
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();
} else {
allowAllRoutingBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
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 (((bitField0_ & 0x00000001) != 0) &&
allowAllRouting_ != null &&
allowAllRouting_ != com.google.protobuf.BoolValue.getDefaultInstance()) {
getAllowAllRoutingBuilder().mergeFrom(value);
} else {
allowAllRouting_ = value;
}
} else {
allowAllRoutingBuilder_.mergeFrom(value);
}
if (allowAllRouting_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
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() {
bitField0_ = (bitField0_ & ~0x00000001);
allowAllRouting_ = null;
if (allowAllRoutingBuilder_ != null) {
allowAllRoutingBuilder_.dispose();
allowAllRoutingBuilder_ = null;
}
onChanged();
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() {
bitField0_ |= 0x00000001;
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 ((bitField0_ & 0x00000002) != 0);
}
/**
*
* 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;
} else {
allowEnvoyBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
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();
} else {
allowEnvoyBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
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 (((bitField0_ & 0x00000002) != 0) &&
allowEnvoy_ != null &&
allowEnvoy_ != com.google.protobuf.BoolValue.getDefaultInstance()) {
getAllowEnvoyBuilder().mergeFrom(value);
} else {
allowEnvoy_ = value;
}
} else {
allowEnvoyBuilder_.mergeFrom(value);
}
if (allowEnvoy_ != null) {
bitField0_ |= 0x00000002;
onChanged();
}
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() {
bitField0_ = (bitField0_ & ~0x00000002);
allowEnvoy_ = null;
if (allowEnvoyBuilder_ != null) {
allowEnvoyBuilder_.dispose();
allowEnvoyBuilder_ = null;
}
onChanged();
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() {
bitField0_ |= 0x00000002;
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 ((bitField0_ & 0x00000004) != 0);
}
/**
*
* 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;
} else {
disallowSystemBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
onChanged();
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();
} else {
disallowSystemBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
onChanged();
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 (((bitField0_ & 0x00000004) != 0) &&
disallowSystem_ != null &&
disallowSystem_ != com.google.protobuf.BoolValue.getDefaultInstance()) {
getDisallowSystemBuilder().mergeFrom(value);
} else {
disallowSystem_ = value;
}
} else {
disallowSystemBuilder_.mergeFrom(value);
}
if (disallowSystem_ != null) {
bitField0_ |= 0x00000004;
onChanged();
}
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() {
bitField0_ = (bitField0_ & ~0x00000004);
disallowSystem_ = null;
if (disallowSystemBuilder_ != null) {
disallowSystemBuilder_.dispose();
disallowSystemBuilder_ = null;
}
onChanged();
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() {
bitField0_ |= 0x00000004;
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 ((bitField0_ & 0x00000008) != 0);
}
/**
*
* 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;
} else {
disallowAllBuilder_.setMessage(value);
}
bitField0_ |= 0x00000008;
onChanged();
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();
} else {
disallowAllBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000008;
onChanged();
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 (((bitField0_ & 0x00000008) != 0) &&
disallowAll_ != null &&
disallowAll_ != com.google.protobuf.BoolValue.getDefaultInstance()) {
getDisallowAllBuilder().mergeFrom(value);
} else {
disallowAll_ = value;
}
} else {
disallowAllBuilder_.mergeFrom(value);
}
if (disallowAll_ != null) {
bitField0_ |= 0x00000008;
onChanged();
}
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() {
bitField0_ = (bitField0_ & ~0x00000008);
disallowAll_ = null;
if (disallowAllBuilder_ != null) {
disallowAllBuilder_.dispose();
disallowAllBuilder_ = null;
}
onChanged();
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() {
bitField0_ |= 0x00000008;
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 ((bitField0_ & 0x00000010) != 0);
}
/**
*
* 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;
} else {
allowExpressionBuilder_.setMessage(value);
}
bitField0_ |= 0x00000010;
onChanged();
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();
} else {
allowExpressionBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000010;
onChanged();
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 (((bitField0_ & 0x00000010) != 0) &&
allowExpression_ != null &&
allowExpression_ != io.envoyproxy.envoy.type.matcher.v3.RegexMatcher.getDefaultInstance()) {
getAllowExpressionBuilder().mergeFrom(value);
} else {
allowExpression_ = value;
}
} else {
allowExpressionBuilder_.mergeFrom(value);
}
if (allowExpression_ != null) {
bitField0_ |= 0x00000010;
onChanged();
}
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() {
bitField0_ = (bitField0_ & ~0x00000010);
allowExpression_ = null;
if (allowExpressionBuilder_ != null) {
allowExpressionBuilder_.dispose();
allowExpressionBuilder_ = null;
}
onChanged();
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() {
bitField0_ |= 0x00000010;
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 ((bitField0_ & 0x00000020) != 0);
}
/**
*
* 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;
} else {
disallowExpressionBuilder_.setMessage(value);
}
bitField0_ |= 0x00000020;
onChanged();
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();
} else {
disallowExpressionBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000020;
onChanged();
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 (((bitField0_ & 0x00000020) != 0) &&
disallowExpression_ != null &&
disallowExpression_ != io.envoyproxy.envoy.type.matcher.v3.RegexMatcher.getDefaultInstance()) {
getDisallowExpressionBuilder().mergeFrom(value);
} else {
disallowExpression_ = value;
}
} else {
disallowExpressionBuilder_.mergeFrom(value);
}
if (disallowExpression_ != null) {
bitField0_ |= 0x00000020;
onChanged();
}
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() {
bitField0_ = (bitField0_ & ~0x00000020);
disallowExpression_ = null;
if (disallowExpressionBuilder_ != null) {
disallowExpressionBuilder_.dispose();
disallowExpressionBuilder_ = null;
}
onChanged();
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() {
bitField0_ |= 0x00000020;
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 ((bitField0_ & 0x00000040) != 0);
}
/**
*
* 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;
} else {
disallowIsErrorBuilder_.setMessage(value);
}
bitField0_ |= 0x00000040;
onChanged();
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();
} else {
disallowIsErrorBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000040;
onChanged();
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 (((bitField0_ & 0x00000040) != 0) &&
disallowIsError_ != null &&
disallowIsError_ != com.google.protobuf.BoolValue.getDefaultInstance()) {
getDisallowIsErrorBuilder().mergeFrom(value);
} else {
disallowIsError_ = value;
}
} else {
disallowIsErrorBuilder_.mergeFrom(value);
}
if (disallowIsError_ != null) {
bitField0_ |= 0x00000040;
onChanged();
}
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() {
bitField0_ = (bitField0_ & ~0x00000040);
disallowIsError_ = null;
if (disallowIsErrorBuilder_ != null) {
disallowIsErrorBuilder_.dispose();
disallowIsErrorBuilder_ = null;
}
onChanged();
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() {
bitField0_ |= 0x00000040;
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 {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
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 - 2025 Weber Informatics LLC | Privacy Policy