File tree Expand file tree Collapse file tree
branches/update-datastore/gcloud-java-storage/src/main/java/com/google/gcloud/storage Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ refs/heads/gh-pages: 4e0561bb4504bf647db669a14417b2b2c87ba45d
55refs/heads/bigquery: 762fa5830e6c398c0396177e3e7fd243bd62cfc3
66refs/heads/pubsub-alpha: 1a0e970f265af871e02274085b9662b3fe29058b
77refs/heads/resource-manager: ebf4adc5ee835cd2086c4ac5b4e78d01a5a005a7
8- refs/heads/update-datastore: 6de12f20c202386d66588059b6c9ec55ff47a058
8+ refs/heads/update-datastore: e2a4500e57e7dd458223cff5020e990539795828
99refs/tags/0.0.9: 22f1839238f66c39e67ed4dfdcd273b1ae2e8444
1010refs/tags/v0.0.10: 207ebd2a3472fddee69fe1298eb90429e3306efd
1111refs/tags/v0.0.11: ffbfba48a6426ff63c08ff2117e58681f251fbf2
Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments