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

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

// Protobuf Java Version: 3.25.1
package io.envoyproxy.envoy.extensions.wasm.v3;

/**
 * Protobuf type {@code envoy.extensions.wasm.v3.EnvironmentVariables}
 */
public final class EnvironmentVariables extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:envoy.extensions.wasm.v3.EnvironmentVariables)
    EnvironmentVariablesOrBuilder {
private static final long serialVersionUID = 0L;
  // Use EnvironmentVariables.newBuilder() to construct.
  private EnvironmentVariables(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private EnvironmentVariables() {
    hostEnvKeys_ =
        com.google.protobuf.LazyStringArrayList.emptyList();
  }

  @java.lang.Override
  @SuppressWarnings({"unused"})
  protected java.lang.Object newInstance(
      UnusedPrivateParameter unused) {
    return new EnvironmentVariables();
  }

  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return io.envoyproxy.envoy.extensions.wasm.v3.WasmProto.internal_static_envoy_extensions_wasm_v3_EnvironmentVariables_descriptor;
  }

  @SuppressWarnings({"rawtypes"})
  @java.lang.Override
  protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(
      int number) {
    switch (number) {
      case 2:
        return internalGetKeyValues();
      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_EnvironmentVariables_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            io.envoyproxy.envoy.extensions.wasm.v3.EnvironmentVariables.class, io.envoyproxy.envoy.extensions.wasm.v3.EnvironmentVariables.Builder.class);
  }

  public static final int HOST_ENV_KEYS_FIELD_NUMBER = 1;
  @SuppressWarnings("serial")
  private com.google.protobuf.LazyStringArrayList hostEnvKeys_ =
      com.google.protobuf.LazyStringArrayList.emptyList();
  /**
   * 
   * The keys of *Envoy's* environment variables exposed to this VM. In other words, if a key exists in Envoy's environment
   * variables, then that key-value pair will be injected. Note that if a key does not exist, it will be ignored.
   * 
* * repeated string host_env_keys = 1; * @return A list containing the hostEnvKeys. */ public com.google.protobuf.ProtocolStringList getHostEnvKeysList() { return hostEnvKeys_; } /** *
   * The keys of *Envoy's* environment variables exposed to this VM. In other words, if a key exists in Envoy's environment
   * variables, then that key-value pair will be injected. Note that if a key does not exist, it will be ignored.
   * 
* * repeated string host_env_keys = 1; * @return The count of hostEnvKeys. */ public int getHostEnvKeysCount() { return hostEnvKeys_.size(); } /** *
   * The keys of *Envoy's* environment variables exposed to this VM. In other words, if a key exists in Envoy's environment
   * variables, then that key-value pair will be injected. Note that if a key does not exist, it will be ignored.
   * 
* * repeated string host_env_keys = 1; * @param index The index of the element to return. * @return The hostEnvKeys at the given index. */ public java.lang.String getHostEnvKeys(int index) { return hostEnvKeys_.get(index); } /** *
   * The keys of *Envoy's* environment variables exposed to this VM. In other words, if a key exists in Envoy's environment
   * variables, then that key-value pair will be injected. Note that if a key does not exist, it will be ignored.
   * 
* * repeated string host_env_keys = 1; * @param index The index of the value to return. * @return The bytes of the hostEnvKeys at the given index. */ public com.google.protobuf.ByteString getHostEnvKeysBytes(int index) { return hostEnvKeys_.getByteString(index); } public static final int KEY_VALUES_FIELD_NUMBER = 2; private static final class KeyValuesDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, java.lang.String> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( io.envoyproxy.envoy.extensions.wasm.v3.WasmProto.internal_static_envoy_extensions_wasm_v3_EnvironmentVariables_KeyValuesEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.STRING, ""); } @SuppressWarnings("serial") private com.google.protobuf.MapField< java.lang.String, java.lang.String> keyValues_; private com.google.protobuf.MapField internalGetKeyValues() { if (keyValues_ == null) { return com.google.protobuf.MapField.emptyMapField( KeyValuesDefaultEntryHolder.defaultEntry); } return keyValues_; } public int getKeyValuesCount() { return internalGetKeyValues().getMap().size(); } /** *
   * Explicitly given key-value pairs to be injected to this VM in the form of "KEY=VALUE".
   * 
* * map<string, string> key_values = 2; */ @java.lang.Override public boolean containsKeyValues( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetKeyValues().getMap().containsKey(key); } /** * Use {@link #getKeyValuesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getKeyValues() { return getKeyValuesMap(); } /** *
   * Explicitly given key-value pairs to be injected to this VM in the form of "KEY=VALUE".
   * 
* * map<string, string> key_values = 2; */ @java.lang.Override public java.util.Map getKeyValuesMap() { return internalGetKeyValues().getMap(); } /** *
   * Explicitly given key-value pairs to be injected to this VM in the form of "KEY=VALUE".
   * 
* * map<string, string> key_values = 2; */ @java.lang.Override public /* nullable */ java.lang.String getKeyValuesOrDefault( java.lang.String key, /* nullable */ java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetKeyValues().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
   * Explicitly given key-value pairs to be injected to this VM in the form of "KEY=VALUE".
   * 
* * map<string, string> key_values = 2; */ @java.lang.Override public java.lang.String getKeyValuesOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetKeyValues().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 { for (int i = 0; i < hostEnvKeys_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, hostEnvKeys_.getRaw(i)); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetKeyValues(), KeyValuesDefaultEntryHolder.defaultEntry, 2); getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int i = 0; i < hostEnvKeys_.size(); i++) { dataSize += computeStringSizeNoTag(hostEnvKeys_.getRaw(i)); } size += dataSize; size += 1 * getHostEnvKeysList().size(); } for (java.util.Map.Entry entry : internalGetKeyValues().getMap().entrySet()) { com.google.protobuf.MapEntry keyValues__ = KeyValuesDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, keyValues__); } size += getUnknownFields().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.EnvironmentVariables)) { return super.equals(obj); } io.envoyproxy.envoy.extensions.wasm.v3.EnvironmentVariables other = (io.envoyproxy.envoy.extensions.wasm.v3.EnvironmentVariables) obj; if (!getHostEnvKeysList() .equals(other.getHostEnvKeysList())) return false; if (!internalGetKeyValues().equals( other.internalGetKeyValues())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getHostEnvKeysCount() > 0) { hash = (37 * hash) + HOST_ENV_KEYS_FIELD_NUMBER; hash = (53 * hash) + getHostEnvKeysList().hashCode(); } if (!internalGetKeyValues().getMap().isEmpty()) { hash = (37 * hash) + KEY_VALUES_FIELD_NUMBER; hash = (53 * hash) + internalGetKeyValues().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static io.envoyproxy.envoy.extensions.wasm.v3.EnvironmentVariables parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.extensions.wasm.v3.EnvironmentVariables 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.EnvironmentVariables parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.extensions.wasm.v3.EnvironmentVariables 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.EnvironmentVariables parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.extensions.wasm.v3.EnvironmentVariables 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.EnvironmentVariables 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.EnvironmentVariables 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.EnvironmentVariables 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.EnvironmentVariables 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.EnvironmentVariables 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.EnvironmentVariables 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.EnvironmentVariables 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; } /** * Protobuf type {@code envoy.extensions.wasm.v3.EnvironmentVariables} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:envoy.extensions.wasm.v3.EnvironmentVariables) io.envoyproxy.envoy.extensions.wasm.v3.EnvironmentVariablesOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.envoyproxy.envoy.extensions.wasm.v3.WasmProto.internal_static_envoy_extensions_wasm_v3_EnvironmentVariables_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( int number) { switch (number) { case 2: return internalGetKeyValues(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( int number) { switch (number) { case 2: return internalGetMutableKeyValues(); 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_EnvironmentVariables_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.extensions.wasm.v3.EnvironmentVariables.class, io.envoyproxy.envoy.extensions.wasm.v3.EnvironmentVariables.Builder.class); } // Construct using io.envoyproxy.envoy.extensions.wasm.v3.EnvironmentVariables.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; hostEnvKeys_ = com.google.protobuf.LazyStringArrayList.emptyList(); internalGetMutableKeyValues().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_EnvironmentVariables_descriptor; } @java.lang.Override public io.envoyproxy.envoy.extensions.wasm.v3.EnvironmentVariables getDefaultInstanceForType() { return io.envoyproxy.envoy.extensions.wasm.v3.EnvironmentVariables.getDefaultInstance(); } @java.lang.Override public io.envoyproxy.envoy.extensions.wasm.v3.EnvironmentVariables build() { io.envoyproxy.envoy.extensions.wasm.v3.EnvironmentVariables result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.envoyproxy.envoy.extensions.wasm.v3.EnvironmentVariables buildPartial() { io.envoyproxy.envoy.extensions.wasm.v3.EnvironmentVariables result = new io.envoyproxy.envoy.extensions.wasm.v3.EnvironmentVariables(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(io.envoyproxy.envoy.extensions.wasm.v3.EnvironmentVariables result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { hostEnvKeys_.makeImmutable(); result.hostEnvKeys_ = hostEnvKeys_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.keyValues_ = internalGetKeyValues(); result.keyValues_.makeImmutable(); } } @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.EnvironmentVariables) { return mergeFrom((io.envoyproxy.envoy.extensions.wasm.v3.EnvironmentVariables)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.envoyproxy.envoy.extensions.wasm.v3.EnvironmentVariables other) { if (other == io.envoyproxy.envoy.extensions.wasm.v3.EnvironmentVariables.getDefaultInstance()) return this; if (!other.hostEnvKeys_.isEmpty()) { if (hostEnvKeys_.isEmpty()) { hostEnvKeys_ = other.hostEnvKeys_; bitField0_ |= 0x00000001; } else { ensureHostEnvKeysIsMutable(); hostEnvKeys_.addAll(other.hostEnvKeys_); } onChanged(); } internalGetMutableKeyValues().mergeFrom( other.internalGetKeyValues()); bitField0_ |= 0x00000002; this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } 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(); ensureHostEnvKeysIsMutable(); hostEnvKeys_.add(s); break; } // case 10 case 18: { com.google.protobuf.MapEntry keyValues__ = input.readMessage( KeyValuesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableKeyValues().getMutableMap().put( keyValues__.getKey(), keyValues__.getValue()); bitField0_ |= 0x00000002; break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.google.protobuf.LazyStringArrayList hostEnvKeys_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureHostEnvKeysIsMutable() { if (!hostEnvKeys_.isModifiable()) { hostEnvKeys_ = new com.google.protobuf.LazyStringArrayList(hostEnvKeys_); } bitField0_ |= 0x00000001; } /** *
     * The keys of *Envoy's* environment variables exposed to this VM. In other words, if a key exists in Envoy's environment
     * variables, then that key-value pair will be injected. Note that if a key does not exist, it will be ignored.
     * 
* * repeated string host_env_keys = 1; * @return A list containing the hostEnvKeys. */ public com.google.protobuf.ProtocolStringList getHostEnvKeysList() { hostEnvKeys_.makeImmutable(); return hostEnvKeys_; } /** *
     * The keys of *Envoy's* environment variables exposed to this VM. In other words, if a key exists in Envoy's environment
     * variables, then that key-value pair will be injected. Note that if a key does not exist, it will be ignored.
     * 
* * repeated string host_env_keys = 1; * @return The count of hostEnvKeys. */ public int getHostEnvKeysCount() { return hostEnvKeys_.size(); } /** *
     * The keys of *Envoy's* environment variables exposed to this VM. In other words, if a key exists in Envoy's environment
     * variables, then that key-value pair will be injected. Note that if a key does not exist, it will be ignored.
     * 
* * repeated string host_env_keys = 1; * @param index The index of the element to return. * @return The hostEnvKeys at the given index. */ public java.lang.String getHostEnvKeys(int index) { return hostEnvKeys_.get(index); } /** *
     * The keys of *Envoy's* environment variables exposed to this VM. In other words, if a key exists in Envoy's environment
     * variables, then that key-value pair will be injected. Note that if a key does not exist, it will be ignored.
     * 
* * repeated string host_env_keys = 1; * @param index The index of the value to return. * @return The bytes of the hostEnvKeys at the given index. */ public com.google.protobuf.ByteString getHostEnvKeysBytes(int index) { return hostEnvKeys_.getByteString(index); } /** *
     * The keys of *Envoy's* environment variables exposed to this VM. In other words, if a key exists in Envoy's environment
     * variables, then that key-value pair will be injected. Note that if a key does not exist, it will be ignored.
     * 
* * repeated string host_env_keys = 1; * @param index The index to set the value at. * @param value The hostEnvKeys to set. * @return This builder for chaining. */ public Builder setHostEnvKeys( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureHostEnvKeysIsMutable(); hostEnvKeys_.set(index, value); bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     * The keys of *Envoy's* environment variables exposed to this VM. In other words, if a key exists in Envoy's environment
     * variables, then that key-value pair will be injected. Note that if a key does not exist, it will be ignored.
     * 
* * repeated string host_env_keys = 1; * @param value The hostEnvKeys to add. * @return This builder for chaining. */ public Builder addHostEnvKeys( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureHostEnvKeysIsMutable(); hostEnvKeys_.add(value); bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     * The keys of *Envoy's* environment variables exposed to this VM. In other words, if a key exists in Envoy's environment
     * variables, then that key-value pair will be injected. Note that if a key does not exist, it will be ignored.
     * 
* * repeated string host_env_keys = 1; * @param values The hostEnvKeys to add. * @return This builder for chaining. */ public Builder addAllHostEnvKeys( java.lang.Iterable values) { ensureHostEnvKeysIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, hostEnvKeys_); bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     * The keys of *Envoy's* environment variables exposed to this VM. In other words, if a key exists in Envoy's environment
     * variables, then that key-value pair will be injected. Note that if a key does not exist, it will be ignored.
     * 
* * repeated string host_env_keys = 1; * @return This builder for chaining. */ public Builder clearHostEnvKeys() { hostEnvKeys_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000001);; onChanged(); return this; } /** *
     * The keys of *Envoy's* environment variables exposed to this VM. In other words, if a key exists in Envoy's environment
     * variables, then that key-value pair will be injected. Note that if a key does not exist, it will be ignored.
     * 
* * repeated string host_env_keys = 1; * @param value The bytes of the hostEnvKeys to add. * @return This builder for chaining. */ public Builder addHostEnvKeysBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureHostEnvKeysIsMutable(); hostEnvKeys_.add(value); bitField0_ |= 0x00000001; onChanged(); return this; } private com.google.protobuf.MapField< java.lang.String, java.lang.String> keyValues_; private com.google.protobuf.MapField internalGetKeyValues() { if (keyValues_ == null) { return com.google.protobuf.MapField.emptyMapField( KeyValuesDefaultEntryHolder.defaultEntry); } return keyValues_; } private com.google.protobuf.MapField internalGetMutableKeyValues() { if (keyValues_ == null) { keyValues_ = com.google.protobuf.MapField.newMapField( KeyValuesDefaultEntryHolder.defaultEntry); } if (!keyValues_.isMutable()) { keyValues_ = keyValues_.copy(); } bitField0_ |= 0x00000002; onChanged(); return keyValues_; } public int getKeyValuesCount() { return internalGetKeyValues().getMap().size(); } /** *
     * Explicitly given key-value pairs to be injected to this VM in the form of "KEY=VALUE".
     * 
* * map<string, string> key_values = 2; */ @java.lang.Override public boolean containsKeyValues( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetKeyValues().getMap().containsKey(key); } /** * Use {@link #getKeyValuesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getKeyValues() { return getKeyValuesMap(); } /** *
     * Explicitly given key-value pairs to be injected to this VM in the form of "KEY=VALUE".
     * 
* * map<string, string> key_values = 2; */ @java.lang.Override public java.util.Map getKeyValuesMap() { return internalGetKeyValues().getMap(); } /** *
     * Explicitly given key-value pairs to be injected to this VM in the form of "KEY=VALUE".
     * 
* * map<string, string> key_values = 2; */ @java.lang.Override public /* nullable */ java.lang.String getKeyValuesOrDefault( java.lang.String key, /* nullable */ java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetKeyValues().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
     * Explicitly given key-value pairs to be injected to this VM in the form of "KEY=VALUE".
     * 
* * map<string, string> key_values = 2; */ @java.lang.Override public java.lang.String getKeyValuesOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetKeyValues().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearKeyValues() { bitField0_ = (bitField0_ & ~0x00000002); internalGetMutableKeyValues().getMutableMap() .clear(); return this; } /** *
     * Explicitly given key-value pairs to be injected to this VM in the form of "KEY=VALUE".
     * 
* * map<string, string> key_values = 2; */ public Builder removeKeyValues( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableKeyValues().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableKeyValues() { bitField0_ |= 0x00000002; return internalGetMutableKeyValues().getMutableMap(); } /** *
     * Explicitly given key-value pairs to be injected to this VM in the form of "KEY=VALUE".
     * 
* * map<string, string> key_values = 2; */ public Builder putKeyValues( java.lang.String key, java.lang.String value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableKeyValues().getMutableMap() .put(key, value); bitField0_ |= 0x00000002; return this; } /** *
     * Explicitly given key-value pairs to be injected to this VM in the form of "KEY=VALUE".
     * 
* * map<string, string> key_values = 2; */ public Builder putAllKeyValues( java.util.Map values) { internalGetMutableKeyValues().getMutableMap() .putAll(values); bitField0_ |= 0x00000002; 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.EnvironmentVariables) } // @@protoc_insertion_point(class_scope:envoy.extensions.wasm.v3.EnvironmentVariables) private static final io.envoyproxy.envoy.extensions.wasm.v3.EnvironmentVariables DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.envoyproxy.envoy.extensions.wasm.v3.EnvironmentVariables(); } public static io.envoyproxy.envoy.extensions.wasm.v3.EnvironmentVariables getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public EnvironmentVariables parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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.EnvironmentVariables getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy