Skip to content

Commit acc1908

Browse files
committed
---
yaml --- r: 2451 b: refs/heads/update-datastore c: e2a4500 h: refs/heads/master i: 2449: eca61e2 2447: b46b4a2
1 parent d351e08 commit acc1908

2 files changed

Lines changed: 12 additions & 1 deletion

File tree

  • branches/update-datastore/gcloud-java-storage/src/main/java/com/google/gcloud/storage

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ refs/heads/gh-pages: 4e0561bb4504bf647db669a14417b2b2c87ba45d
55
refs/heads/bigquery: 762fa5830e6c398c0396177e3e7fd243bd62cfc3
66
refs/heads/pubsub-alpha: 1a0e970f265af871e02274085b9662b3fe29058b
77
refs/heads/resource-manager: ebf4adc5ee835cd2086c4ac5b4e78d01a5a005a7
8-
refs/heads/update-datastore: 6de12f20c202386d66588059b6c9ec55ff47a058
8+
refs/heads/update-datastore: e2a4500e57e7dd458223cff5020e990539795828
99
refs/tags/0.0.9: 22f1839238f66c39e67ed4dfdcd273b1ae2e8444
1010
refs/tags/v0.0.10: 207ebd2a3472fddee69fe1298eb90429e3306efd
1111
refs/tags/v0.0.11: ffbfba48a6426ff63c08ff2117e58681f251fbf2

branches/update-datastore/gcloud-java-storage/src/main/java/com/google/gcloud/storage/Bucket.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,9 @@ public boolean equals(Object obj) {
122122
}
123123
}
124124

125+
/**
126+
* Class for specifying bucket source options when {@code Bucket} methods are used.
127+
*/
125128
public static class BucketSourceOption extends Option {
126129

127130
private static final long serialVersionUID = 6928872234155522371L;
@@ -152,10 +155,18 @@ private Storage.BucketGetOption toGetOption(BucketInfo bucketInfo) {
152155
}
153156
}
154157

158+
/**
159+
* Returns an option for bucket's metageneration match. If this option is used the request will
160+
* fail if metageneration does not match.
161+
*/
155162
public static BucketSourceOption metagenerationMatch() {
156163
return new BucketSourceOption(StorageRpc.Option.IF_METAGENERATION_MATCH);
157164
}
158165

166+
/**
167+
* Returns an option for bucket's metageneration mismatch. If this option is used the request
168+
* will fail if metageneration matches.
169+
*/
159170
public static BucketSourceOption metagenerationNotMatch() {
160171
return new BucketSourceOption(StorageRpc.Option.IF_METAGENERATION_NOT_MATCH);
161172
}

0 commit comments

Comments
 (0)