Package | Description |
---|---|
com.google.cloud.storage |
A client for Cloud Storage - Unified object storage.
|
com.google.cloud.storage.transfermanager |
Modifier and Type | Class and Description |
---|---|
class |
Blob
An object in Google Cloud Storage.
|
Modifier and Type | Method and Description |
---|---|
BlobInfo |
Blob.asBlobInfo()
Drop the held
Storage instance. |
abstract BlobInfo |
BlobInfo.Builder.build()
Creates a
BlobInfo object. |
BlobInfo |
Storage.ComposeRequest.getTarget()
Returns compose operation's target blob.
|
BlobInfo |
Storage.CopyRequest.getTarget()
Returns the
BlobInfo for the target blob. |
Modifier and Type | Method and Description |
---|---|
Blob |
Storage.create(BlobInfo blobInfo,
byte[] content,
int offset,
int length,
Storage.BlobTargetOption... options)
Creates a new blob with the sub array of the given byte array.
|
Blob |
Storage.create(BlobInfo blobInfo,
byte[] content,
Storage.BlobTargetOption... options)
Creates a new blob.
|
Blob |
Storage.create(BlobInfo blobInfo,
InputStream content,
Storage.BlobWriteOption... options)
Deprecated.
|
Blob |
Storage.create(BlobInfo blobInfo,
Storage.BlobTargetOption... options)
Creates a new blob with no content.
|
Blob |
Storage.createFrom(BlobInfo blobInfo,
InputStream content,
int bufferSize,
Storage.BlobWriteOption... options)
Reads bytes from an input stream and uploads those bytes to the blob using
Storage.writer(com.google.cloud.storage.BlobInfo, com.google.cloud.storage.Storage.BlobWriteOption...) and
bufferSize . |
Blob |
Storage.createFrom(BlobInfo blobInfo,
InputStream content,
Storage.BlobWriteOption... options)
Reads bytes from an input stream and uploads those bytes to the blob using
Storage.writer(com.google.cloud.storage.BlobInfo, com.google.cloud.storage.Storage.BlobWriteOption...) . |
Blob |
Storage.createFrom(BlobInfo blobInfo,
Path path,
int bufferSize,
Storage.BlobWriteOption... options)
Uploads
path to the blob using Storage.writer(com.google.cloud.storage.BlobInfo, com.google.cloud.storage.Storage.BlobWriteOption...) and bufferSize . |
Blob |
Storage.createFrom(BlobInfo blobInfo,
Path path,
Storage.BlobWriteOption... options)
Uploads
path to the blob using Storage.writer(com.google.cloud.storage.BlobInfo, com.google.cloud.storage.Storage.BlobWriteOption...) . |
PostPolicyV4 |
Storage.generateSignedPostPolicyV4(BlobInfo blobInfo,
long duration,
TimeUnit unit,
PostPolicyV4.PostConditionsV4 conditions,
Storage.PostPolicyV4Option... options)
Generates a presigned post policy without any fields.
|
PostPolicyV4 |
Storage.generateSignedPostPolicyV4(BlobInfo blobInfo,
long duration,
TimeUnit unit,
PostPolicyV4.PostFieldsV4 fields,
PostPolicyV4.PostConditionsV4 conditions,
Storage.PostPolicyV4Option... options)
Generates a URL and a map of fields that can be specified in an HTML form to submit a POST
request.
|
PostPolicyV4 |
Storage.generateSignedPostPolicyV4(BlobInfo blobInfo,
long duration,
TimeUnit unit,
PostPolicyV4.PostFieldsV4 fields,
Storage.PostPolicyV4Option... options)
Generates a presigned post policy without any conditions.
|
PostPolicyV4 |
Storage.generateSignedPostPolicyV4(BlobInfo blobInfo,
long duration,
TimeUnit unit,
Storage.PostPolicyV4Option... options)
Generates a presigned post policy without any fields or conditions.
|
static Storage.CopyRequest |
Storage.CopyRequest.of(BlobId sourceBlobId,
BlobInfo target)
Creates a copy request.
|
static Storage.ComposeRequest |
Storage.ComposeRequest.of(Iterable<String> sources,
BlobInfo target)
Creates a
ComposeRequest object. |
static Storage.CopyRequest |
Storage.CopyRequest.of(String sourceBucket,
String sourceBlob,
BlobInfo target)
Creates a copy request.
|
Storage.ComposeRequest.Builder |
Storage.ComposeRequest.Builder.setTarget(BlobInfo target)
Sets compose operation's target blob.
|
Storage.CopyRequest.Builder |
Storage.CopyRequest.Builder.setTarget(BlobInfo target,
Iterable<Storage.BlobTargetOption> options)
Sets the copy target and target options.
|
Storage.CopyRequest.Builder |
Storage.CopyRequest.Builder.setTarget(BlobInfo target,
Storage.BlobTargetOption... options)
Sets the copy target and target options.
|
URL |
Storage.signUrl(BlobInfo blobInfo,
long duration,
TimeUnit unit,
Storage.SignUrlOption... options)
Generates a signed URL for a blob.
|
List<Blob> |
Storage.update(BlobInfo... blobInfos)
Updates the requested blobs.
|
Blob |
Storage.update(BlobInfo blobInfo)
Updates the properties of the blob.
|
Blob |
Storage.update(BlobInfo blobInfo,
Storage.BlobTargetOption... options)
Updates the blob properties if the preconditions specified by
options are met. |
StorageBatchResult<Blob> |
StorageBatch.update(BlobInfo blobInfo,
Storage.BlobTargetOption... options)
Adds a request representing the "update blob" operation to this batch.
|
com.google.cloud.WriteChannel |
Storage.writer(BlobInfo blobInfo,
Storage.BlobWriteOption... options)
Creates a blob and returns a channel for writing its content.
|
Modifier and Type | Method and Description |
---|---|
List<Blob> |
Storage.update(Iterable<BlobInfo> blobInfos)
Updates the requested blobs.
|
Modifier and Type | Method and Description |
---|---|
@NonNull BlobInfo |
UploadResult.getInput()
The
BlobInfo for the object requested for upload. |
@NonNull BlobInfo |
DownloadResult.getInput()
The
BlobInfo for the object requested for download. |
@NonNull BlobInfo |
UploadResult.getUploadedBlob()
The
BlobInfo for the Uploaded object. |
Modifier and Type | Method and Description |
---|---|
static UploadResult.Builder |
UploadResult.newBuilder(@NonNull BlobInfo input,
@NonNull TransferStatus status) |
static DownloadResult.Builder |
DownloadResult.newBuilder(@NonNull BlobInfo blobInfo,
@NonNull TransferStatus status) |
UploadResult.Builder |
UploadResult.Builder.setInput(@NonNull BlobInfo input)
Sets the
BlobInfo for the object request for upload. |
DownloadResult.Builder |
DownloadResult.Builder.setInput(@NonNull BlobInfo input)
Sets the
BlobInfo for the object request for download. |
UploadResult.Builder |
UploadResult.Builder.setUploadedBlob(@NonNull BlobInfo uploadedBlob)
Sets the
BlobInfo for the uploaded object. |
Modifier and Type | Method and Description |
---|---|
@NonNull DownloadJob |
TransferManager.downloadBlobs(List<BlobInfo> blobs,
ParallelDownloadConfig config)
Downloads a list of blobs in parallel.
|
Copyright © 2023 Google LLC. All rights reserved.