Skip to content

Commit 2dd01b6

Browse files
committed
---
yaml --- r: 1917 b: refs/heads/pubsub-alpha c: 6de12f2 h: refs/heads/master i: 1915: 967cbc6
1 parent 7cb61b6 commit 2dd01b6

2 files changed

Lines changed: 13 additions & 1 deletion

File tree

  • branches/pubsub-alpha/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
@@ -3,7 +3,7 @@ refs/heads/master: 689bbb466df4b2d5d2483d6edb8ac5c7c7f7c6fa
33
refs/heads/travis: e21ee7b88a5edc3f3d8c71f90c3fc32abf7e8dd6
44
refs/heads/gh-pages: 4e0561bb4504bf647db669a14417b2b2c87ba45d
55
refs/heads/bigquery: 762fa5830e6c398c0396177e3e7fd243bd62cfc3
6-
refs/heads/pubsub-alpha: 93dd0c244fdbc6843ed2fc43912fa55a4c9e6258
6+
refs/heads/pubsub-alpha: 6de12f20c202386d66588059b6c9ec55ff47a058
77
refs/heads/resource-manager: ebf4adc5ee835cd2086c4ac5b4e78d01a5a005a7
88
refs/heads/update-datastore: 482954f2c5055231e5b3122ea91d2ba00ce8187c
99
refs/tags/0.0.9: 22f1839238f66c39e67ed4dfdcd273b1ae2e8444

branches/pubsub-alpha/gcloud-java-storage/src/main/java/com/google/gcloud/storage/BlobId.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,16 @@ private BlobId(String bucket, String name) {
3838
this.name = name;
3939
}
4040

41+
/**
42+
* Returns the name of the bucket containing the blob.
43+
*/
4144
public String bucket() {
4245
return bucket;
4346
}
4447

48+
/**
49+
* Returns the name of the blob.
50+
*/
4551
public String name() {
4652
return name;
4753
}
@@ -72,6 +78,12 @@ StorageObject toPb() {
7278
return storageObject;
7379
}
7480

81+
/**
82+
* Creates a blob identifier.
83+
*
84+
* @param bucket the name of the bucket that contains the blob
85+
* @param name the name of the blob
86+
*/
7587
public static BlobId of(String bucket, String name) {
7688
return new BlobId(checkNotNull(bucket), checkNotNull(name));
7789
}

0 commit comments

Comments
 (0)