The interfaces provided are listed below, along with usage samples.
CloudBillingClient
Service Description: Retrieves GCP Console billing accounts and associates them with projects.
Sample for CloudBillingClient:
// This snippet has been automatically generated for illustrative purposes only.// It may require modifications to work in your environment.try(CloudBillingClientcloudBillingClient=CloudBillingClient.create()){BillingAccountNamename=BillingAccountName.of("[BILLING_ACCOUNT]");BillingAccountresponse=cloudBillingClient.getBillingAccount(name);}
CloudCatalogClient
Service Description: A catalog of Google Cloud Platform services and SKUs. Provides pricing
information and metadata on Google Cloud Platform services and SKUs.
Sample for CloudCatalogClient:
// This snippet has been automatically generated for illustrative purposes only.// It may require modifications to work in your environment.try(CloudCatalogClientcloudCatalogClient=CloudCatalogClient.create()){for(Serviceelement:cloudCatalogClient.listServices().iterateAll()){// doThingsWith(element);}}
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-03-14 UTC."],[],[]]