-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Operations that access the content issue...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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
@@ -52,12 +52,26 @@ | |||
import java.util.concurrent.TimeUnit; | |||
|
|||
/** | |||
* 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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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. :-(
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
agree
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: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
crate --> create
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Fixes #176