Skip to content

feat(google/shopping/merchant/reviews/v1): add shopping-merchant-reviews - #14724

Merged
blakeli0 merged 1 commit into
mainfrom
onboard-shopping-merchant-reviews-v1
Oct 22, 2026
Merged

blakeli0 merged 1 commit into
mainfrom
onboard-shopping-merchant-reviews-v1

Conversation

@suztomo

@suztomo suztomo commented Oct 21, 2026

Copy link
Copy Markdown
Member

Onboard google/shopping/merchant/reviews/v1 API (shopping-merchant-reviews).

Internal tracking bug http://b/574418635

PiperOrigin-RevId: 1000790478

Debug Info

System Details

  • JDK version: javac 17.0.18
  • Maven version: Apache Maven 3.9.9 (8e8579a9e76f7d015ee5ec7bfcdc97d260186937)
  • OS: Linux 7.1.6-1rodete1-amd64 x86_64
  • Librarian version: v0.49.0

Commands Executed

  • MAVEN_SKIP_RC=true go run github.com/googleapis/librarian/cmd/librarian@v0.49.0 install
  • go run github.com/googleapis/librarian/cmd/librarian@v0.49.0 add google/shopping/merchant/reviews/v1
  • go run github.com/googleapis/librarian/cmd/librarian@v0.49.0 generate shopping-merchant-reviews
  • mvn -B -ntp compile -pl :google-shopping-merchant-reviews -am
  • go run github.com/googleapis/librarian/cmd/librarian@v0.49.0 tidy
  • git add .
  • git commit -m "feat(google/shopping/merchant/reviews/v1): add shopping-merchant-reviews"

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

Copy link
Copy Markdown
Contributor

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 auto-generated v1 Java client library for the Google Shopping Merchant Reviews API, adding the client, stubs, settings, tests, and samples, alongside updating the build configurations. A critical issue was found in the generated pom.xml for google-shopping-merchant-reviews, where the grpc-google-shopping-merchant-reviews-v1 dependency is incorrectly scoped to test. This will cause runtime NoClassDefFoundError exceptions for production users. The generator configuration or source metadata should be updated to resolve this scope issue rather than editing the POM manually.

<dependency>
<groupId>com.google.shopping.api.grpc</groupId>
<artifactId>grpc-google-shopping-merchant-reviews-v1</artifactId>
<scope>test</scope>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

high

The dependency grpc-google-shopping-merchant-reviews-v1 is generated with test. This will prevent the gRPC classes (such as ProductReviewsServiceGrpc) from being available at runtime for production users of the v1 client library, leading to NoClassDefFoundError when they attempt to use the library. Since this pom.xml is auto-generated, please do not edit it manually. Instead, modify the generator configuration or the source metadata (e.g., in the upstream googleapis repository or generation scripts) to ensure this dependency is generated with the default (compile) scope, similar to grpc-google-shopping-merchant-reviews-v1beta.

References
  1. Avoid manually editing auto-generated files (such as pom.xml in generated client libraries) because changes will be overwritten. Modify the generator or the source metadata instead.

@suztomo

suztomo commented Oct 21, 2026

Copy link
Copy Markdown
Member Author

Hi @jinseopkim0 @whowes, could you please take a look at this library onboarding PR when you get a chance? Thanks!

Comment thread librarian.yaml
api_description_override: Programmatically manage your Merchant Center Accounts.
artifact_id: google-shopping-merchant-reviews
client_documentation_override: https://cloud.google.com/java/docs/reference/google-shopping-merchant-reviews/latest/overview
group_id: com.google.shopping

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

@suztomo
suztomo marked this pull request as ready for review October 22, 2026 15:26
@suztomo
suztomo requested review from a team as code owners October 22, 2026 15:26
@snippet-bot

snippet-bot Bot commented Oct 22, 2026

Copy link
Copy Markdown

Here is the summary of changes.

You are about to add 20 region tags.

This comment is generated by snippet-bot.
If you find problems with this result, please file an issue at:
https://github.com/googleapis/repo-automation-bots/issues.
To update this comment, add snippet-bot:force-run label or use the checkbox below:

  • Refresh this comment

@blakeli0
blakeli0 merged commit 13310c7 into main Oct 22, 2026
193 checks passed
@blakeli0
blakeli0 deleted the onboard-shopping-merchant-reviews-v1 branch October 22, 2026 18:05
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