Class InteractionsInput

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

public class InteractionsInput extends Object
InteractionsInput

The input for the interaction.

  • Method Details

    • of

      public static InteractionsInput of(Content value)
    • ofStep

      public static InteractionsInput ofStep(List<Step> value)
    • ofContent

      public static InteractionsInput ofContent(List<Content> value)
    • of

      public static InteractionsInput of(String value)
    • content

      public Optional<Content> content()
      Returns an Optional containing the value if it is of type Content, otherwise returns an empty Optional.
      Returns:
      an Optional containing the Content value, or empty if not of this type
    • arrayOfStep

      public Optional<List<Step>> arrayOfStep()
      Returns an Optional containing the value if it is of type List<Step>, otherwise returns an empty Optional.
      Returns:
      an Optional containing the List<Step> value, or empty if not of this type
    • arrayOfContent

      public Optional<List<Content>> arrayOfContent()
      Returns an Optional containing the value if it is of type List<Content>, otherwise returns an empty Optional.
      Returns:
      an Optional containing the List<Content> value, or empty if not of this type
    • string

      public Optional<String> string()
      Returns an Optional containing the value if it is of type String, otherwise returns an empty Optional.
      Returns:
      an Optional containing the 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