Class AsyncInternal

java.lang.Object
com.google.genai.gaos.AsyncInternal

public class AsyncInternal extends Object
  • Method Details

    • sync

      public Internal sync()
      Switches to the sync SDK.
      Returns:
      The sync SDK
    • startUpload

      Start an environment file upload

      Starts a resumable upload session for a file in an environment workspace. Upload the file bytes to the URL returned in the `X-Goog-Upload-URL` response header, using the resumable upload protocol.

      Returns:
      The async call builder
    • startUpload

      Start an environment file upload

      Starts a resumable upload session for a file in an environment workspace. Upload the file bytes to the URL returned in the `X-Goog-Upload-URL` response header, using the resumable upload protocol.

      Parameters:
      request - The request object containing all the parameters for the API call.
      Returns:
      CompletableFuture<StartEnvironmentFileUploadResponse> - The async response
    • startUpload

      public CompletableFuture<StartEnvironmentFileUploadResponse> startUpload(@Nonnull StartEnvironmentFileUploadRequest request, @Nullable Options options)
      Start an environment file upload

      Starts a resumable upload session for a file in an environment workspace. Upload the file bytes to the URL returned in the `X-Goog-Upload-URL` response header, using the resumable upload protocol.

      Parameters:
      request - The request object containing all the parameters for the API call.
      options - additional options
      Returns:
      CompletableFuture<StartEnvironmentFileUploadResponse> - The async response