Class PluginConfig
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- io.envoyproxy.envoy.extensions.wasm.v3.PluginConfig
-
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,PluginConfigOrBuilder,Serializable
public final class PluginConfig extends com.google.protobuf.GeneratedMessageV3 implements PluginConfigOrBuilder
Base Configuration for Wasm Plugins e.g. filters and services. [#next-free-field: 7]
Protobuf typeenvoy.extensions.wasm.v3.PluginConfig- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPluginConfig.BuilderBase Configuration for Wasm Plugins e.g. filters and services.static classPluginConfig.VmCase-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
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
-
-
Field Summary
Fields Modifier and Type Field Description static intCAPABILITY_RESTRICTION_CONFIG_FIELD_NUMBERstatic intCONFIGURATION_FIELD_NUMBERstatic intFAIL_OPEN_FIELD_NUMBERstatic intNAME_FIELD_NUMBERstatic intROOT_ID_FIELD_NUMBERstatic intVM_CONFIG_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)CapabilityRestrictionConfiggetCapabilityRestrictionConfig()Configuration for restricting Proxy-Wasm capabilities available to modules.CapabilityRestrictionConfigOrBuildergetCapabilityRestrictionConfigOrBuilder()Configuration for restricting Proxy-Wasm capabilities available to modules.com.google.protobuf.AnygetConfiguration()Filter/service configuration used to configure or reconfigure a plugin (``proxy_on_configure``).com.google.protobuf.AnyOrBuildergetConfigurationOrBuilder()Filter/service configuration used to configure or reconfigure a plugin (``proxy_on_configure``).static PluginConfiggetDefaultInstance()PluginConfiggetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()booleangetFailOpen()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.StringgetName()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.ByteStringgetNameBytes()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()StringgetRootId()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.ByteStringgetRootIdBytes()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).intgetSerializedSize()com.google.protobuf.UnknownFieldSetgetUnknownFields()PluginConfig.VmCasegetVmCase()VmConfiggetVmConfig()TODO: add referential VM configurations.VmConfigOrBuildergetVmConfigOrBuilder()TODO: add referential VM configurations.booleanhasCapabilityRestrictionConfig()Configuration for restricting Proxy-Wasm capabilities available to modules.booleanhasConfiguration()Filter/service configuration used to configure or reconfigure a plugin (``proxy_on_configure``).inthashCode()booleanhasVmConfig()TODO: add referential VM configurations.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static PluginConfig.BuildernewBuilder()static PluginConfig.BuildernewBuilder(PluginConfig prototype)PluginConfig.BuildernewBuilderForType()protected PluginConfig.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static PluginConfigparseDelimitedFrom(InputStream input)static PluginConfigparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static PluginConfigparseFrom(byte[] data)static PluginConfigparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static PluginConfigparseFrom(com.google.protobuf.ByteString data)static PluginConfigparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static PluginConfigparseFrom(com.google.protobuf.CodedInputStream input)static PluginConfigparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static PluginConfigparseFrom(InputStream input)static PluginConfigparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static PluginConfigparseFrom(ByteBuffer data)static PluginConfigparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<PluginConfig>parser()PluginConfig.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, 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, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ROOT_ID_FIELD_NUMBER
public static final int ROOT_ID_FIELD_NUMBER
- See Also:
- Constant Field Values
-
VM_CONFIG_FIELD_NUMBER
public static final int VM_CONFIG_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CONFIGURATION_FIELD_NUMBER
public static final int CONFIGURATION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
FAIL_OPEN_FIELD_NUMBER
public static final int FAIL_OPEN_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CAPABILITY_RESTRICTION_CONFIG_FIELD_NUMBER
public static final int CAPABILITY_RESTRICTION_CONFIG_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getUnknownFields
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
- Specified by:
getUnknownFieldsin interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3
-
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
-
getVmCase
public PluginConfig.VmCase getVmCase()
- Specified by:
getVmCasein interfacePluginConfigOrBuilder
-
getName
public 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;- Specified by:
getNamein interfacePluginConfigOrBuilder- Returns:
- The name.
-
getNameBytes
public 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;- Specified by:
getNameBytesin interfacePluginConfigOrBuilder- Returns:
- The bytes for name.
-
getRootId
public 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;- Specified by:
getRootIdin interfacePluginConfigOrBuilder- Returns:
- The rootId.
-
getRootIdBytes
public 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;- Specified by:
getRootIdBytesin interfacePluginConfigOrBuilder- Returns:
- The bytes for rootId.
-
hasVmConfig
public boolean hasVmConfig()
TODO: add referential VM configurations.
.envoy.extensions.wasm.v3.VmConfig vm_config = 3;- Specified by:
hasVmConfigin interfacePluginConfigOrBuilder- Returns:
- Whether the vmConfig field is set.
-
getVmConfig
public VmConfig getVmConfig()
TODO: add referential VM configurations.
.envoy.extensions.wasm.v3.VmConfig vm_config = 3;- Specified by:
getVmConfigin interfacePluginConfigOrBuilder- Returns:
- The vmConfig.
-
getVmConfigOrBuilder
public VmConfigOrBuilder getVmConfigOrBuilder()
TODO: add referential VM configurations.
.envoy.extensions.wasm.v3.VmConfig vm_config = 3;- Specified by:
getVmConfigOrBuilderin interfacePluginConfigOrBuilder
-
hasConfiguration
public boolean hasConfiguration()
Filter/service configuration used to configure or reconfigure a plugin (``proxy_on_configure``). ``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 interfacePluginConfigOrBuilder- Returns:
- Whether the configuration field is set.
-
getConfiguration
public com.google.protobuf.Any getConfiguration()
Filter/service configuration used to configure or reconfigure a plugin (``proxy_on_configure``). ``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 interfacePluginConfigOrBuilder- Returns:
- The configuration.
-
getConfigurationOrBuilder
public com.google.protobuf.AnyOrBuilder getConfigurationOrBuilder()
Filter/service configuration used to configure or reconfigure a plugin (``proxy_on_configure``). ``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 interfacePluginConfigOrBuilder
-
getFailOpen
public 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;- Specified by:
getFailOpenin interfacePluginConfigOrBuilder- Returns:
- The failOpen.
-
hasCapabilityRestrictionConfig
public boolean hasCapabilityRestrictionConfig()
Configuration for restricting Proxy-Wasm capabilities available to modules.
.envoy.extensions.wasm.v3.CapabilityRestrictionConfig capability_restriction_config = 6;- Specified by:
hasCapabilityRestrictionConfigin interfacePluginConfigOrBuilder- Returns:
- Whether the capabilityRestrictionConfig field is set.
-
getCapabilityRestrictionConfig
public CapabilityRestrictionConfig getCapabilityRestrictionConfig()
Configuration for restricting Proxy-Wasm capabilities available to modules.
.envoy.extensions.wasm.v3.CapabilityRestrictionConfig capability_restriction_config = 6;- Specified by:
getCapabilityRestrictionConfigin interfacePluginConfigOrBuilder- Returns:
- The capabilityRestrictionConfig.
-
getCapabilityRestrictionConfigOrBuilder
public CapabilityRestrictionConfigOrBuilder getCapabilityRestrictionConfigOrBuilder()
Configuration for restricting Proxy-Wasm capabilities available to modules.
.envoy.extensions.wasm.v3.CapabilityRestrictionConfig capability_restriction_config = 6;- Specified by:
getCapabilityRestrictionConfigOrBuilderin interfacePluginConfigOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static PluginConfig parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static PluginConfig parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static PluginConfig parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static PluginConfig parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static PluginConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static PluginConfig parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static PluginConfig parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static PluginConfig parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static PluginConfig parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static PluginConfig parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static PluginConfig parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static PluginConfig parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public PluginConfig.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static PluginConfig.Builder newBuilder()
-
newBuilder
public static PluginConfig.Builder newBuilder(PluginConfig prototype)
-
toBuilder
public PluginConfig.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected PluginConfig.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static PluginConfig getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<PluginConfig> parser()
-
getParserForType
public com.google.protobuf.Parser<PluginConfig> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public PluginConfig getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-