Package com.google.genai.types
Class FunctionResponseBlob
-
- All Implemented Interfaces:
public abstract class FunctionResponseBlob extends JsonSerializable
Raw media bytes for function response.
Text should not be sent as raw bytes, use the FunctionResponse.response field.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public abstract classFunctionResponseBlob.BuilderBuilder for FunctionResponseBlob.
-
Field Summary
Fields Modifier and Type Field Description public final static StringMAX_READ_LENGTH_PROPERTY
-
Constructor Summary
Constructors Constructor Description FunctionResponseBlob()
-
Method Summary
Modifier and Type Method Description abstract Optional<String>mimeType()Required. abstract Optional<Array<byte>>data()Required. abstract Optional<String>displayName()Optional. static FunctionResponseBlob.Builderbuilder()Instantiates a builder for FunctionResponseBlob. abstract FunctionResponseBlob.BuildertoBuilder()Creates a builder with the same values as this instance. static FunctionResponseBlobfromJson(String jsonString)Deserializes a JSON string to a FunctionResponseBlob object. -
Methods inherited from class com.google.genai.JsonSerializable
fromJsonNode, fromJsonString, objectMapper, setMaxReadLength, stringToJsonNode, toJson, toJsonNode, toJsonString -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
mimeType
abstract Optional<String> mimeType()
Required. The IANA standard MIME type of the source data.
-
displayName
abstract Optional<String> displayName()
Optional. Display name of the blob. Used to provide a label or filename to distinguish blobs.
-
builder
static FunctionResponseBlob.Builder builder()
Instantiates a builder for FunctionResponseBlob.
-
toBuilder
abstract FunctionResponseBlob.Builder toBuilder()
Creates a builder with the same values as this instance.
-
fromJson
static FunctionResponseBlob fromJson(String jsonString)
Deserializes a JSON string to a FunctionResponseBlob object.
-
-
-
-