File tree Expand file tree Collapse file tree
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 @@ -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