Class Internal

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

public class Internal extends Object
  • Method Details

    • async

      public AsyncInternal async()
      Switches to the async SDK.
      Returns:
      The async 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 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:
      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 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:
      The response from the API call
      Throws:
      RuntimeException - subclass if the API call fails