Skip to content

feat(apiregistry): generate library#15936

Merged
scotthart merged 7 commits intogoogleapis:mainfrom
scotthart:feat-apiregistry-generate-library
Feb 5, 2026
Merged

feat(apiregistry): generate library#15936
scotthart merged 7 commits intogoogleapis:mainfrom
scotthart:feat-apiregistry-generate-library

Conversation

@scotthart
Copy link
Member

@scotthart scotthart commented Feb 5, 2026

This change is Reviewable

@scotthart scotthart requested a review from a team as a code owner February 5, 2026 18:45
@gemini-code-assist
Copy link

Summary of Changes

Hello @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 introduces the new C++ client library for the Cloud API Registry API. It encompasses all necessary changes to integrate this new service into the existing framework, including build system updates, comprehensive documentation, and practical quickstart examples to facilitate immediate use by developers.

Highlights

  • New Library Generation: The Cloud API Registry C++ client library has been generated and added to the repository, marking it as a new GA library.
  • Build System Integration: The new apiregistry library has been integrated into the project's build systems, including Bazel and CMake configurations, ensuring it can be built and linked correctly.
  • Documentation and Examples: Comprehensive documentation, including a README, Doxygen pages for environment variables, options, authentication, endpoint, retry policies, and universe domain overrides, has been added. Quickstart examples for Bazel, CMake, and Makefile users are also included.
  • Code Generation Artifacts: Various generated files such as client, connection, stub, and decorator implementations, along with their respective headers and metadata, have been added for the apiregistry/v1 service.
