Skip to content

feat(gapic-generator-java): generate javaClientName and javaMethodName in stubs and settings - #14617

Open
jinseopkim0 wants to merge 1 commit into
feat-tracer-context-operation-namefrom
feat-gapic-generator-operation-name
Open

jinseopkim0 wants to merge 1 commit into
feat-tracer-context-operation-namefrom
feat-gapic-generator-operation-name

Conversation

@jinseopkim0

@jinseopkim0 jinseopkim0 commented Oct 9, 2026 •

Copy link
Copy Markdown
Contributor

Updates the Java GAPIC generator to emit getJavaClientName() in generated [Service]StubSettings classes and .setJavaMethodName(...) in generated Grpc[Service]Stub and HttpJson[Service]Stub classes, and updates unit/integration/Showcase goldens.

Depends on #14616.

b/541322523#comment7

@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 updates the Java GAPIC generator to include the Java client name in the stub settings and the Java method name in the transport call settings. Specifically, it modifies AbstractServiceStubSettingsClassComposer to generate a getJavaClientName() method in stub settings classes, and updates AbstractTransportServiceStubClassComposer to set the Java method name on transport call settings. Additionally, the repository order in assembly.gradle.tmpl is adjusted to prioritize mavenLocal() over mavenCentral(). The remaining changes reflect the regeneration of stubs and settings across various golden files and integration tests. I have no feedback to provide as there are no review comments.

@jinseopkim0
jinseopkim0 force-pushed the feat-gapic-generator-operation-name branch from 58a3ce0 to a801089 Compare October 9, 2026 13:02
@jinseopkim0

Copy link
Copy Markdown
Contributor Author

@gemini-code-assist review

@jinseopkim0
jinseopkim0 force-pushed the feat-gapic-generator-operation-name branch from a801089 to c8f751a Compare October 9, 2026 13:20

@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 updates the GAPIC generator for Java to generate the fully qualified Java client name in stub settings and the Java method name in transport call settings, with corresponding updates to showcase and golden files. Additionally, the repository order in the Gradle assembly template was modified. The review feedback correctly points out that placing mavenLocal() before mavenCentral() can degrade build performance and cause non-reproducible builds, recommending that mavenCentral() remain first.

Comment thread rules_java_gapic/resources/gradle/assembly.gradle.tmpl
@sonarqubecloud

sonarqubecloud Bot commented Oct 9, 2026

Copy link
Copy Markdown

@sonarqubecloud

sonarqubecloud Bot commented Oct 9, 2026

Copy link
Copy Markdown

@jinseopkim0
jinseopkim0 marked this pull request as ready for review October 9, 2026 14:14
@jinseopkim0
jinseopkim0 requested a review from a team as a code owner October 9, 2026 14:14
@jinseopkim0
jinseopkim0 requested a review from blakeli0 October 9, 2026 14:14
@jinseopkim0
jinseopkim0 added this pull request to stack #14619 October 9, 2026 16:29

This branch has not been deployed

No deployments
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.

1 participant