Skip to content

Commit e2a4500

Browse files
committed
Add javadoc to Bucket
1 parent 6de12f2 commit e2a4500

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

  • gcloud-java-storage/src/main/java/com/google/gcloud/storage

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)