Class DownloadJob.Builder
java.lang.Object
com.google.cloud.storage.transfermanager.DownloadJob.Builder
- Enclosing class:
- DownloadJob
Builds an instance of DownloadJob
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Creates a DownloadJob object.setDownloadResults
(@NonNull List<com.google.api.core.ApiFuture<DownloadResult>> downloadResults) Sets the results for a DownloadJob being performed by Transfer Manager.setParallelDownloadConfig
(@NonNull ParallelDownloadConfig parallelDownloadConfig) Sets theParallelDownloadConfig
used for this DownloadJob.
-
Method Details
-
setDownloadResults
@BetaApi public DownloadJob.Builder setDownloadResults(@NonNull List<com.google.api.core.ApiFuture<DownloadResult>> downloadResults) Sets the results for a DownloadJob being performed by Transfer Manager.- Returns:
- the instance of the Builder with DownloadResults modified.
- See Also:
-
setParallelDownloadConfig
@BetaApi public DownloadJob.Builder setParallelDownloadConfig(@NonNull ParallelDownloadConfig parallelDownloadConfig) Sets theParallelDownloadConfig
used for this DownloadJob.- Returns:
- the instance of the Builder with ParallelDownloadConfig modified.
- See Also:
-
build
Creates a DownloadJob object.- Returns:
DownloadJob
-