Package | Description |
---|---|
com.google.cloud.storage |
A client for Cloud Storage - Unified object storage.
|
Modifier and Type | Method and Description |
---|---|
static Storage.BlobWriteOption |
Storage.BlobWriteOption.crc32cMatch()
Returns an option for blob's data CRC32C checksum match.
|
static Storage.BlobWriteOption[] |
Storage.BlobWriteOption.dedupe(Collection<Storage.BlobWriteOption> collection,
Storage.BlobWriteOption... os)
Deduplicate any options which are the same parameter.
|
static Storage.BlobWriteOption[] |
Storage.BlobWriteOption.dedupe(Storage.BlobWriteOption... os)
Deduplicate any options which are the same parameter.
|
static Storage.BlobWriteOption[] |
Storage.BlobWriteOption.dedupe(Storage.BlobWriteOption[] array,
Storage.BlobWriteOption... os)
Deduplicate any options which are the same parameter.
|
static Storage.BlobWriteOption |
Storage.BlobWriteOption.detectContentType()
Returns an option for detecting content type.
|
static Storage.BlobWriteOption |
Storage.BlobWriteOption.disableGzipContent()
Returns an option that signals automatic gzip compression should not be performed en route to
the bucket.
|
static Storage.BlobWriteOption |
Storage.BlobWriteOption.doesNotExist()
Returns an option that causes an operation to succeed only if the target blob does not exist.
|
static Storage.BlobWriteOption |
Storage.BlobWriteOption.encryptionKey(@NonNull Key key)
Returns an option to set a customer-supplied AES256 key for server-side encryption of the
blob.
|
static Storage.BlobWriteOption |
Storage.BlobWriteOption.encryptionKey(@NonNull String key)
Returns an option to set a customer-supplied AES256 key for server-side encryption of the
blob.
|
static Storage.BlobWriteOption |
Storage.BlobWriteOption.generationMatch()
Returns an option for blob's data generation match.
|
static Storage.BlobWriteOption |
Storage.BlobWriteOption.generationMatch(long generation)
Returns an option for blob's data generation match.
|
static Storage.BlobWriteOption |
Storage.BlobWriteOption.generationNotMatch()
Returns an option for blob's data generation mismatch.
|
static Storage.BlobWriteOption |
Storage.BlobWriteOption.generationNotMatch(long generation)
Returns an option for blob's data generation mismatch.
|
static Storage.BlobWriteOption |
Storage.BlobWriteOption.kmsKeyName(@NonNull String kmsKeyName)
Returns an option to set a customer-managed KMS key for server-side encryption of the blob.
|
static Storage.BlobWriteOption |
Storage.BlobWriteOption.md5Match()
Deprecated.
Please compute and use a crc32c checksum instead.
crc32cMatch() |
static Storage.BlobWriteOption |
Storage.BlobWriteOption.metagenerationMatch()
Returns an option for blob's metageneration match.
|
static Storage.BlobWriteOption |
Storage.BlobWriteOption.metagenerationMatch(long metageneration)
Returns an option for blob's metageneration match.
|
static Storage.BlobWriteOption |
Storage.BlobWriteOption.metagenerationNotMatch()
Returns an option for blob's metageneration mismatch.
|
static Storage.BlobWriteOption |
Storage.BlobWriteOption.metagenerationNotMatch(long metageneration)
Returns an option for blob's metageneration mismatch.
|
static Storage.BlobWriteOption |
Storage.BlobWriteOption.predefinedAcl(@NonNull Storage.PredefinedAcl acl)
Returns an option for specifying blob's predefined ACL configuration.
|
static Storage.BlobWriteOption |
Storage.BlobWriteOption.userProject(@NonNull String userProject)
Returns an option for blob's billing user project.
|
Modifier and Type | Method and Description |
---|---|
Blob |
Storage.create(BlobInfo blobInfo,
InputStream content,
Storage.BlobWriteOption... options)
Deprecated.
|
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...) . |
static Storage.BlobWriteOption[] |
Storage.BlobWriteOption.dedupe(Collection<Storage.BlobWriteOption> collection,
Storage.BlobWriteOption... os)
Deduplicate any options which are the same parameter.
|
static Storage.BlobWriteOption[] |
Storage.BlobWriteOption.dedupe(Storage.BlobWriteOption... os)
Deduplicate any options which are the same parameter.
|
static Storage.BlobWriteOption[] |
Storage.BlobWriteOption.dedupe(Storage.BlobWriteOption[] array,
Storage.BlobWriteOption... os)
Deduplicate any options which are the same parameter.
|
static Storage.BlobWriteOption[] |
Storage.BlobWriteOption.dedupe(Storage.BlobWriteOption[] array,
Storage.BlobWriteOption... os)
Deduplicate any options which are the same parameter.
|
com.google.cloud.WriteChannel |
Storage.writer(BlobInfo blobInfo,
Storage.BlobWriteOption... options)
Creates a blob and returns a channel for writing its content.
|
com.google.cloud.WriteChannel |
Blob.writer(Storage.BlobWriteOption... options)
Returns a
WriteChannel object for writing to this blob. |
Modifier and Type | Method and Description |
---|---|
static Storage.BlobWriteOption[] |
Storage.BlobWriteOption.dedupe(Collection<Storage.BlobWriteOption> collection,
Storage.BlobWriteOption... os)
Deduplicate any options which are the same parameter.
|
Copyright © 2023 Google LLC. All rights reserved.