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 Data Loss Prevention (DLP) API 19 * 20 * <p>The interfaces provided are listed below, along with usage samples. 21 * 22 * <p>======================= DlpServiceClient ======================= 23 * 24 * <p>Service Description: The Cloud Data Loss Prevention (DLP) API is a service that allows clients 25 * to detect the presence of Personally Identifiable Information (PII) and other privacy-sensitive 26 * data in user-supplied, unstructured data streams, like text blocks or images. The service also 27 * includes methods for sensitive data redaction and scheduling of data scans on Google Cloud 28 * Platform based data sets. 29 * 30 * <p>To learn more about concepts and find how-to guides see https://cloud.google.com/dlp/docs/. 31 * 32 * <p>Sample for DlpServiceClient: 33 * 34 * <pre>{@code 35 * // This snippet has been automatically generated and should be regarded as a code template only. 36 * // It will require modifications to work: 37 * // - It may require correct/in-range values for request initialization. 38 * // - It may require specifying regional endpoints when creating the service client as shown in 39 * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library 40 * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { 41 * InspectContentRequest request = 42 * InspectContentRequest.newBuilder() 43 * .setParent(ProjectName.of("[PROJECT]").toString()) 44 * .setInspectConfig(InspectConfig.newBuilder().build()) 45 * .setItem(ContentItem.newBuilder().build()) 46 * .setInspectTemplateName("inspectTemplateName1828857433") 47 * .setLocationId("locationId1541836720") 48 * .build(); 49 * InspectContentResponse response = dlpServiceClient.inspectContent(request); 50 * } 51 * }</pre> 52 */ 53 @Generated("by gapic-generator-java") 54 package com.google.cloud.dlp.v2; 55 56 import javax.annotation.Generated; 57