AsyncFiles

public final class AsyncFiles

Async module of Files

Constructors

Link copied to clipboard
public void AsyncFiles(ApiClient apiClient)

Functions

Link copied to clipboard
Asynchronously deletes a remotely stored file.
Link copied to clipboard
public CompletableFuture<Void> download(File file, String downloadPath, DownloadFileConfig config)
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
public CompletableFuture<File> get(String name, GetFileConfig config)
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
public CompletableFuture<File> upload(Array<byte> bytes, UploadFileConfig config)
Asynchronously uploads a bytes array as a file to the GenAI API.
Asynchronously uploads a file to the GenAI API.
public CompletableFuture<File> upload(String filePath, UploadFileConfig config)
Asynchronously uploads a file by its path to the GenAI API.
public CompletableFuture<File> upload(InputStream stream, long size, UploadFileConfig config)
Asynchronously uploads a stream as a file to the GenAI API.