Class CreateInteractionRequestBody
java.lang.Object
com.google.genai.gaos.models.operations.CreateInteractionRequestBody
CreateInteractionRequestBody
The request body.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionOptional<com.fasterxml.jackson.databind.JsonNode>asJson()Returns anOptionalcontaining the value as aJsonNode.booleaninthashCode()static CreateInteractionRequestBodyof(CreateAgentInteraction value) static CreateInteractionRequestBodyof(CreateModelInteraction value) toString()
-
Method Details
-
of
-
of
-
createAgentInteraction
Returns anOptionalcontaining the value if it is of typeCreateAgentInteraction, otherwise returns an emptyOptional.- Returns:
- an
Optionalcontaining theCreateAgentInteractionvalue, or empty if not of this type
-
createModelInteraction
Returns anOptionalcontaining the value if it is of typeCreateModelInteraction, otherwise returns an emptyOptional.- Returns:
- an
Optionalcontaining theCreateModelInteractionvalue, 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
-