public sealed class TransferOptions : IMessage<TransferOptions>, IEquatable<TransferOptions>, IDeepCloneable<TransferOptions>, IBufferMessage, IMessage
TransferOptions define the actions to be performed on objects in a transfer.
public bool DeleteObjectsFromSourceAfterTransfer { get; set; }
Whether objects should be deleted from the source after they are
transferred to the sink.
Note: This option and [delete_objects_unique_in_sink]
[google.storagetransfer.v1.TransferOptions.delete_objects_unique_in_sink]
are mutually exclusive.
public bool DeleteObjectsUniqueInSink { get; set; }
Whether objects that exist only in the sink should be deleted.
Note: This option and [delete_objects_from_source_after_transfer]
[google.storagetransfer.v1.TransferOptions.delete_objects_from_source_after_transfer]
are mutually exclusive.
public bool OverwriteObjectsAlreadyExistingInSink { get; set; }
When to overwrite objects that already exist in the sink. The default is
that only objects that are different from the source are ovewritten. If
true, all objects in the sink whose name matches an object in the source
will be overwritten with the source object.
[[["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\u003eThis webpage details the \u003ccode\u003eTransferOptions\u003c/code\u003e class, which defines actions to be performed on objects during a storage transfer operation.\u003c/p\u003e\n"],["\u003cp\u003eVersion 2.8.0 is the latest available version of the \u003ccode\u003eTransferOptions\u003c/code\u003e class, with several older versions also documented.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eTransferOptions\u003c/code\u003e has three key properties: \u003ccode\u003eDeleteObjectsFromSourceAfterTransfer\u003c/code\u003e, \u003ccode\u003eDeleteObjectsUniqueInSink\u003c/code\u003e, and \u003ccode\u003eOverwriteObjectsAlreadyExistingInSink\u003c/code\u003e, which define deletion and overwrite behavior during transfers.\u003c/p\u003e\n"],["\u003cp\u003eThe properties \u003ccode\u003eDeleteObjectsFromSourceAfterTransfer\u003c/code\u003e and \u003ccode\u003eDeleteObjectsUniqueInSink\u003c/code\u003e are mutually exclusive, meaning only one can be enabled during a transfer.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eTransferOptions\u003c/code\u003e implements multiple interfaces including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, and also inherits members from the base \u003ccode\u003eObject\u003c/code\u003e class.\u003c/p\u003e\n"]]],[],null,[]]