KEMBAR78
feat(transfer-manager): add ParallelUploadConfig.Builder#setUploadBlobInfoFactory by BenWhitehead · Pull Request #2936 · googleapis/java-storage · GitHub
Skip to content

Conversation

@BenWhitehead
Copy link
Collaborator

When uploading a file from the files system, there are scenarios when a job would need to customize the actual BlobInfo used to upload to GCS.

Add the new UploadBlobInfoFactory which allows a user to produce their own BlobInfo instance given the bucketName and fileName. When producing the BlobInfo the application can also customize other metadata fields.

A few convenience adapter methods are available in UploadBlobInfoFactory to simplify common operations.

Fixes #2638

…bInfoFactory

When uploading a file from the files system, there are scenarios when a job would need to customize the actual BlobInfo used to upload to GCS.

Add the new UploadBlobInfoFactory which allows a user to produce their own BlobInfo instance given the bucketName and fileName. When producing the BlobInfo the application can also customize other metadata fields.

A few convenience adapter methods are available in UploadBlobInfoFactory to simplify common operations.

Fixes #2638
@BenWhitehead BenWhitehead requested a review from a team as a code owner February 18, 2025 21:01
@product-auto-label product-auto-label bot added size: l Pull request size is large. api: storage Issues related to the googleapis/java-storage API. labels Feb 18, 2025
Copy link
Contributor

@ddelgrosso1 ddelgrosso1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. I'm assuming that test failure is expected as I noticed it failing last week?

@BenWhitehead
Copy link
Collaborator Author

Correct, ITKmsTest failure is being investigated separately

@BenWhitehead BenWhitehead merged commit 86e9ae8 into main Feb 18, 2025
20 of 21 checks passed
@BenWhitehead BenWhitehead deleted the tm/01/upload-mapper branch February 18, 2025 22:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: storage Issues related to the googleapis/java-storage API. size: l Pull request size is large.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support renaming files on Transfer Manager Upload

2 participants