Package com.google.genai.gaos
Class AsyncInternal
java.lang.Object
com.google.genai.gaos.AsyncInternal
-
Method Summary
Modifier and TypeMethodDescriptionStart an environment file uploadStart an environment file uploadstartUpload(StartEnvironmentFileUploadRequest request, Options options) Start an environment file uploadsync()Switches to the sync SDK.
-
Method Details
-
sync
Switches to the sync SDK.- Returns:
- The sync SDK
-
startUpload
Start an environment file uploadStarts 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
public CompletableFuture<StartEnvironmentFileUploadResponse> startUpload(@Nonnull StartEnvironmentFileUploadRequest request) Start an environment file uploadStarts 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 uploadStarts 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
-