GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat(librariangen): generate grpc stubs and resource helpers by meltsufin · Pull Request #3967 · googleapis/sdk-platform-java

This repository was archived by the owner on Oct 29, 2026. It is now read-only.

Conversation

@meltsufin

@meltsufin meltsufin commented Oct 23, 2025 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor
  • Introduces the generation of gRPC stubs and resource helpers.
  • Modifies the Generate function to create output directories for GAPIC, gRPC, and proto files.
  • Updates the invokeProtoc function to pass an OutputConfig struct.
  • Updates the restructureOutput function to handle gRPC stubs and resource names.
  • Adds a copyAndMerge function to merge resource name files into the proto destination.
  • Updates the cleanupIntermediateFiles function to remove the GAPIC, gRPC, and proto directories.
  • Updates tests to reflect these changes.
  • Improvements in error handling.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@meltsufin
feat(librariangen): generate grpc stubs and resource helpers
c8a914a
@product-auto-label product-auto-label Bot added the size: l Pull request size is large. label Oct 23, 2025
@codecov

codecov Bot commented Oct 23, 2025 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 78.89%. Comparing base (a26a6d9) to head (0a06cef).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3967      +/-   ##
==========================================
- Coverage   80.27%   78.89%   -1.39%     
==========================================
  Files           8        8              
  Lines         441      379      -62     
==========================================
- Hits          354      299      -55     
+ Misses         68       53      -15     
- Partials       19       27       +8     
Flag Coverage Δ
librariangen 78.89% <ø> (-1.39%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@meltsufin
test: improve coverage
a86dbb8
@meltsufin
meltsufin marked this pull request as ready for review October 23, 2025 03:27
@meltsufin
meltsufin requested a review from suztomo October 23, 2025 03:27
suztomo
suztomo reviewed Oct 23, 2025
View reviewed changes
Comment thread internal/librariangen/run-generate-library.sh
wget -q "https://repo1.maven.org/maven2/com/google/api/gapic-generator-java/$GAPIC_GENERATOR_VERSION/gapic-generator-java-$GAPIC_GENERATOR_VERSION.jar" -O "$WORKSPACE/gapic-generator-java.jar"

echo "Downloading protoc-gen-grpc-java..."
wget -q "https://repo1.maven.org/maven2/io/grpc/protoc-gen-grpc-java/$GRPC_PLUGIN_VERSION/protoc-gen-grpc-java-$GRPC_PLUGIN_VERSION-linux-x86_64.exe" -O "$WORKSPACE/protoc-gen-java_grpc"

@suztomo suztomo Oct 23, 2025

Copy link
Copy Markdown
Member

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.

I think Dockerfile needs this too. https://github.com/googleapis/sdk-platform-java/blob/main/internal/librariangen/Dockerfile

This topic is part of how we can make abstraction over GAPIC generators, when thinking about the future in which we would say "All you language team needs to do is to provide their protoc plugins". If we have a consistent way to set protoc plugins across language containers, that would be a step towards it.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@meltsufin meltsufin Oct 23, 2025

Copy link
Copy Markdown
Contributor Author

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.

I'll try to refactor this in a separate PR. I would migrate a lot of the logic in run-generate-library.sh to the Dockerfile.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@suztomo suztomo Oct 23, 2025

Copy link
Copy Markdown
Member

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.

Sounds good.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@meltsufin
Merge branch 'main' into librariangen-grpc
dd12481
@meltsufin

meltsufin commented Oct 23, 2025

Copy link
Copy Markdown
Contributor Author

/gemini review

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

gemini-code-assist[bot]
gemini-code-assist Bot reviewed Oct 23, 2025
View reviewed changes

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

Copy link
Copy Markdown
Contributor

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.

Code Review

This pull request introduces the generation of gRPC stubs and resource helpers in the librariangen tool. It modifies the Generate function to create output directories for GAPIC, gRPC, and proto files, and updates the invokeProtoc function to pass an OutputConfig struct. The restructureOutput function is updated to handle gRPC stubs and resource names, and a copyAndMerge function is added to merge resource name files into the proto destination. The cleanupIntermediateFiles function is updated to remove the GAPIC, gRPC, and proto directories. Tests are updated to reflect these changes. I have identified a few areas where improvements can be made, particularly in error handling and code clarity.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread internal/librariangen/run-generate-library.sh Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread internal/librariangen/generate/generator.go Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread internal/librariangen/generate/generator.go Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread internal/librariangen/generate/generator.go Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread internal/librariangen/generate/generator_test.go Resolved

Uh oh!

There was an error while loading. Please reload this page.

@meltsufin meltsufin mentioned this pull request Oct 23, 2025
chore(librariangen): Generate to use languagecontainer.Run #3968
Merged
suztomo
suztomo previously approved these changes Oct 23, 2025
View reviewed changes
@meltsufin
chore: address feedback
10e2c5d
@meltsufin
meltsufin dismissed suztomo’s stale review via 10e2c5d October 23, 2025 19:33
suztomo
suztomo approved these changes Oct 23, 2025
View reviewed changes
@meltsufin
Merge branch 'main' into librariangen-grpc
0a06cef
@meltsufin
meltsufin enabled auto-merge (squash) October 23, 2025 20:54
suztomo
suztomo approved these changes Oct 23, 2025
View reviewed changes
@meltsufin
meltsufin merged commit 452d703 into main Oct 23, 2025
@meltsufin
meltsufin deleted the librariangen-grpc branch October 23, 2025 21:08
@release-please release-please Bot mentioned this pull request Oct 23, 2025
chore(main): release 2.64.0 #3954
Merged
meltsufin added a commit that referenced this pull request Oct 24, 2025
@meltsufin
Revert "feat(librariangen): generate grpc stubs and resource helpers (#…
4bf4423
…3967)"

