Use the destination bucket's default encryption settings.
Preserve
Preserve the object's original Cloud KMS customer-managed encryption key
(CMEK) if present. Objects that do not use a Cloud KMS encryption key
will be encrypted using the destination bucket's encryption settings.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThe latest version of the \u003ccode\u003eMetadataOptions.Types.KmsKey\u003c/code\u003e enum is 2.8.0, as part of the Google Cloud Storage Transfer v1 API.\u003c/p\u003e\n"],["\u003cp\u003eThis enum, \u003ccode\u003eMetadataOptions.Types.KmsKey\u003c/code\u003e, provides options for managing the KmsKey settings for Google Cloud Storage objects, with options for using destination bucket defaults, preserving the original CMEK key, or being unspecified.\u003c/p\u003e\n"],["\u003cp\u003eThere are multiple prior versions of this API available, all the way back to version 1.0.0, should it be required.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eMetadataOptions.Types.KmsKey\u003c/code\u003e enum is within the \u003ccode\u003eGoogle.Cloud.StorageTransfer.V1\u003c/code\u003e namespace, found in the \u003ccode\u003eGoogle.Cloud.StorageTransfer.V1.dll\u003c/code\u003e assembly.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eMetadataOptions.Types.KmsKey\u003c/code\u003e enum includes three distinct fields: \u003ccode\u003eDestinationBucketDefault\u003c/code\u003e, which utilizes the destination bucket's default encryption; \u003ccode\u003ePreserve\u003c/code\u003e, which keeps the object's original Cloud KMS CMEK or uses the destination bucket's encryption; and \u003ccode\u003eUnspecified\u003c/code\u003e, which indicates an undefined KmsKey behavior.\u003c/p\u003e\n"]]],[],null,[]]