private void buildPartialOneofs(
          com.google.storagetransfer.v1.proto.TransferTypes.TransferSpec result) {
        result.dataSinkCase_ = dataSinkCase_;
        result.dataSink_ = this.dataSink_;
        if (dataSinkCase_ == 4 && gcsDataSinkBuilder_ != null) {
          result.dataSink_ = gcsDataSinkBuilder_.build();
        }
        if (dataSinkCase_ == 13 && posixDataSinkBuilder_ != null) {
          result.dataSink_ = posixDataSinkBuilder_.build();
        }
        result.dataSourceCase_ = dataSourceCase_;
        result.dataSource_ = this.dataSource_;
        if (dataSourceCase_ == 1 && gcsDataSourceBuilder_ != null) {
          result.dataSource_ = gcsDataSourceBuilder_.build();
        }
        if (dataSourceCase_ == 2 && awsS3DataSourceBuilder_ != null) {
          result.dataSource_ = awsS3DataSourceBuilder_.build();
        }
        if (dataSourceCase_ == 3 && httpDataSourceBuilder_ != null) {
          result.dataSource_ = httpDataSourceBuilder_.build();
        }
        if (dataSourceCase_ == 14 && posixDataSourceBuilder_ != null) {
          result.dataSource_ = posixDataSourceBuilder_.build();
        }
        if (dataSourceCase_ == 8 && azureBlobStorageDataSourceBuilder_ != null) {
          result.dataSource_ = azureBlobStorageDataSourceBuilder_.build();
        }
        if (dataSourceCase_ == 19 && awsS3CompatibleDataSourceBuilder_ != null) {
          result.dataSource_ = awsS3CompatibleDataSourceBuilder_.build();
        }
        if (dataSourceCase_ == 20 && hdfsDataSourceBuilder_ != null) {
          result.dataSource_ = hdfsDataSourceBuilder_.build();
        }
        result.intermediateDataLocationCase_ = intermediateDataLocationCase_;
        result.intermediateDataLocation_ = this.intermediateDataLocation_;
        if (intermediateDataLocationCase_ == 16 && gcsIntermediateDataLocationBuilder_ != null) {
          result.intermediateDataLocation_ = gcsIntermediateDataLocationBuilder_.build();
        }
      }
<pre>
Configuration for running a transfer.
</pre>

Protobuf type {@code google.storagetransfer.v1.TransferSpec}
java-storage-transfer/proto-google-cloud-storage-transfer-v1/src/main/java/com/google/storagetransfer/v1/proto/TransferTypes.java