Package com.google.genai.types
Class GenerationOutputConfig
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.GenerationOutputConfig
Configuration for persisting output assets to external storage.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder for GenerationOutputConfig. -
Field Summary
Fields inherited from class com.google.genai.JsonSerializable
MAX_READ_LENGTH_PROPERTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Instantiates a builder for GenerationOutputConfig.static GenerationOutputConfigDeserializes a JSON string to a GenerationOutputConfig object.Optional.abstract GenerationOutputConfig.BuilderCreates a builder with the same values as this instance.Methods inherited from class com.google.genai.JsonSerializable
fromJsonNode, fromJsonString, objectMapper, setMaxReadLength, stringToJsonNode, toJson, toJsonNode, toJsonString
-
Constructor Details
-
GenerationOutputConfig
public GenerationOutputConfig()
-
-
Method Details
-
outputUriPrefix
Optional. The Cloud Storage URI prefix or directory where generated media assets should be written (e.g. "gs://my-bucket/prefix/"). Supported URI schemes: "gs://". When set, media bytes are written directly to this location and returned as FileData with a file_uri instead of raw inline bytes. -
builder
Instantiates a builder for GenerationOutputConfig. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a GenerationOutputConfig object.
-