public Builder setMode(
          com.google.storagetransfer.v1.proto.TransferTypes.MetadataOptions.Mode value) {
        if (value == null) {
          throw new NullPointerException();
        }
        bitField0_ |= 0x00000002;
        mode_ = value.getNumber();
        onChanged();
        return this;
      }
<pre>
Specifies how each file's mode attribute should be handled by the transfer.
By default, mode is not preserved. Only applicable to transfers involving
POSIX file systems, and ignored for other transfers.
</pre>

<code>.google.storagetransfer.v1.MetadataOptions.Mode mode = 2;</code>

@param value The mode to set.
@return This builder for chaining.
java-storage-transfer/proto-google-cloud-storage-transfer-v1/src/main/java/com/google/storagetransfer/v1/proto/TransferTypes.java