[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-09 UTC."],[],[],null,["# Google Cloud Storage Transfer V1 Client - Class OverwriteWhen (2.2.1)\n\nVersion latestkeyboard_arrow_down\n\n- [2.2.1 (latest)](/php/docs/reference/cloud-storage-transfer/latest/V1.TransferOptions.OverwriteWhen)\n- [2.2.0](/php/docs/reference/cloud-storage-transfer/2.2.0/V1.TransferOptions.OverwriteWhen)\n- [2.1.1](/php/docs/reference/cloud-storage-transfer/2.1.1/V1.TransferOptions.OverwriteWhen)\n- [2.0.2](/php/docs/reference/cloud-storage-transfer/2.0.2/V1.TransferOptions.OverwriteWhen)\n- [1.5.0](/php/docs/reference/cloud-storage-transfer/1.5.0/V1.TransferOptions.OverwriteWhen)\n- [1.4.5](/php/docs/reference/cloud-storage-transfer/1.4.5/V1.TransferOptions.OverwriteWhen)\n- [1.3.1](/php/docs/reference/cloud-storage-transfer/1.3.1/V1.TransferOptions.OverwriteWhen)\n- [1.2.0](/php/docs/reference/cloud-storage-transfer/1.2.0/V1.TransferOptions.OverwriteWhen)\n- [1.1.1](/php/docs/reference/cloud-storage-transfer/1.1.1/V1.TransferOptions.OverwriteWhen)\n- [1.0.6](/php/docs/reference/cloud-storage-transfer/1.0.6/V1.TransferOptions.OverwriteWhen) \nReference documentation and code samples for the Google Cloud Storage Transfer V1 Client class OverwriteWhen.\n\nSpecifies when to overwrite an object in the sink when an object with\nmatching name is found in the source.\n\nProtobuf type `google.storagetransfer.v1.TransferOptions.OverwriteWhen`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ StorageTransfer \\\\ V1 \\\\ TransferOptions\n\nMethods\n-------\n\n### static::name\n\n### static::value\n\nConstants\n---------\n\n### OVERWRITE_WHEN_UNSPECIFIED\n\n Value: 0\n\nOverwrite behavior is unspecified.\n\nGenerated from protobuf enum `OVERWRITE_WHEN_UNSPECIFIED = 0;`\n\n### DIFFERENT\n\n Value: 1\n\nOverwrites destination objects with the source objects, only if the\nobjects have the same name but different HTTP ETags or checksum values.\n\nGenerated from protobuf enum `DIFFERENT = 1;`\n\n### NEVER\n\n Value: 2\n\nNever overwrites a destination object if a source object has the\nsame name. In this case, the source object is not transferred.\n\nGenerated from protobuf enum `NEVER = 2;`\n\n### ALWAYS\n\n Value: 3\n\nAlways overwrite the destination object with the source object, even if\nthe HTTP Etags or checksum values are the same.\n\nGenerated from protobuf enum `ALWAYS = 3;`"]]