public static class Storage.BlobSourceOption extends Option<com.google.cloud.storage.UnifiedOpts.ObjectSourceOpt>
Modifier and Type | Method and Description |
---|---|
static Storage.BlobSourceOption |
decryptionKey(@NonNull Key key)
Returns an option to set a customer-supplied AES256 key for server-side encryption of the
blob.
|
static Storage.BlobSourceOption |
decryptionKey(@NonNull String key)
Returns an option to set a customer-supplied AES256 key for server-side encryption of the
blob.
|
static Storage.BlobSourceOption[] |
dedupe(Collection<Storage.BlobSourceOption> collection,
Storage.BlobSourceOption... os)
Deduplicate any options which are the same parameter.
|
static Storage.BlobSourceOption[] |
dedupe(Storage.BlobSourceOption... os)
Deduplicate any options which are the same parameter.
|
static Storage.BlobSourceOption[] |
dedupe(Storage.BlobSourceOption[] array,
Storage.BlobSourceOption... os)
Deduplicate any options which are the same parameter.
|
boolean |
equals(Object o)
Deprecated.
|
static Storage.BlobSourceOption |
generationMatch()
Returns an option for blob's data generation match.
|
static Storage.BlobSourceOption |
generationMatch(long generation)
Returns an option for blob's data generation match.
|
static Storage.BlobSourceOption |
generationNotMatch()
Deprecated.
This option is invalid, and can never result in a valid response from the server.
use
generationNotMatch(long) instead. |
static Storage.BlobSourceOption |
generationNotMatch(long generation)
Returns an option for blob's data generation mismatch.
|
int |
hashCode()
Deprecated.
|
static Storage.BlobSourceOption |
metagenerationMatch(long metageneration)
Returns an option for blob's metageneration match.
|
static Storage.BlobSourceOption |
metagenerationNotMatch(long metageneration)
Returns an option for blob's metageneration mismatch.
|
static Storage.BlobSourceOption |
shouldReturnRawInputStream(boolean shouldReturnRawInputStream)
Returns an option for whether the request should return the raw input stream, instead of
automatically decompressing the content.
|
String |
toString()
Deprecated.
|
static Storage.BlobSourceOption |
userProject(@NonNull String userProject)
Returns an option for blob's billing user project.
|
@TransportCompatibility(value={HTTP,GRPC}) public static Storage.BlobSourceOption generationMatch()
BlobId
object. When this option is passed to
a Storage
method and BlobId.getGeneration()
is null
or no BlobId
is provided an exception is thrown.@TransportCompatibility(value={HTTP,GRPC}) public static Storage.BlobSourceOption generationMatch(long generation)
@Deprecated @TransportCompatibility(value={HTTP,GRPC}) public static Storage.BlobSourceOption generationNotMatch()
generationNotMatch(long)
instead.BlobId
object. When this option is passed to
a Storage
method and BlobId.getGeneration()
is null
or no BlobId
is provided an exception is thrown.@TransportCompatibility(value={HTTP,GRPC}) public static Storage.BlobSourceOption generationNotMatch(long generation)
@TransportCompatibility(value={HTTP,GRPC}) public static Storage.BlobSourceOption metagenerationMatch(long metageneration)
@TransportCompatibility(value={HTTP,GRPC}) public static Storage.BlobSourceOption metagenerationNotMatch(long metageneration)
@TransportCompatibility(value={HTTP,GRPC}) public static Storage.BlobSourceOption decryptionKey(@NonNull Key key)
@TransportCompatibility(value={HTTP,GRPC}) public static Storage.BlobSourceOption decryptionKey(@NonNull String key)
key
- the AES256 encoded in base64@TransportCompatibility(value={HTTP,GRPC}) public static Storage.BlobSourceOption userProject(@NonNull String userProject)
@TransportCompatibility(value={HTTP,GRPC}) public static Storage.BlobSourceOption shouldReturnRawInputStream(boolean shouldReturnRawInputStream)
@BetaApi public static Storage.BlobSourceOption[] dedupe(Storage.BlobSourceOption... os)
os
will be the value included in the return.@BetaApi public static Storage.BlobSourceOption[] dedupe(Collection<Storage.BlobSourceOption> collection, Storage.BlobSourceOption... 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.BlobSourceOption[] dedupe(Storage.BlobSourceOption[] array, Storage.BlobSourceOption... 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.