Skip to content

Commit 7934a65

Browse files
committed
---
yaml --- r: 6495 b: refs/heads/tswast-patch-1 c: 6de12f2 h: refs/heads/master i: 6493: 56c3a0f 6491: a414317 6487: 7ea9ed4 6479: 43c4607 6463: 3fce4c3
1 parent fa34572 commit 7934a65

2 files changed

Lines changed: 13 additions & 1 deletion

File tree

  • branches/tswast-patch-1/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
@@ -57,5 +57,5 @@ refs/tags/v0.18.0: 9d193c4c4b9d1c6f21515dd8e50836b9194ec9bb
5757
refs/tags/v0.19.0: e67b56e4d8dad5f9a7b38c9b2107c23c828f2ed5
5858
refs/tags/v0.20.0: 839f7fb7156535146aa1cb2c5aadd8d375d854e8
5959
refs/tags/v0.20.1: 370471f437f1f4f68a11e068df5cd6bf39edb1fa
60-
refs/heads/tswast-patch-1: 93dd0c244fdbc6843ed2fc43912fa55a4c9e6258
60+
refs/heads/tswast-patch-1: 6de12f20c202386d66588059b6c9ec55ff47a058
6161
refs/heads/pubsub-streaming-pull: 19262b752ee874eb2ca3b950eb2aef44d5a5267b

branches/tswast-patch-1/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)