Package com.google.genai.types
Class FunctionResponseBlob
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.FunctionResponseBlob
Raw media bytes for function response. Text should not be sent as raw bytes, use the 'text'
field.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder for FunctionResponseBlob. -
Field Summary
Fields inherited from class com.google.genai.JsonSerializable
MAX_READ_LENGTH_PROPERTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic FunctionResponseBlob.Builderbuilder()Instantiates a builder for FunctionResponseBlob.abstract Optional<byte[]>data()Required.Optional.static FunctionResponseBlobDeserializes a JSON string to a FunctionResponseBlob object.mimeType()Required.abstract FunctionResponseBlob.BuilderCreates a builder with the same values as this instance.Methods inherited from class com.google.genai.JsonSerializable
fromJsonNode, fromJsonString, objectMapper, setMaxReadLength, stringToJsonNode, toJson, toJsonNode, toJsonString
-
Constructor Details
-
FunctionResponseBlob
public FunctionResponseBlob()
-
-
Method Details
-
mimeType
Required. The IANA standard MIME type of the source data. -
data
Required. Raw bytes. -
displayName
Optional. 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 currently used in the Gemini GenerateContent calls only when server side tools (code_execution, google_search, and url_context) are enabled. This field is not supported in Gemini API. -
builder
Instantiates a builder for FunctionResponseBlob. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a FunctionResponseBlob object.
-