public final class PluginConfig extends com.google.protobuf.GeneratedMessageV3 implements PluginConfigOrBuilder
Base Configuration for Wasm Plugins e.g. filters and services. [#next-free-field: 6]Protobuf type
envoy.extensions.wasm.v3.PluginConfig| Modifier and Type | Class and Description |
|---|---|
static class |
PluginConfig.Builder
Base Configuration for Wasm Plugins e.g. filters and services.
|
static class |
PluginConfig.VmCase |
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
CONFIGURATION_FIELD_NUMBER |
static int |
FAIL_OPEN_FIELD_NUMBER |
static int |
NAME_FIELD_NUMBER |
static int |
ROOT_ID_FIELD_NUMBER |
static int |
VM_CONFIG_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
com.google.protobuf.Any |
getConfiguration()
Filter/service configuration used to configure or reconfigure a plugin
(proxy_on_configuration).
|
com.google.protobuf.AnyOrBuilder |
getConfigurationOrBuilder()
Filter/service configuration used to configure or reconfigure a plugin
(proxy_on_configuration).
|
static PluginConfig |
getDefaultInstance() |
PluginConfig |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
boolean |
getFailOpen()
If there is a fatal error on the VM (e.g. exception, abort(), on_start or on_configure return false),
then all plugins associated with the VM will either fail closed (by default), e.g. by returning an HTTP 503 error,
or fail open (if 'fail_open' is set to true) by bypassing the filter.
|
String |
getName()
A unique name for a filters/services in a VM for use in identifying the filter/service if
multiple filters/services are handled by the same *vm_id* and *root_id* and for
logging/debugging.
|
com.google.protobuf.ByteString |
getNameBytes()
A unique name for a filters/services in a VM for use in identifying the filter/service if
multiple filters/services are handled by the same *vm_id* and *root_id* and for
logging/debugging.
|
com.google.protobuf.Parser<PluginConfig> |
getParserForType() |
String |
getRootId()
A unique ID for a set of filters/services in a VM which will share a RootContext and Contexts
if applicable (e.g. an Wasm HttpFilter and an Wasm AccessLog).
|
com.google.protobuf.ByteString |
getRootIdBytes()
A unique ID for a set of filters/services in a VM which will share a RootContext and Contexts
if applicable (e.g. an Wasm HttpFilter and an Wasm AccessLog).
|
int |
getSerializedSize() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
PluginConfig.VmCase |
getVmCase() |
VmConfig |
getVmConfig()
TODO: add referential VM configurations.
|
VmConfigOrBuilder |
getVmConfigOrBuilder()
TODO: add referential VM configurations.
|
boolean |
hasConfiguration()
Filter/service configuration used to configure or reconfigure a plugin
(proxy_on_configuration).
|
int |
hashCode() |
boolean |
hasVmConfig()
TODO: add referential VM configurations.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static PluginConfig.Builder |
newBuilder() |
static PluginConfig.Builder |
newBuilder(PluginConfig prototype) |
PluginConfig.Builder |
newBuilderForType() |
protected PluginConfig.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static PluginConfig |
parseDelimitedFrom(InputStream input) |
static PluginConfig |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static PluginConfig |
parseFrom(byte[] data) |
static PluginConfig |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static PluginConfig |
parseFrom(ByteBuffer data) |
static PluginConfig |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static PluginConfig |
parseFrom(com.google.protobuf.ByteString data) |
static PluginConfig |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static PluginConfig |
parseFrom(com.google.protobuf.CodedInputStream input) |
static PluginConfig |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static PluginConfig |
parseFrom(InputStream input) |
static PluginConfig |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<PluginConfig> |
parser() |
PluginConfig.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int NAME_FIELD_NUMBER
public static final int ROOT_ID_FIELD_NUMBER
public static final int VM_CONFIG_FIELD_NUMBER
public static final int CONFIGURATION_FIELD_NUMBER
public static final int FAIL_OPEN_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public PluginConfig.VmCase getVmCase()
getVmCase in interface PluginConfigOrBuilderpublic String getName()
A unique name for a filters/services in a VM for use in identifying the filter/service if multiple filters/services are handled by the same *vm_id* and *root_id* and for logging/debugging.
string name = 1;getName in interface PluginConfigOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
A unique name for a filters/services in a VM for use in identifying the filter/service if multiple filters/services are handled by the same *vm_id* and *root_id* and for logging/debugging.
string name = 1;getNameBytes in interface PluginConfigOrBuilderpublic String getRootId()
A unique ID for a set of filters/services in a VM which will share a RootContext and Contexts if applicable (e.g. an Wasm HttpFilter and an Wasm AccessLog). If left blank, all filters/services with a blank root_id with the same *vm_id* will share Context(s).
string root_id = 2;getRootId in interface PluginConfigOrBuilderpublic com.google.protobuf.ByteString getRootIdBytes()
A unique ID for a set of filters/services in a VM which will share a RootContext and Contexts if applicable (e.g. an Wasm HttpFilter and an Wasm AccessLog). If left blank, all filters/services with a blank root_id with the same *vm_id* will share Context(s).
string root_id = 2;getRootIdBytes in interface PluginConfigOrBuilderpublic boolean hasVmConfig()
TODO: add referential VM configurations.
.envoy.extensions.wasm.v3.VmConfig vm_config = 3;hasVmConfig in interface PluginConfigOrBuilderpublic VmConfig getVmConfig()
TODO: add referential VM configurations.
.envoy.extensions.wasm.v3.VmConfig vm_config = 3;getVmConfig in interface PluginConfigOrBuilderpublic VmConfigOrBuilder getVmConfigOrBuilder()
TODO: add referential VM configurations.
.envoy.extensions.wasm.v3.VmConfig vm_config = 3;getVmConfigOrBuilder in interface PluginConfigOrBuilderpublic boolean hasConfiguration()
Filter/service configuration used to configure or reconfigure a plugin (proxy_on_configuration). `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 PluginConfigOrBuilderpublic com.google.protobuf.Any getConfiguration()
Filter/service configuration used to configure or reconfigure a plugin (proxy_on_configuration). `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 PluginConfigOrBuilderpublic com.google.protobuf.AnyOrBuilder getConfigurationOrBuilder()
Filter/service configuration used to configure or reconfigure a plugin (proxy_on_configuration). `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 PluginConfigOrBuilderpublic boolean getFailOpen()
If there is a fatal error on the VM (e.g. exception, abort(), on_start or on_configure return false), then all plugins associated with the VM will either fail closed (by default), e.g. by returning an HTTP 503 error, or fail open (if 'fail_open' is set to true) by bypassing the filter. Note: when on_start or on_configure return false during xDS updates the xDS configuration will be rejected and when on_start or on_configuration return false on initial startup the proxy will not start.
bool fail_open = 5;getFailOpen in interface PluginConfigOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static PluginConfig parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static PluginConfig parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static PluginConfig parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static PluginConfig parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static PluginConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static PluginConfig parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static PluginConfig parseFrom(InputStream input) throws IOException
IOExceptionpublic static PluginConfig parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static PluginConfig parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static PluginConfig parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static PluginConfig parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static PluginConfig parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic PluginConfig.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static PluginConfig.Builder newBuilder()
public static PluginConfig.Builder newBuilder(PluginConfig prototype)
public PluginConfig.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected PluginConfig.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static PluginConfig getDefaultInstance()
public static com.google.protobuf.Parser<PluginConfig> parser()
public com.google.protobuf.Parser<PluginConfig> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public PluginConfig getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2018–2021 The Envoy Project. All rights reserved.