Class DynamicModuleFilterPerRoute.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<DynamicModuleFilterPerRoute.Builder>
io.envoyproxy.envoy.extensions.filters.http.dynamic_modules.v3.DynamicModuleFilterPerRoute.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, DynamicModuleFilterPerRouteOrBuilder, Cloneable
Enclosing class:
DynamicModuleFilterPerRoute

public static final class DynamicModuleFilterPerRoute.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<DynamicModuleFilterPerRoute.Builder> implements DynamicModuleFilterPerRouteOrBuilder
 Configuration of the HTTP per-route filter for dynamic modules.
 
Protobuf type envoy.extensions.filters.http.dynamic_modules.v3.DynamicModuleFilterPerRoute
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<DynamicModuleFilterPerRoute.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessageV3.Builder<DynamicModuleFilterPerRoute.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<DynamicModuleFilterPerRoute.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

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

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

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

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

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

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

      public DynamicModuleFilterPerRoute.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<DynamicModuleFilterPerRoute.Builder>
    • mergeFrom

    • isInitialized

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

      public DynamicModuleFilterPerRoute.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<DynamicModuleFilterPerRoute.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:
      hasDynamicModuleConfig in interface DynamicModuleFilterPerRouteOrBuilder
      Returns:
      Whether the dynamicModuleConfig field is set.
    • getDynamicModuleConfig

      public DynamicModuleConfig getDynamicModuleConfig()
       Specifies the shared-object level configuration.
       
      .envoy.extensions.dynamic_modules.v3.DynamicModuleConfig dynamic_module_config = 1;
      Specified by:
      getDynamicModuleConfig in interface DynamicModuleFilterPerRouteOrBuilder
      Returns:
      The dynamicModuleConfig.
    • setDynamicModuleConfig

      public DynamicModuleFilterPerRoute.Builder setDynamicModuleConfig(DynamicModuleConfig value)
       Specifies the shared-object level configuration.
       
      .envoy.extensions.dynamic_modules.v3.DynamicModuleConfig dynamic_module_config = 1;
    • setDynamicModuleConfig

      public DynamicModuleFilterPerRoute.Builder setDynamicModuleConfig(DynamicModuleConfig.Builder builderForValue)
       Specifies the shared-object level configuration.
       
      .envoy.extensions.dynamic_modules.v3.DynamicModuleConfig dynamic_module_config = 1;
    • mergeDynamicModuleConfig

      public DynamicModuleFilterPerRoute.Builder mergeDynamicModuleConfig(DynamicModuleConfig value)
       Specifies the shared-object level configuration.
       
      .envoy.extensions.dynamic_modules.v3.DynamicModuleConfig dynamic_module_config = 1;
    • clearDynamicModuleConfig

      public DynamicModuleFilterPerRoute.Builder clearDynamicModuleConfig()
       Specifies the shared-object level configuration.
       
      .envoy.extensions.dynamic_modules.v3.DynamicModuleConfig dynamic_module_config = 1;
    • getDynamicModuleConfigBuilder

      public DynamicModuleConfig.Builder getDynamicModuleConfigBuilder()
       Specifies the shared-object level configuration.
       
      .envoy.extensions.dynamic_modules.v3.DynamicModuleConfig dynamic_module_config = 1;
    • getDynamicModuleConfigOrBuilder

      public DynamicModuleConfigOrBuilder getDynamicModuleConfigOrBuilder()
       Specifies the shared-object level configuration.
       
      .envoy.extensions.dynamic_modules.v3.DynamicModuleConfig dynamic_module_config = 1;
      Specified by:
      getDynamicModuleConfigOrBuilder in interface DynamicModuleFilterPerRouteOrBuilder
    • getPerRouteConfigName

      public String getPerRouteConfigName()
       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 ``per_route_config_name`` to the dynamic module's
       HTTP per-route 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 per_route_config_name = 2;
      Specified by:
      getPerRouteConfigName in interface DynamicModuleFilterPerRouteOrBuilder
      Returns:
      The perRouteConfigName.
    • getPerRouteConfigNameBytes

      public com.google.protobuf.ByteString getPerRouteConfigNameBytes()
       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 ``per_route_config_name`` to the dynamic module's
       HTTP per-route 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 per_route_config_name = 2;
      Specified by:
      getPerRouteConfigNameBytes in interface DynamicModuleFilterPerRouteOrBuilder
      Returns:
      The bytes for perRouteConfigName.
    • setPerRouteConfigName

      public DynamicModuleFilterPerRoute.Builder setPerRouteConfigName(String value)
       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 ``per_route_config_name`` to the dynamic module's
       HTTP per-route 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 per_route_config_name = 2;
      Parameters:
      value - The perRouteConfigName to set.
      Returns:
      This builder for chaining.
    • clearPerRouteConfigName

      public DynamicModuleFilterPerRoute.Builder clearPerRouteConfigName()
       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 ``per_route_config_name`` to the dynamic module's
       HTTP per-route 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 per_route_config_name = 2;
      Returns:
      This builder for chaining.
    • setPerRouteConfigNameBytes

      public DynamicModuleFilterPerRoute.Builder setPerRouteConfigNameBytes(com.google.protobuf.ByteString value)
       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 ``per_route_config_name`` to the dynamic module's
       HTTP per-route 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 per_route_config_name = 2;
      Parameters:
      value - The bytes for perRouteConfigName to set.
      Returns:
      This builder for chaining.
    • hasFilterConfig

      public boolean hasFilterConfig()
       The configuration for the filter chosen by ``per_route_config_name``.
      
       This is passed to the module's HTTP per-route filter initialization function. Together with
       the ``per_route_config_name``, the module can decide which in-module filter implementation to
       use and fine-tune the behavior of the filter on a specific route.
      
       For example, if a module has two filter implementations, one for logging and one for header
       manipulation, ``per_route_config_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:
      hasFilterConfig in interface DynamicModuleFilterPerRouteOrBuilder
      Returns:
      Whether the filterConfig field is set.
    • getFilterConfig

      public com.google.protobuf.Any getFilterConfig()
       The configuration for the filter chosen by ``per_route_config_name``.
      
       This is passed to the module's HTTP per-route filter initialization function. Together with
       the ``per_route_config_name``, the module can decide which in-module filter implementation to
       use and fine-tune the behavior of the filter on a specific route.
      
       For example, if a module has two filter implementations, one for logging and one for header
       manipulation, ``per_route_config_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:
      getFilterConfig in interface DynamicModuleFilterPerRouteOrBuilder
      Returns:
      The filterConfig.
    • setFilterConfig

      public DynamicModuleFilterPerRoute.Builder setFilterConfig(com.google.protobuf.Any value)
       The configuration for the filter chosen by ``per_route_config_name``.
      
       This is passed to the module's HTTP per-route filter initialization function. Together with
       the ``per_route_config_name``, the module can decide which in-module filter implementation to
       use and fine-tune the behavior of the filter on a specific route.
      
       For example, if a module has two filter implementations, one for logging and one for header
       manipulation, ``per_route_config_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

      public DynamicModuleFilterPerRoute.Builder setFilterConfig(com.google.protobuf.Any.Builder builderForValue)
       The configuration for the filter chosen by ``per_route_config_name``.
      
       This is passed to the module's HTTP per-route filter initialization function. Together with
       the ``per_route_config_name``, the module can decide which in-module filter implementation to
       use and fine-tune the behavior of the filter on a specific route.
      
       For example, if a module has two filter implementations, one for logging and one for header
       manipulation, ``per_route_config_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

      public DynamicModuleFilterPerRoute.Builder mergeFilterConfig(com.google.protobuf.Any value)
       The configuration for the filter chosen by ``per_route_config_name``.
      
       This is passed to the module's HTTP per-route filter initialization function. Together with
       the ``per_route_config_name``, the module can decide which in-module filter implementation to
       use and fine-tune the behavior of the filter on a specific route.
      
       For example, if a module has two filter implementations, one for logging and one for header
       manipulation, ``per_route_config_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

      public DynamicModuleFilterPerRoute.Builder clearFilterConfig()
       The configuration for the filter chosen by ``per_route_config_name``.
      
       This is passed to the module's HTTP per-route filter initialization function. Together with
       the ``per_route_config_name``, the module can decide which in-module filter implementation to
       use and fine-tune the behavior of the filter on a specific route.
      
       For example, if a module has two filter implementations, one for logging and one for header
       manipulation, ``per_route_config_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 ``per_route_config_name``.
      
       This is passed to the module's HTTP per-route filter initialization function. Together with
       the ``per_route_config_name``, the module can decide which in-module filter implementation to
       use and fine-tune the behavior of the filter on a specific route.
      
       For example, if a module has two filter implementations, one for logging and one for header
       manipulation, ``per_route_config_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 ``per_route_config_name``.
      
       This is passed to the module's HTTP per-route filter initialization function. Together with
       the ``per_route_config_name``, the module can decide which in-module filter implementation to
       use and fine-tune the behavior of the filter on a specific route.
      
       For example, if a module has two filter implementations, one for logging and one for header
       manipulation, ``per_route_config_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:
      getFilterConfigOrBuilder in interface DynamicModuleFilterPerRouteOrBuilder
    • setUnknownFields

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

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