-
Notifications
You must be signed in to change notification settings - Fork 84
feat: expose BucketInfo.getProject as a BigInteger #3119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
bec35cd
to
2701269
Compare
Expose publicly the project field which was previously internal only. This field represents the project number of the project the bucket belongs to. This field is still OUTPUT_ONLY, and as such does hot have a setter exposed for it. Fixes #3023
2701269
to
cc60695
Compare
@@ -328,7 +328,7 @@ public void storage_BucketGetOption_fields_BucketField() { | |||
"website", | |||
"softDeletePolicy", | |||
"hierarchicalNamespace", | |||
"website"); | |||
"projectNumber"); |
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.
website
was defined twice, changing the second one to our new expected value.
@@ -821,7 +821,7 @@ public void storage_BucketListOption_fields_BucketField() { | |||
"items/website", | |||
"items/softDeletePolicy", | |||
"items/hierarchicalNamespace", | |||
"items/website"); | |||
"items/projectNumber"); |
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.
website
was defined twice, changing the second one to our new expected value.
@@ -2007,7 +2008,10 @@ public Builder setName(String name) { | |||
} | |||
|
|||
@Override | |||
Builder setProject(String project) { | |||
Builder setProject(BigInteger project) { |
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.
Should we name it set/getProjectNumber
to make it more clear?
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.
In the v2/storage.proto it's named project
in the discovery doc it's named projectNumber
. Rather annoying.
We first added this field internally when doing the gRPC effort and before projectNUmber was public. In this case, I'm simply exposing the getter for the field we already have plumbed around.
Expose publicly the project field which was previously internal only. This field represents the project number of the project the bucket belongs to.
This field is still OUTPUT_ONLY, and as such does hot have a setter exposed.
Fixes #3023