Class EnvironmentVariables.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<EnvironmentVariables.Builder>
io.envoyproxy.envoy.extensions.wasm.v3.EnvironmentVariables.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, EnvironmentVariablesOrBuilder, Cloneable
Enclosing class:
EnvironmentVariables

public static final class EnvironmentVariables.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<EnvironmentVariables.Builder> implements EnvironmentVariablesOrBuilder
Protobuf type envoy.extensions.wasm.v3.EnvironmentVariables
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessageV3.Builder<EnvironmentVariables.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessageV3.Builder<EnvironmentVariables.Builder>
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<EnvironmentVariables.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessageV3.Builder<EnvironmentVariables.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<EnvironmentVariables.Builder>
    • getDefaultInstanceForType

      public EnvironmentVariables getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public EnvironmentVariables build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public EnvironmentVariables buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • clone

      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<EnvironmentVariables.Builder>
    • setField

      public EnvironmentVariables.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<EnvironmentVariables.Builder>
    • clearField

      public EnvironmentVariables.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<EnvironmentVariables.Builder>
    • clearOneof

      public EnvironmentVariables.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<EnvironmentVariables.Builder>
    • setRepeatedField

      public EnvironmentVariables.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<EnvironmentVariables.Builder>
    • addRepeatedField

      public EnvironmentVariables.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<EnvironmentVariables.Builder>
    • mergeFrom

      public EnvironmentVariables.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<EnvironmentVariables.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<EnvironmentVariables.Builder>
    • mergeFrom

      public EnvironmentVariables.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<EnvironmentVariables.Builder>
      Throws:
      IOException
    • getHostEnvKeysList

      public com.google.protobuf.ProtocolStringList getHostEnvKeysList()
       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;
      Specified by:
      getHostEnvKeysList in interface EnvironmentVariablesOrBuilder
      Returns:
      A list containing the hostEnvKeys.
    • getHostEnvKeysCount

      public int getHostEnvKeysCount()
       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;
      Specified by:
      getHostEnvKeysCount in interface EnvironmentVariablesOrBuilder
      Returns:
      The count of hostEnvKeys.
    • getHostEnvKeys

      public String getHostEnvKeys(int 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;
      Specified by:
      getHostEnvKeys in interface EnvironmentVariablesOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The hostEnvKeys at the given index.
    • getHostEnvKeysBytes

      public com.google.protobuf.ByteString getHostEnvKeysBytes(int 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;
      Specified by:
      getHostEnvKeysBytes in interface EnvironmentVariablesOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the hostEnvKeys at the given index.
    • setHostEnvKeys

      public EnvironmentVariables.Builder setHostEnvKeys(int index, String value)
       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;
      Parameters:
      index - The index to set the value at.
      value - The hostEnvKeys to set.
      Returns:
      This builder for chaining.
    • addHostEnvKeys

      public EnvironmentVariables.Builder addHostEnvKeys(String value)
       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;
      Parameters:
      value - The hostEnvKeys to add.
      Returns:
      This builder for chaining.
    • addAllHostEnvKeys

      public EnvironmentVariables.Builder addAllHostEnvKeys(Iterable<String> values)
       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;
      Parameters:
      values - The hostEnvKeys to add.
      Returns:
      This builder for chaining.
    • clearHostEnvKeys

      public EnvironmentVariables.Builder clearHostEnvKeys()
       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;
      Returns:
      This builder for chaining.
    • addHostEnvKeysBytes

      public EnvironmentVariables.Builder addHostEnvKeysBytes(com.google.protobuf.ByteString value)
       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;
      Parameters:
      value - The bytes of the hostEnvKeys to add.
      Returns:
      This builder for chaining.
    • getKeyValuesCount

      public int getKeyValuesCount()
      Description copied from interface: EnvironmentVariablesOrBuilder
       Explicitly given key-value pairs to be injected to this VM in the form of "KEY=VALUE".
       
      map<string, string> key_values = 2;
      Specified by:
      getKeyValuesCount in interface EnvironmentVariablesOrBuilder
    • containsKeyValues

      public boolean containsKeyValues(String key)
       Explicitly given key-value pairs to be injected to this VM in the form of "KEY=VALUE".
       
      map<string, string> key_values = 2;
      Specified by:
      containsKeyValues in interface EnvironmentVariablesOrBuilder
    • getKeyValues

      @Deprecated public Map<String,String> getKeyValues()
      Deprecated.
      Use getKeyValuesMap() instead.
      Specified by:
      getKeyValues in interface EnvironmentVariablesOrBuilder
    • getKeyValuesMap

      public Map<String,String> getKeyValuesMap()
       Explicitly given key-value pairs to be injected to this VM in the form of "KEY=VALUE".
       
      map<string, string> key_values = 2;
      Specified by:
      getKeyValuesMap in interface EnvironmentVariablesOrBuilder
    • getKeyValuesOrDefault

      public String getKeyValuesOrDefault(String key, String defaultValue)
       Explicitly given key-value pairs to be injected to this VM in the form of "KEY=VALUE".
       
      map<string, string> key_values = 2;
      Specified by:
      getKeyValuesOrDefault in interface EnvironmentVariablesOrBuilder
    • getKeyValuesOrThrow

      public String getKeyValuesOrThrow(String key)
       Explicitly given key-value pairs to be injected to this VM in the form of "KEY=VALUE".
       
      map<string, string> key_values = 2;
      Specified by:
      getKeyValuesOrThrow in interface EnvironmentVariablesOrBuilder
    • clearKeyValues

      public EnvironmentVariables.Builder clearKeyValues()
    • removeKeyValues

      public EnvironmentVariables.Builder removeKeyValues(String key)
       Explicitly given key-value pairs to be injected to this VM in the form of "KEY=VALUE".
       
      map<string, string> key_values = 2;
    • getMutableKeyValues

      @Deprecated public Map<String,String> getMutableKeyValues()
      Deprecated.
      Use alternate mutation accessors instead.
    • putKeyValues

      public EnvironmentVariables.Builder putKeyValues(String key, String value)
       Explicitly given key-value pairs to be injected to this VM in the form of "KEY=VALUE".
       
      map<string, string> key_values = 2;
    • putAllKeyValues

      public EnvironmentVariables.Builder putAllKeyValues(Map<String,String> values)
       Explicitly given key-value pairs to be injected to this VM in the form of "KEY=VALUE".
       
      map<string, string> key_values = 2;
    • setUnknownFields

      public final EnvironmentVariables.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<EnvironmentVariables.Builder>
    • mergeUnknownFields

      public final EnvironmentVariables.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<EnvironmentVariables.Builder>