Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
fix: [gapic-generator-java] handle response and metadata type ambiguity in LRO parsing #1726
fix: [gapic-generator-java] handle response and metadata type ambiguity in LRO parsing #1726
Changes from 11 commits
8096dbd
c5e0b30
ca740ba
7ce4084
76d8fba
2e1c69e
e4c4916
7c759a9
67fecec
30d8a0d
b73d72a
de5e9c3
b7952a4
69e3a27
1ff61f4
3703269
06dbf1f
ba60786
ba1d1af
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
What if the short name is invalid? Can we throw an exception in the generator? Or we are going to generate code that is not compilable?
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.
Note from discussion offline: if the short name is invalid (no match) then the exception is handled by existing logic here:
sdk-platform-java/gapic-generator-java/src/main/java/com/google/api/generator/gapic/protoparser/Parser.java
Lines 858 to 868 in b73d72a
But this behavior should be tested (through true unit tests rather than goldens). Will look into replacing showcase-extended setup in this PR with true unit testing for
Parser
.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.
Reverted changes to showcase-extended setup, and added unit tests separately for respective
Parser
andWriter
fixes (more in PR description).