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 Google Cloud Data Catalog API 19 * 20 * <p>The interfaces provided are listed below, along with usage samples. 21 * 22 * <p>======================= DataCatalogClient ======================= 23 * 24 * <p>Service Description: Data Catalog API service allows clients to discover, understand, and 25 * manage their data. 26 * 27 * <p>Sample for DataCatalogClient: 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 (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { 36 * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); 37 * String entryGroupId = "entryGroupId1228924712"; 38 * EntryGroup entryGroup = EntryGroup.newBuilder().build(); 39 * EntryGroup response = dataCatalogClient.createEntryGroup(parent, entryGroupId, entryGroup); 40 * } 41 * }</pre> 42 * 43 * <p>======================= PolicyTagManagerClient ======================= 44 * 45 * <p>Service Description: The policy tag manager API service allows clients to manage their 46 * taxonomies and policy tags. 47 * 48 * <p>Sample for PolicyTagManagerClient: 49 * 50 * <pre>{@code 51 * // This snippet has been automatically generated and should be regarded as a code template only. 52 * // It will require modifications to work: 53 * // - It may require correct/in-range values for request initialization. 54 * // - It may require specifying regional endpoints when creating the service client as shown in 55 * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library 56 * try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) { 57 * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); 58 * Taxonomy taxonomy = Taxonomy.newBuilder().build(); 59 * Taxonomy response = policyTagManagerClient.createTaxonomy(parent, taxonomy); 60 * } 61 * }</pre> 62 * 63 * <p>======================= PolicyTagManagerSerializationClient ======================= 64 * 65 * <p>Service Description: Policy tag manager serialization API service allows clients to manipulate 66 * their taxonomies and policy tags data with serialized format. 67 * 68 * <p>Sample for PolicyTagManagerSerializationClient: 69 * 70 * <pre>{@code 71 * // This snippet has been automatically generated and should be regarded as a code template only. 72 * // It will require modifications to work: 73 * // - It may require correct/in-range values for request initialization. 74 * // - It may require specifying regional endpoints when creating the service client as shown in 75 * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library 76 * try (PolicyTagManagerSerializationClient policyTagManagerSerializationClient = 77 * PolicyTagManagerSerializationClient.create()) { 78 * ImportTaxonomiesRequest request = 79 * ImportTaxonomiesRequest.newBuilder() 80 * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) 81 * .build(); 82 * ImportTaxonomiesResponse response = 83 * policyTagManagerSerializationClient.importTaxonomies(request); 84 * } 85 * }</pre> 86 */ 87 @Generated("by gapic-generator-java") 88 package com.google.cloud.datacatalog.v1beta1; 89 90 import javax.annotation.Generated; 91