Class VmConfig.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<VmConfig.Builder>
io.envoyproxy.envoy.extensions.wasm.v3.VmConfig.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,VmConfigOrBuilder,Cloneable
- Enclosing class:
- VmConfig
public static final class VmConfig.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<VmConfig.Builder>
implements VmConfigOrBuilder
Configuration for a Wasm VM. [#next-free-field: 8]Protobuf type
envoy.extensions.wasm.v3.VmConfig-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()Allow the wasm file to include pre-compiled code on VMs which support it. .. warning:: This should only be enabled for trusted sources as the precompiled code is not verified.The Wasm code that Envoy will execute.The Wasm configuration used in initialization of a new VM (``proxy_on_start``).Specifies environment variables to be injected to this VM which will be available through WASI's ``environ_get`` and ``environ_get_sizes`` system calls.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) If true and the code needs to be remotely fetched and it is not in the cache then NACK the configuration update and do a background fetch to fill the cache, otherwise fetch the code asynchronously and enter warming state.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) The Wasm runtime type, defaults to the first available Wasm engine used at Envoy build-time.An ID which will be used along with a hash of the wasm code (or the name of the registered Null VM plugin) to determine which VM will be used for the plugin.clone()booleanAllow the wasm file to include pre-compiled code on VMs which support it. .. warning:: This should only be enabled for trusted sources as the precompiled code is not verified.getCode()The Wasm code that Envoy will execute.The Wasm code that Envoy will execute.The Wasm code that Envoy will execute.com.google.protobuf.AnyThe Wasm configuration used in initialization of a new VM (``proxy_on_start``).com.google.protobuf.Any.BuilderThe Wasm configuration used in initialization of a new VM (``proxy_on_start``).com.google.protobuf.AnyOrBuilderThe Wasm configuration used in initialization of a new VM (``proxy_on_start``).static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorSpecifies environment variables to be injected to this VM which will be available through WASI's ``environ_get`` and ``environ_get_sizes`` system calls.Specifies environment variables to be injected to this VM which will be available through WASI's ``environ_get`` and ``environ_get_sizes`` system calls.Specifies environment variables to be injected to this VM which will be available through WASI's ``environ_get`` and ``environ_get_sizes`` system calls.booleanIf true and the code needs to be remotely fetched and it is not in the cache then NACK the configuration update and do a background fetch to fill the cache, otherwise fetch the code asynchronously and enter warming state.The Wasm runtime type, defaults to the first available Wasm engine used at Envoy build-time.com.google.protobuf.ByteStringThe Wasm runtime type, defaults to the first available Wasm engine used at Envoy build-time.getVmId()An ID which will be used along with a hash of the wasm code (or the name of the registered Null VM plugin) to determine which VM will be used for the plugin.com.google.protobuf.ByteStringAn ID which will be used along with a hash of the wasm code (or the name of the registered Null VM plugin) to determine which VM will be used for the plugin.booleanhasCode()The Wasm code that Envoy will execute.booleanThe Wasm configuration used in initialization of a new VM (``proxy_on_start``).booleanSpecifies environment variables to be injected to this VM which will be available through WASI's ``environ_get`` and ``environ_get_sizes`` system calls.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeCode(AsyncDataSource value) The Wasm code that Envoy will execute.mergeConfiguration(com.google.protobuf.Any value) The Wasm configuration used in initialization of a new VM (``proxy_on_start``).Specifies environment variables to be injected to this VM which will be available through WASI's ``environ_get`` and ``environ_get_sizes`` system calls.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) final VmConfig.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setAllowPrecompiled(boolean value) Allow the wasm file to include pre-compiled code on VMs which support it. .. warning:: This should only be enabled for trusted sources as the precompiled code is not verified.setCode(AsyncDataSource value) The Wasm code that Envoy will execute.setCode(AsyncDataSource.Builder builderForValue) The Wasm code that Envoy will execute.setConfiguration(com.google.protobuf.Any value) The Wasm configuration used in initialization of a new VM (``proxy_on_start``).setConfiguration(com.google.protobuf.Any.Builder builderForValue) The Wasm configuration used in initialization of a new VM (``proxy_on_start``).Specifies environment variables to be injected to this VM which will be available through WASI's ``environ_get`` and ``environ_get_sizes`` system calls.setEnvironmentVariables(EnvironmentVariables.Builder builderForValue) Specifies environment variables to be injected to this VM which will be available through WASI's ``environ_get`` and ``environ_get_sizes`` system calls.setNackOnCodeCacheMiss(boolean value) If true and the code needs to be remotely fetched and it is not in the cache then NACK the configuration update and do a background fetch to fill the cache, otherwise fetch the code asynchronously and enter warming state.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setRuntime(String value) The Wasm runtime type, defaults to the first available Wasm engine used at Envoy build-time.setRuntimeBytes(com.google.protobuf.ByteString value) The Wasm runtime type, defaults to the first available Wasm engine used at Envoy build-time.final VmConfig.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) An ID which will be used along with a hash of the wasm code (or the name of the registered Null VM plugin) to determine which VM will be used for the plugin.setVmIdBytes(com.google.protobuf.ByteString value) An ID which will be used along with a hash of the wasm code (or the name of the registered Null VM plugin) to determine which VM will be used for the plugin.Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<VmConfig.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<VmConfig.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<VmConfig.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<VmConfig.Builder>
-
setField
public VmConfig.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<VmConfig.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<VmConfig.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<VmConfig.Builder>
-
setRepeatedField
public VmConfig.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<VmConfig.Builder>
-
addRepeatedField
public VmConfig.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<VmConfig.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<VmConfig.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<VmConfig.Builder>
-
mergeFrom
public VmConfig.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<VmConfig.Builder>- Throws:
IOException
-
getVmId
An ID which will be used along with a hash of the wasm code (or the name of the registered Null VM plugin) to determine which VM will be used for the plugin. All plugins which use the same ``vm_id`` and code will use the same VM. May be left blank. Sharing a VM between plugins can reduce memory utilization and make sharing of data easier which may have security implications. [#comment: TODO: add ref for details.]
string vm_id = 1;- Specified by:
getVmIdin interfaceVmConfigOrBuilder- Returns:
- The vmId.
-
getVmIdBytes
public com.google.protobuf.ByteString getVmIdBytes()An ID which will be used along with a hash of the wasm code (or the name of the registered Null VM plugin) to determine which VM will be used for the plugin. All plugins which use the same ``vm_id`` and code will use the same VM. May be left blank. Sharing a VM between plugins can reduce memory utilization and make sharing of data easier which may have security implications. [#comment: TODO: add ref for details.]
string vm_id = 1;- Specified by:
getVmIdBytesin interfaceVmConfigOrBuilder- Returns:
- The bytes for vmId.
-
setVmId
An ID which will be used along with a hash of the wasm code (or the name of the registered Null VM plugin) to determine which VM will be used for the plugin. All plugins which use the same ``vm_id`` and code will use the same VM. May be left blank. Sharing a VM between plugins can reduce memory utilization and make sharing of data easier which may have security implications. [#comment: TODO: add ref for details.]
string vm_id = 1;- Parameters:
value- The vmId to set.- Returns:
- This builder for chaining.
-
clearVmId
An ID which will be used along with a hash of the wasm code (or the name of the registered Null VM plugin) to determine which VM will be used for the plugin. All plugins which use the same ``vm_id`` and code will use the same VM. May be left blank. Sharing a VM between plugins can reduce memory utilization and make sharing of data easier which may have security implications. [#comment: TODO: add ref for details.]
string vm_id = 1;- Returns:
- This builder for chaining.
-
setVmIdBytes
An ID which will be used along with a hash of the wasm code (or the name of the registered Null VM plugin) to determine which VM will be used for the plugin. All plugins which use the same ``vm_id`` and code will use the same VM. May be left blank. Sharing a VM between plugins can reduce memory utilization and make sharing of data easier which may have security implications. [#comment: TODO: add ref for details.]
string vm_id = 1;- Parameters:
value- The bytes for vmId to set.- Returns:
- This builder for chaining.
-
getRuntime
The Wasm runtime type, defaults to the first available Wasm engine used at Envoy build-time. The priority to search for the available engine is: v8 -> wasmtime -> wamr. Available Wasm runtime types are registered as extensions. The following runtimes are included in Envoy code base: .. _extension_envoy.wasm.runtime.null: **envoy.wasm.runtime.null**: Null sandbox, the Wasm module must be compiled and linked into the Envoy binary. The registered name is given in the ``code`` field as ``inline_string``. .. _extension_envoy.wasm.runtime.v8: **envoy.wasm.runtime.v8**: `V8 <https://v8.dev/>`_-based WebAssembly runtime. .. _extension_envoy.wasm.runtime.wamr: **envoy.wasm.runtime.wamr**: `WAMR <https://github.com/bytecodealliance/wasm-micro-runtime/>`_-based WebAssembly runtime. This runtime is not enabled in the official build. .. _extension_envoy.wasm.runtime.wasmtime: **envoy.wasm.runtime.wasmtime**: `Wasmtime <https://wasmtime.dev/>`_-based WebAssembly runtime. This runtime is not enabled in the official build. [#extension-category: envoy.wasm.runtime]
string runtime = 2;- Specified by:
getRuntimein interfaceVmConfigOrBuilder- Returns:
- The runtime.
-
getRuntimeBytes
public com.google.protobuf.ByteString getRuntimeBytes()The Wasm runtime type, defaults to the first available Wasm engine used at Envoy build-time. The priority to search for the available engine is: v8 -> wasmtime -> wamr. Available Wasm runtime types are registered as extensions. The following runtimes are included in Envoy code base: .. _extension_envoy.wasm.runtime.null: **envoy.wasm.runtime.null**: Null sandbox, the Wasm module must be compiled and linked into the Envoy binary. The registered name is given in the ``code`` field as ``inline_string``. .. _extension_envoy.wasm.runtime.v8: **envoy.wasm.runtime.v8**: `V8 <https://v8.dev/>`_-based WebAssembly runtime. .. _extension_envoy.wasm.runtime.wamr: **envoy.wasm.runtime.wamr**: `WAMR <https://github.com/bytecodealliance/wasm-micro-runtime/>`_-based WebAssembly runtime. This runtime is not enabled in the official build. .. _extension_envoy.wasm.runtime.wasmtime: **envoy.wasm.runtime.wasmtime**: `Wasmtime <https://wasmtime.dev/>`_-based WebAssembly runtime. This runtime is not enabled in the official build. [#extension-category: envoy.wasm.runtime]
string runtime = 2;- Specified by:
getRuntimeBytesin interfaceVmConfigOrBuilder- Returns:
- The bytes for runtime.
-
setRuntime
The Wasm runtime type, defaults to the first available Wasm engine used at Envoy build-time. The priority to search for the available engine is: v8 -> wasmtime -> wamr. Available Wasm runtime types are registered as extensions. The following runtimes are included in Envoy code base: .. _extension_envoy.wasm.runtime.null: **envoy.wasm.runtime.null**: Null sandbox, the Wasm module must be compiled and linked into the Envoy binary. The registered name is given in the ``code`` field as ``inline_string``. .. _extension_envoy.wasm.runtime.v8: **envoy.wasm.runtime.v8**: `V8 <https://v8.dev/>`_-based WebAssembly runtime. .. _extension_envoy.wasm.runtime.wamr: **envoy.wasm.runtime.wamr**: `WAMR <https://github.com/bytecodealliance/wasm-micro-runtime/>`_-based WebAssembly runtime. This runtime is not enabled in the official build. .. _extension_envoy.wasm.runtime.wasmtime: **envoy.wasm.runtime.wasmtime**: `Wasmtime <https://wasmtime.dev/>`_-based WebAssembly runtime. This runtime is not enabled in the official build. [#extension-category: envoy.wasm.runtime]
string runtime = 2;- Parameters:
value- The runtime to set.- Returns:
- This builder for chaining.
-
clearRuntime
The Wasm runtime type, defaults to the first available Wasm engine used at Envoy build-time. The priority to search for the available engine is: v8 -> wasmtime -> wamr. Available Wasm runtime types are registered as extensions. The following runtimes are included in Envoy code base: .. _extension_envoy.wasm.runtime.null: **envoy.wasm.runtime.null**: Null sandbox, the Wasm module must be compiled and linked into the Envoy binary. The registered name is given in the ``code`` field as ``inline_string``. .. _extension_envoy.wasm.runtime.v8: **envoy.wasm.runtime.v8**: `V8 <https://v8.dev/>`_-based WebAssembly runtime. .. _extension_envoy.wasm.runtime.wamr: **envoy.wasm.runtime.wamr**: `WAMR <https://github.com/bytecodealliance/wasm-micro-runtime/>`_-based WebAssembly runtime. This runtime is not enabled in the official build. .. _extension_envoy.wasm.runtime.wasmtime: **envoy.wasm.runtime.wasmtime**: `Wasmtime <https://wasmtime.dev/>`_-based WebAssembly runtime. This runtime is not enabled in the official build. [#extension-category: envoy.wasm.runtime]
string runtime = 2;- Returns:
- This builder for chaining.
-
setRuntimeBytes
The Wasm runtime type, defaults to the first available Wasm engine used at Envoy build-time. The priority to search for the available engine is: v8 -> wasmtime -> wamr. Available Wasm runtime types are registered as extensions. The following runtimes are included in Envoy code base: .. _extension_envoy.wasm.runtime.null: **envoy.wasm.runtime.null**: Null sandbox, the Wasm module must be compiled and linked into the Envoy binary. The registered name is given in the ``code`` field as ``inline_string``. .. _extension_envoy.wasm.runtime.v8: **envoy.wasm.runtime.v8**: `V8 <https://v8.dev/>`_-based WebAssembly runtime. .. _extension_envoy.wasm.runtime.wamr: **envoy.wasm.runtime.wamr**: `WAMR <https://github.com/bytecodealliance/wasm-micro-runtime/>`_-based WebAssembly runtime. This runtime is not enabled in the official build. .. _extension_envoy.wasm.runtime.wasmtime: **envoy.wasm.runtime.wasmtime**: `Wasmtime <https://wasmtime.dev/>`_-based WebAssembly runtime. This runtime is not enabled in the official build. [#extension-category: envoy.wasm.runtime]
string runtime = 2;- Parameters:
value- The bytes for runtime to set.- Returns:
- This builder for chaining.
-
hasCode
public boolean hasCode()The Wasm code that Envoy will execute.
.envoy.config.core.v3.AsyncDataSource code = 3;- Specified by:
hasCodein interfaceVmConfigOrBuilder- Returns:
- Whether the code field is set.
-
getCode
The Wasm code that Envoy will execute.
.envoy.config.core.v3.AsyncDataSource code = 3;- Specified by:
getCodein interfaceVmConfigOrBuilder- Returns:
- The code.
-
setCode
The Wasm code that Envoy will execute.
.envoy.config.core.v3.AsyncDataSource code = 3; -
setCode
The Wasm code that Envoy will execute.
.envoy.config.core.v3.AsyncDataSource code = 3; -
mergeCode
The Wasm code that Envoy will execute.
.envoy.config.core.v3.AsyncDataSource code = 3; -
clearCode
The Wasm code that Envoy will execute.
.envoy.config.core.v3.AsyncDataSource code = 3; -
getCodeBuilder
The Wasm code that Envoy will execute.
.envoy.config.core.v3.AsyncDataSource code = 3; -
getCodeOrBuilder
The Wasm code that Envoy will execute.
.envoy.config.core.v3.AsyncDataSource code = 3;- Specified by:
getCodeOrBuilderin interfaceVmConfigOrBuilder
-
hasConfiguration
public boolean hasConfiguration()The Wasm configuration used in initialization of a new VM (``proxy_on_start``). ``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.
.google.protobuf.Any configuration = 4;- Specified by:
hasConfigurationin interfaceVmConfigOrBuilder- Returns:
- Whether the configuration field is set.
-
getConfiguration
public com.google.protobuf.Any getConfiguration()The Wasm configuration used in initialization of a new VM (``proxy_on_start``). ``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.
.google.protobuf.Any configuration = 4;- Specified by:
getConfigurationin interfaceVmConfigOrBuilder- Returns:
- The configuration.
-
setConfiguration
The Wasm configuration used in initialization of a new VM (``proxy_on_start``). ``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.
.google.protobuf.Any configuration = 4; -
setConfiguration
The Wasm configuration used in initialization of a new VM (``proxy_on_start``). ``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.
.google.protobuf.Any configuration = 4; -
mergeConfiguration
The Wasm configuration used in initialization of a new VM (``proxy_on_start``). ``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.
.google.protobuf.Any configuration = 4; -
clearConfiguration
The Wasm configuration used in initialization of a new VM (``proxy_on_start``). ``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.
.google.protobuf.Any configuration = 4; -
getConfigurationBuilder
public com.google.protobuf.Any.Builder getConfigurationBuilder()The Wasm configuration used in initialization of a new VM (``proxy_on_start``). ``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.
.google.protobuf.Any configuration = 4; -
getConfigurationOrBuilder
public com.google.protobuf.AnyOrBuilder getConfigurationOrBuilder()The Wasm configuration used in initialization of a new VM (``proxy_on_start``). ``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.
.google.protobuf.Any configuration = 4;- Specified by:
getConfigurationOrBuilderin interfaceVmConfigOrBuilder
-
getAllowPrecompiled
public boolean getAllowPrecompiled()Allow the wasm file to include pre-compiled code on VMs which support it. .. warning:: This should only be enabled for trusted sources as the precompiled code is not verified.
bool allow_precompiled = 5;- Specified by:
getAllowPrecompiledin interfaceVmConfigOrBuilder- Returns:
- The allowPrecompiled.
-
setAllowPrecompiled
Allow the wasm file to include pre-compiled code on VMs which support it. .. warning:: This should only be enabled for trusted sources as the precompiled code is not verified.
bool allow_precompiled = 5;- Parameters:
value- The allowPrecompiled to set.- Returns:
- This builder for chaining.
-
clearAllowPrecompiled
Allow the wasm file to include pre-compiled code on VMs which support it. .. warning:: This should only be enabled for trusted sources as the precompiled code is not verified.
bool allow_precompiled = 5;- Returns:
- This builder for chaining.
-
getNackOnCodeCacheMiss
public boolean getNackOnCodeCacheMiss()If true and the code needs to be remotely fetched and it is not in the cache then NACK the configuration update and do a background fetch to fill the cache, otherwise fetch the code asynchronously and enter warming state.
bool nack_on_code_cache_miss = 6;- Specified by:
getNackOnCodeCacheMissin interfaceVmConfigOrBuilder- Returns:
- The nackOnCodeCacheMiss.
-
setNackOnCodeCacheMiss
If true and the code needs to be remotely fetched and it is not in the cache then NACK the configuration update and do a background fetch to fill the cache, otherwise fetch the code asynchronously and enter warming state.
bool nack_on_code_cache_miss = 6;- Parameters:
value- The nackOnCodeCacheMiss to set.- Returns:
- This builder for chaining.
-
clearNackOnCodeCacheMiss
If true and the code needs to be remotely fetched and it is not in the cache then NACK the configuration update and do a background fetch to fill the cache, otherwise fetch the code asynchronously and enter warming state.
bool nack_on_code_cache_miss = 6;- Returns:
- This builder for chaining.
-
hasEnvironmentVariables
public boolean hasEnvironmentVariables()Specifies environment variables to be injected to this VM which will be available through WASI's ``environ_get`` and ``environ_get_sizes`` system calls. Note that these functions are generally called implicitly by your language's standard library. Therefore, you do not need to call them directly. You can access environment variables in the same way you would on native platforms. .. warning:: Envoy rejects the configuration if there's conflict of key space.
.envoy.extensions.wasm.v3.EnvironmentVariables environment_variables = 7;- Specified by:
hasEnvironmentVariablesin interfaceVmConfigOrBuilder- Returns:
- Whether the environmentVariables field is set.
-
getEnvironmentVariables
Specifies environment variables to be injected to this VM which will be available through WASI's ``environ_get`` and ``environ_get_sizes`` system calls. Note that these functions are generally called implicitly by your language's standard library. Therefore, you do not need to call them directly. You can access environment variables in the same way you would on native platforms. .. warning:: Envoy rejects the configuration if there's conflict of key space.
.envoy.extensions.wasm.v3.EnvironmentVariables environment_variables = 7;- Specified by:
getEnvironmentVariablesin interfaceVmConfigOrBuilder- Returns:
- The environmentVariables.
-
setEnvironmentVariables
Specifies environment variables to be injected to this VM which will be available through WASI's ``environ_get`` and ``environ_get_sizes`` system calls. Note that these functions are generally called implicitly by your language's standard library. Therefore, you do not need to call them directly. You can access environment variables in the same way you would on native platforms. .. warning:: Envoy rejects the configuration if there's conflict of key space.
.envoy.extensions.wasm.v3.EnvironmentVariables environment_variables = 7; -
setEnvironmentVariables
Specifies environment variables to be injected to this VM which will be available through WASI's ``environ_get`` and ``environ_get_sizes`` system calls. Note that these functions are generally called implicitly by your language's standard library. Therefore, you do not need to call them directly. You can access environment variables in the same way you would on native platforms. .. warning:: Envoy rejects the configuration if there's conflict of key space.
.envoy.extensions.wasm.v3.EnvironmentVariables environment_variables = 7; -
mergeEnvironmentVariables
Specifies environment variables to be injected to this VM which will be available through WASI's ``environ_get`` and ``environ_get_sizes`` system calls. Note that these functions are generally called implicitly by your language's standard library. Therefore, you do not need to call them directly. You can access environment variables in the same way you would on native platforms. .. warning:: Envoy rejects the configuration if there's conflict of key space.
.envoy.extensions.wasm.v3.EnvironmentVariables environment_variables = 7; -
clearEnvironmentVariables
Specifies environment variables to be injected to this VM which will be available through WASI's ``environ_get`` and ``environ_get_sizes`` system calls. Note that these functions are generally called implicitly by your language's standard library. Therefore, you do not need to call them directly. You can access environment variables in the same way you would on native platforms. .. warning:: Envoy rejects the configuration if there's conflict of key space.
.envoy.extensions.wasm.v3.EnvironmentVariables environment_variables = 7; -
getEnvironmentVariablesBuilder
Specifies environment variables to be injected to this VM which will be available through WASI's ``environ_get`` and ``environ_get_sizes`` system calls. Note that these functions are generally called implicitly by your language's standard library. Therefore, you do not need to call them directly. You can access environment variables in the same way you would on native platforms. .. warning:: Envoy rejects the configuration if there's conflict of key space.
.envoy.extensions.wasm.v3.EnvironmentVariables environment_variables = 7; -
getEnvironmentVariablesOrBuilder
Specifies environment variables to be injected to this VM which will be available through WASI's ``environ_get`` and ``environ_get_sizes`` system calls. Note that these functions are generally called implicitly by your language's standard library. Therefore, you do not need to call them directly. You can access environment variables in the same way you would on native platforms. .. warning:: Envoy rejects the configuration if there's conflict of key space.
.envoy.extensions.wasm.v3.EnvironmentVariables environment_variables = 7;- Specified by:
getEnvironmentVariablesOrBuilderin interfaceVmConfigOrBuilder
-
setUnknownFields
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<VmConfig.Builder>
-
mergeUnknownFields
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<VmConfig.Builder>
-