public static final class VmConfig.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<VmConfig.Builder> implements VmConfigOrBuilder
Configuration for a Wasm VM. [#next-free-field: 7]Protobuf type
envoy.extensions.wasm.v3.VmConfig| Modifier and Type | Method and Description |
|---|---|
VmConfig.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
VmConfig |
build() |
VmConfig |
buildPartial() |
VmConfig.Builder |
clear() |
VmConfig.Builder |
clearAllowPrecompiled()
Allow the wasm file to include pre-compiled code on VMs which support it.
|
VmConfig.Builder |
clearCode()
The Wasm code that Envoy will execute.
|
VmConfig.Builder |
clearConfiguration()
The Wasm configuration used in initialization of a new VM
(proxy_on_start).
|
VmConfig.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
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.
|
VmConfig.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
VmConfig.Builder |
clearRuntime()
The Wasm runtime type.
|
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.
|
VmConfig.Builder |
clone() |
boolean |
getAllowPrecompiled()
Allow the wasm file to include pre-compiled code on VMs which support it.
|
AsyncDataSource |
getCode()
The Wasm code that Envoy will execute.
|
AsyncDataSource.Builder |
getCodeBuilder()
The Wasm code that Envoy will execute.
|
AsyncDataSourceOrBuilder |
getCodeOrBuilder()
The Wasm code that Envoy will execute.
|
com.google.protobuf.Any |
getConfiguration()
The Wasm configuration used in initialization of a new VM
(proxy_on_start).
|
com.google.protobuf.Any.Builder |
getConfigurationBuilder()
The Wasm configuration used in initialization of a new VM
(proxy_on_start).
|
com.google.protobuf.AnyOrBuilder |
getConfigurationOrBuilder()
The Wasm configuration used in initialization of a new VM
(proxy_on_start).
|
VmConfig |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
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.
|
String |
getRuntime()
The Wasm runtime type.
|
com.google.protobuf.ByteString |
getRuntimeBytes()
The Wasm runtime type.
|
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.
|
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.
|
boolean |
hasCode()
The Wasm code that Envoy will execute.
|
boolean |
hasConfiguration()
The Wasm configuration used in initialization of a new VM
(proxy_on_start).
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
VmConfig.Builder |
mergeCode(AsyncDataSource value)
The Wasm code that Envoy will execute.
|
VmConfig.Builder |
mergeConfiguration(com.google.protobuf.Any value)
The Wasm configuration used in initialization of a new VM
(proxy_on_start).
|
VmConfig.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
VmConfig.Builder |
mergeFrom(com.google.protobuf.Message other) |
VmConfig.Builder |
mergeFrom(VmConfig other) |
VmConfig.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
VmConfig.Builder |
setAllowPrecompiled(boolean value)
Allow the wasm file to include pre-compiled code on VMs which support it.
|
VmConfig.Builder |
setCode(AsyncDataSource.Builder builderForValue)
The Wasm code that Envoy will execute.
|
VmConfig.Builder |
setCode(AsyncDataSource value)
The Wasm code that Envoy will execute.
|
VmConfig.Builder |
setConfiguration(com.google.protobuf.Any.Builder builderForValue)
The Wasm configuration used in initialization of a new VM
(proxy_on_start).
|
VmConfig.Builder |
setConfiguration(com.google.protobuf.Any value)
The Wasm configuration used in initialization of a new VM
(proxy_on_start).
|
VmConfig.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
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.
|
VmConfig.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
VmConfig.Builder |
setRuntime(String value)
The Wasm runtime type.
|
VmConfig.Builder |
setRuntimeBytes(com.google.protobuf.ByteString value)
The Wasm runtime type.
|
VmConfig.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
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.
|
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.
|
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<VmConfig.Builder>public VmConfig.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<VmConfig.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<VmConfig.Builder>public VmConfig getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic VmConfig build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic VmConfig buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic VmConfig.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<VmConfig.Builder>public VmConfig.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<VmConfig.Builder>public VmConfig.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<VmConfig.Builder>public VmConfig.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<VmConfig.Builder>public VmConfig.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<VmConfig.Builder>public VmConfig.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<VmConfig.Builder>public VmConfig.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<VmConfig.Builder>public VmConfig.Builder mergeFrom(VmConfig other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<VmConfig.Builder>public VmConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<VmConfig.Builder>IOExceptionpublic 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. See ref: "TODO: add ref" for details.
string vm_id = 1;getVmId in interface VmConfigOrBuilderpublic 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. See ref: "TODO: add ref" for details.
string vm_id = 1;getVmIdBytes in interface VmConfigOrBuilderpublic 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. See ref: "TODO: add ref" for details.
string vm_id = 1;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. See ref: "TODO: add ref" for details.
string vm_id = 1;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. See ref: "TODO: add ref" for details.
string vm_id = 1;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.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.
string runtime = 2 [(.validate.rules) = { ... }getRuntime in interface VmConfigOrBuilderpublic 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.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.
string runtime = 2 [(.validate.rules) = { ... }getRuntimeBytes in interface VmConfigOrBuilderpublic 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.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.
string runtime = 2 [(.validate.rules) = { ... }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.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.
string runtime = 2 [(.validate.rules) = { ... }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.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.
string runtime = 2 [(.validate.rules) = { ... }public boolean hasCode()
The Wasm code that Envoy will execute.
.envoy.config.core.v3.AsyncDataSource code = 3;hasCode in interface VmConfigOrBuilderpublic AsyncDataSource getCode()
The Wasm code that Envoy will execute.
.envoy.config.core.v3.AsyncDataSource code = 3;getCode in interface VmConfigOrBuilderpublic VmConfig.Builder setCode(AsyncDataSource value)
The Wasm code that Envoy will execute.
.envoy.config.core.v3.AsyncDataSource code = 3;public VmConfig.Builder setCode(AsyncDataSource.Builder builderForValue)
The Wasm code that Envoy will execute.
.envoy.config.core.v3.AsyncDataSource code = 3;public VmConfig.Builder mergeCode(AsyncDataSource value)
The Wasm code that Envoy will execute.
.envoy.config.core.v3.AsyncDataSource code = 3;public VmConfig.Builder clearCode()
The Wasm code that Envoy will execute.
.envoy.config.core.v3.AsyncDataSource code = 3;public AsyncDataSource.Builder getCodeBuilder()
The Wasm code that Envoy will execute.
.envoy.config.core.v3.AsyncDataSource code = 3;public AsyncDataSourceOrBuilder getCodeOrBuilder()
The Wasm code that Envoy will execute.
.envoy.config.core.v3.AsyncDataSource code = 3;getCodeOrBuilder in interface VmConfigOrBuilderpublic 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;hasConfiguration in interface VmConfigOrBuilderpublic 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;getConfiguration in interface VmConfigOrBuilderpublic 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;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;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;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;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;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;getConfigurationOrBuilder in interface VmConfigOrBuilderpublic 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;getAllowPrecompiled in interface VmConfigOrBuilderpublic 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;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;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;getNackOnCodeCacheMiss in interface VmConfigOrBuilderpublic 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;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;public final VmConfig.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<VmConfig.Builder>public final VmConfig.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<VmConfig.Builder>Copyright © 2018–2021 The Envoy Project. All rights reserved.