We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 93dd0c2 commit 6de12f2Copy full SHA for 6de12f2
1 file changed
gcloud-java-storage/src/main/java/com/google/gcloud/storage/BlobId.java
@@ -38,10 +38,16 @@ private BlobId(String bucket, String name) {
38
this.name = name;
39
}
40
41
+ /**
42
+ * Returns the name of the bucket containing the blob.
43
+ */
44
public String bucket() {
45
return bucket;
46
47
48
49
+ * Returns the name of the blob.
50
51
public String name() {
52
return name;
53
@@ -72,6 +78,12 @@ StorageObject toPb() {
72
78
return storageObject;
73
79
74
80
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
75
87
public static BlobId of(String bucket, String name) {
76
88
return new BlobId(checkNotNull(bucket), checkNotNull(name));
77
89
0 commit comments