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.47
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: 6]
 * [#not-implemented-hide:] pending implementation.
 * 
* * 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_ = ""; groupName_ = ""; } @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(); groupName_ = s; break; } case 26: { io.envoyproxy.envoy.extensions.wasm.v3.VmConfig.Builder subBuilder = null; if (vmConfigCase_ == 3) { subBuilder = ((io.envoyproxy.envoy.extensions.wasm.v3.VmConfig) vmConfig_).toBuilder(); } vmConfig_ = input.readMessage(io.envoyproxy.envoy.extensions.wasm.v3.VmConfig.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((io.envoyproxy.envoy.extensions.wasm.v3.VmConfig) vmConfig_); vmConfig_ = subBuilder.buildPartial(); } vmConfigCase_ = 3; break; } case 42: { 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; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.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 vmConfigCase_ = 0; private java.lang.Object vmConfig_; public enum VmConfigCase implements com.google.protobuf.Internal.EnumLite { INLINE_VM_CONFIG(3), VMCONFIG_NOT_SET(0); private final int value; private VmConfigCase(int value) { this.value = value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static VmConfigCase valueOf(int value) { return forNumber(value); } public static VmConfigCase forNumber(int value) { switch (value) { case 3: return INLINE_VM_CONFIG; case 0: return VMCONFIG_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public VmConfigCase getVmConfigCase() { return VmConfigCase.forNumber( vmConfigCase_); } 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 *group_name* and for
   * logging/debugging.
   * 
* * string name = 1; */ 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 *group_name* and for
   * logging/debugging.
   * 
* * string name = 1; */ 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 GROUP_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object groupName_; /** *
   * 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 group_name with the same *vm_id* will share Context(s).
   * 
* * string group_name = 2; */ public java.lang.String getGroupName() { java.lang.Object ref = groupName_; 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(); groupName_ = 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 group_name with the same *vm_id* will share Context(s).
   * 
* * string group_name = 2; */ public com.google.protobuf.ByteString getGroupNameBytes() { java.lang.Object ref = groupName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); groupName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int INLINE_VM_CONFIG_FIELD_NUMBER = 3; /** *
   * In the future add referential VM configurations.
   * 
* * .envoy.extensions.wasm.v3.VmConfig inline_vm_config = 3; */ public boolean hasInlineVmConfig() { return vmConfigCase_ == 3; } /** *
   * In the future add referential VM configurations.
   * 
* * .envoy.extensions.wasm.v3.VmConfig inline_vm_config = 3; */ public io.envoyproxy.envoy.extensions.wasm.v3.VmConfig getInlineVmConfig() { if (vmConfigCase_ == 3) { return (io.envoyproxy.envoy.extensions.wasm.v3.VmConfig) vmConfig_; } return io.envoyproxy.envoy.extensions.wasm.v3.VmConfig.getDefaultInstance(); } /** *
   * In the future add referential VM configurations.
   * 
* * .envoy.extensions.wasm.v3.VmConfig inline_vm_config = 3; */ public io.envoyproxy.envoy.extensions.wasm.v3.VmConfigOrBuilder getInlineVmConfigOrBuilder() { if (vmConfigCase_ == 3) { return (io.envoyproxy.envoy.extensions.wasm.v3.VmConfig) vmConfig_; } return io.envoyproxy.envoy.extensions.wasm.v3.VmConfig.getDefaultInstance(); } public static final int CONFIGURATION_FIELD_NUMBER = 5; private com.google.protobuf.Any configuration_; /** *
   * Filter/service configuration used to configure or reconfigure a plugin
   * (proxy_on_configuration).
   * 
* * .google.protobuf.Any configuration = 5; */ public boolean hasConfiguration() { return configuration_ != null; } /** *
   * Filter/service configuration used to configure or reconfigure a plugin
   * (proxy_on_configuration).
   * 
* * .google.protobuf.Any configuration = 5; */ 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_configuration).
   * 
* * .google.protobuf.Any configuration = 5; */ public com.google.protobuf.AnyOrBuilder getConfigurationOrBuilder() { return getConfiguration(); } 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 (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (!getGroupNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, groupName_); } if (vmConfigCase_ == 3) { output.writeMessage(3, (io.envoyproxy.envoy.extensions.wasm.v3.VmConfig) vmConfig_); } if (configuration_ != null) { output.writeMessage(5, getConfiguration()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (!getGroupNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, groupName_); } if (vmConfigCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, (io.envoyproxy.envoy.extensions.wasm.v3.VmConfig) vmConfig_); } if (configuration_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getConfiguration()); } 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 (!getGroupName() .equals(other.getGroupName())) return false; if (hasConfiguration() != other.hasConfiguration()) return false; if (hasConfiguration()) { if (!getConfiguration() .equals(other.getConfiguration())) return false; } if (!getVmConfigCase().equals(other.getVmConfigCase())) return false; switch (vmConfigCase_) { case 3: if (!getInlineVmConfig() .equals(other.getInlineVmConfig())) 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) + GROUP_NAME_FIELD_NUMBER; hash = (53 * hash) + getGroupName().hashCode(); if (hasConfiguration()) { hash = (37 * hash) + CONFIGURATION_FIELD_NUMBER; hash = (53 * hash) + getConfiguration().hashCode(); } switch (vmConfigCase_) { case 3: hash = (37 * hash) + INLINE_VM_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getInlineVmConfig().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: 6]
   * [#not-implemented-hide:] pending implementation.
   * 
* * 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_ = ""; groupName_ = ""; if (configurationBuilder_ == null) { configuration_ = null; } else { configuration_ = null; configurationBuilder_ = null; } vmConfigCase_ = 0; vmConfig_ = 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.groupName_ = groupName_; if (vmConfigCase_ == 3) { if (inlineVmConfigBuilder_ == null) { result.vmConfig_ = vmConfig_; } else { result.vmConfig_ = inlineVmConfigBuilder_.build(); } } if (configurationBuilder_ == null) { result.configuration_ = configuration_; } else { result.configuration_ = configurationBuilder_.build(); } result.vmConfigCase_ = vmConfigCase_; 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.getGroupName().isEmpty()) { groupName_ = other.groupName_; onChanged(); } if (other.hasConfiguration()) { mergeConfiguration(other.getConfiguration()); } switch (other.getVmConfigCase()) { case INLINE_VM_CONFIG: { mergeInlineVmConfig(other.getInlineVmConfig()); break; } case VMCONFIG_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 vmConfigCase_ = 0; private java.lang.Object vmConfig_; public VmConfigCase getVmConfigCase() { return VmConfigCase.forNumber( vmConfigCase_); } public Builder clearVmConfig() { vmConfigCase_ = 0; vmConfig_ = 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 *group_name* and for
     * logging/debugging.
     * 
* * string name = 1; */ 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 *group_name* and for
     * logging/debugging.
     * 
* * string name = 1; */ 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 *group_name* and for
     * logging/debugging.
     * 
* * string name = 1; */ 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 *group_name* and for
     * logging/debugging.
     * 
* * string name = 1; */ 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 *group_name* and for
     * logging/debugging.
     * 
* * string name = 1; */ 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 groupName_ = ""; /** *
     * 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 group_name with the same *vm_id* will share Context(s).
     * 
* * string group_name = 2; */ public java.lang.String getGroupName() { java.lang.Object ref = groupName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); groupName_ = 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 group_name with the same *vm_id* will share Context(s).
     * 
* * string group_name = 2; */ public com.google.protobuf.ByteString getGroupNameBytes() { java.lang.Object ref = groupName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); groupName_ = 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 group_name with the same *vm_id* will share Context(s).
     * 
* * string group_name = 2; */ public Builder setGroupName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } groupName_ = 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 group_name with the same *vm_id* will share Context(s).
     * 
* * string group_name = 2; */ public Builder clearGroupName() { groupName_ = getDefaultInstance().getGroupName(); 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 group_name with the same *vm_id* will share Context(s).
     * 
* * string group_name = 2; */ public Builder setGroupNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); groupName_ = 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> inlineVmConfigBuilder_; /** *
     * In the future add referential VM configurations.
     * 
* * .envoy.extensions.wasm.v3.VmConfig inline_vm_config = 3; */ public boolean hasInlineVmConfig() { return vmConfigCase_ == 3; } /** *
     * In the future add referential VM configurations.
     * 
* * .envoy.extensions.wasm.v3.VmConfig inline_vm_config = 3; */ public io.envoyproxy.envoy.extensions.wasm.v3.VmConfig getInlineVmConfig() { if (inlineVmConfigBuilder_ == null) { if (vmConfigCase_ == 3) { return (io.envoyproxy.envoy.extensions.wasm.v3.VmConfig) vmConfig_; } return io.envoyproxy.envoy.extensions.wasm.v3.VmConfig.getDefaultInstance(); } else { if (vmConfigCase_ == 3) { return inlineVmConfigBuilder_.getMessage(); } return io.envoyproxy.envoy.extensions.wasm.v3.VmConfig.getDefaultInstance(); } } /** *
     * In the future add referential VM configurations.
     * 
* * .envoy.extensions.wasm.v3.VmConfig inline_vm_config = 3; */ public Builder setInlineVmConfig(io.envoyproxy.envoy.extensions.wasm.v3.VmConfig value) { if (inlineVmConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); } vmConfig_ = value; onChanged(); } else { inlineVmConfigBuilder_.setMessage(value); } vmConfigCase_ = 3; return this; } /** *
     * In the future add referential VM configurations.
     * 
* * .envoy.extensions.wasm.v3.VmConfig inline_vm_config = 3; */ public Builder setInlineVmConfig( io.envoyproxy.envoy.extensions.wasm.v3.VmConfig.Builder builderForValue) { if (inlineVmConfigBuilder_ == null) { vmConfig_ = builderForValue.build(); onChanged(); } else { inlineVmConfigBuilder_.setMessage(builderForValue.build()); } vmConfigCase_ = 3; return this; } /** *
     * In the future add referential VM configurations.
     * 
* * .envoy.extensions.wasm.v3.VmConfig inline_vm_config = 3; */ public Builder mergeInlineVmConfig(io.envoyproxy.envoy.extensions.wasm.v3.VmConfig value) { if (inlineVmConfigBuilder_ == null) { if (vmConfigCase_ == 3 && vmConfig_ != io.envoyproxy.envoy.extensions.wasm.v3.VmConfig.getDefaultInstance()) { vmConfig_ = io.envoyproxy.envoy.extensions.wasm.v3.VmConfig.newBuilder((io.envoyproxy.envoy.extensions.wasm.v3.VmConfig) vmConfig_) .mergeFrom(value).buildPartial(); } else { vmConfig_ = value; } onChanged(); } else { if (vmConfigCase_ == 3) { inlineVmConfigBuilder_.mergeFrom(value); } inlineVmConfigBuilder_.setMessage(value); } vmConfigCase_ = 3; return this; } /** *
     * In the future add referential VM configurations.
     * 
* * .envoy.extensions.wasm.v3.VmConfig inline_vm_config = 3; */ public Builder clearInlineVmConfig() { if (inlineVmConfigBuilder_ == null) { if (vmConfigCase_ == 3) { vmConfigCase_ = 0; vmConfig_ = null; onChanged(); } } else { if (vmConfigCase_ == 3) { vmConfigCase_ = 0; vmConfig_ = null; } inlineVmConfigBuilder_.clear(); } return this; } /** *
     * In the future add referential VM configurations.
     * 
* * .envoy.extensions.wasm.v3.VmConfig inline_vm_config = 3; */ public io.envoyproxy.envoy.extensions.wasm.v3.VmConfig.Builder getInlineVmConfigBuilder() { return getInlineVmConfigFieldBuilder().getBuilder(); } /** *
     * In the future add referential VM configurations.
     * 
* * .envoy.extensions.wasm.v3.VmConfig inline_vm_config = 3; */ public io.envoyproxy.envoy.extensions.wasm.v3.VmConfigOrBuilder getInlineVmConfigOrBuilder() { if ((vmConfigCase_ == 3) && (inlineVmConfigBuilder_ != null)) { return inlineVmConfigBuilder_.getMessageOrBuilder(); } else { if (vmConfigCase_ == 3) { return (io.envoyproxy.envoy.extensions.wasm.v3.VmConfig) vmConfig_; } return io.envoyproxy.envoy.extensions.wasm.v3.VmConfig.getDefaultInstance(); } } /** *
     * In the future add referential VM configurations.
     * 
* * .envoy.extensions.wasm.v3.VmConfig inline_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> getInlineVmConfigFieldBuilder() { if (inlineVmConfigBuilder_ == null) { if (!(vmConfigCase_ == 3)) { vmConfig_ = io.envoyproxy.envoy.extensions.wasm.v3.VmConfig.getDefaultInstance(); } inlineVmConfigBuilder_ = 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) vmConfig_, getParentForChildren(), isClean()); vmConfig_ = null; } vmConfigCase_ = 3; onChanged();; return inlineVmConfigBuilder_; } 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_configuration).
     * 
* * .google.protobuf.Any configuration = 5; */ public boolean hasConfiguration() { return configurationBuilder_ != null || configuration_ != null; } /** *
     * Filter/service configuration used to configure or reconfigure a plugin
     * (proxy_on_configuration).
     * 
* * .google.protobuf.Any configuration = 5; */ 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_configuration).
     * 
* * .google.protobuf.Any configuration = 5; */ 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_configuration).
     * 
* * .google.protobuf.Any configuration = 5; */ 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_configuration).
     * 
* * .google.protobuf.Any configuration = 5; */ 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_configuration).
     * 
* * .google.protobuf.Any configuration = 5; */ 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_configuration).
     * 
* * .google.protobuf.Any configuration = 5; */ public com.google.protobuf.Any.Builder getConfigurationBuilder() { onChanged(); return getConfigurationFieldBuilder().getBuilder(); } /** *
     * Filter/service configuration used to configure or reconfigure a plugin
     * (proxy_on_configuration).
     * 
* * .google.protobuf.Any configuration = 5; */ 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_configuration).
     * 
* * .google.protobuf.Any configuration = 5; */ 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_; } @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 - 2025 Weber Informatics LLC | Privacy Policy