Package com.google.genai.types
Class Blob.Builder
java.lang.Object
com.google.genai.types.Blob.Builder
- Enclosing class:
- Blob
Builder for Blob.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract Blobbuild()Clears the value of data field.Clears the value of displayName field.Clears the value of mimeType field.abstract Blob.Builderdata(byte[] data) Setter for data.abstract Blob.BuilderdisplayName(String displayName) Setter for displayName.abstract Blob.BuilderSetter for mimeType.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
data
Setter for data.data: Required. The raw bytes of the data.
-
clearData
Clears the value of data field. -
displayName
Setter for displayName.displayName: Optional. The display name of the blob. Used to provide a label or filename to distinguish blobs. This field is only returned in `PromptMessage` for prompt management. It is used in the Gemini calls only when server-side tools (`code_execution`, `google_search`, and `url_context`) are enabled. This field is not supported in Gemini API.
-
clearDisplayName
Clears the value of displayName field. -
mimeType
Setter for mimeType.mimeType: Required. The IANA standard MIME type of the source data.
-
clearMimeType
Clears the value of mimeType field. -
build
-