Package com.google.genai.types
Class FileData
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.FileData
URI based data.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic FileData.Builder
builder()
Instantiates a builder for FileData.fileUri()
Required.static FileData
Deserializes a JSON string to a FileData object.mimeType()
Required.abstract FileData.Builder
Creates a builder with the same values as this instance.Methods inherited from class com.google.genai.JsonSerializable
fromJsonString, toJson
-
Constructor Details
-
FileData
public FileData()
-
-
Method Details
-
fileUri
Required. URI. -
mimeType
Required. The IANA standard MIME type of the source data. -
builder
Instantiates a builder for FileData. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a FileData object.
-