Class ResponseFormat
java.lang.Object
com.google.genai.gaos.models.interactions.ResponseFormat
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionOptional<com.fasterxml.jackson.databind.JsonNode>asJson()Returns anOptionalcontaining the value as aJsonNode.booleaninthashCode()static ResponseFormatof(AudioResponseFormat value) static ResponseFormatof(ImageResponseFormat value) static ResponseFormatof(TextResponseFormat value) static ResponseFormatof(VideoResponseFormat value) static ResponseFormattoString()
-
Method Details
-
of
-
of
-
of
-
of
-
of
-
audioResponseFormat
Returns anOptionalcontaining the value if it is of typeAudioResponseFormat, otherwise returns an emptyOptional.- Returns:
- an
Optionalcontaining theAudioResponseFormatvalue, or empty if not of this type
-
imageResponseFormat
Returns anOptionalcontaining the value if it is of typeImageResponseFormat, otherwise returns an emptyOptional.- Returns:
- an
Optionalcontaining theImageResponseFormatvalue, or empty if not of this type
-
textResponseFormat
Returns anOptionalcontaining the value if it is of typeTextResponseFormat, otherwise returns an emptyOptional.- Returns:
- an
Optionalcontaining theTextResponseFormatvalue, or empty if not of this type
-
videoResponseFormat
Returns anOptionalcontaining the value if it is of typeVideoResponseFormat, otherwise returns an emptyOptional.- Returns:
- an
Optionalcontaining theVideoResponseFormatvalue, or empty if not of this type
-
mapOfObject
Returns anOptionalcontaining the value if it is of typeMap<String, Object>, otherwise returns an emptyOptional.- Returns:
- an
Optionalcontaining theMap<String, Object>value, 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
-