Package com.google.genai.gaos
Class Internal
java.lang.Object
com.google.genai.gaos.Internal
-
Method Summary
Modifier and TypeMethodDescriptionasync()Switches to the async SDK.Start an environment file uploadStart an environment file uploadstartUpload(StartEnvironmentFileUploadRequest request, Options options) Start an environment file upload
-
Method Details
-
async
Switches to the async SDK.- Returns:
- The async 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 call builder
-
startUpload
public 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:
- The response from the API call
- Throws:
RuntimeException- subclass if the API call fails
-
startUpload
public 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:
- The response from the API call
- Throws:
RuntimeException- subclass if the API call fails
-