@BetaApi public static final class UploadResult.Builder extends Object
UploadResult
Modifier and Type | Method and Description |
---|---|
UploadResult |
build()
Creates an UploadResult object.
|
UploadResult.Builder |
setException(@NonNull Exception exception)
Sets the exception produced by a failed upload operation.
|
UploadResult.Builder |
setInput(@NonNull BlobInfo input)
Sets the
BlobInfo for the object request for upload. |
UploadResult.Builder |
setStatus(@NonNull TransferStatus status)
Sets the Status of the Upload request.
|
UploadResult.Builder |
setUploadedBlob(@NonNull BlobInfo uploadedBlob)
Sets the
BlobInfo for the uploaded object. |
@BetaApi public UploadResult.Builder setInput(@NonNull BlobInfo input)
BlobInfo
for the object request for upload. This field is required.UploadResult.getInput()
@BetaApi public UploadResult.Builder setStatus(@NonNull TransferStatus status)
TransferStatus
,
UploadResult.getStatus()
@BetaApi public UploadResult.Builder setUploadedBlob(@NonNull BlobInfo uploadedBlob)
BlobInfo
for the uploaded object. This field will only be populated if the
Transfer was a SUCCESS
.@BetaApi public UploadResult.Builder setException(@NonNull Exception exception)
success
ful or skipped
UploadResult.getException()
@BetaApi public UploadResult build()
UploadResult
Copyright © 2023 Google LLC. All rights reserved.