Uses of Class
com.google.genai.types.File
Packages that use File
-
Uses of File in com.google.genai
Methods in com.google.genai that return FileModifier and TypeMethodDescriptionFiles.get
(String name, GetFileConfig config) Retrieves the file information from the service.Files.upload
(byte[] bytes, UploadFileConfig config) Uploads a file to the API.Files.upload
(File file, UploadFileConfig config) Uploads a file to the API.Files.upload
(InputStream inputStream, long size, UploadFileConfig config) Uploads a file to the API.Files.upload
(String filePath, UploadFileConfig config) Uploads a file to the API.Methods in com.google.genai that return types with arguments of type FileModifier and TypeMethodDescriptionAsyncFiles.get
(String name, GetFileConfig config) Asynchronously retrieves the file information from the service.AsyncFiles.list
(ListFilesConfig config) Asynchronously makes an API request to list the available files.Files.list
(ListFilesConfig config) makes an API request to list the available files.AsyncFiles.upload
(byte[] bytes, UploadFileConfig config) Asynchronously uploads a bytes array as a file to the GenAI API.AsyncFiles.upload
(File file, UploadFileConfig config) Asynchronously uploads a file to the GenAI API.AsyncFiles.upload
(InputStream stream, long size, UploadFileConfig config) Asynchronously uploads a stream as a file to the GenAI API.AsyncFiles.upload
(String filePath, UploadFileConfig config) Asynchronously uploads a file by its path to the GenAI API.Methods in com.google.genai with parameters of type FileModifier and TypeMethodDescriptionAsyncFiles.download
(File file, String downloadPath, DownloadFileConfig config) Asynchronously downloads a file from the GenAI API to the provided path.void
Files.download
(File file, String downloadPath, DownloadFileConfig config) Downloads a file from the API. -
Uses of File in com.google.genai.types
Methods in com.google.genai.types that return FileModifier and TypeMethodDescriptionabstract File
File.Builder.build()
static File
Deserializes a JSON string to a File object.Methods in com.google.genai.types that return types with arguments of type FileModifier and TypeMethodDescriptionCreateFileParameters.file()
The file to be uploaded.ListFilesResponse.files()
The list of files.Methods in com.google.genai.types with parameters of type FileModifier and TypeMethodDescriptionabstract CreateFileParameters.Builder
Setter for file.Setter for files.Method parameters in com.google.genai.types with type arguments of type File