Skip to content

feat(internal/librarian/java): support showcase as source in generate#5799

Merged
zhumin8 merged 8 commits into
googleapis:mainfrom
zhumin8:java-showcase-1
May 5, 2026
Merged

feat(internal/librarian/java): support showcase as source in generate#5799
zhumin8 merged 8 commits into
googleapis:mainfrom
zhumin8:java-showcase-1

Conversation

@zhumin8
Copy link
Copy Markdown
Contributor

@zhumin8 zhumin8 commented May 4, 2026

Support showcase as source in generate, pass both showcase dir and googleapis dir to protoc via -I flags, use only showcase dir for copy protos, and finding service configs. Also renaming variables related to googleapisDir for clarity.

For #5731

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request refactors the Java librarian to support multiple proto source directories by introducing a librarySources struct. This change allows the generator to handle libraries like 'showcase' that require multiple include paths for protoc. Additionally, several variables and parameters previously named googleapisDir were renamed to more generic terms like protoSourceDir or sourceDir to reflect their broader usage. Feedback indicates that the resolveGAPICOptions function definition should also be updated to use the new naming convention for consistency.

Comment thread internal/librarian/java/generate.go Outdated
@zhumin8 zhumin8 marked this pull request as ready for review May 4, 2026 17:56
@zhumin8 zhumin8 requested a review from a team as a code owner May 4, 2026 17:56
Comment thread internal/librarian/java/generate.go Outdated
@zhumin8 zhumin8 requested a review from sofisl May 5, 2026 15:37
@zhumin8 zhumin8 merged commit de91d4f into googleapis:main May 5, 2026
25 checks passed
sofisl pushed a commit that referenced this pull request May 5, 2026
…#5799)

Support showcase as source in generate, pass both showcase dir and
googleapis dir to protoc via -I flags, use only showcase dir for copy
protos, and finding service configs. Also renaming variables related to
googleapisDir for clarity.

For #5731
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants