implements
// @@protoc_insertion_point(builder_implements:envoy.extensions.wasm.v3.PluginConfig)
io.envoyproxy.envoy.extensions.wasm.v3.PluginConfigOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.extensions.wasm.v3.WasmProto.internal_static_envoy_extensions_wasm_v3_PluginConfig_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.extensions.wasm.v3.WasmProto.internal_static_envoy_extensions_wasm_v3_PluginConfig_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.extensions.wasm.v3.PluginConfig.class, io.envoyproxy.envoy.extensions.wasm.v3.PluginConfig.Builder.class);
}
// Construct using io.envoyproxy.envoy.extensions.wasm.v3.PluginConfig.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
name_ = "";
rootId_ = "";
if (configurationBuilder_ == null) {
configuration_ = null;
} else {
configuration_ = null;
configurationBuilder_ = null;
}
failOpen_ = false;
if (capabilityRestrictionConfigBuilder_ == null) {
capabilityRestrictionConfig_ = null;
} else {
capabilityRestrictionConfig_ = null;
capabilityRestrictionConfigBuilder_ = null;
}
vmCase_ = 0;
vm_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.envoyproxy.envoy.extensions.wasm.v3.WasmProto.internal_static_envoy_extensions_wasm_v3_PluginConfig_descriptor;
}
@java.lang.Override
public io.envoyproxy.envoy.extensions.wasm.v3.PluginConfig getDefaultInstanceForType() {
return io.envoyproxy.envoy.extensions.wasm.v3.PluginConfig.getDefaultInstance();
}
@java.lang.Override
public io.envoyproxy.envoy.extensions.wasm.v3.PluginConfig build() {
io.envoyproxy.envoy.extensions.wasm.v3.PluginConfig result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.envoyproxy.envoy.extensions.wasm.v3.PluginConfig buildPartial() {
io.envoyproxy.envoy.extensions.wasm.v3.PluginConfig result = new io.envoyproxy.envoy.extensions.wasm.v3.PluginConfig(this);
result.name_ = name_;
result.rootId_ = rootId_;
if (vmCase_ == 3) {
if (vmConfigBuilder_ == null) {
result.vm_ = vm_;
} else {
result.vm_ = vmConfigBuilder_.build();
}
}
if (configurationBuilder_ == null) {
result.configuration_ = configuration_;
} else {
result.configuration_ = configurationBuilder_.build();
}
result.failOpen_ = failOpen_;
if (capabilityRestrictionConfigBuilder_ == null) {
result.capabilityRestrictionConfig_ = capabilityRestrictionConfig_;
} else {
result.capabilityRestrictionConfig_ = capabilityRestrictionConfigBuilder_.build();
}
result.vmCase_ = vmCase_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.envoyproxy.envoy.extensions.wasm.v3.PluginConfig) {
return mergeFrom((io.envoyproxy.envoy.extensions.wasm.v3.PluginConfig)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.envoyproxy.envoy.extensions.wasm.v3.PluginConfig other) {
if (other == io.envoyproxy.envoy.extensions.wasm.v3.PluginConfig.getDefaultInstance()) return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
onChanged();
}
if (!other.getRootId().isEmpty()) {
rootId_ = other.rootId_;
onChanged();
}
if (other.hasConfiguration()) {
mergeConfiguration(other.getConfiguration());
}
if (other.getFailOpen() != false) {
setFailOpen(other.getFailOpen());
}
if (other.hasCapabilityRestrictionConfig()) {
mergeCapabilityRestrictionConfig(other.getCapabilityRestrictionConfig());
}
switch (other.getVmCase()) {
case VM_CONFIG: {
mergeVmConfig(other.getVmConfig());
break;
}
case VM_NOT_SET: {
break;
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.envoyproxy.envoy.extensions.wasm.v3.PluginConfig parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.envoyproxy.envoy.extensions.wasm.v3.PluginConfig) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int vmCase_ = 0;
private java.lang.Object vm_;
public VmCase
getVmCase() {
return VmCase.forNumber(
vmCase_);
}
public Builder clearVm() {
vmCase_ = 0;
vm_ = null;
onChanged();
return this;
}
private java.lang.Object name_ = "";
/**
*
* 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;
* @return The name.
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* 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;
* @return The bytes for name.
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* 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;
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
name_ = value;
onChanged();
return this;
}
/**
*
* 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;
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
*
* 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;
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
name_ = value;
onChanged();
return this;
}
private java.lang.Object rootId_ = "";
/**
*
* 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;
* @return The rootId.
*/
public java.lang.String getRootId() {
java.lang.Object ref = rootId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
rootId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* 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;
* @return The bytes for rootId.
*/
public com.google.protobuf.ByteString
getRootIdBytes() {
java.lang.Object ref = rootId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
rootId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* 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;
* @param value The rootId to set.
* @return This builder for chaining.
*/
public Builder setRootId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
rootId_ = value;
onChanged();
return this;
}
/**
*
* 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;
* @return This builder for chaining.
*/
public Builder clearRootId() {
rootId_ = getDefaultInstance().getRootId();
onChanged();
return this;
}
/**
*
* 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;
* @param value The bytes for rootId to set.
* @return This builder for chaining.
*/
public Builder setRootIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
rootId_ = value;
onChanged();
return this;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.extensions.wasm.v3.VmConfig, io.envoyproxy.envoy.extensions.wasm.v3.VmConfig.Builder, io.envoyproxy.envoy.extensions.wasm.v3.VmConfigOrBuilder> vmConfigBuilder_;
/**
*
* TODO: add referential VM configurations.
*
*
* .envoy.extensions.wasm.v3.VmConfig vm_config = 3;
* @return Whether the vmConfig field is set.
*/
@java.lang.Override
public boolean hasVmConfig() {
return vmCase_ == 3;
}
/**
*
* TODO: add referential VM configurations.
*
*
* .envoy.extensions.wasm.v3.VmConfig vm_config = 3;
* @return The vmConfig.
*/
@java.lang.Override
public io.envoyproxy.envoy.extensions.wasm.v3.VmConfig getVmConfig() {
if (vmConfigBuilder_ == null) {
if (vmCase_ == 3) {
return (io.envoyproxy.envoy.extensions.wasm.v3.VmConfig) vm_;
}
return io.envoyproxy.envoy.extensions.wasm.v3.VmConfig.getDefaultInstance();
} else {
if (vmCase_ == 3) {
return vmConfigBuilder_.getMessage();
}
return io.envoyproxy.envoy.extensions.wasm.v3.VmConfig.getDefaultInstance();
}
}
/**
*
* TODO: add referential VM configurations.
*
*
* .envoy.extensions.wasm.v3.VmConfig vm_config = 3;
*/
public Builder setVmConfig(io.envoyproxy.envoy.extensions.wasm.v3.VmConfig value) {
if (vmConfigBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
vm_ = value;
onChanged();
} else {
vmConfigBuilder_.setMessage(value);
}
vmCase_ = 3;
return this;
}
/**
*
* TODO: add referential VM configurations.
*
*
* .envoy.extensions.wasm.v3.VmConfig vm_config = 3;
*/
public Builder setVmConfig(
io.envoyproxy.envoy.extensions.wasm.v3.VmConfig.Builder builderForValue) {
if (vmConfigBuilder_ == null) {
vm_ = builderForValue.build();
onChanged();
} else {
vmConfigBuilder_.setMessage(builderForValue.build());
}
vmCase_ = 3;
return this;
}
/**
*
* TODO: add referential VM configurations.
*
*
* .envoy.extensions.wasm.v3.VmConfig vm_config = 3;
*/
public Builder mergeVmConfig(io.envoyproxy.envoy.extensions.wasm.v3.VmConfig value) {
if (vmConfigBuilder_ == null) {
if (vmCase_ == 3 &&
vm_ != io.envoyproxy.envoy.extensions.wasm.v3.VmConfig.getDefaultInstance()) {
vm_ = io.envoyproxy.envoy.extensions.wasm.v3.VmConfig.newBuilder((io.envoyproxy.envoy.extensions.wasm.v3.VmConfig) vm_)
.mergeFrom(value).buildPartial();
} else {
vm_ = value;
}
onChanged();
} else {
if (vmCase_ == 3) {
vmConfigBuilder_.mergeFrom(value);
} else {
vmConfigBuilder_.setMessage(value);
}
}
vmCase_ = 3;
return this;
}
/**
*
* TODO: add referential VM configurations.
*
*
* .envoy.extensions.wasm.v3.VmConfig vm_config = 3;
*/
public Builder clearVmConfig() {
if (vmConfigBuilder_ == null) {
if (vmCase_ == 3) {
vmCase_ = 0;
vm_ = null;
onChanged();
}
} else {
if (vmCase_ == 3) {
vmCase_ = 0;
vm_ = null;
}
vmConfigBuilder_.clear();
}
return this;
}
/**
*
* TODO: add referential VM configurations.
*
*
* .envoy.extensions.wasm.v3.VmConfig vm_config = 3;
*/
public io.envoyproxy.envoy.extensions.wasm.v3.VmConfig.Builder getVmConfigBuilder() {
return getVmConfigFieldBuilder().getBuilder();
}
/**
*
* TODO: add referential VM configurations.
*
*
* .envoy.extensions.wasm.v3.VmConfig vm_config = 3;
*/
@java.lang.Override
public io.envoyproxy.envoy.extensions.wasm.v3.VmConfigOrBuilder getVmConfigOrBuilder() {
if ((vmCase_ == 3) && (vmConfigBuilder_ != null)) {
return vmConfigBuilder_.getMessageOrBuilder();
} else {
if (vmCase_ == 3) {
return (io.envoyproxy.envoy.extensions.wasm.v3.VmConfig) vm_;
}
return io.envoyproxy.envoy.extensions.wasm.v3.VmConfig.getDefaultInstance();
}
}
/**
*
* TODO: add referential VM configurations.
*
*
* .envoy.extensions.wasm.v3.VmConfig vm_config = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.extensions.wasm.v3.VmConfig, io.envoyproxy.envoy.extensions.wasm.v3.VmConfig.Builder, io.envoyproxy.envoy.extensions.wasm.v3.VmConfigOrBuilder>
getVmConfigFieldBuilder() {
if (vmConfigBuilder_ == null) {
if (!(vmCase_ == 3)) {
vm_ = io.envoyproxy.envoy.extensions.wasm.v3.VmConfig.getDefaultInstance();
}
vmConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.extensions.wasm.v3.VmConfig, io.envoyproxy.envoy.extensions.wasm.v3.VmConfig.Builder, io.envoyproxy.envoy.extensions.wasm.v3.VmConfigOrBuilder>(
(io.envoyproxy.envoy.extensions.wasm.v3.VmConfig) vm_,
getParentForChildren(),
isClean());
vm_ = null;
}
vmCase_ = 3;
onChanged();;
return vmConfigBuilder_;
}
private com.google.protobuf.Any configuration_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> configurationBuilder_;
/**
*
* 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;
* @return Whether the configuration field is set.
*/
public boolean hasConfiguration() {
return configurationBuilder_ != null || configuration_ != null;
}
/**
*
* 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;
* @return The configuration.
*/
public com.google.protobuf.Any getConfiguration() {
if (configurationBuilder_ == null) {
return configuration_ == null ? com.google.protobuf.Any.getDefaultInstance() : configuration_;
} else {
return configurationBuilder_.getMessage();
}
}
/**
*
* 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;
*/
public Builder setConfiguration(com.google.protobuf.Any value) {
if (configurationBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
configuration_ = value;
onChanged();
} else {
configurationBuilder_.setMessage(value);
}
return this;
}
/**
*
* 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;
*/
public Builder setConfiguration(
com.google.protobuf.Any.Builder builderForValue) {
if (configurationBuilder_ == null) {
configuration_ = builderForValue.build();
onChanged();
} else {
configurationBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* 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;
*/
public Builder mergeConfiguration(com.google.protobuf.Any value) {
if (configurationBuilder_ == null) {
if (configuration_ != null) {
configuration_ =
com.google.protobuf.Any.newBuilder(configuration_).mergeFrom(value).buildPartial();
} else {
configuration_ = value;
}
onChanged();
} else {
configurationBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* 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;
*/
public Builder clearConfiguration() {
if (configurationBuilder_ == null) {
configuration_ = null;
onChanged();
} else {
configuration_ = null;
configurationBuilder_ = null;
}
return this;
}
/**
*
* 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;
*/
public com.google.protobuf.Any.Builder getConfigurationBuilder() {
onChanged();
return getConfigurationFieldBuilder().getBuilder();
}
/**
*
* 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;
*/
public com.google.protobuf.AnyOrBuilder getConfigurationOrBuilder() {
if (configurationBuilder_ != null) {
return configurationBuilder_.getMessageOrBuilder();
} else {
return configuration_ == null ?
com.google.protobuf.Any.getDefaultInstance() : configuration_;
}
}
/**
*
* 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;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>
getConfigurationFieldBuilder() {
if (configurationBuilder_ == null) {
configurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>(
getConfiguration(),
getParentForChildren(),
isClean());
configuration_ = null;
}
return configurationBuilder_;
}
private boolean failOpen_ ;
/**
*
* 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;
* @return The failOpen.
*/
@java.lang.Override
public boolean getFailOpen() {
return failOpen_;
}
/**
*
* 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;
* @param value The failOpen to set.
* @return This builder for chaining.
*/
public Builder setFailOpen(boolean value) {
failOpen_ = value;
onChanged();
return this;
}
/**
*
* 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;
* @return This builder for chaining.
*/
public Builder clearFailOpen() {
failOpen_ = false;
onChanged();
return this;
}
private io.envoyproxy.envoy.extensions.wasm.v3.CapabilityRestrictionConfig capabilityRestrictionConfig_;
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.extensions.wasm.v3.CapabilityRestrictionConfig, io.envoyproxy.envoy.extensions.wasm.v3.CapabilityRestrictionConfig.Builder, io.envoyproxy.envoy.extensions.wasm.v3.CapabilityRestrictionConfigOrBuilder> capabilityRestrictionConfigBuilder_;
/**
*
* Configuration for restricting Proxy-Wasm capabilities available to modules.
*
*
* .envoy.extensions.wasm.v3.CapabilityRestrictionConfig capability_restriction_config = 6;
* @return Whether the capabilityRestrictionConfig field is set.
*/
public boolean hasCapabilityRestrictionConfig() {
return capabilityRestrictionConfigBuilder_ != null || capabilityRestrictionConfig_ != null;
}
/**
*
* Configuration for restricting Proxy-Wasm capabilities available to modules.
*
*
* .envoy.extensions.wasm.v3.CapabilityRestrictionConfig capability_restriction_config = 6;
* @return The capabilityRestrictionConfig.
*/
public io.envoyproxy.envoy.extensions.wasm.v3.CapabilityRestrictionConfig getCapabilityRestrictionConfig() {
if (capabilityRestrictionConfigBuilder_ == null) {
return capabilityRestrictionConfig_ == null ? io.envoyproxy.envoy.extensions.wasm.v3.CapabilityRestrictionConfig.getDefaultInstance() : capabilityRestrictionConfig_;
} else {
return capabilityRestrictionConfigBuilder_.getMessage();
}
}
/**
*
* Configuration for restricting Proxy-Wasm capabilities available to modules.
*
*
* .envoy.extensions.wasm.v3.CapabilityRestrictionConfig capability_restriction_config = 6;
*/
public Builder setCapabilityRestrictionConfig(io.envoyproxy.envoy.extensions.wasm.v3.CapabilityRestrictionConfig value) {
if (capabilityRestrictionConfigBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
capabilityRestrictionConfig_ = value;
onChanged();
} else {
capabilityRestrictionConfigBuilder_.setMessage(value);
}
return this;
}
/**
*
* Configuration for restricting Proxy-Wasm capabilities available to modules.
*
*
* .envoy.extensions.wasm.v3.CapabilityRestrictionConfig capability_restriction_config = 6;
*/
public Builder setCapabilityRestrictionConfig(
io.envoyproxy.envoy.extensions.wasm.v3.CapabilityRestrictionConfig.Builder builderForValue) {
if (capabilityRestrictionConfigBuilder_ == null) {
capabilityRestrictionConfig_ = builderForValue.build();
onChanged();
} else {
capabilityRestrictionConfigBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Configuration for restricting Proxy-Wasm capabilities available to modules.
*
*
* .envoy.extensions.wasm.v3.CapabilityRestrictionConfig capability_restriction_config = 6;
*/
public Builder mergeCapabilityRestrictionConfig(io.envoyproxy.envoy.extensions.wasm.v3.CapabilityRestrictionConfig value) {
if (capabilityRestrictionConfigBuilder_ == null) {
if (capabilityRestrictionConfig_ != null) {
capabilityRestrictionConfig_ =
io.envoyproxy.envoy.extensions.wasm.v3.CapabilityRestrictionConfig.newBuilder(capabilityRestrictionConfig_).mergeFrom(value).buildPartial();
} else {
capabilityRestrictionConfig_ = value;
}
onChanged();
} else {
capabilityRestrictionConfigBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Configuration for restricting Proxy-Wasm capabilities available to modules.
*
*
* .envoy.extensions.wasm.v3.CapabilityRestrictionConfig capability_restriction_config = 6;
*/
public Builder clearCapabilityRestrictionConfig() {
if (capabilityRestrictionConfigBuilder_ == null) {
capabilityRestrictionConfig_ = null;
onChanged();
} else {
capabilityRestrictionConfig_ = null;
capabilityRestrictionConfigBuilder_ = null;
}
return this;
}
/**
*
* Configuration for restricting Proxy-Wasm capabilities available to modules.
*
*
* .envoy.extensions.wasm.v3.CapabilityRestrictionConfig capability_restriction_config = 6;
*/
public io.envoyproxy.envoy.extensions.wasm.v3.CapabilityRestrictionConfig.Builder getCapabilityRestrictionConfigBuilder() {
onChanged();
return getCapabilityRestrictionConfigFieldBuilder().getBuilder();
}
/**
*
* Configuration for restricting Proxy-Wasm capabilities available to modules.
*
*
* .envoy.extensions.wasm.v3.CapabilityRestrictionConfig capability_restriction_config = 6;
*/
public io.envoyproxy.envoy.extensions.wasm.v3.CapabilityRestrictionConfigOrBuilder getCapabilityRestrictionConfigOrBuilder() {
if (capabilityRestrictionConfigBuilder_ != null) {
return capabilityRestrictionConfigBuilder_.getMessageOrBuilder();
} else {
return capabilityRestrictionConfig_ == null ?
io.envoyproxy.envoy.extensions.wasm.v3.CapabilityRestrictionConfig.getDefaultInstance() : capabilityRestrictionConfig_;
}
}
/**
*
* Configuration for restricting Proxy-Wasm capabilities available to modules.
*
*
* .envoy.extensions.wasm.v3.CapabilityRestrictionConfig capability_restriction_config = 6;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.extensions.wasm.v3.CapabilityRestrictionConfig, io.envoyproxy.envoy.extensions.wasm.v3.CapabilityRestrictionConfig.Builder, io.envoyproxy.envoy.extensions.wasm.v3.CapabilityRestrictionConfigOrBuilder>
getCapabilityRestrictionConfigFieldBuilder() {
if (capabilityRestrictionConfigBuilder_ == null) {
capabilityRestrictionConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.extensions.wasm.v3.CapabilityRestrictionConfig, io.envoyproxy.envoy.extensions.wasm.v3.CapabilityRestrictionConfig.Builder, io.envoyproxy.envoy.extensions.wasm.v3.CapabilityRestrictionConfigOrBuilder>(
getCapabilityRestrictionConfig(),
getParentForChildren(),
isClean());
capabilityRestrictionConfig_ = null;
}
return capabilityRestrictionConfigBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:envoy.extensions.wasm.v3.PluginConfig)
}
// @@protoc_insertion_point(class_scope:envoy.extensions.wasm.v3.PluginConfig)
private static final io.envoyproxy.envoy.extensions.wasm.v3.PluginConfig DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.envoyproxy.envoy.extensions.wasm.v3.PluginConfig();
}
public static io.envoyproxy.envoy.extensions.wasm.v3.PluginConfig getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public PluginConfig parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new PluginConfig(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.envoyproxy.envoy.extensions.wasm.v3.PluginConfig getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}