Java 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 Java:

Libraries
AI Platform com.google.cloud:google-cloud-aiplatform
AI Platform Data Labeling Service com.google.cloud:google-cloud-datalabeling
API Gateway com.google.cloud:google-cloud-api-gateway
API Keys API com.google.cloud:google-cloud-apikeys
Access Approval com.google.cloud:google-cloud-accessapproval
Access Context Manager com.google.cloud:google-identity-accesscontextmanager
Advisory Notifications com.google.cloud:google-cloud-advisorynotifications
AlloyDB for PostgreSQL com.google.cloud:google-cloud-alloydb
com.google.cloud:google-cloud-alloydb-connectors
Analytics Hub API com.google.cloud:google-cloud-analyticshub
com.google.cloud:google-cloud-bigquery-data-exchange
Apigee Connect API com.google.cloud:google-cloud-apigee-connect
Apigee Registry com.google.cloud:google-cloud-apigee-registry
App Engine Admin API com.google.cloud:google-cloud-appengine-admin
App Hub com.google.cloud:google-cloud-apphub
Artifact Registry com.google.cloud:google-cloud-artifact-registry
Assured Workloads com.google.cloud:google-cloud-assured-workloads
AutoML com.google.cloud:google-cloud-automl
Backup and DR com.google.cloud:google-cloud-backupdr
Bare Metal Solution com.google.cloud:google-cloud-bare-metal-solution
Batch com.google.cloud:google-cloud-batch
BigLake API com.google.cloud:google-cloud-biglake
BigQuery com.google.cloud:google-cloud-bigquery
BigQuery Connection API com.google.cloud:google-cloud-bigqueryconnection
BigQuery Data Transfer Service com.google.cloud:google-cloud-bigquerydatatransfer
BigQuery DataPolicy API com.google.cloud:google-cloud-bigquerydatapolicy
BigQuery Migration com.google.cloud:google-cloud-bigquerymigration
BigQuery Reservation API com.google.cloud:google-cloud-bigqueryreservation
BigQuery Storage com.google.cloud:google-cloud-bigquerystorage
Bigtable com.google.cloud:google-cloud-bigtable
Binary Authorization com.google.cloud:google-cloud-binary-authorization
Certificate Authority Service com.google.cloud:google-cloud-security-private-ca
Certificate Manager com.google.cloud:google-cloud-certificate-manager
Channel Services com.google.cloud:google-cloud-channel
Chat API com.google.cloud:google-cloud-chat
Cloud Asset Inventory com.google.cloud:google-cloud-asset
Cloud Billing com.google.cloud:google-cloud-billing
Cloud Billing Budget API com.google.cloud:google-cloud-billingbudgets
Cloud Build com.google.cloud:google-cloud-build
Cloud DNS com.google.cloud:google-cloud-dns
Cloud Data Fusion com.google.cloud:google-cloud-data-fusion
Cloud Database Migration Service com.google.cloud:google-cloud-dms
Cloud Debugger com.google.cloud:google-cloud-debugger-client
Cloud Domains com.google.cloud:google-cloud-domains
Cloud IDS com.google.cloud:google-cloud-ids
Cloud Key Management Service com.google.cloud:google-cloud-kms
Cloud Life Sciences com.google.cloud:google-cloud-life-sciences
Cloud Logging com.google.cloud:google-cloud-logging
Cloud Monitoring com.google.cloud:google-cloud-monitoring
Cloud Monitoring Dashboards com.google.cloud:google-cloud-monitoring-dashboard
Cloud Natural Language API com.google.cloud:google-cloud-language
Cloud OS Config com.google.cloud:google-cloud-os-config
Cloud OS Login API com.google.cloud:google-cloud-os-login
Cloud Optimization AI com.google.cloud:google-cloud-optimization
Cloud Profiler com.google.cloud:google-cloud-profiler
Cloud Quotas com.google.cloud:google-cloud-cloudquotas
Cloud Run com.google.cloud:google-cloud-run
Cloud Run functions com.google.cloud:google-cloud-functions
Cloud Scheduler com.google.cloud:google-cloud-scheduler
Cloud Shell com.google.cloud:google-cloud-shell
Cloud Storage com.google.cloud:google-cloud-storage
Cloud TPU com.google.cloud:google-cloud-tpu
Cloud Talent Solution Job Search com.google.cloud:google-cloud-talent
Cloud Tasks com.google.cloud:google-cloud-tasks
Cloud Trace com.google.cloud:google-cloud-trace
Cloud Translation com.google.cloud:google-cloud-translate
Cloud Vision com.google.cloud:google-cloud-vision
Cloud Workstations com.google.cloud:google-cloud-workstations
Compute Engine com.google.cloud:google-cloud-compute
Confidential Space com.google.cloud:google-cloud-confidentialcomputing
Confidential VM com.google.cloud:google-cloud-confidentialcomputing
Connect Gateway API com.google.cloud:google-cloud-connectgateway
com.google.cloud:google-cloud-gke-connect-gateway
Contact Center AI Insights com.google.cloud:google-cloud-contact-center-insights
Container Analysis com.google.cloud:google-cloud-containeranalysis
Data Catalog com.google.cloud:google-cloud-datacatalog
Data Lineage com.google.cloud:google-cloud-datalineage
Dataflow com.google.cloud:google-cloud-dataflow
Dataform com.google.cloud:google-cloud-dataform
Dataplex com.google.cloud:google-cloud-dataplex
Dataproc com.google.cloud:google-cloud-dataproc
Dataproc Metastore com.google.cloud:google-cloud-dataproc-metastore
Datastream com.google.cloud:google-cloud-datastream
Developer Connect com.google.cloud:google-cloud-developerconnect
Dialogflow com.google.cloud:google-cloud-dialogflow
Dialogflow CX com.google.cloud:google-cloud-dialogflow-cx
Discovery Engine API com.google.cloud:google-cloud-discoveryengine
Document AI com.google.cloud:google-cloud-document-ai
Document AI Warehouse com.google.cloud:google-cloud-contentwarehouse
Enterprise Knowledge Graph com.google.cloud:google-cloud-enterpriseknowledgegraph
Error Reporting com.google.cloud:google-cloud-errorreporting
Essential Contacts API com.google.cloud:google-cloud-essential-contacts
Eventarc com.google.cloud:google-cloud-eventarc
Eventarc Publishing API com.google.cloud:google-cloud-eventarc-publishing
Filestore com.google.cloud:google-cloud-filestore
Firestore com.google.cloud:google-cloud-firestore
Firestore in Datastore mode com.google.cloud:google-cloud-datastore
GKE Hub API com.google.cloud:google-cloud-gkehub
Google Cloud Deploy com.google.cloud:google-cloud-deploy
Google Cloud Managed Service for Apache Kafka com.google.cloud:google-cloud-managedkafka
Google Cloud VMware Engine com.google.cloud:google-cloud-vmwareengine
Google Distributed Cloud connected com.google.cloud:google-cloud-distributedcloudedge
Google Meet com.google.cloud:google-cloud-meet
Google Workspace Add-ons API com.google.cloud:google-cloud-gsuite-addons
Google Workspace Events API com.google.cloud:google-cloud-workspaceevents
IAM Policy Troubleshooter API com.google.cloud:google-cloud-policy-troubleshooter
IAM Service Account Credentials API com.google.cloud:google-cloud-iamcredentials
Identity and Access Management com.google.cloud:google-iam-policy
Identity-Aware Proxy com.google.cloud:google-cloud-iap
IoT Core com.google.cloud:google-cloud-iot
Kubernetes Engine API com.google.cloud:google-cloud-container
Live Stream API com.google.cloud:google-cloud-live-stream
Managed Service for Microsoft Active Directory com.google.cloud:google-cloud-managed-identities
Media CDN com.google.cloud:google-cloud-networkservices
Media Translation com.google.cloud:google-cloud-mediatranslation
Memorystore for Memcached com.google.cloud:google-cloud-memcache
Memorystore for Redis com.google.cloud:google-cloud-redis
com.google.cloud:google-cloud-valkey
Migrate to Virtual Machines com.google.cloud:google-cloud-vmmigration
Migration Center com.google.cloud:google-cloud-migrationcenter
NetApp Volumes com.google.cloud:google-cloud-netapp
Network Connectivity Center com.google.cloud:google-cloud-networkconnectivity
Network Management API com.google.cloud:google-cloud-network-management
Network Security API com.google.cloud:google-cloud-network-security
Oracle Database@Google Cloud com.google.cloud:google-cloud-oracledatabase
Organization Policy com.google.cloud:google-cloud-orgpolicy
Parallelstore com.google.cloud:google-cloud-parallelstore
Phishing Protection com.google.cloud:google-cloud-phishingprotection
Pub/Sub com.google.cloud:google-cloud-pubsub
Pub/Sub Lite com.google.cloud:google-cloud-pubsublite
com.google.cloud:pubsublite-kafka
Public Certificate Authority com.google.cloud:google-cloud-publicca
Recommendations com.google.cloud:google-cloud-recommendations-ai
Recommender com.google.cloud:google-cloud-recommender
Resource Manager com.google.cloud:google-cloud-resourcemanager
Resource Settings API com.google.cloud:google-cloud-resource-settings
Retail API com.google.cloud:google-cloud-retail
Route Optimization API com.google.maps:google-maps-routeoptimization
Secret Manager com.google.cloud:google-cloud-secretmanager
Secure Source Manager com.google.cloud:google-cloud-securesourcemanager
Security Command Center com.google.cloud:google-cloud-securitycenter
com.google.cloud:google-cloud-securitycenter-settings
Sensitive Data Protection com.google.cloud:google-cloud-dlp
Service Control API com.google.cloud:google-cloud-service-control
Service Directory com.google.cloud:google-cloud-servicedirectory
Service Health com.google.cloud:google-cloud-servicehealth
Service Management API com.google.cloud:google-cloud-service-management
Service Usage com.google.cloud:google-cloud-service-usage
Spanner com.google.cloud:google-cloud-spanner
Speech-to-Text com.google.cloud:google-cloud-speech
Storage Insights com.google.cloud:google-cloud-storageinsights
Storage Transfer Service com.google.cloud:google-cloud-storage-transfer
Text-to-Speech com.google.cloud:google-cloud-texttospeech
Transcoder API com.google.cloud:google-cloud-video-transcoder
Vertex AI com.google.cloud:google-cloud-aiplatform
Vertex AI Vision com.google.cloud:google-cloud-visionai
Vertex AI Workbench com.google.cloud:google-cloud-notebooks
Video Intelligence API com.google.cloud:google-cloud-video-intelligence
Video Stitcher API com.google.cloud:google-cloud-video-stitcher
Virtual Private Cloud com.google.cloud:google-cloud-vpcaccess
Web Risk com.google.cloud:google-cloud-webrisk
Web Security Scanner com.google.cloud:google-cloud-websecurityscanner
Workflow Executions API com.google.cloud:google-cloud-workflow-executions
Workflows com.google.cloud:google-cloud-workflows
reCAPTCHA com.google.cloud:google-cloud-recaptchaenterprise