diff --git a/grpc-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DlpServiceGrpc.java b/grpc-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DlpServiceGrpc.java deleted file mode 100644 index d5f3bc09..00000000 --- a/grpc-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DlpServiceGrpc.java +++ /dev/null @@ -1,4574 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.google.privacy.dlp.v2; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * The Cloud Data Loss Prevention (DLP) API is a service that allows clients - * to detect the presence of Personally Identifiable Information (PII) and other - * privacy-sensitive data in user-supplied, unstructured data streams, like text - * blocks or images. - * The service also includes methods for sensitive data redaction and - * scheduling of data scans on Google Cloud Platform based data sets. - * To learn more about concepts and find how-to guides see - * https://cloud.google.com/dlp/docs/. - *- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/privacy/dlp/v2/dlp.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class DlpServiceGrpc { - - private DlpServiceGrpc() {} - - public static final String SERVICE_NAME = "google.privacy.dlp.v2.DlpService"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.privacy.dlp.v2.InspectContentRequest, - com.google.privacy.dlp.v2.InspectContentResponse> - getInspectContentMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "InspectContent", - requestType = com.google.privacy.dlp.v2.InspectContentRequest.class, - responseType = com.google.privacy.dlp.v2.InspectContentResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.privacy.dlp.v2.InspectContentRequest, - com.google.privacy.dlp.v2.InspectContentResponse> - getInspectContentMethod() { - io.grpc.MethodDescriptor< - com.google.privacy.dlp.v2.InspectContentRequest, - com.google.privacy.dlp.v2.InspectContentResponse> - getInspectContentMethod; - if ((getInspectContentMethod = DlpServiceGrpc.getInspectContentMethod) == null) { - synchronized (DlpServiceGrpc.class) { - if ((getInspectContentMethod = DlpServiceGrpc.getInspectContentMethod) == null) { - DlpServiceGrpc.getInspectContentMethod = - getInspectContentMethod = - io.grpc.MethodDescriptor - .
- * The Cloud Data Loss Prevention (DLP) API is a service that allows clients - * to detect the presence of Personally Identifiable Information (PII) and other - * privacy-sensitive data in user-supplied, unstructured data streams, like text - * blocks or images. - * The service also includes methods for sensitive data redaction and - * scheduling of data scans on Google Cloud Platform based data sets. - * To learn more about concepts and find how-to guides see - * https://cloud.google.com/dlp/docs/. - *- */ - public abstract static class DlpServiceImplBase implements io.grpc.BindableService { - - /** - * - * - *
- * Finds potentially sensitive info in content. - * This method has limits on input size, processing time, and output size. - * When no InfoTypes or CustomInfoTypes are specified in this request, the - * system will automatically choose what detectors to run. By default this may - * be all types, but may change over time as detectors are updated. - * For how to guides, see https://cloud.google.com/dlp/docs/inspecting-images - * and https://cloud.google.com/dlp/docs/inspecting-text, - *- */ - public void inspectContent( - com.google.privacy.dlp.v2.InspectContentRequest request, - io.grpc.stub.StreamObserver
- * Redacts potentially sensitive info from an image. - * This method has limits on input size, processing time, and output size. - * See https://cloud.google.com/dlp/docs/redacting-sensitive-data-images to - * learn more. - * When no InfoTypes or CustomInfoTypes are specified in this request, the - * system will automatically choose what detectors to run. By default this may - * be all types, but may change over time as detectors are updated. - *- */ - public void redactImage( - com.google.privacy.dlp.v2.RedactImageRequest request, - io.grpc.stub.StreamObserver
- * De-identifies potentially sensitive info from a ContentItem. - * This method has limits on input size and output size. - * See https://cloud.google.com/dlp/docs/deidentify-sensitive-data to - * learn more. - * When no InfoTypes or CustomInfoTypes are specified in this request, the - * system will automatically choose what detectors to run. By default this may - * be all types, but may change over time as detectors are updated. - *- */ - public void deidentifyContent( - com.google.privacy.dlp.v2.DeidentifyContentRequest request, - io.grpc.stub.StreamObserver
- * Re-identifies content that has been de-identified. - * See - * https://cloud.google.com/dlp/docs/pseudonymization#re-identification_in_free_text_code_example - * to learn more. - *- */ - public void reidentifyContent( - com.google.privacy.dlp.v2.ReidentifyContentRequest request, - io.grpc.stub.StreamObserver
- * Returns a list of the sensitive information types that DLP API - * supports. See https://cloud.google.com/dlp/docs/infotypes-reference to - * learn more. - *- */ - public void listInfoTypes( - com.google.privacy.dlp.v2.ListInfoTypesRequest request, - io.grpc.stub.StreamObserver
- * Creates an InspectTemplate for reusing frequently used configuration - * for inspecting content, images, and storage. - * See https://cloud.google.com/dlp/docs/creating-templates to learn more. - *- */ - public void createInspectTemplate( - com.google.privacy.dlp.v2.CreateInspectTemplateRequest request, - io.grpc.stub.StreamObserver
- * Updates the InspectTemplate. - * See https://cloud.google.com/dlp/docs/creating-templates to learn more. - *- */ - public void updateInspectTemplate( - com.google.privacy.dlp.v2.UpdateInspectTemplateRequest request, - io.grpc.stub.StreamObserver
- * Gets an InspectTemplate. - * See https://cloud.google.com/dlp/docs/creating-templates to learn more. - *- */ - public void getInspectTemplate( - com.google.privacy.dlp.v2.GetInspectTemplateRequest request, - io.grpc.stub.StreamObserver
- * Lists InspectTemplates. - * See https://cloud.google.com/dlp/docs/creating-templates to learn more. - *- */ - public void listInspectTemplates( - com.google.privacy.dlp.v2.ListInspectTemplatesRequest request, - io.grpc.stub.StreamObserver
- * Deletes an InspectTemplate. - * See https://cloud.google.com/dlp/docs/creating-templates to learn more. - *- */ - public void deleteInspectTemplate( - com.google.privacy.dlp.v2.DeleteInspectTemplateRequest request, - io.grpc.stub.StreamObserver
- * Creates a DeidentifyTemplate for reusing frequently used configuration - * for de-identifying content, images, and storage. - * See https://cloud.google.com/dlp/docs/creating-templates-deid to learn - * more. - *- */ - public void createDeidentifyTemplate( - com.google.privacy.dlp.v2.CreateDeidentifyTemplateRequest request, - io.grpc.stub.StreamObserver
- * Updates the DeidentifyTemplate. - * See https://cloud.google.com/dlp/docs/creating-templates-deid to learn - * more. - *- */ - public void updateDeidentifyTemplate( - com.google.privacy.dlp.v2.UpdateDeidentifyTemplateRequest request, - io.grpc.stub.StreamObserver
- * Gets a DeidentifyTemplate. - * See https://cloud.google.com/dlp/docs/creating-templates-deid to learn - * more. - *- */ - public void getDeidentifyTemplate( - com.google.privacy.dlp.v2.GetDeidentifyTemplateRequest request, - io.grpc.stub.StreamObserver
- * Lists DeidentifyTemplates. - * See https://cloud.google.com/dlp/docs/creating-templates-deid to learn - * more. - *- */ - public void listDeidentifyTemplates( - com.google.privacy.dlp.v2.ListDeidentifyTemplatesRequest request, - io.grpc.stub.StreamObserver
- * Deletes a DeidentifyTemplate. - * See https://cloud.google.com/dlp/docs/creating-templates-deid to learn - * more. - *- */ - public void deleteDeidentifyTemplate( - com.google.privacy.dlp.v2.DeleteDeidentifyTemplateRequest request, - io.grpc.stub.StreamObserver
- * Creates a job trigger to run DLP actions such as scanning storage for - * sensitive information on a set schedule. - * See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more. - *- */ - public void createJobTrigger( - com.google.privacy.dlp.v2.CreateJobTriggerRequest request, - io.grpc.stub.StreamObserver
- * Updates a job trigger. - * See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more. - *- */ - public void updateJobTrigger( - com.google.privacy.dlp.v2.UpdateJobTriggerRequest request, - io.grpc.stub.StreamObserver
- * Inspect hybrid content and store findings to a trigger. The inspection - * will be processed asynchronously. To review the findings monitor the - * jobs within the trigger. - *- */ - public void hybridInspectJobTrigger( - com.google.privacy.dlp.v2.HybridInspectJobTriggerRequest request, - io.grpc.stub.StreamObserver
- * Gets a job trigger. - * See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more. - *- */ - public void getJobTrigger( - com.google.privacy.dlp.v2.GetJobTriggerRequest request, - io.grpc.stub.StreamObserver
- * Lists job triggers. - * See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more. - *- */ - public void listJobTriggers( - com.google.privacy.dlp.v2.ListJobTriggersRequest request, - io.grpc.stub.StreamObserver
- * Deletes a job trigger. - * See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more. - *- */ - public void deleteJobTrigger( - com.google.privacy.dlp.v2.DeleteJobTriggerRequest request, - io.grpc.stub.StreamObserver
- * Activate a job trigger. Causes the immediate execute of a trigger - * instead of waiting on the trigger event to occur. - *- */ - public void activateJobTrigger( - com.google.privacy.dlp.v2.ActivateJobTriggerRequest request, - io.grpc.stub.StreamObserver
- * Creates a new job to inspect storage or calculate risk metrics. - * See https://cloud.google.com/dlp/docs/inspecting-storage and - * https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more. - * When no InfoTypes or CustomInfoTypes are specified in inspect jobs, the - * system will automatically choose what detectors to run. By default this may - * be all types, but may change over time as detectors are updated. - *- */ - public void createDlpJob( - com.google.privacy.dlp.v2.CreateDlpJobRequest request, - io.grpc.stub.StreamObserver
- * Lists DlpJobs that match the specified filter in the request. - * See https://cloud.google.com/dlp/docs/inspecting-storage and - * https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more. - *- */ - public void listDlpJobs( - com.google.privacy.dlp.v2.ListDlpJobsRequest request, - io.grpc.stub.StreamObserver
- * Gets the latest state of a long-running DlpJob. - * See https://cloud.google.com/dlp/docs/inspecting-storage and - * https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more. - *- */ - public void getDlpJob( - com.google.privacy.dlp.v2.GetDlpJobRequest request, - io.grpc.stub.StreamObserver
- * Deletes a long-running DlpJob. This method indicates that the client is - * no longer interested in the DlpJob result. The job will be canceled if - * possible. - * See https://cloud.google.com/dlp/docs/inspecting-storage and - * https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more. - *- */ - public void deleteDlpJob( - com.google.privacy.dlp.v2.DeleteDlpJobRequest request, - io.grpc.stub.StreamObserver
- * Starts asynchronous cancellation on a long-running DlpJob. The server - * makes a best effort to cancel the DlpJob, but success is not - * guaranteed. - * See https://cloud.google.com/dlp/docs/inspecting-storage and - * https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more. - *- */ - public void cancelDlpJob( - com.google.privacy.dlp.v2.CancelDlpJobRequest request, - io.grpc.stub.StreamObserver
- * Creates a pre-built stored infoType to be used for inspection. - * See https://cloud.google.com/dlp/docs/creating-stored-infotypes to - * learn more. - *- */ - public void createStoredInfoType( - com.google.privacy.dlp.v2.CreateStoredInfoTypeRequest request, - io.grpc.stub.StreamObserver
- * Updates the stored infoType by creating a new version. The existing version - * will continue to be used until the new version is ready. - * See https://cloud.google.com/dlp/docs/creating-stored-infotypes to - * learn more. - *- */ - public void updateStoredInfoType( - com.google.privacy.dlp.v2.UpdateStoredInfoTypeRequest request, - io.grpc.stub.StreamObserver
- * Gets a stored infoType. - * See https://cloud.google.com/dlp/docs/creating-stored-infotypes to - * learn more. - *- */ - public void getStoredInfoType( - com.google.privacy.dlp.v2.GetStoredInfoTypeRequest request, - io.grpc.stub.StreamObserver
- * Lists stored infoTypes. - * See https://cloud.google.com/dlp/docs/creating-stored-infotypes to - * learn more. - *- */ - public void listStoredInfoTypes( - com.google.privacy.dlp.v2.ListStoredInfoTypesRequest request, - io.grpc.stub.StreamObserver
- * Deletes a stored infoType. - * See https://cloud.google.com/dlp/docs/creating-stored-infotypes to - * learn more. - *- */ - public void deleteStoredInfoType( - com.google.privacy.dlp.v2.DeleteStoredInfoTypeRequest request, - io.grpc.stub.StreamObserver
- * Inspect hybrid content and store findings to a job. - * To review the findings, inspect the job. Inspection will occur - * asynchronously. - *- */ - public void hybridInspectDlpJob( - com.google.privacy.dlp.v2.HybridInspectDlpJobRequest request, - io.grpc.stub.StreamObserver
- * Finish a running hybrid DlpJob. Triggers the finalization steps and running - * of any enabled actions that have not yet run. - *- */ - public void finishDlpJob( - com.google.privacy.dlp.v2.FinishDlpJobRequest request, - io.grpc.stub.StreamObserver
- * The Cloud Data Loss Prevention (DLP) API is a service that allows clients - * to detect the presence of Personally Identifiable Information (PII) and other - * privacy-sensitive data in user-supplied, unstructured data streams, like text - * blocks or images. - * The service also includes methods for sensitive data redaction and - * scheduling of data scans on Google Cloud Platform based data sets. - * To learn more about concepts and find how-to guides see - * https://cloud.google.com/dlp/docs/. - *- */ - public static final class DlpServiceStub extends io.grpc.stub.AbstractAsyncStub
- * Finds potentially sensitive info in content. - * This method has limits on input size, processing time, and output size. - * When no InfoTypes or CustomInfoTypes are specified in this request, the - * system will automatically choose what detectors to run. By default this may - * be all types, but may change over time as detectors are updated. - * For how to guides, see https://cloud.google.com/dlp/docs/inspecting-images - * and https://cloud.google.com/dlp/docs/inspecting-text, - *- */ - public void inspectContent( - com.google.privacy.dlp.v2.InspectContentRequest request, - io.grpc.stub.StreamObserver
- * Redacts potentially sensitive info from an image. - * This method has limits on input size, processing time, and output size. - * See https://cloud.google.com/dlp/docs/redacting-sensitive-data-images to - * learn more. - * When no InfoTypes or CustomInfoTypes are specified in this request, the - * system will automatically choose what detectors to run. By default this may - * be all types, but may change over time as detectors are updated. - *- */ - public void redactImage( - com.google.privacy.dlp.v2.RedactImageRequest request, - io.grpc.stub.StreamObserver
- * De-identifies potentially sensitive info from a ContentItem. - * This method has limits on input size and output size. - * See https://cloud.google.com/dlp/docs/deidentify-sensitive-data to - * learn more. - * When no InfoTypes or CustomInfoTypes are specified in this request, the - * system will automatically choose what detectors to run. By default this may - * be all types, but may change over time as detectors are updated. - *- */ - public void deidentifyContent( - com.google.privacy.dlp.v2.DeidentifyContentRequest request, - io.grpc.stub.StreamObserver
- * Re-identifies content that has been de-identified. - * See - * https://cloud.google.com/dlp/docs/pseudonymization#re-identification_in_free_text_code_example - * to learn more. - *- */ - public void reidentifyContent( - com.google.privacy.dlp.v2.ReidentifyContentRequest request, - io.grpc.stub.StreamObserver
- * Returns a list of the sensitive information types that DLP API - * supports. See https://cloud.google.com/dlp/docs/infotypes-reference to - * learn more. - *- */ - public void listInfoTypes( - com.google.privacy.dlp.v2.ListInfoTypesRequest request, - io.grpc.stub.StreamObserver
- * Creates an InspectTemplate for reusing frequently used configuration - * for inspecting content, images, and storage. - * See https://cloud.google.com/dlp/docs/creating-templates to learn more. - *- */ - public void createInspectTemplate( - com.google.privacy.dlp.v2.CreateInspectTemplateRequest request, - io.grpc.stub.StreamObserver
- * Updates the InspectTemplate. - * See https://cloud.google.com/dlp/docs/creating-templates to learn more. - *- */ - public void updateInspectTemplate( - com.google.privacy.dlp.v2.UpdateInspectTemplateRequest request, - io.grpc.stub.StreamObserver
- * Gets an InspectTemplate. - * See https://cloud.google.com/dlp/docs/creating-templates to learn more. - *- */ - public void getInspectTemplate( - com.google.privacy.dlp.v2.GetInspectTemplateRequest request, - io.grpc.stub.StreamObserver
- * Lists InspectTemplates. - * See https://cloud.google.com/dlp/docs/creating-templates to learn more. - *- */ - public void listInspectTemplates( - com.google.privacy.dlp.v2.ListInspectTemplatesRequest request, - io.grpc.stub.StreamObserver
- * Deletes an InspectTemplate. - * See https://cloud.google.com/dlp/docs/creating-templates to learn more. - *- */ - public void deleteInspectTemplate( - com.google.privacy.dlp.v2.DeleteInspectTemplateRequest request, - io.grpc.stub.StreamObserver
- * Creates a DeidentifyTemplate for reusing frequently used configuration - * for de-identifying content, images, and storage. - * See https://cloud.google.com/dlp/docs/creating-templates-deid to learn - * more. - *- */ - public void createDeidentifyTemplate( - com.google.privacy.dlp.v2.CreateDeidentifyTemplateRequest request, - io.grpc.stub.StreamObserver
- * Updates the DeidentifyTemplate. - * See https://cloud.google.com/dlp/docs/creating-templates-deid to learn - * more. - *- */ - public void updateDeidentifyTemplate( - com.google.privacy.dlp.v2.UpdateDeidentifyTemplateRequest request, - io.grpc.stub.StreamObserver
- * Gets a DeidentifyTemplate. - * See https://cloud.google.com/dlp/docs/creating-templates-deid to learn - * more. - *- */ - public void getDeidentifyTemplate( - com.google.privacy.dlp.v2.GetDeidentifyTemplateRequest request, - io.grpc.stub.StreamObserver
- * Lists DeidentifyTemplates. - * See https://cloud.google.com/dlp/docs/creating-templates-deid to learn - * more. - *- */ - public void listDeidentifyTemplates( - com.google.privacy.dlp.v2.ListDeidentifyTemplatesRequest request, - io.grpc.stub.StreamObserver
- * Deletes a DeidentifyTemplate. - * See https://cloud.google.com/dlp/docs/creating-templates-deid to learn - * more. - *- */ - public void deleteDeidentifyTemplate( - com.google.privacy.dlp.v2.DeleteDeidentifyTemplateRequest request, - io.grpc.stub.StreamObserver
- * Creates a job trigger to run DLP actions such as scanning storage for - * sensitive information on a set schedule. - * See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more. - *- */ - public void createJobTrigger( - com.google.privacy.dlp.v2.CreateJobTriggerRequest request, - io.grpc.stub.StreamObserver
- * Updates a job trigger. - * See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more. - *- */ - public void updateJobTrigger( - com.google.privacy.dlp.v2.UpdateJobTriggerRequest request, - io.grpc.stub.StreamObserver
- * Inspect hybrid content and store findings to a trigger. The inspection - * will be processed asynchronously. To review the findings monitor the - * jobs within the trigger. - *- */ - public void hybridInspectJobTrigger( - com.google.privacy.dlp.v2.HybridInspectJobTriggerRequest request, - io.grpc.stub.StreamObserver
- * Gets a job trigger. - * See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more. - *- */ - public void getJobTrigger( - com.google.privacy.dlp.v2.GetJobTriggerRequest request, - io.grpc.stub.StreamObserver
- * Lists job triggers. - * See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more. - *- */ - public void listJobTriggers( - com.google.privacy.dlp.v2.ListJobTriggersRequest request, - io.grpc.stub.StreamObserver
- * Deletes a job trigger. - * See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more. - *- */ - public void deleteJobTrigger( - com.google.privacy.dlp.v2.DeleteJobTriggerRequest request, - io.grpc.stub.StreamObserver
- * Activate a job trigger. Causes the immediate execute of a trigger - * instead of waiting on the trigger event to occur. - *- */ - public void activateJobTrigger( - com.google.privacy.dlp.v2.ActivateJobTriggerRequest request, - io.grpc.stub.StreamObserver
- * Creates a new job to inspect storage or calculate risk metrics. - * See https://cloud.google.com/dlp/docs/inspecting-storage and - * https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more. - * When no InfoTypes or CustomInfoTypes are specified in inspect jobs, the - * system will automatically choose what detectors to run. By default this may - * be all types, but may change over time as detectors are updated. - *- */ - public void createDlpJob( - com.google.privacy.dlp.v2.CreateDlpJobRequest request, - io.grpc.stub.StreamObserver
- * Lists DlpJobs that match the specified filter in the request. - * See https://cloud.google.com/dlp/docs/inspecting-storage and - * https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more. - *- */ - public void listDlpJobs( - com.google.privacy.dlp.v2.ListDlpJobsRequest request, - io.grpc.stub.StreamObserver
- * Gets the latest state of a long-running DlpJob. - * See https://cloud.google.com/dlp/docs/inspecting-storage and - * https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more. - *- */ - public void getDlpJob( - com.google.privacy.dlp.v2.GetDlpJobRequest request, - io.grpc.stub.StreamObserver
- * Deletes a long-running DlpJob. This method indicates that the client is - * no longer interested in the DlpJob result. The job will be canceled if - * possible. - * See https://cloud.google.com/dlp/docs/inspecting-storage and - * https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more. - *- */ - public void deleteDlpJob( - com.google.privacy.dlp.v2.DeleteDlpJobRequest request, - io.grpc.stub.StreamObserver
- * Starts asynchronous cancellation on a long-running DlpJob. The server - * makes a best effort to cancel the DlpJob, but success is not - * guaranteed. - * See https://cloud.google.com/dlp/docs/inspecting-storage and - * https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more. - *- */ - public void cancelDlpJob( - com.google.privacy.dlp.v2.CancelDlpJobRequest request, - io.grpc.stub.StreamObserver
- * Creates a pre-built stored infoType to be used for inspection. - * See https://cloud.google.com/dlp/docs/creating-stored-infotypes to - * learn more. - *- */ - public void createStoredInfoType( - com.google.privacy.dlp.v2.CreateStoredInfoTypeRequest request, - io.grpc.stub.StreamObserver
- * Updates the stored infoType by creating a new version. The existing version - * will continue to be used until the new version is ready. - * See https://cloud.google.com/dlp/docs/creating-stored-infotypes to - * learn more. - *- */ - public void updateStoredInfoType( - com.google.privacy.dlp.v2.UpdateStoredInfoTypeRequest request, - io.grpc.stub.StreamObserver
- * Gets a stored infoType. - * See https://cloud.google.com/dlp/docs/creating-stored-infotypes to - * learn more. - *- */ - public void getStoredInfoType( - com.google.privacy.dlp.v2.GetStoredInfoTypeRequest request, - io.grpc.stub.StreamObserver
- * Lists stored infoTypes. - * See https://cloud.google.com/dlp/docs/creating-stored-infotypes to - * learn more. - *- */ - public void listStoredInfoTypes( - com.google.privacy.dlp.v2.ListStoredInfoTypesRequest request, - io.grpc.stub.StreamObserver
- * Deletes a stored infoType. - * See https://cloud.google.com/dlp/docs/creating-stored-infotypes to - * learn more. - *- */ - public void deleteStoredInfoType( - com.google.privacy.dlp.v2.DeleteStoredInfoTypeRequest request, - io.grpc.stub.StreamObserver
- * Inspect hybrid content and store findings to a job. - * To review the findings, inspect the job. Inspection will occur - * asynchronously. - *- */ - public void hybridInspectDlpJob( - com.google.privacy.dlp.v2.HybridInspectDlpJobRequest request, - io.grpc.stub.StreamObserver
- * Finish a running hybrid DlpJob. Triggers the finalization steps and running - * of any enabled actions that have not yet run. - *- */ - public void finishDlpJob( - com.google.privacy.dlp.v2.FinishDlpJobRequest request, - io.grpc.stub.StreamObserver
- * The Cloud Data Loss Prevention (DLP) API is a service that allows clients - * to detect the presence of Personally Identifiable Information (PII) and other - * privacy-sensitive data in user-supplied, unstructured data streams, like text - * blocks or images. - * The service also includes methods for sensitive data redaction and - * scheduling of data scans on Google Cloud Platform based data sets. - * To learn more about concepts and find how-to guides see - * https://cloud.google.com/dlp/docs/. - *- */ - public static final class DlpServiceBlockingStub - extends io.grpc.stub.AbstractBlockingStub
- * Finds potentially sensitive info in content. - * This method has limits on input size, processing time, and output size. - * When no InfoTypes or CustomInfoTypes are specified in this request, the - * system will automatically choose what detectors to run. By default this may - * be all types, but may change over time as detectors are updated. - * For how to guides, see https://cloud.google.com/dlp/docs/inspecting-images - * and https://cloud.google.com/dlp/docs/inspecting-text, - *- */ - public com.google.privacy.dlp.v2.InspectContentResponse inspectContent( - com.google.privacy.dlp.v2.InspectContentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getInspectContentMethod(), getCallOptions(), request); - } - - /** - * - * - *
- * Redacts potentially sensitive info from an image. - * This method has limits on input size, processing time, and output size. - * See https://cloud.google.com/dlp/docs/redacting-sensitive-data-images to - * learn more. - * When no InfoTypes or CustomInfoTypes are specified in this request, the - * system will automatically choose what detectors to run. By default this may - * be all types, but may change over time as detectors are updated. - *- */ - public com.google.privacy.dlp.v2.RedactImageResponse redactImage( - com.google.privacy.dlp.v2.RedactImageRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getRedactImageMethod(), getCallOptions(), request); - } - - /** - * - * - *
- * De-identifies potentially sensitive info from a ContentItem. - * This method has limits on input size and output size. - * See https://cloud.google.com/dlp/docs/deidentify-sensitive-data to - * learn more. - * When no InfoTypes or CustomInfoTypes are specified in this request, the - * system will automatically choose what detectors to run. By default this may - * be all types, but may change over time as detectors are updated. - *- */ - public com.google.privacy.dlp.v2.DeidentifyContentResponse deidentifyContent( - com.google.privacy.dlp.v2.DeidentifyContentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeidentifyContentMethod(), getCallOptions(), request); - } - - /** - * - * - *
- * Re-identifies content that has been de-identified. - * See - * https://cloud.google.com/dlp/docs/pseudonymization#re-identification_in_free_text_code_example - * to learn more. - *- */ - public com.google.privacy.dlp.v2.ReidentifyContentResponse reidentifyContent( - com.google.privacy.dlp.v2.ReidentifyContentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getReidentifyContentMethod(), getCallOptions(), request); - } - - /** - * - * - *
- * Returns a list of the sensitive information types that DLP API - * supports. See https://cloud.google.com/dlp/docs/infotypes-reference to - * learn more. - *- */ - public com.google.privacy.dlp.v2.ListInfoTypesResponse listInfoTypes( - com.google.privacy.dlp.v2.ListInfoTypesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListInfoTypesMethod(), getCallOptions(), request); - } - - /** - * - * - *
- * Creates an InspectTemplate for reusing frequently used configuration - * for inspecting content, images, and storage. - * See https://cloud.google.com/dlp/docs/creating-templates to learn more. - *- */ - public com.google.privacy.dlp.v2.InspectTemplate createInspectTemplate( - com.google.privacy.dlp.v2.CreateInspectTemplateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateInspectTemplateMethod(), getCallOptions(), request); - } - - /** - * - * - *
- * Updates the InspectTemplate. - * See https://cloud.google.com/dlp/docs/creating-templates to learn more. - *- */ - public com.google.privacy.dlp.v2.InspectTemplate updateInspectTemplate( - com.google.privacy.dlp.v2.UpdateInspectTemplateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateInspectTemplateMethod(), getCallOptions(), request); - } - - /** - * - * - *
- * Gets an InspectTemplate. - * See https://cloud.google.com/dlp/docs/creating-templates to learn more. - *- */ - public com.google.privacy.dlp.v2.InspectTemplate getInspectTemplate( - com.google.privacy.dlp.v2.GetInspectTemplateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetInspectTemplateMethod(), getCallOptions(), request); - } - - /** - * - * - *
- * Lists InspectTemplates. - * See https://cloud.google.com/dlp/docs/creating-templates to learn more. - *- */ - public com.google.privacy.dlp.v2.ListInspectTemplatesResponse listInspectTemplates( - com.google.privacy.dlp.v2.ListInspectTemplatesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListInspectTemplatesMethod(), getCallOptions(), request); - } - - /** - * - * - *
- * Deletes an InspectTemplate. - * See https://cloud.google.com/dlp/docs/creating-templates to learn more. - *- */ - public com.google.protobuf.Empty deleteInspectTemplate( - com.google.privacy.dlp.v2.DeleteInspectTemplateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteInspectTemplateMethod(), getCallOptions(), request); - } - - /** - * - * - *
- * Creates a DeidentifyTemplate for reusing frequently used configuration - * for de-identifying content, images, and storage. - * See https://cloud.google.com/dlp/docs/creating-templates-deid to learn - * more. - *- */ - public com.google.privacy.dlp.v2.DeidentifyTemplate createDeidentifyTemplate( - com.google.privacy.dlp.v2.CreateDeidentifyTemplateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateDeidentifyTemplateMethod(), getCallOptions(), request); - } - - /** - * - * - *
- * Updates the DeidentifyTemplate. - * See https://cloud.google.com/dlp/docs/creating-templates-deid to learn - * more. - *- */ - public com.google.privacy.dlp.v2.DeidentifyTemplate updateDeidentifyTemplate( - com.google.privacy.dlp.v2.UpdateDeidentifyTemplateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateDeidentifyTemplateMethod(), getCallOptions(), request); - } - - /** - * - * - *
- * Gets a DeidentifyTemplate. - * See https://cloud.google.com/dlp/docs/creating-templates-deid to learn - * more. - *- */ - public com.google.privacy.dlp.v2.DeidentifyTemplate getDeidentifyTemplate( - com.google.privacy.dlp.v2.GetDeidentifyTemplateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetDeidentifyTemplateMethod(), getCallOptions(), request); - } - - /** - * - * - *
- * Lists DeidentifyTemplates. - * See https://cloud.google.com/dlp/docs/creating-templates-deid to learn - * more. - *- */ - public com.google.privacy.dlp.v2.ListDeidentifyTemplatesResponse listDeidentifyTemplates( - com.google.privacy.dlp.v2.ListDeidentifyTemplatesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListDeidentifyTemplatesMethod(), getCallOptions(), request); - } - - /** - * - * - *
- * Deletes a DeidentifyTemplate. - * See https://cloud.google.com/dlp/docs/creating-templates-deid to learn - * more. - *- */ - public com.google.protobuf.Empty deleteDeidentifyTemplate( - com.google.privacy.dlp.v2.DeleteDeidentifyTemplateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteDeidentifyTemplateMethod(), getCallOptions(), request); - } - - /** - * - * - *
- * Creates a job trigger to run DLP actions such as scanning storage for - * sensitive information on a set schedule. - * See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more. - *- */ - public com.google.privacy.dlp.v2.JobTrigger createJobTrigger( - com.google.privacy.dlp.v2.CreateJobTriggerRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateJobTriggerMethod(), getCallOptions(), request); - } - - /** - * - * - *
- * Updates a job trigger. - * See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more. - *- */ - public com.google.privacy.dlp.v2.JobTrigger updateJobTrigger( - com.google.privacy.dlp.v2.UpdateJobTriggerRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateJobTriggerMethod(), getCallOptions(), request); - } - - /** - * - * - *
- * Inspect hybrid content and store findings to a trigger. The inspection - * will be processed asynchronously. To review the findings monitor the - * jobs within the trigger. - *- */ - public com.google.privacy.dlp.v2.HybridInspectResponse hybridInspectJobTrigger( - com.google.privacy.dlp.v2.HybridInspectJobTriggerRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getHybridInspectJobTriggerMethod(), getCallOptions(), request); - } - - /** - * - * - *
- * Gets a job trigger. - * See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more. - *- */ - public com.google.privacy.dlp.v2.JobTrigger getJobTrigger( - com.google.privacy.dlp.v2.GetJobTriggerRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetJobTriggerMethod(), getCallOptions(), request); - } - - /** - * - * - *
- * Lists job triggers. - * See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more. - *- */ - public com.google.privacy.dlp.v2.ListJobTriggersResponse listJobTriggers( - com.google.privacy.dlp.v2.ListJobTriggersRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListJobTriggersMethod(), getCallOptions(), request); - } - - /** - * - * - *
- * Deletes a job trigger. - * See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more. - *- */ - public com.google.protobuf.Empty deleteJobTrigger( - com.google.privacy.dlp.v2.DeleteJobTriggerRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteJobTriggerMethod(), getCallOptions(), request); - } - - /** - * - * - *
- * Activate a job trigger. Causes the immediate execute of a trigger - * instead of waiting on the trigger event to occur. - *- */ - public com.google.privacy.dlp.v2.DlpJob activateJobTrigger( - com.google.privacy.dlp.v2.ActivateJobTriggerRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getActivateJobTriggerMethod(), getCallOptions(), request); - } - - /** - * - * - *
- * Creates a new job to inspect storage or calculate risk metrics. - * See https://cloud.google.com/dlp/docs/inspecting-storage and - * https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more. - * When no InfoTypes or CustomInfoTypes are specified in inspect jobs, the - * system will automatically choose what detectors to run. By default this may - * be all types, but may change over time as detectors are updated. - *- */ - public com.google.privacy.dlp.v2.DlpJob createDlpJob( - com.google.privacy.dlp.v2.CreateDlpJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateDlpJobMethod(), getCallOptions(), request); - } - - /** - * - * - *
- * Lists DlpJobs that match the specified filter in the request. - * See https://cloud.google.com/dlp/docs/inspecting-storage and - * https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more. - *- */ - public com.google.privacy.dlp.v2.ListDlpJobsResponse listDlpJobs( - com.google.privacy.dlp.v2.ListDlpJobsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListDlpJobsMethod(), getCallOptions(), request); - } - - /** - * - * - *
- * Gets the latest state of a long-running DlpJob. - * See https://cloud.google.com/dlp/docs/inspecting-storage and - * https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more. - *- */ - public com.google.privacy.dlp.v2.DlpJob getDlpJob( - com.google.privacy.dlp.v2.GetDlpJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetDlpJobMethod(), getCallOptions(), request); - } - - /** - * - * - *
- * Deletes a long-running DlpJob. This method indicates that the client is - * no longer interested in the DlpJob result. The job will be canceled if - * possible. - * See https://cloud.google.com/dlp/docs/inspecting-storage and - * https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more. - *- */ - public com.google.protobuf.Empty deleteDlpJob( - com.google.privacy.dlp.v2.DeleteDlpJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteDlpJobMethod(), getCallOptions(), request); - } - - /** - * - * - *
- * Starts asynchronous cancellation on a long-running DlpJob. The server - * makes a best effort to cancel the DlpJob, but success is not - * guaranteed. - * See https://cloud.google.com/dlp/docs/inspecting-storage and - * https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more. - *- */ - public com.google.protobuf.Empty cancelDlpJob( - com.google.privacy.dlp.v2.CancelDlpJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCancelDlpJobMethod(), getCallOptions(), request); - } - - /** - * - * - *
- * Creates a pre-built stored infoType to be used for inspection. - * See https://cloud.google.com/dlp/docs/creating-stored-infotypes to - * learn more. - *- */ - public com.google.privacy.dlp.v2.StoredInfoType createStoredInfoType( - com.google.privacy.dlp.v2.CreateStoredInfoTypeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateStoredInfoTypeMethod(), getCallOptions(), request); - } - - /** - * - * - *
- * Updates the stored infoType by creating a new version. The existing version - * will continue to be used until the new version is ready. - * See https://cloud.google.com/dlp/docs/creating-stored-infotypes to - * learn more. - *- */ - public com.google.privacy.dlp.v2.StoredInfoType updateStoredInfoType( - com.google.privacy.dlp.v2.UpdateStoredInfoTypeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateStoredInfoTypeMethod(), getCallOptions(), request); - } - - /** - * - * - *
- * Gets a stored infoType. - * See https://cloud.google.com/dlp/docs/creating-stored-infotypes to - * learn more. - *- */ - public com.google.privacy.dlp.v2.StoredInfoType getStoredInfoType( - com.google.privacy.dlp.v2.GetStoredInfoTypeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetStoredInfoTypeMethod(), getCallOptions(), request); - } - - /** - * - * - *
- * Lists stored infoTypes. - * See https://cloud.google.com/dlp/docs/creating-stored-infotypes to - * learn more. - *- */ - public com.google.privacy.dlp.v2.ListStoredInfoTypesResponse listStoredInfoTypes( - com.google.privacy.dlp.v2.ListStoredInfoTypesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListStoredInfoTypesMethod(), getCallOptions(), request); - } - - /** - * - * - *
- * Deletes a stored infoType. - * See https://cloud.google.com/dlp/docs/creating-stored-infotypes to - * learn more. - *- */ - public com.google.protobuf.Empty deleteStoredInfoType( - com.google.privacy.dlp.v2.DeleteStoredInfoTypeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteStoredInfoTypeMethod(), getCallOptions(), request); - } - - /** - * - * - *
- * Inspect hybrid content and store findings to a job. - * To review the findings, inspect the job. Inspection will occur - * asynchronously. - *- */ - public com.google.privacy.dlp.v2.HybridInspectResponse hybridInspectDlpJob( - com.google.privacy.dlp.v2.HybridInspectDlpJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getHybridInspectDlpJobMethod(), getCallOptions(), request); - } - - /** - * - * - *
- * Finish a running hybrid DlpJob. Triggers the finalization steps and running - * of any enabled actions that have not yet run. - *- */ - public com.google.protobuf.Empty finishDlpJob( - com.google.privacy.dlp.v2.FinishDlpJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getFinishDlpJobMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
- * The Cloud Data Loss Prevention (DLP) API is a service that allows clients - * to detect the presence of Personally Identifiable Information (PII) and other - * privacy-sensitive data in user-supplied, unstructured data streams, like text - * blocks or images. - * The service also includes methods for sensitive data redaction and - * scheduling of data scans on Google Cloud Platform based data sets. - * To learn more about concepts and find how-to guides see - * https://cloud.google.com/dlp/docs/. - *- */ - public static final class DlpServiceFutureStub - extends io.grpc.stub.AbstractFutureStub
- * Finds potentially sensitive info in content. - * This method has limits on input size, processing time, and output size. - * When no InfoTypes or CustomInfoTypes are specified in this request, the - * system will automatically choose what detectors to run. By default this may - * be all types, but may change over time as detectors are updated. - * For how to guides, see https://cloud.google.com/dlp/docs/inspecting-images - * and https://cloud.google.com/dlp/docs/inspecting-text, - *- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.privacy.dlp.v2.InspectContentResponse> - inspectContent(com.google.privacy.dlp.v2.InspectContentRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getInspectContentMethod(), getCallOptions()), request); - } - - /** - * - * - *
- * Redacts potentially sensitive info from an image. - * This method has limits on input size, processing time, and output size. - * See https://cloud.google.com/dlp/docs/redacting-sensitive-data-images to - * learn more. - * When no InfoTypes or CustomInfoTypes are specified in this request, the - * system will automatically choose what detectors to run. By default this may - * be all types, but may change over time as detectors are updated. - *- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.privacy.dlp.v2.RedactImageResponse> - redactImage(com.google.privacy.dlp.v2.RedactImageRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getRedactImageMethod(), getCallOptions()), request); - } - - /** - * - * - *
- * De-identifies potentially sensitive info from a ContentItem. - * This method has limits on input size and output size. - * See https://cloud.google.com/dlp/docs/deidentify-sensitive-data to - * learn more. - * When no InfoTypes or CustomInfoTypes are specified in this request, the - * system will automatically choose what detectors to run. By default this may - * be all types, but may change over time as detectors are updated. - *- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.privacy.dlp.v2.DeidentifyContentResponse> - deidentifyContent(com.google.privacy.dlp.v2.DeidentifyContentRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeidentifyContentMethod(), getCallOptions()), request); - } - - /** - * - * - *
- * Re-identifies content that has been de-identified. - * See - * https://cloud.google.com/dlp/docs/pseudonymization#re-identification_in_free_text_code_example - * to learn more. - *- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.privacy.dlp.v2.ReidentifyContentResponse> - reidentifyContent(com.google.privacy.dlp.v2.ReidentifyContentRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getReidentifyContentMethod(), getCallOptions()), request); - } - - /** - * - * - *
- * Returns a list of the sensitive information types that DLP API - * supports. See https://cloud.google.com/dlp/docs/infotypes-reference to - * learn more. - *- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.privacy.dlp.v2.ListInfoTypesResponse> - listInfoTypes(com.google.privacy.dlp.v2.ListInfoTypesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListInfoTypesMethod(), getCallOptions()), request); - } - - /** - * - * - *
- * Creates an InspectTemplate for reusing frequently used configuration - * for inspecting content, images, and storage. - * See https://cloud.google.com/dlp/docs/creating-templates to learn more. - *- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.privacy.dlp.v2.InspectTemplate> - createInspectTemplate(com.google.privacy.dlp.v2.CreateInspectTemplateRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateInspectTemplateMethod(), getCallOptions()), request); - } - - /** - * - * - *
- * Updates the InspectTemplate. - * See https://cloud.google.com/dlp/docs/creating-templates to learn more. - *- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.privacy.dlp.v2.InspectTemplate> - updateInspectTemplate(com.google.privacy.dlp.v2.UpdateInspectTemplateRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateInspectTemplateMethod(), getCallOptions()), request); - } - - /** - * - * - *
- * Gets an InspectTemplate. - * See https://cloud.google.com/dlp/docs/creating-templates to learn more. - *- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.privacy.dlp.v2.InspectTemplate> - getInspectTemplate(com.google.privacy.dlp.v2.GetInspectTemplateRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetInspectTemplateMethod(), getCallOptions()), request); - } - - /** - * - * - *
- * Lists InspectTemplates. - * See https://cloud.google.com/dlp/docs/creating-templates to learn more. - *- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.privacy.dlp.v2.ListInspectTemplatesResponse> - listInspectTemplates(com.google.privacy.dlp.v2.ListInspectTemplatesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListInspectTemplatesMethod(), getCallOptions()), request); - } - - /** - * - * - *
- * Deletes an InspectTemplate. - * See https://cloud.google.com/dlp/docs/creating-templates to learn more. - *- */ - public com.google.common.util.concurrent.ListenableFuture
- * Creates a DeidentifyTemplate for reusing frequently used configuration - * for de-identifying content, images, and storage. - * See https://cloud.google.com/dlp/docs/creating-templates-deid to learn - * more. - *- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.privacy.dlp.v2.DeidentifyTemplate> - createDeidentifyTemplate( - com.google.privacy.dlp.v2.CreateDeidentifyTemplateRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateDeidentifyTemplateMethod(), getCallOptions()), request); - } - - /** - * - * - *
- * Updates the DeidentifyTemplate. - * See https://cloud.google.com/dlp/docs/creating-templates-deid to learn - * more. - *- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.privacy.dlp.v2.DeidentifyTemplate> - updateDeidentifyTemplate( - com.google.privacy.dlp.v2.UpdateDeidentifyTemplateRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateDeidentifyTemplateMethod(), getCallOptions()), request); - } - - /** - * - * - *
- * Gets a DeidentifyTemplate. - * See https://cloud.google.com/dlp/docs/creating-templates-deid to learn - * more. - *- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.privacy.dlp.v2.DeidentifyTemplate> - getDeidentifyTemplate(com.google.privacy.dlp.v2.GetDeidentifyTemplateRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetDeidentifyTemplateMethod(), getCallOptions()), request); - } - - /** - * - * - *
- * Lists DeidentifyTemplates. - * See https://cloud.google.com/dlp/docs/creating-templates-deid to learn - * more. - *- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.privacy.dlp.v2.ListDeidentifyTemplatesResponse> - listDeidentifyTemplates(com.google.privacy.dlp.v2.ListDeidentifyTemplatesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListDeidentifyTemplatesMethod(), getCallOptions()), request); - } - - /** - * - * - *
- * Deletes a DeidentifyTemplate. - * See https://cloud.google.com/dlp/docs/creating-templates-deid to learn - * more. - *- */ - public com.google.common.util.concurrent.ListenableFuture
- * Creates a job trigger to run DLP actions such as scanning storage for - * sensitive information on a set schedule. - * See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more. - *- */ - public com.google.common.util.concurrent.ListenableFuture
- * Updates a job trigger. - * See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more. - *- */ - public com.google.common.util.concurrent.ListenableFuture
- * Inspect hybrid content and store findings to a trigger. The inspection - * will be processed asynchronously. To review the findings monitor the - * jobs within the trigger. - *- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.privacy.dlp.v2.HybridInspectResponse> - hybridInspectJobTrigger(com.google.privacy.dlp.v2.HybridInspectJobTriggerRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getHybridInspectJobTriggerMethod(), getCallOptions()), request); - } - - /** - * - * - *
- * Gets a job trigger. - * See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more. - *- */ - public com.google.common.util.concurrent.ListenableFuture
- * Lists job triggers. - * See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more. - *- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.privacy.dlp.v2.ListJobTriggersResponse> - listJobTriggers(com.google.privacy.dlp.v2.ListJobTriggersRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListJobTriggersMethod(), getCallOptions()), request); - } - - /** - * - * - *
- * Deletes a job trigger. - * See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more. - *- */ - public com.google.common.util.concurrent.ListenableFuture
- * Activate a job trigger. Causes the immediate execute of a trigger - * instead of waiting on the trigger event to occur. - *- */ - public com.google.common.util.concurrent.ListenableFuture
- * Creates a new job to inspect storage or calculate risk metrics. - * See https://cloud.google.com/dlp/docs/inspecting-storage and - * https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more. - * When no InfoTypes or CustomInfoTypes are specified in inspect jobs, the - * system will automatically choose what detectors to run. By default this may - * be all types, but may change over time as detectors are updated. - *- */ - public com.google.common.util.concurrent.ListenableFuture
- * Lists DlpJobs that match the specified filter in the request. - * See https://cloud.google.com/dlp/docs/inspecting-storage and - * https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more. - *- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.privacy.dlp.v2.ListDlpJobsResponse> - listDlpJobs(com.google.privacy.dlp.v2.ListDlpJobsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListDlpJobsMethod(), getCallOptions()), request); - } - - /** - * - * - *
- * Gets the latest state of a long-running DlpJob. - * See https://cloud.google.com/dlp/docs/inspecting-storage and - * https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more. - *- */ - public com.google.common.util.concurrent.ListenableFuture
- * Deletes a long-running DlpJob. This method indicates that the client is - * no longer interested in the DlpJob result. The job will be canceled if - * possible. - * See https://cloud.google.com/dlp/docs/inspecting-storage and - * https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more. - *- */ - public com.google.common.util.concurrent.ListenableFuture
- * Starts asynchronous cancellation on a long-running DlpJob. The server - * makes a best effort to cancel the DlpJob, but success is not - * guaranteed. - * See https://cloud.google.com/dlp/docs/inspecting-storage and - * https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more. - *- */ - public com.google.common.util.concurrent.ListenableFuture
- * Creates a pre-built stored infoType to be used for inspection. - * See https://cloud.google.com/dlp/docs/creating-stored-infotypes to - * learn more. - *- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.privacy.dlp.v2.StoredInfoType> - createStoredInfoType(com.google.privacy.dlp.v2.CreateStoredInfoTypeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateStoredInfoTypeMethod(), getCallOptions()), request); - } - - /** - * - * - *
- * Updates the stored infoType by creating a new version. The existing version - * will continue to be used until the new version is ready. - * See https://cloud.google.com/dlp/docs/creating-stored-infotypes to - * learn more. - *- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.privacy.dlp.v2.StoredInfoType> - updateStoredInfoType(com.google.privacy.dlp.v2.UpdateStoredInfoTypeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateStoredInfoTypeMethod(), getCallOptions()), request); - } - - /** - * - * - *
- * Gets a stored infoType. - * See https://cloud.google.com/dlp/docs/creating-stored-infotypes to - * learn more. - *- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.privacy.dlp.v2.StoredInfoType> - getStoredInfoType(com.google.privacy.dlp.v2.GetStoredInfoTypeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetStoredInfoTypeMethod(), getCallOptions()), request); - } - - /** - * - * - *
- * Lists stored infoTypes. - * See https://cloud.google.com/dlp/docs/creating-stored-infotypes to - * learn more. - *- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.privacy.dlp.v2.ListStoredInfoTypesResponse> - listStoredInfoTypes(com.google.privacy.dlp.v2.ListStoredInfoTypesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListStoredInfoTypesMethod(), getCallOptions()), request); - } - - /** - * - * - *
- * Deletes a stored infoType. - * See https://cloud.google.com/dlp/docs/creating-stored-infotypes to - * learn more. - *- */ - public com.google.common.util.concurrent.ListenableFuture
- * Inspect hybrid content and store findings to a job. - * To review the findings, inspect the job. Inspection will occur - * asynchronously. - *- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.privacy.dlp.v2.HybridInspectResponse> - hybridInspectDlpJob(com.google.privacy.dlp.v2.HybridInspectDlpJobRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getHybridInspectDlpJobMethod(), getCallOptions()), request); - } - - /** - * - * - *
- * Finish a running hybrid DlpJob. Triggers the finalization steps and running - * of any enabled actions that have not yet run. - *- */ - public com.google.common.util.concurrent.ListenableFuture
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * InspectContentRequest request = * InspectContentRequest.newBuilder() @@ -154,8 +157,11 @@ *To customize credentials: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * DlpServiceSettings dlpServiceSettings = * DlpServiceSettings.newBuilder() * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) @@ -166,8 +172,11 @@ *To customize the endpoint: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * DlpServiceSettings dlpServiceSettings = * DlpServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); * DlpServiceClient dlpServiceClient = DlpServiceClient.create(dlpServiceSettings); @@ -177,8 +186,11 @@ * the wire: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * DlpServiceSettings dlpServiceSettings = * DlpServiceSettings.newBuilder() * .setTransportChannelProvider( @@ -252,8 +264,11 @@ public DlpServiceStub getStub() { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * InspectContentRequest request = * InspectContentRequest.newBuilder() @@ -289,8 +304,11 @@ public final InspectContentResponse inspectContent(InspectContentRequest request *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * InspectContentRequest request = * InspectContentRequest.newBuilder() @@ -325,8 +343,11 @@ public final InspectContentResponse inspectContent(InspectContentRequest request *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * RedactImageRequest request = * RedactImageRequest.newBuilder() @@ -361,8 +382,11 @@ public final RedactImageResponse redactImage(RedactImageRequest request) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * RedactImageRequest request = * RedactImageRequest.newBuilder() @@ -397,8 +421,11 @@ public final UnaryCallableredactImageC * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * DeidentifyContentRequest request = * DeidentifyContentRequest.newBuilder() @@ -434,8 +461,11 @@ public final DeidentifyContentResponse deidentifyContent(DeidentifyContentReques *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * DeidentifyContentRequest request = * DeidentifyContentRequest.newBuilder() @@ -468,8 +498,11 @@ public final DeidentifyContentResponse deidentifyContent(DeidentifyContentReques *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * ReidentifyContentRequest request = * ReidentifyContentRequest.newBuilder() @@ -501,8 +534,11 @@ public final ReidentifyContentResponse reidentifyContent(ReidentifyContentReques *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * ReidentifyContentRequest request = * ReidentifyContentRequest.newBuilder() @@ -534,8 +570,11 @@ public final ReidentifyContentResponse reidentifyContent(ReidentifyContentReques *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * String parent = "parent-995424086"; * ListInfoTypesResponse response = dlpServiceClient.listInfoTypes(parent); @@ -560,8 +599,11 @@ public final ListInfoTypesResponse listInfoTypes(String parent) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * ListInfoTypesRequest request = * ListInfoTypesRequest.newBuilder() @@ -589,8 +631,11 @@ public final ListInfoTypesResponse listInfoTypes(ListInfoTypesRequest request) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * ListInfoTypesRequest request = * ListInfoTypesRequest.newBuilder() @@ -618,8 +663,11 @@ public final UnaryCallablelistInfo * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); * InspectTemplate inspectTemplate = InspectTemplate.newBuilder().build(); @@ -663,8 +711,11 @@ public final InspectTemplate createInspectTemplate( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); * InspectTemplate inspectTemplate = InspectTemplate.newBuilder().build(); @@ -708,8 +759,11 @@ public final InspectTemplate createInspectTemplate( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * OrganizationName parent = OrganizationName.of("[ORGANIZATION]"); * InspectTemplate inspectTemplate = InspectTemplate.newBuilder().build(); @@ -753,8 +807,11 @@ public final InspectTemplate createInspectTemplate( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * ProjectName parent = ProjectName.of("[PROJECT]"); * InspectTemplate inspectTemplate = InspectTemplate.newBuilder().build(); @@ -798,8 +855,11 @@ public final InspectTemplate createInspectTemplate( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * String parent = OrganizationName.of("[ORGANIZATION]").toString(); * InspectTemplate inspectTemplate = InspectTemplate.newBuilder().build(); @@ -843,8 +903,11 @@ public final InspectTemplate createInspectTemplate( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * CreateInspectTemplateRequest request = * CreateInspectTemplateRequest.newBuilder() @@ -872,8 +935,11 @@ public final InspectTemplate createInspectTemplate(CreateInspectTemplateRequest *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * CreateInspectTemplateRequest request = * CreateInspectTemplateRequest.newBuilder() @@ -902,8 +968,11 @@ public final InspectTemplate createInspectTemplate(CreateInspectTemplateRequest *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * InspectTemplateName name = * InspectTemplateName.ofOrganizationInspectTemplateName( @@ -941,8 +1010,11 @@ public final InspectTemplate updateInspectTemplate( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * String name = * InspectTemplateName.ofOrganizationInspectTemplateName( @@ -981,8 +1053,11 @@ public final InspectTemplate updateInspectTemplate( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * UpdateInspectTemplateRequest request = * UpdateInspectTemplateRequest.newBuilder() @@ -1012,8 +1087,11 @@ public final InspectTemplate updateInspectTemplate(UpdateInspectTemplateRequest *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * UpdateInspectTemplateRequest request = * UpdateInspectTemplateRequest.newBuilder() @@ -1044,8 +1122,11 @@ public final InspectTemplate updateInspectTemplate(UpdateInspectTemplateRequest *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * InspectTemplateName name = * InspectTemplateName.ofOrganizationInspectTemplateName( @@ -1075,8 +1156,11 @@ public final InspectTemplate getInspectTemplate(InspectTemplateName name) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * String name = * InspectTemplateName.ofOrganizationInspectTemplateName( @@ -1105,8 +1189,11 @@ public final InspectTemplate getInspectTemplate(String name) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * GetInspectTemplateRequest request = * GetInspectTemplateRequest.newBuilder() @@ -1134,8 +1221,11 @@ public final InspectTemplate getInspectTemplate(GetInspectTemplateRequest reques *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * GetInspectTemplateRequest request = * GetInspectTemplateRequest.newBuilder() @@ -1163,8 +1253,11 @@ public final InspectTemplate getInspectTemplate(GetInspectTemplateRequest reques *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); * for (InspectTemplate element : dlpServiceClient.listInspectTemplates(parent).iterateAll()) { @@ -1205,8 +1298,11 @@ public final ListInspectTemplatesPagedResponse listInspectTemplates(LocationName *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); * for (InspectTemplate element : dlpServiceClient.listInspectTemplates(parent).iterateAll()) { @@ -1248,8 +1344,11 @@ public final ListInspectTemplatesPagedResponse listInspectTemplates( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * OrganizationName parent = OrganizationName.of("[ORGANIZATION]"); * for (InspectTemplate element : dlpServiceClient.listInspectTemplates(parent).iterateAll()) { @@ -1290,8 +1389,11 @@ public final ListInspectTemplatesPagedResponse listInspectTemplates(Organization *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * ProjectName parent = ProjectName.of("[PROJECT]"); * for (InspectTemplate element : dlpServiceClient.listInspectTemplates(parent).iterateAll()) { @@ -1332,8 +1434,11 @@ public final ListInspectTemplatesPagedResponse listInspectTemplates(ProjectName *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * String parent = OrganizationName.of("[ORGANIZATION]").toString(); * for (InspectTemplate element : dlpServiceClient.listInspectTemplates(parent).iterateAll()) { @@ -1372,8 +1477,11 @@ public final ListInspectTemplatesPagedResponse listInspectTemplates(String paren *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * ListInspectTemplatesRequest request = * ListInspectTemplatesRequest.newBuilder() @@ -1404,8 +1512,11 @@ public final ListInspectTemplatesPagedResponse listInspectTemplates( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * ListInspectTemplatesRequest request = * ListInspectTemplatesRequest.newBuilder() @@ -1436,8 +1547,11 @@ public final ListInspectTemplatesPagedResponse listInspectTemplates( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * ListInspectTemplatesRequest request = * ListInspectTemplatesRequest.newBuilder() @@ -1476,8 +1590,11 @@ public final ListInspectTemplatesPagedResponse listInspectTemplates( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * InspectTemplateName name = * InspectTemplateName.ofOrganizationInspectTemplateName( @@ -1507,8 +1624,11 @@ public final void deleteInspectTemplate(InspectTemplateName name) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * String name = * InspectTemplateName.ofOrganizationInspectTemplateName( @@ -1537,8 +1657,11 @@ public final void deleteInspectTemplate(String name) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * DeleteInspectTemplateRequest request = * DeleteInspectTemplateRequest.newBuilder() @@ -1566,8 +1689,11 @@ public final void deleteInspectTemplate(DeleteInspectTemplateRequest request) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * DeleteInspectTemplateRequest request = * DeleteInspectTemplateRequest.newBuilder() @@ -1596,8 +1722,11 @@ public final UnaryCallabledeleteInspectTem * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); * DeidentifyTemplate deidentifyTemplate = DeidentifyTemplate.newBuilder().build(); @@ -1643,8 +1772,11 @@ public final DeidentifyTemplate createDeidentifyTemplate( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); * DeidentifyTemplate deidentifyTemplate = DeidentifyTemplate.newBuilder().build(); @@ -1690,8 +1822,11 @@ public final DeidentifyTemplate createDeidentifyTemplate( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * OrganizationName parent = OrganizationName.of("[ORGANIZATION]"); * DeidentifyTemplate deidentifyTemplate = DeidentifyTemplate.newBuilder().build(); @@ -1737,8 +1872,11 @@ public final DeidentifyTemplate createDeidentifyTemplate( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * ProjectName parent = ProjectName.of("[PROJECT]"); * DeidentifyTemplate deidentifyTemplate = DeidentifyTemplate.newBuilder().build(); @@ -1784,8 +1922,11 @@ public final DeidentifyTemplate createDeidentifyTemplate( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * String parent = OrganizationName.of("[ORGANIZATION]").toString(); * DeidentifyTemplate deidentifyTemplate = DeidentifyTemplate.newBuilder().build(); @@ -1831,8 +1972,11 @@ public final DeidentifyTemplate createDeidentifyTemplate( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * CreateDeidentifyTemplateRequest request = * CreateDeidentifyTemplateRequest.newBuilder() @@ -1862,8 +2006,11 @@ public final DeidentifyTemplate createDeidentifyTemplate( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * CreateDeidentifyTemplateRequest request = * CreateDeidentifyTemplateRequest.newBuilder() @@ -1892,8 +2039,11 @@ public final DeidentifyTemplate createDeidentifyTemplate( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * DeidentifyTemplateName name = * DeidentifyTemplateName.ofOrganizationDeidentifyTemplateName( @@ -1931,8 +2081,11 @@ public final DeidentifyTemplate updateDeidentifyTemplate( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * String name = * DeidentifyTemplateName.ofOrganizationDeidentifyTemplateName( @@ -1971,8 +2124,11 @@ public final DeidentifyTemplate updateDeidentifyTemplate( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * UpdateDeidentifyTemplateRequest request = * UpdateDeidentifyTemplateRequest.newBuilder() @@ -2003,8 +2159,11 @@ public final DeidentifyTemplate updateDeidentifyTemplate( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * UpdateDeidentifyTemplateRequest request = * UpdateDeidentifyTemplateRequest.newBuilder() @@ -2035,8 +2194,11 @@ public final DeidentifyTemplate updateDeidentifyTemplate( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * DeidentifyTemplateName name = * DeidentifyTemplateName.ofOrganizationDeidentifyTemplateName( @@ -2066,8 +2228,11 @@ public final DeidentifyTemplate getDeidentifyTemplate(DeidentifyTemplateName nam *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * String name = * DeidentifyTemplateName.ofOrganizationDeidentifyTemplateName( @@ -2096,8 +2261,11 @@ public final DeidentifyTemplate getDeidentifyTemplate(String name) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * GetDeidentifyTemplateRequest request = * GetDeidentifyTemplateRequest.newBuilder() @@ -2125,8 +2293,11 @@ public final DeidentifyTemplate getDeidentifyTemplate(GetDeidentifyTemplateReque *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * GetDeidentifyTemplateRequest request = * GetDeidentifyTemplateRequest.newBuilder() @@ -2155,8 +2326,11 @@ public final DeidentifyTemplate getDeidentifyTemplate(GetDeidentifyTemplateReque *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); * for (DeidentifyTemplate element : @@ -2199,8 +2373,11 @@ public final ListDeidentifyTemplatesPagedResponse listDeidentifyTemplates(Locati *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); * for (DeidentifyTemplate element : @@ -2244,8 +2421,11 @@ public final ListDeidentifyTemplatesPagedResponse listDeidentifyTemplates( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * OrganizationName parent = OrganizationName.of("[ORGANIZATION]"); * for (DeidentifyTemplate element : @@ -2289,8 +2469,11 @@ public final ListDeidentifyTemplatesPagedResponse listDeidentifyTemplates( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * ProjectName parent = ProjectName.of("[PROJECT]"); * for (DeidentifyTemplate element : @@ -2333,8 +2516,11 @@ public final ListDeidentifyTemplatesPagedResponse listDeidentifyTemplates(Projec *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * String parent = OrganizationName.of("[ORGANIZATION]").toString(); * for (DeidentifyTemplate element : @@ -2375,8 +2561,11 @@ public final ListDeidentifyTemplatesPagedResponse listDeidentifyTemplates(String *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * ListDeidentifyTemplatesRequest request = * ListDeidentifyTemplatesRequest.newBuilder() @@ -2409,8 +2598,11 @@ public final ListDeidentifyTemplatesPagedResponse listDeidentifyTemplates( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * ListDeidentifyTemplatesRequest request = * ListDeidentifyTemplatesRequest.newBuilder() @@ -2442,8 +2634,11 @@ public final ListDeidentifyTemplatesPagedResponse listDeidentifyTemplates( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * ListDeidentifyTemplatesRequest request = * ListDeidentifyTemplatesRequest.newBuilder() @@ -2482,8 +2677,11 @@ public final ListDeidentifyTemplatesPagedResponse listDeidentifyTemplates( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * DeidentifyTemplateName name = * DeidentifyTemplateName.ofOrganizationDeidentifyTemplateName( @@ -2513,8 +2711,11 @@ public final void deleteDeidentifyTemplate(DeidentifyTemplateName name) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * String name = * DeidentifyTemplateName.ofOrganizationDeidentifyTemplateName( @@ -2543,8 +2744,11 @@ public final void deleteDeidentifyTemplate(String name) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * DeleteDeidentifyTemplateRequest request = * DeleteDeidentifyTemplateRequest.newBuilder() @@ -2572,8 +2776,11 @@ public final void deleteDeidentifyTemplate(DeleteDeidentifyTemplateRequest reque *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * DeleteDeidentifyTemplateRequest request = * DeleteDeidentifyTemplateRequest.newBuilder() @@ -2602,8 +2809,11 @@ public final void deleteDeidentifyTemplate(DeleteDeidentifyTemplateRequest reque *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); * JobTrigger jobTrigger = JobTrigger.newBuilder().build(); @@ -2641,8 +2851,11 @@ public final JobTrigger createJobTrigger(LocationName parent, JobTrigger jobTrig *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * ProjectName parent = ProjectName.of("[PROJECT]"); * JobTrigger jobTrigger = JobTrigger.newBuilder().build(); @@ -2680,8 +2893,11 @@ public final JobTrigger createJobTrigger(ProjectName parent, JobTrigger jobTrigg *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * String parent = ProjectName.of("[PROJECT]").toString(); * JobTrigger jobTrigger = JobTrigger.newBuilder().build(); @@ -2716,8 +2932,11 @@ public final JobTrigger createJobTrigger(String parent, JobTrigger jobTrigger) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * CreateJobTriggerRequest request = * CreateJobTriggerRequest.newBuilder() @@ -2745,8 +2964,11 @@ public final JobTrigger createJobTrigger(CreateJobTriggerRequest request) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * CreateJobTriggerRequest request = * CreateJobTriggerRequest.newBuilder() @@ -2774,8 +2996,11 @@ public final UnaryCallablecreateJobTrigger * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * JobTriggerName name = JobTriggerName.ofProjectJobTriggerName("[PROJECT]", "[JOB_TRIGGER]"); * JobTrigger jobTrigger = JobTrigger.newBuilder().build(); @@ -2809,8 +3034,11 @@ public final JobTrigger updateJobTrigger( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * String name = JobTriggerName.ofProjectJobTriggerName("[PROJECT]", "[JOB_TRIGGER]").toString(); * JobTrigger jobTrigger = JobTrigger.newBuilder().build(); @@ -2844,8 +3072,11 @@ public final JobTrigger updateJobTrigger( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * UpdateJobTriggerRequest request = * UpdateJobTriggerRequest.newBuilder() @@ -2873,8 +3104,11 @@ public final JobTrigger updateJobTrigger(UpdateJobTriggerRequest request) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * UpdateJobTriggerRequest request = * UpdateJobTriggerRequest.newBuilder() @@ -2902,8 +3136,11 @@ public final UnaryCallableupdateJobTrigger * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * JobTriggerName name = * JobTriggerName.ofProjectLocationJobTriggerName( @@ -2932,8 +3169,11 @@ public final HybridInspectResponse hybridInspectJobTrigger(JobTriggerName name) *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * String name = JobTriggerName.ofProjectJobTriggerName("[PROJECT]", "[JOB_TRIGGER]").toString(); * HybridInspectResponse response = dlpServiceClient.hybridInspectJobTrigger(name); @@ -2958,8 +3198,11 @@ public final HybridInspectResponse hybridInspectJobTrigger(String name) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * HybridInspectJobTriggerRequest request = * HybridInspectJobTriggerRequest.newBuilder() @@ -2989,8 +3232,11 @@ public final HybridInspectResponse hybridInspectJobTrigger( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * HybridInspectJobTriggerRequest request = * HybridInspectJobTriggerRequest.newBuilder() @@ -3019,8 +3265,11 @@ public final HybridInspectResponse hybridInspectJobTrigger( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * JobTriggerName name = JobTriggerName.ofProjectJobTriggerName("[PROJECT]", "[JOB_TRIGGER]"); * JobTrigger response = dlpServiceClient.getJobTrigger(name); @@ -3044,8 +3293,11 @@ public final JobTrigger getJobTrigger(JobTriggerName name) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * String name = JobTriggerName.ofProjectJobTriggerName("[PROJECT]", "[JOB_TRIGGER]").toString(); * JobTrigger response = dlpServiceClient.getJobTrigger(name); @@ -3068,8 +3320,11 @@ public final JobTrigger getJobTrigger(String name) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * GetJobTriggerRequest request = * GetJobTriggerRequest.newBuilder() @@ -3094,8 +3349,11 @@ public final JobTrigger getJobTrigger(GetJobTriggerRequest request) { *