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

public static final class Lua.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Lua.Builder> implements LuaOrBuilder
 [#next-free-field: 6]
 
Protobuf type envoy.extensions.filters.http.lua.v3.Lua
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessageV3.Builder<Lua.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessageV3.Builder<Lua.Builder>
    • internalGetFieldAccessorTable

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

      public Lua.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<Lua.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<Lua.Builder>
    • getDefaultInstanceForType

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

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

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

      public Lua.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<Lua.Builder>
    • setField

      public Lua.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<Lua.Builder>
    • clearField

      public Lua.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<Lua.Builder>
    • clearOneof

      public Lua.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<Lua.Builder>
    • setRepeatedField

      public Lua.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<Lua.Builder>
    • addRepeatedField

      public Lua.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<Lua.Builder>
    • mergeFrom

      public Lua.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<Lua.Builder>
    • mergeFrom

      public Lua.Builder mergeFrom(Lua other)
    • isInitialized

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

      public Lua.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<Lua.Builder>
      Throws:
      IOException
    • getInlineCode

      @Deprecated public String getInlineCode()
      Deprecated.
      envoy.extensions.filters.http.lua.v3.Lua.inline_code is deprecated. See envoy/extensions/filters/http/lua/v3/lua.proto;l=39
       The Lua code that Envoy will execute. This can be a very small script that
       further loads code from disk if desired. Note that if JSON configuration is used, the code must
       be properly escaped. YAML configuration may be easier to read since YAML supports multi-line
       strings so complex scripts can be easily expressed inline in the configuration.
      
       This field is deprecated. Please use
       :ref:`default_source_code <envoy_v3_api_field_extensions.filters.http.lua.v3.Lua.default_source_code>`.
       Only one of :ref:`inline_code <envoy_v3_api_field_extensions.filters.http.lua.v3.Lua.inline_code>`
       or :ref:`default_source_code <envoy_v3_api_field_extensions.filters.http.lua.v3.Lua.default_source_code>`
       can be set for the Lua filter.
       
      string inline_code = 1 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"];
      Specified by:
      getInlineCode in interface LuaOrBuilder
      Returns:
      The inlineCode.
    • getInlineCodeBytes

      @Deprecated public com.google.protobuf.ByteString getInlineCodeBytes()
      Deprecated.
      envoy.extensions.filters.http.lua.v3.Lua.inline_code is deprecated. See envoy/extensions/filters/http/lua/v3/lua.proto;l=39
       The Lua code that Envoy will execute. This can be a very small script that
       further loads code from disk if desired. Note that if JSON configuration is used, the code must
       be properly escaped. YAML configuration may be easier to read since YAML supports multi-line
       strings so complex scripts can be easily expressed inline in the configuration.
      
       This field is deprecated. Please use
       :ref:`default_source_code <envoy_v3_api_field_extensions.filters.http.lua.v3.Lua.default_source_code>`.
       Only one of :ref:`inline_code <envoy_v3_api_field_extensions.filters.http.lua.v3.Lua.inline_code>`
       or :ref:`default_source_code <envoy_v3_api_field_extensions.filters.http.lua.v3.Lua.default_source_code>`
       can be set for the Lua filter.
       
      string inline_code = 1 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"];
      Specified by:
      getInlineCodeBytes in interface LuaOrBuilder
      Returns:
      The bytes for inlineCode.
    • setInlineCode

      @Deprecated public Lua.Builder setInlineCode(String value)
      Deprecated.
      envoy.extensions.filters.http.lua.v3.Lua.inline_code is deprecated. See envoy/extensions/filters/http/lua/v3/lua.proto;l=39
       The Lua code that Envoy will execute. This can be a very small script that
       further loads code from disk if desired. Note that if JSON configuration is used, the code must
       be properly escaped. YAML configuration may be easier to read since YAML supports multi-line
       strings so complex scripts can be easily expressed inline in the configuration.
      
       This field is deprecated. Please use
       :ref:`default_source_code <envoy_v3_api_field_extensions.filters.http.lua.v3.Lua.default_source_code>`.
       Only one of :ref:`inline_code <envoy_v3_api_field_extensions.filters.http.lua.v3.Lua.inline_code>`
       or :ref:`default_source_code <envoy_v3_api_field_extensions.filters.http.lua.v3.Lua.default_source_code>`
       can be set for the Lua filter.
       
      string inline_code = 1 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"];
      Parameters:
      value - The inlineCode to set.
      Returns:
      This builder for chaining.
    • clearInlineCode

      @Deprecated public Lua.Builder clearInlineCode()
      Deprecated.
      envoy.extensions.filters.http.lua.v3.Lua.inline_code is deprecated. See envoy/extensions/filters/http/lua/v3/lua.proto;l=39
       The Lua code that Envoy will execute. This can be a very small script that
       further loads code from disk if desired. Note that if JSON configuration is used, the code must
       be properly escaped. YAML configuration may be easier to read since YAML supports multi-line
       strings so complex scripts can be easily expressed inline in the configuration.
      
       This field is deprecated. Please use
       :ref:`default_source_code <envoy_v3_api_field_extensions.filters.http.lua.v3.Lua.default_source_code>`.
       Only one of :ref:`inline_code <envoy_v3_api_field_extensions.filters.http.lua.v3.Lua.inline_code>`
       or :ref:`default_source_code <envoy_v3_api_field_extensions.filters.http.lua.v3.Lua.default_source_code>`
       can be set for the Lua filter.
       
      string inline_code = 1 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"];
      Returns:
      This builder for chaining.
    • setInlineCodeBytes

      @Deprecated public Lua.Builder setInlineCodeBytes(com.google.protobuf.ByteString value)
      Deprecated.
      envoy.extensions.filters.http.lua.v3.Lua.inline_code is deprecated. See envoy/extensions/filters/http/lua/v3/lua.proto;l=39
       The Lua code that Envoy will execute. This can be a very small script that
       further loads code from disk if desired. Note that if JSON configuration is used, the code must
       be properly escaped. YAML configuration may be easier to read since YAML supports multi-line
       strings so complex scripts can be easily expressed inline in the configuration.
      
       This field is deprecated. Please use
       :ref:`default_source_code <envoy_v3_api_field_extensions.filters.http.lua.v3.Lua.default_source_code>`.
       Only one of :ref:`inline_code <envoy_v3_api_field_extensions.filters.http.lua.v3.Lua.inline_code>`
       or :ref:`default_source_code <envoy_v3_api_field_extensions.filters.http.lua.v3.Lua.default_source_code>`
       can be set for the Lua filter.
       
      string inline_code = 1 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"];
      Parameters:
      value - The bytes for inlineCode to set.
      Returns:
      This builder for chaining.
    • getSourceCodesCount

      public int getSourceCodesCount()
      Description copied from interface: LuaOrBuilder
       Map of named Lua source codes that can be referenced in :ref:`LuaPerRoute
       <envoy_v3_api_msg_extensions.filters.http.lua.v3.LuaPerRoute>`. The Lua source codes can be
       loaded from inline string or local files.
      
       Example:
      
       .. code-block:: yaml
      
         source_codes:
           hello.lua:
             inline_string: |
               function envoy_on_response(response_handle)
                 -- Do something.
               end
           world.lua:
             filename: /etc/lua/world.lua
       
      map<string, .envoy.config.core.v3.DataSource> source_codes = 2;
      Specified by:
      getSourceCodesCount in interface LuaOrBuilder
    • containsSourceCodes

      public boolean containsSourceCodes(String key)
       Map of named Lua source codes that can be referenced in :ref:`LuaPerRoute
       <envoy_v3_api_msg_extensions.filters.http.lua.v3.LuaPerRoute>`. The Lua source codes can be
       loaded from inline string or local files.
      
       Example:
      
       .. code-block:: yaml
      
         source_codes:
           hello.lua:
             inline_string: |
               function envoy_on_response(response_handle)
                 -- Do something.
               end
           world.lua:
             filename: /etc/lua/world.lua
       
      map<string, .envoy.config.core.v3.DataSource> source_codes = 2;
      Specified by:
      containsSourceCodes in interface LuaOrBuilder
    • getSourceCodes

      @Deprecated public Map<String,DataSource> getSourceCodes()
      Deprecated.
      Use getSourceCodesMap() instead.
      Specified by:
      getSourceCodes in interface LuaOrBuilder
    • getSourceCodesMap

      public Map<String,DataSource> getSourceCodesMap()
       Map of named Lua source codes that can be referenced in :ref:`LuaPerRoute
       <envoy_v3_api_msg_extensions.filters.http.lua.v3.LuaPerRoute>`. The Lua source codes can be
       loaded from inline string or local files.
      
       Example:
      
       .. code-block:: yaml
      
         source_codes:
           hello.lua:
             inline_string: |
               function envoy_on_response(response_handle)
                 -- Do something.
               end
           world.lua:
             filename: /etc/lua/world.lua
       
      map<string, .envoy.config.core.v3.DataSource> source_codes = 2;
      Specified by:
      getSourceCodesMap in interface LuaOrBuilder
    • getSourceCodesOrDefault

      public DataSource getSourceCodesOrDefault(String key, DataSource defaultValue)
       Map of named Lua source codes that can be referenced in :ref:`LuaPerRoute
       <envoy_v3_api_msg_extensions.filters.http.lua.v3.LuaPerRoute>`. The Lua source codes can be
       loaded from inline string or local files.
      
       Example:
      
       .. code-block:: yaml
      
         source_codes:
           hello.lua:
             inline_string: |
               function envoy_on_response(response_handle)
                 -- Do something.
               end
           world.lua:
             filename: /etc/lua/world.lua
       
      map<string, .envoy.config.core.v3.DataSource> source_codes = 2;
      Specified by:
      getSourceCodesOrDefault in interface LuaOrBuilder
    • getSourceCodesOrThrow

      public DataSource getSourceCodesOrThrow(String key)
       Map of named Lua source codes that can be referenced in :ref:`LuaPerRoute
       <envoy_v3_api_msg_extensions.filters.http.lua.v3.LuaPerRoute>`. The Lua source codes can be
       loaded from inline string or local files.
      
       Example:
      
       .. code-block:: yaml
      
         source_codes:
           hello.lua:
             inline_string: |
               function envoy_on_response(response_handle)
                 -- Do something.
               end
           world.lua:
             filename: /etc/lua/world.lua
       
      map<string, .envoy.config.core.v3.DataSource> source_codes = 2;
      Specified by:
      getSourceCodesOrThrow in interface LuaOrBuilder
    • clearSourceCodes

      public Lua.Builder clearSourceCodes()
    • removeSourceCodes

      public Lua.Builder removeSourceCodes(String key)
       Map of named Lua source codes that can be referenced in :ref:`LuaPerRoute
       <envoy_v3_api_msg_extensions.filters.http.lua.v3.LuaPerRoute>`. The Lua source codes can be
       loaded from inline string or local files.
      
       Example:
      
       .. code-block:: yaml
      
         source_codes:
           hello.lua:
             inline_string: |
               function envoy_on_response(response_handle)
                 -- Do something.
               end
           world.lua:
             filename: /etc/lua/world.lua
       
      map<string, .envoy.config.core.v3.DataSource> source_codes = 2;
    • getMutableSourceCodes

      @Deprecated public Map<String,DataSource> getMutableSourceCodes()
      Deprecated.
      Use alternate mutation accessors instead.
    • putSourceCodes

      public Lua.Builder putSourceCodes(String key, DataSource value)
       Map of named Lua source codes that can be referenced in :ref:`LuaPerRoute
       <envoy_v3_api_msg_extensions.filters.http.lua.v3.LuaPerRoute>`. The Lua source codes can be
       loaded from inline string or local files.
      
       Example:
      
       .. code-block:: yaml
      
         source_codes:
           hello.lua:
             inline_string: |
               function envoy_on_response(response_handle)
                 -- Do something.
               end
           world.lua:
             filename: /etc/lua/world.lua
       
      map<string, .envoy.config.core.v3.DataSource> source_codes = 2;
    • putAllSourceCodes

      public Lua.Builder putAllSourceCodes(Map<String,DataSource> values)
       Map of named Lua source codes that can be referenced in :ref:`LuaPerRoute
       <envoy_v3_api_msg_extensions.filters.http.lua.v3.LuaPerRoute>`. The Lua source codes can be
       loaded from inline string or local files.
      
       Example:
      
       .. code-block:: yaml
      
         source_codes:
           hello.lua:
             inline_string: |
               function envoy_on_response(response_handle)
                 -- Do something.
               end
           world.lua:
             filename: /etc/lua/world.lua
       
      map<string, .envoy.config.core.v3.DataSource> source_codes = 2;
    • putSourceCodesBuilderIfAbsent

      public DataSource.Builder putSourceCodesBuilderIfAbsent(String key)
       Map of named Lua source codes that can be referenced in :ref:`LuaPerRoute
       <envoy_v3_api_msg_extensions.filters.http.lua.v3.LuaPerRoute>`. The Lua source codes can be
       loaded from inline string or local files.
      
       Example:
      
       .. code-block:: yaml
      
         source_codes:
           hello.lua:
             inline_string: |
               function envoy_on_response(response_handle)
                 -- Do something.
               end
           world.lua:
             filename: /etc/lua/world.lua
       
      map<string, .envoy.config.core.v3.DataSource> source_codes = 2;
    • hasDefaultSourceCode

      public boolean hasDefaultSourceCode()
       The default Lua code that Envoy will execute. If no per route config is provided
       for the request, this Lua code will be applied.
       
      .envoy.config.core.v3.DataSource default_source_code = 3;
      Specified by:
      hasDefaultSourceCode in interface LuaOrBuilder
      Returns:
      Whether the defaultSourceCode field is set.
    • getDefaultSourceCode

      public DataSource getDefaultSourceCode()
       The default Lua code that Envoy will execute. If no per route config is provided
       for the request, this Lua code will be applied.
       
      .envoy.config.core.v3.DataSource default_source_code = 3;
      Specified by:
      getDefaultSourceCode in interface LuaOrBuilder
      Returns:
      The defaultSourceCode.
    • setDefaultSourceCode

      public Lua.Builder setDefaultSourceCode(DataSource value)
       The default Lua code that Envoy will execute. If no per route config is provided
       for the request, this Lua code will be applied.
       
      .envoy.config.core.v3.DataSource default_source_code = 3;
    • setDefaultSourceCode

      public Lua.Builder setDefaultSourceCode(DataSource.Builder builderForValue)
       The default Lua code that Envoy will execute. If no per route config is provided
       for the request, this Lua code will be applied.
       
      .envoy.config.core.v3.DataSource default_source_code = 3;
    • mergeDefaultSourceCode

      public Lua.Builder mergeDefaultSourceCode(DataSource value)
       The default Lua code that Envoy will execute. If no per route config is provided
       for the request, this Lua code will be applied.
       
      .envoy.config.core.v3.DataSource default_source_code = 3;
    • clearDefaultSourceCode

      public Lua.Builder clearDefaultSourceCode()
       The default Lua code that Envoy will execute. If no per route config is provided
       for the request, this Lua code will be applied.
       
      .envoy.config.core.v3.DataSource default_source_code = 3;
    • getDefaultSourceCodeBuilder

      public DataSource.Builder getDefaultSourceCodeBuilder()
       The default Lua code that Envoy will execute. If no per route config is provided
       for the request, this Lua code will be applied.
       
      .envoy.config.core.v3.DataSource default_source_code = 3;
    • getDefaultSourceCodeOrBuilder

      public DataSourceOrBuilder getDefaultSourceCodeOrBuilder()
       The default Lua code that Envoy will execute. If no per route config is provided
       for the request, this Lua code will be applied.
       
      .envoy.config.core.v3.DataSource default_source_code = 3;
      Specified by:
      getDefaultSourceCodeOrBuilder in interface LuaOrBuilder
    • getStatPrefix

      public String getStatPrefix()
       Optional additional prefix to use when emitting statistics. By default
       metrics are emitted in *.lua.* namespace. If multiple lua filters are
       configured in a filter chain, the stats from each filter instance can
       be emitted using custom stat prefix to distinguish emitted
       statistics. For example:
      
       .. code-block:: yaml
      
         http_filters:
           - name: envoy.filters.http.lua
             typed_config:
               "@type": type.googleapis.com/envoy.extensions.filters.http.lua.v3.Lua
               stat_prefix: foo_script # This emits lua.foo_script.errors etc.
           - name: envoy.filters.http.lua
             typed_config:
               "@type": type.googleapis.com/envoy.extensions.filters.http.lua.v3.Lua
               stat_prefix: bar_script # This emits lua.bar_script.errors etc.
       
      string stat_prefix = 4;
      Specified by:
      getStatPrefix in interface LuaOrBuilder
      Returns:
      The statPrefix.
    • getStatPrefixBytes

      public com.google.protobuf.ByteString getStatPrefixBytes()
       Optional additional prefix to use when emitting statistics. By default
       metrics are emitted in *.lua.* namespace. If multiple lua filters are
       configured in a filter chain, the stats from each filter instance can
       be emitted using custom stat prefix to distinguish emitted
       statistics. For example:
      
       .. code-block:: yaml
      
         http_filters:
           - name: envoy.filters.http.lua
             typed_config:
               "@type": type.googleapis.com/envoy.extensions.filters.http.lua.v3.Lua
               stat_prefix: foo_script # This emits lua.foo_script.errors etc.
           - name: envoy.filters.http.lua
             typed_config:
               "@type": type.googleapis.com/envoy.extensions.filters.http.lua.v3.Lua
               stat_prefix: bar_script # This emits lua.bar_script.errors etc.
       
      string stat_prefix = 4;
      Specified by:
      getStatPrefixBytes in interface LuaOrBuilder
      Returns:
      The bytes for statPrefix.
    • setStatPrefix

      public Lua.Builder setStatPrefix(String value)
       Optional additional prefix to use when emitting statistics. By default
       metrics are emitted in *.lua.* namespace. If multiple lua filters are
       configured in a filter chain, the stats from each filter instance can
       be emitted using custom stat prefix to distinguish emitted
       statistics. For example:
      
       .. code-block:: yaml
      
         http_filters:
           - name: envoy.filters.http.lua
             typed_config:
               "@type": type.googleapis.com/envoy.extensions.filters.http.lua.v3.Lua
               stat_prefix: foo_script # This emits lua.foo_script.errors etc.
           - name: envoy.filters.http.lua
             typed_config:
               "@type": type.googleapis.com/envoy.extensions.filters.http.lua.v3.Lua
               stat_prefix: bar_script # This emits lua.bar_script.errors etc.
       
      string stat_prefix = 4;
      Parameters:
      value - The statPrefix to set.
      Returns:
      This builder for chaining.
    • clearStatPrefix

      public Lua.Builder clearStatPrefix()
       Optional additional prefix to use when emitting statistics. By default
       metrics are emitted in *.lua.* namespace. If multiple lua filters are
       configured in a filter chain, the stats from each filter instance can
       be emitted using custom stat prefix to distinguish emitted
       statistics. For example:
      
       .. code-block:: yaml
      
         http_filters:
           - name: envoy.filters.http.lua
             typed_config:
               "@type": type.googleapis.com/envoy.extensions.filters.http.lua.v3.Lua
               stat_prefix: foo_script # This emits lua.foo_script.errors etc.
           - name: envoy.filters.http.lua
             typed_config:
               "@type": type.googleapis.com/envoy.extensions.filters.http.lua.v3.Lua
               stat_prefix: bar_script # This emits lua.bar_script.errors etc.
       
      string stat_prefix = 4;
      Returns:
      This builder for chaining.
    • setStatPrefixBytes

      public Lua.Builder setStatPrefixBytes(com.google.protobuf.ByteString value)
       Optional additional prefix to use when emitting statistics. By default
       metrics are emitted in *.lua.* namespace. If multiple lua filters are
       configured in a filter chain, the stats from each filter instance can
       be emitted using custom stat prefix to distinguish emitted
       statistics. For example:
      
       .. code-block:: yaml
      
         http_filters:
           - name: envoy.filters.http.lua
             typed_config:
               "@type": type.googleapis.com/envoy.extensions.filters.http.lua.v3.Lua
               stat_prefix: foo_script # This emits lua.foo_script.errors etc.
           - name: envoy.filters.http.lua
             typed_config:
               "@type": type.googleapis.com/envoy.extensions.filters.http.lua.v3.Lua
               stat_prefix: bar_script # This emits lua.bar_script.errors etc.
       
      string stat_prefix = 4;
      Parameters:
      value - The bytes for statPrefix to set.
      Returns:
      This builder for chaining.
    • hasClearRouteCache

      public boolean hasClearRouteCache()
       If set to true, the Lua filter will clear the route cache automatically if the request
       headers are modified by the Lua script. If set to false, the Lua filter will not clear the
       route cache automatically.
       Default is true for backward compatibility.
       
      .google.protobuf.BoolValue clear_route_cache = 5;
      Specified by:
      hasClearRouteCache in interface LuaOrBuilder
      Returns:
      Whether the clearRouteCache field is set.
    • getClearRouteCache

      public com.google.protobuf.BoolValue getClearRouteCache()
       If set to true, the Lua filter will clear the route cache automatically if the request
       headers are modified by the Lua script. If set to false, the Lua filter will not clear the
       route cache automatically.
       Default is true for backward compatibility.
       
      .google.protobuf.BoolValue clear_route_cache = 5;
      Specified by:
      getClearRouteCache in interface LuaOrBuilder
      Returns:
      The clearRouteCache.
    • setClearRouteCache

      public Lua.Builder setClearRouteCache(com.google.protobuf.BoolValue value)
       If set to true, the Lua filter will clear the route cache automatically if the request
       headers are modified by the Lua script. If set to false, the Lua filter will not clear the
       route cache automatically.
       Default is true for backward compatibility.
       
      .google.protobuf.BoolValue clear_route_cache = 5;
    • setClearRouteCache

      public Lua.Builder setClearRouteCache(com.google.protobuf.BoolValue.Builder builderForValue)
       If set to true, the Lua filter will clear the route cache automatically if the request
       headers are modified by the Lua script. If set to false, the Lua filter will not clear the
       route cache automatically.
       Default is true for backward compatibility.
       
      .google.protobuf.BoolValue clear_route_cache = 5;
    • mergeClearRouteCache

      public Lua.Builder mergeClearRouteCache(com.google.protobuf.BoolValue value)
       If set to true, the Lua filter will clear the route cache automatically if the request
       headers are modified by the Lua script. If set to false, the Lua filter will not clear the
       route cache automatically.
       Default is true for backward compatibility.
       
      .google.protobuf.BoolValue clear_route_cache = 5;
    • clearClearRouteCache

      public Lua.Builder clearClearRouteCache()
       If set to true, the Lua filter will clear the route cache automatically if the request
       headers are modified by the Lua script. If set to false, the Lua filter will not clear the
       route cache automatically.
       Default is true for backward compatibility.
       
      .google.protobuf.BoolValue clear_route_cache = 5;
    • getClearRouteCacheBuilder

      public com.google.protobuf.BoolValue.Builder getClearRouteCacheBuilder()
       If set to true, the Lua filter will clear the route cache automatically if the request
       headers are modified by the Lua script. If set to false, the Lua filter will not clear the
       route cache automatically.
       Default is true for backward compatibility.
       
      .google.protobuf.BoolValue clear_route_cache = 5;
    • getClearRouteCacheOrBuilder

      public com.google.protobuf.BoolValueOrBuilder getClearRouteCacheOrBuilder()
       If set to true, the Lua filter will clear the route cache automatically if the request
       headers are modified by the Lua script. If set to false, the Lua filter will not clear the
       route cache automatically.
       Default is true for backward compatibility.
       
      .google.protobuf.BoolValue clear_route_cache = 5;
      Specified by:
      getClearRouteCacheOrBuilder in interface LuaOrBuilder
    • setUnknownFields

      public final Lua.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<Lua.Builder>
    • mergeUnknownFields

      public final Lua.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<Lua.Builder>