Async Files
Async module of Files
Functions
Link copied to clipboard
Asynchronously deletes a remotely stored file.
Link copied to clipboard
public CompletableFuture<Void> download(String fileName, String downloadPath, DownloadFileConfig config)
Asynchronously downloads a file from the GenAI API to the provided path.
public CompletableFuture<Void> download(GeneratedVideo video, String downloadPath, DownloadFileConfig config)
Asynchronously downloads a generated video from the GenAI API to the provided path.
public CompletableFuture<Void> download(Video video, String downloadPath, DownloadFileConfig config)
Asynchronously downloads a video from the GenAI API to the provided path.
Link copied to clipboard
Asynchronously retrieves the file information from the service.
Link copied to clipboard
Asynchronously makes an API request to list the available files.
Link copied to clipboard
public CompletableFuture<RegisterFilesResponse> registerFiles(GoogleCredentials credentials, List<String> uris, RegisterFilesConfig config)
Asynchronously registers Google Cloud Storage files for use with the API.
Link copied to clipboard
Asynchronously uploads a bytes array as a file to the GenAI API.
Asynchronously uploads a file to the GenAI API.
Asynchronously uploads a file by its path to the GenAI API.
Asynchronously uploads a stream as a file to the GenAI API.