Skip to content

chore: migrate google-cloud-vectorsearch to librarian#8571

Merged
jskeet merged 1 commit into
googleapis:mainfrom
jskeet:scripted-migrate-google-cloud-vectorsearch
Jun 11, 2026
Merged

chore: migrate google-cloud-vectorsearch to librarian#8571
jskeet merged 1 commit into
googleapis:mainfrom
jskeet:scripted-migrate-google-cloud-vectorsearch

Conversation

@jskeet

@jskeet jskeet commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@jskeet
jskeet requested a review from a team as a code owner June 11, 2026 10:11

@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 enables generation for the Vector Search API by removing the skip_generate flag in librarian.yaml, deleting several configuration and documentation files, and updating the repository metadata. It also changes the default exported clients in packages/google-cloud-vectorsearch/src/index.ts from the stable v1 version to the v1beta version. Feedback was provided regarding this change, noting that switching the default export to a beta version is a breaking change for existing consumers. The reviewer recommended updating the configuration in librarian.yaml to use v1 as the default version instead of manually modifying the generated client files.

Comment on lines +22 to +27
const DataObjectSearchServiceClient = v1beta.DataObjectSearchServiceClient;
type DataObjectSearchServiceClient = v1beta.DataObjectSearchServiceClient;
const DataObjectServiceClient = v1beta.DataObjectServiceClient;
type DataObjectServiceClient = v1beta.DataObjectServiceClient;
const VectorSearchServiceClient = v1beta.VectorSearchServiceClient;
type VectorSearchServiceClient = v1beta.VectorSearchServiceClient;

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

Changing the default exported client from the stable v1 version to the beta v1beta version is a breaking change for existing consumers of this package.

Since v1 is already released and was previously the default export, we should preserve it as the default. To fix this, please update the default_version in librarian.yaml to v1 and regenerate the library:

    nodejs:
      default_version: v1
References
  1. Do not manually edit generated TypeScript client files. Any changes or updates must be made upstream in the generator.

@jskeet
jskeet marked this pull request as draft June 11, 2026 10:53
jskeet pushed a commit to jskeet/google-cloud-node that referenced this pull request Jun 11, 2026
This addresses situations where .repo-metadata.json and index.ts
effectively disagree on the default API version for a package. The fix
favors the version in index.ts, for the sake of compatibility.

Once this is merged, googleapis#8556, googleapis#8571 and googleapis#8480 should be regenerated.

Fixes googleapis/librarian#6382
jskeet pushed a commit that referenced this pull request Jun 11, 2026
This addresses situations where .repo-metadata.json and index.ts
effectively disagree on the default API version for a package. The fix
favors the version in index.ts, for the sake of compatibility.

Once this is merged, #8556, #8571 and #8480 should be regenerated.

Fixes googleapis/librarian#6382
@jskeet
jskeet marked this pull request as ready for review June 11, 2026 13:00
@jskeet
jskeet force-pushed the scripted-migrate-google-cloud-vectorsearch branch from b726275 to c2ba8e4 Compare June 11, 2026 13:01
"api_id": "vectorsearch.googleapis.com",
"api_shortname": "vectorsearch",
"client_documentation": "https://cloud.google.com/nodejs/docs/reference/vectorsearch/latest",
"default_version": "v1",

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This change is due to the previous repo-metadata being out of date with respect to Bazel and index.ts

@jskeet
jskeet merged commit d57dbc5 into googleapis:main Jun 11, 2026
32 checks passed
@jskeet
jskeet deleted the scripted-migrate-google-cloud-vectorsearch branch June 11, 2026 14:38
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