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.
|
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)
Copyright © 2023 Google LLC. All rights reserved.