feat(vectorsearch): generate library#16012
Conversation
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request delivers the C++ client library for the Google Cloud Vector Search API. This new library empowers C++ applications to seamlessly interact with the Vector Search service, facilitating the management of collections, indexes, and data objects to leverage advanced vector search capabilities. Highlights
Changelog
Activity
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request adds the generated C++ client library for the Vector Search API. Overall, the changes look good, and all original comments have been kept as they align with the provided rules or are not covered by them. The comments address a configuration error leading to an incorrect copyright year, suggest improvements to quickstart documentation for clarity, and identify several methods in the idempotency policies that should be marked as idempotent according to AIP guidelines, which is crucial for correct retry behavior.
| service { | ||
| service_proto_path: "google/cloud/vectorsearch/v1/data_object_service.proto" | ||
| product_path: "google/cloud/vectorsearch/v1" | ||
| initial_copyright_year: "2026" |
There was a problem hiding this comment.
| 1. Run the example, changing the placeholder(s) to appropriate values: | ||
|
|
||
| ```bash | ||
| bazel run :quickstart -- [...] |
There was a problem hiding this comment.
| 1. Run the example, changing the placeholder(s) to appropriate values: | ||
|
|
||
| ```bash | ||
| .build/quickstart [...] |
|
|
||
| Idempotency DataObjectServiceConnectionIdempotencyPolicy::CreateDataObject( | ||
| google::cloud::vectorsearch::v1::CreateDataObjectRequest const&) { | ||
| return Idempotency::kNonIdempotent; |
| Idempotency | ||
| DataObjectServiceConnectionIdempotencyPolicy::BatchCreateDataObjects( | ||
| google::cloud::vectorsearch::v1::BatchCreateDataObjectsRequest const&) { | ||
| return Idempotency::kNonIdempotent; |
|
|
||
| Idempotency VectorSearchServiceConnectionIdempotencyPolicy::DeleteCollection( | ||
| google::cloud::vectorsearch::v1::DeleteCollectionRequest const&) { | ||
| return Idempotency::kNonIdempotent; |
|
|
||
| Idempotency VectorSearchServiceConnectionIdempotencyPolicy::CreateIndex( | ||
| google::cloud::vectorsearch::v1::CreateIndexRequest const&) { | ||
| return Idempotency::kNonIdempotent; |
|
|
||
| Idempotency VectorSearchServiceConnectionIdempotencyPolicy::DeleteIndex( | ||
| google::cloud::vectorsearch::v1::DeleteIndexRequest const&) { | ||
| return Idempotency::kNonIdempotent; |
|
|
||
| Idempotency VectorSearchServiceConnectionIdempotencyPolicy::DeleteOperation( | ||
| google::longrunning::DeleteOperationRequest const&) { | ||
| return Idempotency::kNonIdempotent; |
|
|
||
| Idempotency VectorSearchServiceConnectionIdempotencyPolicy::CancelOperation( | ||
| google::longrunning::CancelOperationRequest const&) { | ||
| return Idempotency::kNonIdempotent; |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #16012 +/- ##
=======================================
Coverage 92.63% 92.64%
=======================================
Files 2333 2333
Lines 214631 214631
=======================================
+ Hits 198830 198846 +16
+ Misses 15801 15785 -16 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
No description provided.