Skip to content

Converting all Storage deserialized enum types to StringEnumValue#1940

Merged
garrettjonesgoogle merged 2 commits intogoogleapis:masterfrom
garrettjonesgoogle:alt
Apr 19, 2017
Merged

Converting all Storage deserialized enum types to StringEnumValue#1940
garrettjonesgoogle merged 2 commits intogoogleapis:masterfrom
garrettjonesgoogle:alt

Conversation

@garrettjonesgoogle
Copy link
Copy Markdown
Contributor

Converting everything Storage-related where X.valueOf is called on it during proto deserialization.

Updates #1832 .

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Apr 18, 2017
if (type.equals(Type.ALL_AUTHENTICATED_USERS) || type.equals(Type.ALL_USERS)) {
return new Identity(type, null);
} else {
return new Identity(type, checkNotNull(info[1]));

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

@coveralls
Copy link
Copy Markdown

Coverage Status

Coverage decreased (-0.01%) to 80.933% when pulling bd8208d on garrettjonesgoogle:alt into b355f4d on GoogleCloudPlatform:master.

@michaelbausor
Copy link
Copy Markdown
Contributor

LGTM once array bounds issue is resolved or tracked in an issue

@garrettjonesgoogle
Copy link
Copy Markdown
Contributor Author

PTAL again, made some minor logic changes to account for the array out of bounds issue.

String[] info = identityStr.split(":");
Type type = Type.valueOf(CaseFormat.LOWER_CAMEL.to(CaseFormat.UPPER_UNDERSCORE, info[0]));
if (type.equals(Type.ALL_AUTHENTICATED_USERS) || type.equals(Type.ALL_USERS)) {
if (info.length == 1) {

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

@coveralls
Copy link
Copy Markdown

Coverage Status

Coverage decreased (-0.09%) to 80.851% when pulling f6fffda on garrettjonesgoogle:alt into b355f4d on GoogleCloudPlatform:master.

@michaelbausor
Copy link
Copy Markdown
Contributor

LGTM

@garrettjonesgoogle garrettjonesgoogle merged commit 67af4bf into googleapis:master Apr 19, 2017
suztomo pushed a commit to suztomo/google-cloud-java that referenced this pull request Mar 23, 2026
meltsufin pushed a commit that referenced this pull request Apr 29, 2026
🤖 I have created a release *beep* *boop*
---


### Updating meta-information for bleeding-edge SNAPSHOT release.

---
This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please).
meltsufin pushed a commit that referenced this pull request May 1, 2026
🤖 I have created a release *beep* *boop*
---


### Updating meta-information for bleeding-edge SNAPSHOT release.

---
This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please).
meltsufin pushed a commit that referenced this pull request May 2, 2026
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants