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

io.envoyproxy.envoy.extensions.wasm.v3.CapabilityRestrictionConfig 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;

/**
 * 
 * Configuration for restricting Proxy-Wasm capabilities available to modules.
 * 
* * Protobuf type {@code envoy.extensions.wasm.v3.CapabilityRestrictionConfig} */ public final class CapabilityRestrictionConfig extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:envoy.extensions.wasm.v3.CapabilityRestrictionConfig) CapabilityRestrictionConfigOrBuilder { private static final long serialVersionUID = 0L; // Use CapabilityRestrictionConfig.newBuilder() to construct. private CapabilityRestrictionConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CapabilityRestrictionConfig() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new CapabilityRestrictionConfig(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private CapabilityRestrictionConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; 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: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { allowedCapabilities_ = com.google.protobuf.MapField.newMapField( AllowedCapabilitiesDefaultEntryHolder.defaultEntry); mutable_bitField0_ |= 0x00000001; } com.google.protobuf.MapEntry allowedCapabilities__ = input.readMessage( AllowedCapabilitiesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); allowedCapabilities_.getMutableMap().put( allowedCapabilities__.getKey(), allowedCapabilities__.getValue()); 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_CapabilityRestrictionConfig_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 1: return internalGetAllowedCapabilities(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.extensions.wasm.v3.WasmProto.internal_static_envoy_extensions_wasm_v3_CapabilityRestrictionConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.extensions.wasm.v3.CapabilityRestrictionConfig.class, io.envoyproxy.envoy.extensions.wasm.v3.CapabilityRestrictionConfig.Builder.class); } public static final int ALLOWED_CAPABILITIES_FIELD_NUMBER = 1; private static final class AllowedCapabilitiesDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, io.envoyproxy.envoy.extensions.wasm.v3.SanitizationConfig> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( io.envoyproxy.envoy.extensions.wasm.v3.WasmProto.internal_static_envoy_extensions_wasm_v3_CapabilityRestrictionConfig_AllowedCapabilitiesEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.MESSAGE, io.envoyproxy.envoy.extensions.wasm.v3.SanitizationConfig.getDefaultInstance()); } private com.google.protobuf.MapField< java.lang.String, io.envoyproxy.envoy.extensions.wasm.v3.SanitizationConfig> allowedCapabilities_; private com.google.protobuf.MapField internalGetAllowedCapabilities() { if (allowedCapabilities_ == null) { return com.google.protobuf.MapField.emptyMapField( AllowedCapabilitiesDefaultEntryHolder.defaultEntry); } return allowedCapabilities_; } public int getAllowedCapabilitiesCount() { return internalGetAllowedCapabilities().getMap().size(); } /** *
   * The Proxy-Wasm capabilities which will be allowed. Capabilities are mapped by
   * name. The ``SanitizationConfig`` which each capability maps to is currently unimplemented and ignored,
   * and so should be left empty.
   * The capability names are given in the
   * `Proxy-Wasm ABI <https://github.com/proxy-wasm/spec/tree/master/abi-versions/vNEXT>`_.
   * Additionally, the following WASI capabilities from
   * `this list <https://github.com/WebAssembly/WASI/blob/master/phases/snapshot/docs.md#modules>`_
   * are implemented and can be allowed:
   * ``fd_write``, ``fd_read``, ``fd_seek``, ``fd_close``, ``fd_fdstat_get``, ``environ_get``, ``environ_sizes_get``,
   * ``args_get``, ``args_sizes_get``, ``proc_exit``, ``clock_time_get``, ``random_get``.
   * 
* * map<string, .envoy.extensions.wasm.v3.SanitizationConfig> allowed_capabilities = 1; */ @java.lang.Override public boolean containsAllowedCapabilities( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetAllowedCapabilities().getMap().containsKey(key); } /** * Use {@link #getAllowedCapabilitiesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getAllowedCapabilities() { return getAllowedCapabilitiesMap(); } /** *
   * The Proxy-Wasm capabilities which will be allowed. Capabilities are mapped by
   * name. The ``SanitizationConfig`` which each capability maps to is currently unimplemented and ignored,
   * and so should be left empty.
   * The capability names are given in the
   * `Proxy-Wasm ABI <https://github.com/proxy-wasm/spec/tree/master/abi-versions/vNEXT>`_.
   * Additionally, the following WASI capabilities from
   * `this list <https://github.com/WebAssembly/WASI/blob/master/phases/snapshot/docs.md#modules>`_
   * are implemented and can be allowed:
   * ``fd_write``, ``fd_read``, ``fd_seek``, ``fd_close``, ``fd_fdstat_get``, ``environ_get``, ``environ_sizes_get``,
   * ``args_get``, ``args_sizes_get``, ``proc_exit``, ``clock_time_get``, ``random_get``.
   * 
* * map<string, .envoy.extensions.wasm.v3.SanitizationConfig> allowed_capabilities = 1; */ @java.lang.Override public java.util.Map getAllowedCapabilitiesMap() { return internalGetAllowedCapabilities().getMap(); } /** *
   * The Proxy-Wasm capabilities which will be allowed. Capabilities are mapped by
   * name. The ``SanitizationConfig`` which each capability maps to is currently unimplemented and ignored,
   * and so should be left empty.
   * The capability names are given in the
   * `Proxy-Wasm ABI <https://github.com/proxy-wasm/spec/tree/master/abi-versions/vNEXT>`_.
   * Additionally, the following WASI capabilities from
   * `this list <https://github.com/WebAssembly/WASI/blob/master/phases/snapshot/docs.md#modules>`_
   * are implemented and can be allowed:
   * ``fd_write``, ``fd_read``, ``fd_seek``, ``fd_close``, ``fd_fdstat_get``, ``environ_get``, ``environ_sizes_get``,
   * ``args_get``, ``args_sizes_get``, ``proc_exit``, ``clock_time_get``, ``random_get``.
   * 
* * map<string, .envoy.extensions.wasm.v3.SanitizationConfig> allowed_capabilities = 1; */ @java.lang.Override public io.envoyproxy.envoy.extensions.wasm.v3.SanitizationConfig getAllowedCapabilitiesOrDefault( java.lang.String key, io.envoyproxy.envoy.extensions.wasm.v3.SanitizationConfig defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetAllowedCapabilities().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
   * The Proxy-Wasm capabilities which will be allowed. Capabilities are mapped by
   * name. The ``SanitizationConfig`` which each capability maps to is currently unimplemented and ignored,
   * and so should be left empty.
   * The capability names are given in the
   * `Proxy-Wasm ABI <https://github.com/proxy-wasm/spec/tree/master/abi-versions/vNEXT>`_.
   * Additionally, the following WASI capabilities from
   * `this list <https://github.com/WebAssembly/WASI/blob/master/phases/snapshot/docs.md#modules>`_
   * are implemented and can be allowed:
   * ``fd_write``, ``fd_read``, ``fd_seek``, ``fd_close``, ``fd_fdstat_get``, ``environ_get``, ``environ_sizes_get``,
   * ``args_get``, ``args_sizes_get``, ``proc_exit``, ``clock_time_get``, ``random_get``.
   * 
* * map<string, .envoy.extensions.wasm.v3.SanitizationConfig> allowed_capabilities = 1; */ @java.lang.Override public io.envoyproxy.envoy.extensions.wasm.v3.SanitizationConfig getAllowedCapabilitiesOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetAllowedCapabilities().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } 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 { com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetAllowedCapabilities(), AllowedCapabilitiesDefaultEntryHolder.defaultEntry, 1); unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (java.util.Map.Entry entry : internalGetAllowedCapabilities().getMap().entrySet()) { com.google.protobuf.MapEntry allowedCapabilities__ = AllowedCapabilitiesDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, allowedCapabilities__); } 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.CapabilityRestrictionConfig)) { return super.equals(obj); } io.envoyproxy.envoy.extensions.wasm.v3.CapabilityRestrictionConfig other = (io.envoyproxy.envoy.extensions.wasm.v3.CapabilityRestrictionConfig) obj; if (!internalGetAllowedCapabilities().equals( other.internalGetAllowedCapabilities())) return false; 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(); if (!internalGetAllowedCapabilities().getMap().isEmpty()) { hash = (37 * hash) + ALLOWED_CAPABILITIES_FIELD_NUMBER; hash = (53 * hash) + internalGetAllowedCapabilities().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.envoyproxy.envoy.extensions.wasm.v3.CapabilityRestrictionConfig parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.extensions.wasm.v3.CapabilityRestrictionConfig 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.CapabilityRestrictionConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.extensions.wasm.v3.CapabilityRestrictionConfig 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.CapabilityRestrictionConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.extensions.wasm.v3.CapabilityRestrictionConfig 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.CapabilityRestrictionConfig 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.CapabilityRestrictionConfig 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.CapabilityRestrictionConfig 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.CapabilityRestrictionConfig 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.CapabilityRestrictionConfig 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.CapabilityRestrictionConfig 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.CapabilityRestrictionConfig 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; } /** *
   * Configuration for restricting Proxy-Wasm capabilities available to modules.
   * 
* * Protobuf type {@code envoy.extensions.wasm.v3.CapabilityRestrictionConfig} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:envoy.extensions.wasm.v3.CapabilityRestrictionConfig) io.envoyproxy.envoy.extensions.wasm.v3.CapabilityRestrictionConfigOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.envoyproxy.envoy.extensions.wasm.v3.WasmProto.internal_static_envoy_extensions_wasm_v3_CapabilityRestrictionConfig_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 1: return internalGetAllowedCapabilities(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { case 1: return internalGetMutableAllowedCapabilities(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.extensions.wasm.v3.WasmProto.internal_static_envoy_extensions_wasm_v3_CapabilityRestrictionConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.extensions.wasm.v3.CapabilityRestrictionConfig.class, io.envoyproxy.envoy.extensions.wasm.v3.CapabilityRestrictionConfig.Builder.class); } // Construct using io.envoyproxy.envoy.extensions.wasm.v3.CapabilityRestrictionConfig.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(); internalGetMutableAllowedCapabilities().clear(); 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_CapabilityRestrictionConfig_descriptor; } @java.lang.Override public io.envoyproxy.envoy.extensions.wasm.v3.CapabilityRestrictionConfig getDefaultInstanceForType() { return io.envoyproxy.envoy.extensions.wasm.v3.CapabilityRestrictionConfig.getDefaultInstance(); } @java.lang.Override public io.envoyproxy.envoy.extensions.wasm.v3.CapabilityRestrictionConfig build() { io.envoyproxy.envoy.extensions.wasm.v3.CapabilityRestrictionConfig result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.envoyproxy.envoy.extensions.wasm.v3.CapabilityRestrictionConfig buildPartial() { io.envoyproxy.envoy.extensions.wasm.v3.CapabilityRestrictionConfig result = new io.envoyproxy.envoy.extensions.wasm.v3.CapabilityRestrictionConfig(this); int from_bitField0_ = bitField0_; result.allowedCapabilities_ = internalGetAllowedCapabilities(); result.allowedCapabilities_.makeImmutable(); 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.CapabilityRestrictionConfig) { return mergeFrom((io.envoyproxy.envoy.extensions.wasm.v3.CapabilityRestrictionConfig)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.envoyproxy.envoy.extensions.wasm.v3.CapabilityRestrictionConfig other) { if (other == io.envoyproxy.envoy.extensions.wasm.v3.CapabilityRestrictionConfig.getDefaultInstance()) return this; internalGetMutableAllowedCapabilities().mergeFrom( other.internalGetAllowedCapabilities()); 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.CapabilityRestrictionConfig parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.envoyproxy.envoy.extensions.wasm.v3.CapabilityRestrictionConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.google.protobuf.MapField< java.lang.String, io.envoyproxy.envoy.extensions.wasm.v3.SanitizationConfig> allowedCapabilities_; private com.google.protobuf.MapField internalGetAllowedCapabilities() { if (allowedCapabilities_ == null) { return com.google.protobuf.MapField.emptyMapField( AllowedCapabilitiesDefaultEntryHolder.defaultEntry); } return allowedCapabilities_; } private com.google.protobuf.MapField internalGetMutableAllowedCapabilities() { onChanged();; if (allowedCapabilities_ == null) { allowedCapabilities_ = com.google.protobuf.MapField.newMapField( AllowedCapabilitiesDefaultEntryHolder.defaultEntry); } if (!allowedCapabilities_.isMutable()) { allowedCapabilities_ = allowedCapabilities_.copy(); } return allowedCapabilities_; } public int getAllowedCapabilitiesCount() { return internalGetAllowedCapabilities().getMap().size(); } /** *
     * The Proxy-Wasm capabilities which will be allowed. Capabilities are mapped by
     * name. The ``SanitizationConfig`` which each capability maps to is currently unimplemented and ignored,
     * and so should be left empty.
     * The capability names are given in the
     * `Proxy-Wasm ABI <https://github.com/proxy-wasm/spec/tree/master/abi-versions/vNEXT>`_.
     * Additionally, the following WASI capabilities from
     * `this list <https://github.com/WebAssembly/WASI/blob/master/phases/snapshot/docs.md#modules>`_
     * are implemented and can be allowed:
     * ``fd_write``, ``fd_read``, ``fd_seek``, ``fd_close``, ``fd_fdstat_get``, ``environ_get``, ``environ_sizes_get``,
     * ``args_get``, ``args_sizes_get``, ``proc_exit``, ``clock_time_get``, ``random_get``.
     * 
* * map<string, .envoy.extensions.wasm.v3.SanitizationConfig> allowed_capabilities = 1; */ @java.lang.Override public boolean containsAllowedCapabilities( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetAllowedCapabilities().getMap().containsKey(key); } /** * Use {@link #getAllowedCapabilitiesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getAllowedCapabilities() { return getAllowedCapabilitiesMap(); } /** *
     * The Proxy-Wasm capabilities which will be allowed. Capabilities are mapped by
     * name. The ``SanitizationConfig`` which each capability maps to is currently unimplemented and ignored,
     * and so should be left empty.
     * The capability names are given in the
     * `Proxy-Wasm ABI <https://github.com/proxy-wasm/spec/tree/master/abi-versions/vNEXT>`_.
     * Additionally, the following WASI capabilities from
     * `this list <https://github.com/WebAssembly/WASI/blob/master/phases/snapshot/docs.md#modules>`_
     * are implemented and can be allowed:
     * ``fd_write``, ``fd_read``, ``fd_seek``, ``fd_close``, ``fd_fdstat_get``, ``environ_get``, ``environ_sizes_get``,
     * ``args_get``, ``args_sizes_get``, ``proc_exit``, ``clock_time_get``, ``random_get``.
     * 
* * map<string, .envoy.extensions.wasm.v3.SanitizationConfig> allowed_capabilities = 1; */ @java.lang.Override public java.util.Map getAllowedCapabilitiesMap() { return internalGetAllowedCapabilities().getMap(); } /** *
     * The Proxy-Wasm capabilities which will be allowed. Capabilities are mapped by
     * name. The ``SanitizationConfig`` which each capability maps to is currently unimplemented and ignored,
     * and so should be left empty.
     * The capability names are given in the
     * `Proxy-Wasm ABI <https://github.com/proxy-wasm/spec/tree/master/abi-versions/vNEXT>`_.
     * Additionally, the following WASI capabilities from
     * `this list <https://github.com/WebAssembly/WASI/blob/master/phases/snapshot/docs.md#modules>`_
     * are implemented and can be allowed:
     * ``fd_write``, ``fd_read``, ``fd_seek``, ``fd_close``, ``fd_fdstat_get``, ``environ_get``, ``environ_sizes_get``,
     * ``args_get``, ``args_sizes_get``, ``proc_exit``, ``clock_time_get``, ``random_get``.
     * 
* * map<string, .envoy.extensions.wasm.v3.SanitizationConfig> allowed_capabilities = 1; */ @java.lang.Override public io.envoyproxy.envoy.extensions.wasm.v3.SanitizationConfig getAllowedCapabilitiesOrDefault( java.lang.String key, io.envoyproxy.envoy.extensions.wasm.v3.SanitizationConfig defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetAllowedCapabilities().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
     * The Proxy-Wasm capabilities which will be allowed. Capabilities are mapped by
     * name. The ``SanitizationConfig`` which each capability maps to is currently unimplemented and ignored,
     * and so should be left empty.
     * The capability names are given in the
     * `Proxy-Wasm ABI <https://github.com/proxy-wasm/spec/tree/master/abi-versions/vNEXT>`_.
     * Additionally, the following WASI capabilities from
     * `this list <https://github.com/WebAssembly/WASI/blob/master/phases/snapshot/docs.md#modules>`_
     * are implemented and can be allowed:
     * ``fd_write``, ``fd_read``, ``fd_seek``, ``fd_close``, ``fd_fdstat_get``, ``environ_get``, ``environ_sizes_get``,
     * ``args_get``, ``args_sizes_get``, ``proc_exit``, ``clock_time_get``, ``random_get``.
     * 
* * map<string, .envoy.extensions.wasm.v3.SanitizationConfig> allowed_capabilities = 1; */ @java.lang.Override public io.envoyproxy.envoy.extensions.wasm.v3.SanitizationConfig getAllowedCapabilitiesOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetAllowedCapabilities().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearAllowedCapabilities() { internalGetMutableAllowedCapabilities().getMutableMap() .clear(); return this; } /** *
     * The Proxy-Wasm capabilities which will be allowed. Capabilities are mapped by
     * name. The ``SanitizationConfig`` which each capability maps to is currently unimplemented and ignored,
     * and so should be left empty.
     * The capability names are given in the
     * `Proxy-Wasm ABI <https://github.com/proxy-wasm/spec/tree/master/abi-versions/vNEXT>`_.
     * Additionally, the following WASI capabilities from
     * `this list <https://github.com/WebAssembly/WASI/blob/master/phases/snapshot/docs.md#modules>`_
     * are implemented and can be allowed:
     * ``fd_write``, ``fd_read``, ``fd_seek``, ``fd_close``, ``fd_fdstat_get``, ``environ_get``, ``environ_sizes_get``,
     * ``args_get``, ``args_sizes_get``, ``proc_exit``, ``clock_time_get``, ``random_get``.
     * 
* * map<string, .envoy.extensions.wasm.v3.SanitizationConfig> allowed_capabilities = 1; */ public Builder removeAllowedCapabilities( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableAllowedCapabilities().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableAllowedCapabilities() { return internalGetMutableAllowedCapabilities().getMutableMap(); } /** *
     * The Proxy-Wasm capabilities which will be allowed. Capabilities are mapped by
     * name. The ``SanitizationConfig`` which each capability maps to is currently unimplemented and ignored,
     * and so should be left empty.
     * The capability names are given in the
     * `Proxy-Wasm ABI <https://github.com/proxy-wasm/spec/tree/master/abi-versions/vNEXT>`_.
     * Additionally, the following WASI capabilities from
     * `this list <https://github.com/WebAssembly/WASI/blob/master/phases/snapshot/docs.md#modules>`_
     * are implemented and can be allowed:
     * ``fd_write``, ``fd_read``, ``fd_seek``, ``fd_close``, ``fd_fdstat_get``, ``environ_get``, ``environ_sizes_get``,
     * ``args_get``, ``args_sizes_get``, ``proc_exit``, ``clock_time_get``, ``random_get``.
     * 
* * map<string, .envoy.extensions.wasm.v3.SanitizationConfig> allowed_capabilities = 1; */ public Builder putAllowedCapabilities( java.lang.String key, io.envoyproxy.envoy.extensions.wasm.v3.SanitizationConfig value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableAllowedCapabilities().getMutableMap() .put(key, value); return this; } /** *
     * The Proxy-Wasm capabilities which will be allowed. Capabilities are mapped by
     * name. The ``SanitizationConfig`` which each capability maps to is currently unimplemented and ignored,
     * and so should be left empty.
     * The capability names are given in the
     * `Proxy-Wasm ABI <https://github.com/proxy-wasm/spec/tree/master/abi-versions/vNEXT>`_.
     * Additionally, the following WASI capabilities from
     * `this list <https://github.com/WebAssembly/WASI/blob/master/phases/snapshot/docs.md#modules>`_
     * are implemented and can be allowed:
     * ``fd_write``, ``fd_read``, ``fd_seek``, ``fd_close``, ``fd_fdstat_get``, ``environ_get``, ``environ_sizes_get``,
     * ``args_get``, ``args_sizes_get``, ``proc_exit``, ``clock_time_get``, ``random_get``.
     * 
* * map<string, .envoy.extensions.wasm.v3.SanitizationConfig> allowed_capabilities = 1; */ public Builder putAllAllowedCapabilities( java.util.Map values) { internalGetMutableAllowedCapabilities().getMutableMap() .putAll(values); return this; } @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.CapabilityRestrictionConfig) } // @@protoc_insertion_point(class_scope:envoy.extensions.wasm.v3.CapabilityRestrictionConfig) private static final io.envoyproxy.envoy.extensions.wasm.v3.CapabilityRestrictionConfig DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.envoyproxy.envoy.extensions.wasm.v3.CapabilityRestrictionConfig(); } public static io.envoyproxy.envoy.extensions.wasm.v3.CapabilityRestrictionConfig getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public CapabilityRestrictionConfig parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new CapabilityRestrictionConfig(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.CapabilityRestrictionConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy