Package com.google.cloud.storage
Class MultipartUploadClient
java.lang.Object
com.google.cloud.storage.MultipartUploadClient
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 Summary
Modifier and TypeMethodDescriptionabstract AbortMultipartUploadResponseAborts a multipart upload.abstract CompleteMultipartUploadResponseCompletes a multipart upload.static MultipartUploadClientcreate(MultipartUploadSettings config) Creates a new instance ofMultipartUploadClient.abstract CreateMultipartUploadResponseCreates a new multipart upload.abstract ListPartsResponselistParts(ListPartsRequest listPartsRequest) Lists the parts that have been uploaded for a specific multipart upload.abstract UploadPartResponseuploadPart(UploadPartRequest request, RequestBody requestBody) Uploads a part in a multipart upload.
-
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
CreateMultipartUploadResponseobject containing the upload ID. - Since:
- 2.60.0 This new api is in preview and is subject to breaking changes.
-
listParts
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
ListPartsResponseobject 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
AbortMultipartUploadResponseobject. - 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
CompleteMultipartUploadResponseobject 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
UploadPartResponseobject containing the ETag of the uploaded part. - Since:
- 2.60.0 This new api is in preview and is subject to breaking changes.
-
create
Creates a new instance ofMultipartUploadClient.- Parameters:
config- The configuration for the client.- Returns:
- A new
MultipartUploadClientinstance. - Since:
- 2.60.0 This new api is in preview and is subject to breaking changes.
-