Class Environment

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

public class Environment extends Object
Environment

An execution environment for an agent.

  • Constructor Details

  • Method Details

    • created

      public Optional<String> created()
      Output only. The time at which the environment was created in ISO 8601 format (YYYY-MM-DDThh:mm:ssZ).
    • customConfig

      public Optional<Map<String,Object>> customConfig()
      Output only. Arbitrary customer-defined JSON configuration passed through to the self-hosted environment poller. Only populated for `self_hosted` environments when configured.
    • environmentKey

      public Optional<String> environmentKey()
      Output only. Secret token generated upon environment creation for self_hosted environments. Used by the self-hosted sandbox daemon to authenticate polling and streaming requests. Only returned when the environment is created; omitted when getting or listing environments later.
    • fileCount

      public Optional<String> fileCount()
      Output only. The number of files in the environment, output only.
    • id

      public Optional<String> id()
      Required. Output only. The ID of the environment.
    • lastAccessed

      public Optional<String> lastAccessed()
      Output only. The time at which the environment was last accessed in ISO 8601 format (YYYY-MM-DDThh:mm:ssZ).
    • mode

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

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

      public Optional<String> sizeBytes()
      Output only. The total size of the environment files in bytes, output only.
    • sources

      public Optional<List<Source>> sources()
      Sources to be mounted into the environment.
    • status

      public Optional<Status> status()
      Output only. The status of the environment container.
    • updated

      public Optional<String> updated()
      Output only. The time at which the environment was last updated in ISO 8601 format (YYYY-MM-DDThh:mm:ssZ).
    • builder

      public static Environment.Builder builder()
    • withCreated

      public Environment withCreated(@Nullable String created)
      Output only. The time at which the environment was created in ISO 8601 format (YYYY-MM-DDThh:mm:ssZ).
    • withCustomConfig

      public Environment withCustomConfig(@Nullable Map<String,Object> customConfig)
      Output only. Arbitrary customer-defined JSON configuration passed through to the self-hosted environment poller. Only populated for `self_hosted` environments when configured.
    • withEnvironmentKey

      public Environment withEnvironmentKey(@Nullable String environmentKey)
      Output only. Secret token generated upon environment creation for self_hosted environments. Used by the self-hosted sandbox daemon to authenticate polling and streaming requests. Only returned when the environment is created; omitted when getting or listing environments later.
    • withFileCount

      public Environment withFileCount(@Nullable String fileCount)
      Output only. The number of files in the environment, output only.
    • withId

      public Environment withId(@Nonnull String id)
      Required. Output only. The ID of the environment.
    • withLastAccessed

      public Environment withLastAccessed(@Nullable String lastAccessed)
      Output only. The time at which the environment was last accessed in ISO 8601 format (YYYY-MM-DDThh:mm:ssZ).
    • withMode

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

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

      public Environment withSizeBytes(@Nullable String sizeBytes)
      Output only. The total size of the environment files in bytes, output only.
    • withSources

      public Environment withSources(@Nullable List<Source> sources)
      Sources to be mounted into the environment.
    • withStatus

      public Environment withStatus(@Nullable Status status)
      Output only. The status of the environment container.
    • withUpdated

      public Environment withUpdated(@Nullable String updated)
      Output only. The time at which the environment was last updated in ISO 8601 format (YYYY-MM-DDThh:mm:ssZ).
    • 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