feat(visionai): generate library#16008
Conversation
Summary of ChangesHello @scotthart, 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 focuses on generating and integrating the C++ client library for the Vision AI API. It encompasses updates to various build configurations, dependency management, and documentation to fully support the new service within the existing framework. Highlights
Changelog
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 introduces the generated C++ client library for the Vision AI API. The changes are mostly additions of new files for the library, its documentation, and quickstart examples. The PR also includes updates to the project's build files (Bazel, CMake), dependency versions, and CI configurations to incorporate the new library.
My review has identified a couple of issues:
- The copyright year for the new library is set to a future year (2026) in the generator configuration, which affects all generated files.
- A CI script contains redundant code that should be cleaned up for better maintainability.
| service { | ||
| service_proto_path: "google/cloud/visionai/v1/health_service.proto" | ||
| product_path: "google/cloud/visionai/v1" | ||
| initial_copyright_year: "2026" | ||
| retryable_status_codes: ["kUnavailable"] | ||
| } | ||
|
|
||
| service { | ||
| service_proto_path: "google/cloud/visionai/v1/lva_service.proto" | ||
| product_path: "google/cloud/visionai/v1" | ||
| initial_copyright_year: "2026" | ||
| retryable_status_codes: ["kUnavailable"] | ||
| } | ||
|
|
||
| service { | ||
| service_proto_path: "google/cloud/visionai/v1/platform.proto" | ||
| product_path: "google/cloud/visionai/v1" | ||
| initial_copyright_year: "2026" | ||
| retryable_status_codes: ["kUnavailable"] | ||
| } | ||
|
|
||
| service { | ||
| service_proto_path: "google/cloud/visionai/v1/streaming_service.proto" | ||
| product_path: "google/cloud/visionai/v1" | ||
| initial_copyright_year: "2026" | ||
| retryable_status_codes: ["kUnavailable"] | ||
| } | ||
|
|
||
| service { | ||
| service_proto_path: "google/cloud/visionai/v1/streams_service.proto" | ||
| product_path: "google/cloud/visionai/v1" | ||
| initial_copyright_year: "2026" | ||
| retryable_status_codes: ["kUnavailable"] | ||
| } | ||
|
|
||
| service { | ||
| service_proto_path: "google/cloud/visionai/v1/warehouse.proto" | ||
| product_path: "google/cloud/visionai/v1" | ||
| initial_copyright_year: "2026" | ||
| retryable_status_codes: ["kUnavailable"] | ||
| } |
| protobuf_proto_path="${bazel_output_base}/external/protobuf+/src" | ||
| googleapis_proto_path="${bazel_output_base}/external/googleapis+" |
5b65c88 to
2beda2f
Compare
2beda2f to
fd7b5d1
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #16008 +/- ##
=======================================
Coverage 92.63% 92.64%
=======================================
Files 2333 2333
Lines 214631 214631
=======================================
+ Hits 198827 198846 +19
+ Misses 15804 15785 -19 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This change is