Class Environment

java.lang.Object
com.google.genai.gaos.models.interactions.Environment

public class Environment extends Object
Environment

Configuration for a custom environment.

  • Constructor Details

  • Method Details

    • customConfig

      public Optional<Map<String,Object>> customConfig()
      Optional. Arbitrary customer-defined JSON configuration passed through to the self-hosted environment poller. Only supported when `mode` is `SELF_HOSTED`.
    • env

      public Optional<Map<String,Env>> env()
      Environment variables to set in the sandbox environment.
    • environmentId

      public Optional<String> environmentId()
      Optional. The environment ID for the interaction. If specified, the request will update the existing environment instead of creating a new one; creation-only fields (`env` and `sources`) cannot be updated when resuming an existing environment.
    • mode

      public Optional<EnvironmentMode> mode()
      The compute lifecycle mode for an environment.
    • network

      public Optional<Network> network()
      Network configuration for the environment.
    • sources

      public Optional<List<Source>> sources()
    • type

      public Optional<String> type()
    • builder

      public static Environment.Builder builder()
    • withCustomConfig

      public Environment withCustomConfig(@Nullable Map<String,Object> customConfig)
      Optional. Arbitrary customer-defined JSON configuration passed through to the self-hosted environment poller. Only supported when `mode` is `SELF_HOSTED`.
    • withEnv

      public Environment withEnv(@Nullable Map<String,Env> env)
      Environment variables to set in the sandbox environment.
    • withEnvironmentId

      public Environment withEnvironmentId(@Nullable String environmentId)
      Optional. The environment ID for the interaction. If specified, the request will update the existing environment instead of creating a new one; creation-only fields (`env` and `sources`) cannot be updated when resuming an existing environment.
    • withMode

      public Environment withMode(@Nullable EnvironmentMode mode)
      The compute lifecycle mode for an environment.
    • withNetwork

      public Environment withNetwork(@Nullable Network network)
      Network configuration for the environment.
    • withSources

      public Environment withSources(@Nullable List<Source> sources)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object