Class GenerateImagesResponse

java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.GenerateImagesResponse

public abstract class GenerateImagesResponse extends JsonSerializable
The output images response.
  • Constructor Details

    • GenerateImagesResponse

      public GenerateImagesResponse()
  • Method Details

    • sdkHttpResponse

      public abstract Optional<HttpResponse> sdkHttpResponse()
      Used to retain the full HTTP response.
    • generatedImages

      public abstract Optional<List<GeneratedImage>> generatedImages()
      List of generated images.
    • positivePromptSafetyAttributes

      public abstract Optional<SafetyAttributes> positivePromptSafetyAttributes()
      Safety attributes of the positive prompt. Only populated if ``include_safety_attributes`` is set to True.
    • builder

      public static GenerateImagesResponse.Builder builder()
      Instantiates a builder for GenerateImagesResponse.
    • toBuilder

      public abstract GenerateImagesResponse.Builder toBuilder()
      Creates a builder with the same values as this instance.
    • fromJson

      public static GenerateImagesResponse fromJson(String jsonString)
      Deserializes a JSON string to a GenerateImagesResponse object.