Package com.google.genai.types
Class GenerateImagesResponse
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.GenerateImagesResponse
The output images response.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Builder for GenerateImagesResponse. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Instantiates a builder for GenerateImagesResponse.static GenerateImagesResponse
Deserializes a JSON string to a GenerateImagesResponse object.abstract Optional<List<GeneratedImage>>
List of generated images.abstract Optional<SafetyAttributes>
Safety attributes of the positive prompt.abstract Optional<HttpResponse>
Used to retain the full HTTP response.abstract GenerateImagesResponse.Builder
Creates a builder with the same values as this instance.Methods inherited from class com.google.genai.JsonSerializable
stringToJsonNode, toJson
-
Constructor Details
-
GenerateImagesResponse
public GenerateImagesResponse()
-
-
Method Details
-
sdkHttpResponse
Used to retain the full HTTP response. -
generatedImages
List of generated images. -
positivePromptSafetyAttributes
Safety attributes of the positive prompt. Only populated if ``include_safety_attributes`` is set to True. -
builder
Instantiates a builder for GenerateImagesResponse. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a GenerateImagesResponse object.
-