This reverts commit 452d703.
diegomarquezp pushed a commit that referenced this pull request Nov 1, 2025
@release-please
chore(main): release 2.64.0 (#3954)
6e1c179
🤖 I have created a release *beep* *boop*
---


<details><summary>2.64.0</summary>

##
[2.64.0](v2.63.0...v2.64.0)
(2025-10-31)


### Features

* [common-protos] Add `Carousel` widget
([1e4a7e5](1e4a7e5))
* **librariangen:** add generate package
([#3952](#3952))
([2f6c75d](2f6c75d))
* **librariangen:** generate grpc stubs and resource helpers
([#3967](#3967))
([452d703](452d703))


### Dependencies

* Bump grpc-java to v1.76.0
([#3942](#3942))
([ffb557c](ffb557c))
</details>

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
@release-please release-please Bot mentioned this pull request Dec 11, 2025
chore(protobuf-4.x-rc): release 2.65.0-rc1 #3999
Merged
lqiu96 pushed a commit that referenced this pull request Feb 12, 2026
@meltsufin @lqiu96
feat(librariangen): generate grpc stubs and resource helpers (#3967)
e27e096
*   Introduces the generation of gRPC stubs and resource helpers.
* Modifies the `Generate` function to create output directories for
GAPIC, gRPC, and proto files.
* Updates the `invokeProtoc` function to pass an `OutputConfig` struct.
* Updates the `restructureOutput` function to handle gRPC stubs and
resource names.
* Adds a `copyAndMerge` function to merge resource name files into the
proto destination.
* Updates the `cleanupIntermediateFiles` function to remove the GAPIC,
gRPC, and proto directories.
*   Updates tests to reflect these changes.
*   Improvements in error handling.
lqiu96 pushed a commit that referenced this pull request Feb 12, 2026
@release-please @lqiu96
chore(main): release 2.64.0 (#3954)
59b6dfb
🤖 I have created a release *beep* *boop*
---


<details><summary>2.64.0</summary>

##
[2.64.0](v2.63.0...v2.64.0)
(2025-10-31)


### Features

* [common-protos] Add `Carousel` widget
([1e4a7e5](1e4a7e5))
* **librariangen:** add generate package
([#3952](#3952))
([2f6c75d](2f6c75d))
* **librariangen:** generate grpc stubs and resource helpers
([#3967](#3967))
([452d703](452d703))


### Dependencies

* Bump grpc-java to v1.76.0
([#3942](#3942))
([ffb557c](ffb557c))
</details>

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
chingor13 pushed a commit to googleapis/google-cloud-java that referenced this pull request Mar 24, 2026
@release-please
chore(main): release 2.64.0 (#3954)
cda1161
🤖 I have created a release *beep* *boop*
---


<details><summary>2.64.0</summary>

##
[2.64.0](googleapis/sdk-platform-java@v2.63.0...v2.64.0)
(2025-10-31)


### Features

* [common-protos] Add `Carousel` widget
([510d876](googleapis/sdk-platform-java@510d876))
* **librariangen:** add generate package
([#3952](googleapis/sdk-platform-java#3952))
([7a53a7f](googleapis/sdk-platform-java@7a53a7f))
* **librariangen:** generate grpc stubs and resource helpers
([#3967](googleapis/sdk-platform-java#3967))
([34df129](googleapis/sdk-platform-java@34df129))


### Dependencies

* Bump grpc-java to v1.76.0
([#3942](googleapis/sdk-platform-java#3942))
([dfa2b76](googleapis/sdk-platform-java@dfa2b76))
</details>

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

2 more reviewers
@gemini-code-assist gemini-code-assist[bot] gemini-code-assist[bot] left review comments
@suztomo suztomo suztomo approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

size: l Pull request size is large.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@meltsufin @suztomo
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.