Package com.google.genai
Class AsyncOperations
-
- All Implemented Interfaces:
public final class AsyncOperationsAsync module of Operations
-
-
Constructor Summary
Constructors Constructor Description AsyncOperations(ApiClient apiClient)
-
Method Summary
Modifier and Type Method Description CompletableFuture<GenerateVideosOperation>getVideosOperation(GenerateVideosOperation operation, GetOperationConfig config)Gets the status of a GenerateVideosOperation. <T, U extends Operation<T, U>> CompletableFuture<U>get(U operation, GetOperationConfig config)Gets the status of an Operation. -
-
Constructor Detail
-
AsyncOperations
AsyncOperations(ApiClient apiClient)
-
-
Method Detail
-
getVideosOperation
CompletableFuture<GenerateVideosOperation> getVideosOperation(GenerateVideosOperation operation, GetOperationConfig config)
Gets the status of a GenerateVideosOperation.
- Parameters:
operation- A GenerateVideosOperation.config- The configuration for getting the operation.- Returns:
A GenerateVideosOperation with the updated status of the operation.
-
get
<T, U extends Operation<T, U>> CompletableFuture<U> get(U operation, GetOperationConfig config)
Gets the status of an Operation.
- Parameters:
operation- An Operation.config- The configuration for getting the operation.- Returns:
An Operation with the updated status of the operation.
-
-
-
-