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

    • Environment

      public Environment(@Nullable String environmentId, @Nullable Network network, @Nullable List<Source> sources)
    • Environment

      public Environment()
  • Method Details

    • 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.
    • 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()
    • 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.
    • 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