Class MultipartUploadClient

java.lang.Object
com.google.cloud.storage.MultipartUploadClient

@BetaApi @InternalExtensionOnly public abstract class MultipartUploadClient extends Object
A client for interacting with Google Cloud Storage's Multipart Upload API.

This class is for internal use only and is not intended for public consumption. It provides a low-level interface for creating and managing multipart uploads.

Since:
2.60.0 This new api is in preview and is subject to breaking changes.
See Also:
  • Method Details

    • createMultipartUpload

      @BetaApi public abstract CreateMultipartUploadResponse createMultipartUpload(CreateMultipartUploadRequest request)
      Creates a new multipart upload.
      Parameters:
      request - The request object containing the details for creating the multipart upload.
      Returns:
      A CreateMultipartUploadResponse object containing the upload ID.
      Since:
      2.60.0 This new api is in preview and is subject to breaking changes.
    • listParts

      @BetaApi public abstract ListPartsResponse listParts(ListPartsRequest listPartsRequest)
      Lists the parts that have been uploaded for a specific multipart upload.
      Parameters:
      listPartsRequest - The request object containing the details for listing the parts.
      Returns:
      A ListPartsResponse object containing the list of parts.
      Since:
      2.60.0 This new api is in preview and is subject to breaking changes.
    • abortMultipartUpload

      @BetaApi public abstract AbortMultipartUploadResponse abortMultipartUpload(AbortMultipartUploadRequest request)
      Aborts a multipart upload.
      Parameters:
      request - The request object containing the details for aborting the multipart upload.
      Returns:
      An AbortMultipartUploadResponse object.
      Since:
      2.60.0 This new api is in preview and is subject to breaking changes.
    • completeMultipartUpload

      @BetaApi public abstract CompleteMultipartUploadResponse completeMultipartUpload(CompleteMultipartUploadRequest request)
      Completes a multipart upload.
      Parameters:
      request - The request object containing the details for completing the multipart upload.
      Returns:
      A CompleteMultipartUploadResponse object containing information about the completed upload.
      Since:
      2.60.0 This new api is in preview and is subject to breaking changes.
    • uploadPart

      @BetaApi public abstract UploadPartResponse uploadPart(UploadPartRequest request, RequestBody requestBody)
      Uploads a part in a multipart upload.
      Parameters:
      request - The request object containing the details for uploading the part.
      requestBody - The content of the part to upload.
      Returns:
      An UploadPartResponse object containing the ETag of the uploaded part.
      Since:
      2.60.0 This new api is in preview and is subject to breaking changes.
    • create

      @BetaApi public static MultipartUploadClient create(MultipartUploadSettings config)
      Creates a new instance of MultipartUploadClient.
      Parameters:
      config - The configuration for the client.
      Returns:
      A new MultipartUploadClient instance.
      Since:
      2.60.0 This new api is in preview and is subject to breaking changes.