public static class Storage.BlobWriteOption extends Option<com.google.cloud.storage.UnifiedOpts.ObjectTargetOpt> implements Serializable
Modifier and Type | Method and Description |
---|---|
static Storage.BlobWriteOption |
crc32cMatch()
Returns an option for blob's data CRC32C checksum match.
|
static Storage.BlobWriteOption[] |
dedupe(Collection<Storage.BlobWriteOption> collection,
Storage.BlobWriteOption... os)
Deduplicate any options which are the same parameter.
|
static Storage.BlobWriteOption[] |
dedupe(Storage.BlobWriteOption... os)
Deduplicate any options which are the same parameter.
|
static Storage.BlobWriteOption[] |
dedupe(Storage.BlobWriteOption[] array,
Storage.BlobWriteOption... os)
Deduplicate any options which are the same parameter.
|
static Storage.BlobWriteOption |
detectContentType()
Returns an option for detecting content type.
|
static Storage.BlobWriteOption |
disableGzipContent()
Returns an option that signals automatic gzip compression should not be performed en route to
the bucket.
|
static Storage.BlobWriteOption |
doesNotExist()
Returns an option that causes an operation to succeed only if the target blob does not exist.
|
static 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 |
encryptionKey(@NonNull String key)
Returns an option to set a customer-supplied AES256 key for server-side encryption of the
blob.
|
boolean |
equals(Object o)
Deprecated.
|
static Storage.BlobWriteOption |
generationMatch()
Returns an option for blob's data generation match.
|
static Storage.BlobWriteOption |
generationMatch(long generation)
Returns an option for blob's data generation match.
|
static Storage.BlobWriteOption |
generationNotMatch()
Returns an option for blob's data generation mismatch.
|
static Storage.BlobWriteOption |
generationNotMatch(long generation)
Returns an option for blob's data generation mismatch.
|
int |
hashCode()
Deprecated.
|
static 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 |
md5Match()
Deprecated.
Please compute and use a crc32c checksum instead.
crc32cMatch() |
static Storage.BlobWriteOption |
metagenerationMatch()
Returns an option for blob's metageneration match.
|
static Storage.BlobWriteOption |
metagenerationMatch(long metageneration)
Returns an option for blob's metageneration match.
|
static Storage.BlobWriteOption |
metagenerationNotMatch()
Returns an option for blob's metageneration mismatch.
|
static Storage.BlobWriteOption |
metagenerationNotMatch(long metageneration)
Returns an option for blob's metageneration mismatch.
|
static Storage.BlobWriteOption |
predefinedAcl(@NonNull Storage.PredefinedAcl acl)
Returns an option for specifying blob's predefined ACL configuration.
|
String |
toString()
Deprecated.
|
static Storage.BlobWriteOption |
userProject(@NonNull String userProject)
Returns an option for blob's billing user project.
|
@TransportCompatibility(value={HTTP,GRPC}) public static Storage.BlobWriteOption predefinedAcl(@NonNull Storage.PredefinedAcl acl)
@TransportCompatibility(value={HTTP,GRPC}) public static Storage.BlobWriteOption doesNotExist()
@TransportCompatibility(value={HTTP,GRPC}) public static Storage.BlobWriteOption generationMatch()
@TransportCompatibility(value={HTTP,GRPC}) public static Storage.BlobWriteOption generationMatch(long generation)
@TransportCompatibility(value={HTTP,GRPC}) public static Storage.BlobWriteOption generationNotMatch()
@TransportCompatibility(value={HTTP,GRPC}) public static Storage.BlobWriteOption generationNotMatch(long generation)
@TransportCompatibility(value={HTTP,GRPC}) public static Storage.BlobWriteOption metagenerationMatch()
@TransportCompatibility(value={HTTP,GRPC}) public static Storage.BlobWriteOption metagenerationMatch(long metageneration)
@TransportCompatibility(value={HTTP,GRPC}) public static Storage.BlobWriteOption metagenerationNotMatch()
@TransportCompatibility(value={HTTP,GRPC}) public static Storage.BlobWriteOption metagenerationNotMatch(long metageneration)
@Deprecated @TransportCompatibility(value={HTTP,GRPC}) public static Storage.BlobWriteOption md5Match()
crc32cMatch()
@TransportCompatibility(value={HTTP,GRPC}) public static Storage.BlobWriteOption crc32cMatch()
@TransportCompatibility(value={HTTP,GRPC}) public static Storage.BlobWriteOption encryptionKey(@NonNull Key key)
@TransportCompatibility(value={HTTP,GRPC}) public static Storage.BlobWriteOption encryptionKey(@NonNull String key)
key
- the AES256 encoded in base64@TransportCompatibility(value={HTTP,GRPC}) public static Storage.BlobWriteOption kmsKeyName(@NonNull String kmsKeyName)
kmsKeyName
- the KMS key resource id@TransportCompatibility(value={HTTP,GRPC}) public static Storage.BlobWriteOption userProject(@NonNull String userProject)
@TransportCompatibility(value={HTTP,GRPC}) public static Storage.BlobWriteOption disableGzipContent()
@TransportCompatibility(value={HTTP,GRPC}) public static Storage.BlobWriteOption detectContentType()
Content type detection is based on the database presented by URLConnection.getFileNameMap()
@BetaApi public static Storage.BlobWriteOption[] dedupe(Storage.BlobWriteOption... os)
os
will be the value included in the return.@BetaApi public static Storage.BlobWriteOption[] dedupe(Collection<Storage.BlobWriteOption> collection, Storage.BlobWriteOption... os)
The value which comes last in collection
and os
will be the value included
in the return. All options from os
will override their counterparts in collection
.
@BetaApi public static Storage.BlobWriteOption[] dedupe(Storage.BlobWriteOption[] array, Storage.BlobWriteOption... os)
The value which comes last in collection
and os
will be the value included
in the return. All options from os
will override their counterparts in collection
.
Copyright © 2023 Google LLC. All rights reserved.