Class Image.Builder

java.lang.Object
com.google.genai.types.Image.Builder
Enclosing class:
Image

public abstract static class Image.Builder extends Object
Builder for Image.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • gcsUri

      public abstract Image.Builder gcsUri(String gcsUri)
      Setter for gcsUri.

      gcsUri: The Cloud Storage URI of the image. ``Image`` can contain a value for this field or the ``image_bytes`` field but not both.

    • imageBytes

      public abstract Image.Builder imageBytes(byte[] imageBytes)
      Setter for imageBytes.

      imageBytes: The image bytes data. ``Image`` can contain a value for this field or the ``gcs_uri`` field but not both.

    • mimeType

      public abstract Image.Builder mimeType(String mimeType)
      Setter for mimeType.

      mimeType: The MIME type of the image.

    • build

      public abstract Image build()