Class DownloadJob.Builder (2.40.0)

public static final class DownloadJob.Builder

Builds an instance of DownloadJob See Also: DownloadJob

Inheritance

java.lang.Object > DownloadJob.Builder

Methods

build()

public DownloadJob build()

Creates a DownloadJob object.

Returns
Type Description
DownloadJob DownloadJob

setDownloadResults(@NonNull List<ApiFuture<DownloadResult>> downloadResults)

public DownloadJob.Builder setDownloadResults(@NonNull List<ApiFuture<DownloadResult>> downloadResults)

Sets the results for a DownloadJob being performed by Transfer Manager. See Also: DownloadJob#getDownloadResults()

Parameter
Name Description
downloadResults @org.checkerframework.checker.nullness.qual.NonNull java.util.List<ApiFuture<DownloadResult>>
Returns
Type Description
DownloadJob.Builder

the instance of the Builder with DownloadResults modified.

setParallelDownloadConfig(@NonNull ParallelDownloadConfig parallelDownloadConfig)

public DownloadJob.Builder setParallelDownloadConfig(@NonNull ParallelDownloadConfig parallelDownloadConfig)

Sets the ParallelDownloadConfig used for this DownloadJob. See Also: DownloadJob#getParallelDownloadConfig()

Parameter
Name Description
parallelDownloadConfig @org.checkerframework.checker.nullness.qual.NonNull com.google.cloud.storage.transfermanager.ParallelDownloadConfig
Returns
Type Description
DownloadJob.Builder

the instance of the Builder with ParallelDownloadConfig modified.