Interface LuaOrBuilder

  • All Superinterfaces:
    com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
    All Known Implementing Classes:
    Lua, Lua.Builder

    public interface LuaOrBuilder
    extends com.google.protobuf.MessageOrBuilder
    • Method Summary

      All Methods Instance Methods Abstract Methods Deprecated Methods 
      Modifier and Type Method Description
      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>`.
      String getInlineCode()
      The Lua code that Envoy will execute.
      com.google.protobuf.ByteString getInlineCodeBytes()
      The Lua code that Envoy will execute.
      Map<String,​DataSource> getSourceCodes()
      Deprecated.
      int getSourceCodesCount()
      Map of named Lua source codes that can be referenced in :ref:`LuaPerRoute <envoy_v3_api_msg_extensions.filters.http.lua.v3.LuaPerRoute>`.
      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>`.
      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>`.
      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>`.
      • Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

        isInitialized
      • Methods inherited from interface com.google.protobuf.MessageOrBuilder

        findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
    • Method Detail

      • getInlineCode

        String getInlineCode()
         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.
         
        string inline_code = 1 [(.validate.rules) = { ... }
      • getInlineCodeBytes

        com.google.protobuf.ByteString getInlineCodeBytes()
         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.
         
        string inline_code = 1 [(.validate.rules) = { ... }
      • getSourceCodesCount

        int getSourceCodesCount()
         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;
      • containsSourceCodes

        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;
      • getSourceCodesMap

        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;
      • getSourceCodesOrDefault

        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;
      • getSourceCodesOrThrow

        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;