Class Lua.Builder
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 Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()If set to true, the Lua filter will clear the route cache automatically if the request headers are modified by the Lua script.The default Lua code that Envoy will execute.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) Deprecated.envoy.extensions.filters.http.lua.v3.Lua.inline_code is deprecated.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) Optional additional prefix to use when emitting statistics.clone()booleanMap of named Lua source codes that can be referenced in :ref:`LuaPerRoute <envoy_v3_api_msg_extensions.filters.http.lua.v3.LuaPerRoute>`.com.google.protobuf.BoolValueIf set to true, the Lua filter will clear the route cache automatically if the request headers are modified by the Lua script.com.google.protobuf.BoolValue.BuilderIf set to true, the Lua filter will clear the route cache automatically if the request headers are modified by the Lua script.com.google.protobuf.BoolValueOrBuilderIf set to true, the Lua filter will clear the route cache automatically if the request headers are modified by the Lua script.The default Lua code that Envoy will execute.The default Lua code that Envoy will execute.The default Lua code that Envoy will execute.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorDeprecated.envoy.extensions.filters.http.lua.v3.Lua.inline_code is deprecated.com.google.protobuf.ByteStringDeprecated.envoy.extensions.filters.http.lua.v3.Lua.inline_code is deprecated.Deprecated.Deprecated.intMap of named Lua source codes that can be referenced in :ref:`LuaPerRoute <envoy_v3_api_msg_extensions.filters.http.lua.v3.LuaPerRoute>`.Map of named Lua source codes that can be referenced in :ref:`LuaPerRoute <envoy_v3_api_msg_extensions.filters.http.lua.v3.LuaPerRoute>`.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>`.Map of named Lua source codes that can be referenced in :ref:`LuaPerRoute <envoy_v3_api_msg_extensions.filters.http.lua.v3.LuaPerRoute>`.Optional additional prefix to use when emitting statistics.com.google.protobuf.ByteStringOptional additional prefix to use when emitting statistics.booleanIf set to true, the Lua filter will clear the route cache automatically if the request headers are modified by the Lua script.booleanThe default Lua code that Envoy will execute.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number) final booleanmergeClearRouteCache(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.mergeDefaultSourceCode(DataSource value) The default Lua code that Envoy will execute.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) final Lua.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) 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>`.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>`.Map of named Lua source codes that can be referenced in :ref:`LuaPerRoute <envoy_v3_api_msg_extensions.filters.http.lua.v3.LuaPerRoute>`.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>`.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.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.setDefaultSourceCode(DataSource value) The default Lua code that Envoy will execute.setDefaultSourceCode(DataSource.Builder builderForValue) The default Lua code that Envoy will execute.setInlineCode(String value) Deprecated.envoy.extensions.filters.http.lua.v3.Lua.inline_code is deprecated.setInlineCodeBytes(com.google.protobuf.ByteString value) Deprecated.envoy.extensions.filters.http.lua.v3.Lua.inline_code is deprecated.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setStatPrefix(String value) Optional additional prefix to use when emitting statistics.setStatPrefixBytes(com.google.protobuf.ByteString value) Optional additional prefix to use when emitting statistics.final Lua.BuildersetUnknownFields(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, internalGetMutableMapField, 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() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessageV3.Builder<Lua.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessageV3.Builder<Lua.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Lua.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<Lua.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<Lua.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<Lua.Builder>
-
setField
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Lua.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Lua.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Lua.Builder>
-
setRepeatedField
public Lua.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<Lua.Builder>
-
addRepeatedField
public Lua.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<Lua.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Lua.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Lua.Builder>- Throws:
IOException
-
getInlineCode
Deprecated.envoy.extensions.filters.http.lua.v3.Lua.inline_code is deprecated. See envoy/extensions/filters/http/lua/v3/lua.proto;l=39The 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:
getInlineCodein interfaceLuaOrBuilder- Returns:
- The inlineCode.
-
getInlineCodeBytes
Deprecated.envoy.extensions.filters.http.lua.v3.Lua.inline_code is deprecated. See envoy/extensions/filters/http/lua/v3/lua.proto;l=39The 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:
getInlineCodeBytesin interfaceLuaOrBuilder- Returns:
- The bytes for inlineCode.
-
setInlineCode
Deprecated.envoy.extensions.filters.http.lua.v3.Lua.inline_code is deprecated. See envoy/extensions/filters/http/lua/v3/lua.proto;l=39The 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.envoy.extensions.filters.http.lua.v3.Lua.inline_code is deprecated. See envoy/extensions/filters/http/lua/v3/lua.proto;l=39The 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.envoy.extensions.filters.http.lua.v3.Lua.inline_code is deprecated. See envoy/extensions/filters/http/lua/v3/lua.proto;l=39The 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:LuaOrBuilderMap 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.luamap<string, .envoy.config.core.v3.DataSource> source_codes = 2;- Specified by:
getSourceCodesCountin interfaceLuaOrBuilder
-
containsSourceCodes
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.luamap<string, .envoy.config.core.v3.DataSource> source_codes = 2;- Specified by:
containsSourceCodesin interfaceLuaOrBuilder
-
getSourceCodes
Deprecated.UsegetSourceCodesMap()instead.- Specified by:
getSourceCodesin interfaceLuaOrBuilder
-
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.luamap<string, .envoy.config.core.v3.DataSource> source_codes = 2;- Specified by:
getSourceCodesMapin interfaceLuaOrBuilder
-
getSourceCodesOrDefault
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.luamap<string, .envoy.config.core.v3.DataSource> source_codes = 2;- Specified by:
getSourceCodesOrDefaultin interfaceLuaOrBuilder
-
getSourceCodesOrThrow
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.luamap<string, .envoy.config.core.v3.DataSource> source_codes = 2;- Specified by:
getSourceCodesOrThrowin interfaceLuaOrBuilder
-
clearSourceCodes
-
removeSourceCodes
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.luamap<string, .envoy.config.core.v3.DataSource> source_codes = 2; -
getMutableSourceCodes
Deprecated.Use alternate mutation accessors instead. -
putSourceCodes
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.luamap<string, .envoy.config.core.v3.DataSource> source_codes = 2; -
putAllSourceCodes
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.luamap<string, .envoy.config.core.v3.DataSource> source_codes = 2; -
putSourceCodesBuilderIfAbsent
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.luamap<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:
hasDefaultSourceCodein interfaceLuaOrBuilder- Returns:
- Whether the defaultSourceCode field is set.
-
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:
getDefaultSourceCodein interfaceLuaOrBuilder- Returns:
- The defaultSourceCode.
-
setDefaultSourceCode
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
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
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
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
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
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:
getDefaultSourceCodeOrBuilderin interfaceLuaOrBuilder
-
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:
getStatPrefixin interfaceLuaOrBuilder- 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:
getStatPrefixBytesin interfaceLuaOrBuilder- Returns:
- The bytes for statPrefix.
-
setStatPrefix
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
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
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:
hasClearRouteCachein interfaceLuaOrBuilder- 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:
getClearRouteCachein interfaceLuaOrBuilder- Returns:
- The clearRouteCache.
-
setClearRouteCache
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
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
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
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:
getClearRouteCacheOrBuilderin interfaceLuaOrBuilder
-
setUnknownFields
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Lua.Builder>
-
mergeUnknownFields
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Lua.Builder>
-