C++ Cloud Client Libraries

The Cloud Client Libraries are the recommended way to access Google Cloud APIs programmatically. The Cloud Client Libraries support accessing Google Cloud services in a way that significantly reduces the boilerplate code you have to write. The libraries provide high-level API abstractions so they're easier to understand. They embrace idioms of the language, work well with the standard library, and integrate better with your codebase.

For more information about client libraries for Cloud APIs, see Cloud Client Libraries explained.

Click an API to find out how to use it in C++:

Libraries
AI Platform google-cloud-cpp::aiplatform::v1
API Gateway google-cloud-cpp::apigateway::v1
API Keys API google-cloud-cpp::apikeys::v2
Access Approval google-cloud-cpp::accessapproval::v1
Access Context Manager google-cloud-cpp::accesscontextmanager::v1
Advisory Notifications google-cloud-cpp::advisorynotifications::v1
AlloyDB for PostgreSQL google-cloud-cpp::alloydb::v1
Analytics Hub API google-cloud-cpp::bigquery::analyticshub::v1
Apigee Connect API google-cloud-cpp::apigeeconnect::v1
App Engine Admin API google-cloud-cpp::appengine::v1
App Hub google-cloud-cpp::apphub::v1
Artifact Registry google-cloud-cpp::artifactregistry::v1
Assured Workloads google-cloud-cpp::assuredworkloads::v1
AutoML google-cloud-cpp::automl::v1
Backup and DR google-cloud-cpp::backupdr::v1
Backup for GKE google-cloud-cpp::gkebackup::v1
Bare Metal Solution google-cloud-cpp::baremetalsolution::v2
Batch google-cloud-cpp::batch::v1
BeyondCorp Enterprise google-cloud-cpp::beyondcorp::appgateways::v1
BigLake API google-cloud-cpp::bigquery::biglake::v1
BigQuery google-cloud-cpp::bigquerycontrol::v2
BigQuery Connection API google-cloud-cpp::bigquery::connection::v1
BigQuery Data Transfer Service google-cloud-cpp::bigquery::datatransfer::v1
BigQuery DataPolicy API google-cloud-cpp::bigquery::datapolicies::v1
BigQuery Migration google-cloud-cpp::bigquery::migration::v2
BigQuery Reservation API google-cloud-cpp::bigquery::reservation::v1
BigQuery Storage google-cloud-cpp::bigquery::storage::v1
Bigtable google-cloud-cpp::bigtable
Binary Authorization google-cloud-cpp::binaryauthorization::v1
Certificate Authority Service google-cloud-cpp::privateca::v1
Certificate Manager google-cloud-cpp::certificatemanager::v1
Channel Services google-cloud-cpp::channel::v1
Cloud Asset Inventory google-cloud-cpp::asset::v1
Cloud Billing google-cloud-cpp::billing::v1
Cloud Billing Budget API google-cloud-cpp::billing::budgets::v1
Cloud Build google-cloud-cpp::cloudbuild::v1
google-cloud-cpp::cloudbuild::v2
Cloud Composer google-cloud-cpp::composer::v1
Cloud Data Fusion google-cloud-cpp::datafusion::v1
Cloud Database Migration Service google-cloud-cpp::datamigration::v1
Cloud Domains google-cloud-cpp::domains::v1
Cloud IDS google-cloud-cpp::ids::v1
Cloud Key Management Service google-cloud-cpp::kms::v1
Cloud Logging google-cloud-cpp::logging::v2
Cloud Monitoring google-cloud-cpp::monitoring::metricsscope::v1
Cloud Natural Language API google-cloud-cpp::language::v1
google-cloud-cpp::language::v2
Cloud OS Config google-cloud-cpp::osconfig::agentendpoint::v1
Cloud OS Login API google-cloud-cpp::oslogin::v1
Cloud Optimization AI google-cloud-cpp::optimization::v1
Cloud Profiler google-cloud-cpp::profiler::v2
Cloud Quotas google-cloud-cpp::cloudquotas::v1
Cloud Run google-cloud-cpp::run::v2
Cloud Run functions google-cloud-cpp::functions::v1
Cloud SQL Admin API google-cloud-cpp::sql::v1
Cloud Scheduler google-cloud-cpp::scheduler::v1
Cloud Shell google-cloud-cpp::shell::v1
Cloud Storage google-cloud-cpp::storage
google-cloud-cpp::storagecontrol::v2
Cloud TPU google-cloud-cpp::tpu::v1
Cloud Talent Solution Job Search google-cloud-cpp::talent::v4
Cloud Tasks google-cloud-cpp::tasks::v2
Cloud Trace google-cloud-cpp::trace::v2
Cloud Translation google-cloud-cpp::translate::v3
Cloud Vision google-cloud-cpp::vision::v1
Cloud Workstations google-cloud-cpp::workstations::v1
Compute Engine google-cloud-cpp::compute
google-cloud-cpp::compute::v1
Confidential Space google-cloud-cpp::confidentialcomputing::v1
Confidential VM google-cloud-cpp::confidentialcomputing::v1
Connect Gateway API google-cloud-cpp::gkeconnect::gateway::v1
Contact Center AI Insights google-cloud-cpp::contactcenterinsights::v1
Container Analysis google-cloud-cpp::containeranalysis::v1
Data Catalog google-cloud-cpp::datacatalog::v1
Data Lineage google-cloud-cpp::datacatalog::lineage::v1
Dataplex google-cloud-cpp::dataplex::v1
Dataproc google-cloud-cpp::dataproc::v1
Dataproc Metastore google-cloud-cpp::metastore::v1
Datastream google-cloud-cpp::datastream::v1
Developer Connect google-cloud-cpp::developerconnect::v1
Dialogflow google-cloud-cpp::dialogflow_cx
google-cloud-cpp::dialogflow_es
Discovery Engine API google-cloud-cpp::discoveryengine::v1
Document AI google-cloud-cpp::documentai::v1
Document AI Warehouse google-cloud-cpp::contentwarehouse::v1
Essential Contacts API google-cloud-cpp::essentialcontacts::v1
Eventarc google-cloud-cpp::eventarc::v1
Eventarc Publishing API google-cloud-cpp::eventarc::publishing::v1
Filestore google-cloud-cpp::filestore::v1
Firestore in Datastore mode google-cloud-cpp::datastore::v1
GKE Hub API google-cloud-cpp::gkehub::v1
Google Cloud Deploy google-cloud-cpp::deploy::v1
Google Cloud Managed Service for Apache Kafka google-cloud-cpp::managedkafka::v1
Google Cloud VMware Engine google-cloud-cpp::vmwareengine::v1
IAM Policy Troubleshooter API google-cloud-cpp::policytroubleshooter::iam::v3
IAM Service Account Credentials API google-cloud-cpp::iam::credentials::v1
Identity and Access Management google-cloud-cpp::iam::admin::v1
google-cloud-cpp::iam::v2
Identity-Aware Proxy google-cloud-cpp::iap::v1
Infrastructure Manager google-cloud-cpp::config::v1
Integration Connectors google-cloud-cpp::connectors::v1
Kubernetes Engine API google-cloud-cpp::container::v1
Live Stream API google-cloud-cpp::video::livestream::v1
Managed Service for Microsoft Active Directory google-cloud-cpp::managedidentities::v1
Media CDN google-cloud-cpp::networkservices::v1
Memorystore for Memcached google-cloud-cpp::memcache::v1
Memorystore for Redis google-cloud-cpp::redis::cluster::v1
google-cloud-cpp::redis::v1
Migrate to Virtual Machines google-cloud-cpp::vmmigration::v1
Migration Center google-cloud-cpp::migrationcenter::v1
NetApp Volumes google-cloud-cpp::netapp::v1
Network Connectivity Center google-cloud-cpp::networkconnectivity::v1
Network Management API google-cloud-cpp::networkmanagement::v1
Network Security API google-cloud-cpp::networksecurity::v1
Organization Policy google-cloud-cpp::orgpolicy::v2
Parallelstore google-cloud-cpp::parallelstore::v1
Pub/Sub google-cloud-cpp::pubsub
Pub/Sub Lite google-cloud-cpp::pubsublite
Public Certificate Authority google-cloud-cpp::publicca::v1
Recommender google-cloud-cpp::recommender::v1
Resource Manager google-cloud-cpp::resourcemanager::v3
Resource Settings API google-cloud-cpp::resourcesettings::v1
Retail API google-cloud-cpp::retail::v2
Secret Manager google-cloud-cpp::secretmanager::v1
Secure Source Manager google-cloud-cpp::securesourcemanager::v1
Security Command Center google-cloud-cpp::securitycenter::v2
Sensitive Data Protection google-cloud-cpp::dlp::v2
Service Control API google-cloud-cpp::servicecontrol::v1
Service Directory google-cloud-cpp::servicedirectory::v1
Service Health google-cloud-cpp::servicehealth::v1
Service Management API google-cloud-cpp::servicemanagement::v1
Service Usage google-cloud-cpp::serviceusage::v1
Spanner google-cloud-cpp::spanner
Speech-to-Text google-cloud-cpp::speech::v1
google-cloud-cpp::speech::v2
Storage Insights google-cloud-cpp::storageinsights::v1
Storage Transfer Service google-cloud-cpp::storagetransfer::v1
Text-to-Speech google-cloud-cpp::texttospeech::v1
Transcoder API google-cloud-cpp::video::transcoder::v1
Vertex AI google-cloud-cpp::aiplatform::v1
Vertex AI Workbench google-cloud-cpp::notebooks::v1
google-cloud-cpp::notebooks::v2
Video Intelligence API google-cloud-cpp::videointelligence::v1
Video Stitcher API google-cloud-cpp::video::stitcher::v1
Virtual Private Cloud google-cloud-cpp::vpcaccess::v1
Web Risk google-cloud-cpp::webrisk::v1
Web Security Scanner google-cloud-cpp::websecurityscanner::v1
Workflow Executions API google-cloud-cpp::workflows::executions::v1
Workflows google-cloud-cpp::workflows::v1
reCAPTCHA google-cloud-cpp::recaptchaenterprise::v1