fix: Blob API Doc is confusing#233
Conversation
Codecov Report
@@ Coverage Diff @@
## master #233 +/- ##
============================================
- Coverage 63.50% 63.43% -0.07%
Complexity 540 540
============================================
Files 30 30
Lines 4762 4762
Branches 427 427
============================================
- Hits 3024 3021 -3
- Misses 1578 1581 +3
Partials 160 160
Continue to review full report at Codecov.
|
google-cloud-storage/src/main/java/com/google/cloud/storage/Blob.java
Outdated
Show resolved
Hide resolved
| * set of properties inherited from the {@link BlobInfo} class and the {@code Storage} instance. The | ||
| * class provides methods to perform operations on the object. Reading a property value does not | ||
| * issue any RPC calls. The object content is not stored within the {@code Blob} instance, | ||
| * operations on obtaining the content will issue one or multiple RPC calls, depending on the |
There was a problem hiding this comment.
Operations that access the content issue...
There was a problem hiding this comment.
done. But access the content issue might sound confusing.
google-cloud-storage/src/main/java/com/google/cloud/storage/Blob.java
Outdated
Show resolved
Hide resolved
|
|
||
| /** | ||
| * A Google cloud storage object. | ||
| * A Google cloud storage object. A {@code Blob} object includes the {@code BlobId} instance, the |
There was a problem hiding this comment.
Be very careful with the word "object". This is very easy to confuse wit an instance of the Storage class. I suggest using the phrase "an object in Google Cloud Storage" when you mean the bytes on the server rather than "storage object" which sounds like an instance of a class.
The overloading of the word "object" is really annoying. GCS should never have called these things "objects" but that ship, I am afraid, has sailed and we can't fix it here. :-(
google-cloud-storage/src/main/java/com/google/cloud/storage/Blob.java
Outdated
Show resolved
Hide resolved
google-cloud-storage/src/main/java/com/google/cloud/storage/Blob.java
Outdated
Show resolved
Hide resolved
google-cloud-storage/src/main/java/com/google/cloud/storage/BlobInfo.java
Outdated
Show resolved
Hide resolved
google-cloud-storage/src/main/java/com/google/cloud/storage/BlobInfo.java
Outdated
Show resolved
Hide resolved
| * BlobInfo} and declares methods to perform operations on the object. Neither {@code BlobInfo} nor | ||
| * {@code Blob} instances keep the object content, just the object properties. | ||
| * | ||
| * <p>Example of usage {@code BlobInfo} to crate an object in Google Cloud Storage: |
Fixes #176