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

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

The 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;

/**
 * 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.EMPTY;
  }

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

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private EnvironmentVariables(
      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: {
            java.lang.String s = input.readStringRequireUtf8();
            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
              hostEnvKeys_ = new com.google.protobuf.LazyStringArrayList();
              mutable_bitField0_ |= 0x00000001;
            }
            hostEnvKeys_.add(s);
            break;
          }
          case 18: {
            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
              keyValues_ = com.google.protobuf.MapField.newMapField(
                  KeyValuesDefaultEntryHolder.defaultEntry);
              mutable_bitField0_ |= 0x00000002;
            }
            com.google.protobuf.MapEntry
            keyValues__ = input.readMessage(
                KeyValuesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
            keyValues_.getMutableMap().put(
                keyValues__.getKey(), keyValues__.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 {
      if (((mutable_bitField0_ & 0x00000001) != 0)) {
        hostEnvKeys_ = hostEnvKeys_.getUnmodifiableView();
      }
      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_EnvironmentVariables_descriptor;
  }

  @SuppressWarnings({"rawtypes"})
  @java.lang.Override
  protected com.google.protobuf.MapField internalGetMapField(
      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;
  private com.google.protobuf.LazyStringList 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 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, ""); } 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 java.lang.String getKeyValuesOrDefault( java.lang.String key, 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); unknownFields.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 += 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.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 (!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 (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) + unknownFields.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.MapField internalGetMapField( int number) { switch (number) { case 2: return internalGetKeyValues(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField( 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() { 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(); hostEnvKeys_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); 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); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { hostEnvKeys_ = hostEnvKeys_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.hostEnvKeys_ = hostEnvKeys_; result.keyValues_ = internalGetKeyValues(); result.keyValues_.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.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_ = (bitField0_ & ~0x00000001); } else { ensureHostEnvKeysIsMutable(); hostEnvKeys_.addAll(other.hostEnvKeys_); } onChanged(); } internalGetMutableKeyValues().mergeFrom( other.internalGetKeyValues()); 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.EnvironmentVariables parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.envoyproxy.envoy.extensions.wasm.v3.EnvironmentVariables) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.google.protobuf.LazyStringList hostEnvKeys_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureHostEnvKeysIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { 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() { return hostEnvKeys_.getUnmodifiableView(); } /** *
     * 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); 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); 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_); 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.EMPTY; 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); 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() { onChanged();; if (keyValues_ == null) { keyValues_ = com.google.protobuf.MapField.newMapField( KeyValuesDefaultEntryHolder.defaultEntry); } if (!keyValues_.isMutable()) { keyValues_ = keyValues_.copy(); } 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 java.lang.String getKeyValuesOrDefault( java.lang.String key, 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() { 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() { 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); 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); 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 { return new EnvironmentVariables(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.EnvironmentVariables getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy