@BetaApi public static final class DownloadResult.Builder extends Object
DownloadResult
Modifier and Type | Method and Description |
---|---|
DownloadResult |
build()
Creates a DownloadResult object.
|
DownloadResult.Builder |
setException(@NonNull Exception exception)
Sets the Exception produced by a failed download operation.
|
DownloadResult.Builder |
setInput(@NonNull BlobInfo input)
Sets the
BlobInfo for the object request for download. |
DownloadResult.Builder |
setOutputDestination(@NonNull Path outputDestination)
Sets the location on the Filesystem the object has been written to.
|
DownloadResult.Builder |
setStatus(@NonNull TransferStatus status)
Sets the status of the download.This field is required.
|
@BetaApi public DownloadResult.Builder setInput(@NonNull BlobInfo input)
BlobInfo
for the object request for download. This field is required.DownloadResult.getInput()
@BetaApi public DownloadResult.Builder setOutputDestination(@NonNull Path outputDestination)
success
ful.DownloadResult.getOutputDestination()
@BetaApi public DownloadResult.Builder setStatus(@NonNull TransferStatus status)
TransferStatus
@BetaApi public DownloadResult.Builder setException(@NonNull Exception exception)
success
ful or skipped
DownloadResult.getException()
@BetaApi public DownloadResult build()
DownloadResult
Copyright © 2023 Google LLC. All rights reserved.