Class HeaderMutationRules.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<HeaderMutationRules.Builder>
-
- io.envoyproxy.envoy.config.common.mutation_rules.v3.HeaderMutationRules.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,HeaderMutationRulesOrBuilder,Cloneable
- Enclosing class:
- HeaderMutationRules
public static final class HeaderMutationRules.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<HeaderMutationRules.Builder> implements HeaderMutationRulesOrBuilder
The HeaderMutationRules structure specifies what headers may be manipulated by a processing filter. This set of rules makes it possible to control which modifications a filter may make. By default, an external processing server may add, modify, or remove any header except for an "Envoy internal" header (which is typically denoted by an x-envoy prefix) or specific headers that may affect further filter processing: * ``host`` * ``:authority`` * ``:scheme`` * ``:method`` Every attempt to add, change, append, or remove a header will be tested against the rules here. Disallowed header mutations will be ignored unless ``disallow_is_error`` is set to true. Attempts to remove headers are further constrained -- regardless of the settings, system-defined headers (that start with ``:``) and the ``host`` header may never be removed. In addition, a counter will be incremented whenever a mutation is rejected. In the ext_proc filter, that counter is named ``rejected_header_mutations``. [#next-free-field: 8]
Protobuf typeenvoy.config.common.mutation_rules.v3.HeaderMutationRules
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description HeaderMutationRules.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)HeaderMutationRulesbuild()HeaderMutationRulesbuildPartial()HeaderMutationRules.Builderclear()HeaderMutationRules.BuilderclearAllowAllRouting()By default, certain headers that could affect processing of subsequent filters or request routing cannot be modified.HeaderMutationRules.BuilderclearAllowEnvoy()If true, allow modification of envoy internal headers.HeaderMutationRules.BuilderclearAllowExpression()If set, specifically allow any header that matches this regular expression.HeaderMutationRules.BuilderclearDisallowAll()If true, prevent modifications of all header values, regardless of any other settings.HeaderMutationRules.BuilderclearDisallowExpression()If set, specifically disallow any header that matches this regular expression regardless of any other settings.HeaderMutationRules.BuilderclearDisallowIsError()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.HeaderMutationRules.BuilderclearDisallowSystem()If true, prevent modification of any system header, defined as a header that starts with a ``:`` character, regardless of any other settings.HeaderMutationRules.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)HeaderMutationRules.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)HeaderMutationRules.Builderclone()com.google.protobuf.BoolValuegetAllowAllRouting()By default, certain headers that could affect processing of subsequent filters or request routing cannot be modified.com.google.protobuf.BoolValue.BuildergetAllowAllRoutingBuilder()By default, certain headers that could affect processing of subsequent filters or request routing cannot be modified.com.google.protobuf.BoolValueOrBuildergetAllowAllRoutingOrBuilder()By default, certain headers that could affect processing of subsequent filters or request routing cannot be modified.com.google.protobuf.BoolValuegetAllowEnvoy()If true, allow modification of envoy internal headers.com.google.protobuf.BoolValue.BuildergetAllowEnvoyBuilder()If true, allow modification of envoy internal headers.com.google.protobuf.BoolValueOrBuildergetAllowEnvoyOrBuilder()If true, allow modification of envoy internal headers.RegexMatchergetAllowExpression()If set, specifically allow any header that matches this regular expression.RegexMatcher.BuildergetAllowExpressionBuilder()If set, specifically allow any header that matches this regular expression.RegexMatcherOrBuildergetAllowExpressionOrBuilder()If set, specifically allow any header that matches this regular expression.HeaderMutationRulesgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()com.google.protobuf.BoolValuegetDisallowAll()If true, prevent modifications of all header values, regardless of any other settings.com.google.protobuf.BoolValue.BuildergetDisallowAllBuilder()If true, prevent modifications of all header values, regardless of any other settings.com.google.protobuf.BoolValueOrBuildergetDisallowAllOrBuilder()If true, prevent modifications of all header values, regardless of any other settings.RegexMatchergetDisallowExpression()If set, specifically disallow any header that matches this regular expression regardless of any other settings.RegexMatcher.BuildergetDisallowExpressionBuilder()If set, specifically disallow any header that matches this regular expression regardless of any other settings.RegexMatcherOrBuildergetDisallowExpressionOrBuilder()If set, specifically disallow any header that matches this regular expression regardless of any other settings.com.google.protobuf.BoolValuegetDisallowIsError()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.com.google.protobuf.BoolValue.BuildergetDisallowIsErrorBuilder()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.com.google.protobuf.BoolValueOrBuildergetDisallowIsErrorOrBuilder()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.com.google.protobuf.BoolValuegetDisallowSystem()If true, prevent modification of any system header, defined as a header that starts with a ``:`` character, regardless of any other settings.com.google.protobuf.BoolValue.BuildergetDisallowSystemBuilder()If true, prevent modification of any system header, defined as a header that starts with a ``:`` character, regardless of any other settings.com.google.protobuf.BoolValueOrBuildergetDisallowSystemOrBuilder()If true, prevent modification of any system header, defined as a header that starts with a ``:`` character, regardless of any other settings.booleanhasAllowAllRouting()By default, certain headers that could affect processing of subsequent filters or request routing cannot be modified.booleanhasAllowEnvoy()If true, allow modification of envoy internal headers.booleanhasAllowExpression()If set, specifically allow any header that matches this regular expression.booleanhasDisallowAll()If true, prevent modifications of all header values, regardless of any other settings.booleanhasDisallowExpression()If set, specifically disallow any header that matches this regular expression regardless of any other settings.booleanhasDisallowIsError()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.booleanhasDisallowSystem()If true, prevent modification of any system header, defined as a header that starts with a ``:`` character, regardless of any other settings.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()HeaderMutationRules.BuildermergeAllowAllRouting(com.google.protobuf.BoolValue value)By default, certain headers that could affect processing of subsequent filters or request routing cannot be modified.HeaderMutationRules.BuildermergeAllowEnvoy(com.google.protobuf.BoolValue value)If true, allow modification of envoy internal headers.HeaderMutationRules.BuildermergeAllowExpression(RegexMatcher value)If set, specifically allow any header that matches this regular expression.HeaderMutationRules.BuildermergeDisallowAll(com.google.protobuf.BoolValue value)If true, prevent modifications of all header values, regardless of any other settings.HeaderMutationRules.BuildermergeDisallowExpression(RegexMatcher value)If set, specifically disallow any header that matches this regular expression regardless of any other settings.HeaderMutationRules.BuildermergeDisallowIsError(com.google.protobuf.BoolValue value)If true, and if the rules in this list cause a header mutation to be disallowed, then the filter using this configuration will terminate the request with a 500 error.HeaderMutationRules.BuildermergeDisallowSystem(com.google.protobuf.BoolValue value)If true, prevent modification of any system header, defined as a header that starts with a ``:`` character, regardless of any other settings.HeaderMutationRules.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)HeaderMutationRules.BuildermergeFrom(com.google.protobuf.Message other)HeaderMutationRules.BuildermergeFrom(HeaderMutationRules other)HeaderMutationRules.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)HeaderMutationRules.BuildersetAllowAllRouting(com.google.protobuf.BoolValue value)By default, certain headers that could affect processing of subsequent filters or request routing cannot be modified.HeaderMutationRules.BuildersetAllowAllRouting(com.google.protobuf.BoolValue.Builder builderForValue)By default, certain headers that could affect processing of subsequent filters or request routing cannot be modified.HeaderMutationRules.BuildersetAllowEnvoy(com.google.protobuf.BoolValue value)If true, allow modification of envoy internal headers.HeaderMutationRules.BuildersetAllowEnvoy(com.google.protobuf.BoolValue.Builder builderForValue)If true, allow modification of envoy internal headers.HeaderMutationRules.BuildersetAllowExpression(RegexMatcher value)If set, specifically allow any header that matches this regular expression.HeaderMutationRules.BuildersetAllowExpression(RegexMatcher.Builder builderForValue)If set, specifically allow any header that matches this regular expression.HeaderMutationRules.BuildersetDisallowAll(com.google.protobuf.BoolValue value)If true, prevent modifications of all header values, regardless of any other settings.HeaderMutationRules.BuildersetDisallowAll(com.google.protobuf.BoolValue.Builder builderForValue)If true, prevent modifications of all header values, regardless of any other settings.HeaderMutationRules.BuildersetDisallowExpression(RegexMatcher value)If set, specifically disallow any header that matches this regular expression regardless of any other settings.HeaderMutationRules.BuildersetDisallowExpression(RegexMatcher.Builder builderForValue)If set, specifically disallow any header that matches this regular expression regardless of any other settings.HeaderMutationRules.BuildersetDisallowIsError(com.google.protobuf.BoolValue value)If true, and if the rules in this list cause a header mutation to be disallowed, then the filter using this configuration will terminate the request with a 500 error.HeaderMutationRules.BuildersetDisallowIsError(com.google.protobuf.BoolValue.Builder builderForValue)If true, and if the rules in this list cause a header mutation to be disallowed, then the filter using this configuration will terminate the request with a 500 error.HeaderMutationRules.BuildersetDisallowSystem(com.google.protobuf.BoolValue value)If true, prevent modification of any system header, defined as a header that starts with a ``:`` character, regardless of any other settings.HeaderMutationRules.BuildersetDisallowSystem(com.google.protobuf.BoolValue.Builder builderForValue)If true, prevent modification of any system header, defined as a header that starts with a ``:`` character, regardless of any other settings.HeaderMutationRules.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)HeaderMutationRules.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)HeaderMutationRules.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<HeaderMutationRules.Builder>
-
clear
public HeaderMutationRules.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<HeaderMutationRules.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<HeaderMutationRules.Builder>
-
getDefaultInstanceForType
public HeaderMutationRules getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public HeaderMutationRules build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public HeaderMutationRules buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public HeaderMutationRules.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<HeaderMutationRules.Builder>
-
setField
public HeaderMutationRules.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<HeaderMutationRules.Builder>
-
clearField
public HeaderMutationRules.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<HeaderMutationRules.Builder>
-
clearOneof
public HeaderMutationRules.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<HeaderMutationRules.Builder>
-
setRepeatedField
public HeaderMutationRules.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<HeaderMutationRules.Builder>
-
addRepeatedField
public HeaderMutationRules.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<HeaderMutationRules.Builder>
-
mergeFrom
public HeaderMutationRules.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<HeaderMutationRules.Builder>
-
mergeFrom
public HeaderMutationRules.Builder mergeFrom(HeaderMutationRules other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<HeaderMutationRules.Builder>
-
mergeFrom
public HeaderMutationRules.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<HeaderMutationRules.Builder>- Throws:
IOException
-
hasAllowAllRouting
public boolean hasAllowAllRouting()
By default, certain headers that could affect processing of subsequent filters or request routing cannot be modified. These headers are ``host``, ``:authority``, ``:scheme``, and ``:method``. Setting this parameter to true allows these headers to be modified as well.
.google.protobuf.BoolValue allow_all_routing = 1;- Specified by:
hasAllowAllRoutingin interfaceHeaderMutationRulesOrBuilder- Returns:
- Whether the allowAllRouting field is set.
-
getAllowAllRouting
public com.google.protobuf.BoolValue getAllowAllRouting()
By default, certain headers that could affect processing of subsequent filters or request routing cannot be modified. These headers are ``host``, ``:authority``, ``:scheme``, and ``:method``. Setting this parameter to true allows these headers to be modified as well.
.google.protobuf.BoolValue allow_all_routing = 1;- Specified by:
getAllowAllRoutingin interfaceHeaderMutationRulesOrBuilder- Returns:
- The allowAllRouting.
-
setAllowAllRouting
public HeaderMutationRules.Builder setAllowAllRouting(com.google.protobuf.BoolValue value)
By default, certain headers that could affect processing of subsequent filters or request routing cannot be modified. These headers are ``host``, ``:authority``, ``:scheme``, and ``:method``. Setting this parameter to true allows these headers to be modified as well.
.google.protobuf.BoolValue allow_all_routing = 1;
-
setAllowAllRouting
public HeaderMutationRules.Builder setAllowAllRouting(com.google.protobuf.BoolValue.Builder builderForValue)
By default, certain headers that could affect processing of subsequent filters or request routing cannot be modified. These headers are ``host``, ``:authority``, ``:scheme``, and ``:method``. Setting this parameter to true allows these headers to be modified as well.
.google.protobuf.BoolValue allow_all_routing = 1;
-
mergeAllowAllRouting
public HeaderMutationRules.Builder mergeAllowAllRouting(com.google.protobuf.BoolValue value)
By default, certain headers that could affect processing of subsequent filters or request routing cannot be modified. These headers are ``host``, ``:authority``, ``:scheme``, and ``:method``. Setting this parameter to true allows these headers to be modified as well.
.google.protobuf.BoolValue allow_all_routing = 1;
-
clearAllowAllRouting
public HeaderMutationRules.Builder clearAllowAllRouting()
By default, certain headers that could affect processing of subsequent filters or request routing cannot be modified. These headers are ``host``, ``:authority``, ``:scheme``, and ``:method``. Setting this parameter to true allows these headers to be modified as well.
.google.protobuf.BoolValue allow_all_routing = 1;
-
getAllowAllRoutingBuilder
public com.google.protobuf.BoolValue.Builder getAllowAllRoutingBuilder()
By default, certain headers that could affect processing of subsequent filters or request routing cannot be modified. These headers are ``host``, ``:authority``, ``:scheme``, and ``:method``. Setting this parameter to true allows these headers to be modified as well.
.google.protobuf.BoolValue allow_all_routing = 1;
-
getAllowAllRoutingOrBuilder
public com.google.protobuf.BoolValueOrBuilder getAllowAllRoutingOrBuilder()
By default, certain headers that could affect processing of subsequent filters or request routing cannot be modified. These headers are ``host``, ``:authority``, ``:scheme``, and ``:method``. Setting this parameter to true allows these headers to be modified as well.
.google.protobuf.BoolValue allow_all_routing = 1;- Specified by:
getAllowAllRoutingOrBuilderin interfaceHeaderMutationRulesOrBuilder
-
hasAllowEnvoy
public boolean hasAllowEnvoy()
If true, allow modification of envoy internal headers. By default, these start with ``x-envoy`` but this may be overridden in the ``Bootstrap`` configuration using the :ref:`header_prefix <envoy_v3_api_field_config.bootstrap.v3.Bootstrap.header_prefix>` field. Default is false.
.google.protobuf.BoolValue allow_envoy = 2;- Specified by:
hasAllowEnvoyin interfaceHeaderMutationRulesOrBuilder- Returns:
- Whether the allowEnvoy field is set.
-
getAllowEnvoy
public com.google.protobuf.BoolValue getAllowEnvoy()
If true, allow modification of envoy internal headers. By default, these start with ``x-envoy`` but this may be overridden in the ``Bootstrap`` configuration using the :ref:`header_prefix <envoy_v3_api_field_config.bootstrap.v3.Bootstrap.header_prefix>` field. Default is false.
.google.protobuf.BoolValue allow_envoy = 2;- Specified by:
getAllowEnvoyin interfaceHeaderMutationRulesOrBuilder- Returns:
- The allowEnvoy.
-
setAllowEnvoy
public HeaderMutationRules.Builder setAllowEnvoy(com.google.protobuf.BoolValue value)
If true, allow modification of envoy internal headers. By default, these start with ``x-envoy`` but this may be overridden in the ``Bootstrap`` configuration using the :ref:`header_prefix <envoy_v3_api_field_config.bootstrap.v3.Bootstrap.header_prefix>` field. Default is false.
.google.protobuf.BoolValue allow_envoy = 2;
-
setAllowEnvoy
public HeaderMutationRules.Builder setAllowEnvoy(com.google.protobuf.BoolValue.Builder builderForValue)
If true, allow modification of envoy internal headers. By default, these start with ``x-envoy`` but this may be overridden in the ``Bootstrap`` configuration using the :ref:`header_prefix <envoy_v3_api_field_config.bootstrap.v3.Bootstrap.header_prefix>` field. Default is false.
.google.protobuf.BoolValue allow_envoy = 2;
-
mergeAllowEnvoy
public HeaderMutationRules.Builder mergeAllowEnvoy(com.google.protobuf.BoolValue value)
If true, allow modification of envoy internal headers. By default, these start with ``x-envoy`` but this may be overridden in the ``Bootstrap`` configuration using the :ref:`header_prefix <envoy_v3_api_field_config.bootstrap.v3.Bootstrap.header_prefix>` field. Default is false.
.google.protobuf.BoolValue allow_envoy = 2;
-
clearAllowEnvoy
public HeaderMutationRules.Builder clearAllowEnvoy()
If true, allow modification of envoy internal headers. By default, these start with ``x-envoy`` but this may be overridden in the ``Bootstrap`` configuration using the :ref:`header_prefix <envoy_v3_api_field_config.bootstrap.v3.Bootstrap.header_prefix>` field. Default is false.
.google.protobuf.BoolValue allow_envoy = 2;
-
getAllowEnvoyBuilder
public com.google.protobuf.BoolValue.Builder getAllowEnvoyBuilder()
If true, allow modification of envoy internal headers. By default, these start with ``x-envoy`` but this may be overridden in the ``Bootstrap`` configuration using the :ref:`header_prefix <envoy_v3_api_field_config.bootstrap.v3.Bootstrap.header_prefix>` field. Default is false.
.google.protobuf.BoolValue allow_envoy = 2;
-
getAllowEnvoyOrBuilder
public com.google.protobuf.BoolValueOrBuilder getAllowEnvoyOrBuilder()
If true, allow modification of envoy internal headers. By default, these start with ``x-envoy`` but this may be overridden in the ``Bootstrap`` configuration using the :ref:`header_prefix <envoy_v3_api_field_config.bootstrap.v3.Bootstrap.header_prefix>` field. Default is false.
.google.protobuf.BoolValue allow_envoy = 2;- Specified by:
getAllowEnvoyOrBuilderin interfaceHeaderMutationRulesOrBuilder
-
hasDisallowSystem
public boolean hasDisallowSystem()
If true, prevent modification of any system header, defined as a header that starts with a ``:`` character, regardless of any other settings. A processing server may still override the ``:status`` of an HTTP response using an ``ImmediateResponse`` message. Default is false.
.google.protobuf.BoolValue disallow_system = 3;- Specified by:
hasDisallowSystemin interfaceHeaderMutationRulesOrBuilder- Returns:
- Whether the disallowSystem field is set.
-
getDisallowSystem
public com.google.protobuf.BoolValue getDisallowSystem()
If true, prevent modification of any system header, defined as a header that starts with a ``:`` character, regardless of any other settings. A processing server may still override the ``:status`` of an HTTP response using an ``ImmediateResponse`` message. Default is false.
.google.protobuf.BoolValue disallow_system = 3;- Specified by:
getDisallowSystemin interfaceHeaderMutationRulesOrBuilder- Returns:
- The disallowSystem.
-
setDisallowSystem
public HeaderMutationRules.Builder setDisallowSystem(com.google.protobuf.BoolValue value)
If true, prevent modification of any system header, defined as a header that starts with a ``:`` character, regardless of any other settings. A processing server may still override the ``:status`` of an HTTP response using an ``ImmediateResponse`` message. Default is false.
.google.protobuf.BoolValue disallow_system = 3;
-
setDisallowSystem
public HeaderMutationRules.Builder setDisallowSystem(com.google.protobuf.BoolValue.Builder builderForValue)
If true, prevent modification of any system header, defined as a header that starts with a ``:`` character, regardless of any other settings. A processing server may still override the ``:status`` of an HTTP response using an ``ImmediateResponse`` message. Default is false.
.google.protobuf.BoolValue disallow_system = 3;
-
mergeDisallowSystem
public HeaderMutationRules.Builder mergeDisallowSystem(com.google.protobuf.BoolValue value)
If true, prevent modification of any system header, defined as a header that starts with a ``:`` character, regardless of any other settings. A processing server may still override the ``:status`` of an HTTP response using an ``ImmediateResponse`` message. Default is false.
.google.protobuf.BoolValue disallow_system = 3;
-
clearDisallowSystem
public HeaderMutationRules.Builder clearDisallowSystem()
If true, prevent modification of any system header, defined as a header that starts with a ``:`` character, regardless of any other settings. A processing server may still override the ``:status`` of an HTTP response using an ``ImmediateResponse`` message. Default is false.
.google.protobuf.BoolValue disallow_system = 3;
-
getDisallowSystemBuilder
public com.google.protobuf.BoolValue.Builder getDisallowSystemBuilder()
If true, prevent modification of any system header, defined as a header that starts with a ``:`` character, regardless of any other settings. A processing server may still override the ``:status`` of an HTTP response using an ``ImmediateResponse`` message. Default is false.
.google.protobuf.BoolValue disallow_system = 3;
-
getDisallowSystemOrBuilder
public com.google.protobuf.BoolValueOrBuilder getDisallowSystemOrBuilder()
If true, prevent modification of any system header, defined as a header that starts with a ``:`` character, regardless of any other settings. A processing server may still override the ``:status`` of an HTTP response using an ``ImmediateResponse`` message. Default is false.
.google.protobuf.BoolValue disallow_system = 3;- Specified by:
getDisallowSystemOrBuilderin interfaceHeaderMutationRulesOrBuilder
-
hasDisallowAll
public boolean hasDisallowAll()
If true, prevent modifications of all header values, regardless of any other settings. A processing server may still override the ``:status`` of an HTTP response using an ``ImmediateResponse`` message. Default is false.
.google.protobuf.BoolValue disallow_all = 4;- Specified by:
hasDisallowAllin interfaceHeaderMutationRulesOrBuilder- Returns:
- Whether the disallowAll field is set.
-
getDisallowAll
public com.google.protobuf.BoolValue getDisallowAll()
If true, prevent modifications of all header values, regardless of any other settings. A processing server may still override the ``:status`` of an HTTP response using an ``ImmediateResponse`` message. Default is false.
.google.protobuf.BoolValue disallow_all = 4;- Specified by:
getDisallowAllin interfaceHeaderMutationRulesOrBuilder- Returns:
- The disallowAll.
-
setDisallowAll
public HeaderMutationRules.Builder setDisallowAll(com.google.protobuf.BoolValue value)
If true, prevent modifications of all header values, regardless of any other settings. A processing server may still override the ``:status`` of an HTTP response using an ``ImmediateResponse`` message. Default is false.
.google.protobuf.BoolValue disallow_all = 4;
-
setDisallowAll
public HeaderMutationRules.Builder setDisallowAll(com.google.protobuf.BoolValue.Builder builderForValue)
If true, prevent modifications of all header values, regardless of any other settings. A processing server may still override the ``:status`` of an HTTP response using an ``ImmediateResponse`` message. Default is false.
.google.protobuf.BoolValue disallow_all = 4;
-
mergeDisallowAll
public HeaderMutationRules.Builder mergeDisallowAll(com.google.protobuf.BoolValue value)
If true, prevent modifications of all header values, regardless of any other settings. A processing server may still override the ``:status`` of an HTTP response using an ``ImmediateResponse`` message. Default is false.
.google.protobuf.BoolValue disallow_all = 4;
-
clearDisallowAll
public HeaderMutationRules.Builder clearDisallowAll()
If true, prevent modifications of all header values, regardless of any other settings. A processing server may still override the ``:status`` of an HTTP response using an ``ImmediateResponse`` message. Default is false.
.google.protobuf.BoolValue disallow_all = 4;
-
getDisallowAllBuilder
public com.google.protobuf.BoolValue.Builder getDisallowAllBuilder()
If true, prevent modifications of all header values, regardless of any other settings. A processing server may still override the ``:status`` of an HTTP response using an ``ImmediateResponse`` message. Default is false.
.google.protobuf.BoolValue disallow_all = 4;
-
getDisallowAllOrBuilder
public com.google.protobuf.BoolValueOrBuilder getDisallowAllOrBuilder()
If true, prevent modifications of all header values, regardless of any other settings. A processing server may still override the ``:status`` of an HTTP response using an ``ImmediateResponse`` message. Default is false.
.google.protobuf.BoolValue disallow_all = 4;- Specified by:
getDisallowAllOrBuilderin interfaceHeaderMutationRulesOrBuilder
-
hasAllowExpression
public boolean hasAllowExpression()
If set, specifically allow any header that matches this regular expression. This overrides all other settings except for ``disallow_expression``.
.envoy.type.matcher.v3.RegexMatcher allow_expression = 5;- Specified by:
hasAllowExpressionin interfaceHeaderMutationRulesOrBuilder- Returns:
- Whether the allowExpression field is set.
-
getAllowExpression
public RegexMatcher getAllowExpression()
If set, specifically allow any header that matches this regular expression. This overrides all other settings except for ``disallow_expression``.
.envoy.type.matcher.v3.RegexMatcher allow_expression = 5;- Specified by:
getAllowExpressionin interfaceHeaderMutationRulesOrBuilder- Returns:
- The allowExpression.
-
setAllowExpression
public HeaderMutationRules.Builder setAllowExpression(RegexMatcher value)
If set, specifically allow any header that matches this regular expression. This overrides all other settings except for ``disallow_expression``.
.envoy.type.matcher.v3.RegexMatcher allow_expression = 5;
-
setAllowExpression
public HeaderMutationRules.Builder setAllowExpression(RegexMatcher.Builder builderForValue)
If set, specifically allow any header that matches this regular expression. This overrides all other settings except for ``disallow_expression``.
.envoy.type.matcher.v3.RegexMatcher allow_expression = 5;
-
mergeAllowExpression
public HeaderMutationRules.Builder mergeAllowExpression(RegexMatcher value)
If set, specifically allow any header that matches this regular expression. This overrides all other settings except for ``disallow_expression``.
.envoy.type.matcher.v3.RegexMatcher allow_expression = 5;
-
clearAllowExpression
public HeaderMutationRules.Builder clearAllowExpression()
If set, specifically allow any header that matches this regular expression. This overrides all other settings except for ``disallow_expression``.
.envoy.type.matcher.v3.RegexMatcher allow_expression = 5;
-
getAllowExpressionBuilder
public RegexMatcher.Builder getAllowExpressionBuilder()
If set, specifically allow any header that matches this regular expression. This overrides all other settings except for ``disallow_expression``.
.envoy.type.matcher.v3.RegexMatcher allow_expression = 5;
-
getAllowExpressionOrBuilder
public RegexMatcherOrBuilder getAllowExpressionOrBuilder()
If set, specifically allow any header that matches this regular expression. This overrides all other settings except for ``disallow_expression``.
.envoy.type.matcher.v3.RegexMatcher allow_expression = 5;- Specified by:
getAllowExpressionOrBuilderin interfaceHeaderMutationRulesOrBuilder
-
hasDisallowExpression
public boolean hasDisallowExpression()
If set, specifically disallow any header that matches this regular expression regardless of any other settings.
.envoy.type.matcher.v3.RegexMatcher disallow_expression = 6;- Specified by:
hasDisallowExpressionin interfaceHeaderMutationRulesOrBuilder- Returns:
- Whether the disallowExpression field is set.
-
getDisallowExpression
public RegexMatcher getDisallowExpression()
If set, specifically disallow any header that matches this regular expression regardless of any other settings.
.envoy.type.matcher.v3.RegexMatcher disallow_expression = 6;- Specified by:
getDisallowExpressionin interfaceHeaderMutationRulesOrBuilder- Returns:
- The disallowExpression.
-
setDisallowExpression
public HeaderMutationRules.Builder setDisallowExpression(RegexMatcher value)
If set, specifically disallow any header that matches this regular expression regardless of any other settings.
.envoy.type.matcher.v3.RegexMatcher disallow_expression = 6;
-
setDisallowExpression
public HeaderMutationRules.Builder setDisallowExpression(RegexMatcher.Builder builderForValue)
If set, specifically disallow any header that matches this regular expression regardless of any other settings.
.envoy.type.matcher.v3.RegexMatcher disallow_expression = 6;
-
mergeDisallowExpression
public HeaderMutationRules.Builder mergeDisallowExpression(RegexMatcher value)
If set, specifically disallow any header that matches this regular expression regardless of any other settings.
.envoy.type.matcher.v3.RegexMatcher disallow_expression = 6;
-
clearDisallowExpression
public HeaderMutationRules.Builder clearDisallowExpression()
If set, specifically disallow any header that matches this regular expression regardless of any other settings.
.envoy.type.matcher.v3.RegexMatcher disallow_expression = 6;
-
getDisallowExpressionBuilder
public RegexMatcher.Builder getDisallowExpressionBuilder()
If set, specifically disallow any header that matches this regular expression regardless of any other settings.
.envoy.type.matcher.v3.RegexMatcher disallow_expression = 6;
-
getDisallowExpressionOrBuilder
public RegexMatcherOrBuilder getDisallowExpressionOrBuilder()
If set, specifically disallow any header that matches this regular expression regardless of any other settings.
.envoy.type.matcher.v3.RegexMatcher disallow_expression = 6;- Specified by:
getDisallowExpressionOrBuilderin interfaceHeaderMutationRulesOrBuilder
-
hasDisallowIsError
public boolean hasDisallowIsError()
If true, and if the rules in this list cause a header mutation to be disallowed, then the filter using this configuration will terminate the request with a 500 error. In addition, regardless of the setting of this parameter, any attempt to set, add, or modify a disallowed header will cause the ``rejected_header_mutations`` counter to be incremented. Default is false.
.google.protobuf.BoolValue disallow_is_error = 7;- Specified by:
hasDisallowIsErrorin interfaceHeaderMutationRulesOrBuilder- Returns:
- Whether the disallowIsError field is set.
-
getDisallowIsError
public com.google.protobuf.BoolValue getDisallowIsError()
If true, and if the rules in this list cause a header mutation to be disallowed, then the filter using this configuration will terminate the request with a 500 error. In addition, regardless of the setting of this parameter, any attempt to set, add, or modify a disallowed header will cause the ``rejected_header_mutations`` counter to be incremented. Default is false.
.google.protobuf.BoolValue disallow_is_error = 7;- Specified by:
getDisallowIsErrorin interfaceHeaderMutationRulesOrBuilder- Returns:
- The disallowIsError.
-
setDisallowIsError
public HeaderMutationRules.Builder setDisallowIsError(com.google.protobuf.BoolValue value)
If true, and if the rules in this list cause a header mutation to be disallowed, then the filter using this configuration will terminate the request with a 500 error. In addition, regardless of the setting of this parameter, any attempt to set, add, or modify a disallowed header will cause the ``rejected_header_mutations`` counter to be incremented. Default is false.
.google.protobuf.BoolValue disallow_is_error = 7;
-
setDisallowIsError
public HeaderMutationRules.Builder setDisallowIsError(com.google.protobuf.BoolValue.Builder builderForValue)
If true, and if the rules in this list cause a header mutation to be disallowed, then the filter using this configuration will terminate the request with a 500 error. In addition, regardless of the setting of this parameter, any attempt to set, add, or modify a disallowed header will cause the ``rejected_header_mutations`` counter to be incremented. Default is false.
.google.protobuf.BoolValue disallow_is_error = 7;
-
mergeDisallowIsError
public HeaderMutationRules.Builder mergeDisallowIsError(com.google.protobuf.BoolValue value)
If true, and if the rules in this list cause a header mutation to be disallowed, then the filter using this configuration will terminate the request with a 500 error. In addition, regardless of the setting of this parameter, any attempt to set, add, or modify a disallowed header will cause the ``rejected_header_mutations`` counter to be incremented. Default is false.
.google.protobuf.BoolValue disallow_is_error = 7;
-
clearDisallowIsError
public HeaderMutationRules.Builder clearDisallowIsError()
If true, and if the rules in this list cause a header mutation to be disallowed, then the filter using this configuration will terminate the request with a 500 error. In addition, regardless of the setting of this parameter, any attempt to set, add, or modify a disallowed header will cause the ``rejected_header_mutations`` counter to be incremented. Default is false.
.google.protobuf.BoolValue disallow_is_error = 7;
-
getDisallowIsErrorBuilder
public com.google.protobuf.BoolValue.Builder getDisallowIsErrorBuilder()
If true, and if the rules in this list cause a header mutation to be disallowed, then the filter using this configuration will terminate the request with a 500 error. In addition, regardless of the setting of this parameter, any attempt to set, add, or modify a disallowed header will cause the ``rejected_header_mutations`` counter to be incremented. Default is false.
.google.protobuf.BoolValue disallow_is_error = 7;
-
getDisallowIsErrorOrBuilder
public com.google.protobuf.BoolValueOrBuilder getDisallowIsErrorOrBuilder()
If true, and if the rules in this list cause a header mutation to be disallowed, then the filter using this configuration will terminate the request with a 500 error. In addition, regardless of the setting of this parameter, any attempt to set, add, or modify a disallowed header will cause the ``rejected_header_mutations`` counter to be incremented. Default is false.
.google.protobuf.BoolValue disallow_is_error = 7;- Specified by:
getDisallowIsErrorOrBuilderin interfaceHeaderMutationRulesOrBuilder
-
setUnknownFields
public final HeaderMutationRules.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<HeaderMutationRules.Builder>
-
mergeUnknownFields
public final HeaderMutationRules.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<HeaderMutationRules.Builder>
-
-