Skip to content

fix(internal/serviceconfig): normalize transport name for Java repo-metadata#6582

Merged
sofisl merged 1 commit into
googleapis:mainfrom
sofisl:repoMetadataValue
Jun 30, 2026
Merged

fix(internal/serviceconfig): normalize transport name for Java repo-metadata#6582
sofisl merged 1 commit into
googleapis:mainfrom
sofisl:repoMetadataValue

Conversation

@sofisl

@sofisl sofisl commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

Remove the Java-specific mapping in RepoMetadataTransport that translated transport values to "http" or "both". Now it returns the standard values ("grpc", "rest", "grpc+rest") directly, aligning Java with other languages.

After merging, we will merge googleapis/google-cloud-java#13586, once we update the librarian pseudo-version and regenerate the repo-metadata values.

Fixes #4854

…etadata

Remove the Java-specific mapping in RepoMetadataTransport that translated
transport values to "http" or "both". Now it returns the standard values
("grpc", "rest", "grpc+rest") directly, aligning Java with other languages.

Fixes googleapis#4854
@sofisl
sofisl requested a review from a team as a code owner June 29, 2026 23:58
@sofisl
sofisl marked this pull request as draft June 29, 2026 23:58

@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 simplifies the RepoMetadataTransport method in internal/serviceconfig/api.go by removing the Java-specific transport mapping logic that previously mapped transports to 'grpc', 'http', or 'both'. Java now uses the standard transport string representation, aligning it with other languages. Corresponding test cases and expectations in internal/librarian/java/repometadata_test.go and internal/serviceconfig/api_test.go have been updated to reflect this change (e.g., using 'grpc+rest' and 'rest' instead of 'both' and 'http'). There are no review comments, and I have no feedback to provide.

@sofisl
sofisl merged commit e20f77a into googleapis:main Jun 30, 2026
31 of 33 checks passed
zhumin8 added a commit to googleapis/google-cloud-java that referenced this pull request Jul 1, 2026
)

Update librarian version that includes:
- googleapis/librarian#6601.
- googleapis/librarian#6582 (for this change,
added a fix in README template
[7522f3b](7522f3b))

Created with command below plus a manual fix in
[7522f3b](7522f3b)
```
# update librarian version used in librarian.yaml
PSEUDO=$(GOPROXY=direct go list -m -f '{{.Version}}' github.com/googleapis/librarian@main)
V=$(go run github.com/googleapis/librarian/cmd/librarian@latest config get version)
go run github.com/googleapis/librarian/cmd/librarian@${V} config set version $PSEUDO

# regenerate all
go run github.com/googleapis/librarian/cmd/librarian@${V} generate -all
```

Fixes #13609
quirogas pushed a commit that referenced this pull request Jul 1, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.24.0](v0.23.0...v0.24.0)
(2026-07-01)


### Features

* **add:** handle Release Please config for google-cloud-node
([#6569](#6569))
([1f8ee00](1f8ee00))
* **internal/librarian/java:** add code snippet extraction helpers for
README rendering
([#6593](#6593))
([96f6925](96f6925)),
closes [#6515](#6515)
* **internal/librarian/java:** add extractSamples for README generation
([#6578](#6578))
([b5e3d45](b5e3d45)),
closes [#6515](#6515)
* **internal/librarian/nodejs:** add metadata_name_override and
name_pretty_override support
([#6603](#6603))
([3f6cfed](3f6cfed)),
closes [#6453](#6453)
* **internal/librarian:** add debug command with env subcommand
([#6576](#6576))
([027103b](027103b)),
closes [#6374](#6374)
* **internal/librarian:** populate Java Maven coordinates from defaults
([#6554](#6554))
([accb8ad](accb8ad)),
closes [#6513](#6513)
* **librarian/swift:** use discovery config
([#6604](#6604))
([5a44ed7](5a44ed7))
* **sidekick/discovery:** signatures without path params
([#6588](#6588))
([bb40e83](bb40e83))


### Bug Fixes

* **internal/librarian/java:** exclude google-cloud-bom and
libraries-bom when generating gapic-libraries-bom/pom.xml
([#6601](#6601))
([b8e50a5](b8e50a5))
* **internal/serviceconfig:** normalize transport name for Java
repo-metadata
([#6582](#6582))
([e20f77a](e20f77a))
* **sdk.yaml:** allow rust for many non-cloud apis
([#6598](#6598))
([0efb6e7](0efb6e7))

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

google-cloud-java: normalize transport name used for generation and repometadata

2 participants