Changelog
  • CHANGELOG.md
    • Added 'Cloud API Registry' to the list of new GA libraries for the upcoming v2.47.0 release.
  • README.md
    • Included 'Cloud API Registry API' in the main list of client libraries with links to its quickstart and reference documentation.
  • ci/etc/expected_install_directories
    • Added new include and lib64 directories for the apiregistry library and its mock components to the expected install paths.
  • cmake/GoogleCloudCppFeatures.cmake
    • Added 'apiregistry' to the list of GOOGLE_CLOUD_CPP_GA_LIBRARIES.
  • external/googleapis/protodeps/apiregistry.deps
    • Added protobuf dependencies required for the apiregistry service.
  • external/googleapis/protolists/apiregistry.list
    • Added proto files for the apiregistry service.
  • external/googleapis/update_libraries.sh
    • Updated the LIBRARIES array to include apiregistry with its corresponding gRPC target.
  • generator/generator_config.textproto
    • Added a new service configuration block for 'API Registry', specifying its proto path, product path, initial copyright year, and retryable status codes.
  • google/cloud/apiregistry/BUILD.bazel
    • Added a Bazel build file to define the apiregistry C++ GAPIC library, including its service directories and Google API dependencies.
  • google/cloud/apiregistry/CMakeLists.txt
    • Added a CMake build file to define the apiregistry GAPIC library and its quickstart executable, including linking and test properties.
  • google/cloud/apiregistry/README.md
    • Added a new README file for the Cloud API Registry API C++ Client Library, detailing its GA status, quickstart guide, and links to official documentation.
  • google/cloud/apiregistry/doc/environment-variables.dox
    • Added Doxygen documentation for environment variables that can configure the apiregistry library's behavior, such as endpoint overrides and logging.
  • google/cloud/apiregistry/doc/main.dox
    • Added the main Doxygen page for the Cloud API Registry API C++ Client Library, providing an overview, quickstart snippet, and links to more information.
  • google/cloud/apiregistry/doc/options.dox
    • Added Doxygen documentation for configuration options specific to the Cloud API Registry API client library.
  • google/cloud/apiregistry/doc/override-authentication.dox
    • Added Doxygen documentation explaining how to override default authentication credentials for the apiregistry client.
  • google/cloud/apiregistry/doc/override-endpoint.dox
    • Added Doxygen documentation on how to override the default endpoint for the apiregistry client.
  • google/cloud/apiregistry/doc/override-retry-policies.dox
    • Added Doxygen documentation detailing how to override retry, backoff, and idempotency policies for the apiregistry client.
  • google/cloud/apiregistry/doc/override-universe-domain.dox
    • Added Doxygen documentation on how to override the default universe domain for the apiregistry client.
  • google/cloud/apiregistry/quickstart/.bazelrc
    • Added Bazel configuration for the quickstart, specifying C++14 standard and disabling convenience symlinks.
  • google/cloud/apiregistry/quickstart/BUILD.bazel
    • Added a Bazel build file for the apiregistry quickstart example, defining a C++ binary target.
  • google/cloud/apiregistry/quickstart/CMakeLists.txt
    • Added a CMake build file for the apiregistry quickstart example, demonstrating how to link against the client library.
  • google/cloud/apiregistry/quickstart/Makefile
    • Added a Makefile for the apiregistry quickstart example, showing how to compile and link using pkg-config.
  • google/cloud/apiregistry/quickstart/README.md
    • Added a README for the apiregistry quickstart, providing instructions for using the client library with Bazel, CMake, and platform-specific notes.
  • google/cloud/apiregistry/quickstart/WORKSPACE.bazel
    • Added a minimal Bazel WORKSPACE file for the apiregistry quickstart, demonstrating how to fetch and use the Google Cloud C++ libraries.
  • google/cloud/apiregistry/quickstart/quickstart.cc
    • Added the C++ source code for the apiregistry quickstart example, demonstrating basic client usage.
  • google/cloud/apiregistry/v1/.repo-metadata.json
    • Added repository metadata for the apiregistry/v1 client library, including API ID, shortname, documentation links, and release level.
  • google/cloud/apiregistry/v1/cloud_api_registry_client.cc
    • Added the generated C++ client implementation for the Cloud API Registry API.
  • google/cloud/apiregistry/v1/cloud_api_registry_client.h
    • Added the generated C++ client header for the Cloud API Registry API, defining the CloudApiRegistryClient class.
  • google/cloud/apiregistry/v1/cloud_api_registry_connection.cc
    • Added the generated C++ connection implementation for the Cloud API Registry API.
  • google/cloud/apiregistry/v1/cloud_api_registry_connection.h
    • Added the generated C++ connection header for the Cloud API Registry API, defining retry policies and the CloudApiRegistryConnection interface.
  • google/cloud/apiregistry/v1/cloud_api_registry_connection_idempotency_policy.cc
    • Added the generated C++ idempotency policy implementation for the Cloud API Registry API.
  • google/cloud/apiregistry/v1/cloud_api_registry_connection_idempotency_policy.h
    • Added the generated C++ idempotency policy header for the Cloud API Registry API.
  • google/cloud/apiregistry/v1/cloud_api_registry_options.h
    • Added the generated C++ options header for the Cloud API Registry API, defining retry, backoff, and idempotency policy options.
  • google/cloud/apiregistry/v1/internal/cloud_api_registry_auth_decorator.cc
    • Added the generated C++ authentication decorator implementation for the Cloud API Registry API stub.
  • google/cloud/apiregistry/v1/internal/cloud_api_registry_auth_decorator.h
    • Added the generated C++ authentication decorator header for the Cloud API Registry API stub.
  • google/cloud/apiregistry/v1/internal/cloud_api_registry_connection_impl.cc
    • Added the generated C++ connection implementation details for the Cloud API Registry API.
  • google/cloud/apiregistry/v1/internal/cloud_api_registry_connection_impl.h
    • Added the generated C++ connection implementation header for the Cloud API Registry API.
  • google/cloud/apiregistry/v1/internal/cloud_api_registry_logging_decorator.cc
    • Added the generated C++ logging decorator implementation for the Cloud API Registry API stub.
  • google/cloud/apiregistry/v1/internal/cloud_api_registry_logging_decorator.h
    • Added the generated C++ logging decorator header for the Cloud API Registry API stub.
  • google/cloud/apiregistry/v1/internal/cloud_api_registry_metadata_decorator.cc
    • Added the generated C++ metadata decorator implementation for the Cloud API Registry API stub.
  • google/cloud/apiregistry/v1/internal/cloud_api_registry_metadata_decorator.h
    • Added the generated C++ metadata decorator header for the Cloud API Registry API stub.
  • google/cloud/apiregistry/v1/internal/cloud_api_registry_option_defaults.cc
    • Added the generated C++ option defaults implementation for the Cloud API Registry API.
  • google/cloud/apiregistry/v1/internal/cloud_api_registry_option_defaults.h
    • Added the generated C++ option defaults header for the Cloud API Registry API.
  • google/cloud/apiregistry/v1/internal/cloud_api_registry_retry_traits.h
    • Added the generated C++ retry traits header for the Cloud API Registry API, defining permanent failure conditions.
  • google/cloud/apiregistry/v1/internal/cloud_api_registry_sources.cc
    • Added a generated C++ file that includes all other generated source files for the Cloud API Registry API.
  • google/cloud/apiregistry/v1/internal/cloud_api_registry_stub.cc
    • Added the generated C++ stub implementation for the Cloud API Registry API.
  • google/cloud/apiregistry/v1/internal/cloud_api_registry_stub.h
    • Added the generated C++ stub header for the Cloud API Registry API, defining the CloudApiRegistryStub interface.
  • google/cloud/apiregistry/v1/internal/cloud_api_registry_stub_factory.cc
    • Added the generated C++ stub factory implementation for the Cloud API Registry API.
  • google/cloud/apiregistry/v1/internal/cloud_api_registry_stub_factory.h
    • Added the generated C++ stub factory header for the Cloud API Registry API.
  • google/cloud/apiregistry/v1/internal/cloud_api_registry_tracing_connection.cc
    • Added the generated C++ tracing connection implementation for the Cloud API Registry API.
  • google/cloud/apiregistry/v1/internal/cloud_api_registry_tracing_connection.h
    • Added the generated C++ tracing connection header for the Cloud API Registry API.
  • google/cloud/apiregistry/v1/internal/cloud_api_registry_tracing_stub.cc
    • Added the generated C++ tracing stub implementation for the Cloud API Registry API.
  • google/cloud/apiregistry/v1/internal/cloud_api_registry_tracing_stub.h
    • Added the generated C++ tracing stub header for the Cloud API Registry API.
  • google/cloud/apiregistry/v1/mocks/mock_cloud_api_registry_connection.h
    • Added the generated C++ mock connection header for the Cloud API Registry API, facilitating testing.
  • google/cloud/apiregistry/v1/samples/cloud_api_registry_client_samples.cc
    • Added generated C++ client samples for the Cloud API Registry API, demonstrating various configuration options.
  • libraries.bzl
    • Added 'apiregistry' to the GOOGLE_CLOUD_CPP_GA_LIBRARIES list.
Activity
  • The pull request was created by scotthart, initiating the process of adding the Cloud API Registry C++ client library.
  • The changes primarily consist of generated code and configuration updates, indicating an automated library generation workflow.
Using Gemini Code Assist

The 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 /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

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 .gemini/ folder in the base of the repository. Detailed instructions can be found here.

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

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link

@gemini-code-assist gemini-code-assist bot left a comment

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 introduces a new GA client library for the Cloud API Registry service. The changes include the generated C++ client code, updates to build files (CMake, Bazel), documentation, and a quickstart example. The implementation follows the established patterns for new libraries in this repository. The code appears to be correctly generated and integrated. I have reviewed the changes and I have no comments.

@codecov
Copy link

codecov bot commented Feb 5, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.96%. Comparing base (14c94b4) to head (8464680).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #15936   +/-   ##
=======================================
  Coverage   92.96%   92.96%           
=======================================
  Files        2460     2460           
  Lines      228901   228901           
=======================================
+ Hits       212791   212805   +14     
+ Misses      16110    16096   -14     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@scotthart scotthart merged commit 6b12774 into googleapis:main Feb 5, 2026
63 of 64 checks passed
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