Package com.google.cloud.storage
Class Bucket.BucketSourceOption
java.lang.Object
com.google.cloud.storage.Option<com.google.cloud.storage.UnifiedOpts.BucketSourceOpt>
com.google.cloud.storage.Bucket.BucketSourceOption
- All Implemented Interfaces:
Serializable
- Enclosing class:
- Bucket
@TransportCompatibility({HTTP,GRPC})
public static class Bucket.BucketSourceOption
extends Option<com.google.cloud.storage.UnifiedOpts.BucketSourceOpt>
Class for specifying bucket source options when
Bucket
methods are used.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic Bucket.BucketSourceOption[]
dedupe
(Bucket.BucketSourceOption... os) Deduplicate any options which are the same parameter.static Bucket.BucketSourceOption[]
dedupe
(Bucket.BucketSourceOption[] array, Bucket.BucketSourceOption... os) Deduplicate any options which are the same parameter.static Bucket.BucketSourceOption[]
dedupe
(Collection<Bucket.BucketSourceOption> collection, Bucket.BucketSourceOption... os) Deduplicate any options which are the same parameter.boolean
Deprecated.int
hashCode()
Deprecated.static Bucket.BucketSourceOption
Returns an option for bucket's metageneration match.static Bucket.BucketSourceOption
Returns an option for bucket's metageneration mismatch.toString()
Deprecated.static Bucket.BucketSourceOption
userProject
(@NonNull String userProject) Returns an option for blob's billing user project.
-
Method Details
-
metagenerationMatch
Returns an option for bucket's metageneration match. If this option is used the request will fail if metageneration does not match. -
metagenerationNotMatch
@TransportCompatibility({HTTP,GRPC}) public static Bucket.BucketSourceOption metagenerationNotMatch()Returns an option for bucket's metageneration mismatch. If this option is used the request will fail if metageneration matches. -
userProject
@TransportCompatibility({HTTP,GRPC}) public static Bucket.BucketSourceOption userProject(@NonNull String userProject) Returns an option for blob's billing user project. This option is only used by the buckets with 'requester_pays' flag. -
dedupe
Deduplicate any options which are the same parameter. The value which comes last inos
will be the value included in the return. -
dedupe
@BetaApi public static Bucket.BucketSourceOption[] dedupe(Collection<Bucket.BucketSourceOption> collection, Bucket.BucketSourceOption... os) Deduplicate any options which are the same parameter.The value which comes last in
collection
andos
will be the value included in the return. All options fromos
will override their counterparts incollection
. -
dedupe
@BetaApi public static Bucket.BucketSourceOption[] dedupe(Bucket.BucketSourceOption[] array, Bucket.BucketSourceOption... os) Deduplicate any options which are the same parameter.The value which comes last in
collection
andos
will be the value included in the return. All options fromos
will override their counterparts incollection
. -
equals
Deprecated. -
hashCode
public int hashCode()Deprecated. -
toString
Deprecated.
-