Package com.google.genai.types
Class FunctionResponseFileData
-
- All Implemented Interfaces:
public abstract class FunctionResponseFileData extends JsonSerializable
URI based data for function response.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public abstract classFunctionResponseFileData.BuilderBuilder for FunctionResponseFileData.
-
Field Summary
Fields Modifier and Type Field Description public final static StringMAX_READ_LENGTH_PROPERTY
-
Constructor Summary
Constructors Constructor Description FunctionResponseFileData()
-
Method Summary
Modifier and Type Method Description abstract Optional<String>fileUri()Required. abstract Optional<String>mimeType()Required. abstract Optional<String>displayName()Optional. static FunctionResponseFileData.Builderbuilder()Instantiates a builder for FunctionResponseFileData. abstract FunctionResponseFileData.BuildertoBuilder()Creates a builder with the same values as this instance. static FunctionResponseFileDatafromJson(String jsonString)Deserializes a JSON string to a FunctionResponseFileData 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 file. Used to provide a label or filename to distinguish files.
-
builder
static FunctionResponseFileData.Builder builder()
Instantiates a builder for FunctionResponseFileData.
-
toBuilder
abstract FunctionResponseFileData.Builder toBuilder()
Creates a builder with the same values as this instance.
-
fromJson
static FunctionResponseFileData fromJson(String jsonString)
Deserializes a JSON string to a FunctionResponseFileData object.
-
-
-
-