Skip to content

docs(gapic-generator-java): update legacy cloud.google.com setup URL in sample headers - #85

Open
lqiu96 wants to merge 1 commit into
mainfrom
docs/gapic-0b-legacy-setup-url
Open

lqiu96 wants to merge 1 commit into
mainfrom
docs/gapic-0b-legacy-setup-url

Conversation

@lqiu96

@lqiu96 lqiu96 commented Nov 22, 2026

Copy link
Copy Markdown
Owner

Summary

Covers GAPIC-0b (Wave 1).

Updates the legacy https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library URL (301 redirect) in CommentComposer.AUTO_GENERATED_SAMPLE_COMMENT to the canonical 200 OK URL https://docs.cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library, and regenerates the corresponding unit tests and .golden files.

Scope

  • sdk-platform-java/gapic-generator-java/src/main/java/com/google/api/generator/gapic/composer/comment/CommentComposer.java
  • SampleComposerTest.java, SampleCodeWriterTest.java
  • 178 unit .golden files regenerated via mvn test -DupdateUnitGoldens

Integration Goldens Note

sdk-platform-java/test/integration/goldens/ (managed separately via Bazel bazelisk run //sdk-platform-java/test/integration:update_*, not invoked by the Maven gapic-generator-java test suite) is intentionally not hand-edited in this PR and should be regenerated via Bazel when upstreaming.

Verification

  • mvn -f sdk-platform-java/gapic-generator-java/pom.xml fmt:check -Dfmt.skip=false (JDK 21): 320 files, 0 non-complying
  • mvn -f sdk-platform-java/gapic-generator-java/pom.xml test (JDK 25): 1,182 tests run, 0 failures, 0 errors (1 pre-existing @Disabled test)
  • Diff audit: 181 files changed, +372/-372 lines (strictly 1:1 URL replacement)

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