Class InteractionsInput
java.lang.Object
com.google.genai.gaos.models.interactions.InteractionsInput
InteractionsInput
The input for the interaction.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionOptional<com.fasterxml.jackson.databind.JsonNode>asJson()Returns anOptionalcontaining the value as aJsonNode.content()booleaninthashCode()static InteractionsInputstatic InteractionsInputstatic InteractionsInputstatic InteractionsInputstring()toString()
-
Method Details
-
of
-
ofStep
-
ofContent
-
of
-
content
Returns anOptionalcontaining the value if it is of typeContent, otherwise returns an emptyOptional.- Returns:
- an
Optionalcontaining theContentvalue, or empty if not of this type
-
arrayOfStep
Returns anOptionalcontaining the value if it is of typeList<Step>, otherwise returns an emptyOptional.- Returns:
- an
Optionalcontaining theList<Step>value, or empty if not of this type
-
arrayOfContent
Returns anOptionalcontaining the value if it is of typeList<Content>, otherwise returns an emptyOptional.- Returns:
- an
Optionalcontaining theList<Content>value, or empty if not of this type
-
string
Returns anOptionalcontaining the value if it is of typeString, otherwise returns an emptyOptional.- Returns:
- an
Optionalcontaining theStringvalue, or empty if not of this type
-
asJson
Returns anOptionalcontaining the value as aJsonNode. This accessor returns the raw JSON when the value doesn't match any of the defined union types.- Returns:
- an
Optionalcontaining theJsonNodevalue, or empty if value matched a known type
-
equals
-
hashCode
public int hashCode() -
toString
-