1 /* 2 * Copyright 2022 Google LLC 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * https://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 /** 18 * A client to Cloud Billing API 19 * 20 * <p>The interfaces provided are listed below, along with usage samples. 21 * 22 * <p>======================= CloudBillingClient ======================= 23 * 24 * <p>Service Description: Retrieves the Google Cloud Console billing accounts and associates them 25 * with projects. 26 * 27 * <p>Sample for CloudBillingClient: 28 * 29 * <pre>{@code 30 * // This snippet has been automatically generated and should be regarded as a code template only. 31 * // It will require modifications to work: 32 * // - It may require correct/in-range values for request initialization. 33 * // - It may require specifying regional endpoints when creating the service client as shown in 34 * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library 35 * try (CloudBillingClient cloudBillingClient = CloudBillingClient.create()) { 36 * BillingAccountName name = BillingAccountName.of("[BILLING_ACCOUNT]"); 37 * BillingAccount response = cloudBillingClient.getBillingAccount(name); 38 * } 39 * }</pre> 40 * 41 * <p>======================= CloudCatalogClient ======================= 42 * 43 * <p>Service Description: A catalog of Google Cloud Platform services and SKUs. Provides pricing 44 * information and metadata on Google Cloud Platform services and SKUs. 45 * 46 * <p>Sample for CloudCatalogClient: 47 * 48 * <pre>{@code 49 * // This snippet has been automatically generated and should be regarded as a code template only. 50 * // It will require modifications to work: 51 * // - It may require correct/in-range values for request initialization. 52 * // - It may require specifying regional endpoints when creating the service client as shown in 53 * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library 54 * try (CloudCatalogClient cloudCatalogClient = CloudCatalogClient.create()) { 55 * for (Service element : cloudCatalogClient.listServices().iterateAll()) { 56 * // doThingsWith(element); 57 * } 58 * } 59 * }</pre> 60 */ 61 @Generated("by gapic-generator-java") 62 package com.google.cloud.billing.v1; 63 64 import javax.annotation.Generated; 65