Package com.google.genai.types
Class Image
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.Image
An image.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class com.google.genai.JsonSerializable
objectMapper -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Image.Builderbuilder()Instantiates a builder for Image.static ImageDeserializes a JSON string to a Image object.gcsUri()The Cloud Storage URI of the image.The image bytes data.mimeType()The MIME type of the image.abstract Image.BuilderCreates a builder with the same values as this instance.Methods inherited from class com.google.genai.JsonSerializable
fromJsonNode, fromJsonString, toJson, toJsonNode, toJsonString
-
Constructor Details
-
Image
public Image()
-
-
Method Details
-
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
The image bytes data. ``Image`` can contain a value for this field or the ``gcs_uri`` field but not both. -
mimeType
The MIME type of the image. -
builder
Instantiates a builder for Image. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a Image object.
-