Class DynamicModuleFilter.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<DynamicModuleFilter.Builder>
io.envoyproxy.envoy.extensions.filters.http.dynamic_modules.v3.DynamicModuleFilter.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,DynamicModuleFilterOrBuilder,Cloneable
- Enclosing class:
- DynamicModuleFilter
public static final class DynamicModuleFilter.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<DynamicModuleFilter.Builder>
implements DynamicModuleFilterOrBuilder
Configuration for the Dynamic Modules HTTP filter. This filter allows loading shared object files that can be loaded via ``dlopen`` to extend the HTTP filter chain. A module can be loaded by multiple HTTP filters; the module is loaded only once and shared across multiple filters. A dynamic module HTTP filter can opt into being a terminal filter with no upstream by setting :ref:`terminal_filter <envoy_v3_api_field_extensions.filters.http.dynamic_modules.v3.DynamicModuleFilter.terminal_filter>` to ``true``. A terminal dynamic module can use ``send_`` ABI methods to send response headers, body, and trailers to the downstream.Protobuf type
envoy.extensions.filters.http.dynamic_modules.v3.DynamicModuleFilter-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()Specifies the shared-object level configuration.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) The configuration for the filter chosen by ``filter_name``.The name for this filter configuration.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) If ``true``, the dynamic module is a terminal filter to use without an upstream.clone()static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorSpecifies the shared-object level configuration.Specifies the shared-object level configuration.Specifies the shared-object level configuration.com.google.protobuf.AnyThe configuration for the filter chosen by ``filter_name``.com.google.protobuf.Any.BuilderThe configuration for the filter chosen by ``filter_name``.com.google.protobuf.AnyOrBuilderThe configuration for the filter chosen by ``filter_name``.The name for this filter configuration.com.google.protobuf.ByteStringThe name for this filter configuration.booleanIf ``true``, the dynamic module is a terminal filter to use without an upstream.booleanSpecifies the shared-object level configuration.booleanThe configuration for the filter chosen by ``filter_name``.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanSpecifies the shared-object level configuration.mergeFilterConfig(com.google.protobuf.Any value) The configuration for the filter chosen by ``filter_name``.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(DynamicModuleFilter other) mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Specifies the shared-object level configuration.setDynamicModuleConfig(DynamicModuleConfig.Builder builderForValue) Specifies the shared-object level configuration.setFilterConfig(com.google.protobuf.Any value) The configuration for the filter chosen by ``filter_name``.setFilterConfig(com.google.protobuf.Any.Builder builderForValue) The configuration for the filter chosen by ``filter_name``.setFilterName(String value) The name for this filter configuration.setFilterNameBytes(com.google.protobuf.ByteString value) The name for this filter configuration.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setTerminalFilter(boolean value) If ``true``, the dynamic module is a terminal filter to use without an upstream.setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
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<DynamicModuleFilter.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<DynamicModuleFilter.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<DynamicModuleFilter.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.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<DynamicModuleFilter.Builder>
-
setField
public DynamicModuleFilter.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<DynamicModuleFilter.Builder>
-
clearField
public DynamicModuleFilter.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<DynamicModuleFilter.Builder>
-
clearOneof
public DynamicModuleFilter.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<DynamicModuleFilter.Builder>
-
setRepeatedField
public DynamicModuleFilter.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<DynamicModuleFilter.Builder>
-
addRepeatedField
public DynamicModuleFilter.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<DynamicModuleFilter.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<DynamicModuleFilter.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<DynamicModuleFilter.Builder>
-
mergeFrom
public DynamicModuleFilter.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<DynamicModuleFilter.Builder>- Throws:
IOException
-
hasDynamicModuleConfig
public boolean hasDynamicModuleConfig()Specifies the shared-object level configuration.
.envoy.extensions.dynamic_modules.v3.DynamicModuleConfig dynamic_module_config = 1;- Specified by:
hasDynamicModuleConfigin interfaceDynamicModuleFilterOrBuilder- Returns:
- Whether the dynamicModuleConfig field is set.
-
getDynamicModuleConfig
Specifies the shared-object level configuration.
.envoy.extensions.dynamic_modules.v3.DynamicModuleConfig dynamic_module_config = 1;- Specified by:
getDynamicModuleConfigin interfaceDynamicModuleFilterOrBuilder- Returns:
- The dynamicModuleConfig.
-
setDynamicModuleConfig
Specifies the shared-object level configuration.
.envoy.extensions.dynamic_modules.v3.DynamicModuleConfig dynamic_module_config = 1; -
setDynamicModuleConfig
public DynamicModuleFilter.Builder setDynamicModuleConfig(DynamicModuleConfig.Builder builderForValue) Specifies the shared-object level configuration.
.envoy.extensions.dynamic_modules.v3.DynamicModuleConfig dynamic_module_config = 1; -
mergeDynamicModuleConfig
Specifies the shared-object level configuration.
.envoy.extensions.dynamic_modules.v3.DynamicModuleConfig dynamic_module_config = 1; -
clearDynamicModuleConfig
Specifies the shared-object level configuration.
.envoy.extensions.dynamic_modules.v3.DynamicModuleConfig dynamic_module_config = 1; -
getDynamicModuleConfigBuilder
Specifies the shared-object level configuration.
.envoy.extensions.dynamic_modules.v3.DynamicModuleConfig dynamic_module_config = 1; -
getDynamicModuleConfigOrBuilder
Specifies the shared-object level configuration.
.envoy.extensions.dynamic_modules.v3.DynamicModuleConfig dynamic_module_config = 1;- Specified by:
getDynamicModuleConfigOrBuilderin interfaceDynamicModuleFilterOrBuilder
-
getFilterName
The name for this filter configuration. This can be used to distinguish between different filter implementations inside a dynamic module. For example, a module can have completely different filter implementations. When Envoy receives this configuration, it passes the ``filter_name`` to the dynamic module's HTTP filter config init function together with the ``filter_config``. That way a module can decide which in-module filter implementation to use based on the name at load time.
string filter_name = 2;- Specified by:
getFilterNamein interfaceDynamicModuleFilterOrBuilder- Returns:
- The filterName.
-
getFilterNameBytes
public com.google.protobuf.ByteString getFilterNameBytes()The name for this filter configuration. This can be used to distinguish between different filter implementations inside a dynamic module. For example, a module can have completely different filter implementations. When Envoy receives this configuration, it passes the ``filter_name`` to the dynamic module's HTTP filter config init function together with the ``filter_config``. That way a module can decide which in-module filter implementation to use based on the name at load time.
string filter_name = 2;- Specified by:
getFilterNameBytesin interfaceDynamicModuleFilterOrBuilder- Returns:
- The bytes for filterName.
-
setFilterName
The name for this filter configuration. This can be used to distinguish between different filter implementations inside a dynamic module. For example, a module can have completely different filter implementations. When Envoy receives this configuration, it passes the ``filter_name`` to the dynamic module's HTTP filter config init function together with the ``filter_config``. That way a module can decide which in-module filter implementation to use based on the name at load time.
string filter_name = 2;- Parameters:
value- The filterName to set.- Returns:
- This builder for chaining.
-
clearFilterName
The name for this filter configuration. This can be used to distinguish between different filter implementations inside a dynamic module. For example, a module can have completely different filter implementations. When Envoy receives this configuration, it passes the ``filter_name`` to the dynamic module's HTTP filter config init function together with the ``filter_config``. That way a module can decide which in-module filter implementation to use based on the name at load time.
string filter_name = 2;- Returns:
- This builder for chaining.
-
setFilterNameBytes
The name for this filter configuration. This can be used to distinguish between different filter implementations inside a dynamic module. For example, a module can have completely different filter implementations. When Envoy receives this configuration, it passes the ``filter_name`` to the dynamic module's HTTP filter config init function together with the ``filter_config``. That way a module can decide which in-module filter implementation to use based on the name at load time.
string filter_name = 2;- Parameters:
value- The bytes for filterName to set.- Returns:
- This builder for chaining.
-
hasFilterConfig
public boolean hasFilterConfig()The configuration for the filter chosen by ``filter_name``. This is passed to the module's HTTP filter initialization function. Together with the ``filter_name``, the module can decide which in-module filter implementation to use and fine-tune the behavior of the filter. For example, if a module has two filter implementations, one for logging and one for header manipulation, ``filter_name`` is used to choose either logging or header manipulation. The ``filter_config`` can be used to configure the logging level or the header manipulation behavior. ``google.protobuf.Struct`` is serialized as JSON before passing it to the plugin. ``google.protobuf.BytesValue`` and ``google.protobuf.StringValue`` are passed directly without the wrapper. .. code-block:: yaml # Passing in a string filter_config: "@type": "type.googleapis.com/google.protobuf.StringValue" value: hello # Passing in raw bytes filter_config: "@type": "type.googleapis.com/google.protobuf.BytesValue" value: aGVsbG8= # echo -n "hello" | base64.google.protobuf.Any filter_config = 3;- Specified by:
hasFilterConfigin interfaceDynamicModuleFilterOrBuilder- Returns:
- Whether the filterConfig field is set.
-
getFilterConfig
public com.google.protobuf.Any getFilterConfig()The configuration for the filter chosen by ``filter_name``. This is passed to the module's HTTP filter initialization function. Together with the ``filter_name``, the module can decide which in-module filter implementation to use and fine-tune the behavior of the filter. For example, if a module has two filter implementations, one for logging and one for header manipulation, ``filter_name`` is used to choose either logging or header manipulation. The ``filter_config`` can be used to configure the logging level or the header manipulation behavior. ``google.protobuf.Struct`` is serialized as JSON before passing it to the plugin. ``google.protobuf.BytesValue`` and ``google.protobuf.StringValue`` are passed directly without the wrapper. .. code-block:: yaml # Passing in a string filter_config: "@type": "type.googleapis.com/google.protobuf.StringValue" value: hello # Passing in raw bytes filter_config: "@type": "type.googleapis.com/google.protobuf.BytesValue" value: aGVsbG8= # echo -n "hello" | base64.google.protobuf.Any filter_config = 3;- Specified by:
getFilterConfigin interfaceDynamicModuleFilterOrBuilder- Returns:
- The filterConfig.
-
setFilterConfig
The configuration for the filter chosen by ``filter_name``. This is passed to the module's HTTP filter initialization function. Together with the ``filter_name``, the module can decide which in-module filter implementation to use and fine-tune the behavior of the filter. For example, if a module has two filter implementations, one for logging and one for header manipulation, ``filter_name`` is used to choose either logging or header manipulation. The ``filter_config`` can be used to configure the logging level or the header manipulation behavior. ``google.protobuf.Struct`` is serialized as JSON before passing it to the plugin. ``google.protobuf.BytesValue`` and ``google.protobuf.StringValue`` are passed directly without the wrapper. .. code-block:: yaml # Passing in a string filter_config: "@type": "type.googleapis.com/google.protobuf.StringValue" value: hello # Passing in raw bytes filter_config: "@type": "type.googleapis.com/google.protobuf.BytesValue" value: aGVsbG8= # echo -n "hello" | base64.google.protobuf.Any filter_config = 3; -
setFilterConfig
The configuration for the filter chosen by ``filter_name``. This is passed to the module's HTTP filter initialization function. Together with the ``filter_name``, the module can decide which in-module filter implementation to use and fine-tune the behavior of the filter. For example, if a module has two filter implementations, one for logging and one for header manipulation, ``filter_name`` is used to choose either logging or header manipulation. The ``filter_config`` can be used to configure the logging level or the header manipulation behavior. ``google.protobuf.Struct`` is serialized as JSON before passing it to the plugin. ``google.protobuf.BytesValue`` and ``google.protobuf.StringValue`` are passed directly without the wrapper. .. code-block:: yaml # Passing in a string filter_config: "@type": "type.googleapis.com/google.protobuf.StringValue" value: hello # Passing in raw bytes filter_config: "@type": "type.googleapis.com/google.protobuf.BytesValue" value: aGVsbG8= # echo -n "hello" | base64.google.protobuf.Any filter_config = 3; -
mergeFilterConfig
The configuration for the filter chosen by ``filter_name``. This is passed to the module's HTTP filter initialization function. Together with the ``filter_name``, the module can decide which in-module filter implementation to use and fine-tune the behavior of the filter. For example, if a module has two filter implementations, one for logging and one for header manipulation, ``filter_name`` is used to choose either logging or header manipulation. The ``filter_config`` can be used to configure the logging level or the header manipulation behavior. ``google.protobuf.Struct`` is serialized as JSON before passing it to the plugin. ``google.protobuf.BytesValue`` and ``google.protobuf.StringValue`` are passed directly without the wrapper. .. code-block:: yaml # Passing in a string filter_config: "@type": "type.googleapis.com/google.protobuf.StringValue" value: hello # Passing in raw bytes filter_config: "@type": "type.googleapis.com/google.protobuf.BytesValue" value: aGVsbG8= # echo -n "hello" | base64.google.protobuf.Any filter_config = 3; -
clearFilterConfig
The configuration for the filter chosen by ``filter_name``. This is passed to the module's HTTP filter initialization function. Together with the ``filter_name``, the module can decide which in-module filter implementation to use and fine-tune the behavior of the filter. For example, if a module has two filter implementations, one for logging and one for header manipulation, ``filter_name`` is used to choose either logging or header manipulation. The ``filter_config`` can be used to configure the logging level or the header manipulation behavior. ``google.protobuf.Struct`` is serialized as JSON before passing it to the plugin. ``google.protobuf.BytesValue`` and ``google.protobuf.StringValue`` are passed directly without the wrapper. .. code-block:: yaml # Passing in a string filter_config: "@type": "type.googleapis.com/google.protobuf.StringValue" value: hello # Passing in raw bytes filter_config: "@type": "type.googleapis.com/google.protobuf.BytesValue" value: aGVsbG8= # echo -n "hello" | base64.google.protobuf.Any filter_config = 3; -
getFilterConfigBuilder
public com.google.protobuf.Any.Builder getFilterConfigBuilder()The configuration for the filter chosen by ``filter_name``. This is passed to the module's HTTP filter initialization function. Together with the ``filter_name``, the module can decide which in-module filter implementation to use and fine-tune the behavior of the filter. For example, if a module has two filter implementations, one for logging and one for header manipulation, ``filter_name`` is used to choose either logging or header manipulation. The ``filter_config`` can be used to configure the logging level or the header manipulation behavior. ``google.protobuf.Struct`` is serialized as JSON before passing it to the plugin. ``google.protobuf.BytesValue`` and ``google.protobuf.StringValue`` are passed directly without the wrapper. .. code-block:: yaml # Passing in a string filter_config: "@type": "type.googleapis.com/google.protobuf.StringValue" value: hello # Passing in raw bytes filter_config: "@type": "type.googleapis.com/google.protobuf.BytesValue" value: aGVsbG8= # echo -n "hello" | base64.google.protobuf.Any filter_config = 3; -
getFilterConfigOrBuilder
public com.google.protobuf.AnyOrBuilder getFilterConfigOrBuilder()The configuration for the filter chosen by ``filter_name``. This is passed to the module's HTTP filter initialization function. Together with the ``filter_name``, the module can decide which in-module filter implementation to use and fine-tune the behavior of the filter. For example, if a module has two filter implementations, one for logging and one for header manipulation, ``filter_name`` is used to choose either logging or header manipulation. The ``filter_config`` can be used to configure the logging level or the header manipulation behavior. ``google.protobuf.Struct`` is serialized as JSON before passing it to the plugin. ``google.protobuf.BytesValue`` and ``google.protobuf.StringValue`` are passed directly without the wrapper. .. code-block:: yaml # Passing in a string filter_config: "@type": "type.googleapis.com/google.protobuf.StringValue" value: hello # Passing in raw bytes filter_config: "@type": "type.googleapis.com/google.protobuf.BytesValue" value: aGVsbG8= # echo -n "hello" | base64.google.protobuf.Any filter_config = 3;- Specified by:
getFilterConfigOrBuilderin interfaceDynamicModuleFilterOrBuilder
-
getTerminalFilter
public boolean getTerminalFilter()If ``true``, the dynamic module is a terminal filter to use without an upstream. The dynamic module is responsible for creating and sending the response to downstream. Defaults to ``false``.
bool terminal_filter = 4;- Specified by:
getTerminalFilterin interfaceDynamicModuleFilterOrBuilder- Returns:
- The terminalFilter.
-
setTerminalFilter
If ``true``, the dynamic module is a terminal filter to use without an upstream. The dynamic module is responsible for creating and sending the response to downstream. Defaults to ``false``.
bool terminal_filter = 4;- Parameters:
value- The terminalFilter to set.- Returns:
- This builder for chaining.
-
clearTerminalFilter
If ``true``, the dynamic module is a terminal filter to use without an upstream. The dynamic module is responsible for creating and sending the response to downstream. Defaults to ``false``.
bool terminal_filter = 4;- Returns:
- This builder for chaining.
-
setUnknownFields
public final DynamicModuleFilter.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<DynamicModuleFilter.Builder>
-
mergeUnknownFields
public final DynamicModuleFilter.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<DynamicModuleFilter.Builder>
-