Class VmConfig.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- 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 typeenvoy.extensions.wasm.v3.VmConfig
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description VmConfig.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)VmConfigbuild()VmConfigbuildPartial()VmConfig.Builderclear()VmConfig.BuilderclearAllowPrecompiled()Allow the wasm file to include pre-compiled code on VMs which support it.VmConfig.BuilderclearCode()The Wasm code that Envoy will execute.VmConfig.BuilderclearConfiguration()The Wasm configuration used in initialization of a new VM (proxy_on_start).VmConfig.BuilderclearEnvironmentVariables()Specifies environment variables to be injected to this VM which will be available through WASI's ``environ_get`` and ``environ_get_sizes`` system calls.VmConfig.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)VmConfig.BuilderclearNackOnCodeCacheMiss()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.VmConfig.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)VmConfig.BuilderclearRuntime()The Wasm runtime type.VmConfig.BuilderclearVmId()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.VmConfig.Builderclone()booleangetAllowPrecompiled()Allow the wasm file to include pre-compiled code on VMs which support it.AsyncDataSourcegetCode()The Wasm code that Envoy will execute.AsyncDataSource.BuildergetCodeBuilder()The Wasm code that Envoy will execute.AsyncDataSourceOrBuildergetCodeOrBuilder()The Wasm code that Envoy will execute.com.google.protobuf.AnygetConfiguration()The Wasm configuration used in initialization of a new VM (proxy_on_start).com.google.protobuf.Any.BuildergetConfigurationBuilder()The Wasm configuration used in initialization of a new VM (proxy_on_start).com.google.protobuf.AnyOrBuildergetConfigurationOrBuilder()The Wasm configuration used in initialization of a new VM (proxy_on_start).VmConfiggetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()EnvironmentVariablesgetEnvironmentVariables()Specifies environment variables to be injected to this VM which will be available through WASI's ``environ_get`` and ``environ_get_sizes`` system calls.EnvironmentVariables.BuildergetEnvironmentVariablesBuilder()Specifies environment variables to be injected to this VM which will be available through WASI's ``environ_get`` and ``environ_get_sizes`` system calls.EnvironmentVariablesOrBuildergetEnvironmentVariablesOrBuilder()Specifies environment variables to be injected to this VM which will be available through WASI's ``environ_get`` and ``environ_get_sizes`` system calls.booleangetNackOnCodeCacheMiss()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.StringgetRuntime()The Wasm runtime type.com.google.protobuf.ByteStringgetRuntimeBytes()The Wasm runtime type.StringgetVmId()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.ByteStringgetVmIdBytes()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.booleanhasCode()The Wasm code that Envoy will execute.booleanhasConfiguration()The Wasm configuration used in initialization of a new VM (proxy_on_start).booleanhasEnvironmentVariables()Specifies 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.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()VmConfig.BuildermergeCode(AsyncDataSource value)The Wasm code that Envoy will execute.VmConfig.BuildermergeConfiguration(com.google.protobuf.Any value)The Wasm configuration used in initialization of a new VM (proxy_on_start).VmConfig.BuildermergeEnvironmentVariables(EnvironmentVariables value)Specifies environment variables to be injected to this VM which will be available through WASI's ``environ_get`` and ``environ_get_sizes`` system calls.VmConfig.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)VmConfig.BuildermergeFrom(com.google.protobuf.Message other)VmConfig.BuildermergeFrom(VmConfig other)VmConfig.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)VmConfig.BuildersetAllowPrecompiled(boolean value)Allow the wasm file to include pre-compiled code on VMs which support it.VmConfig.BuildersetCode(AsyncDataSource value)The Wasm code that Envoy will execute.VmConfig.BuildersetCode(AsyncDataSource.Builder builderForValue)The Wasm code that Envoy will execute.VmConfig.BuildersetConfiguration(com.google.protobuf.Any value)The Wasm configuration used in initialization of a new VM (proxy_on_start).VmConfig.BuildersetConfiguration(com.google.protobuf.Any.Builder builderForValue)The Wasm configuration used in initialization of a new VM (proxy_on_start).VmConfig.BuildersetEnvironmentVariables(EnvironmentVariables value)Specifies environment variables to be injected to this VM which will be available through WASI's ``environ_get`` and ``environ_get_sizes`` system calls.VmConfig.BuildersetEnvironmentVariables(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.VmConfig.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)VmConfig.BuildersetNackOnCodeCacheMiss(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.VmConfig.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)VmConfig.BuildersetRuntime(String value)The Wasm runtime type.VmConfig.BuildersetRuntimeBytes(com.google.protobuf.ByteString value)The Wasm runtime type.VmConfig.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)VmConfig.BuildersetVmId(String 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.VmConfig.BuildersetVmIdBytes(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, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
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
public 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
public VmConfig getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public VmConfig build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public VmConfig buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public VmConfig.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
public VmConfig.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<VmConfig.Builder>
-
clearOneof
public VmConfig.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- 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
public VmConfig.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<VmConfig.Builder>
-
mergeFrom
public VmConfig.Builder mergeFrom(VmConfig other)
-
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
public String 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
public VmConfig.Builder setVmId(String 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. 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
public VmConfig.Builder 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
public VmConfig.Builder 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. 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
public String getRuntime()
The Wasm runtime type. 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.wavm: **envoy.wasm.runtime.wavm**: `WAVM <https://wavm.github.io/>`_-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 [(.validate.rules) = { ... }- Specified by:
getRuntimein interfaceVmConfigOrBuilder- Returns:
- The runtime.
-
getRuntimeBytes
public com.google.protobuf.ByteString getRuntimeBytes()
The Wasm runtime type. 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.wavm: **envoy.wasm.runtime.wavm**: `WAVM <https://wavm.github.io/>`_-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 [(.validate.rules) = { ... }- Specified by:
getRuntimeBytesin interfaceVmConfigOrBuilder- Returns:
- The bytes for runtime.
-
setRuntime
public VmConfig.Builder setRuntime(String value)
The Wasm runtime type. 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.wavm: **envoy.wasm.runtime.wavm**: `WAVM <https://wavm.github.io/>`_-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 [(.validate.rules) = { ... }- Parameters:
value- The runtime to set.- Returns:
- This builder for chaining.
-
clearRuntime
public VmConfig.Builder clearRuntime()
The Wasm runtime type. 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.wavm: **envoy.wasm.runtime.wavm**: `WAVM <https://wavm.github.io/>`_-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 [(.validate.rules) = { ... }- Returns:
- This builder for chaining.
-
setRuntimeBytes
public VmConfig.Builder setRuntimeBytes(com.google.protobuf.ByteString value)
The Wasm runtime type. 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.wavm: **envoy.wasm.runtime.wavm**: `WAVM <https://wavm.github.io/>`_-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 [(.validate.rules) = { ... }- 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
public AsyncDataSource getCode()
The Wasm code that Envoy will execute.
.envoy.config.core.v3.AsyncDataSource code = 3;- Specified by:
getCodein interfaceVmConfigOrBuilder- Returns:
- The code.
-
setCode
public VmConfig.Builder setCode(AsyncDataSource value)
The Wasm code that Envoy will execute.
.envoy.config.core.v3.AsyncDataSource code = 3;
-
setCode
public VmConfig.Builder setCode(AsyncDataSource.Builder builderForValue)
The Wasm code that Envoy will execute.
.envoy.config.core.v3.AsyncDataSource code = 3;
-
mergeCode
public VmConfig.Builder mergeCode(AsyncDataSource value)
The Wasm code that Envoy will execute.
.envoy.config.core.v3.AsyncDataSource code = 3;
-
clearCode
public VmConfig.Builder clearCode()
The Wasm code that Envoy will execute.
.envoy.config.core.v3.AsyncDataSource code = 3;
-
getCodeBuilder
public AsyncDataSource.Builder getCodeBuilder()
The Wasm code that Envoy will execute.
.envoy.config.core.v3.AsyncDataSource code = 3;
-
getCodeOrBuilder
public AsyncDataSourceOrBuilder 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
public VmConfig.Builder setConfiguration(com.google.protobuf.Any value)
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
public VmConfig.Builder setConfiguration(com.google.protobuf.Any.Builder builderForValue)
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
public VmConfig.Builder mergeConfiguration(com.google.protobuf.Any value)
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
public VmConfig.Builder 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 enable for trusted sources as the precompiled code is not verified.
bool allow_precompiled = 5;- Specified by:
getAllowPrecompiledin interfaceVmConfigOrBuilder- Returns:
- The allowPrecompiled.
-
setAllowPrecompiled
public VmConfig.Builder setAllowPrecompiled(boolean value)
Allow the wasm file to include pre-compiled code on VMs which support it. Warning: this should only be enable 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
public VmConfig.Builder clearAllowPrecompiled()
Allow the wasm file to include pre-compiled code on VMs which support it. Warning: this should only be enable 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
public VmConfig.Builder 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.
bool nack_on_code_cache_miss = 6;- Parameters:
value- The nackOnCodeCacheMiss to set.- Returns:
- This builder for chaining.
-
clearNackOnCodeCacheMiss
public VmConfig.Builder 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 mostly implicitly called in your language's standard library, so you do not need to call them directly and you can access to env vars just like when you do 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
public EnvironmentVariables 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 mostly implicitly called in your language's standard library, so you do not need to call them directly and you can access to env vars just like when you do 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
public VmConfig.Builder setEnvironmentVariables(EnvironmentVariables value)
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 mostly implicitly called in your language's standard library, so you do not need to call them directly and you can access to env vars just like when you do on native platforms. Warning: Envoy rejects the configuration if there's conflict of key space.
.envoy.extensions.wasm.v3.EnvironmentVariables environment_variables = 7;
-
setEnvironmentVariables
public VmConfig.Builder 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. Note that these functions are mostly implicitly called in your language's standard library, so you do not need to call them directly and you can access to env vars just like when you do on native platforms. Warning: Envoy rejects the configuration if there's conflict of key space.
.envoy.extensions.wasm.v3.EnvironmentVariables environment_variables = 7;
-
mergeEnvironmentVariables
public VmConfig.Builder mergeEnvironmentVariables(EnvironmentVariables value)
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 mostly implicitly called in your language's standard library, so you do not need to call them directly and you can access to env vars just like when you do on native platforms. Warning: Envoy rejects the configuration if there's conflict of key space.
.envoy.extensions.wasm.v3.EnvironmentVariables environment_variables = 7;
-
clearEnvironmentVariables
public VmConfig.Builder 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 mostly implicitly called in your language's standard library, so you do not need to call them directly and you can access to env vars just like when you do on native platforms. Warning: Envoy rejects the configuration if there's conflict of key space.
.envoy.extensions.wasm.v3.EnvironmentVariables environment_variables = 7;
-
getEnvironmentVariablesBuilder
public EnvironmentVariables.Builder 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 mostly implicitly called in your language's standard library, so you do not need to call them directly and you can access to env vars just like when you do on native platforms. Warning: Envoy rejects the configuration if there's conflict of key space.
.envoy.extensions.wasm.v3.EnvironmentVariables environment_variables = 7;
-
getEnvironmentVariablesOrBuilder
public EnvironmentVariablesOrBuilder 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 mostly implicitly called in your language's standard library, so you do not need to call them directly and you can access to env vars just like when you do 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
public final VmConfig.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<VmConfig.Builder>
-
mergeUnknownFields
public final VmConfig.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<VmConfig.Builder>
-
-