Class AsyncOperations

java.lang.Object
com.google.genai.AsyncOperations

public final class AsyncOperations extends Object
Async module of Operations
  • Constructor Details

    • AsyncOperations

      public AsyncOperations(com.google.genai.ApiClient apiClient)
  • Method Details

    • getVideosOperation

      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

      public <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.