public static class Storage.BlobGetOption extends Option<com.google.cloud.storage.UnifiedOpts.ObjectSourceOpt>
Modifier and Type | Method and Description |
---|---|
static Storage.BlobGetOption |
decryptionKey(@NonNull Key key)
Returns an option to set a customer-supplied AES256 key for server-side decryption of the
blob.
|
static Storage.BlobGetOption |
decryptionKey(@NonNull String key)
Returns an option to set a customer-supplied AES256 key for server-side decryption of the
blob.
|
static Storage.BlobGetOption[] |
dedupe(Collection<Storage.BlobGetOption> collection,
Storage.BlobGetOption... os)
Deduplicate any options which are the same parameter.
|
static Storage.BlobGetOption[] |
dedupe(Storage.BlobGetOption... os)
Deduplicate any options which are the same parameter.
|
static Storage.BlobGetOption[] |
dedupe(Storage.BlobGetOption[] array,
Storage.BlobGetOption... os)
Deduplicate any options which are the same parameter.
|
boolean |
equals(Object o)
Deprecated.
|
static Storage.BlobGetOption |
fields(Storage.BlobField... fields)
Returns an option to specify the blob's fields to be returned by the RPC call.
|
static Storage.BlobGetOption |
generationMatch()
Returns an option for blob's data generation match.
|
static Storage.BlobGetOption |
generationMatch(long generation)
Returns an option for blob's data generation match.
|
static Storage.BlobGetOption |
generationNotMatch()
Deprecated.
This option is invalid, and can never result in a valid response from the server.
use
generationNotMatch(long) instead. |
static Storage.BlobGetOption |
generationNotMatch(long generation)
Returns an option for blob's data generation mismatch.
|
int |
hashCode()
Deprecated.
|
static Storage.BlobGetOption |
metagenerationMatch(long metageneration)
Returns an option for blob's metageneration match.
|
static Storage.BlobGetOption |
metagenerationNotMatch(long metageneration)
Returns an option for blob's metageneration mismatch.
|
static Storage.BlobGetOption |
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.BlobGetOption |
userProject(@NonNull String userProject)
Returns an option for blob's billing user project.
|
@TransportCompatibility(value={HTTP,GRPC}) public static Storage.BlobGetOption 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.BlobGetOption generationMatch(long generation)
@Deprecated @TransportCompatibility(value={HTTP,GRPC}) public static Storage.BlobGetOption 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.BlobGetOption generationNotMatch(long generation)
@TransportCompatibility(value={HTTP,GRPC}) public static Storage.BlobGetOption metagenerationMatch(long metageneration)
@TransportCompatibility(value={HTTP,GRPC}) public static Storage.BlobGetOption metagenerationNotMatch(long metageneration)
@TransportCompatibility(value={HTTP,GRPC}) public static Storage.BlobGetOption fields(Storage.BlobField... fields)
BlobGetOption.fields
) can be used to
specify only the fields of interest. Blob name and bucket are always returned, even if not
specified.@TransportCompatibility(value={HTTP,GRPC}) public static Storage.BlobGetOption userProject(@NonNull String userProject)
@TransportCompatibility(value={HTTP,GRPC}) public static Storage.BlobGetOption decryptionKey(@NonNull Key key)
@TransportCompatibility(value={HTTP,GRPC}) public static Storage.BlobGetOption decryptionKey(@NonNull String key)
key
- the AES256 encoded in base64@TransportCompatibility(value={HTTP,GRPC}) public static Storage.BlobGetOption shouldReturnRawInputStream(boolean shouldReturnRawInputStream)
@BetaApi public static Storage.BlobGetOption[] dedupe(Storage.BlobGetOption... os)
os
will be the value included in the return.@BetaApi public static Storage.BlobGetOption[] dedupe(Collection<Storage.BlobGetOption> collection, Storage.BlobGetOption... 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.BlobGetOption[] dedupe(Storage.BlobGetOption[] array, Storage.BlobGetOption... 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.