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

public class Transform extends Object
Transform

Headers to inject on all outbound requests matching this domain. Accepts a single dict or a list of dicts. The egress proxy injects these automatically.

  • Method Details

    • of

      public static Transform of(List<Map<String,String>> value)
    • of

      public static Transform of(Map<String,String> value)
    • arrayOfMap

      public Optional<List<Map<String,String>>> arrayOfMap()
      Returns an Optional containing the value if it is of type List<Map<String, String>>, otherwise returns an empty Optional.
      Returns:
      an Optional containing the List<Map<String, String>> value, or empty if not of this type
    • mapOfString

      public Optional<Map<String,String>> mapOfString()
      Returns an Optional containing the value if it is of type Map<String, String>, otherwise returns an empty Optional.
      Returns:
      an Optional containing the Map<String, String> value, or empty if not of this type
    • asJson

      public Optional<com.fasterxml.jackson.databind.JsonNode> asJson()
      Returns an Optional containing the value as a JsonNode. This accessor returns the raw JSON when the value doesn't match any of the defined union types.
      Returns:
      an Optional containing the JsonNode value, or empty if value matched a known type
    • 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