@java.lang.Override
    public com.google.storagetransfer.v1.proto.TransferTypes.TransferOptions.OverwriteWhen
        getOverwriteWhen() {
      com.google.storagetransfer.v1.proto.TransferTypes.TransferOptions.OverwriteWhen result =
          com.google.storagetransfer.v1.proto.TransferTypes.TransferOptions.OverwriteWhen.forNumber(
              overwriteWhen_);
      return result == null
          ? com.google.storagetransfer.v1.proto.TransferTypes.TransferOptions.OverwriteWhen
              .UNRECOGNIZED
          : result;
    }
<pre>
When to overwrite objects that already exist in the sink. If not set,
overwrite behavior is determined by
[overwrite_objects_already_existing_in_sink][google.storagetransfer.v1.TransferOptions.overwrite_objects_already_existing_in_sink].
</pre>

<code>.google.storagetransfer.v1.TransferOptions.OverwriteWhen overwrite_when = 4;</code>

@return The overwriteWhen.
java-storage-transfer/proto-google-cloud-storage-transfer-v1/src/main/java/com/google/storagetransfer/v1/proto/TransferTypes.java