All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.envoyproxy.envoy.extensions.wasm.v3.PluginConfig Maven / Gradle / Ivy

There is a newer version: 1.0.46
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: envoy/extensions/wasm/v3/wasm.proto

package io.envoyproxy.envoy.extensions.wasm.v3;

/**
 * 
 * Base Configuration for Wasm Plugins e.g. filters and services.
 * [#next-free-field: 7]
 * 
* * Protobuf type {@code envoy.extensions.wasm.v3.PluginConfig} */ public final class PluginConfig extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:envoy.extensions.wasm.v3.PluginConfig) PluginConfigOrBuilder { private static final long serialVersionUID = 0L; // Use PluginConfig.newBuilder() to construct. private PluginConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PluginConfig() { name_ = ""; rootId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new PluginConfig(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private PluginConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); name_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); rootId_ = s; break; } case 26: { io.envoyproxy.envoy.extensions.wasm.v3.VmConfig.Builder subBuilder = null; if (vmCase_ == 3) { subBuilder = ((io.envoyproxy.envoy.extensions.wasm.v3.VmConfig) vm_).toBuilder(); } vm_ = input.readMessage(io.envoyproxy.envoy.extensions.wasm.v3.VmConfig.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((io.envoyproxy.envoy.extensions.wasm.v3.VmConfig) vm_); vm_ = subBuilder.buildPartial(); } vmCase_ = 3; break; } case 34: { com.google.protobuf.Any.Builder subBuilder = null; if (configuration_ != null) { subBuilder = configuration_.toBuilder(); } configuration_ = input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(configuration_); configuration_ = subBuilder.buildPartial(); } break; } case 40: { failOpen_ = input.readBool(); break; } case 50: { io.envoyproxy.envoy.extensions.wasm.v3.CapabilityRestrictionConfig.Builder subBuilder = null; if (capabilityRestrictionConfig_ != null) { subBuilder = capabilityRestrictionConfig_.toBuilder(); } capabilityRestrictionConfig_ = input.readMessage(io.envoyproxy.envoy.extensions.wasm.v3.CapabilityRestrictionConfig.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(capabilityRestrictionConfig_); capabilityRestrictionConfig_ = subBuilder.buildPartial(); } break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } 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); } private int vmCase_ = 0; private java.lang.Object vm_; public enum VmCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { VM_CONFIG(3), VM_NOT_SET(0); private final int value; private VmCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static VmCase valueOf(int value) { return forNumber(value); } public static VmCase forNumber(int value) { switch (value) { case 3: return VM_CONFIG; case 0: return VM_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public VmCase getVmCase() { return VmCase.forNumber( vmCase_); } public static final int NAME_FIELD_NUMBER = 1; private volatile 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. */ @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** *
   * 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. */ @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.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; } } public static final int ROOT_ID_FIELD_NUMBER = 2; private volatile 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. */ @java.lang.Override public java.lang.String getRootId() { java.lang.Object ref = rootId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); rootId_ = s; return s; } } /** *
   * 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. */ @java.lang.Override public com.google.protobuf.ByteString getRootIdBytes() { java.lang.Object ref = rootId_; if (ref instanceof java.lang.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; } } public static final int VM_CONFIG_FIELD_NUMBER = 3; /** *
   * 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 (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; */ @java.lang.Override public io.envoyproxy.envoy.extensions.wasm.v3.VmConfigOrBuilder getVmConfigOrBuilder() { if (vmCase_ == 3) { return (io.envoyproxy.envoy.extensions.wasm.v3.VmConfig) vm_; } return io.envoyproxy.envoy.extensions.wasm.v3.VmConfig.getDefaultInstance(); } public static final int CONFIGURATION_FIELD_NUMBER = 4; private com.google.protobuf.Any 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; * @return Whether the configuration field is set. */ @java.lang.Override public boolean hasConfiguration() { return 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. */ @java.lang.Override public com.google.protobuf.Any getConfiguration() { 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; */ @java.lang.Override public com.google.protobuf.AnyOrBuilder getConfigurationOrBuilder() { return getConfiguration(); } public static final int FAIL_OPEN_FIELD_NUMBER = 5; 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_; } public static final int CAPABILITY_RESTRICTION_CONFIG_FIELD_NUMBER = 6; private io.envoyproxy.envoy.extensions.wasm.v3.CapabilityRestrictionConfig capabilityRestrictionConfig_; /** *
   * 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. */ @java.lang.Override public boolean hasCapabilityRestrictionConfig() { return capabilityRestrictionConfig_ != null; } /** *
   * Configuration for restricting Proxy-Wasm capabilities available to modules.
   * 
* * .envoy.extensions.wasm.v3.CapabilityRestrictionConfig capability_restriction_config = 6; * @return The capabilityRestrictionConfig. */ @java.lang.Override public io.envoyproxy.envoy.extensions.wasm.v3.CapabilityRestrictionConfig getCapabilityRestrictionConfig() { 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; */ @java.lang.Override public io.envoyproxy.envoy.extensions.wasm.v3.CapabilityRestrictionConfigOrBuilder getCapabilityRestrictionConfigOrBuilder() { return getCapabilityRestrictionConfig(); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(rootId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, rootId_); } if (vmCase_ == 3) { output.writeMessage(3, (io.envoyproxy.envoy.extensions.wasm.v3.VmConfig) vm_); } if (configuration_ != null) { output.writeMessage(4, getConfiguration()); } if (failOpen_ != false) { output.writeBool(5, failOpen_); } if (capabilityRestrictionConfig_ != null) { output.writeMessage(6, getCapabilityRestrictionConfig()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(rootId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, rootId_); } if (vmCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, (io.envoyproxy.envoy.extensions.wasm.v3.VmConfig) vm_); } if (configuration_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getConfiguration()); } if (failOpen_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(5, failOpen_); } if (capabilityRestrictionConfig_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getCapabilityRestrictionConfig()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof io.envoyproxy.envoy.extensions.wasm.v3.PluginConfig)) { return super.equals(obj); } io.envoyproxy.envoy.extensions.wasm.v3.PluginConfig other = (io.envoyproxy.envoy.extensions.wasm.v3.PluginConfig) obj; if (!getName() .equals(other.getName())) return false; if (!getRootId() .equals(other.getRootId())) return false; if (hasConfiguration() != other.hasConfiguration()) return false; if (hasConfiguration()) { if (!getConfiguration() .equals(other.getConfiguration())) return false; } if (getFailOpen() != other.getFailOpen()) return false; if (hasCapabilityRestrictionConfig() != other.hasCapabilityRestrictionConfig()) return false; if (hasCapabilityRestrictionConfig()) { if (!getCapabilityRestrictionConfig() .equals(other.getCapabilityRestrictionConfig())) return false; } if (!getVmCase().equals(other.getVmCase())) return false; switch (vmCase_) { case 3: if (!getVmConfig() .equals(other.getVmConfig())) return false; break; case 0: default: } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + ROOT_ID_FIELD_NUMBER; hash = (53 * hash) + getRootId().hashCode(); if (hasConfiguration()) { hash = (37 * hash) + CONFIGURATION_FIELD_NUMBER; hash = (53 * hash) + getConfiguration().hashCode(); } hash = (37 * hash) + FAIL_OPEN_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getFailOpen()); if (hasCapabilityRestrictionConfig()) { hash = (37 * hash) + CAPABILITY_RESTRICTION_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getCapabilityRestrictionConfig().hashCode(); } switch (vmCase_) { case 3: hash = (37 * hash) + VM_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getVmConfig().hashCode(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.envoyproxy.envoy.extensions.wasm.v3.PluginConfig parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.extensions.wasm.v3.PluginConfig parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.envoyproxy.envoy.extensions.wasm.v3.PluginConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.extensions.wasm.v3.PluginConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.envoyproxy.envoy.extensions.wasm.v3.PluginConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.extensions.wasm.v3.PluginConfig parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.envoyproxy.envoy.extensions.wasm.v3.PluginConfig parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.envoyproxy.envoy.extensions.wasm.v3.PluginConfig parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static io.envoyproxy.envoy.extensions.wasm.v3.PluginConfig parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.envoyproxy.envoy.extensions.wasm.v3.PluginConfig parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static io.envoyproxy.envoy.extensions.wasm.v3.PluginConfig parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.envoyproxy.envoy.extensions.wasm.v3.PluginConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(io.envoyproxy.envoy.extensions.wasm.v3.PluginConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
   * Base Configuration for Wasm Plugins e.g. filters and services.
   * [#next-free-field: 7]
   * 
* * Protobuf type {@code envoy.extensions.wasm.v3.PluginConfig} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder 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; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy