Package com.google.genai.types
Class Blob
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.Blob
Content blob.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Blob.Builder
builder()
Instantiates a builder for Blob.abstract Optional<byte[]>
data()
Required.Optional.static Blob
Deserializes a JSON string to a Blob object.mimeType()
Required.abstract Blob.Builder
Creates a builder with the same values as this instance.Methods inherited from class com.google.genai.JsonSerializable
stringToJsonNode, toJson
-
Constructor Details
-
Blob
public Blob()
-
-
Method Details
-
displayName
Optional. Display name of the blob. Used to provide a label or filename to distinguish blobs. This field is not currently used in the Gemini GenerateContent calls. -
data
Required. Raw bytes. -
mimeType
Required. The IANA standard MIME type of the source data. -
builder
Instantiates a builder for Blob. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a Blob object.
-