diff --git a/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/DlpServiceClient.java b/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/DlpServiceClient.java index 9e951750..a7adc8b8 100644 --- a/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/DlpServiceClient.java +++ b/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/DlpServiceClient.java @@ -37,12 +37,14 @@ import com.google.privacy.dlp.v2.DeidentifyContentRequest; import com.google.privacy.dlp.v2.DeidentifyContentResponse; import com.google.privacy.dlp.v2.DeidentifyTemplate; +import com.google.privacy.dlp.v2.DeidentifyTemplateName; import com.google.privacy.dlp.v2.DeleteDeidentifyTemplateRequest; import com.google.privacy.dlp.v2.DeleteDlpJobRequest; import com.google.privacy.dlp.v2.DeleteInspectTemplateRequest; import com.google.privacy.dlp.v2.DeleteJobTriggerRequest; import com.google.privacy.dlp.v2.DeleteStoredInfoTypeRequest; import com.google.privacy.dlp.v2.DlpJob; +import com.google.privacy.dlp.v2.DlpJobName; import com.google.privacy.dlp.v2.FinishDlpJobRequest; import com.google.privacy.dlp.v2.GetDeidentifyTemplateRequest; import com.google.privacy.dlp.v2.GetDlpJobRequest; @@ -54,8 +56,11 @@ import com.google.privacy.dlp.v2.HybridInspectResponse; import com.google.privacy.dlp.v2.InspectContentRequest; import com.google.privacy.dlp.v2.InspectContentResponse; +import com.google.privacy.dlp.v2.InspectJobConfig; import com.google.privacy.dlp.v2.InspectTemplate; +import com.google.privacy.dlp.v2.InspectTemplateName; import com.google.privacy.dlp.v2.JobTrigger; +import com.google.privacy.dlp.v2.JobTriggerName; import com.google.privacy.dlp.v2.ListDeidentifyTemplatesRequest; import com.google.privacy.dlp.v2.ListDeidentifyTemplatesResponse; import com.google.privacy.dlp.v2.ListDlpJobsRequest; @@ -68,16 +73,24 @@ import com.google.privacy.dlp.v2.ListJobTriggersResponse; import com.google.privacy.dlp.v2.ListStoredInfoTypesRequest; import com.google.privacy.dlp.v2.ListStoredInfoTypesResponse; +import com.google.privacy.dlp.v2.LocationName; +import com.google.privacy.dlp.v2.OrganizationLocationName; +import com.google.privacy.dlp.v2.OrganizationName; +import com.google.privacy.dlp.v2.ProjectName; import com.google.privacy.dlp.v2.RedactImageRequest; import com.google.privacy.dlp.v2.RedactImageResponse; import com.google.privacy.dlp.v2.ReidentifyContentRequest; import com.google.privacy.dlp.v2.ReidentifyContentResponse; +import com.google.privacy.dlp.v2.RiskAnalysisJobConfig; import com.google.privacy.dlp.v2.StoredInfoType; +import com.google.privacy.dlp.v2.StoredInfoTypeConfig; +import com.google.privacy.dlp.v2.StoredInfoTypeName; import com.google.privacy.dlp.v2.UpdateDeidentifyTemplateRequest; import com.google.privacy.dlp.v2.UpdateInspectTemplateRequest; import com.google.privacy.dlp.v2.UpdateJobTriggerRequest; import com.google.privacy.dlp.v2.UpdateStoredInfoTypeRequest; import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; import java.io.IOException; import java.util.List; import java.util.concurrent.TimeUnit; @@ -99,11 +112,8 @@ *
  * 
  * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
- *   ProjectName parent = ProjectName.of("[PROJECT]");
- *   InspectContentRequest request = InspectContentRequest.newBuilder()
- *     .setParent(parent.toString())
- *     .build();
- *   InspectContentResponse response = dlpServiceClient.inspectContent(request);
+ *   String locationId = "";
+ *   ListInfoTypesResponse response = dlpServiceClient.listInfoTypes(locationId);
  * }
  * 
  * 
@@ -226,10 +236,7 @@ public DlpServiceStub getStub() { * *

    * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
-   *   ProjectName parent = ProjectName.of("[PROJECT]");
-   *   InspectContentRequest request = InspectContentRequest.newBuilder()
-   *     .setParent(parent.toString())
-   *     .build();
+   *   InspectContentRequest request = InspectContentRequest.newBuilder().build();
    *   InspectContentResponse response = dlpServiceClient.inspectContent(request);
    * }
    * 
@@ -257,10 +264,7 @@ public final InspectContentResponse inspectContent(InspectContentRequest request * *

    * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
-   *   ProjectName parent = ProjectName.of("[PROJECT]");
-   *   InspectContentRequest request = InspectContentRequest.newBuilder()
-   *     .setParent(parent.toString())
-   *     .build();
+   *   InspectContentRequest request = InspectContentRequest.newBuilder().build();
    *   ApiFuture<InspectContentResponse> future = dlpServiceClient.inspectContentCallable().futureCall(request);
    *   // Do something
    *   InspectContentResponse response = future.get();
@@ -286,10 +290,7 @@ public final InspectContentResponse inspectContent(InspectContentRequest request
    *
    * 

    * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
-   *   ProjectName parent = ProjectName.of("[PROJECT]");
-   *   RedactImageRequest request = RedactImageRequest.newBuilder()
-   *     .setParent(parent.toString())
-   *     .build();
+   *   RedactImageRequest request = RedactImageRequest.newBuilder().build();
    *   RedactImageResponse response = dlpServiceClient.redactImage(request);
    * }
    * 
@@ -315,10 +316,7 @@ public final RedactImageResponse redactImage(RedactImageRequest request) { * *

    * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
-   *   ProjectName parent = ProjectName.of("[PROJECT]");
-   *   RedactImageRequest request = RedactImageRequest.newBuilder()
-   *     .setParent(parent.toString())
-   *     .build();
+   *   RedactImageRequest request = RedactImageRequest.newBuilder().build();
    *   ApiFuture<RedactImageResponse> future = dlpServiceClient.redactImageCallable().futureCall(request);
    *   // Do something
    *   RedactImageResponse response = future.get();
@@ -343,10 +341,7 @@ public final UnaryCallable redactImageC
    *
    * 

    * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
-   *   ProjectName parent = ProjectName.of("[PROJECT]");
-   *   DeidentifyContentRequest request = DeidentifyContentRequest.newBuilder()
-   *     .setParent(parent.toString())
-   *     .build();
+   *   DeidentifyContentRequest request = DeidentifyContentRequest.newBuilder().build();
    *   DeidentifyContentResponse response = dlpServiceClient.deidentifyContent(request);
    * }
    * 
@@ -372,10 +367,7 @@ public final DeidentifyContentResponse deidentifyContent(DeidentifyContentReques * *

    * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
-   *   ProjectName parent = ProjectName.of("[PROJECT]");
-   *   DeidentifyContentRequest request = DeidentifyContentRequest.newBuilder()
-   *     .setParent(parent.toString())
-   *     .build();
+   *   DeidentifyContentRequest request = DeidentifyContentRequest.newBuilder().build();
    *   ApiFuture<DeidentifyContentResponse> future = dlpServiceClient.deidentifyContentCallable().futureCall(request);
    *   // Do something
    *   DeidentifyContentResponse response = future.get();
@@ -437,6 +429,29 @@ public final ReidentifyContentResponse reidentifyContent(ReidentifyContentReques
     return stub.reidentifyContentCallable();
   }
 
+  // AUTO-GENERATED DOCUMENTATION AND METHOD
+  /**
+   * Returns a list of the sensitive information types that the DLP API supports. See
+   * https://cloud.google.com/dlp/docs/infotypes-reference to learn more.
+   *
+   * 

Sample code: + * + *


+   * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
+   *   String locationId = "";
+   *   ListInfoTypesResponse response = dlpServiceClient.listInfoTypes(locationId);
+   * }
+   * 
+ * + * @param locationId The geographic location to list info types. Reserved for future extensions. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListInfoTypesResponse listInfoTypes(String locationId) { + ListInfoTypesRequest request = + ListInfoTypesRequest.newBuilder().setLocationId(locationId).build(); + return listInfoTypes(request); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD /** * Returns a list of the sensitive information types that the DLP API supports. See @@ -487,19 +502,25 @@ public final UnaryCallable listInfo * *

    * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
-   *   OrganizationName parent = OrganizationName.of("[ORGANIZATION]");
-   *   CreateInspectTemplateRequest request = CreateInspectTemplateRequest.newBuilder()
-   *     .setParent(parent.toString())
-   *     .build();
-   *   InspectTemplate response = dlpServiceClient.createInspectTemplate(request);
+   *   OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]");
+   *   InspectTemplate inspectTemplate = InspectTemplate.newBuilder().build();
+   *   InspectTemplate response = dlpServiceClient.createInspectTemplate(parent, inspectTemplate);
    * }
    * 
* - * @param request The request object containing all of the parameters for the API call. + * @param parent Required. The parent resource name, for example projects/my-project-id or + * organizations/my-org-id. + * @param inspectTemplate Required. The InspectTemplate to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final InspectTemplate createInspectTemplate(CreateInspectTemplateRequest request) { - return createInspectTemplateCallable().call(request); + public final InspectTemplate createInspectTemplate( + OrganizationLocationName parent, InspectTemplate inspectTemplate) { + CreateInspectTemplateRequest request = + CreateInspectTemplateRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setInspectTemplate(inspectTemplate) + .build(); + return createInspectTemplate(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -511,403 +532,2906 @@ public final InspectTemplate createInspectTemplate(CreateInspectTemplateRequest * *

    * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
-   *   OrganizationName parent = OrganizationName.of("[ORGANIZATION]");
-   *   CreateInspectTemplateRequest request = CreateInspectTemplateRequest.newBuilder()
-   *     .setParent(parent.toString())
-   *     .build();
-   *   ApiFuture<InspectTemplate> future = dlpServiceClient.createInspectTemplateCallable().futureCall(request);
-   *   // Do something
-   *   InspectTemplate response = future.get();
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   InspectTemplate inspectTemplate = InspectTemplate.newBuilder().build();
+   *   InspectTemplate response = dlpServiceClient.createInspectTemplate(parent, inspectTemplate);
    * }
    * 
+ * + * @param parent Required. The parent resource name, for example projects/my-project-id or + * organizations/my-org-id. + * @param inspectTemplate Required. The InspectTemplate to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UnaryCallable - createInspectTemplateCallable() { - return stub.createInspectTemplateCallable(); + public final InspectTemplate createInspectTemplate( + ProjectName parent, InspectTemplate inspectTemplate) { + CreateInspectTemplateRequest request = + CreateInspectTemplateRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setInspectTemplate(inspectTemplate) + .build(); + return createInspectTemplate(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Updates the InspectTemplate. See https://cloud.google.com/dlp/docs/creating-templates to learn - * more. + * Creates an InspectTemplate for re-using frequently used configuration for inspecting content, + * images, and storage. See https://cloud.google.com/dlp/docs/creating-templates to learn more. * *

Sample code: * *


    * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
-   *   InspectTemplateName name = OrganizationInspectTemplateName.of("[ORGANIZATION]", "[INSPECT_TEMPLATE]");
-   *   UpdateInspectTemplateRequest request = UpdateInspectTemplateRequest.newBuilder()
-   *     .setName(name.toString())
-   *     .build();
-   *   InspectTemplate response = dlpServiceClient.updateInspectTemplate(request);
+   *   OrganizationName parent = OrganizationName.of("[ORGANIZATION]");
+   *   InspectTemplate inspectTemplate = InspectTemplate.newBuilder().build();
+   *   InspectTemplate response = dlpServiceClient.createInspectTemplate(parent, inspectTemplate);
    * }
    * 
* - * @param request The request object containing all of the parameters for the API call. + * @param parent Required. The parent resource name, for example projects/my-project-id or + * organizations/my-org-id. + * @param inspectTemplate Required. The InspectTemplate to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final InspectTemplate updateInspectTemplate(UpdateInspectTemplateRequest request) { - return updateInspectTemplateCallable().call(request); + public final InspectTemplate createInspectTemplate( + OrganizationName parent, InspectTemplate inspectTemplate) { + CreateInspectTemplateRequest request = + CreateInspectTemplateRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setInspectTemplate(inspectTemplate) + .build(); + return createInspectTemplate(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Updates the InspectTemplate. See https://cloud.google.com/dlp/docs/creating-templates to learn - * more. + * Creates an InspectTemplate for re-using frequently used configuration for inspecting content, + * images, and storage. See https://cloud.google.com/dlp/docs/creating-templates to learn more. * *

Sample code: * *


    * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
-   *   InspectTemplateName name = OrganizationInspectTemplateName.of("[ORGANIZATION]", "[INSPECT_TEMPLATE]");
-   *   UpdateInspectTemplateRequest request = UpdateInspectTemplateRequest.newBuilder()
-   *     .setName(name.toString())
-   *     .build();
-   *   ApiFuture<InspectTemplate> future = dlpServiceClient.updateInspectTemplateCallable().futureCall(request);
-   *   // Do something
-   *   InspectTemplate response = future.get();
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   InspectTemplate inspectTemplate = InspectTemplate.newBuilder().build();
+   *   InspectTemplate response = dlpServiceClient.createInspectTemplate(parent, inspectTemplate);
    * }
    * 
+ * + * @param parent Required. The parent resource name, for example projects/my-project-id or + * organizations/my-org-id. + * @param inspectTemplate Required. The InspectTemplate to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UnaryCallable - updateInspectTemplateCallable() { - return stub.updateInspectTemplateCallable(); + public final InspectTemplate createInspectTemplate( + LocationName parent, InspectTemplate inspectTemplate) { + CreateInspectTemplateRequest request = + CreateInspectTemplateRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setInspectTemplate(inspectTemplate) + .build(); + return createInspectTemplate(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Gets an InspectTemplate. See https://cloud.google.com/dlp/docs/creating-templates to learn - * more. + * Creates an InspectTemplate for re-using frequently used configuration for inspecting content, + * images, and storage. See https://cloud.google.com/dlp/docs/creating-templates to learn more. * *

Sample code: * *


    * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
-   *   GetInspectTemplateRequest request = GetInspectTemplateRequest.newBuilder().build();
-   *   InspectTemplate response = dlpServiceClient.getInspectTemplate(request);
+   *   OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]");
+   *   InspectTemplate inspectTemplate = InspectTemplate.newBuilder().build();
+   *   InspectTemplate response = dlpServiceClient.createInspectTemplate(parent.toString(), inspectTemplate);
    * }
    * 
* - * @param request The request object containing all of the parameters for the API call. + * @param parent Required. The parent resource name, for example projects/my-project-id or + * organizations/my-org-id. + * @param inspectTemplate Required. The InspectTemplate to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final InspectTemplate getInspectTemplate(GetInspectTemplateRequest request) { - return getInspectTemplateCallable().call(request); + public final InspectTemplate createInspectTemplate( + String parent, InspectTemplate inspectTemplate) { + CreateInspectTemplateRequest request = + CreateInspectTemplateRequest.newBuilder() + .setParent(parent) + .setInspectTemplate(inspectTemplate) + .build(); + return createInspectTemplate(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Gets an InspectTemplate. See https://cloud.google.com/dlp/docs/creating-templates to learn - * more. + * Creates an InspectTemplate for re-using frequently used configuration for inspecting content, + * images, and storage. See https://cloud.google.com/dlp/docs/creating-templates to learn more. * *

Sample code: * *


    * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
-   *   GetInspectTemplateRequest request = GetInspectTemplateRequest.newBuilder().build();
-   *   ApiFuture<InspectTemplate> future = dlpServiceClient.getInspectTemplateCallable().futureCall(request);
-   *   // Do something
-   *   InspectTemplate response = future.get();
+   *   OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]");
+   *   InspectTemplate inspectTemplate = InspectTemplate.newBuilder().build();
+   *   String locationId = "";
+   *   InspectTemplate response = dlpServiceClient.createInspectTemplate(parent, inspectTemplate, locationId);
    * }
    * 
+ * + * @param parent Required. The parent resource name, for example projects/my-project-id or + * organizations/my-org-id. + * @param inspectTemplate Required. The InspectTemplate to create. + * @param locationId The geographic location to store the inspection template. Reserved for future + * extensions. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UnaryCallable - getInspectTemplateCallable() { - return stub.getInspectTemplateCallable(); + public final InspectTemplate createInspectTemplate( + OrganizationLocationName parent, InspectTemplate inspectTemplate, String locationId) { + CreateInspectTemplateRequest request = + CreateInspectTemplateRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setInspectTemplate(inspectTemplate) + .setLocationId(locationId) + .build(); + return createInspectTemplate(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Lists InspectTemplates. See https://cloud.google.com/dlp/docs/creating-templates to learn more. + * Creates an InspectTemplate for re-using frequently used configuration for inspecting content, + * images, and storage. See https://cloud.google.com/dlp/docs/creating-templates to learn more. * *

Sample code: * *


    * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
-   *   OrganizationName parent = OrganizationName.of("[ORGANIZATION]");
-   *   ListInspectTemplatesRequest request = ListInspectTemplatesRequest.newBuilder()
-   *     .setParent(parent.toString())
-   *     .build();
-   *   for (InspectTemplate element : dlpServiceClient.listInspectTemplates(request).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   InspectTemplate inspectTemplate = InspectTemplate.newBuilder().build();
+   *   String locationId = "";
+   *   InspectTemplate response = dlpServiceClient.createInspectTemplate(parent, inspectTemplate, locationId);
    * }
    * 
* - * @param request The request object containing all of the parameters for the API call. + * @param parent Required. The parent resource name, for example projects/my-project-id or + * organizations/my-org-id. + * @param inspectTemplate Required. The InspectTemplate to create. + * @param locationId The geographic location to store the inspection template. Reserved for future + * extensions. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListInspectTemplatesPagedResponse listInspectTemplates( - ListInspectTemplatesRequest request) { - return listInspectTemplatesPagedCallable().call(request); + public final InspectTemplate createInspectTemplate( + ProjectName parent, InspectTemplate inspectTemplate, String locationId) { + CreateInspectTemplateRequest request = + CreateInspectTemplateRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setInspectTemplate(inspectTemplate) + .setLocationId(locationId) + .build(); + return createInspectTemplate(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Lists InspectTemplates. See https://cloud.google.com/dlp/docs/creating-templates to learn more. + * Creates an InspectTemplate for re-using frequently used configuration for inspecting content, + * images, and storage. See https://cloud.google.com/dlp/docs/creating-templates to learn more. * *

Sample code: * *


    * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
    *   OrganizationName parent = OrganizationName.of("[ORGANIZATION]");
-   *   ListInspectTemplatesRequest request = ListInspectTemplatesRequest.newBuilder()
-   *     .setParent(parent.toString())
-   *     .build();
-   *   ApiFuture<ListInspectTemplatesPagedResponse> future = dlpServiceClient.listInspectTemplatesPagedCallable().futureCall(request);
-   *   // Do something
-   *   for (InspectTemplate element : future.get().iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
+   *   InspectTemplate inspectTemplate = InspectTemplate.newBuilder().build();
+   *   String locationId = "";
+   *   InspectTemplate response = dlpServiceClient.createInspectTemplate(parent, inspectTemplate, locationId);
    * }
    * 
- */ - public final UnaryCallable - listInspectTemplatesPagedCallable() { - return stub.listInspectTemplatesPagedCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Lists InspectTemplates. See https://cloud.google.com/dlp/docs/creating-templates to learn more. - * - *

Sample code: * - *


-   * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
-   *   OrganizationName parent = OrganizationName.of("[ORGANIZATION]");
-   *   ListInspectTemplatesRequest request = ListInspectTemplatesRequest.newBuilder()
-   *     .setParent(parent.toString())
-   *     .build();
-   *   while (true) {
-   *     ListInspectTemplatesResponse response = dlpServiceClient.listInspectTemplatesCallable().call(request);
-   *     for (InspectTemplate element : response.getInspectTemplatesList()) {
-   *       // doThingsWith(element);
-   *     }
-   *     String nextPageToken = response.getNextPageToken();
-   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
-   *       request = request.toBuilder().setPageToken(nextPageToken).build();
-   *     } else {
-   *       break;
-   *     }
-   *   }
-   * }
-   * 
+ * @param parent Required. The parent resource name, for example projects/my-project-id or + * organizations/my-org-id. + * @param inspectTemplate Required. The InspectTemplate to create. + * @param locationId The geographic location to store the inspection template. Reserved for future + * extensions. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UnaryCallable - listInspectTemplatesCallable() { - return stub.listInspectTemplatesCallable(); + public final InspectTemplate createInspectTemplate( + OrganizationName parent, InspectTemplate inspectTemplate, String locationId) { + CreateInspectTemplateRequest request = + CreateInspectTemplateRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setInspectTemplate(inspectTemplate) + .setLocationId(locationId) + .build(); + return createInspectTemplate(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Deletes an InspectTemplate. See https://cloud.google.com/dlp/docs/creating-templates to learn - * more. + * Creates an InspectTemplate for re-using frequently used configuration for inspecting content, + * images, and storage. See https://cloud.google.com/dlp/docs/creating-templates to learn more. * *

Sample code: * *


    * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
-   *   InspectTemplateName name = OrganizationInspectTemplateName.of("[ORGANIZATION]", "[INSPECT_TEMPLATE]");
-   *   DeleteInspectTemplateRequest request = DeleteInspectTemplateRequest.newBuilder()
-   *     .setName(name.toString())
-   *     .build();
-   *   dlpServiceClient.deleteInspectTemplate(request);
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   InspectTemplate inspectTemplate = InspectTemplate.newBuilder().build();
+   *   String locationId = "";
+   *   InspectTemplate response = dlpServiceClient.createInspectTemplate(parent, inspectTemplate, locationId);
    * }
    * 
* - * @param request The request object containing all of the parameters for the API call. + * @param parent Required. The parent resource name, for example projects/my-project-id or + * organizations/my-org-id. + * @param inspectTemplate Required. The InspectTemplate to create. + * @param locationId The geographic location to store the inspection template. Reserved for future + * extensions. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteInspectTemplate(DeleteInspectTemplateRequest request) { - deleteInspectTemplateCallable().call(request); + public final InspectTemplate createInspectTemplate( + LocationName parent, InspectTemplate inspectTemplate, String locationId) { + CreateInspectTemplateRequest request = + CreateInspectTemplateRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setInspectTemplate(inspectTemplate) + .setLocationId(locationId) + .build(); + return createInspectTemplate(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Deletes an InspectTemplate. See https://cloud.google.com/dlp/docs/creating-templates to learn - * more. + * Creates an InspectTemplate for re-using frequently used configuration for inspecting content, + * images, and storage. See https://cloud.google.com/dlp/docs/creating-templates to learn more. * *

Sample code: * *


    * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
-   *   InspectTemplateName name = OrganizationInspectTemplateName.of("[ORGANIZATION]", "[INSPECT_TEMPLATE]");
-   *   DeleteInspectTemplateRequest request = DeleteInspectTemplateRequest.newBuilder()
-   *     .setName(name.toString())
-   *     .build();
-   *   ApiFuture<Void> future = dlpServiceClient.deleteInspectTemplateCallable().futureCall(request);
-   *   // Do something
-   *   future.get();
+   *   OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]");
+   *   InspectTemplate inspectTemplate = InspectTemplate.newBuilder().build();
+   *   String locationId = "";
+   *   InspectTemplate response = dlpServiceClient.createInspectTemplate(parent.toString(), inspectTemplate, locationId);
    * }
    * 
+ * + * @param parent Required. The parent resource name, for example projects/my-project-id or + * organizations/my-org-id. + * @param inspectTemplate Required. The InspectTemplate to create. + * @param locationId The geographic location to store the inspection template. Reserved for future + * extensions. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UnaryCallable deleteInspectTemplateCallable() { - return stub.deleteInspectTemplateCallable(); + public final InspectTemplate createInspectTemplate( + String parent, InspectTemplate inspectTemplate, String locationId) { + CreateInspectTemplateRequest request = + CreateInspectTemplateRequest.newBuilder() + .setParent(parent) + .setInspectTemplate(inspectTemplate) + .setLocationId(locationId) + .build(); + return createInspectTemplate(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Creates a DeidentifyTemplate for re-using frequently used configuration for de-identifying - * content, images, and storage. See https://cloud.google.com/dlp/docs/creating-templates-deid to - * learn more. + * Creates an InspectTemplate for re-using frequently used configuration for inspecting content, + * images, and storage. See https://cloud.google.com/dlp/docs/creating-templates to learn more. * *

Sample code: * *


    * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
-   *   OrganizationName parent = OrganizationName.of("[ORGANIZATION]");
-   *   CreateDeidentifyTemplateRequest request = CreateDeidentifyTemplateRequest.newBuilder()
+   *   OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]");
+   *   InspectTemplate inspectTemplate = InspectTemplate.newBuilder().build();
+   *   CreateInspectTemplateRequest request = CreateInspectTemplateRequest.newBuilder()
    *     .setParent(parent.toString())
+   *     .setInspectTemplate(inspectTemplate)
    *     .build();
-   *   DeidentifyTemplate response = dlpServiceClient.createDeidentifyTemplate(request);
+   *   InspectTemplate response = dlpServiceClient.createInspectTemplate(request);
    * }
    * 
* * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final DeidentifyTemplate createDeidentifyTemplate( - CreateDeidentifyTemplateRequest request) { - return createDeidentifyTemplateCallable().call(request); + public final InspectTemplate createInspectTemplate(CreateInspectTemplateRequest request) { + return createInspectTemplateCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Creates a DeidentifyTemplate for re-using frequently used configuration for de-identifying - * content, images, and storage. See https://cloud.google.com/dlp/docs/creating-templates-deid to - * learn more. + * Creates an InspectTemplate for re-using frequently used configuration for inspecting content, + * images, and storage. See https://cloud.google.com/dlp/docs/creating-templates to learn more. * *

Sample code: * *


    * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
-   *   OrganizationName parent = OrganizationName.of("[ORGANIZATION]");
-   *   CreateDeidentifyTemplateRequest request = CreateDeidentifyTemplateRequest.newBuilder()
+   *   OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]");
+   *   InspectTemplate inspectTemplate = InspectTemplate.newBuilder().build();
+   *   CreateInspectTemplateRequest request = CreateInspectTemplateRequest.newBuilder()
    *     .setParent(parent.toString())
+   *     .setInspectTemplate(inspectTemplate)
    *     .build();
-   *   ApiFuture<DeidentifyTemplate> future = dlpServiceClient.createDeidentifyTemplateCallable().futureCall(request);
+   *   ApiFuture<InspectTemplate> future = dlpServiceClient.createInspectTemplateCallable().futureCall(request);
    *   // Do something
-   *   DeidentifyTemplate response = future.get();
+   *   InspectTemplate response = future.get();
    * }
    * 
*/ - public final UnaryCallable - createDeidentifyTemplateCallable() { - return stub.createDeidentifyTemplateCallable(); + public final UnaryCallable + createInspectTemplateCallable() { + return stub.createInspectTemplateCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Updates the DeidentifyTemplate. See https://cloud.google.com/dlp/docs/creating-templates-deid - * to learn more. + * Updates the InspectTemplate. See https://cloud.google.com/dlp/docs/creating-templates to learn + * more. * *

Sample code: * *


    * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
-   *   DeidentifyTemplateName name = OrganizationDeidentifyTemplateName.of("[ORGANIZATION]", "[DEIDENTIFY_TEMPLATE]");
-   *   UpdateDeidentifyTemplateRequest request = UpdateDeidentifyTemplateRequest.newBuilder()
-   *     .setName(name.toString())
-   *     .build();
-   *   DeidentifyTemplate response = dlpServiceClient.updateDeidentifyTemplate(request);
+   *   InspectTemplateName name = InspectTemplateName.ofOrganizationInspectTemplateName("[ORGANIZATION]", "[INSPECT_TEMPLATE]");
+   *   InspectTemplate inspectTemplate = InspectTemplate.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   InspectTemplate response = dlpServiceClient.updateInspectTemplate(name, inspectTemplate, updateMask);
    * }
    * 
* - * @param request The request object containing all of the parameters for the API call. + * @param name Required. Resource name of organization and inspectTemplate to be updated, for + * example `organizations/433245324/inspectTemplates/432452342` or + * projects/project-id/inspectTemplates/432452342. + * @param inspectTemplate New InspectTemplate value. + * @param updateMask Mask to control which fields get updated. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final DeidentifyTemplate updateDeidentifyTemplate( - UpdateDeidentifyTemplateRequest request) { - return updateDeidentifyTemplateCallable().call(request); + public final InspectTemplate updateInspectTemplate( + InspectTemplateName name, InspectTemplate inspectTemplate, FieldMask updateMask) { + UpdateInspectTemplateRequest request = + UpdateInspectTemplateRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .setInspectTemplate(inspectTemplate) + .setUpdateMask(updateMask) + .build(); + return updateInspectTemplate(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Updates the DeidentifyTemplate. See https://cloud.google.com/dlp/docs/creating-templates-deid - * to learn more. + * Updates the InspectTemplate. See https://cloud.google.com/dlp/docs/creating-templates to learn + * more. * *

Sample code: * *


    * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
-   *   DeidentifyTemplateName name = OrganizationDeidentifyTemplateName.of("[ORGANIZATION]", "[DEIDENTIFY_TEMPLATE]");
-   *   UpdateDeidentifyTemplateRequest request = UpdateDeidentifyTemplateRequest.newBuilder()
-   *     .setName(name.toString())
-   *     .build();
-   *   ApiFuture<DeidentifyTemplate> future = dlpServiceClient.updateDeidentifyTemplateCallable().futureCall(request);
-   *   // Do something
-   *   DeidentifyTemplate response = future.get();
+   *   InspectTemplateName name = InspectTemplateName.ofOrganizationInspectTemplateName("[ORGANIZATION]", "[INSPECT_TEMPLATE]");
+   *   InspectTemplate inspectTemplate = InspectTemplate.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   InspectTemplate response = dlpServiceClient.updateInspectTemplate(name.toString(), inspectTemplate, updateMask);
    * }
    * 
+ * + * @param name Required. Resource name of organization and inspectTemplate to be updated, for + * example `organizations/433245324/inspectTemplates/432452342` or + * projects/project-id/inspectTemplates/432452342. + * @param inspectTemplate New InspectTemplate value. + * @param updateMask Mask to control which fields get updated. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UnaryCallable - updateDeidentifyTemplateCallable() { - return stub.updateDeidentifyTemplateCallable(); + public final InspectTemplate updateInspectTemplate( + String name, InspectTemplate inspectTemplate, FieldMask updateMask) { + UpdateInspectTemplateRequest request = + UpdateInspectTemplateRequest.newBuilder() + .setName(name) + .setInspectTemplate(inspectTemplate) + .setUpdateMask(updateMask) + .build(); + return updateInspectTemplate(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Gets a DeidentifyTemplate. See https://cloud.google.com/dlp/docs/creating-templates-deid to - * learn more. + * Updates the InspectTemplate. See https://cloud.google.com/dlp/docs/creating-templates to learn + * more. * *

Sample code: * *


    * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
-   *   DeidentifyTemplateName name = OrganizationDeidentifyTemplateName.of("[ORGANIZATION]", "[DEIDENTIFY_TEMPLATE]");
-   *   GetDeidentifyTemplateRequest request = GetDeidentifyTemplateRequest.newBuilder()
+   *   InspectTemplateName name = InspectTemplateName.ofOrganizationInspectTemplateName("[ORGANIZATION]", "[INSPECT_TEMPLATE]");
+   *   UpdateInspectTemplateRequest request = UpdateInspectTemplateRequest.newBuilder()
    *     .setName(name.toString())
    *     .build();
-   *   DeidentifyTemplate response = dlpServiceClient.getDeidentifyTemplate(request);
+   *   InspectTemplate response = dlpServiceClient.updateInspectTemplate(request);
    * }
    * 
* * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final DeidentifyTemplate getDeidentifyTemplate(GetDeidentifyTemplateRequest request) { - return getDeidentifyTemplateCallable().call(request); + public final InspectTemplate updateInspectTemplate(UpdateInspectTemplateRequest request) { + return updateInspectTemplateCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Gets a DeidentifyTemplate. See https://cloud.google.com/dlp/docs/creating-templates-deid to - * learn more. + * Updates the InspectTemplate. See https://cloud.google.com/dlp/docs/creating-templates to learn + * more. * *

Sample code: * *


    * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
-   *   DeidentifyTemplateName name = OrganizationDeidentifyTemplateName.of("[ORGANIZATION]", "[DEIDENTIFY_TEMPLATE]");
-   *   GetDeidentifyTemplateRequest request = GetDeidentifyTemplateRequest.newBuilder()
+   *   InspectTemplateName name = InspectTemplateName.ofOrganizationInspectTemplateName("[ORGANIZATION]", "[INSPECT_TEMPLATE]");
+   *   UpdateInspectTemplateRequest request = UpdateInspectTemplateRequest.newBuilder()
    *     .setName(name.toString())
    *     .build();
-   *   ApiFuture<DeidentifyTemplate> future = dlpServiceClient.getDeidentifyTemplateCallable().futureCall(request);
+   *   ApiFuture<InspectTemplate> future = dlpServiceClient.updateInspectTemplateCallable().futureCall(request);
    *   // Do something
-   *   DeidentifyTemplate response = future.get();
+   *   InspectTemplate response = future.get();
    * }
    * 
*/ - public final UnaryCallable - getDeidentifyTemplateCallable() { - return stub.getDeidentifyTemplateCallable(); + public final UnaryCallable + updateInspectTemplateCallable() { + return stub.updateInspectTemplateCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Lists DeidentifyTemplates. See https://cloud.google.com/dlp/docs/creating-templates-deid to - * learn more. + * Gets an InspectTemplate. See https://cloud.google.com/dlp/docs/creating-templates to learn + * more. + * + *

Sample code: + * + *


+   * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
+   *   InspectTemplateName name = InspectTemplateName.ofOrganizationInspectTemplateName("[ORGANIZATION]", "[INSPECT_TEMPLATE]");
+   *   InspectTemplate response = dlpServiceClient.getInspectTemplate(name);
+   * }
+   * 
+ * + * @param name Required. Resource name of the organization and inspectTemplate to be read, for + * example `organizations/433245324/inspectTemplates/432452342` or + * projects/project-id/inspectTemplates/432452342. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final InspectTemplate getInspectTemplate(InspectTemplateName name) { + GetInspectTemplateRequest request = + GetInspectTemplateRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getInspectTemplate(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Gets an InspectTemplate. See https://cloud.google.com/dlp/docs/creating-templates to learn + * more. + * + *

Sample code: + * + *


+   * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
+   *   InspectTemplateName name = InspectTemplateName.ofOrganizationInspectTemplateName("[ORGANIZATION]", "[INSPECT_TEMPLATE]");
+   *   InspectTemplate response = dlpServiceClient.getInspectTemplate(name.toString());
+   * }
+   * 
+ * + * @param name Required. Resource name of the organization and inspectTemplate to be read, for + * example `organizations/433245324/inspectTemplates/432452342` or + * projects/project-id/inspectTemplates/432452342. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final InspectTemplate getInspectTemplate(String name) { + GetInspectTemplateRequest request = + GetInspectTemplateRequest.newBuilder().setName(name).build(); + return getInspectTemplate(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Gets an InspectTemplate. See https://cloud.google.com/dlp/docs/creating-templates to learn + * more. + * + *

Sample code: + * + *


+   * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
+   *   InspectTemplateName name = InspectTemplateName.ofOrganizationInspectTemplateName("[ORGANIZATION]", "[INSPECT_TEMPLATE]");
+   *   GetInspectTemplateRequest request = GetInspectTemplateRequest.newBuilder()
+   *     .setName(name.toString())
+   *     .build();
+   *   InspectTemplate response = dlpServiceClient.getInspectTemplate(request);
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final InspectTemplate getInspectTemplate(GetInspectTemplateRequest request) { + return getInspectTemplateCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Gets an InspectTemplate. See https://cloud.google.com/dlp/docs/creating-templates to learn + * more. + * + *

Sample code: + * + *


+   * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
+   *   InspectTemplateName name = InspectTemplateName.ofOrganizationInspectTemplateName("[ORGANIZATION]", "[INSPECT_TEMPLATE]");
+   *   GetInspectTemplateRequest request = GetInspectTemplateRequest.newBuilder()
+   *     .setName(name.toString())
+   *     .build();
+   *   ApiFuture<InspectTemplate> future = dlpServiceClient.getInspectTemplateCallable().futureCall(request);
+   *   // Do something
+   *   InspectTemplate response = future.get();
+   * }
+   * 
+ */ + public final UnaryCallable + getInspectTemplateCallable() { + return stub.getInspectTemplateCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lists InspectTemplates. See https://cloud.google.com/dlp/docs/creating-templates to learn more. + * + *

Sample code: + * + *


+   * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
+   *   OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]");
+   *   for (InspectTemplate element : dlpServiceClient.listInspectTemplates(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * 
+ * + * @param parent Required. The parent resource name, for example projects/my-project-id or + * organizations/my-org-id. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListInspectTemplatesPagedResponse listInspectTemplates( + OrganizationLocationName parent) { + ListInspectTemplatesRequest request = + ListInspectTemplatesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listInspectTemplates(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lists InspectTemplates. See https://cloud.google.com/dlp/docs/creating-templates to learn more. + * + *

Sample code: + * + *


+   * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   for (InspectTemplate element : dlpServiceClient.listInspectTemplates(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * 
+ * + * @param parent Required. The parent resource name, for example projects/my-project-id or + * organizations/my-org-id. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListInspectTemplatesPagedResponse listInspectTemplates(ProjectName parent) { + ListInspectTemplatesRequest request = + ListInspectTemplatesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listInspectTemplates(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lists InspectTemplates. See https://cloud.google.com/dlp/docs/creating-templates to learn more. + * + *

Sample code: + * + *


+   * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
+   *   OrganizationName parent = OrganizationName.of("[ORGANIZATION]");
+   *   for (InspectTemplate element : dlpServiceClient.listInspectTemplates(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * 
+ * + * @param parent Required. The parent resource name, for example projects/my-project-id or + * organizations/my-org-id. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListInspectTemplatesPagedResponse listInspectTemplates(OrganizationName parent) { + ListInspectTemplatesRequest request = + ListInspectTemplatesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listInspectTemplates(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lists InspectTemplates. See https://cloud.google.com/dlp/docs/creating-templates to learn more. + * + *

Sample code: + * + *


+   * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   for (InspectTemplate element : dlpServiceClient.listInspectTemplates(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * 
+ * + * @param parent Required. The parent resource name, for example projects/my-project-id or + * organizations/my-org-id. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListInspectTemplatesPagedResponse listInspectTemplates(LocationName parent) { + ListInspectTemplatesRequest request = + ListInspectTemplatesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listInspectTemplates(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lists InspectTemplates. See https://cloud.google.com/dlp/docs/creating-templates to learn more. + * + *

Sample code: + * + *


+   * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
+   *   OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]");
+   *   for (InspectTemplate element : dlpServiceClient.listInspectTemplates(parent.toString()).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * 
+ * + * @param parent Required. The parent resource name, for example projects/my-project-id or + * organizations/my-org-id. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListInspectTemplatesPagedResponse listInspectTemplates(String parent) { + ListInspectTemplatesRequest request = + ListInspectTemplatesRequest.newBuilder().setParent(parent).build(); + return listInspectTemplates(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lists InspectTemplates. See https://cloud.google.com/dlp/docs/creating-templates to learn more. + * + *

Sample code: + * + *


+   * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
+   *   OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]");
+   *   ListInspectTemplatesRequest request = ListInspectTemplatesRequest.newBuilder()
+   *     .setParent(parent.toString())
+   *     .build();
+   *   for (InspectTemplate element : dlpServiceClient.listInspectTemplates(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListInspectTemplatesPagedResponse listInspectTemplates( + ListInspectTemplatesRequest request) { + return listInspectTemplatesPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lists InspectTemplates. See https://cloud.google.com/dlp/docs/creating-templates to learn more. + * + *

Sample code: + * + *


+   * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
+   *   OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]");
+   *   ListInspectTemplatesRequest request = ListInspectTemplatesRequest.newBuilder()
+   *     .setParent(parent.toString())
+   *     .build();
+   *   ApiFuture<ListInspectTemplatesPagedResponse> future = dlpServiceClient.listInspectTemplatesPagedCallable().futureCall(request);
+   *   // Do something
+   *   for (InspectTemplate element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * 
+ */ + public final UnaryCallable + listInspectTemplatesPagedCallable() { + return stub.listInspectTemplatesPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lists InspectTemplates. See https://cloud.google.com/dlp/docs/creating-templates to learn more. + * + *

Sample code: + * + *


+   * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
+   *   OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]");
+   *   ListInspectTemplatesRequest request = ListInspectTemplatesRequest.newBuilder()
+   *     .setParent(parent.toString())
+   *     .build();
+   *   while (true) {
+   *     ListInspectTemplatesResponse response = dlpServiceClient.listInspectTemplatesCallable().call(request);
+   *     for (InspectTemplate element : response.getInspectTemplatesList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * 
+ */ + public final UnaryCallable + listInspectTemplatesCallable() { + return stub.listInspectTemplatesCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Deletes an InspectTemplate. See https://cloud.google.com/dlp/docs/creating-templates to learn + * more. + * + *

Sample code: + * + *


+   * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
+   *   InspectTemplateName name = InspectTemplateName.ofOrganizationInspectTemplateName("[ORGANIZATION]", "[INSPECT_TEMPLATE]");
+   *   dlpServiceClient.deleteInspectTemplate(name);
+   * }
+   * 
+ * + * @param name Required. Resource name of the organization and inspectTemplate to be deleted, for + * example `organizations/433245324/inspectTemplates/432452342` or + * projects/project-id/inspectTemplates/432452342. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteInspectTemplate(InspectTemplateName name) { + DeleteInspectTemplateRequest request = + DeleteInspectTemplateRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + deleteInspectTemplate(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Deletes an InspectTemplate. See https://cloud.google.com/dlp/docs/creating-templates to learn + * more. + * + *

Sample code: + * + *


+   * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
+   *   InspectTemplateName name = InspectTemplateName.ofOrganizationInspectTemplateName("[ORGANIZATION]", "[INSPECT_TEMPLATE]");
+   *   dlpServiceClient.deleteInspectTemplate(name.toString());
+   * }
+   * 
+ * + * @param name Required. Resource name of the organization and inspectTemplate to be deleted, for + * example `organizations/433245324/inspectTemplates/432452342` or + * projects/project-id/inspectTemplates/432452342. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteInspectTemplate(String name) { + DeleteInspectTemplateRequest request = + DeleteInspectTemplateRequest.newBuilder().setName(name).build(); + deleteInspectTemplate(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Deletes an InspectTemplate. See https://cloud.google.com/dlp/docs/creating-templates to learn + * more. + * + *

Sample code: + * + *


+   * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
+   *   InspectTemplateName name = InspectTemplateName.ofOrganizationInspectTemplateName("[ORGANIZATION]", "[INSPECT_TEMPLATE]");
+   *   DeleteInspectTemplateRequest request = DeleteInspectTemplateRequest.newBuilder()
+   *     .setName(name.toString())
+   *     .build();
+   *   dlpServiceClient.deleteInspectTemplate(request);
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteInspectTemplate(DeleteInspectTemplateRequest request) { + deleteInspectTemplateCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Deletes an InspectTemplate. See https://cloud.google.com/dlp/docs/creating-templates to learn + * more. + * + *

Sample code: + * + *


+   * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
+   *   InspectTemplateName name = InspectTemplateName.ofOrganizationInspectTemplateName("[ORGANIZATION]", "[INSPECT_TEMPLATE]");
+   *   DeleteInspectTemplateRequest request = DeleteInspectTemplateRequest.newBuilder()
+   *     .setName(name.toString())
+   *     .build();
+   *   ApiFuture<Void> future = dlpServiceClient.deleteInspectTemplateCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + public final UnaryCallable deleteInspectTemplateCallable() { + return stub.deleteInspectTemplateCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates a DeidentifyTemplate for re-using frequently used configuration for de-identifying + * content, images, and storage. See https://cloud.google.com/dlp/docs/creating-templates-deid to + * learn more. + * + *

Sample code: + * + *


+   * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
+   *   OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]");
+   *   DeidentifyTemplate deidentifyTemplate = DeidentifyTemplate.newBuilder().build();
+   *   DeidentifyTemplate response = dlpServiceClient.createDeidentifyTemplate(parent, deidentifyTemplate);
+   * }
+   * 
+ * + * @param parent Required. The parent resource name, for example projects/my-project-id or + * organizations/my-org-id. + * @param deidentifyTemplate Required. The DeidentifyTemplate to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DeidentifyTemplate createDeidentifyTemplate( + OrganizationLocationName parent, DeidentifyTemplate deidentifyTemplate) { + CreateDeidentifyTemplateRequest request = + CreateDeidentifyTemplateRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setDeidentifyTemplate(deidentifyTemplate) + .build(); + return createDeidentifyTemplate(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates a DeidentifyTemplate for re-using frequently used configuration for de-identifying + * content, images, and storage. See https://cloud.google.com/dlp/docs/creating-templates-deid to + * learn more. + * + *

Sample code: + * + *


+   * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   DeidentifyTemplate deidentifyTemplate = DeidentifyTemplate.newBuilder().build();
+   *   DeidentifyTemplate response = dlpServiceClient.createDeidentifyTemplate(parent, deidentifyTemplate);
+   * }
+   * 
+ * + * @param parent Required. The parent resource name, for example projects/my-project-id or + * organizations/my-org-id. + * @param deidentifyTemplate Required. The DeidentifyTemplate to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DeidentifyTemplate createDeidentifyTemplate( + ProjectName parent, DeidentifyTemplate deidentifyTemplate) { + CreateDeidentifyTemplateRequest request = + CreateDeidentifyTemplateRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setDeidentifyTemplate(deidentifyTemplate) + .build(); + return createDeidentifyTemplate(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates a DeidentifyTemplate for re-using frequently used configuration for de-identifying + * content, images, and storage. See https://cloud.google.com/dlp/docs/creating-templates-deid to + * learn more. + * + *

Sample code: + * + *


+   * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
+   *   OrganizationName parent = OrganizationName.of("[ORGANIZATION]");
+   *   DeidentifyTemplate deidentifyTemplate = DeidentifyTemplate.newBuilder().build();
+   *   DeidentifyTemplate response = dlpServiceClient.createDeidentifyTemplate(parent, deidentifyTemplate);
+   * }
+   * 
+ * + * @param parent Required. The parent resource name, for example projects/my-project-id or + * organizations/my-org-id. + * @param deidentifyTemplate Required. The DeidentifyTemplate to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DeidentifyTemplate createDeidentifyTemplate( + OrganizationName parent, DeidentifyTemplate deidentifyTemplate) { + CreateDeidentifyTemplateRequest request = + CreateDeidentifyTemplateRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setDeidentifyTemplate(deidentifyTemplate) + .build(); + return createDeidentifyTemplate(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates a DeidentifyTemplate for re-using frequently used configuration for de-identifying + * content, images, and storage. See https://cloud.google.com/dlp/docs/creating-templates-deid to + * learn more. + * + *

Sample code: + * + *


+   * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   DeidentifyTemplate deidentifyTemplate = DeidentifyTemplate.newBuilder().build();
+   *   DeidentifyTemplate response = dlpServiceClient.createDeidentifyTemplate(parent, deidentifyTemplate);
+   * }
+   * 
+ * + * @param parent Required. The parent resource name, for example projects/my-project-id or + * organizations/my-org-id. + * @param deidentifyTemplate Required. The DeidentifyTemplate to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DeidentifyTemplate createDeidentifyTemplate( + LocationName parent, DeidentifyTemplate deidentifyTemplate) { + CreateDeidentifyTemplateRequest request = + CreateDeidentifyTemplateRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setDeidentifyTemplate(deidentifyTemplate) + .build(); + return createDeidentifyTemplate(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates a DeidentifyTemplate for re-using frequently used configuration for de-identifying + * content, images, and storage. See https://cloud.google.com/dlp/docs/creating-templates-deid to + * learn more. + * + *

Sample code: + * + *


+   * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
+   *   OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]");
+   *   DeidentifyTemplate deidentifyTemplate = DeidentifyTemplate.newBuilder().build();
+   *   DeidentifyTemplate response = dlpServiceClient.createDeidentifyTemplate(parent.toString(), deidentifyTemplate);
+   * }
+   * 
+ * + * @param parent Required. The parent resource name, for example projects/my-project-id or + * organizations/my-org-id. + * @param deidentifyTemplate Required. The DeidentifyTemplate to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DeidentifyTemplate createDeidentifyTemplate( + String parent, DeidentifyTemplate deidentifyTemplate) { + CreateDeidentifyTemplateRequest request = + CreateDeidentifyTemplateRequest.newBuilder() + .setParent(parent) + .setDeidentifyTemplate(deidentifyTemplate) + .build(); + return createDeidentifyTemplate(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates a DeidentifyTemplate for re-using frequently used configuration for de-identifying + * content, images, and storage. See https://cloud.google.com/dlp/docs/creating-templates-deid to + * learn more. + * + *

Sample code: + * + *


+   * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
+   *   OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]");
+   *   DeidentifyTemplate deidentifyTemplate = DeidentifyTemplate.newBuilder().build();
+   *   String locationId = "";
+   *   DeidentifyTemplate response = dlpServiceClient.createDeidentifyTemplate(parent, deidentifyTemplate, locationId);
+   * }
+   * 
+ * + * @param parent Required. The parent resource name, for example projects/my-project-id or + * organizations/my-org-id. + * @param deidentifyTemplate Required. The DeidentifyTemplate to create. + * @param locationId The geographic location to store the deidentification template. Reserved for + * future extensions. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DeidentifyTemplate createDeidentifyTemplate( + OrganizationLocationName parent, DeidentifyTemplate deidentifyTemplate, String locationId) { + CreateDeidentifyTemplateRequest request = + CreateDeidentifyTemplateRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setDeidentifyTemplate(deidentifyTemplate) + .setLocationId(locationId) + .build(); + return createDeidentifyTemplate(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates a DeidentifyTemplate for re-using frequently used configuration for de-identifying + * content, images, and storage. See https://cloud.google.com/dlp/docs/creating-templates-deid to + * learn more. + * + *

Sample code: + * + *


+   * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   DeidentifyTemplate deidentifyTemplate = DeidentifyTemplate.newBuilder().build();
+   *   String locationId = "";
+   *   DeidentifyTemplate response = dlpServiceClient.createDeidentifyTemplate(parent, deidentifyTemplate, locationId);
+   * }
+   * 
+ * + * @param parent Required. The parent resource name, for example projects/my-project-id or + * organizations/my-org-id. + * @param deidentifyTemplate Required. The DeidentifyTemplate to create. + * @param locationId The geographic location to store the deidentification template. Reserved for + * future extensions. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DeidentifyTemplate createDeidentifyTemplate( + ProjectName parent, DeidentifyTemplate deidentifyTemplate, String locationId) { + CreateDeidentifyTemplateRequest request = + CreateDeidentifyTemplateRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setDeidentifyTemplate(deidentifyTemplate) + .setLocationId(locationId) + .build(); + return createDeidentifyTemplate(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates a DeidentifyTemplate for re-using frequently used configuration for de-identifying + * content, images, and storage. See https://cloud.google.com/dlp/docs/creating-templates-deid to + * learn more. + * + *

Sample code: + * + *


+   * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
+   *   OrganizationName parent = OrganizationName.of("[ORGANIZATION]");
+   *   DeidentifyTemplate deidentifyTemplate = DeidentifyTemplate.newBuilder().build();
+   *   String locationId = "";
+   *   DeidentifyTemplate response = dlpServiceClient.createDeidentifyTemplate(parent, deidentifyTemplate, locationId);
+   * }
+   * 
+ * + * @param parent Required. The parent resource name, for example projects/my-project-id or + * organizations/my-org-id. + * @param deidentifyTemplate Required. The DeidentifyTemplate to create. + * @param locationId The geographic location to store the deidentification template. Reserved for + * future extensions. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DeidentifyTemplate createDeidentifyTemplate( + OrganizationName parent, DeidentifyTemplate deidentifyTemplate, String locationId) { + CreateDeidentifyTemplateRequest request = + CreateDeidentifyTemplateRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setDeidentifyTemplate(deidentifyTemplate) + .setLocationId(locationId) + .build(); + return createDeidentifyTemplate(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates a DeidentifyTemplate for re-using frequently used configuration for de-identifying + * content, images, and storage. See https://cloud.google.com/dlp/docs/creating-templates-deid to + * learn more. + * + *

Sample code: + * + *


+   * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   DeidentifyTemplate deidentifyTemplate = DeidentifyTemplate.newBuilder().build();
+   *   String locationId = "";
+   *   DeidentifyTemplate response = dlpServiceClient.createDeidentifyTemplate(parent, deidentifyTemplate, locationId);
+   * }
+   * 
+ * + * @param parent Required. The parent resource name, for example projects/my-project-id or + * organizations/my-org-id. + * @param deidentifyTemplate Required. The DeidentifyTemplate to create. + * @param locationId The geographic location to store the deidentification template. Reserved for + * future extensions. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DeidentifyTemplate createDeidentifyTemplate( + LocationName parent, DeidentifyTemplate deidentifyTemplate, String locationId) { + CreateDeidentifyTemplateRequest request = + CreateDeidentifyTemplateRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setDeidentifyTemplate(deidentifyTemplate) + .setLocationId(locationId) + .build(); + return createDeidentifyTemplate(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates a DeidentifyTemplate for re-using frequently used configuration for de-identifying + * content, images, and storage. See https://cloud.google.com/dlp/docs/creating-templates-deid to + * learn more. + * + *

Sample code: + * + *


+   * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
+   *   OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]");
+   *   DeidentifyTemplate deidentifyTemplate = DeidentifyTemplate.newBuilder().build();
+   *   String locationId = "";
+   *   DeidentifyTemplate response = dlpServiceClient.createDeidentifyTemplate(parent.toString(), deidentifyTemplate, locationId);
+   * }
+   * 
+ * + * @param parent Required. The parent resource name, for example projects/my-project-id or + * organizations/my-org-id. + * @param deidentifyTemplate Required. The DeidentifyTemplate to create. + * @param locationId The geographic location to store the deidentification template. Reserved for + * future extensions. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DeidentifyTemplate createDeidentifyTemplate( + String parent, DeidentifyTemplate deidentifyTemplate, String locationId) { + CreateDeidentifyTemplateRequest request = + CreateDeidentifyTemplateRequest.newBuilder() + .setParent(parent) + .setDeidentifyTemplate(deidentifyTemplate) + .setLocationId(locationId) + .build(); + return createDeidentifyTemplate(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates a DeidentifyTemplate for re-using frequently used configuration for de-identifying + * content, images, and storage. See https://cloud.google.com/dlp/docs/creating-templates-deid to + * learn more. + * + *

Sample code: + * + *


+   * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
+   *   OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]");
+   *   DeidentifyTemplate deidentifyTemplate = DeidentifyTemplate.newBuilder().build();
+   *   CreateDeidentifyTemplateRequest request = CreateDeidentifyTemplateRequest.newBuilder()
+   *     .setParent(parent.toString())
+   *     .setDeidentifyTemplate(deidentifyTemplate)
+   *     .build();
+   *   DeidentifyTemplate response = dlpServiceClient.createDeidentifyTemplate(request);
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DeidentifyTemplate createDeidentifyTemplate( + CreateDeidentifyTemplateRequest request) { + return createDeidentifyTemplateCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates a DeidentifyTemplate for re-using frequently used configuration for de-identifying + * content, images, and storage. See https://cloud.google.com/dlp/docs/creating-templates-deid to + * learn more. + * + *

Sample code: + * + *


+   * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
+   *   OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]");
+   *   DeidentifyTemplate deidentifyTemplate = DeidentifyTemplate.newBuilder().build();
+   *   CreateDeidentifyTemplateRequest request = CreateDeidentifyTemplateRequest.newBuilder()
+   *     .setParent(parent.toString())
+   *     .setDeidentifyTemplate(deidentifyTemplate)
+   *     .build();
+   *   ApiFuture<DeidentifyTemplate> future = dlpServiceClient.createDeidentifyTemplateCallable().futureCall(request);
+   *   // Do something
+   *   DeidentifyTemplate response = future.get();
+   * }
+   * 
+ */ + public final UnaryCallable + createDeidentifyTemplateCallable() { + return stub.createDeidentifyTemplateCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Updates the DeidentifyTemplate. See https://cloud.google.com/dlp/docs/creating-templates-deid + * to learn more. + * + *

Sample code: + * + *


+   * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
+   *   DeidentifyTemplateName name = DeidentifyTemplateName.ofOrganizationDeidentifyTemplateName("[ORGANIZATION]", "[DEIDENTIFY_TEMPLATE]");
+   *   DeidentifyTemplate deidentifyTemplate = DeidentifyTemplate.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   DeidentifyTemplate response = dlpServiceClient.updateDeidentifyTemplate(name, deidentifyTemplate, updateMask);
+   * }
+   * 
+ * + * @param name Required. Resource name of organization and deidentify template to be updated, for + * example `organizations/433245324/deidentifyTemplates/432452342` or + * projects/project-id/deidentifyTemplates/432452342. + * @param deidentifyTemplate New DeidentifyTemplate value. + * @param updateMask Mask to control which fields get updated. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DeidentifyTemplate updateDeidentifyTemplate( + DeidentifyTemplateName name, DeidentifyTemplate deidentifyTemplate, FieldMask updateMask) { + UpdateDeidentifyTemplateRequest request = + UpdateDeidentifyTemplateRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .setDeidentifyTemplate(deidentifyTemplate) + .setUpdateMask(updateMask) + .build(); + return updateDeidentifyTemplate(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Updates the DeidentifyTemplate. See https://cloud.google.com/dlp/docs/creating-templates-deid + * to learn more. + * + *

Sample code: + * + *


+   * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
+   *   DeidentifyTemplateName name = DeidentifyTemplateName.ofOrganizationDeidentifyTemplateName("[ORGANIZATION]", "[DEIDENTIFY_TEMPLATE]");
+   *   DeidentifyTemplate deidentifyTemplate = DeidentifyTemplate.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   DeidentifyTemplate response = dlpServiceClient.updateDeidentifyTemplate(name.toString(), deidentifyTemplate, updateMask);
+   * }
+   * 
+ * + * @param name Required. Resource name of organization and deidentify template to be updated, for + * example `organizations/433245324/deidentifyTemplates/432452342` or + * projects/project-id/deidentifyTemplates/432452342. + * @param deidentifyTemplate New DeidentifyTemplate value. + * @param updateMask Mask to control which fields get updated. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DeidentifyTemplate updateDeidentifyTemplate( + String name, DeidentifyTemplate deidentifyTemplate, FieldMask updateMask) { + UpdateDeidentifyTemplateRequest request = + UpdateDeidentifyTemplateRequest.newBuilder() + .setName(name) + .setDeidentifyTemplate(deidentifyTemplate) + .setUpdateMask(updateMask) + .build(); + return updateDeidentifyTemplate(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Updates the DeidentifyTemplate. See https://cloud.google.com/dlp/docs/creating-templates-deid + * to learn more. + * + *

Sample code: + * + *


+   * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
+   *   DeidentifyTemplateName name = DeidentifyTemplateName.ofOrganizationDeidentifyTemplateName("[ORGANIZATION]", "[DEIDENTIFY_TEMPLATE]");
+   *   UpdateDeidentifyTemplateRequest request = UpdateDeidentifyTemplateRequest.newBuilder()
+   *     .setName(name.toString())
+   *     .build();
+   *   DeidentifyTemplate response = dlpServiceClient.updateDeidentifyTemplate(request);
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DeidentifyTemplate updateDeidentifyTemplate( + UpdateDeidentifyTemplateRequest request) { + return updateDeidentifyTemplateCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Updates the DeidentifyTemplate. See https://cloud.google.com/dlp/docs/creating-templates-deid + * to learn more. + * + *

Sample code: + * + *


+   * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
+   *   DeidentifyTemplateName name = DeidentifyTemplateName.ofOrganizationDeidentifyTemplateName("[ORGANIZATION]", "[DEIDENTIFY_TEMPLATE]");
+   *   UpdateDeidentifyTemplateRequest request = UpdateDeidentifyTemplateRequest.newBuilder()
+   *     .setName(name.toString())
+   *     .build();
+   *   ApiFuture<DeidentifyTemplate> future = dlpServiceClient.updateDeidentifyTemplateCallable().futureCall(request);
+   *   // Do something
+   *   DeidentifyTemplate response = future.get();
+   * }
+   * 
+ */ + public final UnaryCallable + updateDeidentifyTemplateCallable() { + return stub.updateDeidentifyTemplateCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Gets a DeidentifyTemplate. See https://cloud.google.com/dlp/docs/creating-templates-deid to + * learn more. + * + *

Sample code: + * + *


+   * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
+   *   DeidentifyTemplateName name = DeidentifyTemplateName.ofOrganizationDeidentifyTemplateName("[ORGANIZATION]", "[DEIDENTIFY_TEMPLATE]");
+   *   DeidentifyTemplate response = dlpServiceClient.getDeidentifyTemplate(name);
+   * }
+   * 
+ * + * @param name Required. Resource name of the organization and deidentify template to be read, for + * example `organizations/433245324/deidentifyTemplates/432452342` or + * projects/project-id/deidentifyTemplates/432452342. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DeidentifyTemplate getDeidentifyTemplate(DeidentifyTemplateName name) { + GetDeidentifyTemplateRequest request = + GetDeidentifyTemplateRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getDeidentifyTemplate(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Gets a DeidentifyTemplate. See https://cloud.google.com/dlp/docs/creating-templates-deid to + * learn more. + * + *

Sample code: + * + *


+   * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
+   *   DeidentifyTemplateName name = DeidentifyTemplateName.ofOrganizationDeidentifyTemplateName("[ORGANIZATION]", "[DEIDENTIFY_TEMPLATE]");
+   *   DeidentifyTemplate response = dlpServiceClient.getDeidentifyTemplate(name.toString());
+   * }
+   * 
+ * + * @param name Required. Resource name of the organization and deidentify template to be read, for + * example `organizations/433245324/deidentifyTemplates/432452342` or + * projects/project-id/deidentifyTemplates/432452342. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DeidentifyTemplate getDeidentifyTemplate(String name) { + GetDeidentifyTemplateRequest request = + GetDeidentifyTemplateRequest.newBuilder().setName(name).build(); + return getDeidentifyTemplate(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Gets a DeidentifyTemplate. See https://cloud.google.com/dlp/docs/creating-templates-deid to + * learn more. + * + *

Sample code: + * + *


+   * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
+   *   DeidentifyTemplateName name = DeidentifyTemplateName.ofOrganizationDeidentifyTemplateName("[ORGANIZATION]", "[DEIDENTIFY_TEMPLATE]");
+   *   GetDeidentifyTemplateRequest request = GetDeidentifyTemplateRequest.newBuilder()
+   *     .setName(name.toString())
+   *     .build();
+   *   DeidentifyTemplate response = dlpServiceClient.getDeidentifyTemplate(request);
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DeidentifyTemplate getDeidentifyTemplate(GetDeidentifyTemplateRequest request) { + return getDeidentifyTemplateCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Gets a DeidentifyTemplate. See https://cloud.google.com/dlp/docs/creating-templates-deid to + * learn more. + * + *

Sample code: + * + *


+   * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
+   *   DeidentifyTemplateName name = DeidentifyTemplateName.ofOrganizationDeidentifyTemplateName("[ORGANIZATION]", "[DEIDENTIFY_TEMPLATE]");
+   *   GetDeidentifyTemplateRequest request = GetDeidentifyTemplateRequest.newBuilder()
+   *     .setName(name.toString())
+   *     .build();
+   *   ApiFuture<DeidentifyTemplate> future = dlpServiceClient.getDeidentifyTemplateCallable().futureCall(request);
+   *   // Do something
+   *   DeidentifyTemplate response = future.get();
+   * }
+   * 
+ */ + public final UnaryCallable + getDeidentifyTemplateCallable() { + return stub.getDeidentifyTemplateCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lists DeidentifyTemplates. See https://cloud.google.com/dlp/docs/creating-templates-deid to + * learn more. + * + *

Sample code: + * + *


+   * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
+   *   OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]");
+   *   for (DeidentifyTemplate element : dlpServiceClient.listDeidentifyTemplates(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * 
+ * + * @param parent Required. The parent resource name, for example projects/my-project-id or + * organizations/my-org-id. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListDeidentifyTemplatesPagedResponse listDeidentifyTemplates( + OrganizationLocationName parent) { + ListDeidentifyTemplatesRequest request = + ListDeidentifyTemplatesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listDeidentifyTemplates(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lists DeidentifyTemplates. See https://cloud.google.com/dlp/docs/creating-templates-deid to + * learn more. + * + *

Sample code: + * + *


+   * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   for (DeidentifyTemplate element : dlpServiceClient.listDeidentifyTemplates(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * 
+ * + * @param parent Required. The parent resource name, for example projects/my-project-id or + * organizations/my-org-id. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListDeidentifyTemplatesPagedResponse listDeidentifyTemplates(ProjectName parent) { + ListDeidentifyTemplatesRequest request = + ListDeidentifyTemplatesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listDeidentifyTemplates(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lists DeidentifyTemplates. See https://cloud.google.com/dlp/docs/creating-templates-deid to + * learn more. + * + *

Sample code: + * + *


+   * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
+   *   OrganizationName parent = OrganizationName.of("[ORGANIZATION]");
+   *   for (DeidentifyTemplate element : dlpServiceClient.listDeidentifyTemplates(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * 
+ * + * @param parent Required. The parent resource name, for example projects/my-project-id or + * organizations/my-org-id. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListDeidentifyTemplatesPagedResponse listDeidentifyTemplates( + OrganizationName parent) { + ListDeidentifyTemplatesRequest request = + ListDeidentifyTemplatesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listDeidentifyTemplates(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lists DeidentifyTemplates. See https://cloud.google.com/dlp/docs/creating-templates-deid to + * learn more. + * + *

Sample code: + * + *


+   * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   for (DeidentifyTemplate element : dlpServiceClient.listDeidentifyTemplates(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * 
+ * + * @param parent Required. The parent resource name, for example projects/my-project-id or + * organizations/my-org-id. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListDeidentifyTemplatesPagedResponse listDeidentifyTemplates(LocationName parent) { + ListDeidentifyTemplatesRequest request = + ListDeidentifyTemplatesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listDeidentifyTemplates(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lists DeidentifyTemplates. See https://cloud.google.com/dlp/docs/creating-templates-deid to + * learn more. + * + *

Sample code: + * + *


+   * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
+   *   OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]");
+   *   for (DeidentifyTemplate element : dlpServiceClient.listDeidentifyTemplates(parent.toString()).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * 
+ * + * @param parent Required. The parent resource name, for example projects/my-project-id or + * organizations/my-org-id. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListDeidentifyTemplatesPagedResponse listDeidentifyTemplates(String parent) { + ListDeidentifyTemplatesRequest request = + ListDeidentifyTemplatesRequest.newBuilder().setParent(parent).build(); + return listDeidentifyTemplates(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lists DeidentifyTemplates. See https://cloud.google.com/dlp/docs/creating-templates-deid to + * learn more. + * + *

Sample code: + * + *


+   * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
+   *   OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]");
+   *   ListDeidentifyTemplatesRequest request = ListDeidentifyTemplatesRequest.newBuilder()
+   *     .setParent(parent.toString())
+   *     .build();
+   *   for (DeidentifyTemplate element : dlpServiceClient.listDeidentifyTemplates(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListDeidentifyTemplatesPagedResponse listDeidentifyTemplates( + ListDeidentifyTemplatesRequest request) { + return listDeidentifyTemplatesPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lists DeidentifyTemplates. See https://cloud.google.com/dlp/docs/creating-templates-deid to + * learn more. + * + *

Sample code: + * + *


+   * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
+   *   OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]");
+   *   ListDeidentifyTemplatesRequest request = ListDeidentifyTemplatesRequest.newBuilder()
+   *     .setParent(parent.toString())
+   *     .build();
+   *   ApiFuture<ListDeidentifyTemplatesPagedResponse> future = dlpServiceClient.listDeidentifyTemplatesPagedCallable().futureCall(request);
+   *   // Do something
+   *   for (DeidentifyTemplate element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * 
+ */ + public final UnaryCallable + listDeidentifyTemplatesPagedCallable() { + return stub.listDeidentifyTemplatesPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lists DeidentifyTemplates. See https://cloud.google.com/dlp/docs/creating-templates-deid to + * learn more. + * + *

Sample code: + * + *


+   * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
+   *   OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]");
+   *   ListDeidentifyTemplatesRequest request = ListDeidentifyTemplatesRequest.newBuilder()
+   *     .setParent(parent.toString())
+   *     .build();
+   *   while (true) {
+   *     ListDeidentifyTemplatesResponse response = dlpServiceClient.listDeidentifyTemplatesCallable().call(request);
+   *     for (DeidentifyTemplate element : response.getDeidentifyTemplatesList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * 
+ */ + public final UnaryCallable + listDeidentifyTemplatesCallable() { + return stub.listDeidentifyTemplatesCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Deletes a DeidentifyTemplate. See https://cloud.google.com/dlp/docs/creating-templates-deid to + * learn more. + * + *

Sample code: + * + *


+   * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
+   *   DeidentifyTemplateName name = DeidentifyTemplateName.ofOrganizationDeidentifyTemplateName("[ORGANIZATION]", "[DEIDENTIFY_TEMPLATE]");
+   *   dlpServiceClient.deleteDeidentifyTemplate(name);
+   * }
+   * 
+ * + * @param name Required. Resource name of the organization and deidentify template to be deleted, + * for example `organizations/433245324/deidentifyTemplates/432452342` or + * projects/project-id/deidentifyTemplates/432452342. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteDeidentifyTemplate(DeidentifyTemplateName name) { + DeleteDeidentifyTemplateRequest request = + DeleteDeidentifyTemplateRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + deleteDeidentifyTemplate(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Deletes a DeidentifyTemplate. See https://cloud.google.com/dlp/docs/creating-templates-deid to + * learn more. + * + *

Sample code: + * + *


+   * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
+   *   DeidentifyTemplateName name = DeidentifyTemplateName.ofOrganizationDeidentifyTemplateName("[ORGANIZATION]", "[DEIDENTIFY_TEMPLATE]");
+   *   dlpServiceClient.deleteDeidentifyTemplate(name.toString());
+   * }
+   * 
+ * + * @param name Required. Resource name of the organization and deidentify template to be deleted, + * for example `organizations/433245324/deidentifyTemplates/432452342` or + * projects/project-id/deidentifyTemplates/432452342. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteDeidentifyTemplate(String name) { + DeleteDeidentifyTemplateRequest request = + DeleteDeidentifyTemplateRequest.newBuilder().setName(name).build(); + deleteDeidentifyTemplate(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Deletes a DeidentifyTemplate. See https://cloud.google.com/dlp/docs/creating-templates-deid to + * learn more. + * + *

Sample code: + * + *


+   * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
+   *   DeidentifyTemplateName name = DeidentifyTemplateName.ofOrganizationDeidentifyTemplateName("[ORGANIZATION]", "[DEIDENTIFY_TEMPLATE]");
+   *   DeleteDeidentifyTemplateRequest request = DeleteDeidentifyTemplateRequest.newBuilder()
+   *     .setName(name.toString())
+   *     .build();
+   *   dlpServiceClient.deleteDeidentifyTemplate(request);
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteDeidentifyTemplate(DeleteDeidentifyTemplateRequest request) { + deleteDeidentifyTemplateCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Deletes a DeidentifyTemplate. See https://cloud.google.com/dlp/docs/creating-templates-deid to + * learn more. + * + *

Sample code: + * + *


+   * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
+   *   DeidentifyTemplateName name = DeidentifyTemplateName.ofOrganizationDeidentifyTemplateName("[ORGANIZATION]", "[DEIDENTIFY_TEMPLATE]");
+   *   DeleteDeidentifyTemplateRequest request = DeleteDeidentifyTemplateRequest.newBuilder()
+   *     .setName(name.toString())
+   *     .build();
+   *   ApiFuture<Void> future = dlpServiceClient.deleteDeidentifyTemplateCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + public final UnaryCallable + deleteDeidentifyTemplateCallable() { + return stub.deleteDeidentifyTemplateCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * 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. + * + *

Sample code: + * + *


+   * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   JobTrigger jobTrigger = JobTrigger.newBuilder().build();
+   *   JobTrigger response = dlpServiceClient.createJobTrigger(parent, jobTrigger);
+   * }
+   * 
+ * + * @param parent Required. The parent resource name, for example projects/my-project-id. + * @param jobTrigger Required. The JobTrigger to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final JobTrigger createJobTrigger(ProjectName parent, JobTrigger jobTrigger) { + CreateJobTriggerRequest request = + CreateJobTriggerRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setJobTrigger(jobTrigger) + .build(); + return createJobTrigger(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * 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. + * + *

Sample code: + * + *


+   * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   JobTrigger jobTrigger = JobTrigger.newBuilder().build();
+   *   JobTrigger response = dlpServiceClient.createJobTrigger(parent.toString(), jobTrigger);
+   * }
+   * 
+ * + * @param parent Required. The parent resource name, for example projects/my-project-id. + * @param jobTrigger Required. The JobTrigger to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final JobTrigger createJobTrigger(String parent, JobTrigger jobTrigger) { + CreateJobTriggerRequest request = + CreateJobTriggerRequest.newBuilder().setParent(parent).setJobTrigger(jobTrigger).build(); + return createJobTrigger(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * 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. + * + *

Sample code: + * + *


+   * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   JobTrigger jobTrigger = JobTrigger.newBuilder().build();
+   *   String locationId = "";
+   *   JobTrigger response = dlpServiceClient.createJobTrigger(parent, jobTrigger, locationId);
+   * }
+   * 
+ * + * @param parent Required. The parent resource name, for example projects/my-project-id. + * @param jobTrigger Required. The JobTrigger to create. + * @param locationId The geographic location to store the job trigger. Reserved for future + * extensions. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final JobTrigger createJobTrigger( + ProjectName parent, JobTrigger jobTrigger, String locationId) { + CreateJobTriggerRequest request = + CreateJobTriggerRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setJobTrigger(jobTrigger) + .setLocationId(locationId) + .build(); + return createJobTrigger(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * 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. + * + *

Sample code: + * + *


+   * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   JobTrigger jobTrigger = JobTrigger.newBuilder().build();
+   *   String locationId = "";
+   *   JobTrigger response = dlpServiceClient.createJobTrigger(parent.toString(), jobTrigger, locationId);
+   * }
+   * 
+ * + * @param parent Required. The parent resource name, for example projects/my-project-id. + * @param jobTrigger Required. The JobTrigger to create. + * @param locationId The geographic location to store the job trigger. Reserved for future + * extensions. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final JobTrigger createJobTrigger( + String parent, JobTrigger jobTrigger, String locationId) { + CreateJobTriggerRequest request = + CreateJobTriggerRequest.newBuilder() + .setParent(parent) + .setJobTrigger(jobTrigger) + .setLocationId(locationId) + .build(); + return createJobTrigger(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * 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. + * + *

Sample code: + * + *


+   * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   JobTrigger jobTrigger = JobTrigger.newBuilder().build();
+   *   CreateJobTriggerRequest request = CreateJobTriggerRequest.newBuilder()
+   *     .setParent(parent.toString())
+   *     .setJobTrigger(jobTrigger)
+   *     .build();
+   *   JobTrigger response = dlpServiceClient.createJobTrigger(request);
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final JobTrigger createJobTrigger(CreateJobTriggerRequest request) { + return createJobTriggerCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * 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. + * + *

Sample code: + * + *


+   * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   JobTrigger jobTrigger = JobTrigger.newBuilder().build();
+   *   CreateJobTriggerRequest request = CreateJobTriggerRequest.newBuilder()
+   *     .setParent(parent.toString())
+   *     .setJobTrigger(jobTrigger)
+   *     .build();
+   *   ApiFuture<JobTrigger> future = dlpServiceClient.createJobTriggerCallable().futureCall(request);
+   *   // Do something
+   *   JobTrigger response = future.get();
+   * }
+   * 
+ */ + public final UnaryCallable createJobTriggerCallable() { + return stub.createJobTriggerCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Updates a job trigger. See https://cloud.google.com/dlp/docs/creating-job-triggers to learn + * more. + * + *

Sample code: + * + *


+   * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
+   *   JobTriggerName name = JobTriggerName.ofProjectJobTriggerName("[PROJECT]", "[JOB_TRIGGER]");
+   *   JobTrigger jobTrigger = JobTrigger.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   JobTrigger response = dlpServiceClient.updateJobTrigger(name, jobTrigger, updateMask);
+   * }
+   * 
+ * + * @param name Required. Resource name of the project and the triggeredJob, for example + * `projects/dlp-test-project/jobTriggers/53234423`. + * @param jobTrigger New JobTrigger value. + * @param updateMask Mask to control which fields get updated. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final JobTrigger updateJobTrigger( + JobTriggerName name, JobTrigger jobTrigger, FieldMask updateMask) { + UpdateJobTriggerRequest request = + UpdateJobTriggerRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .setJobTrigger(jobTrigger) + .setUpdateMask(updateMask) + .build(); + return updateJobTrigger(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Updates a job trigger. See https://cloud.google.com/dlp/docs/creating-job-triggers to learn + * more. + * + *

Sample code: + * + *


+   * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
+   *   JobTriggerName name = JobTriggerName.ofProjectJobTriggerName("[PROJECT]", "[JOB_TRIGGER]");
+   *   JobTrigger jobTrigger = JobTrigger.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   JobTrigger response = dlpServiceClient.updateJobTrigger(name.toString(), jobTrigger, updateMask);
+   * }
+   * 
+ * + * @param name Required. Resource name of the project and the triggeredJob, for example + * `projects/dlp-test-project/jobTriggers/53234423`. + * @param jobTrigger New JobTrigger value. + * @param updateMask Mask to control which fields get updated. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final JobTrigger updateJobTrigger( + String name, JobTrigger jobTrigger, FieldMask updateMask) { + UpdateJobTriggerRequest request = + UpdateJobTriggerRequest.newBuilder() + .setName(name) + .setJobTrigger(jobTrigger) + .setUpdateMask(updateMask) + .build(); + return updateJobTrigger(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Updates a job trigger. See https://cloud.google.com/dlp/docs/creating-job-triggers to learn + * more. + * + *

Sample code: + * + *


+   * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
+   *   JobTriggerName name = JobTriggerName.ofProjectJobTriggerName("[PROJECT]", "[JOB_TRIGGER]");
+   *   UpdateJobTriggerRequest request = UpdateJobTriggerRequest.newBuilder()
+   *     .setName(name.toString())
+   *     .build();
+   *   JobTrigger response = dlpServiceClient.updateJobTrigger(request);
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final JobTrigger updateJobTrigger(UpdateJobTriggerRequest request) { + return updateJobTriggerCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Updates a job trigger. See https://cloud.google.com/dlp/docs/creating-job-triggers to learn + * more. + * + *

Sample code: + * + *


+   * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
+   *   JobTriggerName name = JobTriggerName.ofProjectJobTriggerName("[PROJECT]", "[JOB_TRIGGER]");
+   *   UpdateJobTriggerRequest request = UpdateJobTriggerRequest.newBuilder()
+   *     .setName(name.toString())
+   *     .build();
+   *   ApiFuture<JobTrigger> future = dlpServiceClient.updateJobTriggerCallable().futureCall(request);
+   *   // Do something
+   *   JobTrigger response = future.get();
+   * }
+   * 
+ */ + public final UnaryCallable updateJobTriggerCallable() { + return stub.updateJobTriggerCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * 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. Early access + * feature is in a pre-release state and might change or have limited support. For more + * information, see https://cloud.google.com/products#product-launch-stages. + * + *

Sample code: + * + *


+   * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
+   *   JobTriggerName name = JobTriggerName.ofProjectJobTriggerName("[PROJECT]", "[JOB_TRIGGER]");
+   *   HybridInspectResponse response = dlpServiceClient.hybridInspectJobTrigger(name);
+   * }
+   * 
+ * + * @param name Required. Resource name of the trigger to execute a hybrid inspect on, for example + * `projects/dlp-test-project/jobTriggers/53234423`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final HybridInspectResponse hybridInspectJobTrigger(JobTriggerName name) { + HybridInspectJobTriggerRequest request = + HybridInspectJobTriggerRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return hybridInspectJobTrigger(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * 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. Early access + * feature is in a pre-release state and might change or have limited support. For more + * information, see https://cloud.google.com/products#product-launch-stages. + * + *

Sample code: + * + *


+   * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
+   *   JobTriggerName name = JobTriggerName.ofProjectJobTriggerName("[PROJECT]", "[JOB_TRIGGER]");
+   *   HybridInspectResponse response = dlpServiceClient.hybridInspectJobTrigger(name.toString());
+   * }
+   * 
+ * + * @param name Required. Resource name of the trigger to execute a hybrid inspect on, for example + * `projects/dlp-test-project/jobTriggers/53234423`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final HybridInspectResponse hybridInspectJobTrigger(String name) { + HybridInspectJobTriggerRequest request = + HybridInspectJobTriggerRequest.newBuilder().setName(name).build(); + return hybridInspectJobTrigger(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * 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. Early access + * feature is in a pre-release state and might change or have limited support. For more + * information, see https://cloud.google.com/products#product-launch-stages. + * + *

Sample code: + * + *


+   * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
+   *   JobTriggerName name = JobTriggerName.ofProjectJobTriggerName("[PROJECT]", "[JOB_TRIGGER]");
+   *   HybridInspectJobTriggerRequest request = HybridInspectJobTriggerRequest.newBuilder()
+   *     .setName(name.toString())
+   *     .build();
+   *   HybridInspectResponse response = dlpServiceClient.hybridInspectJobTrigger(request);
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final HybridInspectResponse hybridInspectJobTrigger( + HybridInspectJobTriggerRequest request) { + return hybridInspectJobTriggerCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * 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. Early access + * feature is in a pre-release state and might change or have limited support. For more + * information, see https://cloud.google.com/products#product-launch-stages. + * + *

Sample code: + * + *


+   * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
+   *   JobTriggerName name = JobTriggerName.ofProjectJobTriggerName("[PROJECT]", "[JOB_TRIGGER]");
+   *   HybridInspectJobTriggerRequest request = HybridInspectJobTriggerRequest.newBuilder()
+   *     .setName(name.toString())
+   *     .build();
+   *   ApiFuture<HybridInspectResponse> future = dlpServiceClient.hybridInspectJobTriggerCallable().futureCall(request);
+   *   // Do something
+   *   HybridInspectResponse response = future.get();
+   * }
+   * 
+ */ + public final UnaryCallable + hybridInspectJobTriggerCallable() { + return stub.hybridInspectJobTriggerCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Gets a job trigger. See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more. + * + *

Sample code: + * + *


+   * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
+   *   JobTriggerName name = JobTriggerName.ofProjectJobTriggerName("[PROJECT]", "[JOB_TRIGGER]");
+   *   JobTrigger response = dlpServiceClient.getJobTrigger(name);
+   * }
+   * 
+ * + * @param name Required. Resource name of the project and the triggeredJob, for example + * `projects/dlp-test-project/jobTriggers/53234423`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final JobTrigger getJobTrigger(JobTriggerName name) { + GetJobTriggerRequest request = + GetJobTriggerRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getJobTrigger(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Gets a job trigger. See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more. + * + *

Sample code: + * + *


+   * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
+   *   JobTriggerName name = JobTriggerName.ofProjectJobTriggerName("[PROJECT]", "[JOB_TRIGGER]");
+   *   JobTrigger response = dlpServiceClient.getJobTrigger(name.toString());
+   * }
+   * 
+ * + * @param name Required. Resource name of the project and the triggeredJob, for example + * `projects/dlp-test-project/jobTriggers/53234423`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final JobTrigger getJobTrigger(String name) { + GetJobTriggerRequest request = GetJobTriggerRequest.newBuilder().setName(name).build(); + return getJobTrigger(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Gets a job trigger. See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more. + * + *

Sample code: + * + *


+   * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
+   *   JobTriggerName name = JobTriggerName.ofProjectJobTriggerName("[PROJECT]", "[JOB_TRIGGER]");
+   *   GetJobTriggerRequest request = GetJobTriggerRequest.newBuilder()
+   *     .setName(name.toString())
+   *     .build();
+   *   JobTrigger response = dlpServiceClient.getJobTrigger(request);
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final JobTrigger getJobTrigger(GetJobTriggerRequest request) { + return getJobTriggerCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Gets a job trigger. See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more. + * + *

Sample code: + * + *


+   * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
+   *   JobTriggerName name = JobTriggerName.ofProjectJobTriggerName("[PROJECT]", "[JOB_TRIGGER]");
+   *   GetJobTriggerRequest request = GetJobTriggerRequest.newBuilder()
+   *     .setName(name.toString())
+   *     .build();
+   *   ApiFuture<JobTrigger> future = dlpServiceClient.getJobTriggerCallable().futureCall(request);
+   *   // Do something
+   *   JobTrigger response = future.get();
+   * }
+   * 
+ */ + public final UnaryCallable getJobTriggerCallable() { + return stub.getJobTriggerCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lists job triggers. See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more. + * + *

Sample code: + * + *


+   * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   for (JobTrigger element : dlpServiceClient.listJobTriggers(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * 
+ * + * @param parent Required. The parent resource name, for example `projects/my-project-id`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListJobTriggersPagedResponse listJobTriggers(ProjectName parent) { + ListJobTriggersRequest request = + ListJobTriggersRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listJobTriggers(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lists job triggers. See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more. + * + *

Sample code: + * + *


+   * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   for (JobTrigger element : dlpServiceClient.listJobTriggers(parent.toString()).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * 
+ * + * @param parent Required. The parent resource name, for example `projects/my-project-id`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListJobTriggersPagedResponse listJobTriggers(String parent) { + ListJobTriggersRequest request = ListJobTriggersRequest.newBuilder().setParent(parent).build(); + return listJobTriggers(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lists job triggers. See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more. + * + *

Sample code: + * + *


+   * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   ListJobTriggersRequest request = ListJobTriggersRequest.newBuilder()
+   *     .setParent(parent.toString())
+   *     .build();
+   *   for (JobTrigger element : dlpServiceClient.listJobTriggers(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListJobTriggersPagedResponse listJobTriggers(ListJobTriggersRequest request) { + return listJobTriggersPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lists job triggers. See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more. + * + *

Sample code: + * + *


+   * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   ListJobTriggersRequest request = ListJobTriggersRequest.newBuilder()
+   *     .setParent(parent.toString())
+   *     .build();
+   *   ApiFuture<ListJobTriggersPagedResponse> future = dlpServiceClient.listJobTriggersPagedCallable().futureCall(request);
+   *   // Do something
+   *   for (JobTrigger element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * 
+ */ + public final UnaryCallable + listJobTriggersPagedCallable() { + return stub.listJobTriggersPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lists job triggers. See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more. + * + *

Sample code: + * + *


+   * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   ListJobTriggersRequest request = ListJobTriggersRequest.newBuilder()
+   *     .setParent(parent.toString())
+   *     .build();
+   *   while (true) {
+   *     ListJobTriggersResponse response = dlpServiceClient.listJobTriggersCallable().call(request);
+   *     for (JobTrigger element : response.getJobTriggersList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * 
+ */ + public final UnaryCallable + listJobTriggersCallable() { + return stub.listJobTriggersCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Deletes a job trigger. See https://cloud.google.com/dlp/docs/creating-job-triggers to learn + * more. + * + *

Sample code: + * + *


+   * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
+   *   JobTriggerName name = JobTriggerName.ofProjectJobTriggerName("[PROJECT]", "[JOB_TRIGGER]");
+   *   dlpServiceClient.deleteJobTrigger(name);
+   * }
+   * 
+ * + * @param name Required. Resource name of the project and the triggeredJob, for example + * `projects/dlp-test-project/jobTriggers/53234423`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteJobTrigger(JobTriggerName name) { + DeleteJobTriggerRequest request = + DeleteJobTriggerRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + deleteJobTrigger(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Deletes a job trigger. See https://cloud.google.com/dlp/docs/creating-job-triggers to learn + * more. + * + *

Sample code: + * + *


+   * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
+   *   JobTriggerName name = JobTriggerName.ofProjectJobTriggerName("[PROJECT]", "[JOB_TRIGGER]");
+   *   dlpServiceClient.deleteJobTrigger(name.toString());
+   * }
+   * 
+ * + * @param name Required. Resource name of the project and the triggeredJob, for example + * `projects/dlp-test-project/jobTriggers/53234423`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteJobTrigger(String name) { + DeleteJobTriggerRequest request = DeleteJobTriggerRequest.newBuilder().setName(name).build(); + deleteJobTrigger(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Deletes a job trigger. See https://cloud.google.com/dlp/docs/creating-job-triggers to learn + * more. + * + *

Sample code: + * + *


+   * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
+   *   JobTriggerName name = JobTriggerName.ofProjectJobTriggerName("[PROJECT]", "[JOB_TRIGGER]");
+   *   DeleteJobTriggerRequest request = DeleteJobTriggerRequest.newBuilder()
+   *     .setName(name.toString())
+   *     .build();
+   *   dlpServiceClient.deleteJobTrigger(request);
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteJobTrigger(DeleteJobTriggerRequest request) { + deleteJobTriggerCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Deletes a job trigger. See https://cloud.google.com/dlp/docs/creating-job-triggers to learn + * more. + * + *

Sample code: + * + *


+   * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
+   *   JobTriggerName name = JobTriggerName.ofProjectJobTriggerName("[PROJECT]", "[JOB_TRIGGER]");
+   *   DeleteJobTriggerRequest request = DeleteJobTriggerRequest.newBuilder()
+   *     .setName(name.toString())
+   *     .build();
+   *   ApiFuture<Void> future = dlpServiceClient.deleteJobTriggerCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + public final UnaryCallable deleteJobTriggerCallable() { + return stub.deleteJobTriggerCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * 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. + * + *

Sample code: + * + *


+   * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   InspectJobConfig inspectJob = InspectJobConfig.newBuilder().build();
+   *   DlpJob response = dlpServiceClient.createDlpJob(parent, inspectJob);
+   * }
+   * 
+ * + * @param parent Required. The parent resource name, for example projects/my-project-id. + * @param inspectJob Set to control what and how to inspect. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DlpJob createDlpJob(ProjectName parent, InspectJobConfig inspectJob) { + CreateDlpJobRequest request = + CreateDlpJobRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setInspectJob(inspectJob) + .build(); + return createDlpJob(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * 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. + * + *

Sample code: + * + *


+   * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   InspectJobConfig inspectJob = InspectJobConfig.newBuilder().build();
+   *   DlpJob response = dlpServiceClient.createDlpJob(parent.toString(), inspectJob);
+   * }
+   * 
+ * + * @param parent Required. The parent resource name, for example projects/my-project-id. + * @param inspectJob Set to control what and how to inspect. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DlpJob createDlpJob(String parent, InspectJobConfig inspectJob) { + CreateDlpJobRequest request = + CreateDlpJobRequest.newBuilder().setParent(parent).setInspectJob(inspectJob).build(); + return createDlpJob(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * 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. + * + *

Sample code: + * + *


+   * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   InspectJobConfig inspectJob = InspectJobConfig.newBuilder().build();
+   *   String locationId = "";
+   *   DlpJob response = dlpServiceClient.createDlpJob(parent, inspectJob, locationId);
+   * }
+   * 
+ * + * @param parent Required. The parent resource name, for example projects/my-project-id. + * @param inspectJob Set to control what and how to inspect. + * @param locationId The geographic location to store and process the job. Reserved for future + * extensions. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DlpJob createDlpJob( + ProjectName parent, InspectJobConfig inspectJob, String locationId) { + CreateDlpJobRequest request = + CreateDlpJobRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setInspectJob(inspectJob) + .setLocationId(locationId) + .build(); + return createDlpJob(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * 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. + * + *

Sample code: + * + *


+   * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   InspectJobConfig inspectJob = InspectJobConfig.newBuilder().build();
+   *   String locationId = "";
+   *   DlpJob response = dlpServiceClient.createDlpJob(parent.toString(), inspectJob, locationId);
+   * }
+   * 
+ * + * @param parent Required. The parent resource name, for example projects/my-project-id. + * @param inspectJob Set to control what and how to inspect. + * @param locationId The geographic location to store and process the job. Reserved for future + * extensions. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DlpJob createDlpJob(String parent, InspectJobConfig inspectJob, String locationId) { + CreateDlpJobRequest request = + CreateDlpJobRequest.newBuilder() + .setParent(parent) + .setInspectJob(inspectJob) + .setLocationId(locationId) + .build(); + return createDlpJob(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * 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. + * + *

Sample code: + * + *


+   * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   RiskAnalysisJobConfig riskJob = RiskAnalysisJobConfig.newBuilder().build();
+   *   DlpJob response = dlpServiceClient.createDlpJob(parent, riskJob);
+   * }
+   * 
+ * + * @param parent Required. The parent resource name, for example projects/my-project-id. + * @param riskJob Set to choose what metric to calculate. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DlpJob createDlpJob(ProjectName parent, RiskAnalysisJobConfig riskJob) { + CreateDlpJobRequest request = + CreateDlpJobRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setRiskJob(riskJob) + .build(); + return createDlpJob(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * 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. + * + *

Sample code: + * + *


+   * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   RiskAnalysisJobConfig riskJob = RiskAnalysisJobConfig.newBuilder().build();
+   *   DlpJob response = dlpServiceClient.createDlpJob(parent.toString(), riskJob);
+   * }
+   * 
+ * + * @param parent Required. The parent resource name, for example projects/my-project-id. + * @param riskJob Set to choose what metric to calculate. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DlpJob createDlpJob(String parent, RiskAnalysisJobConfig riskJob) { + CreateDlpJobRequest request = + CreateDlpJobRequest.newBuilder().setParent(parent).setRiskJob(riskJob).build(); + return createDlpJob(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * 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. + * + *

Sample code: + * + *


+   * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   RiskAnalysisJobConfig riskJob = RiskAnalysisJobConfig.newBuilder().build();
+   *   String locationId = "";
+   *   DlpJob response = dlpServiceClient.createDlpJob(parent, riskJob, locationId);
+   * }
+   * 
+ * + * @param parent Required. The parent resource name, for example projects/my-project-id. + * @param riskJob Set to choose what metric to calculate. + * @param locationId The geographic location to store and process the job. Reserved for future + * extensions. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DlpJob createDlpJob( + ProjectName parent, RiskAnalysisJobConfig riskJob, String locationId) { + CreateDlpJobRequest request = + CreateDlpJobRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setRiskJob(riskJob) + .setLocationId(locationId) + .build(); + return createDlpJob(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * 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. + * + *

Sample code: + * + *


+   * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   RiskAnalysisJobConfig riskJob = RiskAnalysisJobConfig.newBuilder().build();
+   *   String locationId = "";
+   *   DlpJob response = dlpServiceClient.createDlpJob(parent.toString(), riskJob, locationId);
+   * }
+   * 
+ * + * @param parent Required. The parent resource name, for example projects/my-project-id. + * @param riskJob Set to choose what metric to calculate. + * @param locationId The geographic location to store and process the job. Reserved for future + * extensions. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DlpJob createDlpJob( + String parent, RiskAnalysisJobConfig riskJob, String locationId) { + CreateDlpJobRequest request = + CreateDlpJobRequest.newBuilder() + .setParent(parent) + .setRiskJob(riskJob) + .setLocationId(locationId) + .build(); + return createDlpJob(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * 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. + * + *

Sample code: + * + *


+   * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   CreateDlpJobRequest request = CreateDlpJobRequest.newBuilder()
+   *     .setParent(parent.toString())
+   *     .build();
+   *   DlpJob response = dlpServiceClient.createDlpJob(request);
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DlpJob createDlpJob(CreateDlpJobRequest request) { + return createDlpJobCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * 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. + * + *

Sample code: + * + *


+   * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   CreateDlpJobRequest request = CreateDlpJobRequest.newBuilder()
+   *     .setParent(parent.toString())
+   *     .build();
+   *   ApiFuture<DlpJob> future = dlpServiceClient.createDlpJobCallable().futureCall(request);
+   *   // Do something
+   *   DlpJob response = future.get();
+   * }
+   * 
+ */ + public final UnaryCallable createDlpJobCallable() { + return stub.createDlpJobCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * 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. + * + *

Sample code: + * + *


+   * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   for (DlpJob element : dlpServiceClient.listDlpJobs(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * 
+ * + * @param parent Required. The parent resource name, for example projects/my-project-id. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListDlpJobsPagedResponse listDlpJobs(ProjectName parent) { + ListDlpJobsRequest request = + ListDlpJobsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listDlpJobs(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * 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. + * + *

Sample code: + * + *


+   * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   for (DlpJob element : dlpServiceClient.listDlpJobs(parent.toString()).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * 
+ * + * @param parent Required. The parent resource name, for example projects/my-project-id. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListDlpJobsPagedResponse listDlpJobs(String parent) { + ListDlpJobsRequest request = ListDlpJobsRequest.newBuilder().setParent(parent).build(); + return listDlpJobs(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * 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. * *

Sample code: * *


    * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
-   *   OrganizationName parent = OrganizationName.of("[ORGANIZATION]");
-   *   ListDeidentifyTemplatesRequest request = ListDeidentifyTemplatesRequest.newBuilder()
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   ListDlpJobsRequest request = ListDlpJobsRequest.newBuilder()
    *     .setParent(parent.toString())
    *     .build();
-   *   for (DeidentifyTemplate element : dlpServiceClient.listDeidentifyTemplates(request).iterateAll()) {
+   *   for (DlpJob element : dlpServiceClient.listDlpJobs(request).iterateAll()) {
    *     // doThingsWith(element);
    *   }
    * }
@@ -916,53 +3440,54 @@ public final DeidentifyTemplate getDeidentifyTemplate(GetDeidentifyTemplateReque
    * @param request The request object containing all of the parameters for the API call.
    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
    */
-  public final ListDeidentifyTemplatesPagedResponse listDeidentifyTemplates(
-      ListDeidentifyTemplatesRequest request) {
-    return listDeidentifyTemplatesPagedCallable().call(request);
+  public final ListDlpJobsPagedResponse listDlpJobs(ListDlpJobsRequest request) {
+    return listDlpJobsPagedCallable().call(request);
   }
 
   // AUTO-GENERATED DOCUMENTATION AND METHOD
   /**
-   * Lists DeidentifyTemplates. See https://cloud.google.com/dlp/docs/creating-templates-deid to
-   * learn more.
+   * 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.
    *
    * 

Sample code: * *


    * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
-   *   OrganizationName parent = OrganizationName.of("[ORGANIZATION]");
-   *   ListDeidentifyTemplatesRequest request = ListDeidentifyTemplatesRequest.newBuilder()
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   ListDlpJobsRequest request = ListDlpJobsRequest.newBuilder()
    *     .setParent(parent.toString())
    *     .build();
-   *   ApiFuture<ListDeidentifyTemplatesPagedResponse> future = dlpServiceClient.listDeidentifyTemplatesPagedCallable().futureCall(request);
+   *   ApiFuture<ListDlpJobsPagedResponse> future = dlpServiceClient.listDlpJobsPagedCallable().futureCall(request);
    *   // Do something
-   *   for (DeidentifyTemplate element : future.get().iterateAll()) {
+   *   for (DlpJob element : future.get().iterateAll()) {
    *     // doThingsWith(element);
    *   }
    * }
    * 
*/ - public final UnaryCallable - listDeidentifyTemplatesPagedCallable() { - return stub.listDeidentifyTemplatesPagedCallable(); + public final UnaryCallable + listDlpJobsPagedCallable() { + return stub.listDlpJobsPagedCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Lists DeidentifyTemplates. See https://cloud.google.com/dlp/docs/creating-templates-deid to - * learn more. + * 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. * *

Sample code: * *


    * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
-   *   OrganizationName parent = OrganizationName.of("[ORGANIZATION]");
-   *   ListDeidentifyTemplatesRequest request = ListDeidentifyTemplatesRequest.newBuilder()
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   ListDlpJobsRequest request = ListDlpJobsRequest.newBuilder()
    *     .setParent(parent.toString())
    *     .build();
    *   while (true) {
-   *     ListDeidentifyTemplatesResponse response = dlpServiceClient.listDeidentifyTemplatesCallable().call(request);
-   *     for (DeidentifyTemplate element : response.getDeidentifyTemplatesList()) {
+   *     ListDlpJobsResponse response = dlpServiceClient.listDlpJobsCallable().call(request);
+   *     for (DlpJob element : response.getJobsList()) {
    *       // doThingsWith(element);
    *     }
    *     String nextPageToken = response.getNextPageToken();
@@ -975,119 +3500,210 @@ public final ListDeidentifyTemplatesPagedResponse listDeidentifyTemplates(
    * }
    * 
*/ - public final UnaryCallable - listDeidentifyTemplatesCallable() { - return stub.listDeidentifyTemplatesCallable(); + public final UnaryCallable listDlpJobsCallable() { + return stub.listDlpJobsCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Deletes a DeidentifyTemplate. See https://cloud.google.com/dlp/docs/creating-templates-deid to - * learn more. + * 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. * *

Sample code: * *


    * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
-   *   DeidentifyTemplateName name = OrganizationDeidentifyTemplateName.of("[ORGANIZATION]", "[DEIDENTIFY_TEMPLATE]");
-   *   DeleteDeidentifyTemplateRequest request = DeleteDeidentifyTemplateRequest.newBuilder()
+   *   DlpJobName name = DlpJobName.ofProjectDlpJobName("[PROJECT]", "[DLP_JOB]");
+   *   DlpJob response = dlpServiceClient.getDlpJob(name);
+   * }
+   * 
+ * + * @param name Required. The name of the DlpJob resource. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DlpJob getDlpJob(DlpJobName name) { + GetDlpJobRequest request = + GetDlpJobRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getDlpJob(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * 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. + * + *

Sample code: + * + *


+   * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
+   *   DlpJobName name = DlpJobName.ofProjectDlpJobName("[PROJECT]", "[DLP_JOB]");
+   *   DlpJob response = dlpServiceClient.getDlpJob(name.toString());
+   * }
+   * 
+ * + * @param name Required. The name of the DlpJob resource. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DlpJob getDlpJob(String name) { + GetDlpJobRequest request = GetDlpJobRequest.newBuilder().setName(name).build(); + return getDlpJob(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * 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. + * + *

Sample code: + * + *


+   * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
+   *   DlpJobName name = DlpJobName.ofProjectDlpJobName("[PROJECT]", "[DLP_JOB]");
+   *   GetDlpJobRequest request = GetDlpJobRequest.newBuilder()
    *     .setName(name.toString())
    *     .build();
-   *   dlpServiceClient.deleteDeidentifyTemplate(request);
+   *   DlpJob response = dlpServiceClient.getDlpJob(request);
    * }
    * 
* * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteDeidentifyTemplate(DeleteDeidentifyTemplateRequest request) { - deleteDeidentifyTemplateCallable().call(request); + public final DlpJob getDlpJob(GetDlpJobRequest request) { + return getDlpJobCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Deletes a DeidentifyTemplate. See https://cloud.google.com/dlp/docs/creating-templates-deid to - * learn more. + * 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. * *

Sample code: * *


    * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
-   *   DeidentifyTemplateName name = OrganizationDeidentifyTemplateName.of("[ORGANIZATION]", "[DEIDENTIFY_TEMPLATE]");
-   *   DeleteDeidentifyTemplateRequest request = DeleteDeidentifyTemplateRequest.newBuilder()
+   *   DlpJobName name = DlpJobName.ofProjectDlpJobName("[PROJECT]", "[DLP_JOB]");
+   *   GetDlpJobRequest request = GetDlpJobRequest.newBuilder()
    *     .setName(name.toString())
    *     .build();
-   *   ApiFuture<Void> future = dlpServiceClient.deleteDeidentifyTemplateCallable().futureCall(request);
+   *   ApiFuture<DlpJob> future = dlpServiceClient.getDlpJobCallable().futureCall(request);
    *   // Do something
-   *   future.get();
+   *   DlpJob response = future.get();
    * }
    * 
*/ - public final UnaryCallable - deleteDeidentifyTemplateCallable() { - return stub.deleteDeidentifyTemplateCallable(); + public final UnaryCallable getDlpJobCallable() { + return stub.getDlpJobCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Creates a new job to inspect storage or calculate risk metrics. See + * Deletes a long-running DlpJob. This method indicates that the client is no longer interested in + * the DlpJob result. The job will be cancelled if possible. 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. + *

Sample code: + * + *


+   * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
+   *   DlpJobName name = DlpJobName.ofProjectDlpJobName("[PROJECT]", "[DLP_JOB]");
+   *   dlpServiceClient.deleteDlpJob(name);
+   * }
+   * 
+ * + * @param name Required. The name of the DlpJob resource to be deleted. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteDlpJob(DlpJobName name) { + DeleteDlpJobRequest request = + DeleteDlpJobRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + deleteDlpJob(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Deletes a long-running DlpJob. This method indicates that the client is no longer interested in + * the DlpJob result. The job will be cancelled if possible. See + * https://cloud.google.com/dlp/docs/inspecting-storage and + * https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more. * *

Sample code: * *


    * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
-   *   ProjectName parent = ProjectName.of("[PROJECT]");
-   *   CreateDlpJobRequest request = CreateDlpJobRequest.newBuilder()
-   *     .setParent(parent.toString())
+   *   DlpJobName name = DlpJobName.ofProjectDlpJobName("[PROJECT]", "[DLP_JOB]");
+   *   dlpServiceClient.deleteDlpJob(name.toString());
+   * }
+   * 
+ * + * @param name Required. The name of the DlpJob resource to be deleted. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteDlpJob(String name) { + DeleteDlpJobRequest request = DeleteDlpJobRequest.newBuilder().setName(name).build(); + deleteDlpJob(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Deletes a long-running DlpJob. This method indicates that the client is no longer interested in + * the DlpJob result. The job will be cancelled if possible. See + * https://cloud.google.com/dlp/docs/inspecting-storage and + * https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more. + * + *

Sample code: + * + *


+   * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
+   *   DlpJobName name = DlpJobName.ofProjectDlpJobName("[PROJECT]", "[DLP_JOB]");
+   *   DeleteDlpJobRequest request = DeleteDlpJobRequest.newBuilder()
+   *     .setName(name.toString())
    *     .build();
-   *   DlpJob response = dlpServiceClient.createDlpJob(request);
+   *   dlpServiceClient.deleteDlpJob(request);
    * }
    * 
* * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final DlpJob createDlpJob(CreateDlpJobRequest request) { - return createDlpJobCallable().call(request); + public final void deleteDlpJob(DeleteDlpJobRequest request) { + deleteDlpJobCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Creates a new job to inspect storage or calculate risk metrics. See + * Deletes a long-running DlpJob. This method indicates that the client is no longer interested in + * the DlpJob result. The job will be cancelled if possible. 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. - * *

Sample code: * *


    * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
-   *   ProjectName parent = ProjectName.of("[PROJECT]");
-   *   CreateDlpJobRequest request = CreateDlpJobRequest.newBuilder()
-   *     .setParent(parent.toString())
+   *   DlpJobName name = DlpJobName.ofProjectDlpJobName("[PROJECT]", "[DLP_JOB]");
+   *   DeleteDlpJobRequest request = DeleteDlpJobRequest.newBuilder()
+   *     .setName(name.toString())
    *     .build();
-   *   ApiFuture<DlpJob> future = dlpServiceClient.createDlpJobCallable().futureCall(request);
+   *   ApiFuture<Void> future = dlpServiceClient.deleteDlpJobCallable().futureCall(request);
    *   // Do something
-   *   DlpJob response = future.get();
+   *   future.get();
    * }
    * 
*/ - public final UnaryCallable createDlpJobCallable() { - return stub.createDlpJobCallable(); + public final UnaryCallable deleteDlpJobCallable() { + return stub.deleteDlpJobCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Lists DlpJobs that match the specified filter in the request. See + * 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. * @@ -1095,26 +3711,25 @@ public final UnaryCallable createDlpJobCallable() { * *

    * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
-   *   ProjectName parent = ProjectName.of("[PROJECT]");
-   *   ListDlpJobsRequest request = ListDlpJobsRequest.newBuilder()
-   *     .setParent(parent.toString())
+   *   DlpJobName name = DlpJobName.ofProjectDlpJobName("[PROJECT]", "[DLP_JOB]");
+   *   CancelDlpJobRequest request = CancelDlpJobRequest.newBuilder()
+   *     .setName(name.toString())
    *     .build();
-   *   for (DlpJob element : dlpServiceClient.listDlpJobs(request).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
+   *   dlpServiceClient.cancelDlpJob(request);
    * }
    * 
* * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListDlpJobsPagedResponse listDlpJobs(ListDlpJobsRequest request) { - return listDlpJobsPagedCallable().call(request); + public final void cancelDlpJob(CancelDlpJobRequest request) { + cancelDlpJobCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Lists DlpJobs that match the specified filter in the request. See + * 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. * @@ -1122,907 +3737,1087 @@ public final ListDlpJobsPagedResponse listDlpJobs(ListDlpJobsRequest request) { * *

    * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
-   *   ProjectName parent = ProjectName.of("[PROJECT]");
-   *   ListDlpJobsRequest request = ListDlpJobsRequest.newBuilder()
-   *     .setParent(parent.toString())
+   *   DlpJobName name = DlpJobName.ofProjectDlpJobName("[PROJECT]", "[DLP_JOB]");
+   *   CancelDlpJobRequest request = CancelDlpJobRequest.newBuilder()
+   *     .setName(name.toString())
    *     .build();
-   *   ApiFuture<ListDlpJobsPagedResponse> future = dlpServiceClient.listDlpJobsPagedCallable().futureCall(request);
+   *   ApiFuture<Void> future = dlpServiceClient.cancelDlpJobCallable().futureCall(request);
    *   // Do something
-   *   for (DlpJob element : future.get().iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
+   *   future.get();
    * }
    * 
*/ - public final UnaryCallable - listDlpJobsPagedCallable() { - return stub.listDlpJobsPagedCallable(); + public final UnaryCallable cancelDlpJobCallable() { + return stub.cancelDlpJobCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * 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. + * Creates a pre-built stored infoType to be used for inspection. See + * https://cloud.google.com/dlp/docs/creating-stored-infotypes to learn more. + * + *

Sample code: + * + *


+   * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
+   *   OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]");
+   *   StoredInfoTypeConfig config = StoredInfoTypeConfig.newBuilder().build();
+   *   StoredInfoType response = dlpServiceClient.createStoredInfoType(parent, config);
+   * }
+   * 
+ * + * @param parent Required. The parent resource name, for example projects/my-project-id or + * organizations/my-org-id. + * @param config Required. Configuration of the storedInfoType to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final StoredInfoType createStoredInfoType( + OrganizationLocationName parent, StoredInfoTypeConfig config) { + CreateStoredInfoTypeRequest request = + CreateStoredInfoTypeRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setConfig(config) + .build(); + return createStoredInfoType(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates a pre-built stored infoType to be used for inspection. See + * https://cloud.google.com/dlp/docs/creating-stored-infotypes to learn more. * *

Sample code: * *


    * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
    *   ProjectName parent = ProjectName.of("[PROJECT]");
-   *   ListDlpJobsRequest request = ListDlpJobsRequest.newBuilder()
-   *     .setParent(parent.toString())
-   *     .build();
-   *   while (true) {
-   *     ListDlpJobsResponse response = dlpServiceClient.listDlpJobsCallable().call(request);
-   *     for (DlpJob element : response.getJobsList()) {
-   *       // doThingsWith(element);
-   *     }
-   *     String nextPageToken = response.getNextPageToken();
-   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
-   *       request = request.toBuilder().setPageToken(nextPageToken).build();
-   *     } else {
-   *       break;
-   *     }
-   *   }
+   *   StoredInfoTypeConfig config = StoredInfoTypeConfig.newBuilder().build();
+   *   StoredInfoType response = dlpServiceClient.createStoredInfoType(parent, config);
    * }
    * 
+ * + * @param parent Required. The parent resource name, for example projects/my-project-id or + * organizations/my-org-id. + * @param config Required. Configuration of the storedInfoType to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UnaryCallable listDlpJobsCallable() { - return stub.listDlpJobsCallable(); + public final StoredInfoType createStoredInfoType( + ProjectName parent, StoredInfoTypeConfig config) { + CreateStoredInfoTypeRequest request = + CreateStoredInfoTypeRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setConfig(config) + .build(); + return createStoredInfoType(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * 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. + * Creates a pre-built stored infoType to be used for inspection. See + * https://cloud.google.com/dlp/docs/creating-stored-infotypes to learn more. * *

Sample code: * *


    * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
-   *   DlpJobName name = DlpJobName.of("[PROJECT]", "[DLP_JOB]");
-   *   GetDlpJobRequest request = GetDlpJobRequest.newBuilder()
-   *     .setName(name.toString())
-   *     .build();
-   *   DlpJob response = dlpServiceClient.getDlpJob(request);
+   *   OrganizationName parent = OrganizationName.of("[ORGANIZATION]");
+   *   StoredInfoTypeConfig config = StoredInfoTypeConfig.newBuilder().build();
+   *   StoredInfoType response = dlpServiceClient.createStoredInfoType(parent, config);
    * }
    * 
* - * @param request The request object containing all of the parameters for the API call. + * @param parent Required. The parent resource name, for example projects/my-project-id or + * organizations/my-org-id. + * @param config Required. Configuration of the storedInfoType to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final DlpJob getDlpJob(GetDlpJobRequest request) { - return getDlpJobCallable().call(request); + public final StoredInfoType createStoredInfoType( + OrganizationName parent, StoredInfoTypeConfig config) { + CreateStoredInfoTypeRequest request = + CreateStoredInfoTypeRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setConfig(config) + .build(); + return createStoredInfoType(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * 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. + * Creates a pre-built stored infoType to be used for inspection. See + * https://cloud.google.com/dlp/docs/creating-stored-infotypes to learn more. * *

Sample code: * *


    * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
-   *   DlpJobName name = DlpJobName.of("[PROJECT]", "[DLP_JOB]");
-   *   GetDlpJobRequest request = GetDlpJobRequest.newBuilder()
-   *     .setName(name.toString())
-   *     .build();
-   *   ApiFuture<DlpJob> future = dlpServiceClient.getDlpJobCallable().futureCall(request);
-   *   // Do something
-   *   DlpJob response = future.get();
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   StoredInfoTypeConfig config = StoredInfoTypeConfig.newBuilder().build();
+   *   StoredInfoType response = dlpServiceClient.createStoredInfoType(parent, config);
    * }
    * 
+ * + * @param parent Required. The parent resource name, for example projects/my-project-id or + * organizations/my-org-id. + * @param config Required. Configuration of the storedInfoType to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UnaryCallable getDlpJobCallable() { - return stub.getDlpJobCallable(); + public final StoredInfoType createStoredInfoType( + LocationName parent, StoredInfoTypeConfig config) { + CreateStoredInfoTypeRequest request = + CreateStoredInfoTypeRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setConfig(config) + .build(); + return createStoredInfoType(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Deletes a long-running DlpJob. This method indicates that the client is no longer interested in - * the DlpJob result. The job will be cancelled if possible. See - * https://cloud.google.com/dlp/docs/inspecting-storage and - * https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more. + * Creates a pre-built stored infoType to be used for inspection. See + * https://cloud.google.com/dlp/docs/creating-stored-infotypes to learn more. * *

Sample code: * *


    * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
-   *   DlpJobName name = DlpJobName.of("[PROJECT]", "[DLP_JOB]");
-   *   DeleteDlpJobRequest request = DeleteDlpJobRequest.newBuilder()
-   *     .setName(name.toString())
-   *     .build();
-   *   dlpServiceClient.deleteDlpJob(request);
+   *   OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]");
+   *   StoredInfoTypeConfig config = StoredInfoTypeConfig.newBuilder().build();
+   *   StoredInfoType response = dlpServiceClient.createStoredInfoType(parent.toString(), config);
    * }
    * 
* - * @param request The request object containing all of the parameters for the API call. + * @param parent Required. The parent resource name, for example projects/my-project-id or + * organizations/my-org-id. + * @param config Required. Configuration of the storedInfoType to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteDlpJob(DeleteDlpJobRequest request) { - deleteDlpJobCallable().call(request); + public final StoredInfoType createStoredInfoType(String parent, StoredInfoTypeConfig config) { + CreateStoredInfoTypeRequest request = + CreateStoredInfoTypeRequest.newBuilder().setParent(parent).setConfig(config).build(); + return createStoredInfoType(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Deletes a long-running DlpJob. This method indicates that the client is no longer interested in - * the DlpJob result. The job will be cancelled if possible. See - * https://cloud.google.com/dlp/docs/inspecting-storage and - * https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more. + * Creates a pre-built stored infoType to be used for inspection. See + * https://cloud.google.com/dlp/docs/creating-stored-infotypes to learn more. * *

Sample code: * *


    * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
-   *   DlpJobName name = DlpJobName.of("[PROJECT]", "[DLP_JOB]");
-   *   DeleteDlpJobRequest request = DeleteDlpJobRequest.newBuilder()
-   *     .setName(name.toString())
-   *     .build();
-   *   ApiFuture<Void> future = dlpServiceClient.deleteDlpJobCallable().futureCall(request);
-   *   // Do something
-   *   future.get();
+   *   OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]");
+   *   StoredInfoTypeConfig config = StoredInfoTypeConfig.newBuilder().build();
+   *   String locationId = "";
+   *   StoredInfoType response = dlpServiceClient.createStoredInfoType(parent, config, locationId);
    * }
    * 
+ * + * @param parent Required. The parent resource name, for example projects/my-project-id or + * organizations/my-org-id. + * @param config Required. Configuration of the storedInfoType to create. + * @param locationId The geographic location to store the stored infoType. Reserved for future + * extensions. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UnaryCallable deleteDlpJobCallable() { - return stub.deleteDlpJobCallable(); + public final StoredInfoType createStoredInfoType( + OrganizationLocationName parent, StoredInfoTypeConfig config, String locationId) { + CreateStoredInfoTypeRequest request = + CreateStoredInfoTypeRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setConfig(config) + .setLocationId(locationId) + .build(); + return createStoredInfoType(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * 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. + * Creates a pre-built stored infoType to be used for inspection. See + * https://cloud.google.com/dlp/docs/creating-stored-infotypes to learn more. * *

Sample code: * *


    * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
-   *   DlpJobName name = DlpJobName.of("[PROJECT]", "[DLP_JOB]");
-   *   CancelDlpJobRequest request = CancelDlpJobRequest.newBuilder()
-   *     .setName(name.toString())
-   *     .build();
-   *   dlpServiceClient.cancelDlpJob(request);
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   StoredInfoTypeConfig config = StoredInfoTypeConfig.newBuilder().build();
+   *   String locationId = "";
+   *   StoredInfoType response = dlpServiceClient.createStoredInfoType(parent, config, locationId);
    * }
    * 
* - * @param request The request object containing all of the parameters for the API call. + * @param parent Required. The parent resource name, for example projects/my-project-id or + * organizations/my-org-id. + * @param config Required. Configuration of the storedInfoType to create. + * @param locationId The geographic location to store the stored infoType. Reserved for future + * extensions. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void cancelDlpJob(CancelDlpJobRequest request) { - cancelDlpJobCallable().call(request); + public final StoredInfoType createStoredInfoType( + ProjectName parent, StoredInfoTypeConfig config, String locationId) { + CreateStoredInfoTypeRequest request = + CreateStoredInfoTypeRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setConfig(config) + .setLocationId(locationId) + .build(); + return createStoredInfoType(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * 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. + * Creates a pre-built stored infoType to be used for inspection. See + * https://cloud.google.com/dlp/docs/creating-stored-infotypes to learn more. * *

Sample code: * *


    * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
-   *   DlpJobName name = DlpJobName.of("[PROJECT]", "[DLP_JOB]");
-   *   CancelDlpJobRequest request = CancelDlpJobRequest.newBuilder()
-   *     .setName(name.toString())
-   *     .build();
-   *   ApiFuture<Void> future = dlpServiceClient.cancelDlpJobCallable().futureCall(request);
-   *   // Do something
-   *   future.get();
+   *   OrganizationName parent = OrganizationName.of("[ORGANIZATION]");
+   *   StoredInfoTypeConfig config = StoredInfoTypeConfig.newBuilder().build();
+   *   String locationId = "";
+   *   StoredInfoType response = dlpServiceClient.createStoredInfoType(parent, config, locationId);
    * }
    * 
+ * + * @param parent Required. The parent resource name, for example projects/my-project-id or + * organizations/my-org-id. + * @param config Required. Configuration of the storedInfoType to create. + * @param locationId The geographic location to store the stored infoType. Reserved for future + * extensions. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UnaryCallable cancelDlpJobCallable() { - return stub.cancelDlpJobCallable(); + public final StoredInfoType createStoredInfoType( + OrganizationName parent, StoredInfoTypeConfig config, String locationId) { + CreateStoredInfoTypeRequest request = + CreateStoredInfoTypeRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setConfig(config) + .setLocationId(locationId) + .build(); + return createStoredInfoType(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Finish a running hybrid DlpJob. Triggers the finalization steps and running of any enabled - * actions that have not yet run. Early access feature is in a pre-release state and might change - * or have limited support. For more information, see - * https://cloud.google.com/products#product-launch-stages. + * Creates a pre-built stored infoType to be used for inspection. See + * https://cloud.google.com/dlp/docs/creating-stored-infotypes to learn more. * *

Sample code: * *


    * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
-   *   DlpJobName name = DlpJobName.of("[PROJECT]", "[DLP_JOB]");
-   *   FinishDlpJobRequest request = FinishDlpJobRequest.newBuilder()
-   *     .setName(name.toString())
-   *     .build();
-   *   dlpServiceClient.finishDlpJob(request);
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   StoredInfoTypeConfig config = StoredInfoTypeConfig.newBuilder().build();
+   *   String locationId = "";
+   *   StoredInfoType response = dlpServiceClient.createStoredInfoType(parent, config, locationId);
    * }
    * 
* - * @param request The request object containing all of the parameters for the API call. + * @param parent Required. The parent resource name, for example projects/my-project-id or + * organizations/my-org-id. + * @param config Required. Configuration of the storedInfoType to create. + * @param locationId The geographic location to store the stored infoType. Reserved for future + * extensions. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void finishDlpJob(FinishDlpJobRequest request) { - finishDlpJobCallable().call(request); + public final StoredInfoType createStoredInfoType( + LocationName parent, StoredInfoTypeConfig config, String locationId) { + CreateStoredInfoTypeRequest request = + CreateStoredInfoTypeRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setConfig(config) + .setLocationId(locationId) + .build(); + return createStoredInfoType(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Finish a running hybrid DlpJob. Triggers the finalization steps and running of any enabled - * actions that have not yet run. Early access feature is in a pre-release state and might change - * or have limited support. For more information, see - * https://cloud.google.com/products#product-launch-stages. + * Creates a pre-built stored infoType to be used for inspection. See + * https://cloud.google.com/dlp/docs/creating-stored-infotypes to learn more. * *

Sample code: * *


    * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
-   *   DlpJobName name = DlpJobName.of("[PROJECT]", "[DLP_JOB]");
-   *   FinishDlpJobRequest request = FinishDlpJobRequest.newBuilder()
-   *     .setName(name.toString())
-   *     .build();
-   *   ApiFuture<Void> future = dlpServiceClient.finishDlpJobCallable().futureCall(request);
-   *   // Do something
-   *   future.get();
+   *   OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]");
+   *   StoredInfoTypeConfig config = StoredInfoTypeConfig.newBuilder().build();
+   *   String locationId = "";
+   *   StoredInfoType response = dlpServiceClient.createStoredInfoType(parent.toString(), config, locationId);
    * }
    * 
+ * + * @param parent Required. The parent resource name, for example projects/my-project-id or + * organizations/my-org-id. + * @param config Required. Configuration of the storedInfoType to create. + * @param locationId The geographic location to store the stored infoType. Reserved for future + * extensions. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UnaryCallable finishDlpJobCallable() { - return stub.finishDlpJobCallable(); + public final StoredInfoType createStoredInfoType( + String parent, StoredInfoTypeConfig config, String locationId) { + CreateStoredInfoTypeRequest request = + CreateStoredInfoTypeRequest.newBuilder() + .setParent(parent) + .setConfig(config) + .setLocationId(locationId) + .build(); + return createStoredInfoType(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Inspect hybrid content and store findings to a job. To review the findings inspect the job. - * Inspection will occur asynchronously. Early access feature is in a pre-release state and might - * change or have limited support. For more information, see - * https://cloud.google.com/products#product-launch-stages. + * Creates a pre-built stored infoType to be used for inspection. See + * https://cloud.google.com/dlp/docs/creating-stored-infotypes to learn more. * *

Sample code: * *


    * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
-   *   String name = "";
-   *   HybridInspectDlpJobRequest request = HybridInspectDlpJobRequest.newBuilder()
-   *     .setName(name)
+   *   OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]");
+   *   StoredInfoTypeConfig config = StoredInfoTypeConfig.newBuilder().build();
+   *   CreateStoredInfoTypeRequest request = CreateStoredInfoTypeRequest.newBuilder()
+   *     .setParent(parent.toString())
+   *     .setConfig(config)
    *     .build();
-   *   HybridInspectResponse response = dlpServiceClient.hybridInspectDlpJob(request);
+   *   StoredInfoType response = dlpServiceClient.createStoredInfoType(request);
    * }
    * 
* * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final HybridInspectResponse hybridInspectDlpJob(HybridInspectDlpJobRequest request) { - return hybridInspectDlpJobCallable().call(request); + public final StoredInfoType createStoredInfoType(CreateStoredInfoTypeRequest request) { + return createStoredInfoTypeCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Inspect hybrid content and store findings to a job. To review the findings inspect the job. - * Inspection will occur asynchronously. Early access feature is in a pre-release state and might - * change or have limited support. For more information, see - * https://cloud.google.com/products#product-launch-stages. + * Creates a pre-built stored infoType to be used for inspection. See + * https://cloud.google.com/dlp/docs/creating-stored-infotypes to learn more. * *

Sample code: * *


    * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
-   *   String name = "";
-   *   HybridInspectDlpJobRequest request = HybridInspectDlpJobRequest.newBuilder()
-   *     .setName(name)
+   *   OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]");
+   *   StoredInfoTypeConfig config = StoredInfoTypeConfig.newBuilder().build();
+   *   CreateStoredInfoTypeRequest request = CreateStoredInfoTypeRequest.newBuilder()
+   *     .setParent(parent.toString())
+   *     .setConfig(config)
    *     .build();
-   *   ApiFuture<HybridInspectResponse> future = dlpServiceClient.hybridInspectDlpJobCallable().futureCall(request);
+   *   ApiFuture<StoredInfoType> future = dlpServiceClient.createStoredInfoTypeCallable().futureCall(request);
    *   // Do something
-   *   HybridInspectResponse response = future.get();
+   *   StoredInfoType response = future.get();
    * }
    * 
*/ - public final UnaryCallable - hybridInspectDlpJobCallable() { - return stub.hybridInspectDlpJobCallable(); + public final UnaryCallable + createStoredInfoTypeCallable() { + return stub.createStoredInfoTypeCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Lists job triggers. See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more. + * 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. * *

Sample code: * *


    * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
-   *   ProjectName parent = ProjectName.of("[PROJECT]");
-   *   ListJobTriggersRequest request = ListJobTriggersRequest.newBuilder()
-   *     .setParent(parent.toString())
-   *     .build();
-   *   for (JobTrigger element : dlpServiceClient.listJobTriggers(request).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
+   *   StoredInfoTypeName name = StoredInfoTypeName.ofOrganizationStoredInfoTypeName("[ORGANIZATION]", "[STORED_INFO_TYPE]");
+   *   StoredInfoTypeConfig config = StoredInfoTypeConfig.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   StoredInfoType response = dlpServiceClient.updateStoredInfoType(name, config, updateMask);
    * }
    * 
* - * @param request The request object containing all of the parameters for the API call. + * @param name Required. Resource name of organization and storedInfoType to be updated, for + * example `organizations/433245324/storedInfoTypes/432452342` or + * projects/project-id/storedInfoTypes/432452342. + * @param config Updated configuration for the storedInfoType. If not provided, a new version of + * the storedInfoType will be created with the existing configuration. + * @param updateMask Mask to control which fields get updated. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListJobTriggersPagedResponse listJobTriggers(ListJobTriggersRequest request) { - return listJobTriggersPagedCallable().call(request); + public final StoredInfoType updateStoredInfoType( + StoredInfoTypeName name, StoredInfoTypeConfig config, FieldMask updateMask) { + UpdateStoredInfoTypeRequest request = + UpdateStoredInfoTypeRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .setConfig(config) + .setUpdateMask(updateMask) + .build(); + return updateStoredInfoType(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Lists job triggers. See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more. + * 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. * *

Sample code: * *


    * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
-   *   ProjectName parent = ProjectName.of("[PROJECT]");
-   *   ListJobTriggersRequest request = ListJobTriggersRequest.newBuilder()
-   *     .setParent(parent.toString())
-   *     .build();
-   *   ApiFuture<ListJobTriggersPagedResponse> future = dlpServiceClient.listJobTriggersPagedCallable().futureCall(request);
-   *   // Do something
-   *   for (JobTrigger element : future.get().iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
+   *   StoredInfoTypeName name = StoredInfoTypeName.ofOrganizationStoredInfoTypeName("[ORGANIZATION]", "[STORED_INFO_TYPE]");
+   *   StoredInfoTypeConfig config = StoredInfoTypeConfig.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   StoredInfoType response = dlpServiceClient.updateStoredInfoType(name.toString(), config, updateMask);
    * }
    * 
+ * + * @param name Required. Resource name of organization and storedInfoType to be updated, for + * example `organizations/433245324/storedInfoTypes/432452342` or + * projects/project-id/storedInfoTypes/432452342. + * @param config Updated configuration for the storedInfoType. If not provided, a new version of + * the storedInfoType will be created with the existing configuration. + * @param updateMask Mask to control which fields get updated. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UnaryCallable - listJobTriggersPagedCallable() { - return stub.listJobTriggersPagedCallable(); + public final StoredInfoType updateStoredInfoType( + String name, StoredInfoTypeConfig config, FieldMask updateMask) { + UpdateStoredInfoTypeRequest request = + UpdateStoredInfoTypeRequest.newBuilder() + .setName(name) + .setConfig(config) + .setUpdateMask(updateMask) + .build(); + return updateStoredInfoType(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Lists job triggers. See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more. + * 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. * *

Sample code: * *


    * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
-   *   ProjectName parent = ProjectName.of("[PROJECT]");
-   *   ListJobTriggersRequest request = ListJobTriggersRequest.newBuilder()
-   *     .setParent(parent.toString())
+   *   StoredInfoTypeName name = StoredInfoTypeName.ofOrganizationStoredInfoTypeName("[ORGANIZATION]", "[STORED_INFO_TYPE]");
+   *   UpdateStoredInfoTypeRequest request = UpdateStoredInfoTypeRequest.newBuilder()
+   *     .setName(name.toString())
    *     .build();
-   *   while (true) {
-   *     ListJobTriggersResponse response = dlpServiceClient.listJobTriggersCallable().call(request);
-   *     for (JobTrigger element : response.getJobTriggersList()) {
-   *       // doThingsWith(element);
-   *     }
-   *     String nextPageToken = response.getNextPageToken();
-   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
-   *       request = request.toBuilder().setPageToken(nextPageToken).build();
-   *     } else {
-   *       break;
-   *     }
-   *   }
+   *   StoredInfoType response = dlpServiceClient.updateStoredInfoType(request);
    * }
    * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UnaryCallable - listJobTriggersCallable() { - return stub.listJobTriggersCallable(); + public final StoredInfoType updateStoredInfoType(UpdateStoredInfoTypeRequest request) { + return updateStoredInfoTypeCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Gets a job trigger. See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more. + * 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. * *

Sample code: * *


    * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
-   *   ProjectJobTriggerName name = ProjectJobTriggerName.of("[PROJECT]", "[JOB_TRIGGER]");
-   *   GetJobTriggerRequest request = GetJobTriggerRequest.newBuilder()
+   *   StoredInfoTypeName name = StoredInfoTypeName.ofOrganizationStoredInfoTypeName("[ORGANIZATION]", "[STORED_INFO_TYPE]");
+   *   UpdateStoredInfoTypeRequest request = UpdateStoredInfoTypeRequest.newBuilder()
    *     .setName(name.toString())
    *     .build();
-   *   JobTrigger response = dlpServiceClient.getJobTrigger(request);
+   *   ApiFuture<StoredInfoType> future = dlpServiceClient.updateStoredInfoTypeCallable().futureCall(request);
+   *   // Do something
+   *   StoredInfoType response = future.get();
    * }
    * 
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final JobTrigger getJobTrigger(GetJobTriggerRequest request) { - return getJobTriggerCallable().call(request); + public final UnaryCallable + updateStoredInfoTypeCallable() { + return stub.updateStoredInfoTypeCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Gets a job trigger. See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more. + * Gets a stored infoType. See https://cloud.google.com/dlp/docs/creating-stored-infotypes to + * learn more. * *

Sample code: * *


    * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
-   *   ProjectJobTriggerName name = ProjectJobTriggerName.of("[PROJECT]", "[JOB_TRIGGER]");
-   *   GetJobTriggerRequest request = GetJobTriggerRequest.newBuilder()
-   *     .setName(name.toString())
-   *     .build();
-   *   ApiFuture<JobTrigger> future = dlpServiceClient.getJobTriggerCallable().futureCall(request);
-   *   // Do something
-   *   JobTrigger response = future.get();
+   *   StoredInfoTypeName name = StoredInfoTypeName.ofOrganizationStoredInfoTypeName("[ORGANIZATION]", "[STORED_INFO_TYPE]");
+   *   StoredInfoType response = dlpServiceClient.getStoredInfoType(name);
+   * }
+   * 
+ * + * @param name Required. Resource name of the organization and storedInfoType to be read, for + * example `organizations/433245324/storedInfoTypes/432452342` or + * projects/project-id/storedInfoTypes/432452342. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final StoredInfoType getStoredInfoType(StoredInfoTypeName name) { + GetStoredInfoTypeRequest request = + GetStoredInfoTypeRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getStoredInfoType(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Gets a stored infoType. See https://cloud.google.com/dlp/docs/creating-stored-infotypes to + * learn more. + * + *

Sample code: + * + *


+   * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
+   *   StoredInfoTypeName name = StoredInfoTypeName.ofOrganizationStoredInfoTypeName("[ORGANIZATION]", "[STORED_INFO_TYPE]");
+   *   StoredInfoType response = dlpServiceClient.getStoredInfoType(name.toString());
    * }
    * 
+ * + * @param name Required. Resource name of the organization and storedInfoType to be read, for + * example `organizations/433245324/storedInfoTypes/432452342` or + * projects/project-id/storedInfoTypes/432452342. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UnaryCallable getJobTriggerCallable() { - return stub.getJobTriggerCallable(); + public final StoredInfoType getStoredInfoType(String name) { + GetStoredInfoTypeRequest request = GetStoredInfoTypeRequest.newBuilder().setName(name).build(); + return getStoredInfoType(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Deletes a job trigger. See https://cloud.google.com/dlp/docs/creating-job-triggers to learn - * more. + * Gets a stored infoType. See https://cloud.google.com/dlp/docs/creating-stored-infotypes to + * learn more. * *

Sample code: * *


    * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
-   *   ProjectJobTriggerName name = ProjectJobTriggerName.of("[PROJECT]", "[JOB_TRIGGER]");
-   *   DeleteJobTriggerRequest request = DeleteJobTriggerRequest.newBuilder()
+   *   StoredInfoTypeName name = StoredInfoTypeName.ofOrganizationStoredInfoTypeName("[ORGANIZATION]", "[STORED_INFO_TYPE]");
+   *   GetStoredInfoTypeRequest request = GetStoredInfoTypeRequest.newBuilder()
    *     .setName(name.toString())
    *     .build();
-   *   dlpServiceClient.deleteJobTrigger(request);
+   *   StoredInfoType response = dlpServiceClient.getStoredInfoType(request);
    * }
    * 
* * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteJobTrigger(DeleteJobTriggerRequest request) { - deleteJobTriggerCallable().call(request); + public final StoredInfoType getStoredInfoType(GetStoredInfoTypeRequest request) { + return getStoredInfoTypeCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Deletes a job trigger. See https://cloud.google.com/dlp/docs/creating-job-triggers to learn - * more. + * Gets a stored infoType. See https://cloud.google.com/dlp/docs/creating-stored-infotypes to + * learn more. * *

Sample code: * *


    * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
-   *   ProjectJobTriggerName name = ProjectJobTriggerName.of("[PROJECT]", "[JOB_TRIGGER]");
-   *   DeleteJobTriggerRequest request = DeleteJobTriggerRequest.newBuilder()
+   *   StoredInfoTypeName name = StoredInfoTypeName.ofOrganizationStoredInfoTypeName("[ORGANIZATION]", "[STORED_INFO_TYPE]");
+   *   GetStoredInfoTypeRequest request = GetStoredInfoTypeRequest.newBuilder()
    *     .setName(name.toString())
    *     .build();
-   *   ApiFuture<Void> future = dlpServiceClient.deleteJobTriggerCallable().futureCall(request);
+   *   ApiFuture<StoredInfoType> future = dlpServiceClient.getStoredInfoTypeCallable().futureCall(request);
    *   // Do something
-   *   future.get();
+   *   StoredInfoType response = future.get();
    * }
    * 
*/ - public final UnaryCallable deleteJobTriggerCallable() { - return stub.deleteJobTriggerCallable(); + public final UnaryCallable getStoredInfoTypeCallable() { + return stub.getStoredInfoTypeCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * 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. Early access - * feature is in a pre-release state and might change or have limited support. For more - * information, see https://cloud.google.com/products#product-launch-stages. + * Lists stored infoTypes. See https://cloud.google.com/dlp/docs/creating-stored-infotypes to + * learn more. * *

Sample code: * *


    * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
-   *   String name = "";
-   *   HybridInspectJobTriggerRequest request = HybridInspectJobTriggerRequest.newBuilder()
-   *     .setName(name)
-   *     .build();
-   *   HybridInspectResponse response = dlpServiceClient.hybridInspectJobTrigger(request);
+   *   OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]");
+   *   for (StoredInfoType element : dlpServiceClient.listStoredInfoTypes(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
    * }
    * 
* - * @param request The request object containing all of the parameters for the API call. + * @param parent Required. The parent resource name, for example projects/my-project-id or + * organizations/my-org-id. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final HybridInspectResponse hybridInspectJobTrigger( - HybridInspectJobTriggerRequest request) { - return hybridInspectJobTriggerCallable().call(request); + public final ListStoredInfoTypesPagedResponse listStoredInfoTypes( + OrganizationLocationName parent) { + ListStoredInfoTypesRequest request = + ListStoredInfoTypesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listStoredInfoTypes(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * 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. Early access - * feature is in a pre-release state and might change or have limited support. For more - * information, see https://cloud.google.com/products#product-launch-stages. + * Lists stored infoTypes. See https://cloud.google.com/dlp/docs/creating-stored-infotypes to + * learn more. * *

Sample code: * *


    * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
-   *   String name = "";
-   *   HybridInspectJobTriggerRequest request = HybridInspectJobTriggerRequest.newBuilder()
-   *     .setName(name)
-   *     .build();
-   *   ApiFuture<HybridInspectResponse> future = dlpServiceClient.hybridInspectJobTriggerCallable().futureCall(request);
-   *   // Do something
-   *   HybridInspectResponse response = future.get();
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   for (StoredInfoType element : dlpServiceClient.listStoredInfoTypes(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
    * }
    * 
+ * + * @param parent Required. The parent resource name, for example projects/my-project-id or + * organizations/my-org-id. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UnaryCallable - hybridInspectJobTriggerCallable() { - return stub.hybridInspectJobTriggerCallable(); + public final ListStoredInfoTypesPagedResponse listStoredInfoTypes(ProjectName parent) { + ListStoredInfoTypesRequest request = + ListStoredInfoTypesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listStoredInfoTypes(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Updates a job trigger. See https://cloud.google.com/dlp/docs/creating-job-triggers to learn - * more. + * Lists stored infoTypes. See https://cloud.google.com/dlp/docs/creating-stored-infotypes to + * learn more. * *

Sample code: * *


    * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
-   *   ProjectJobTriggerName name = ProjectJobTriggerName.of("[PROJECT]", "[JOB_TRIGGER]");
-   *   UpdateJobTriggerRequest request = UpdateJobTriggerRequest.newBuilder()
-   *     .setName(name.toString())
-   *     .build();
-   *   JobTrigger response = dlpServiceClient.updateJobTrigger(request);
+   *   OrganizationName parent = OrganizationName.of("[ORGANIZATION]");
+   *   for (StoredInfoType element : dlpServiceClient.listStoredInfoTypes(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
    * }
    * 
* - * @param request The request object containing all of the parameters for the API call. + * @param parent Required. The parent resource name, for example projects/my-project-id or + * organizations/my-org-id. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final JobTrigger updateJobTrigger(UpdateJobTriggerRequest request) { - return updateJobTriggerCallable().call(request); + public final ListStoredInfoTypesPagedResponse listStoredInfoTypes(OrganizationName parent) { + ListStoredInfoTypesRequest request = + ListStoredInfoTypesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listStoredInfoTypes(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Updates a job trigger. See https://cloud.google.com/dlp/docs/creating-job-triggers to learn - * more. + * Lists stored infoTypes. See https://cloud.google.com/dlp/docs/creating-stored-infotypes to + * learn more. * *

Sample code: * *


    * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
-   *   ProjectJobTriggerName name = ProjectJobTriggerName.of("[PROJECT]", "[JOB_TRIGGER]");
-   *   UpdateJobTriggerRequest request = UpdateJobTriggerRequest.newBuilder()
-   *     .setName(name.toString())
-   *     .build();
-   *   ApiFuture<JobTrigger> future = dlpServiceClient.updateJobTriggerCallable().futureCall(request);
-   *   // Do something
-   *   JobTrigger response = future.get();
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   for (StoredInfoType element : dlpServiceClient.listStoredInfoTypes(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
    * }
    * 
+ * + * @param parent Required. The parent resource name, for example projects/my-project-id or + * organizations/my-org-id. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UnaryCallable updateJobTriggerCallable() { - return stub.updateJobTriggerCallable(); + public final ListStoredInfoTypesPagedResponse listStoredInfoTypes(LocationName parent) { + ListStoredInfoTypesRequest request = + ListStoredInfoTypesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listStoredInfoTypes(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * 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. + * Lists stored infoTypes. See https://cloud.google.com/dlp/docs/creating-stored-infotypes to + * learn more. * *

Sample code: * *


    * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
-   *   ProjectName parent = ProjectName.of("[PROJECT]");
-   *   CreateJobTriggerRequest request = CreateJobTriggerRequest.newBuilder()
-   *     .setParent(parent.toString())
-   *     .build();
-   *   JobTrigger response = dlpServiceClient.createJobTrigger(request);
+   *   OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]");
+   *   for (StoredInfoType element : dlpServiceClient.listStoredInfoTypes(parent.toString()).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
    * }
    * 
* - * @param request The request object containing all of the parameters for the API call. + * @param parent Required. The parent resource name, for example projects/my-project-id or + * organizations/my-org-id. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final JobTrigger createJobTrigger(CreateJobTriggerRequest request) { - return createJobTriggerCallable().call(request); + public final ListStoredInfoTypesPagedResponse listStoredInfoTypes(String parent) { + ListStoredInfoTypesRequest request = + ListStoredInfoTypesRequest.newBuilder().setParent(parent).build(); + return listStoredInfoTypes(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * 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. + * Lists stored infoTypes. See https://cloud.google.com/dlp/docs/creating-stored-infotypes to + * learn more. * *

Sample code: * *


    * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
-   *   ProjectName parent = ProjectName.of("[PROJECT]");
-   *   CreateJobTriggerRequest request = CreateJobTriggerRequest.newBuilder()
+   *   OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]");
+   *   ListStoredInfoTypesRequest request = ListStoredInfoTypesRequest.newBuilder()
    *     .setParent(parent.toString())
    *     .build();
-   *   ApiFuture<JobTrigger> future = dlpServiceClient.createJobTriggerCallable().futureCall(request);
-   *   // Do something
-   *   JobTrigger response = future.get();
+   *   for (StoredInfoType element : dlpServiceClient.listStoredInfoTypes(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
    * }
    * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UnaryCallable createJobTriggerCallable() { - return stub.createJobTriggerCallable(); + public final ListStoredInfoTypesPagedResponse listStoredInfoTypes( + ListStoredInfoTypesRequest request) { + return listStoredInfoTypesPagedCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Creates a pre-built stored infoType to be used for inspection. See - * https://cloud.google.com/dlp/docs/creating-stored-infotypes to learn more. + * Lists stored infoTypes. See https://cloud.google.com/dlp/docs/creating-stored-infotypes to + * learn more. * *

Sample code: * *


    * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
-   *   OrganizationName parent = OrganizationName.of("[ORGANIZATION]");
-   *   CreateStoredInfoTypeRequest request = CreateStoredInfoTypeRequest.newBuilder()
+   *   OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]");
+   *   ListStoredInfoTypesRequest request = ListStoredInfoTypesRequest.newBuilder()
    *     .setParent(parent.toString())
    *     .build();
-   *   StoredInfoType response = dlpServiceClient.createStoredInfoType(request);
+   *   ApiFuture<ListStoredInfoTypesPagedResponse> future = dlpServiceClient.listStoredInfoTypesPagedCallable().futureCall(request);
+   *   // Do something
+   *   for (StoredInfoType element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
    * }
    * 
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final StoredInfoType createStoredInfoType(CreateStoredInfoTypeRequest request) { - return createStoredInfoTypeCallable().call(request); + public final UnaryCallable + listStoredInfoTypesPagedCallable() { + return stub.listStoredInfoTypesPagedCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Creates a pre-built stored infoType to be used for inspection. See - * https://cloud.google.com/dlp/docs/creating-stored-infotypes to learn more. + * Lists stored infoTypes. See https://cloud.google.com/dlp/docs/creating-stored-infotypes to + * learn more. * *

Sample code: * *


    * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
-   *   OrganizationName parent = OrganizationName.of("[ORGANIZATION]");
-   *   CreateStoredInfoTypeRequest request = CreateStoredInfoTypeRequest.newBuilder()
+   *   OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]");
+   *   ListStoredInfoTypesRequest request = ListStoredInfoTypesRequest.newBuilder()
    *     .setParent(parent.toString())
    *     .build();
-   *   ApiFuture<StoredInfoType> future = dlpServiceClient.createStoredInfoTypeCallable().futureCall(request);
-   *   // Do something
-   *   StoredInfoType response = future.get();
+   *   while (true) {
+   *     ListStoredInfoTypesResponse response = dlpServiceClient.listStoredInfoTypesCallable().call(request);
+   *     for (StoredInfoType element : response.getStoredInfoTypesList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
    * }
    * 
*/ - public final UnaryCallable - createStoredInfoTypeCallable() { - return stub.createStoredInfoTypeCallable(); + public final UnaryCallable + listStoredInfoTypesCallable() { + return stub.listStoredInfoTypesCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * 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. + * Deletes a stored infoType. See https://cloud.google.com/dlp/docs/creating-stored-infotypes to + * learn more. * *

Sample code: * *


    * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
-   *   StoredInfoTypeName name = OrganizationStoredInfoTypeName.of("[ORGANIZATION]", "[STORED_INFO_TYPE]");
-   *   UpdateStoredInfoTypeRequest request = UpdateStoredInfoTypeRequest.newBuilder()
-   *     .setName(name.toString())
-   *     .build();
-   *   StoredInfoType response = dlpServiceClient.updateStoredInfoType(request);
+   *   StoredInfoTypeName name = StoredInfoTypeName.ofOrganizationStoredInfoTypeName("[ORGANIZATION]", "[STORED_INFO_TYPE]");
+   *   dlpServiceClient.deleteStoredInfoType(name);
    * }
    * 
* - * @param request The request object containing all of the parameters for the API call. + * @param name Required. Resource name of the organization and storedInfoType to be deleted, for + * example `organizations/433245324/storedInfoTypes/432452342` or + * projects/project-id/storedInfoTypes/432452342. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final StoredInfoType updateStoredInfoType(UpdateStoredInfoTypeRequest request) { - return updateStoredInfoTypeCallable().call(request); + public final void deleteStoredInfoType(StoredInfoTypeName name) { + DeleteStoredInfoTypeRequest request = + DeleteStoredInfoTypeRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + deleteStoredInfoType(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * 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. + * Deletes a stored infoType. See https://cloud.google.com/dlp/docs/creating-stored-infotypes to + * learn more. * *

Sample code: * *


    * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
-   *   StoredInfoTypeName name = OrganizationStoredInfoTypeName.of("[ORGANIZATION]", "[STORED_INFO_TYPE]");
-   *   UpdateStoredInfoTypeRequest request = UpdateStoredInfoTypeRequest.newBuilder()
-   *     .setName(name.toString())
-   *     .build();
-   *   ApiFuture<StoredInfoType> future = dlpServiceClient.updateStoredInfoTypeCallable().futureCall(request);
-   *   // Do something
-   *   StoredInfoType response = future.get();
+   *   StoredInfoTypeName name = StoredInfoTypeName.ofOrganizationStoredInfoTypeName("[ORGANIZATION]", "[STORED_INFO_TYPE]");
+   *   dlpServiceClient.deleteStoredInfoType(name.toString());
    * }
    * 
+ * + * @param name Required. Resource name of the organization and storedInfoType to be deleted, for + * example `organizations/433245324/storedInfoTypes/432452342` or + * projects/project-id/storedInfoTypes/432452342. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UnaryCallable - updateStoredInfoTypeCallable() { - return stub.updateStoredInfoTypeCallable(); + public final void deleteStoredInfoType(String name) { + DeleteStoredInfoTypeRequest request = + DeleteStoredInfoTypeRequest.newBuilder().setName(name).build(); + deleteStoredInfoType(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Gets a stored infoType. See https://cloud.google.com/dlp/docs/creating-stored-infotypes to + * Deletes a stored infoType. See https://cloud.google.com/dlp/docs/creating-stored-infotypes to * learn more. * *

Sample code: * *


    * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
-   *   StoredInfoTypeName name = OrganizationStoredInfoTypeName.of("[ORGANIZATION]", "[STORED_INFO_TYPE]");
-   *   GetStoredInfoTypeRequest request = GetStoredInfoTypeRequest.newBuilder()
+   *   StoredInfoTypeName name = StoredInfoTypeName.ofOrganizationStoredInfoTypeName("[ORGANIZATION]", "[STORED_INFO_TYPE]");
+   *   DeleteStoredInfoTypeRequest request = DeleteStoredInfoTypeRequest.newBuilder()
    *     .setName(name.toString())
    *     .build();
-   *   StoredInfoType response = dlpServiceClient.getStoredInfoType(request);
+   *   dlpServiceClient.deleteStoredInfoType(request);
    * }
    * 
* * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final StoredInfoType getStoredInfoType(GetStoredInfoTypeRequest request) { - return getStoredInfoTypeCallable().call(request); + public final void deleteStoredInfoType(DeleteStoredInfoTypeRequest request) { + deleteStoredInfoTypeCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Gets a stored infoType. See https://cloud.google.com/dlp/docs/creating-stored-infotypes to + * Deletes a stored infoType. See https://cloud.google.com/dlp/docs/creating-stored-infotypes to * learn more. * *

Sample code: * *


    * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
-   *   StoredInfoTypeName name = OrganizationStoredInfoTypeName.of("[ORGANIZATION]", "[STORED_INFO_TYPE]");
-   *   GetStoredInfoTypeRequest request = GetStoredInfoTypeRequest.newBuilder()
+   *   StoredInfoTypeName name = StoredInfoTypeName.ofOrganizationStoredInfoTypeName("[ORGANIZATION]", "[STORED_INFO_TYPE]");
+   *   DeleteStoredInfoTypeRequest request = DeleteStoredInfoTypeRequest.newBuilder()
    *     .setName(name.toString())
    *     .build();
-   *   ApiFuture<StoredInfoType> future = dlpServiceClient.getStoredInfoTypeCallable().futureCall(request);
+   *   ApiFuture<Void> future = dlpServiceClient.deleteStoredInfoTypeCallable().futureCall(request);
    *   // Do something
-   *   StoredInfoType response = future.get();
+   *   future.get();
    * }
    * 
*/ - public final UnaryCallable getStoredInfoTypeCallable() { - return stub.getStoredInfoTypeCallable(); + public final UnaryCallable deleteStoredInfoTypeCallable() { + return stub.deleteStoredInfoTypeCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Lists stored infoTypes. See https://cloud.google.com/dlp/docs/creating-stored-infotypes to - * learn more. + * Inspect hybrid content and store findings to a job. To review the findings inspect the job. + * Inspection will occur asynchronously. Early access feature is in a pre-release state and might + * change or have limited support. For more information, see + * https://cloud.google.com/products#product-launch-stages. + * + *

Sample code: + * + *


+   * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
+   *   DlpJobName name = DlpJobName.ofProjectDlpJobName("[PROJECT]", "[DLP_JOB]");
+   *   HybridInspectResponse response = dlpServiceClient.hybridInspectDlpJob(name);
+   * }
+   * 
+ * + * @param name Required. Resource name of the job to execute a hybrid inspect on, for example + * `projects/dlp-test-project/dlpJob/53234423`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final HybridInspectResponse hybridInspectDlpJob(DlpJobName name) { + HybridInspectDlpJobRequest request = + HybridInspectDlpJobRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return hybridInspectDlpJob(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Inspect hybrid content and store findings to a job. To review the findings inspect the job. + * Inspection will occur asynchronously. Early access feature is in a pre-release state and might + * change or have limited support. For more information, see + * https://cloud.google.com/products#product-launch-stages. * *

Sample code: * *


    * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
-   *   OrganizationName parent = OrganizationName.of("[ORGANIZATION]");
-   *   ListStoredInfoTypesRequest request = ListStoredInfoTypesRequest.newBuilder()
-   *     .setParent(parent.toString())
-   *     .build();
-   *   for (StoredInfoType element : dlpServiceClient.listStoredInfoTypes(request).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
+   *   DlpJobName name = DlpJobName.ofProjectDlpJobName("[PROJECT]", "[DLP_JOB]");
+   *   HybridInspectResponse response = dlpServiceClient.hybridInspectDlpJob(name.toString());
    * }
    * 
* - * @param request The request object containing all of the parameters for the API call. + * @param name Required. Resource name of the job to execute a hybrid inspect on, for example + * `projects/dlp-test-project/dlpJob/53234423`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListStoredInfoTypesPagedResponse listStoredInfoTypes( - ListStoredInfoTypesRequest request) { - return listStoredInfoTypesPagedCallable().call(request); + public final HybridInspectResponse hybridInspectDlpJob(String name) { + HybridInspectDlpJobRequest request = + HybridInspectDlpJobRequest.newBuilder().setName(name).build(); + return hybridInspectDlpJob(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Lists stored infoTypes. See https://cloud.google.com/dlp/docs/creating-stored-infotypes to - * learn more. + * Inspect hybrid content and store findings to a job. To review the findings inspect the job. + * Inspection will occur asynchronously. Early access feature is in a pre-release state and might + * change or have limited support. For more information, see + * https://cloud.google.com/products#product-launch-stages. * *

Sample code: * *


    * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
-   *   OrganizationName parent = OrganizationName.of("[ORGANIZATION]");
-   *   ListStoredInfoTypesRequest request = ListStoredInfoTypesRequest.newBuilder()
-   *     .setParent(parent.toString())
+   *   DlpJobName name = DlpJobName.ofProjectDlpJobName("[PROJECT]", "[DLP_JOB]");
+   *   HybridInspectDlpJobRequest request = HybridInspectDlpJobRequest.newBuilder()
+   *     .setName(name.toString())
    *     .build();
-   *   ApiFuture<ListStoredInfoTypesPagedResponse> future = dlpServiceClient.listStoredInfoTypesPagedCallable().futureCall(request);
-   *   // Do something
-   *   for (StoredInfoType element : future.get().iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
+   *   HybridInspectResponse response = dlpServiceClient.hybridInspectDlpJob(request);
    * }
    * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UnaryCallable - listStoredInfoTypesPagedCallable() { - return stub.listStoredInfoTypesPagedCallable(); + public final HybridInspectResponse hybridInspectDlpJob(HybridInspectDlpJobRequest request) { + return hybridInspectDlpJobCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Lists stored infoTypes. See https://cloud.google.com/dlp/docs/creating-stored-infotypes to - * learn more. + * Inspect hybrid content and store findings to a job. To review the findings inspect the job. + * Inspection will occur asynchronously. Early access feature is in a pre-release state and might + * change or have limited support. For more information, see + * https://cloud.google.com/products#product-launch-stages. * *

Sample code: * *


    * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
-   *   OrganizationName parent = OrganizationName.of("[ORGANIZATION]");
-   *   ListStoredInfoTypesRequest request = ListStoredInfoTypesRequest.newBuilder()
-   *     .setParent(parent.toString())
+   *   DlpJobName name = DlpJobName.ofProjectDlpJobName("[PROJECT]", "[DLP_JOB]");
+   *   HybridInspectDlpJobRequest request = HybridInspectDlpJobRequest.newBuilder()
+   *     .setName(name.toString())
    *     .build();
-   *   while (true) {
-   *     ListStoredInfoTypesResponse response = dlpServiceClient.listStoredInfoTypesCallable().call(request);
-   *     for (StoredInfoType element : response.getStoredInfoTypesList()) {
-   *       // doThingsWith(element);
-   *     }
-   *     String nextPageToken = response.getNextPageToken();
-   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
-   *       request = request.toBuilder().setPageToken(nextPageToken).build();
-   *     } else {
-   *       break;
-   *     }
-   *   }
+   *   ApiFuture<HybridInspectResponse> future = dlpServiceClient.hybridInspectDlpJobCallable().futureCall(request);
+   *   // Do something
+   *   HybridInspectResponse response = future.get();
    * }
    * 
*/ - public final UnaryCallable - listStoredInfoTypesCallable() { - return stub.listStoredInfoTypesCallable(); + public final UnaryCallable + hybridInspectDlpJobCallable() { + return stub.hybridInspectDlpJobCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Deletes a stored infoType. See https://cloud.google.com/dlp/docs/creating-stored-infotypes to - * learn more. + * Finish a running hybrid DlpJob. Triggers the finalization steps and running of any enabled + * actions that have not yet run. Early access feature is in a pre-release state and might change + * or have limited support. For more information, see + * https://cloud.google.com/products#product-launch-stages. * *

Sample code: * *


    * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
-   *   StoredInfoTypeName name = OrganizationStoredInfoTypeName.of("[ORGANIZATION]", "[STORED_INFO_TYPE]");
-   *   DeleteStoredInfoTypeRequest request = DeleteStoredInfoTypeRequest.newBuilder()
+   *   DlpJobName name = DlpJobName.ofProjectDlpJobName("[PROJECT]", "[DLP_JOB]");
+   *   FinishDlpJobRequest request = FinishDlpJobRequest.newBuilder()
    *     .setName(name.toString())
    *     .build();
-   *   dlpServiceClient.deleteStoredInfoType(request);
+   *   dlpServiceClient.finishDlpJob(request);
    * }
    * 
* * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteStoredInfoType(DeleteStoredInfoTypeRequest request) { - deleteStoredInfoTypeCallable().call(request); + public final void finishDlpJob(FinishDlpJobRequest request) { + finishDlpJobCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Deletes a stored infoType. See https://cloud.google.com/dlp/docs/creating-stored-infotypes to - * learn more. + * Finish a running hybrid DlpJob. Triggers the finalization steps and running of any enabled + * actions that have not yet run. Early access feature is in a pre-release state and might change + * or have limited support. For more information, see + * https://cloud.google.com/products#product-launch-stages. * *

Sample code: * *


    * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
-   *   StoredInfoTypeName name = OrganizationStoredInfoTypeName.of("[ORGANIZATION]", "[STORED_INFO_TYPE]");
-   *   DeleteStoredInfoTypeRequest request = DeleteStoredInfoTypeRequest.newBuilder()
+   *   DlpJobName name = DlpJobName.ofProjectDlpJobName("[PROJECT]", "[DLP_JOB]");
+   *   FinishDlpJobRequest request = FinishDlpJobRequest.newBuilder()
    *     .setName(name.toString())
    *     .build();
-   *   ApiFuture<Void> future = dlpServiceClient.deleteStoredInfoTypeCallable().futureCall(request);
+   *   ApiFuture<Void> future = dlpServiceClient.finishDlpJobCallable().futureCall(request);
    *   // Do something
    *   future.get();
    * }
    * 
*/ - public final UnaryCallable deleteStoredInfoTypeCallable() { - return stub.deleteStoredInfoTypeCallable(); + public final UnaryCallable finishDlpJobCallable() { + return stub.finishDlpJobCallable(); } @Override @@ -2237,86 +5032,6 @@ protected ListDeidentifyTemplatesFixedSizeCollection createCollection( } } - public static class ListDlpJobsPagedResponse - extends AbstractPagedListResponse< - ListDlpJobsRequest, - ListDlpJobsResponse, - DlpJob, - ListDlpJobsPage, - ListDlpJobsFixedSizeCollection> { - - public static ApiFuture createAsync( - PageContext context, - ApiFuture futureResponse) { - ApiFuture futurePage = - ListDlpJobsPage.createEmptyPage().createPageAsync(context, futureResponse); - return ApiFutures.transform( - futurePage, - new ApiFunction() { - @Override - public ListDlpJobsPagedResponse apply(ListDlpJobsPage input) { - return new ListDlpJobsPagedResponse(input); - } - }, - MoreExecutors.directExecutor()); - } - - private ListDlpJobsPagedResponse(ListDlpJobsPage page) { - super(page, ListDlpJobsFixedSizeCollection.createEmptyCollection()); - } - } - - public static class ListDlpJobsPage - extends AbstractPage { - - private ListDlpJobsPage( - PageContext context, - ListDlpJobsResponse response) { - super(context, response); - } - - private static ListDlpJobsPage createEmptyPage() { - return new ListDlpJobsPage(null, null); - } - - @Override - protected ListDlpJobsPage createPage( - PageContext context, - ListDlpJobsResponse response) { - return new ListDlpJobsPage(context, response); - } - - @Override - public ApiFuture createPageAsync( - PageContext context, - ApiFuture futureResponse) { - return super.createPageAsync(context, futureResponse); - } - } - - public static class ListDlpJobsFixedSizeCollection - extends AbstractFixedSizeCollection< - ListDlpJobsRequest, - ListDlpJobsResponse, - DlpJob, - ListDlpJobsPage, - ListDlpJobsFixedSizeCollection> { - - private ListDlpJobsFixedSizeCollection(List pages, int collectionSize) { - super(pages, collectionSize); - } - - private static ListDlpJobsFixedSizeCollection createEmptyCollection() { - return new ListDlpJobsFixedSizeCollection(null, 0); - } - - @Override - protected ListDlpJobsFixedSizeCollection createCollection( - List pages, int collectionSize) { - return new ListDlpJobsFixedSizeCollection(pages, collectionSize); - } - } - public static class ListJobTriggersPagedResponse extends AbstractPagedListResponse< ListJobTriggersRequest, @@ -2399,6 +5114,86 @@ protected ListJobTriggersFixedSizeCollection createCollection( } } + public static class ListDlpJobsPagedResponse + extends AbstractPagedListResponse< + ListDlpJobsRequest, + ListDlpJobsResponse, + DlpJob, + ListDlpJobsPage, + ListDlpJobsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListDlpJobsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + new ApiFunction() { + @Override + public ListDlpJobsPagedResponse apply(ListDlpJobsPage input) { + return new ListDlpJobsPagedResponse(input); + } + }, + MoreExecutors.directExecutor()); + } + + private ListDlpJobsPagedResponse(ListDlpJobsPage page) { + super(page, ListDlpJobsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListDlpJobsPage + extends AbstractPage { + + private ListDlpJobsPage( + PageContext context, + ListDlpJobsResponse response) { + super(context, response); + } + + private static ListDlpJobsPage createEmptyPage() { + return new ListDlpJobsPage(null, null); + } + + @Override + protected ListDlpJobsPage createPage( + PageContext context, + ListDlpJobsResponse response) { + return new ListDlpJobsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListDlpJobsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListDlpJobsRequest, + ListDlpJobsResponse, + DlpJob, + ListDlpJobsPage, + ListDlpJobsFixedSizeCollection> { + + private ListDlpJobsFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListDlpJobsFixedSizeCollection createEmptyCollection() { + return new ListDlpJobsFixedSizeCollection(null, 0); + } + + @Override + protected ListDlpJobsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListDlpJobsFixedSizeCollection(pages, collectionSize); + } + } + public static class ListStoredInfoTypesPagedResponse extends AbstractPagedListResponse< ListStoredInfoTypesRequest, diff --git a/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/DlpServiceSettings.java b/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/DlpServiceSettings.java index 03cd1cec..87c9bd0a 100644 --- a/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/DlpServiceSettings.java +++ b/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/DlpServiceSettings.java @@ -102,16 +102,16 @@ *

The builder of this class is recursive, so contained classes are themselves builders. When * build() is called, the tree of builders is called to create the complete settings object. * - *

For example, to set the total timeout of inspectContent to 30 seconds: + *

For example, to set the total timeout of listInfoTypes to 30 seconds: * *

  * 
  * DlpServiceSettings.Builder dlpServiceSettingsBuilder =
  *     DlpServiceSettings.newBuilder();
  * dlpServiceSettingsBuilder
- *     .inspectContentSettings()
+ *     .listInfoTypesSettings()
  *     .setRetrySettings(
- *         dlpServiceSettingsBuilder.inspectContentSettings().getRetrySettings().toBuilder()
+ *         dlpServiceSettingsBuilder.listInfoTypesSettings().getRetrySettings().toBuilder()
  *             .setTotalTimeout(Duration.ofSeconds(30))
  *             .build());
  * DlpServiceSettings dlpServiceSettings = dlpServiceSettingsBuilder.build();
@@ -213,41 +213,25 @@ public UnaryCallSettings deleteInspectTempl
     return ((DlpServiceStubSettings) getStubSettings()).deleteDeidentifyTemplateSettings();
   }
 
-  /** Returns the object with the settings used for calls to createDlpJob. */
-  public UnaryCallSettings createDlpJobSettings() {
-    return ((DlpServiceStubSettings) getStubSettings()).createDlpJobSettings();
-  }
-
-  /** Returns the object with the settings used for calls to listDlpJobs. */
-  public PagedCallSettings
-      listDlpJobsSettings() {
-    return ((DlpServiceStubSettings) getStubSettings()).listDlpJobsSettings();
-  }
-
-  /** Returns the object with the settings used for calls to getDlpJob. */
-  public UnaryCallSettings getDlpJobSettings() {
-    return ((DlpServiceStubSettings) getStubSettings()).getDlpJobSettings();
-  }
-
-  /** Returns the object with the settings used for calls to deleteDlpJob. */
-  public UnaryCallSettings deleteDlpJobSettings() {
-    return ((DlpServiceStubSettings) getStubSettings()).deleteDlpJobSettings();
+  /** Returns the object with the settings used for calls to createJobTrigger. */
+  public UnaryCallSettings createJobTriggerSettings() {
+    return ((DlpServiceStubSettings) getStubSettings()).createJobTriggerSettings();
   }
 
-  /** Returns the object with the settings used for calls to cancelDlpJob. */
-  public UnaryCallSettings cancelDlpJobSettings() {
-    return ((DlpServiceStubSettings) getStubSettings()).cancelDlpJobSettings();
+  /** Returns the object with the settings used for calls to updateJobTrigger. */
+  public UnaryCallSettings updateJobTriggerSettings() {
+    return ((DlpServiceStubSettings) getStubSettings()).updateJobTriggerSettings();
   }
 
-  /** Returns the object with the settings used for calls to finishDlpJob. */
-  public UnaryCallSettings finishDlpJobSettings() {
-    return ((DlpServiceStubSettings) getStubSettings()).finishDlpJobSettings();
+  /** Returns the object with the settings used for calls to hybridInspectJobTrigger. */
+  public UnaryCallSettings
+      hybridInspectJobTriggerSettings() {
+    return ((DlpServiceStubSettings) getStubSettings()).hybridInspectJobTriggerSettings();
   }
 
-  /** Returns the object with the settings used for calls to hybridInspectDlpJob. */
-  public UnaryCallSettings
-      hybridInspectDlpJobSettings() {
-    return ((DlpServiceStubSettings) getStubSettings()).hybridInspectDlpJobSettings();
+  /** Returns the object with the settings used for calls to getJobTrigger. */
+  public UnaryCallSettings getJobTriggerSettings() {
+    return ((DlpServiceStubSettings) getStubSettings()).getJobTriggerSettings();
   }
 
   /** Returns the object with the settings used for calls to listJobTriggers. */
@@ -257,30 +241,35 @@ public UnaryCallSettings finishDlpJobSettings() {
     return ((DlpServiceStubSettings) getStubSettings()).listJobTriggersSettings();
   }
 
-  /** Returns the object with the settings used for calls to getJobTrigger. */
-  public UnaryCallSettings getJobTriggerSettings() {
-    return ((DlpServiceStubSettings) getStubSettings()).getJobTriggerSettings();
-  }
-
   /** Returns the object with the settings used for calls to deleteJobTrigger. */
   public UnaryCallSettings deleteJobTriggerSettings() {
     return ((DlpServiceStubSettings) getStubSettings()).deleteJobTriggerSettings();
   }
 
-  /** Returns the object with the settings used for calls to hybridInspectJobTrigger. */
-  public UnaryCallSettings
-      hybridInspectJobTriggerSettings() {
-    return ((DlpServiceStubSettings) getStubSettings()).hybridInspectJobTriggerSettings();
+  /** Returns the object with the settings used for calls to createDlpJob. */
+  public UnaryCallSettings createDlpJobSettings() {
+    return ((DlpServiceStubSettings) getStubSettings()).createDlpJobSettings();
   }
 
-  /** Returns the object with the settings used for calls to updateJobTrigger. */
-  public UnaryCallSettings updateJobTriggerSettings() {
-    return ((DlpServiceStubSettings) getStubSettings()).updateJobTriggerSettings();
+  /** Returns the object with the settings used for calls to listDlpJobs. */
+  public PagedCallSettings
+      listDlpJobsSettings() {
+    return ((DlpServiceStubSettings) getStubSettings()).listDlpJobsSettings();
   }
 
-  /** Returns the object with the settings used for calls to createJobTrigger. */
-  public UnaryCallSettings createJobTriggerSettings() {
-    return ((DlpServiceStubSettings) getStubSettings()).createJobTriggerSettings();
+  /** Returns the object with the settings used for calls to getDlpJob. */
+  public UnaryCallSettings getDlpJobSettings() {
+    return ((DlpServiceStubSettings) getStubSettings()).getDlpJobSettings();
+  }
+
+  /** Returns the object with the settings used for calls to deleteDlpJob. */
+  public UnaryCallSettings deleteDlpJobSettings() {
+    return ((DlpServiceStubSettings) getStubSettings()).deleteDlpJobSettings();
+  }
+
+  /** Returns the object with the settings used for calls to cancelDlpJob. */
+  public UnaryCallSettings cancelDlpJobSettings() {
+    return ((DlpServiceStubSettings) getStubSettings()).cancelDlpJobSettings();
   }
 
   /** Returns the object with the settings used for calls to createStoredInfoType. */
@@ -312,6 +301,17 @@ public UnaryCallSettings deleteStoredInfoTyp
     return ((DlpServiceStubSettings) getStubSettings()).deleteStoredInfoTypeSettings();
   }
 
+  /** Returns the object with the settings used for calls to hybridInspectDlpJob. */
+  public UnaryCallSettings
+      hybridInspectDlpJobSettings() {
+    return ((DlpServiceStubSettings) getStubSettings()).hybridInspectDlpJobSettings();
+  }
+
+  /** Returns the object with the settings used for calls to finishDlpJob. */
+  public UnaryCallSettings finishDlpJobSettings() {
+    return ((DlpServiceStubSettings) getStubSettings()).finishDlpJobSettings();
+  }
+
   public static final DlpServiceSettings create(DlpServiceStubSettings stub) throws IOException {
     return new DlpServiceSettings.Builder(stub.toBuilder()).build();
   }
@@ -504,6 +504,41 @@ public Builder applyToAllUnaryMethods(
       return getStubSettingsBuilder().deleteDeidentifyTemplateSettings();
     }
 
+    /** Returns the builder for the settings used for calls to createJobTrigger. */
+    public UnaryCallSettings.Builder
+        createJobTriggerSettings() {
+      return getStubSettingsBuilder().createJobTriggerSettings();
+    }
+
+    /** Returns the builder for the settings used for calls to updateJobTrigger. */
+    public UnaryCallSettings.Builder
+        updateJobTriggerSettings() {
+      return getStubSettingsBuilder().updateJobTriggerSettings();
+    }
+
+    /** Returns the builder for the settings used for calls to hybridInspectJobTrigger. */
+    public UnaryCallSettings.Builder
+        hybridInspectJobTriggerSettings() {
+      return getStubSettingsBuilder().hybridInspectJobTriggerSettings();
+    }
+
+    /** Returns the builder for the settings used for calls to getJobTrigger. */
+    public UnaryCallSettings.Builder getJobTriggerSettings() {
+      return getStubSettingsBuilder().getJobTriggerSettings();
+    }
+
+    /** Returns the builder for the settings used for calls to listJobTriggers. */
+    public PagedCallSettings.Builder<
+            ListJobTriggersRequest, ListJobTriggersResponse, ListJobTriggersPagedResponse>
+        listJobTriggersSettings() {
+      return getStubSettingsBuilder().listJobTriggersSettings();
+    }
+
+    /** Returns the builder for the settings used for calls to deleteJobTrigger. */
+    public UnaryCallSettings.Builder deleteJobTriggerSettings() {
+      return getStubSettingsBuilder().deleteJobTriggerSettings();
+    }
+
     /** Returns the builder for the settings used for calls to createDlpJob. */
     public UnaryCallSettings.Builder createDlpJobSettings() {
       return getStubSettingsBuilder().createDlpJobSettings();
@@ -531,52 +566,6 @@ public UnaryCallSettings.Builder cancelDlpJobSetting
       return getStubSettingsBuilder().cancelDlpJobSettings();
     }
 
-    /** Returns the builder for the settings used for calls to finishDlpJob. */
-    public UnaryCallSettings.Builder finishDlpJobSettings() {
-      return getStubSettingsBuilder().finishDlpJobSettings();
-    }
-
-    /** Returns the builder for the settings used for calls to hybridInspectDlpJob. */
-    public UnaryCallSettings.Builder
-        hybridInspectDlpJobSettings() {
-      return getStubSettingsBuilder().hybridInspectDlpJobSettings();
-    }
-
-    /** Returns the builder for the settings used for calls to listJobTriggers. */
-    public PagedCallSettings.Builder<
-            ListJobTriggersRequest, ListJobTriggersResponse, ListJobTriggersPagedResponse>
-        listJobTriggersSettings() {
-      return getStubSettingsBuilder().listJobTriggersSettings();
-    }
-
-    /** Returns the builder for the settings used for calls to getJobTrigger. */
-    public UnaryCallSettings.Builder getJobTriggerSettings() {
-      return getStubSettingsBuilder().getJobTriggerSettings();
-    }
-
-    /** Returns the builder for the settings used for calls to deleteJobTrigger. */
-    public UnaryCallSettings.Builder deleteJobTriggerSettings() {
-      return getStubSettingsBuilder().deleteJobTriggerSettings();
-    }
-
-    /** Returns the builder for the settings used for calls to hybridInspectJobTrigger. */
-    public UnaryCallSettings.Builder
-        hybridInspectJobTriggerSettings() {
-      return getStubSettingsBuilder().hybridInspectJobTriggerSettings();
-    }
-
-    /** Returns the builder for the settings used for calls to updateJobTrigger. */
-    public UnaryCallSettings.Builder
-        updateJobTriggerSettings() {
-      return getStubSettingsBuilder().updateJobTriggerSettings();
-    }
-
-    /** Returns the builder for the settings used for calls to createJobTrigger. */
-    public UnaryCallSettings.Builder
-        createJobTriggerSettings() {
-      return getStubSettingsBuilder().createJobTriggerSettings();
-    }
-
     /** Returns the builder for the settings used for calls to createStoredInfoType. */
     public UnaryCallSettings.Builder
         createStoredInfoTypeSettings() {
@@ -610,6 +599,17 @@ public UnaryCallSettings.Builder deleteJobTrigge
       return getStubSettingsBuilder().deleteStoredInfoTypeSettings();
     }
 
+    /** Returns the builder for the settings used for calls to hybridInspectDlpJob. */
+    public UnaryCallSettings.Builder
+        hybridInspectDlpJobSettings() {
+      return getStubSettingsBuilder().hybridInspectDlpJobSettings();
+    }
+
+    /** Returns the builder for the settings used for calls to finishDlpJob. */
+    public UnaryCallSettings.Builder finishDlpJobSettings() {
+      return getStubSettingsBuilder().finishDlpJobSettings();
+    }
+
     @Override
     public DlpServiceSettings build() throws IOException {
       return new DlpServiceSettings(this);
diff --git a/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/package-info.java b/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/package-info.java
index 3772b991..acfea191 100644
--- a/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/package-info.java
+++ b/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/package-info.java
@@ -34,11 +34,8 @@
  * 
  * 
  * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
- *   ProjectName parent = ProjectName.of("[PROJECT]");
- *   InspectContentRequest request = InspectContentRequest.newBuilder()
- *     .setParent(parent.toString())
- *     .build();
- *   InspectContentResponse response = dlpServiceClient.inspectContent(request);
+ *   String locationId = "";
+ *   ListInfoTypesResponse response = dlpServiceClient.listInfoTypes(locationId);
  * }
  * 
  * 
diff --git a/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/stub/DlpServiceStub.java b/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/stub/DlpServiceStub.java index 5726a54c..1c964edf 100644 --- a/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/stub/DlpServiceStub.java +++ b/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/stub/DlpServiceStub.java @@ -166,37 +166,21 @@ public UnaryCallable deleteDeidentifyTem throw new UnsupportedOperationException("Not implemented: deleteDeidentifyTemplateCallable()"); } - public UnaryCallable createDlpJobCallable() { - throw new UnsupportedOperationException("Not implemented: createDlpJobCallable()"); - } - - public UnaryCallable listDlpJobsPagedCallable() { - throw new UnsupportedOperationException("Not implemented: listDlpJobsPagedCallable()"); - } - - public UnaryCallable listDlpJobsCallable() { - throw new UnsupportedOperationException("Not implemented: listDlpJobsCallable()"); - } - - public UnaryCallable getDlpJobCallable() { - throw new UnsupportedOperationException("Not implemented: getDlpJobCallable()"); - } - - public UnaryCallable deleteDlpJobCallable() { - throw new UnsupportedOperationException("Not implemented: deleteDlpJobCallable()"); + public UnaryCallable createJobTriggerCallable() { + throw new UnsupportedOperationException("Not implemented: createJobTriggerCallable()"); } - public UnaryCallable cancelDlpJobCallable() { - throw new UnsupportedOperationException("Not implemented: cancelDlpJobCallable()"); + public UnaryCallable updateJobTriggerCallable() { + throw new UnsupportedOperationException("Not implemented: updateJobTriggerCallable()"); } - public UnaryCallable finishDlpJobCallable() { - throw new UnsupportedOperationException("Not implemented: finishDlpJobCallable()"); + public UnaryCallable + hybridInspectJobTriggerCallable() { + throw new UnsupportedOperationException("Not implemented: hybridInspectJobTriggerCallable()"); } - public UnaryCallable - hybridInspectDlpJobCallable() { - throw new UnsupportedOperationException("Not implemented: hybridInspectDlpJobCallable()"); + public UnaryCallable getJobTriggerCallable() { + throw new UnsupportedOperationException("Not implemented: getJobTriggerCallable()"); } public UnaryCallable @@ -208,25 +192,32 @@ public UnaryCallable listJobTri throw new UnsupportedOperationException("Not implemented: listJobTriggersCallable()"); } - public UnaryCallable getJobTriggerCallable() { - throw new UnsupportedOperationException("Not implemented: getJobTriggerCallable()"); - } - public UnaryCallable deleteJobTriggerCallable() { throw new UnsupportedOperationException("Not implemented: deleteJobTriggerCallable()"); } - public UnaryCallable - hybridInspectJobTriggerCallable() { - throw new UnsupportedOperationException("Not implemented: hybridInspectJobTriggerCallable()"); + public UnaryCallable createDlpJobCallable() { + throw new UnsupportedOperationException("Not implemented: createDlpJobCallable()"); } - public UnaryCallable updateJobTriggerCallable() { - throw new UnsupportedOperationException("Not implemented: updateJobTriggerCallable()"); + public UnaryCallable listDlpJobsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listDlpJobsPagedCallable()"); } - public UnaryCallable createJobTriggerCallable() { - throw new UnsupportedOperationException("Not implemented: createJobTriggerCallable()"); + public UnaryCallable listDlpJobsCallable() { + throw new UnsupportedOperationException("Not implemented: listDlpJobsCallable()"); + } + + public UnaryCallable getDlpJobCallable() { + throw new UnsupportedOperationException("Not implemented: getDlpJobCallable()"); + } + + public UnaryCallable deleteDlpJobCallable() { + throw new UnsupportedOperationException("Not implemented: deleteDlpJobCallable()"); + } + + public UnaryCallable cancelDlpJobCallable() { + throw new UnsupportedOperationException("Not implemented: cancelDlpJobCallable()"); } public UnaryCallable createStoredInfoTypeCallable() { @@ -255,6 +246,15 @@ public UnaryCallable deleteStoredInfoTypeCal throw new UnsupportedOperationException("Not implemented: deleteStoredInfoTypeCallable()"); } + public UnaryCallable + hybridInspectDlpJobCallable() { + throw new UnsupportedOperationException("Not implemented: hybridInspectDlpJobCallable()"); + } + + public UnaryCallable finishDlpJobCallable() { + throw new UnsupportedOperationException("Not implemented: finishDlpJobCallable()"); + } + @Override public abstract void close(); } diff --git a/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/stub/DlpServiceStubSettings.java b/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/stub/DlpServiceStubSettings.java index 2176d619..c1a21fc7 100644 --- a/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/stub/DlpServiceStubSettings.java +++ b/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/stub/DlpServiceStubSettings.java @@ -117,16 +117,16 @@ *

The builder of this class is recursive, so contained classes are themselves builders. When * build() is called, the tree of builders is called to create the complete settings object. * - *

For example, to set the total timeout of inspectContent to 30 seconds: + *

For example, to set the total timeout of listInfoTypes to 30 seconds: * *

  * 
  * DlpServiceStubSettings.Builder dlpServiceSettingsBuilder =
  *     DlpServiceStubSettings.newBuilder();
  * dlpServiceSettingsBuilder
- *     .inspectContentSettings()
+ *     .listInfoTypesSettings()
  *     .setRetrySettings(
- *         dlpServiceSettingsBuilder.inspectContentSettings().getRetrySettings().toBuilder()
+ *         dlpServiceSettingsBuilder.listInfoTypesSettings().getRetrySettings().toBuilder()
  *             .setTotalTimeout(Duration.ofSeconds(30))
  *             .build());
  * DlpServiceStubSettings dlpServiceSettings = dlpServiceSettingsBuilder.build();
@@ -175,24 +175,21 @@ public class DlpServiceStubSettings extends StubSettings
       listDeidentifyTemplatesSettings;
   private final UnaryCallSettings
       deleteDeidentifyTemplateSettings;
+  private final UnaryCallSettings createJobTriggerSettings;
+  private final UnaryCallSettings updateJobTriggerSettings;
+  private final UnaryCallSettings
+      hybridInspectJobTriggerSettings;
+  private final UnaryCallSettings getJobTriggerSettings;
+  private final PagedCallSettings<
+          ListJobTriggersRequest, ListJobTriggersResponse, ListJobTriggersPagedResponse>
+      listJobTriggersSettings;
+  private final UnaryCallSettings deleteJobTriggerSettings;
   private final UnaryCallSettings createDlpJobSettings;
   private final PagedCallSettings
       listDlpJobsSettings;
   private final UnaryCallSettings getDlpJobSettings;
   private final UnaryCallSettings deleteDlpJobSettings;
   private final UnaryCallSettings cancelDlpJobSettings;
-  private final UnaryCallSettings finishDlpJobSettings;
-  private final UnaryCallSettings
-      hybridInspectDlpJobSettings;
-  private final PagedCallSettings<
-          ListJobTriggersRequest, ListJobTriggersResponse, ListJobTriggersPagedResponse>
-      listJobTriggersSettings;
-  private final UnaryCallSettings getJobTriggerSettings;
-  private final UnaryCallSettings deleteJobTriggerSettings;
-  private final UnaryCallSettings
-      hybridInspectJobTriggerSettings;
-  private final UnaryCallSettings updateJobTriggerSettings;
-  private final UnaryCallSettings createJobTriggerSettings;
   private final UnaryCallSettings
       createStoredInfoTypeSettings;
   private final UnaryCallSettings
@@ -203,6 +200,9 @@ public class DlpServiceStubSettings extends StubSettings
           ListStoredInfoTypesRequest, ListStoredInfoTypesResponse, ListStoredInfoTypesPagedResponse>
       listStoredInfoTypesSettings;
   private final UnaryCallSettings deleteStoredInfoTypeSettings;
+  private final UnaryCallSettings
+      hybridInspectDlpJobSettings;
+  private final UnaryCallSettings finishDlpJobSettings;
 
   /** Returns the object with the settings used for calls to inspectContent. */
   public UnaryCallSettings inspectContentSettings() {
@@ -296,41 +296,25 @@ public UnaryCallSettings deleteInspectTempl
     return deleteDeidentifyTemplateSettings;
   }
 
-  /** Returns the object with the settings used for calls to createDlpJob. */
-  public UnaryCallSettings createDlpJobSettings() {
-    return createDlpJobSettings;
-  }
-
-  /** Returns the object with the settings used for calls to listDlpJobs. */
-  public PagedCallSettings
-      listDlpJobsSettings() {
-    return listDlpJobsSettings;
-  }
-
-  /** Returns the object with the settings used for calls to getDlpJob. */
-  public UnaryCallSettings getDlpJobSettings() {
-    return getDlpJobSettings;
-  }
-
-  /** Returns the object with the settings used for calls to deleteDlpJob. */
-  public UnaryCallSettings deleteDlpJobSettings() {
-    return deleteDlpJobSettings;
+  /** Returns the object with the settings used for calls to createJobTrigger. */
+  public UnaryCallSettings createJobTriggerSettings() {
+    return createJobTriggerSettings;
   }
 
-  /** Returns the object with the settings used for calls to cancelDlpJob. */
-  public UnaryCallSettings cancelDlpJobSettings() {
-    return cancelDlpJobSettings;
+  /** Returns the object with the settings used for calls to updateJobTrigger. */
+  public UnaryCallSettings updateJobTriggerSettings() {
+    return updateJobTriggerSettings;
   }
 
-  /** Returns the object with the settings used for calls to finishDlpJob. */
-  public UnaryCallSettings finishDlpJobSettings() {
-    return finishDlpJobSettings;
+  /** Returns the object with the settings used for calls to hybridInspectJobTrigger. */
+  public UnaryCallSettings
+      hybridInspectJobTriggerSettings() {
+    return hybridInspectJobTriggerSettings;
   }
 
-  /** Returns the object with the settings used for calls to hybridInspectDlpJob. */
-  public UnaryCallSettings
-      hybridInspectDlpJobSettings() {
-    return hybridInspectDlpJobSettings;
+  /** Returns the object with the settings used for calls to getJobTrigger. */
+  public UnaryCallSettings getJobTriggerSettings() {
+    return getJobTriggerSettings;
   }
 
   /** Returns the object with the settings used for calls to listJobTriggers. */
@@ -340,30 +324,35 @@ public UnaryCallSettings finishDlpJobSettings() {
     return listJobTriggersSettings;
   }
 
-  /** Returns the object with the settings used for calls to getJobTrigger. */
-  public UnaryCallSettings getJobTriggerSettings() {
-    return getJobTriggerSettings;
-  }
-
   /** Returns the object with the settings used for calls to deleteJobTrigger. */
   public UnaryCallSettings deleteJobTriggerSettings() {
     return deleteJobTriggerSettings;
   }
 
-  /** Returns the object with the settings used for calls to hybridInspectJobTrigger. */
-  public UnaryCallSettings
-      hybridInspectJobTriggerSettings() {
-    return hybridInspectJobTriggerSettings;
+  /** Returns the object with the settings used for calls to createDlpJob. */
+  public UnaryCallSettings createDlpJobSettings() {
+    return createDlpJobSettings;
   }
 
-  /** Returns the object with the settings used for calls to updateJobTrigger. */
-  public UnaryCallSettings updateJobTriggerSettings() {
-    return updateJobTriggerSettings;
+  /** Returns the object with the settings used for calls to listDlpJobs. */
+  public PagedCallSettings
+      listDlpJobsSettings() {
+    return listDlpJobsSettings;
   }
 
-  /** Returns the object with the settings used for calls to createJobTrigger. */
-  public UnaryCallSettings createJobTriggerSettings() {
-    return createJobTriggerSettings;
+  /** Returns the object with the settings used for calls to getDlpJob. */
+  public UnaryCallSettings getDlpJobSettings() {
+    return getDlpJobSettings;
+  }
+
+  /** Returns the object with the settings used for calls to deleteDlpJob. */
+  public UnaryCallSettings deleteDlpJobSettings() {
+    return deleteDlpJobSettings;
+  }
+
+  /** Returns the object with the settings used for calls to cancelDlpJob. */
+  public UnaryCallSettings cancelDlpJobSettings() {
+    return cancelDlpJobSettings;
   }
 
   /** Returns the object with the settings used for calls to createStoredInfoType. */
@@ -395,6 +384,17 @@ public UnaryCallSettings deleteStoredInfoTyp
     return deleteStoredInfoTypeSettings;
   }
 
+  /** Returns the object with the settings used for calls to hybridInspectDlpJob. */
+  public UnaryCallSettings
+      hybridInspectDlpJobSettings() {
+    return hybridInspectDlpJobSettings;
+  }
+
+  /** Returns the object with the settings used for calls to finishDlpJob. */
+  public UnaryCallSettings finishDlpJobSettings() {
+    return finishDlpJobSettings;
+  }
+
   @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
   public DlpServiceStub createStub() throws IOException {
     if (getTransportChannelProvider()
@@ -479,24 +479,24 @@ protected DlpServiceStubSettings(Builder settingsBuilder) throws IOException {
     getDeidentifyTemplateSettings = settingsBuilder.getDeidentifyTemplateSettings().build();
     listDeidentifyTemplatesSettings = settingsBuilder.listDeidentifyTemplatesSettings().build();
     deleteDeidentifyTemplateSettings = settingsBuilder.deleteDeidentifyTemplateSettings().build();
+    createJobTriggerSettings = settingsBuilder.createJobTriggerSettings().build();
+    updateJobTriggerSettings = settingsBuilder.updateJobTriggerSettings().build();
+    hybridInspectJobTriggerSettings = settingsBuilder.hybridInspectJobTriggerSettings().build();
+    getJobTriggerSettings = settingsBuilder.getJobTriggerSettings().build();
+    listJobTriggersSettings = settingsBuilder.listJobTriggersSettings().build();
+    deleteJobTriggerSettings = settingsBuilder.deleteJobTriggerSettings().build();
     createDlpJobSettings = settingsBuilder.createDlpJobSettings().build();
     listDlpJobsSettings = settingsBuilder.listDlpJobsSettings().build();
     getDlpJobSettings = settingsBuilder.getDlpJobSettings().build();
     deleteDlpJobSettings = settingsBuilder.deleteDlpJobSettings().build();
     cancelDlpJobSettings = settingsBuilder.cancelDlpJobSettings().build();
-    finishDlpJobSettings = settingsBuilder.finishDlpJobSettings().build();
-    hybridInspectDlpJobSettings = settingsBuilder.hybridInspectDlpJobSettings().build();
-    listJobTriggersSettings = settingsBuilder.listJobTriggersSettings().build();
-    getJobTriggerSettings = settingsBuilder.getJobTriggerSettings().build();
-    deleteJobTriggerSettings = settingsBuilder.deleteJobTriggerSettings().build();
-    hybridInspectJobTriggerSettings = settingsBuilder.hybridInspectJobTriggerSettings().build();
-    updateJobTriggerSettings = settingsBuilder.updateJobTriggerSettings().build();
-    createJobTriggerSettings = settingsBuilder.createJobTriggerSettings().build();
     createStoredInfoTypeSettings = settingsBuilder.createStoredInfoTypeSettings().build();
     updateStoredInfoTypeSettings = settingsBuilder.updateStoredInfoTypeSettings().build();
     getStoredInfoTypeSettings = settingsBuilder.getStoredInfoTypeSettings().build();
     listStoredInfoTypesSettings = settingsBuilder.listStoredInfoTypesSettings().build();
     deleteStoredInfoTypeSettings = settingsBuilder.deleteStoredInfoTypeSettings().build();
+    hybridInspectDlpJobSettings = settingsBuilder.hybridInspectDlpJobSettings().build();
+    finishDlpJobSettings = settingsBuilder.finishDlpJobSettings().build();
   }
 
   private static final PagedListDescriptor<
@@ -585,78 +585,78 @@ public Iterable extractResources(
             }
           };
 
-  private static final PagedListDescriptor
-      LIST_DLP_JOBS_PAGE_STR_DESC =
-          new PagedListDescriptor() {
+  private static final PagedListDescriptor<
+          ListJobTriggersRequest, ListJobTriggersResponse, JobTrigger>
+      LIST_JOB_TRIGGERS_PAGE_STR_DESC =
+          new PagedListDescriptor() {
             @Override
             public String emptyToken() {
               return "";
             }
 
             @Override
-            public ListDlpJobsRequest injectToken(ListDlpJobsRequest payload, String token) {
-              return ListDlpJobsRequest.newBuilder(payload).setPageToken(token).build();
+            public ListJobTriggersRequest injectToken(
+                ListJobTriggersRequest payload, String token) {
+              return ListJobTriggersRequest.newBuilder(payload).setPageToken(token).build();
             }
 
             @Override
-            public ListDlpJobsRequest injectPageSize(ListDlpJobsRequest payload, int pageSize) {
-              return ListDlpJobsRequest.newBuilder(payload).setPageSize(pageSize).build();
+            public ListJobTriggersRequest injectPageSize(
+                ListJobTriggersRequest payload, int pageSize) {
+              return ListJobTriggersRequest.newBuilder(payload).setPageSize(pageSize).build();
             }
 
             @Override
-            public Integer extractPageSize(ListDlpJobsRequest payload) {
+            public Integer extractPageSize(ListJobTriggersRequest payload) {
               return payload.getPageSize();
             }
 
             @Override
-            public String extractNextToken(ListDlpJobsResponse payload) {
+            public String extractNextToken(ListJobTriggersResponse payload) {
               return payload.getNextPageToken();
             }
 
             @Override
-            public Iterable extractResources(ListDlpJobsResponse payload) {
-              return payload.getJobsList() != null
-                  ? payload.getJobsList()
-                  : ImmutableList.of();
+            public Iterable extractResources(ListJobTriggersResponse payload) {
+              return payload.getJobTriggersList() != null
+                  ? payload.getJobTriggersList()
+                  : ImmutableList.of();
             }
           };
 
-  private static final PagedListDescriptor<
-          ListJobTriggersRequest, ListJobTriggersResponse, JobTrigger>
-      LIST_JOB_TRIGGERS_PAGE_STR_DESC =
-          new PagedListDescriptor() {
+  private static final PagedListDescriptor
+      LIST_DLP_JOBS_PAGE_STR_DESC =
+          new PagedListDescriptor() {
             @Override
             public String emptyToken() {
               return "";
             }
 
             @Override
-            public ListJobTriggersRequest injectToken(
-                ListJobTriggersRequest payload, String token) {
-              return ListJobTriggersRequest.newBuilder(payload).setPageToken(token).build();
+            public ListDlpJobsRequest injectToken(ListDlpJobsRequest payload, String token) {
+              return ListDlpJobsRequest.newBuilder(payload).setPageToken(token).build();
             }
 
             @Override
-            public ListJobTriggersRequest injectPageSize(
-                ListJobTriggersRequest payload, int pageSize) {
-              return ListJobTriggersRequest.newBuilder(payload).setPageSize(pageSize).build();
+            public ListDlpJobsRequest injectPageSize(ListDlpJobsRequest payload, int pageSize) {
+              return ListDlpJobsRequest.newBuilder(payload).setPageSize(pageSize).build();
             }
 
             @Override
-            public Integer extractPageSize(ListJobTriggersRequest payload) {
+            public Integer extractPageSize(ListDlpJobsRequest payload) {
               return payload.getPageSize();
             }
 
             @Override
-            public String extractNextToken(ListJobTriggersResponse payload) {
+            public String extractNextToken(ListDlpJobsResponse payload) {
               return payload.getNextPageToken();
             }
 
             @Override
-            public Iterable extractResources(ListJobTriggersResponse payload) {
-              return payload.getJobTriggersList() != null
-                  ? payload.getJobTriggersList()
-                  : ImmutableList.of();
+            public Iterable extractResources(ListDlpJobsResponse payload) {
+              return payload.getJobsList() != null
+                  ? payload.getJobsList()
+                  : ImmutableList.of();
             }
           };
 
@@ -751,23 +751,6 @@ public ApiFuture getFuturePagedResponse(
             }
           };
 
-  private static final PagedListResponseFactory<
-          ListDlpJobsRequest, ListDlpJobsResponse, ListDlpJobsPagedResponse>
-      LIST_DLP_JOBS_PAGE_STR_FACT =
-          new PagedListResponseFactory<
-              ListDlpJobsRequest, ListDlpJobsResponse, ListDlpJobsPagedResponse>() {
-            @Override
-            public ApiFuture getFuturePagedResponse(
-                UnaryCallable callable,
-                ListDlpJobsRequest request,
-                ApiCallContext context,
-                ApiFuture futureResponse) {
-              PageContext pageContext =
-                  PageContext.create(callable, LIST_DLP_JOBS_PAGE_STR_DESC, request, context);
-              return ListDlpJobsPagedResponse.createAsync(pageContext, futureResponse);
-            }
-          };
-
   private static final PagedListResponseFactory<
           ListJobTriggersRequest, ListJobTriggersResponse, ListJobTriggersPagedResponse>
       LIST_JOB_TRIGGERS_PAGE_STR_FACT =
@@ -785,6 +768,23 @@ public ApiFuture getFuturePagedResponse(
             }
           };
 
+  private static final PagedListResponseFactory<
+          ListDlpJobsRequest, ListDlpJobsResponse, ListDlpJobsPagedResponse>
+      LIST_DLP_JOBS_PAGE_STR_FACT =
+          new PagedListResponseFactory<
+              ListDlpJobsRequest, ListDlpJobsResponse, ListDlpJobsPagedResponse>() {
+            @Override
+            public ApiFuture getFuturePagedResponse(
+                UnaryCallable callable,
+                ListDlpJobsRequest request,
+                ApiCallContext context,
+                ApiFuture futureResponse) {
+              PageContext pageContext =
+                  PageContext.create(callable, LIST_DLP_JOBS_PAGE_STR_DESC, request, context);
+              return ListDlpJobsPagedResponse.createAsync(pageContext, futureResponse);
+            }
+          };
+
   private static final PagedListResponseFactory<
           ListStoredInfoTypesRequest, ListStoredInfoTypesResponse, ListStoredInfoTypesPagedResponse>
       LIST_STORED_INFO_TYPES_PAGE_STR_FACT =
@@ -846,6 +846,18 @@ public static class Builder extends StubSettings.Builder
         deleteDeidentifyTemplateSettings;
+    private final UnaryCallSettings.Builder
+        createJobTriggerSettings;
+    private final UnaryCallSettings.Builder
+        updateJobTriggerSettings;
+    private final UnaryCallSettings.Builder
+        hybridInspectJobTriggerSettings;
+    private final UnaryCallSettings.Builder getJobTriggerSettings;
+    private final PagedCallSettings.Builder<
+            ListJobTriggersRequest, ListJobTriggersResponse, ListJobTriggersPagedResponse>
+        listJobTriggersSettings;
+    private final UnaryCallSettings.Builder
+        deleteJobTriggerSettings;
     private final UnaryCallSettings.Builder createDlpJobSettings;
     private final PagedCallSettings.Builder<
             ListDlpJobsRequest, ListDlpJobsResponse, ListDlpJobsPagedResponse>
@@ -853,21 +865,6 @@ public static class Builder extends StubSettings.Builder getDlpJobSettings;
     private final UnaryCallSettings.Builder deleteDlpJobSettings;
     private final UnaryCallSettings.Builder cancelDlpJobSettings;
-    private final UnaryCallSettings.Builder finishDlpJobSettings;
-    private final UnaryCallSettings.Builder
-        hybridInspectDlpJobSettings;
-    private final PagedCallSettings.Builder<
-            ListJobTriggersRequest, ListJobTriggersResponse, ListJobTriggersPagedResponse>
-        listJobTriggersSettings;
-    private final UnaryCallSettings.Builder getJobTriggerSettings;
-    private final UnaryCallSettings.Builder
-        deleteJobTriggerSettings;
-    private final UnaryCallSettings.Builder
-        hybridInspectJobTriggerSettings;
-    private final UnaryCallSettings.Builder
-        updateJobTriggerSettings;
-    private final UnaryCallSettings.Builder
-        createJobTriggerSettings;
     private final UnaryCallSettings.Builder
         createStoredInfoTypeSettings;
     private final UnaryCallSettings.Builder
@@ -881,6 +878,9 @@ public static class Builder extends StubSettings.Builder
         deleteStoredInfoTypeSettings;
+    private final UnaryCallSettings.Builder
+        hybridInspectDlpJobSettings;
+    private final UnaryCallSettings.Builder finishDlpJobSettings;
 
     private static final ImmutableMap>
         RETRYABLE_CODE_DEFINITIONS;
@@ -955,31 +955,27 @@ protected Builder(ClientContext clientContext) {
 
       deleteDeidentifyTemplateSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
-      createDlpJobSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
-
-      listDlpJobsSettings = PagedCallSettings.newBuilder(LIST_DLP_JOBS_PAGE_STR_FACT);
-
-      getDlpJobSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
-
-      deleteDlpJobSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+      createJobTriggerSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
-      cancelDlpJobSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+      updateJobTriggerSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
-      finishDlpJobSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+      hybridInspectJobTriggerSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
-      hybridInspectDlpJobSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+      getJobTriggerSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
       listJobTriggersSettings = PagedCallSettings.newBuilder(LIST_JOB_TRIGGERS_PAGE_STR_FACT);
 
-      getJobTriggerSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
-
       deleteJobTriggerSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
-      hybridInspectJobTriggerSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+      createDlpJobSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
-      updateJobTriggerSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+      listDlpJobsSettings = PagedCallSettings.newBuilder(LIST_DLP_JOBS_PAGE_STR_FACT);
 
-      createJobTriggerSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+      getDlpJobSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+
+      deleteDlpJobSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+
+      cancelDlpJobSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
       createStoredInfoTypeSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
@@ -992,6 +988,10 @@ protected Builder(ClientContext clientContext) {
 
       deleteStoredInfoTypeSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      hybridInspectDlpJobSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+
+      finishDlpJobSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+
       unaryMethodSettingsBuilders =
           ImmutableList.>of(
               inspectContentSettings,
@@ -1009,24 +1009,24 @@ protected Builder(ClientContext clientContext) {
               getDeidentifyTemplateSettings,
               listDeidentifyTemplatesSettings,
               deleteDeidentifyTemplateSettings,
+              createJobTriggerSettings,
+              updateJobTriggerSettings,
+              hybridInspectJobTriggerSettings,
+              getJobTriggerSettings,
+              listJobTriggersSettings,
+              deleteJobTriggerSettings,
               createDlpJobSettings,
               listDlpJobsSettings,
               getDlpJobSettings,
               deleteDlpJobSettings,
               cancelDlpJobSettings,
-              finishDlpJobSettings,
-              hybridInspectDlpJobSettings,
-              listJobTriggersSettings,
-              getJobTriggerSettings,
-              deleteJobTriggerSettings,
-              hybridInspectJobTriggerSettings,
-              updateJobTriggerSettings,
-              createJobTriggerSettings,
               createStoredInfoTypeSettings,
               updateStoredInfoTypeSettings,
               getStoredInfoTypeSettings,
               listStoredInfoTypesSettings,
-              deleteStoredInfoTypeSettings);
+              deleteStoredInfoTypeSettings,
+              hybridInspectDlpJobSettings,
+              finishDlpJobSettings);
 
       initDefaults(this);
     }
@@ -1044,22 +1044,22 @@ private static Builder initDefaults(Builder builder) {
 
       builder
           .inspectContentSettings()
-          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent"))
           .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));
 
       builder
           .redactImageSettings()
-          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent"))
           .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));
 
       builder
           .deidentifyContentSettings()
-          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent"))
           .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));
 
       builder
           .reidentifyContentSettings()
-          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent"))
           .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));
 
       builder
@@ -1089,7 +1089,7 @@ private static Builder initDefaults(Builder builder) {
 
       builder
           .deleteInspectTemplateSettings()
-          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent"))
           .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));
 
       builder
@@ -1114,71 +1114,61 @@ private static Builder initDefaults(Builder builder) {
 
       builder
           .deleteDeidentifyTemplateSettings()
-          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent"))
           .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));
 
       builder
-          .createDlpJobSettings()
+          .createJobTriggerSettings()
           .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent"))
           .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));
 
       builder
-          .listDlpJobsSettings()
-          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+          .updateJobTriggerSettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent"))
           .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));
 
       builder
-          .getDlpJobSettings()
-          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+          .hybridInspectJobTriggerSettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent"))
           .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));
 
       builder
-          .deleteDlpJobSettings()
+          .getJobTriggerSettings()
           .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
           .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));
 
       builder
-          .cancelDlpJobSettings()
-          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent"))
+          .listJobTriggersSettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
           .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));
 
       builder
-          .finishDlpJobSettings()
+          .deleteJobTriggerSettings()
           .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent"))
           .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));
 
       builder
-          .hybridInspectDlpJobSettings()
+          .createDlpJobSettings()
           .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent"))
           .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));
 
       builder
-          .listJobTriggersSettings()
-          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
-          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));
-
-      builder
-          .getJobTriggerSettings()
+          .listDlpJobsSettings()
           .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
           .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));
 
       builder
-          .deleteJobTriggerSettings()
+          .getDlpJobSettings()
           .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
           .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));
 
       builder
-          .hybridInspectJobTriggerSettings()
-          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent"))
-          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));
-
-      builder
-          .updateJobTriggerSettings()
+          .deleteDlpJobSettings()
           .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent"))
           .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));
 
       builder
-          .createJobTriggerSettings()
+          .cancelDlpJobSettings()
           .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent"))
           .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));
 
@@ -1204,7 +1194,17 @@ private static Builder initDefaults(Builder builder) {
 
       builder
           .deleteStoredInfoTypeSettings()
-          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));
+
+      builder
+          .hybridInspectDlpJobSettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));
+
+      builder
+          .finishDlpJobSettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent"))
           .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));
 
       return builder;
@@ -1228,24 +1228,24 @@ protected Builder(DlpServiceStubSettings settings) {
       getDeidentifyTemplateSettings = settings.getDeidentifyTemplateSettings.toBuilder();
       listDeidentifyTemplatesSettings = settings.listDeidentifyTemplatesSettings.toBuilder();
       deleteDeidentifyTemplateSettings = settings.deleteDeidentifyTemplateSettings.toBuilder();
+      createJobTriggerSettings = settings.createJobTriggerSettings.toBuilder();
+      updateJobTriggerSettings = settings.updateJobTriggerSettings.toBuilder();
+      hybridInspectJobTriggerSettings = settings.hybridInspectJobTriggerSettings.toBuilder();
+      getJobTriggerSettings = settings.getJobTriggerSettings.toBuilder();
+      listJobTriggersSettings = settings.listJobTriggersSettings.toBuilder();
+      deleteJobTriggerSettings = settings.deleteJobTriggerSettings.toBuilder();
       createDlpJobSettings = settings.createDlpJobSettings.toBuilder();
       listDlpJobsSettings = settings.listDlpJobsSettings.toBuilder();
       getDlpJobSettings = settings.getDlpJobSettings.toBuilder();
       deleteDlpJobSettings = settings.deleteDlpJobSettings.toBuilder();
       cancelDlpJobSettings = settings.cancelDlpJobSettings.toBuilder();
-      finishDlpJobSettings = settings.finishDlpJobSettings.toBuilder();
-      hybridInspectDlpJobSettings = settings.hybridInspectDlpJobSettings.toBuilder();
-      listJobTriggersSettings = settings.listJobTriggersSettings.toBuilder();
-      getJobTriggerSettings = settings.getJobTriggerSettings.toBuilder();
-      deleteJobTriggerSettings = settings.deleteJobTriggerSettings.toBuilder();
-      hybridInspectJobTriggerSettings = settings.hybridInspectJobTriggerSettings.toBuilder();
-      updateJobTriggerSettings = settings.updateJobTriggerSettings.toBuilder();
-      createJobTriggerSettings = settings.createJobTriggerSettings.toBuilder();
       createStoredInfoTypeSettings = settings.createStoredInfoTypeSettings.toBuilder();
       updateStoredInfoTypeSettings = settings.updateStoredInfoTypeSettings.toBuilder();
       getStoredInfoTypeSettings = settings.getStoredInfoTypeSettings.toBuilder();
       listStoredInfoTypesSettings = settings.listStoredInfoTypesSettings.toBuilder();
       deleteStoredInfoTypeSettings = settings.deleteStoredInfoTypeSettings.toBuilder();
+      hybridInspectDlpJobSettings = settings.hybridInspectDlpJobSettings.toBuilder();
+      finishDlpJobSettings = settings.finishDlpJobSettings.toBuilder();
 
       unaryMethodSettingsBuilders =
           ImmutableList.>of(
@@ -1264,24 +1264,24 @@ protected Builder(DlpServiceStubSettings settings) {
               getDeidentifyTemplateSettings,
               listDeidentifyTemplatesSettings,
               deleteDeidentifyTemplateSettings,
+              createJobTriggerSettings,
+              updateJobTriggerSettings,
+              hybridInspectJobTriggerSettings,
+              getJobTriggerSettings,
+              listJobTriggersSettings,
+              deleteJobTriggerSettings,
               createDlpJobSettings,
               listDlpJobsSettings,
               getDlpJobSettings,
               deleteDlpJobSettings,
               cancelDlpJobSettings,
-              finishDlpJobSettings,
-              hybridInspectDlpJobSettings,
-              listJobTriggersSettings,
-              getJobTriggerSettings,
-              deleteJobTriggerSettings,
-              hybridInspectJobTriggerSettings,
-              updateJobTriggerSettings,
-              createJobTriggerSettings,
               createStoredInfoTypeSettings,
               updateStoredInfoTypeSettings,
               getStoredInfoTypeSettings,
               listStoredInfoTypesSettings,
-              deleteStoredInfoTypeSettings);
+              deleteStoredInfoTypeSettings,
+              hybridInspectDlpJobSettings,
+              finishDlpJobSettings);
     }
 
     // NEXT_MAJOR_VER: remove 'throws Exception'
@@ -1396,6 +1396,41 @@ public Builder applyToAllUnaryMethods(
       return deleteDeidentifyTemplateSettings;
     }
 
+    /** Returns the builder for the settings used for calls to createJobTrigger. */
+    public UnaryCallSettings.Builder
+        createJobTriggerSettings() {
+      return createJobTriggerSettings;
+    }
+
+    /** Returns the builder for the settings used for calls to updateJobTrigger. */
+    public UnaryCallSettings.Builder
+        updateJobTriggerSettings() {
+      return updateJobTriggerSettings;
+    }
+
+    /** Returns the builder for the settings used for calls to hybridInspectJobTrigger. */
+    public UnaryCallSettings.Builder
+        hybridInspectJobTriggerSettings() {
+      return hybridInspectJobTriggerSettings;
+    }
+
+    /** Returns the builder for the settings used for calls to getJobTrigger. */
+    public UnaryCallSettings.Builder getJobTriggerSettings() {
+      return getJobTriggerSettings;
+    }
+
+    /** Returns the builder for the settings used for calls to listJobTriggers. */
+    public PagedCallSettings.Builder<
+            ListJobTriggersRequest, ListJobTriggersResponse, ListJobTriggersPagedResponse>
+        listJobTriggersSettings() {
+      return listJobTriggersSettings;
+    }
+
+    /** Returns the builder for the settings used for calls to deleteJobTrigger. */
+    public UnaryCallSettings.Builder deleteJobTriggerSettings() {
+      return deleteJobTriggerSettings;
+    }
+
     /** Returns the builder for the settings used for calls to createDlpJob. */
     public UnaryCallSettings.Builder createDlpJobSettings() {
       return createDlpJobSettings;
@@ -1423,52 +1458,6 @@ public UnaryCallSettings.Builder cancelDlpJobSetting
       return cancelDlpJobSettings;
     }
 
-    /** Returns the builder for the settings used for calls to finishDlpJob. */
-    public UnaryCallSettings.Builder finishDlpJobSettings() {
-      return finishDlpJobSettings;
-    }
-
-    /** Returns the builder for the settings used for calls to hybridInspectDlpJob. */
-    public UnaryCallSettings.Builder
-        hybridInspectDlpJobSettings() {
-      return hybridInspectDlpJobSettings;
-    }
-
-    /** Returns the builder for the settings used for calls to listJobTriggers. */
-    public PagedCallSettings.Builder<
-            ListJobTriggersRequest, ListJobTriggersResponse, ListJobTriggersPagedResponse>
-        listJobTriggersSettings() {
-      return listJobTriggersSettings;
-    }
-
-    /** Returns the builder for the settings used for calls to getJobTrigger. */
-    public UnaryCallSettings.Builder getJobTriggerSettings() {
-      return getJobTriggerSettings;
-    }
-
-    /** Returns the builder for the settings used for calls to deleteJobTrigger. */
-    public UnaryCallSettings.Builder deleteJobTriggerSettings() {
-      return deleteJobTriggerSettings;
-    }
-
-    /** Returns the builder for the settings used for calls to hybridInspectJobTrigger. */
-    public UnaryCallSettings.Builder
-        hybridInspectJobTriggerSettings() {
-      return hybridInspectJobTriggerSettings;
-    }
-
-    /** Returns the builder for the settings used for calls to updateJobTrigger. */
-    public UnaryCallSettings.Builder
-        updateJobTriggerSettings() {
-      return updateJobTriggerSettings;
-    }
-
-    /** Returns the builder for the settings used for calls to createJobTrigger. */
-    public UnaryCallSettings.Builder
-        createJobTriggerSettings() {
-      return createJobTriggerSettings;
-    }
-
     /** Returns the builder for the settings used for calls to createStoredInfoType. */
     public UnaryCallSettings.Builder
         createStoredInfoTypeSettings() {
@@ -1502,6 +1491,17 @@ public UnaryCallSettings.Builder deleteJobTrigge
       return deleteStoredInfoTypeSettings;
     }
 
+    /** Returns the builder for the settings used for calls to hybridInspectDlpJob. */
+    public UnaryCallSettings.Builder
+        hybridInspectDlpJobSettings() {
+      return hybridInspectDlpJobSettings;
+    }
+
+    /** Returns the builder for the settings used for calls to finishDlpJob. */
+    public UnaryCallSettings.Builder finishDlpJobSettings() {
+      return finishDlpJobSettings;
+    }
+
     @Override
     public DlpServiceStubSettings build() throws IOException {
       return new DlpServiceStubSettings(this);
diff --git a/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/stub/GrpcDlpServiceStub.java b/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/stub/GrpcDlpServiceStub.java
index 8b6c49a0..f6ac0a4f 100644
--- a/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/stub/GrpcDlpServiceStub.java
+++ b/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/stub/GrpcDlpServiceStub.java
@@ -240,6 +240,62 @@ public class GrpcDlpServiceStub extends DlpServiceStub {
                   ProtoUtils.marshaller(DeleteDeidentifyTemplateRequest.getDefaultInstance()))
               .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance()))
               .build();
+  private static final MethodDescriptor
+      createJobTriggerMethodDescriptor =
+          MethodDescriptor.newBuilder()
+              .setType(MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName("google.privacy.dlp.v2.DlpService/CreateJobTrigger")
+              .setRequestMarshaller(
+                  ProtoUtils.marshaller(CreateJobTriggerRequest.getDefaultInstance()))
+              .setResponseMarshaller(ProtoUtils.marshaller(JobTrigger.getDefaultInstance()))
+              .build();
+  private static final MethodDescriptor
+      updateJobTriggerMethodDescriptor =
+          MethodDescriptor.newBuilder()
+              .setType(MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName("google.privacy.dlp.v2.DlpService/UpdateJobTrigger")
+              .setRequestMarshaller(
+                  ProtoUtils.marshaller(UpdateJobTriggerRequest.getDefaultInstance()))
+              .setResponseMarshaller(ProtoUtils.marshaller(JobTrigger.getDefaultInstance()))
+              .build();
+  private static final MethodDescriptor
+      hybridInspectJobTriggerMethodDescriptor =
+          MethodDescriptor.newBuilder()
+              .setType(MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName("google.privacy.dlp.v2.DlpService/HybridInspectJobTrigger")
+              .setRequestMarshaller(
+                  ProtoUtils.marshaller(HybridInspectJobTriggerRequest.getDefaultInstance()))
+              .setResponseMarshaller(
+                  ProtoUtils.marshaller(HybridInspectResponse.getDefaultInstance()))
+              .build();
+  private static final MethodDescriptor
+      getJobTriggerMethodDescriptor =
+          MethodDescriptor.newBuilder()
+              .setType(MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName("google.privacy.dlp.v2.DlpService/GetJobTrigger")
+              .setRequestMarshaller(
+                  ProtoUtils.marshaller(GetJobTriggerRequest.getDefaultInstance()))
+              .setResponseMarshaller(ProtoUtils.marshaller(JobTrigger.getDefaultInstance()))
+              .build();
+  private static final MethodDescriptor
+      listJobTriggersMethodDescriptor =
+          MethodDescriptor.newBuilder()
+              .setType(MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName("google.privacy.dlp.v2.DlpService/ListJobTriggers")
+              .setRequestMarshaller(
+                  ProtoUtils.marshaller(ListJobTriggersRequest.getDefaultInstance()))
+              .setResponseMarshaller(
+                  ProtoUtils.marshaller(ListJobTriggersResponse.getDefaultInstance()))
+              .build();
+  private static final MethodDescriptor
+      deleteJobTriggerMethodDescriptor =
+          MethodDescriptor.newBuilder()
+              .setType(MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName("google.privacy.dlp.v2.DlpService/DeleteJobTrigger")
+              .setRequestMarshaller(
+                  ProtoUtils.marshaller(DeleteJobTriggerRequest.getDefaultInstance()))
+              .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance()))
+              .build();
   private static final MethodDescriptor createDlpJobMethodDescriptor =
       MethodDescriptor.newBuilder()
           .setType(MethodDescriptor.MethodType.UNARY)
@@ -277,79 +333,6 @@ public class GrpcDlpServiceStub extends DlpServiceStub {
           .setRequestMarshaller(ProtoUtils.marshaller(CancelDlpJobRequest.getDefaultInstance()))
           .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance()))
           .build();
-  private static final MethodDescriptor finishDlpJobMethodDescriptor =
-      MethodDescriptor.newBuilder()
-          .setType(MethodDescriptor.MethodType.UNARY)
-          .setFullMethodName("google.privacy.dlp.v2.DlpService/FinishDlpJob")
-          .setRequestMarshaller(ProtoUtils.marshaller(FinishDlpJobRequest.getDefaultInstance()))
-          .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance()))
-          .build();
-  private static final MethodDescriptor
-      hybridInspectDlpJobMethodDescriptor =
-          MethodDescriptor.newBuilder()
-              .setType(MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName("google.privacy.dlp.v2.DlpService/HybridInspectDlpJob")
-              .setRequestMarshaller(
-                  ProtoUtils.marshaller(HybridInspectDlpJobRequest.getDefaultInstance()))
-              .setResponseMarshaller(
-                  ProtoUtils.marshaller(HybridInspectResponse.getDefaultInstance()))
-              .build();
-  private static final MethodDescriptor
-      listJobTriggersMethodDescriptor =
-          MethodDescriptor.newBuilder()
-              .setType(MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName("google.privacy.dlp.v2.DlpService/ListJobTriggers")
-              .setRequestMarshaller(
-                  ProtoUtils.marshaller(ListJobTriggersRequest.getDefaultInstance()))
-              .setResponseMarshaller(
-                  ProtoUtils.marshaller(ListJobTriggersResponse.getDefaultInstance()))
-              .build();
-  private static final MethodDescriptor
-      getJobTriggerMethodDescriptor =
-          MethodDescriptor.newBuilder()
-              .setType(MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName("google.privacy.dlp.v2.DlpService/GetJobTrigger")
-              .setRequestMarshaller(
-                  ProtoUtils.marshaller(GetJobTriggerRequest.getDefaultInstance()))
-              .setResponseMarshaller(ProtoUtils.marshaller(JobTrigger.getDefaultInstance()))
-              .build();
-  private static final MethodDescriptor
-      deleteJobTriggerMethodDescriptor =
-          MethodDescriptor.newBuilder()
-              .setType(MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName("google.privacy.dlp.v2.DlpService/DeleteJobTrigger")
-              .setRequestMarshaller(
-                  ProtoUtils.marshaller(DeleteJobTriggerRequest.getDefaultInstance()))
-              .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance()))
-              .build();
-  private static final MethodDescriptor
-      hybridInspectJobTriggerMethodDescriptor =
-          MethodDescriptor.newBuilder()
-              .setType(MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName("google.privacy.dlp.v2.DlpService/HybridInspectJobTrigger")
-              .setRequestMarshaller(
-                  ProtoUtils.marshaller(HybridInspectJobTriggerRequest.getDefaultInstance()))
-              .setResponseMarshaller(
-                  ProtoUtils.marshaller(HybridInspectResponse.getDefaultInstance()))
-              .build();
-  private static final MethodDescriptor
-      updateJobTriggerMethodDescriptor =
-          MethodDescriptor.newBuilder()
-              .setType(MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName("google.privacy.dlp.v2.DlpService/UpdateJobTrigger")
-              .setRequestMarshaller(
-                  ProtoUtils.marshaller(UpdateJobTriggerRequest.getDefaultInstance()))
-              .setResponseMarshaller(ProtoUtils.marshaller(JobTrigger.getDefaultInstance()))
-              .build();
-  private static final MethodDescriptor
-      createJobTriggerMethodDescriptor =
-          MethodDescriptor.newBuilder()
-              .setType(MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName("google.privacy.dlp.v2.DlpService/CreateJobTrigger")
-              .setRequestMarshaller(
-                  ProtoUtils.marshaller(CreateJobTriggerRequest.getDefaultInstance()))
-              .setResponseMarshaller(ProtoUtils.marshaller(JobTrigger.getDefaultInstance()))
-              .build();
   private static final MethodDescriptor
       createStoredInfoTypeMethodDescriptor =
           MethodDescriptor.newBuilder()
@@ -396,6 +379,23 @@ public class GrpcDlpServiceStub extends DlpServiceStub {
                   ProtoUtils.marshaller(DeleteStoredInfoTypeRequest.getDefaultInstance()))
               .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance()))
               .build();
+  private static final MethodDescriptor
+      hybridInspectDlpJobMethodDescriptor =
+          MethodDescriptor.newBuilder()
+              .setType(MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName("google.privacy.dlp.v2.DlpService/HybridInspectDlpJob")
+              .setRequestMarshaller(
+                  ProtoUtils.marshaller(HybridInspectDlpJobRequest.getDefaultInstance()))
+              .setResponseMarshaller(
+                  ProtoUtils.marshaller(HybridInspectResponse.getDefaultInstance()))
+              .build();
+  private static final MethodDescriptor finishDlpJobMethodDescriptor =
+      MethodDescriptor.newBuilder()
+          .setType(MethodDescriptor.MethodType.UNARY)
+          .setFullMethodName("google.privacy.dlp.v2.DlpService/FinishDlpJob")
+          .setRequestMarshaller(ProtoUtils.marshaller(FinishDlpJobRequest.getDefaultInstance()))
+          .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance()))
+          .build();
 
   private final BackgroundResource backgroundResources;
 
@@ -429,6 +429,16 @@ public class GrpcDlpServiceStub extends DlpServiceStub {
       listDeidentifyTemplatesPagedCallable;
   private final UnaryCallable
       deleteDeidentifyTemplateCallable;
+  private final UnaryCallable createJobTriggerCallable;
+  private final UnaryCallable updateJobTriggerCallable;
+  private final UnaryCallable
+      hybridInspectJobTriggerCallable;
+  private final UnaryCallable getJobTriggerCallable;
+  private final UnaryCallable
+      listJobTriggersCallable;
+  private final UnaryCallable
+      listJobTriggersPagedCallable;
+  private final UnaryCallable deleteJobTriggerCallable;
   private final UnaryCallable createDlpJobCallable;
   private final UnaryCallable listDlpJobsCallable;
   private final UnaryCallable
@@ -436,19 +446,6 @@ public class GrpcDlpServiceStub extends DlpServiceStub {
   private final UnaryCallable getDlpJobCallable;
   private final UnaryCallable deleteDlpJobCallable;
   private final UnaryCallable cancelDlpJobCallable;
-  private final UnaryCallable finishDlpJobCallable;
-  private final UnaryCallable
-      hybridInspectDlpJobCallable;
-  private final UnaryCallable
-      listJobTriggersCallable;
-  private final UnaryCallable
-      listJobTriggersPagedCallable;
-  private final UnaryCallable getJobTriggerCallable;
-  private final UnaryCallable deleteJobTriggerCallable;
-  private final UnaryCallable
-      hybridInspectJobTriggerCallable;
-  private final UnaryCallable updateJobTriggerCallable;
-  private final UnaryCallable createJobTriggerCallable;
   private final UnaryCallable
       createStoredInfoTypeCallable;
   private final UnaryCallable
@@ -459,6 +456,9 @@ public class GrpcDlpServiceStub extends DlpServiceStub {
   private final UnaryCallable
       listStoredInfoTypesPagedCallable;
   private final UnaryCallable deleteStoredInfoTypeCallable;
+  private final UnaryCallable
+      hybridInspectDlpJobCallable;
+  private final UnaryCallable finishDlpJobCallable;
 
   private final GrpcStubCallableFactory callableFactory;
 
@@ -707,98 +707,59 @@ public Map extract(DeleteDeidentifyTemplateRequest request) {
                       }
                     })
                 .build();
-    GrpcCallSettings createDlpJobTransportSettings =
-        GrpcCallSettings.newBuilder()
-            .setMethodDescriptor(createDlpJobMethodDescriptor)
-            .setParamsExtractor(
-                new RequestParamsExtractor() {
-                  @Override
-                  public Map extract(CreateDlpJobRequest request) {
-                    ImmutableMap.Builder params = ImmutableMap.builder();
-                    params.put("parent", String.valueOf(request.getParent()));
-                    return params.build();
-                  }
-                })
-            .build();
-    GrpcCallSettings listDlpJobsTransportSettings =
-        GrpcCallSettings.newBuilder()
-            .setMethodDescriptor(listDlpJobsMethodDescriptor)
+    GrpcCallSettings createJobTriggerTransportSettings =
+        GrpcCallSettings.newBuilder()
+            .setMethodDescriptor(createJobTriggerMethodDescriptor)
             .setParamsExtractor(
-                new RequestParamsExtractor() {
+                new RequestParamsExtractor() {
                   @Override
-                  public Map extract(ListDlpJobsRequest request) {
+                  public Map extract(CreateJobTriggerRequest request) {
                     ImmutableMap.Builder params = ImmutableMap.builder();
                     params.put("parent", String.valueOf(request.getParent()));
                     return params.build();
                   }
                 })
             .build();
-    GrpcCallSettings getDlpJobTransportSettings =
-        GrpcCallSettings.newBuilder()
-            .setMethodDescriptor(getDlpJobMethodDescriptor)
-            .setParamsExtractor(
-                new RequestParamsExtractor() {
-                  @Override
-                  public Map extract(GetDlpJobRequest request) {
-                    ImmutableMap.Builder params = ImmutableMap.builder();
-                    params.put("name", String.valueOf(request.getName()));
-                    return params.build();
-                  }
-                })
-            .build();
-    GrpcCallSettings deleteDlpJobTransportSettings =
-        GrpcCallSettings.newBuilder()
-            .setMethodDescriptor(deleteDlpJobMethodDescriptor)
-            .setParamsExtractor(
-                new RequestParamsExtractor() {
-                  @Override
-                  public Map extract(DeleteDlpJobRequest request) {
-                    ImmutableMap.Builder params = ImmutableMap.builder();
-                    params.put("name", String.valueOf(request.getName()));
-                    return params.build();
-                  }
-                })
-            .build();
-    GrpcCallSettings cancelDlpJobTransportSettings =
-        GrpcCallSettings.newBuilder()
-            .setMethodDescriptor(cancelDlpJobMethodDescriptor)
-            .setParamsExtractor(
-                new RequestParamsExtractor() {
-                  @Override
-                  public Map extract(CancelDlpJobRequest request) {
-                    ImmutableMap.Builder params = ImmutableMap.builder();
-                    params.put("name", String.valueOf(request.getName()));
-                    return params.build();
-                  }
-                })
-            .build();
-    GrpcCallSettings finishDlpJobTransportSettings =
-        GrpcCallSettings.newBuilder()
-            .setMethodDescriptor(finishDlpJobMethodDescriptor)
+    GrpcCallSettings updateJobTriggerTransportSettings =
+        GrpcCallSettings.newBuilder()
+            .setMethodDescriptor(updateJobTriggerMethodDescriptor)
             .setParamsExtractor(
-                new RequestParamsExtractor() {
+                new RequestParamsExtractor() {
                   @Override
-                  public Map extract(FinishDlpJobRequest request) {
+                  public Map extract(UpdateJobTriggerRequest request) {
                     ImmutableMap.Builder params = ImmutableMap.builder();
                     params.put("name", String.valueOf(request.getName()));
                     return params.build();
                   }
                 })
             .build();
-    GrpcCallSettings
-        hybridInspectDlpJobTransportSettings =
-            GrpcCallSettings.newBuilder()
-                .setMethodDescriptor(hybridInspectDlpJobMethodDescriptor)
+    GrpcCallSettings
+        hybridInspectJobTriggerTransportSettings =
+            GrpcCallSettings.newBuilder()
+                .setMethodDescriptor(hybridInspectJobTriggerMethodDescriptor)
                 .setParamsExtractor(
-                    new RequestParamsExtractor() {
+                    new RequestParamsExtractor() {
                       @Override
-                      public Map extract(HybridInspectDlpJobRequest request) {
+                      public Map extract(HybridInspectJobTriggerRequest request) {
                         ImmutableMap.Builder params = ImmutableMap.builder();
                         params.put("name", String.valueOf(request.getName()));
                         return params.build();
                       }
                     })
                 .build();
+    GrpcCallSettings getJobTriggerTransportSettings =
+        GrpcCallSettings.newBuilder()
+            .setMethodDescriptor(getJobTriggerMethodDescriptor)
+            .setParamsExtractor(
+                new RequestParamsExtractor() {
+                  @Override
+                  public Map extract(GetJobTriggerRequest request) {
+                    ImmutableMap.Builder params = ImmutableMap.builder();
+                    params.put("name", String.valueOf(request.getName()));
+                    return params.build();
+                  }
+                })
+            .build();
     GrpcCallSettings
         listJobTriggersTransportSettings =
             GrpcCallSettings.newBuilder()
@@ -813,68 +774,80 @@ public Map extract(ListJobTriggersRequest request) {
                       }
                     })
                 .build();
-    GrpcCallSettings getJobTriggerTransportSettings =
-        GrpcCallSettings.newBuilder()
-            .setMethodDescriptor(getJobTriggerMethodDescriptor)
+    GrpcCallSettings deleteJobTriggerTransportSettings =
+        GrpcCallSettings.newBuilder()
+            .setMethodDescriptor(deleteJobTriggerMethodDescriptor)
             .setParamsExtractor(
-                new RequestParamsExtractor() {
+                new RequestParamsExtractor() {
                   @Override
-                  public Map extract(GetJobTriggerRequest request) {
+                  public Map extract(DeleteJobTriggerRequest request) {
                     ImmutableMap.Builder params = ImmutableMap.builder();
                     params.put("name", String.valueOf(request.getName()));
                     return params.build();
                   }
                 })
             .build();
-    GrpcCallSettings deleteJobTriggerTransportSettings =
-        GrpcCallSettings.newBuilder()
-            .setMethodDescriptor(deleteJobTriggerMethodDescriptor)
+    GrpcCallSettings createDlpJobTransportSettings =
+        GrpcCallSettings.newBuilder()
+            .setMethodDescriptor(createDlpJobMethodDescriptor)
             .setParamsExtractor(
-                new RequestParamsExtractor() {
+                new RequestParamsExtractor() {
                   @Override
-                  public Map extract(DeleteJobTriggerRequest request) {
+                  public Map extract(CreateDlpJobRequest request) {
+                    ImmutableMap.Builder params = ImmutableMap.builder();
+                    params.put("parent", String.valueOf(request.getParent()));
+                    return params.build();
+                  }
+                })
+            .build();
+    GrpcCallSettings listDlpJobsTransportSettings =
+        GrpcCallSettings.newBuilder()
+            .setMethodDescriptor(listDlpJobsMethodDescriptor)
+            .setParamsExtractor(
+                new RequestParamsExtractor() {
+                  @Override
+                  public Map extract(ListDlpJobsRequest request) {
+                    ImmutableMap.Builder params = ImmutableMap.builder();
+                    params.put("parent", String.valueOf(request.getParent()));
+                    return params.build();
+                  }
+                })
+            .build();
+    GrpcCallSettings getDlpJobTransportSettings =
+        GrpcCallSettings.newBuilder()
+            .setMethodDescriptor(getDlpJobMethodDescriptor)
+            .setParamsExtractor(
+                new RequestParamsExtractor() {
+                  @Override
+                  public Map extract(GetDlpJobRequest request) {
                     ImmutableMap.Builder params = ImmutableMap.builder();
                     params.put("name", String.valueOf(request.getName()));
                     return params.build();
                   }
                 })
             .build();
-    GrpcCallSettings
-        hybridInspectJobTriggerTransportSettings =
-            GrpcCallSettings.newBuilder()
-                .setMethodDescriptor(hybridInspectJobTriggerMethodDescriptor)
-                .setParamsExtractor(
-                    new RequestParamsExtractor() {
-                      @Override
-                      public Map extract(HybridInspectJobTriggerRequest request) {
-                        ImmutableMap.Builder params = ImmutableMap.builder();
-                        params.put("name", String.valueOf(request.getName()));
-                        return params.build();
-                      }
-                    })
-                .build();
-    GrpcCallSettings updateJobTriggerTransportSettings =
-        GrpcCallSettings.newBuilder()
-            .setMethodDescriptor(updateJobTriggerMethodDescriptor)
+    GrpcCallSettings deleteDlpJobTransportSettings =
+        GrpcCallSettings.newBuilder()
+            .setMethodDescriptor(deleteDlpJobMethodDescriptor)
             .setParamsExtractor(
-                new RequestParamsExtractor() {
+                new RequestParamsExtractor() {
                   @Override
-                  public Map extract(UpdateJobTriggerRequest request) {
+                  public Map extract(DeleteDlpJobRequest request) {
                     ImmutableMap.Builder params = ImmutableMap.builder();
                     params.put("name", String.valueOf(request.getName()));
                     return params.build();
                   }
                 })
             .build();
-    GrpcCallSettings createJobTriggerTransportSettings =
-        GrpcCallSettings.newBuilder()
-            .setMethodDescriptor(createJobTriggerMethodDescriptor)
+    GrpcCallSettings cancelDlpJobTransportSettings =
+        GrpcCallSettings.newBuilder()
+            .setMethodDescriptor(cancelDlpJobMethodDescriptor)
             .setParamsExtractor(
-                new RequestParamsExtractor() {
+                new RequestParamsExtractor() {
                   @Override
-                  public Map extract(CreateJobTriggerRequest request) {
+                  public Map extract(CancelDlpJobRequest request) {
                     ImmutableMap.Builder params = ImmutableMap.builder();
-                    params.put("parent", String.valueOf(request.getParent()));
+                    params.put("name", String.valueOf(request.getName()));
                     return params.build();
                   }
                 })
@@ -947,6 +920,33 @@ public Map extract(DeleteStoredInfoTypeRequest request) {
                   }
                 })
             .build();
+    GrpcCallSettings
+        hybridInspectDlpJobTransportSettings =
+            GrpcCallSettings.newBuilder()
+                .setMethodDescriptor(hybridInspectDlpJobMethodDescriptor)
+                .setParamsExtractor(
+                    new RequestParamsExtractor() {
+                      @Override
+                      public Map extract(HybridInspectDlpJobRequest request) {
+                        ImmutableMap.Builder params = ImmutableMap.builder();
+                        params.put("name", String.valueOf(request.getName()));
+                        return params.build();
+                      }
+                    })
+                .build();
+    GrpcCallSettings finishDlpJobTransportSettings =
+        GrpcCallSettings.newBuilder()
+            .setMethodDescriptor(finishDlpJobMethodDescriptor)
+            .setParamsExtractor(
+                new RequestParamsExtractor() {
+                  @Override
+                  public Map extract(FinishDlpJobRequest request) {
+                    ImmutableMap.Builder params = ImmutableMap.builder();
+                    params.put("name", String.valueOf(request.getName()));
+                    return params.build();
+                  }
+                })
+            .build();
 
     this.inspectContentCallable =
         callableFactory.createUnaryCallable(
@@ -1027,6 +1027,29 @@ public Map extract(DeleteStoredInfoTypeRequest request) {
             deleteDeidentifyTemplateTransportSettings,
             settings.deleteDeidentifyTemplateSettings(),
             clientContext);
+    this.createJobTriggerCallable =
+        callableFactory.createUnaryCallable(
+            createJobTriggerTransportSettings, settings.createJobTriggerSettings(), clientContext);
+    this.updateJobTriggerCallable =
+        callableFactory.createUnaryCallable(
+            updateJobTriggerTransportSettings, settings.updateJobTriggerSettings(), clientContext);
+    this.hybridInspectJobTriggerCallable =
+        callableFactory.createUnaryCallable(
+            hybridInspectJobTriggerTransportSettings,
+            settings.hybridInspectJobTriggerSettings(),
+            clientContext);
+    this.getJobTriggerCallable =
+        callableFactory.createUnaryCallable(
+            getJobTriggerTransportSettings, settings.getJobTriggerSettings(), clientContext);
+    this.listJobTriggersCallable =
+        callableFactory.createUnaryCallable(
+            listJobTriggersTransportSettings, settings.listJobTriggersSettings(), clientContext);
+    this.listJobTriggersPagedCallable =
+        callableFactory.createPagedCallable(
+            listJobTriggersTransportSettings, settings.listJobTriggersSettings(), clientContext);
+    this.deleteJobTriggerCallable =
+        callableFactory.createUnaryCallable(
+            deleteJobTriggerTransportSettings, settings.deleteJobTriggerSettings(), clientContext);
     this.createDlpJobCallable =
         callableFactory.createUnaryCallable(
             createDlpJobTransportSettings, settings.createDlpJobSettings(), clientContext);
@@ -1045,37 +1068,6 @@ public Map extract(DeleteStoredInfoTypeRequest request) {
     this.cancelDlpJobCallable =
         callableFactory.createUnaryCallable(
             cancelDlpJobTransportSettings, settings.cancelDlpJobSettings(), clientContext);
-    this.finishDlpJobCallable =
-        callableFactory.createUnaryCallable(
-            finishDlpJobTransportSettings, settings.finishDlpJobSettings(), clientContext);
-    this.hybridInspectDlpJobCallable =
-        callableFactory.createUnaryCallable(
-            hybridInspectDlpJobTransportSettings,
-            settings.hybridInspectDlpJobSettings(),
-            clientContext);
-    this.listJobTriggersCallable =
-        callableFactory.createUnaryCallable(
-            listJobTriggersTransportSettings, settings.listJobTriggersSettings(), clientContext);
-    this.listJobTriggersPagedCallable =
-        callableFactory.createPagedCallable(
-            listJobTriggersTransportSettings, settings.listJobTriggersSettings(), clientContext);
-    this.getJobTriggerCallable =
-        callableFactory.createUnaryCallable(
-            getJobTriggerTransportSettings, settings.getJobTriggerSettings(), clientContext);
-    this.deleteJobTriggerCallable =
-        callableFactory.createUnaryCallable(
-            deleteJobTriggerTransportSettings, settings.deleteJobTriggerSettings(), clientContext);
-    this.hybridInspectJobTriggerCallable =
-        callableFactory.createUnaryCallable(
-            hybridInspectJobTriggerTransportSettings,
-            settings.hybridInspectJobTriggerSettings(),
-            clientContext);
-    this.updateJobTriggerCallable =
-        callableFactory.createUnaryCallable(
-            updateJobTriggerTransportSettings, settings.updateJobTriggerSettings(), clientContext);
-    this.createJobTriggerCallable =
-        callableFactory.createUnaryCallable(
-            createJobTriggerTransportSettings, settings.createJobTriggerSettings(), clientContext);
     this.createStoredInfoTypeCallable =
         callableFactory.createUnaryCallable(
             createStoredInfoTypeTransportSettings,
@@ -1106,6 +1098,14 @@ public Map extract(DeleteStoredInfoTypeRequest request) {
             deleteStoredInfoTypeTransportSettings,
             settings.deleteStoredInfoTypeSettings(),
             clientContext);
+    this.hybridInspectDlpJobCallable =
+        callableFactory.createUnaryCallable(
+            hybridInspectDlpJobTransportSettings,
+            settings.hybridInspectDlpJobSettings(),
+            clientContext);
+    this.finishDlpJobCallable =
+        callableFactory.createUnaryCallable(
+            finishDlpJobTransportSettings, settings.finishDlpJobSettings(), clientContext);
 
     backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources());
   }
@@ -1189,37 +1189,21 @@ public UnaryCallable deleteDeidentifyTem
     return deleteDeidentifyTemplateCallable;
   }
 
-  public UnaryCallable createDlpJobCallable() {
-    return createDlpJobCallable;
-  }
-
-  public UnaryCallable listDlpJobsPagedCallable() {
-    return listDlpJobsPagedCallable;
-  }
-
-  public UnaryCallable listDlpJobsCallable() {
-    return listDlpJobsCallable;
-  }
-
-  public UnaryCallable getDlpJobCallable() {
-    return getDlpJobCallable;
-  }
-
-  public UnaryCallable deleteDlpJobCallable() {
-    return deleteDlpJobCallable;
+  public UnaryCallable createJobTriggerCallable() {
+    return createJobTriggerCallable;
   }
 
-  public UnaryCallable cancelDlpJobCallable() {
-    return cancelDlpJobCallable;
+  public UnaryCallable updateJobTriggerCallable() {
+    return updateJobTriggerCallable;
   }
 
-  public UnaryCallable finishDlpJobCallable() {
-    return finishDlpJobCallable;
+  public UnaryCallable
+      hybridInspectJobTriggerCallable() {
+    return hybridInspectJobTriggerCallable;
   }
 
-  public UnaryCallable
-      hybridInspectDlpJobCallable() {
-    return hybridInspectDlpJobCallable;
+  public UnaryCallable getJobTriggerCallable() {
+    return getJobTriggerCallable;
   }
 
   public UnaryCallable
@@ -1231,25 +1215,32 @@ public UnaryCallable listJobTri
     return listJobTriggersCallable;
   }
 
-  public UnaryCallable getJobTriggerCallable() {
-    return getJobTriggerCallable;
-  }
-
   public UnaryCallable deleteJobTriggerCallable() {
     return deleteJobTriggerCallable;
   }
 
-  public UnaryCallable
-      hybridInspectJobTriggerCallable() {
-    return hybridInspectJobTriggerCallable;
+  public UnaryCallable createDlpJobCallable() {
+    return createDlpJobCallable;
   }
 
-  public UnaryCallable updateJobTriggerCallable() {
-    return updateJobTriggerCallable;
+  public UnaryCallable listDlpJobsPagedCallable() {
+    return listDlpJobsPagedCallable;
   }
 
-  public UnaryCallable createJobTriggerCallable() {
-    return createJobTriggerCallable;
+  public UnaryCallable listDlpJobsCallable() {
+    return listDlpJobsCallable;
+  }
+
+  public UnaryCallable getDlpJobCallable() {
+    return getDlpJobCallable;
+  }
+
+  public UnaryCallable deleteDlpJobCallable() {
+    return deleteDlpJobCallable;
+  }
+
+  public UnaryCallable cancelDlpJobCallable() {
+    return cancelDlpJobCallable;
   }
 
   public UnaryCallable createStoredInfoTypeCallable() {
@@ -1278,6 +1269,15 @@ public UnaryCallable deleteStoredInfoTypeCal
     return deleteStoredInfoTypeCallable;
   }
 
+  public UnaryCallable
+      hybridInspectDlpJobCallable() {
+    return hybridInspectDlpJobCallable;
+  }
+
+  public UnaryCallable finishDlpJobCallable() {
+    return finishDlpJobCallable;
+  }
+
   @Override
   public final void close() {
     shutdown();
diff --git a/google-cloud-dlp/src/test/java/com/google/cloud/dlp/v2/DlpServiceClientTest.java b/google-cloud-dlp/src/test/java/com/google/cloud/dlp/v2/DlpServiceClientTest.java
index 38f6f77c..598dc981 100644
--- a/google-cloud-dlp/src/test/java/com/google/cloud/dlp/v2/DlpServiceClientTest.java
+++ b/google-cloud-dlp/src/test/java/com/google/cloud/dlp/v2/DlpServiceClientTest.java
@@ -39,7 +39,6 @@
 import com.google.privacy.dlp.v2.DeidentifyContentResponse;
 import com.google.privacy.dlp.v2.DeidentifyTemplate;
 import com.google.privacy.dlp.v2.DeidentifyTemplateName;
-import com.google.privacy.dlp.v2.DeidentifyTemplateNames;
 import com.google.privacy.dlp.v2.DeleteDeidentifyTemplateRequest;
 import com.google.privacy.dlp.v2.DeleteDlpJobRequest;
 import com.google.privacy.dlp.v2.DeleteInspectTemplateRequest;
@@ -58,10 +57,11 @@
 import com.google.privacy.dlp.v2.HybridInspectResponse;
 import com.google.privacy.dlp.v2.InspectContentRequest;
 import com.google.privacy.dlp.v2.InspectContentResponse;
+import com.google.privacy.dlp.v2.InspectJobConfig;
 import com.google.privacy.dlp.v2.InspectTemplate;
 import com.google.privacy.dlp.v2.InspectTemplateName;
-import com.google.privacy.dlp.v2.InspectTemplateNames;
 import com.google.privacy.dlp.v2.JobTrigger;
+import com.google.privacy.dlp.v2.JobTriggerName;
 import com.google.privacy.dlp.v2.ListDeidentifyTemplatesRequest;
 import com.google.privacy.dlp.v2.ListDeidentifyTemplatesResponse;
 import com.google.privacy.dlp.v2.ListDlpJobsRequest;
@@ -74,19 +74,16 @@
 import com.google.privacy.dlp.v2.ListJobTriggersResponse;
 import com.google.privacy.dlp.v2.ListStoredInfoTypesRequest;
 import com.google.privacy.dlp.v2.ListStoredInfoTypesResponse;
-import com.google.privacy.dlp.v2.OrganizationDeidentifyTemplateName;
-import com.google.privacy.dlp.v2.OrganizationInspectTemplateName;
-import com.google.privacy.dlp.v2.OrganizationName;
-import com.google.privacy.dlp.v2.OrganizationStoredInfoTypeName;
-import com.google.privacy.dlp.v2.ProjectJobTriggerName;
+import com.google.privacy.dlp.v2.OrganizationLocationName;
 import com.google.privacy.dlp.v2.ProjectName;
 import com.google.privacy.dlp.v2.RedactImageRequest;
 import com.google.privacy.dlp.v2.RedactImageResponse;
 import com.google.privacy.dlp.v2.ReidentifyContentRequest;
 import com.google.privacy.dlp.v2.ReidentifyContentResponse;
+import com.google.privacy.dlp.v2.RiskAnalysisJobConfig;
 import com.google.privacy.dlp.v2.StoredInfoType;
+import com.google.privacy.dlp.v2.StoredInfoTypeConfig;
 import com.google.privacy.dlp.v2.StoredInfoTypeName;
-import com.google.privacy.dlp.v2.StoredInfoTypeNames;
 import com.google.privacy.dlp.v2.UpdateDeidentifyTemplateRequest;
 import com.google.privacy.dlp.v2.UpdateInspectTemplateRequest;
 import com.google.privacy.dlp.v2.UpdateJobTriggerRequest;
@@ -94,6 +91,7 @@
 import com.google.protobuf.AbstractMessage;
 import com.google.protobuf.ByteString;
 import com.google.protobuf.Empty;
+import com.google.protobuf.FieldMask;
 import io.grpc.Status;
 import io.grpc.StatusRuntimeException;
 import java.io.IOException;
@@ -151,9 +149,7 @@ public void inspectContentTest() {
     InspectContentResponse expectedResponse = InspectContentResponse.newBuilder().build();
     mockDlpService.addResponse(expectedResponse);
 
-    ProjectName parent = ProjectName.of("[PROJECT]");
-    InspectContentRequest request =
-        InspectContentRequest.newBuilder().setParent(parent.toString()).build();
+    InspectContentRequest request = InspectContentRequest.newBuilder().build();
 
     InspectContentResponse actualResponse = client.inspectContent(request);
     Assert.assertEquals(expectedResponse, actualResponse);
@@ -162,7 +158,6 @@ public void inspectContentTest() {
     Assert.assertEquals(1, actualRequests.size());
     InspectContentRequest actualRequest = (InspectContentRequest) actualRequests.get(0);
 
-    Assert.assertEquals(parent, ProjectName.parse(actualRequest.getParent()));
     Assert.assertTrue(
         channelProvider.isHeaderSent(
             ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
@@ -176,9 +171,7 @@ public void inspectContentExceptionTest() throws Exception {
     mockDlpService.addException(exception);
 
     try {
-      ProjectName parent = ProjectName.of("[PROJECT]");
-      InspectContentRequest request =
-          InspectContentRequest.newBuilder().setParent(parent.toString()).build();
+      InspectContentRequest request = InspectContentRequest.newBuilder().build();
 
       client.inspectContent(request);
       Assert.fail("No exception raised");
@@ -199,9 +192,7 @@ public void redactImageTest() {
             .build();
     mockDlpService.addResponse(expectedResponse);
 
-    ProjectName parent = ProjectName.of("[PROJECT]");
-    RedactImageRequest request =
-        RedactImageRequest.newBuilder().setParent(parent.toString()).build();
+    RedactImageRequest request = RedactImageRequest.newBuilder().build();
 
     RedactImageResponse actualResponse = client.redactImage(request);
     Assert.assertEquals(expectedResponse, actualResponse);
@@ -210,7 +201,6 @@ public void redactImageTest() {
     Assert.assertEquals(1, actualRequests.size());
     RedactImageRequest actualRequest = (RedactImageRequest) actualRequests.get(0);
 
-    Assert.assertEquals(parent, ProjectName.parse(actualRequest.getParent()));
     Assert.assertTrue(
         channelProvider.isHeaderSent(
             ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
@@ -224,9 +214,7 @@ public void redactImageExceptionTest() throws Exception {
     mockDlpService.addException(exception);
 
     try {
-      ProjectName parent = ProjectName.of("[PROJECT]");
-      RedactImageRequest request =
-          RedactImageRequest.newBuilder().setParent(parent.toString()).build();
+      RedactImageRequest request = RedactImageRequest.newBuilder().build();
 
       client.redactImage(request);
       Assert.fail("No exception raised");
@@ -241,9 +229,7 @@ public void deidentifyContentTest() {
     DeidentifyContentResponse expectedResponse = DeidentifyContentResponse.newBuilder().build();
     mockDlpService.addResponse(expectedResponse);
 
-    ProjectName parent = ProjectName.of("[PROJECT]");
-    DeidentifyContentRequest request =
-        DeidentifyContentRequest.newBuilder().setParent(parent.toString()).build();
+    DeidentifyContentRequest request = DeidentifyContentRequest.newBuilder().build();
 
     DeidentifyContentResponse actualResponse = client.deidentifyContent(request);
     Assert.assertEquals(expectedResponse, actualResponse);
@@ -252,7 +238,6 @@ public void deidentifyContentTest() {
     Assert.assertEquals(1, actualRequests.size());
     DeidentifyContentRequest actualRequest = (DeidentifyContentRequest) actualRequests.get(0);
 
-    Assert.assertEquals(parent, ProjectName.parse(actualRequest.getParent()));
     Assert.assertTrue(
         channelProvider.isHeaderSent(
             ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
@@ -266,9 +251,7 @@ public void deidentifyContentExceptionTest() throws Exception {
     mockDlpService.addException(exception);
 
     try {
-      ProjectName parent = ProjectName.of("[PROJECT]");
-      DeidentifyContentRequest request =
-          DeidentifyContentRequest.newBuilder().setParent(parent.toString()).build();
+      DeidentifyContentRequest request = DeidentifyContentRequest.newBuilder().build();
 
       client.deidentifyContent(request);
       Assert.fail("No exception raised");
@@ -325,15 +308,16 @@ public void listInfoTypesTest() {
     ListInfoTypesResponse expectedResponse = ListInfoTypesResponse.newBuilder().build();
     mockDlpService.addResponse(expectedResponse);
 
-    ListInfoTypesRequest request = ListInfoTypesRequest.newBuilder().build();
+    String locationId = "locationId552319461";
 
-    ListInfoTypesResponse actualResponse = client.listInfoTypes(request);
+    ListInfoTypesResponse actualResponse = client.listInfoTypes(locationId);
     Assert.assertEquals(expectedResponse, actualResponse);
 
     List actualRequests = mockDlpService.getRequests();
     Assert.assertEquals(1, actualRequests.size());
     ListInfoTypesRequest actualRequest = (ListInfoTypesRequest) actualRequests.get(0);
 
+    Assert.assertEquals(locationId, actualRequest.getLocationId());
     Assert.assertTrue(
         channelProvider.isHeaderSent(
             ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
@@ -347,9 +331,9 @@ public void listInfoTypesExceptionTest() throws Exception {
     mockDlpService.addException(exception);
 
     try {
-      ListInfoTypesRequest request = ListInfoTypesRequest.newBuilder().build();
+      String locationId = "locationId552319461";
 
-      client.listInfoTypes(request);
+      client.listInfoTypes(locationId);
       Assert.fail("No exception raised");
     } catch (InvalidArgumentException e) {
       // Expected exception
@@ -359,22 +343,23 @@ public void listInfoTypesExceptionTest() throws Exception {
   @Test
   @SuppressWarnings("all")
   public void createInspectTemplateTest() {
-    String name = "name3373707";
+    InspectTemplateName name =
+        InspectTemplateName.ofOrganizationInspectTemplateName(
+            "[ORGANIZATION]", "[INSPECT_TEMPLATE]");
     String displayName = "displayName1615086568";
     String description = "description-1724546052";
     InspectTemplate expectedResponse =
         InspectTemplate.newBuilder()
-            .setName(name)
+            .setName(name.toString())
             .setDisplayName(displayName)
             .setDescription(description)
             .build();
     mockDlpService.addResponse(expectedResponse);
 
-    OrganizationName parent = OrganizationName.of("[ORGANIZATION]");
-    CreateInspectTemplateRequest request =
-        CreateInspectTemplateRequest.newBuilder().setParent(parent.toString()).build();
+    OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]");
+    InspectTemplate inspectTemplate = InspectTemplate.newBuilder().build();
 
-    InspectTemplate actualResponse = client.createInspectTemplate(request);
+    InspectTemplate actualResponse = client.createInspectTemplate(parent, inspectTemplate);
     Assert.assertEquals(expectedResponse, actualResponse);
 
     List actualRequests = mockDlpService.getRequests();
@@ -382,7 +367,8 @@ public void createInspectTemplateTest() {
     CreateInspectTemplateRequest actualRequest =
         (CreateInspectTemplateRequest) actualRequests.get(0);
 
-    Assert.assertEquals(parent, OrganizationName.parse(actualRequest.getParent()));
+    Assert.assertEquals(parent, OrganizationLocationName.parse(actualRequest.getParent()));
+    Assert.assertEquals(inspectTemplate, actualRequest.getInspectTemplate());
     Assert.assertTrue(
         channelProvider.isHeaderSent(
             ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
@@ -396,11 +382,66 @@ public void createInspectTemplateExceptionTest() throws Exception {
     mockDlpService.addException(exception);
 
     try {
-      OrganizationName parent = OrganizationName.of("[ORGANIZATION]");
-      CreateInspectTemplateRequest request =
-          CreateInspectTemplateRequest.newBuilder().setParent(parent.toString()).build();
+      OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]");
+      InspectTemplate inspectTemplate = InspectTemplate.newBuilder().build();
 
-      client.createInspectTemplate(request);
+      client.createInspectTemplate(parent, inspectTemplate);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception
+    }
+  }
+
+  @Test
+  @SuppressWarnings("all")
+  public void createInspectTemplateTest2() {
+    InspectTemplateName name =
+        InspectTemplateName.ofOrganizationInspectTemplateName(
+            "[ORGANIZATION]", "[INSPECT_TEMPLATE]");
+    String displayName = "displayName1615086568";
+    String description = "description-1724546052";
+    InspectTemplate expectedResponse =
+        InspectTemplate.newBuilder()
+            .setName(name.toString())
+            .setDisplayName(displayName)
+            .setDescription(description)
+            .build();
+    mockDlpService.addResponse(expectedResponse);
+
+    OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]");
+    InspectTemplate inspectTemplate = InspectTemplate.newBuilder().build();
+    String locationId = "locationId552319461";
+
+    InspectTemplate actualResponse =
+        client.createInspectTemplate(parent, inspectTemplate, locationId);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockDlpService.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    CreateInspectTemplateRequest actualRequest =
+        (CreateInspectTemplateRequest) actualRequests.get(0);
+
+    Assert.assertEquals(parent, OrganizationLocationName.parse(actualRequest.getParent()));
+    Assert.assertEquals(inspectTemplate, actualRequest.getInspectTemplate());
+    Assert.assertEquals(locationId, actualRequest.getLocationId());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  @SuppressWarnings("all")
+  public void createInspectTemplateExceptionTest2() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT);
+    mockDlpService.addException(exception);
+
+    try {
+      OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]");
+      InspectTemplate inspectTemplate = InspectTemplate.newBuilder().build();
+      String locationId = "locationId552319461";
+
+      client.createInspectTemplate(parent, inspectTemplate, locationId);
       Assert.fail("No exception raised");
     } catch (InvalidArgumentException e) {
       // Expected exception
@@ -410,23 +451,27 @@ public void createInspectTemplateExceptionTest() throws Exception {
   @Test
   @SuppressWarnings("all")
   public void updateInspectTemplateTest() {
-    String name2 = "name2-1052831874";
+    InspectTemplateName name2 =
+        InspectTemplateName.ofOrganizationInspectTemplateName(
+            "[ORGANIZATION]", "[INSPECT_TEMPLATE]");
     String displayName = "displayName1615086568";
     String description = "description-1724546052";
     InspectTemplate expectedResponse =
         InspectTemplate.newBuilder()
-            .setName(name2)
+            .setName(name2.toString())
             .setDisplayName(displayName)
             .setDescription(description)
             .build();
     mockDlpService.addResponse(expectedResponse);
 
     InspectTemplateName name =
-        OrganizationInspectTemplateName.of("[ORGANIZATION]", "[INSPECT_TEMPLATE]");
-    UpdateInspectTemplateRequest request =
-        UpdateInspectTemplateRequest.newBuilder().setName(name.toString()).build();
+        InspectTemplateName.ofOrganizationInspectTemplateName(
+            "[ORGANIZATION]", "[INSPECT_TEMPLATE]");
+    InspectTemplate inspectTemplate = InspectTemplate.newBuilder().build();
+    FieldMask updateMask = FieldMask.newBuilder().build();
 
-    InspectTemplate actualResponse = client.updateInspectTemplate(request);
+    InspectTemplate actualResponse =
+        client.updateInspectTemplate(name, inspectTemplate, updateMask);
     Assert.assertEquals(expectedResponse, actualResponse);
 
     List actualRequests = mockDlpService.getRequests();
@@ -434,7 +479,9 @@ public void updateInspectTemplateTest() {
     UpdateInspectTemplateRequest actualRequest =
         (UpdateInspectTemplateRequest) actualRequests.get(0);
 
-    Assert.assertEquals(name, InspectTemplateNames.parse(actualRequest.getName()));
+    Assert.assertEquals(name, InspectTemplateName.parse(actualRequest.getName()));
+    Assert.assertEquals(inspectTemplate, actualRequest.getInspectTemplate());
+    Assert.assertEquals(updateMask, actualRequest.getUpdateMask());
     Assert.assertTrue(
         channelProvider.isHeaderSent(
             ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
@@ -449,11 +496,12 @@ public void updateInspectTemplateExceptionTest() throws Exception {
 
     try {
       InspectTemplateName name =
-          OrganizationInspectTemplateName.of("[ORGANIZATION]", "[INSPECT_TEMPLATE]");
-      UpdateInspectTemplateRequest request =
-          UpdateInspectTemplateRequest.newBuilder().setName(name.toString()).build();
+          InspectTemplateName.ofOrganizationInspectTemplateName(
+              "[ORGANIZATION]", "[INSPECT_TEMPLATE]");
+      InspectTemplate inspectTemplate = InspectTemplate.newBuilder().build();
+      FieldMask updateMask = FieldMask.newBuilder().build();
 
-      client.updateInspectTemplate(request);
+      client.updateInspectTemplate(name, inspectTemplate, updateMask);
       Assert.fail("No exception raised");
     } catch (InvalidArgumentException e) {
       // Expected exception
@@ -463,26 +511,31 @@ public void updateInspectTemplateExceptionTest() throws Exception {
   @Test
   @SuppressWarnings("all")
   public void getInspectTemplateTest() {
-    String name = "name3373707";
+    InspectTemplateName name2 =
+        InspectTemplateName.ofOrganizationInspectTemplateName(
+            "[ORGANIZATION]", "[INSPECT_TEMPLATE]");
     String displayName = "displayName1615086568";
     String description = "description-1724546052";
     InspectTemplate expectedResponse =
         InspectTemplate.newBuilder()
-            .setName(name)
+            .setName(name2.toString())
             .setDisplayName(displayName)
             .setDescription(description)
             .build();
     mockDlpService.addResponse(expectedResponse);
 
-    GetInspectTemplateRequest request = GetInspectTemplateRequest.newBuilder().build();
+    InspectTemplateName name =
+        InspectTemplateName.ofOrganizationInspectTemplateName(
+            "[ORGANIZATION]", "[INSPECT_TEMPLATE]");
 
-    InspectTemplate actualResponse = client.getInspectTemplate(request);
+    InspectTemplate actualResponse = client.getInspectTemplate(name);
     Assert.assertEquals(expectedResponse, actualResponse);
 
     List actualRequests = mockDlpService.getRequests();
     Assert.assertEquals(1, actualRequests.size());
     GetInspectTemplateRequest actualRequest = (GetInspectTemplateRequest) actualRequests.get(0);
 
+    Assert.assertEquals(name, InspectTemplateName.parse(actualRequest.getName()));
     Assert.assertTrue(
         channelProvider.isHeaderSent(
             ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
@@ -496,9 +549,11 @@ public void getInspectTemplateExceptionTest() throws Exception {
     mockDlpService.addException(exception);
 
     try {
-      GetInspectTemplateRequest request = GetInspectTemplateRequest.newBuilder().build();
+      InspectTemplateName name =
+          InspectTemplateName.ofOrganizationInspectTemplateName(
+              "[ORGANIZATION]", "[INSPECT_TEMPLATE]");
 
-      client.getInspectTemplate(request);
+      client.getInspectTemplate(name);
       Assert.fail("No exception raised");
     } catch (InvalidArgumentException e) {
       // Expected exception
@@ -518,11 +573,9 @@ public void listInspectTemplatesTest() {
             .build();
     mockDlpService.addResponse(expectedResponse);
 
-    OrganizationName parent = OrganizationName.of("[ORGANIZATION]");
-    ListInspectTemplatesRequest request =
-        ListInspectTemplatesRequest.newBuilder().setParent(parent.toString()).build();
+    OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]");
 
-    ListInspectTemplatesPagedResponse pagedListResponse = client.listInspectTemplates(request);
+    ListInspectTemplatesPagedResponse pagedListResponse = client.listInspectTemplates(parent);
 
     List resources = Lists.newArrayList(pagedListResponse.iterateAll());
     Assert.assertEquals(1, resources.size());
@@ -532,7 +585,7 @@ public void listInspectTemplatesTest() {
     Assert.assertEquals(1, actualRequests.size());
     ListInspectTemplatesRequest actualRequest = (ListInspectTemplatesRequest) actualRequests.get(0);
 
-    Assert.assertEquals(parent, OrganizationName.parse(actualRequest.getParent()));
+    Assert.assertEquals(parent, OrganizationLocationName.parse(actualRequest.getParent()));
     Assert.assertTrue(
         channelProvider.isHeaderSent(
             ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
@@ -546,11 +599,9 @@ public void listInspectTemplatesExceptionTest() throws Exception {
     mockDlpService.addException(exception);
 
     try {
-      OrganizationName parent = OrganizationName.of("[ORGANIZATION]");
-      ListInspectTemplatesRequest request =
-          ListInspectTemplatesRequest.newBuilder().setParent(parent.toString()).build();
+      OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]");
 
-      client.listInspectTemplates(request);
+      client.listInspectTemplates(parent);
       Assert.fail("No exception raised");
     } catch (InvalidArgumentException e) {
       // Expected exception
@@ -564,18 +615,17 @@ public void deleteInspectTemplateTest() {
     mockDlpService.addResponse(expectedResponse);
 
     InspectTemplateName name =
-        OrganizationInspectTemplateName.of("[ORGANIZATION]", "[INSPECT_TEMPLATE]");
-    DeleteInspectTemplateRequest request =
-        DeleteInspectTemplateRequest.newBuilder().setName(name.toString()).build();
+        InspectTemplateName.ofOrganizationInspectTemplateName(
+            "[ORGANIZATION]", "[INSPECT_TEMPLATE]");
 
-    client.deleteInspectTemplate(request);
+    client.deleteInspectTemplate(name);
 
     List actualRequests = mockDlpService.getRequests();
     Assert.assertEquals(1, actualRequests.size());
     DeleteInspectTemplateRequest actualRequest =
         (DeleteInspectTemplateRequest) actualRequests.get(0);
 
-    Assert.assertEquals(name, InspectTemplateNames.parse(actualRequest.getName()));
+    Assert.assertEquals(name, InspectTemplateName.parse(actualRequest.getName()));
     Assert.assertTrue(
         channelProvider.isHeaderSent(
             ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
@@ -590,11 +640,10 @@ public void deleteInspectTemplateExceptionTest() throws Exception {
 
     try {
       InspectTemplateName name =
-          OrganizationInspectTemplateName.of("[ORGANIZATION]", "[INSPECT_TEMPLATE]");
-      DeleteInspectTemplateRequest request =
-          DeleteInspectTemplateRequest.newBuilder().setName(name.toString()).build();
+          InspectTemplateName.ofOrganizationInspectTemplateName(
+              "[ORGANIZATION]", "[INSPECT_TEMPLATE]");
 
-      client.deleteInspectTemplate(request);
+      client.deleteInspectTemplate(name);
       Assert.fail("No exception raised");
     } catch (InvalidArgumentException e) {
       // Expected exception
@@ -604,22 +653,23 @@ public void deleteInspectTemplateExceptionTest() throws Exception {
   @Test
   @SuppressWarnings("all")
   public void createDeidentifyTemplateTest() {
-    String name = "name3373707";
+    DeidentifyTemplateName name =
+        DeidentifyTemplateName.ofOrganizationDeidentifyTemplateName(
+            "[ORGANIZATION]", "[DEIDENTIFY_TEMPLATE]");
     String displayName = "displayName1615086568";
     String description = "description-1724546052";
     DeidentifyTemplate expectedResponse =
         DeidentifyTemplate.newBuilder()
-            .setName(name)
+            .setName(name.toString())
             .setDisplayName(displayName)
             .setDescription(description)
             .build();
     mockDlpService.addResponse(expectedResponse);
 
-    OrganizationName parent = OrganizationName.of("[ORGANIZATION]");
-    CreateDeidentifyTemplateRequest request =
-        CreateDeidentifyTemplateRequest.newBuilder().setParent(parent.toString()).build();
+    OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]");
+    DeidentifyTemplate deidentifyTemplate = DeidentifyTemplate.newBuilder().build();
 
-    DeidentifyTemplate actualResponse = client.createDeidentifyTemplate(request);
+    DeidentifyTemplate actualResponse = client.createDeidentifyTemplate(parent, deidentifyTemplate);
     Assert.assertEquals(expectedResponse, actualResponse);
 
     List actualRequests = mockDlpService.getRequests();
@@ -627,7 +677,8 @@ public void createDeidentifyTemplateTest() {
     CreateDeidentifyTemplateRequest actualRequest =
         (CreateDeidentifyTemplateRequest) actualRequests.get(0);
 
-    Assert.assertEquals(parent, OrganizationName.parse(actualRequest.getParent()));
+    Assert.assertEquals(parent, OrganizationLocationName.parse(actualRequest.getParent()));
+    Assert.assertEquals(deidentifyTemplate, actualRequest.getDeidentifyTemplate());
     Assert.assertTrue(
         channelProvider.isHeaderSent(
             ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
@@ -641,11 +692,66 @@ public void createDeidentifyTemplateExceptionTest() throws Exception {
     mockDlpService.addException(exception);
 
     try {
-      OrganizationName parent = OrganizationName.of("[ORGANIZATION]");
-      CreateDeidentifyTemplateRequest request =
-          CreateDeidentifyTemplateRequest.newBuilder().setParent(parent.toString()).build();
+      OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]");
+      DeidentifyTemplate deidentifyTemplate = DeidentifyTemplate.newBuilder().build();
+
+      client.createDeidentifyTemplate(parent, deidentifyTemplate);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception
+    }
+  }
+
+  @Test
+  @SuppressWarnings("all")
+  public void createDeidentifyTemplateTest2() {
+    DeidentifyTemplateName name =
+        DeidentifyTemplateName.ofOrganizationDeidentifyTemplateName(
+            "[ORGANIZATION]", "[DEIDENTIFY_TEMPLATE]");
+    String displayName = "displayName1615086568";
+    String description = "description-1724546052";
+    DeidentifyTemplate expectedResponse =
+        DeidentifyTemplate.newBuilder()
+            .setName(name.toString())
+            .setDisplayName(displayName)
+            .setDescription(description)
+            .build();
+    mockDlpService.addResponse(expectedResponse);
+
+    OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]");
+    DeidentifyTemplate deidentifyTemplate = DeidentifyTemplate.newBuilder().build();
+    String locationId = "locationId552319461";
+
+    DeidentifyTemplate actualResponse =
+        client.createDeidentifyTemplate(parent, deidentifyTemplate, locationId);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockDlpService.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    CreateDeidentifyTemplateRequest actualRequest =
+        (CreateDeidentifyTemplateRequest) actualRequests.get(0);
+
+    Assert.assertEquals(parent, OrganizationLocationName.parse(actualRequest.getParent()));
+    Assert.assertEquals(deidentifyTemplate, actualRequest.getDeidentifyTemplate());
+    Assert.assertEquals(locationId, actualRequest.getLocationId());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  @SuppressWarnings("all")
+  public void createDeidentifyTemplateExceptionTest2() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT);
+    mockDlpService.addException(exception);
+
+    try {
+      OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]");
+      DeidentifyTemplate deidentifyTemplate = DeidentifyTemplate.newBuilder().build();
+      String locationId = "locationId552319461";
 
-      client.createDeidentifyTemplate(request);
+      client.createDeidentifyTemplate(parent, deidentifyTemplate, locationId);
       Assert.fail("No exception raised");
     } catch (InvalidArgumentException e) {
       // Expected exception
@@ -655,23 +761,27 @@ public void createDeidentifyTemplateExceptionTest() throws Exception {
   @Test
   @SuppressWarnings("all")
   public void updateDeidentifyTemplateTest() {
-    String name2 = "name2-1052831874";
+    DeidentifyTemplateName name2 =
+        DeidentifyTemplateName.ofOrganizationDeidentifyTemplateName(
+            "[ORGANIZATION]", "[DEIDENTIFY_TEMPLATE]");
     String displayName = "displayName1615086568";
     String description = "description-1724546052";
     DeidentifyTemplate expectedResponse =
         DeidentifyTemplate.newBuilder()
-            .setName(name2)
+            .setName(name2.toString())
             .setDisplayName(displayName)
             .setDescription(description)
             .build();
     mockDlpService.addResponse(expectedResponse);
 
     DeidentifyTemplateName name =
-        OrganizationDeidentifyTemplateName.of("[ORGANIZATION]", "[DEIDENTIFY_TEMPLATE]");
-    UpdateDeidentifyTemplateRequest request =
-        UpdateDeidentifyTemplateRequest.newBuilder().setName(name.toString()).build();
+        DeidentifyTemplateName.ofOrganizationDeidentifyTemplateName(
+            "[ORGANIZATION]", "[DEIDENTIFY_TEMPLATE]");
+    DeidentifyTemplate deidentifyTemplate = DeidentifyTemplate.newBuilder().build();
+    FieldMask updateMask = FieldMask.newBuilder().build();
 
-    DeidentifyTemplate actualResponse = client.updateDeidentifyTemplate(request);
+    DeidentifyTemplate actualResponse =
+        client.updateDeidentifyTemplate(name, deidentifyTemplate, updateMask);
     Assert.assertEquals(expectedResponse, actualResponse);
 
     List actualRequests = mockDlpService.getRequests();
@@ -679,7 +789,9 @@ public void updateDeidentifyTemplateTest() {
     UpdateDeidentifyTemplateRequest actualRequest =
         (UpdateDeidentifyTemplateRequest) actualRequests.get(0);
 
-    Assert.assertEquals(name, DeidentifyTemplateNames.parse(actualRequest.getName()));
+    Assert.assertEquals(name, DeidentifyTemplateName.parse(actualRequest.getName()));
+    Assert.assertEquals(deidentifyTemplate, actualRequest.getDeidentifyTemplate());
+    Assert.assertEquals(updateMask, actualRequest.getUpdateMask());
     Assert.assertTrue(
         channelProvider.isHeaderSent(
             ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
@@ -694,11 +806,12 @@ public void updateDeidentifyTemplateExceptionTest() throws Exception {
 
     try {
       DeidentifyTemplateName name =
-          OrganizationDeidentifyTemplateName.of("[ORGANIZATION]", "[DEIDENTIFY_TEMPLATE]");
-      UpdateDeidentifyTemplateRequest request =
-          UpdateDeidentifyTemplateRequest.newBuilder().setName(name.toString()).build();
+          DeidentifyTemplateName.ofOrganizationDeidentifyTemplateName(
+              "[ORGANIZATION]", "[DEIDENTIFY_TEMPLATE]");
+      DeidentifyTemplate deidentifyTemplate = DeidentifyTemplate.newBuilder().build();
+      FieldMask updateMask = FieldMask.newBuilder().build();
 
-      client.updateDeidentifyTemplate(request);
+      client.updateDeidentifyTemplate(name, deidentifyTemplate, updateMask);
       Assert.fail("No exception raised");
     } catch (InvalidArgumentException e) {
       // Expected exception
@@ -708,23 +821,24 @@ public void updateDeidentifyTemplateExceptionTest() throws Exception {
   @Test
   @SuppressWarnings("all")
   public void getDeidentifyTemplateTest() {
-    String name2 = "name2-1052831874";
+    DeidentifyTemplateName name2 =
+        DeidentifyTemplateName.ofOrganizationDeidentifyTemplateName(
+            "[ORGANIZATION]", "[DEIDENTIFY_TEMPLATE]");
     String displayName = "displayName1615086568";
     String description = "description-1724546052";
     DeidentifyTemplate expectedResponse =
         DeidentifyTemplate.newBuilder()
-            .setName(name2)
+            .setName(name2.toString())
             .setDisplayName(displayName)
             .setDescription(description)
             .build();
     mockDlpService.addResponse(expectedResponse);
 
     DeidentifyTemplateName name =
-        OrganizationDeidentifyTemplateName.of("[ORGANIZATION]", "[DEIDENTIFY_TEMPLATE]");
-    GetDeidentifyTemplateRequest request =
-        GetDeidentifyTemplateRequest.newBuilder().setName(name.toString()).build();
+        DeidentifyTemplateName.ofOrganizationDeidentifyTemplateName(
+            "[ORGANIZATION]", "[DEIDENTIFY_TEMPLATE]");
 
-    DeidentifyTemplate actualResponse = client.getDeidentifyTemplate(request);
+    DeidentifyTemplate actualResponse = client.getDeidentifyTemplate(name);
     Assert.assertEquals(expectedResponse, actualResponse);
 
     List actualRequests = mockDlpService.getRequests();
@@ -732,7 +846,7 @@ public void getDeidentifyTemplateTest() {
     GetDeidentifyTemplateRequest actualRequest =
         (GetDeidentifyTemplateRequest) actualRequests.get(0);
 
-    Assert.assertEquals(name, DeidentifyTemplateNames.parse(actualRequest.getName()));
+    Assert.assertEquals(name, DeidentifyTemplateName.parse(actualRequest.getName()));
     Assert.assertTrue(
         channelProvider.isHeaderSent(
             ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
@@ -747,11 +861,10 @@ public void getDeidentifyTemplateExceptionTest() throws Exception {
 
     try {
       DeidentifyTemplateName name =
-          OrganizationDeidentifyTemplateName.of("[ORGANIZATION]", "[DEIDENTIFY_TEMPLATE]");
-      GetDeidentifyTemplateRequest request =
-          GetDeidentifyTemplateRequest.newBuilder().setName(name.toString()).build();
+          DeidentifyTemplateName.ofOrganizationDeidentifyTemplateName(
+              "[ORGANIZATION]", "[DEIDENTIFY_TEMPLATE]");
 
-      client.getDeidentifyTemplate(request);
+      client.getDeidentifyTemplate(name);
       Assert.fail("No exception raised");
     } catch (InvalidArgumentException e) {
       // Expected exception
@@ -771,12 +884,9 @@ public void listDeidentifyTemplatesTest() {
             .build();
     mockDlpService.addResponse(expectedResponse);
 
-    OrganizationName parent = OrganizationName.of("[ORGANIZATION]");
-    ListDeidentifyTemplatesRequest request =
-        ListDeidentifyTemplatesRequest.newBuilder().setParent(parent.toString()).build();
+    OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]");
 
-    ListDeidentifyTemplatesPagedResponse pagedListResponse =
-        client.listDeidentifyTemplates(request);
+    ListDeidentifyTemplatesPagedResponse pagedListResponse = client.listDeidentifyTemplates(parent);
 
     List resources = Lists.newArrayList(pagedListResponse.iterateAll());
     Assert.assertEquals(1, resources.size());
@@ -787,7 +897,7 @@ public void listDeidentifyTemplatesTest() {
     ListDeidentifyTemplatesRequest actualRequest =
         (ListDeidentifyTemplatesRequest) actualRequests.get(0);
 
-    Assert.assertEquals(parent, OrganizationName.parse(actualRequest.getParent()));
+    Assert.assertEquals(parent, OrganizationLocationName.parse(actualRequest.getParent()));
     Assert.assertTrue(
         channelProvider.isHeaderSent(
             ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
@@ -801,11 +911,9 @@ public void listDeidentifyTemplatesExceptionTest() throws Exception {
     mockDlpService.addException(exception);
 
     try {
-      OrganizationName parent = OrganizationName.of("[ORGANIZATION]");
-      ListDeidentifyTemplatesRequest request =
-          ListDeidentifyTemplatesRequest.newBuilder().setParent(parent.toString()).build();
+      OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]");
 
-      client.listDeidentifyTemplates(request);
+      client.listDeidentifyTemplates(parent);
       Assert.fail("No exception raised");
     } catch (InvalidArgumentException e) {
       // Expected exception
@@ -819,18 +927,17 @@ public void deleteDeidentifyTemplateTest() {
     mockDlpService.addResponse(expectedResponse);
 
     DeidentifyTemplateName name =
-        OrganizationDeidentifyTemplateName.of("[ORGANIZATION]", "[DEIDENTIFY_TEMPLATE]");
-    DeleteDeidentifyTemplateRequest request =
-        DeleteDeidentifyTemplateRequest.newBuilder().setName(name.toString()).build();
+        DeidentifyTemplateName.ofOrganizationDeidentifyTemplateName(
+            "[ORGANIZATION]", "[DEIDENTIFY_TEMPLATE]");
 
-    client.deleteDeidentifyTemplate(request);
+    client.deleteDeidentifyTemplate(name);
 
     List actualRequests = mockDlpService.getRequests();
     Assert.assertEquals(1, actualRequests.size());
     DeleteDeidentifyTemplateRequest actualRequest =
         (DeleteDeidentifyTemplateRequest) actualRequests.get(0);
 
-    Assert.assertEquals(name, DeidentifyTemplateNames.parse(actualRequest.getName()));
+    Assert.assertEquals(name, DeidentifyTemplateName.parse(actualRequest.getName()));
     Assert.assertTrue(
         channelProvider.isHeaderSent(
             ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
@@ -845,11 +952,10 @@ public void deleteDeidentifyTemplateExceptionTest() throws Exception {
 
     try {
       DeidentifyTemplateName name =
-          OrganizationDeidentifyTemplateName.of("[ORGANIZATION]", "[DEIDENTIFY_TEMPLATE]");
-      DeleteDeidentifyTemplateRequest request =
-          DeleteDeidentifyTemplateRequest.newBuilder().setName(name.toString()).build();
+          DeidentifyTemplateName.ofOrganizationDeidentifyTemplateName(
+              "[ORGANIZATION]", "[DEIDENTIFY_TEMPLATE]");
 
-      client.deleteDeidentifyTemplate(request);
+      client.deleteDeidentifyTemplate(name);
       Assert.fail("No exception raised");
     } catch (InvalidArgumentException e) {
       // Expected exception
@@ -858,25 +964,30 @@ public void deleteDeidentifyTemplateExceptionTest() throws Exception {
 
   @Test
   @SuppressWarnings("all")
-  public void createDlpJobTest() {
-    String name = "name3373707";
-    String jobTriggerName = "jobTriggerName1819490804";
-    DlpJob expectedResponse =
-        DlpJob.newBuilder().setName(name).setJobTriggerName(jobTriggerName).build();
+  public void createJobTriggerTest() {
+    JobTriggerName name = JobTriggerName.ofProjectJobTriggerName("[PROJECT]", "[JOB_TRIGGER]");
+    String displayName = "displayName1615086568";
+    String description = "description-1724546052";
+    JobTrigger expectedResponse =
+        JobTrigger.newBuilder()
+            .setName(name.toString())
+            .setDisplayName(displayName)
+            .setDescription(description)
+            .build();
     mockDlpService.addResponse(expectedResponse);
 
     ProjectName parent = ProjectName.of("[PROJECT]");
-    CreateDlpJobRequest request =
-        CreateDlpJobRequest.newBuilder().setParent(parent.toString()).build();
+    JobTrigger jobTrigger = JobTrigger.newBuilder().build();
 
-    DlpJob actualResponse = client.createDlpJob(request);
+    JobTrigger actualResponse = client.createJobTrigger(parent, jobTrigger);
     Assert.assertEquals(expectedResponse, actualResponse);
 
     List actualRequests = mockDlpService.getRequests();
     Assert.assertEquals(1, actualRequests.size());
-    CreateDlpJobRequest actualRequest = (CreateDlpJobRequest) actualRequests.get(0);
+    CreateJobTriggerRequest actualRequest = (CreateJobTriggerRequest) actualRequests.get(0);
 
     Assert.assertEquals(parent, ProjectName.parse(actualRequest.getParent()));
+    Assert.assertEquals(jobTrigger, actualRequest.getJobTrigger());
     Assert.assertTrue(
         channelProvider.isHeaderSent(
             ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
@@ -885,16 +996,15 @@ public void createDlpJobTest() {
 
   @Test
   @SuppressWarnings("all")
-  public void createDlpJobExceptionTest() throws Exception {
+  public void createJobTriggerExceptionTest() throws Exception {
     StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT);
     mockDlpService.addException(exception);
 
     try {
       ProjectName parent = ProjectName.of("[PROJECT]");
-      CreateDlpJobRequest request =
-          CreateDlpJobRequest.newBuilder().setParent(parent.toString()).build();
+      JobTrigger jobTrigger = JobTrigger.newBuilder().build();
 
-      client.createDlpJob(request);
+      client.createJobTrigger(parent, jobTrigger);
       Assert.fail("No exception raised");
     } catch (InvalidArgumentException e) {
       // Expected exception
@@ -903,29 +1013,32 @@ public void createDlpJobExceptionTest() throws Exception {
 
   @Test
   @SuppressWarnings("all")
-  public void listDlpJobsTest() {
-    String nextPageToken = "";
-    DlpJob jobsElement = DlpJob.newBuilder().build();
-    List jobs = Arrays.asList(jobsElement);
-    ListDlpJobsResponse expectedResponse =
-        ListDlpJobsResponse.newBuilder().setNextPageToken(nextPageToken).addAllJobs(jobs).build();
+  public void createJobTriggerTest2() {
+    JobTriggerName name = JobTriggerName.ofProjectJobTriggerName("[PROJECT]", "[JOB_TRIGGER]");
+    String displayName = "displayName1615086568";
+    String description = "description-1724546052";
+    JobTrigger expectedResponse =
+        JobTrigger.newBuilder()
+            .setName(name.toString())
+            .setDisplayName(displayName)
+            .setDescription(description)
+            .build();
     mockDlpService.addResponse(expectedResponse);
 
     ProjectName parent = ProjectName.of("[PROJECT]");
-    ListDlpJobsRequest request =
-        ListDlpJobsRequest.newBuilder().setParent(parent.toString()).build();
+    JobTrigger jobTrigger = JobTrigger.newBuilder().build();
+    String locationId = "locationId552319461";
 
-    ListDlpJobsPagedResponse pagedListResponse = client.listDlpJobs(request);
-
-    List resources = Lists.newArrayList(pagedListResponse.iterateAll());
-    Assert.assertEquals(1, resources.size());
-    Assert.assertEquals(expectedResponse.getJobsList().get(0), resources.get(0));
+    JobTrigger actualResponse = client.createJobTrigger(parent, jobTrigger, locationId);
+    Assert.assertEquals(expectedResponse, actualResponse);
 
     List actualRequests = mockDlpService.getRequests();
     Assert.assertEquals(1, actualRequests.size());
-    ListDlpJobsRequest actualRequest = (ListDlpJobsRequest) actualRequests.get(0);
+    CreateJobTriggerRequest actualRequest = (CreateJobTriggerRequest) actualRequests.get(0);
 
     Assert.assertEquals(parent, ProjectName.parse(actualRequest.getParent()));
+    Assert.assertEquals(jobTrigger, actualRequest.getJobTrigger());
+    Assert.assertEquals(locationId, actualRequest.getLocationId());
     Assert.assertTrue(
         channelProvider.isHeaderSent(
             ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
@@ -934,16 +1047,16 @@ public void listDlpJobsTest() {
 
   @Test
   @SuppressWarnings("all")
-  public void listDlpJobsExceptionTest() throws Exception {
+  public void createJobTriggerExceptionTest2() throws Exception {
     StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT);
     mockDlpService.addException(exception);
 
     try {
       ProjectName parent = ProjectName.of("[PROJECT]");
-      ListDlpJobsRequest request =
-          ListDlpJobsRequest.newBuilder().setParent(parent.toString()).build();
+      JobTrigger jobTrigger = JobTrigger.newBuilder().build();
+      String locationId = "locationId552319461";
 
-      client.listDlpJobs(request);
+      client.createJobTrigger(parent, jobTrigger, locationId);
       Assert.fail("No exception raised");
     } catch (InvalidArgumentException e) {
       // Expected exception
@@ -952,24 +1065,32 @@ public void listDlpJobsExceptionTest() throws Exception {
 
   @Test
   @SuppressWarnings("all")
-  public void getDlpJobTest() {
-    String name2 = "name2-1052831874";
-    String jobTriggerName = "jobTriggerName1819490804";
-    DlpJob expectedResponse =
-        DlpJob.newBuilder().setName(name2).setJobTriggerName(jobTriggerName).build();
+  public void updateJobTriggerTest() {
+    JobTriggerName name2 = JobTriggerName.ofProjectJobTriggerName("[PROJECT]", "[JOB_TRIGGER]");
+    String displayName = "displayName1615086568";
+    String description = "description-1724546052";
+    JobTrigger expectedResponse =
+        JobTrigger.newBuilder()
+            .setName(name2.toString())
+            .setDisplayName(displayName)
+            .setDescription(description)
+            .build();
     mockDlpService.addResponse(expectedResponse);
 
-    DlpJobName name = DlpJobName.of("[PROJECT]", "[DLP_JOB]");
-    GetDlpJobRequest request = GetDlpJobRequest.newBuilder().setName(name.toString()).build();
+    JobTriggerName name = JobTriggerName.ofProjectJobTriggerName("[PROJECT]", "[JOB_TRIGGER]");
+    JobTrigger jobTrigger = JobTrigger.newBuilder().build();
+    FieldMask updateMask = FieldMask.newBuilder().build();
 
-    DlpJob actualResponse = client.getDlpJob(request);
+    JobTrigger actualResponse = client.updateJobTrigger(name, jobTrigger, updateMask);
     Assert.assertEquals(expectedResponse, actualResponse);
 
     List actualRequests = mockDlpService.getRequests();
     Assert.assertEquals(1, actualRequests.size());
-    GetDlpJobRequest actualRequest = (GetDlpJobRequest) actualRequests.get(0);
+    UpdateJobTriggerRequest actualRequest = (UpdateJobTriggerRequest) actualRequests.get(0);
 
-    Assert.assertEquals(name, DlpJobName.parse(actualRequest.getName()));
+    Assert.assertEquals(name, JobTriggerName.parse(actualRequest.getName()));
+    Assert.assertEquals(jobTrigger, actualRequest.getJobTrigger());
+    Assert.assertEquals(updateMask, actualRequest.getUpdateMask());
     Assert.assertTrue(
         channelProvider.isHeaderSent(
             ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
@@ -978,15 +1099,16 @@ public void getDlpJobTest() {
 
   @Test
   @SuppressWarnings("all")
-  public void getDlpJobExceptionTest() throws Exception {
+  public void updateJobTriggerExceptionTest() throws Exception {
     StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT);
     mockDlpService.addException(exception);
 
     try {
-      DlpJobName name = DlpJobName.of("[PROJECT]", "[DLP_JOB]");
-      GetDlpJobRequest request = GetDlpJobRequest.newBuilder().setName(name.toString()).build();
+      JobTriggerName name = JobTriggerName.ofProjectJobTriggerName("[PROJECT]", "[JOB_TRIGGER]");
+      JobTrigger jobTrigger = JobTrigger.newBuilder().build();
+      FieldMask updateMask = FieldMask.newBuilder().build();
 
-      client.getDlpJob(request);
+      client.updateJobTrigger(name, jobTrigger, updateMask);
       Assert.fail("No exception raised");
     } catch (InvalidArgumentException e) {
       // Expected exception
@@ -995,20 +1117,21 @@ public void getDlpJobExceptionTest() throws Exception {
 
   @Test
   @SuppressWarnings("all")
-  public void deleteDlpJobTest() {
-    Empty expectedResponse = Empty.newBuilder().build();
+  public void hybridInspectJobTriggerTest() {
+    HybridInspectResponse expectedResponse = HybridInspectResponse.newBuilder().build();
     mockDlpService.addResponse(expectedResponse);
 
-    DlpJobName name = DlpJobName.of("[PROJECT]", "[DLP_JOB]");
-    DeleteDlpJobRequest request = DeleteDlpJobRequest.newBuilder().setName(name.toString()).build();
+    JobTriggerName name = JobTriggerName.ofProjectJobTriggerName("[PROJECT]", "[JOB_TRIGGER]");
 
-    client.deleteDlpJob(request);
+    HybridInspectResponse actualResponse = client.hybridInspectJobTrigger(name);
+    Assert.assertEquals(expectedResponse, actualResponse);
 
     List actualRequests = mockDlpService.getRequests();
     Assert.assertEquals(1, actualRequests.size());
-    DeleteDlpJobRequest actualRequest = (DeleteDlpJobRequest) actualRequests.get(0);
+    HybridInspectJobTriggerRequest actualRequest =
+        (HybridInspectJobTriggerRequest) actualRequests.get(0);
 
-    Assert.assertEquals(name, DlpJobName.parse(actualRequest.getName()));
+    Assert.assertEquals(name, JobTriggerName.parse(actualRequest.getName()));
     Assert.assertTrue(
         channelProvider.isHeaderSent(
             ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
@@ -1017,16 +1140,14 @@ public void deleteDlpJobTest() {
 
   @Test
   @SuppressWarnings("all")
-  public void deleteDlpJobExceptionTest() throws Exception {
+  public void hybridInspectJobTriggerExceptionTest() throws Exception {
     StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT);
     mockDlpService.addException(exception);
 
     try {
-      DlpJobName name = DlpJobName.of("[PROJECT]", "[DLP_JOB]");
-      DeleteDlpJobRequest request =
-          DeleteDlpJobRequest.newBuilder().setName(name.toString()).build();
+      JobTriggerName name = JobTriggerName.ofProjectJobTriggerName("[PROJECT]", "[JOB_TRIGGER]");
 
-      client.deleteDlpJob(request);
+      client.hybridInspectJobTrigger(name);
       Assert.fail("No exception raised");
     } catch (InvalidArgumentException e) {
       // Expected exception
@@ -1035,20 +1156,28 @@ public void deleteDlpJobExceptionTest() throws Exception {
 
   @Test
   @SuppressWarnings("all")
-  public void cancelDlpJobTest() {
-    Empty expectedResponse = Empty.newBuilder().build();
+  public void getJobTriggerTest() {
+    JobTriggerName name2 = JobTriggerName.ofProjectJobTriggerName("[PROJECT]", "[JOB_TRIGGER]");
+    String displayName = "displayName1615086568";
+    String description = "description-1724546052";
+    JobTrigger expectedResponse =
+        JobTrigger.newBuilder()
+            .setName(name2.toString())
+            .setDisplayName(displayName)
+            .setDescription(description)
+            .build();
     mockDlpService.addResponse(expectedResponse);
 
-    DlpJobName name = DlpJobName.of("[PROJECT]", "[DLP_JOB]");
-    CancelDlpJobRequest request = CancelDlpJobRequest.newBuilder().setName(name.toString()).build();
+    JobTriggerName name = JobTriggerName.ofProjectJobTriggerName("[PROJECT]", "[JOB_TRIGGER]");
 
-    client.cancelDlpJob(request);
+    JobTrigger actualResponse = client.getJobTrigger(name);
+    Assert.assertEquals(expectedResponse, actualResponse);
 
     List actualRequests = mockDlpService.getRequests();
     Assert.assertEquals(1, actualRequests.size());
-    CancelDlpJobRequest actualRequest = (CancelDlpJobRequest) actualRequests.get(0);
+    GetJobTriggerRequest actualRequest = (GetJobTriggerRequest) actualRequests.get(0);
 
-    Assert.assertEquals(name, DlpJobName.parse(actualRequest.getName()));
+    Assert.assertEquals(name, JobTriggerName.parse(actualRequest.getName()));
     Assert.assertTrue(
         channelProvider.isHeaderSent(
             ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
@@ -1057,16 +1186,14 @@ public void cancelDlpJobTest() {
 
   @Test
   @SuppressWarnings("all")
-  public void cancelDlpJobExceptionTest() throws Exception {
+  public void getJobTriggerExceptionTest() throws Exception {
     StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT);
     mockDlpService.addException(exception);
 
     try {
-      DlpJobName name = DlpJobName.of("[PROJECT]", "[DLP_JOB]");
-      CancelDlpJobRequest request =
-          CancelDlpJobRequest.newBuilder().setName(name.toString()).build();
+      JobTriggerName name = JobTriggerName.ofProjectJobTriggerName("[PROJECT]", "[JOB_TRIGGER]");
 
-      client.cancelDlpJob(request);
+      client.getJobTrigger(name);
       Assert.fail("No exception raised");
     } catch (InvalidArgumentException e) {
       // Expected exception
@@ -1075,20 +1202,67 @@ public void cancelDlpJobExceptionTest() throws Exception {
 
   @Test
   @SuppressWarnings("all")
-  public void finishDlpJobTest() {
+  public void listJobTriggersTest() {
+    String nextPageToken = "";
+    JobTrigger jobTriggersElement = JobTrigger.newBuilder().build();
+    List jobTriggers = Arrays.asList(jobTriggersElement);
+    ListJobTriggersResponse expectedResponse =
+        ListJobTriggersResponse.newBuilder()
+            .setNextPageToken(nextPageToken)
+            .addAllJobTriggers(jobTriggers)
+            .build();
+    mockDlpService.addResponse(expectedResponse);
+
+    ProjectName parent = ProjectName.of("[PROJECT]");
+
+    ListJobTriggersPagedResponse pagedListResponse = client.listJobTriggers(parent);
+
+    List resources = Lists.newArrayList(pagedListResponse.iterateAll());
+    Assert.assertEquals(1, resources.size());
+    Assert.assertEquals(expectedResponse.getJobTriggersList().get(0), resources.get(0));
+
+    List actualRequests = mockDlpService.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    ListJobTriggersRequest actualRequest = (ListJobTriggersRequest) actualRequests.get(0);
+
+    Assert.assertEquals(parent, ProjectName.parse(actualRequest.getParent()));
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  @SuppressWarnings("all")
+  public void listJobTriggersExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT);
+    mockDlpService.addException(exception);
+
+    try {
+      ProjectName parent = ProjectName.of("[PROJECT]");
+
+      client.listJobTriggers(parent);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception
+    }
+  }
+
+  @Test
+  @SuppressWarnings("all")
+  public void deleteJobTriggerTest() {
     Empty expectedResponse = Empty.newBuilder().build();
     mockDlpService.addResponse(expectedResponse);
 
-    DlpJobName name = DlpJobName.of("[PROJECT]", "[DLP_JOB]");
-    FinishDlpJobRequest request = FinishDlpJobRequest.newBuilder().setName(name.toString()).build();
+    JobTriggerName name = JobTriggerName.ofProjectJobTriggerName("[PROJECT]", "[JOB_TRIGGER]");
 
-    client.finishDlpJob(request);
+    client.deleteJobTrigger(name);
 
     List actualRequests = mockDlpService.getRequests();
     Assert.assertEquals(1, actualRequests.size());
-    FinishDlpJobRequest actualRequest = (FinishDlpJobRequest) actualRequests.get(0);
+    DeleteJobTriggerRequest actualRequest = (DeleteJobTriggerRequest) actualRequests.get(0);
 
-    Assert.assertEquals(name, DlpJobName.parse(actualRequest.getName()));
+    Assert.assertEquals(name, JobTriggerName.parse(actualRequest.getName()));
     Assert.assertTrue(
         channelProvider.isHeaderSent(
             ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
@@ -1097,16 +1271,14 @@ public void finishDlpJobTest() {
 
   @Test
   @SuppressWarnings("all")
-  public void finishDlpJobExceptionTest() throws Exception {
+  public void deleteJobTriggerExceptionTest() throws Exception {
     StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT);
     mockDlpService.addException(exception);
 
     try {
-      DlpJobName name = DlpJobName.of("[PROJECT]", "[DLP_JOB]");
-      FinishDlpJobRequest request =
-          FinishDlpJobRequest.newBuilder().setName(name.toString()).build();
+      JobTriggerName name = JobTriggerName.ofProjectJobTriggerName("[PROJECT]", "[JOB_TRIGGER]");
 
-      client.finishDlpJob(request);
+      client.deleteJobTrigger(name);
       Assert.fail("No exception raised");
     } catch (InvalidArgumentException e) {
       // Expected exception
@@ -1115,22 +1287,25 @@ public void finishDlpJobExceptionTest() throws Exception {
 
   @Test
   @SuppressWarnings("all")
-  public void hybridInspectDlpJobTest() {
-    HybridInspectResponse expectedResponse = HybridInspectResponse.newBuilder().build();
+  public void createDlpJobTest() {
+    DlpJobName name = DlpJobName.ofProjectDlpJobName("[PROJECT]", "[DLP_JOB]");
+    String jobTriggerName = "jobTriggerName1819490804";
+    DlpJob expectedResponse =
+        DlpJob.newBuilder().setName(name.toString()).setJobTriggerName(jobTriggerName).build();
     mockDlpService.addResponse(expectedResponse);
 
-    String name = "name3373707";
-    HybridInspectDlpJobRequest request =
-        HybridInspectDlpJobRequest.newBuilder().setName(name).build();
+    ProjectName parent = ProjectName.of("[PROJECT]");
+    InspectJobConfig inspectJob = InspectJobConfig.newBuilder().build();
 
-    HybridInspectResponse actualResponse = client.hybridInspectDlpJob(request);
+    DlpJob actualResponse = client.createDlpJob(parent, inspectJob);
     Assert.assertEquals(expectedResponse, actualResponse);
 
     List actualRequests = mockDlpService.getRequests();
     Assert.assertEquals(1, actualRequests.size());
-    HybridInspectDlpJobRequest actualRequest = (HybridInspectDlpJobRequest) actualRequests.get(0);
+    CreateDlpJobRequest actualRequest = (CreateDlpJobRequest) actualRequests.get(0);
 
-    Assert.assertEquals(name, actualRequest.getName());
+    Assert.assertEquals(parent, ProjectName.parse(actualRequest.getParent()));
+    Assert.assertEquals(inspectJob, actualRequest.getInspectJob());
     Assert.assertTrue(
         channelProvider.isHeaderSent(
             ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
@@ -1139,16 +1314,15 @@ public void hybridInspectDlpJobTest() {
 
   @Test
   @SuppressWarnings("all")
-  public void hybridInspectDlpJobExceptionTest() throws Exception {
+  public void createDlpJobExceptionTest() throws Exception {
     StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT);
     mockDlpService.addException(exception);
 
     try {
-      String name = "name3373707";
-      HybridInspectDlpJobRequest request =
-          HybridInspectDlpJobRequest.newBuilder().setName(name).build();
+      ProjectName parent = ProjectName.of("[PROJECT]");
+      InspectJobConfig inspectJob = InspectJobConfig.newBuilder().build();
 
-      client.hybridInspectDlpJob(request);
+      client.createDlpJob(parent, inspectJob);
       Assert.fail("No exception raised");
     } catch (InvalidArgumentException e) {
       // Expected exception
@@ -1157,32 +1331,72 @@ public void hybridInspectDlpJobExceptionTest() throws Exception {
 
   @Test
   @SuppressWarnings("all")
-  public void listJobTriggersTest() {
-    String nextPageToken = "";
-    JobTrigger jobTriggersElement = JobTrigger.newBuilder().build();
-    List jobTriggers = Arrays.asList(jobTriggersElement);
-    ListJobTriggersResponse expectedResponse =
-        ListJobTriggersResponse.newBuilder()
-            .setNextPageToken(nextPageToken)
-            .addAllJobTriggers(jobTriggers)
-            .build();
+  public void createDlpJobTest2() {
+    DlpJobName name = DlpJobName.ofProjectDlpJobName("[PROJECT]", "[DLP_JOB]");
+    String jobTriggerName = "jobTriggerName1819490804";
+    DlpJob expectedResponse =
+        DlpJob.newBuilder().setName(name.toString()).setJobTriggerName(jobTriggerName).build();
     mockDlpService.addResponse(expectedResponse);
 
     ProjectName parent = ProjectName.of("[PROJECT]");
-    ListJobTriggersRequest request =
-        ListJobTriggersRequest.newBuilder().setParent(parent.toString()).build();
+    InspectJobConfig inspectJob = InspectJobConfig.newBuilder().build();
+    String locationId = "locationId552319461";
 
-    ListJobTriggersPagedResponse pagedListResponse = client.listJobTriggers(request);
+    DlpJob actualResponse = client.createDlpJob(parent, inspectJob, locationId);
+    Assert.assertEquals(expectedResponse, actualResponse);
 
-    List resources = Lists.newArrayList(pagedListResponse.iterateAll());
-    Assert.assertEquals(1, resources.size());
-    Assert.assertEquals(expectedResponse.getJobTriggersList().get(0), resources.get(0));
+    List actualRequests = mockDlpService.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    CreateDlpJobRequest actualRequest = (CreateDlpJobRequest) actualRequests.get(0);
+
+    Assert.assertEquals(parent, ProjectName.parse(actualRequest.getParent()));
+    Assert.assertEquals(inspectJob, actualRequest.getInspectJob());
+    Assert.assertEquals(locationId, actualRequest.getLocationId());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  @SuppressWarnings("all")
+  public void createDlpJobExceptionTest2() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT);
+    mockDlpService.addException(exception);
+
+    try {
+      ProjectName parent = ProjectName.of("[PROJECT]");
+      InspectJobConfig inspectJob = InspectJobConfig.newBuilder().build();
+      String locationId = "locationId552319461";
+
+      client.createDlpJob(parent, inspectJob, locationId);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception
+    }
+  }
+
+  @Test
+  @SuppressWarnings("all")
+  public void createDlpJobTest3() {
+    DlpJobName name = DlpJobName.ofProjectDlpJobName("[PROJECT]", "[DLP_JOB]");
+    String jobTriggerName = "jobTriggerName1819490804";
+    DlpJob expectedResponse =
+        DlpJob.newBuilder().setName(name.toString()).setJobTriggerName(jobTriggerName).build();
+    mockDlpService.addResponse(expectedResponse);
+
+    ProjectName parent = ProjectName.of("[PROJECT]");
+    RiskAnalysisJobConfig riskJob = RiskAnalysisJobConfig.newBuilder().build();
+
+    DlpJob actualResponse = client.createDlpJob(parent, riskJob);
+    Assert.assertEquals(expectedResponse, actualResponse);
 
     List actualRequests = mockDlpService.getRequests();
     Assert.assertEquals(1, actualRequests.size());
-    ListJobTriggersRequest actualRequest = (ListJobTriggersRequest) actualRequests.get(0);
+    CreateDlpJobRequest actualRequest = (CreateDlpJobRequest) actualRequests.get(0);
 
     Assert.assertEquals(parent, ProjectName.parse(actualRequest.getParent()));
+    Assert.assertEquals(riskJob, actualRequest.getRiskJob());
     Assert.assertTrue(
         channelProvider.isHeaderSent(
             ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
@@ -1191,16 +1405,15 @@ public void listJobTriggersTest() {
 
   @Test
   @SuppressWarnings("all")
-  public void listJobTriggersExceptionTest() throws Exception {
+  public void createDlpJobExceptionTest3() throws Exception {
     StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT);
     mockDlpService.addException(exception);
 
     try {
       ProjectName parent = ProjectName.of("[PROJECT]");
-      ListJobTriggersRequest request =
-          ListJobTriggersRequest.newBuilder().setParent(parent.toString()).build();
+      RiskAnalysisJobConfig riskJob = RiskAnalysisJobConfig.newBuilder().build();
 
-      client.listJobTriggers(request);
+      client.createDlpJob(parent, riskJob);
       Assert.fail("No exception raised");
     } catch (InvalidArgumentException e) {
       // Expected exception
@@ -1209,30 +1422,27 @@ public void listJobTriggersExceptionTest() throws Exception {
 
   @Test
   @SuppressWarnings("all")
-  public void getJobTriggerTest() {
-    String name2 = "name2-1052831874";
-    String displayName = "displayName1615086568";
-    String description = "description-1724546052";
-    JobTrigger expectedResponse =
-        JobTrigger.newBuilder()
-            .setName(name2)
-            .setDisplayName(displayName)
-            .setDescription(description)
-            .build();
+  public void createDlpJobTest4() {
+    DlpJobName name = DlpJobName.ofProjectDlpJobName("[PROJECT]", "[DLP_JOB]");
+    String jobTriggerName = "jobTriggerName1819490804";
+    DlpJob expectedResponse =
+        DlpJob.newBuilder().setName(name.toString()).setJobTriggerName(jobTriggerName).build();
     mockDlpService.addResponse(expectedResponse);
 
-    ProjectJobTriggerName name = ProjectJobTriggerName.of("[PROJECT]", "[JOB_TRIGGER]");
-    GetJobTriggerRequest request =
-        GetJobTriggerRequest.newBuilder().setName(name.toString()).build();
+    ProjectName parent = ProjectName.of("[PROJECT]");
+    RiskAnalysisJobConfig riskJob = RiskAnalysisJobConfig.newBuilder().build();
+    String locationId = "locationId552319461";
 
-    JobTrigger actualResponse = client.getJobTrigger(request);
+    DlpJob actualResponse = client.createDlpJob(parent, riskJob, locationId);
     Assert.assertEquals(expectedResponse, actualResponse);
 
     List actualRequests = mockDlpService.getRequests();
     Assert.assertEquals(1, actualRequests.size());
-    GetJobTriggerRequest actualRequest = (GetJobTriggerRequest) actualRequests.get(0);
+    CreateDlpJobRequest actualRequest = (CreateDlpJobRequest) actualRequests.get(0);
 
-    Assert.assertEquals(name, ProjectJobTriggerName.parse(actualRequest.getName()));
+    Assert.assertEquals(parent, ProjectName.parse(actualRequest.getParent()));
+    Assert.assertEquals(riskJob, actualRequest.getRiskJob());
+    Assert.assertEquals(locationId, actualRequest.getLocationId());
     Assert.assertTrue(
         channelProvider.isHeaderSent(
             ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
@@ -1241,16 +1451,16 @@ public void getJobTriggerTest() {
 
   @Test
   @SuppressWarnings("all")
-  public void getJobTriggerExceptionTest() throws Exception {
+  public void createDlpJobExceptionTest4() throws Exception {
     StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT);
     mockDlpService.addException(exception);
 
     try {
-      ProjectJobTriggerName name = ProjectJobTriggerName.of("[PROJECT]", "[JOB_TRIGGER]");
-      GetJobTriggerRequest request =
-          GetJobTriggerRequest.newBuilder().setName(name.toString()).build();
+      ProjectName parent = ProjectName.of("[PROJECT]");
+      RiskAnalysisJobConfig riskJob = RiskAnalysisJobConfig.newBuilder().build();
+      String locationId = "locationId552319461";
 
-      client.getJobTrigger(request);
+      client.createDlpJob(parent, riskJob, locationId);
       Assert.fail("No exception raised");
     } catch (InvalidArgumentException e) {
       // Expected exception
@@ -1259,21 +1469,27 @@ public void getJobTriggerExceptionTest() throws Exception {
 
   @Test
   @SuppressWarnings("all")
-  public void deleteJobTriggerTest() {
-    Empty expectedResponse = Empty.newBuilder().build();
+  public void listDlpJobsTest() {
+    String nextPageToken = "";
+    DlpJob jobsElement = DlpJob.newBuilder().build();
+    List jobs = Arrays.asList(jobsElement);
+    ListDlpJobsResponse expectedResponse =
+        ListDlpJobsResponse.newBuilder().setNextPageToken(nextPageToken).addAllJobs(jobs).build();
     mockDlpService.addResponse(expectedResponse);
 
-    ProjectJobTriggerName name = ProjectJobTriggerName.of("[PROJECT]", "[JOB_TRIGGER]");
-    DeleteJobTriggerRequest request =
-        DeleteJobTriggerRequest.newBuilder().setName(name.toString()).build();
+    ProjectName parent = ProjectName.of("[PROJECT]");
+
+    ListDlpJobsPagedResponse pagedListResponse = client.listDlpJobs(parent);
 
-    client.deleteJobTrigger(request);
+    List resources = Lists.newArrayList(pagedListResponse.iterateAll());
+    Assert.assertEquals(1, resources.size());
+    Assert.assertEquals(expectedResponse.getJobsList().get(0), resources.get(0));
 
     List actualRequests = mockDlpService.getRequests();
     Assert.assertEquals(1, actualRequests.size());
-    DeleteJobTriggerRequest actualRequest = (DeleteJobTriggerRequest) actualRequests.get(0);
+    ListDlpJobsRequest actualRequest = (ListDlpJobsRequest) actualRequests.get(0);
 
-    Assert.assertEquals(name, ProjectJobTriggerName.parse(actualRequest.getName()));
+    Assert.assertEquals(parent, ProjectName.parse(actualRequest.getParent()));
     Assert.assertTrue(
         channelProvider.isHeaderSent(
             ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
@@ -1282,16 +1498,14 @@ public void deleteJobTriggerTest() {
 
   @Test
   @SuppressWarnings("all")
-  public void deleteJobTriggerExceptionTest() throws Exception {
+  public void listDlpJobsExceptionTest() throws Exception {
     StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT);
     mockDlpService.addException(exception);
 
     try {
-      ProjectJobTriggerName name = ProjectJobTriggerName.of("[PROJECT]", "[JOB_TRIGGER]");
-      DeleteJobTriggerRequest request =
-          DeleteJobTriggerRequest.newBuilder().setName(name.toString()).build();
+      ProjectName parent = ProjectName.of("[PROJECT]");
 
-      client.deleteJobTrigger(request);
+      client.listDlpJobs(parent);
       Assert.fail("No exception raised");
     } catch (InvalidArgumentException e) {
       // Expected exception
@@ -1300,23 +1514,23 @@ public void deleteJobTriggerExceptionTest() throws Exception {
 
   @Test
   @SuppressWarnings("all")
-  public void hybridInspectJobTriggerTest() {
-    HybridInspectResponse expectedResponse = HybridInspectResponse.newBuilder().build();
+  public void getDlpJobTest() {
+    DlpJobName name2 = DlpJobName.ofProjectDlpJobName("[PROJECT]", "[DLP_JOB]");
+    String jobTriggerName = "jobTriggerName1819490804";
+    DlpJob expectedResponse =
+        DlpJob.newBuilder().setName(name2.toString()).setJobTriggerName(jobTriggerName).build();
     mockDlpService.addResponse(expectedResponse);
 
-    String name = "name3373707";
-    HybridInspectJobTriggerRequest request =
-        HybridInspectJobTriggerRequest.newBuilder().setName(name).build();
+    DlpJobName name = DlpJobName.ofProjectDlpJobName("[PROJECT]", "[DLP_JOB]");
 
-    HybridInspectResponse actualResponse = client.hybridInspectJobTrigger(request);
+    DlpJob actualResponse = client.getDlpJob(name);
     Assert.assertEquals(expectedResponse, actualResponse);
 
     List actualRequests = mockDlpService.getRequests();
     Assert.assertEquals(1, actualRequests.size());
-    HybridInspectJobTriggerRequest actualRequest =
-        (HybridInspectJobTriggerRequest) actualRequests.get(0);
+    GetDlpJobRequest actualRequest = (GetDlpJobRequest) actualRequests.get(0);
 
-    Assert.assertEquals(name, actualRequest.getName());
+    Assert.assertEquals(name, DlpJobName.parse(actualRequest.getName()));
     Assert.assertTrue(
         channelProvider.isHeaderSent(
             ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
@@ -1325,16 +1539,14 @@ public void hybridInspectJobTriggerTest() {
 
   @Test
   @SuppressWarnings("all")
-  public void hybridInspectJobTriggerExceptionTest() throws Exception {
+  public void getDlpJobExceptionTest() throws Exception {
     StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT);
     mockDlpService.addException(exception);
 
     try {
-      String name = "name3373707";
-      HybridInspectJobTriggerRequest request =
-          HybridInspectJobTriggerRequest.newBuilder().setName(name).build();
+      DlpJobName name = DlpJobName.ofProjectDlpJobName("[PROJECT]", "[DLP_JOB]");
 
-      client.hybridInspectJobTrigger(request);
+      client.getDlpJob(name);
       Assert.fail("No exception raised");
     } catch (InvalidArgumentException e) {
       // Expected exception
@@ -1343,30 +1555,19 @@ public void hybridInspectJobTriggerExceptionTest() throws Exception {
 
   @Test
   @SuppressWarnings("all")
-  public void updateJobTriggerTest() {
-    String name2 = "name2-1052831874";
-    String displayName = "displayName1615086568";
-    String description = "description-1724546052";
-    JobTrigger expectedResponse =
-        JobTrigger.newBuilder()
-            .setName(name2)
-            .setDisplayName(displayName)
-            .setDescription(description)
-            .build();
+  public void deleteDlpJobTest() {
+    Empty expectedResponse = Empty.newBuilder().build();
     mockDlpService.addResponse(expectedResponse);
 
-    ProjectJobTriggerName name = ProjectJobTriggerName.of("[PROJECT]", "[JOB_TRIGGER]");
-    UpdateJobTriggerRequest request =
-        UpdateJobTriggerRequest.newBuilder().setName(name.toString()).build();
+    DlpJobName name = DlpJobName.ofProjectDlpJobName("[PROJECT]", "[DLP_JOB]");
 
-    JobTrigger actualResponse = client.updateJobTrigger(request);
-    Assert.assertEquals(expectedResponse, actualResponse);
+    client.deleteDlpJob(name);
 
     List actualRequests = mockDlpService.getRequests();
     Assert.assertEquals(1, actualRequests.size());
-    UpdateJobTriggerRequest actualRequest = (UpdateJobTriggerRequest) actualRequests.get(0);
+    DeleteDlpJobRequest actualRequest = (DeleteDlpJobRequest) actualRequests.get(0);
 
-    Assert.assertEquals(name, ProjectJobTriggerName.parse(actualRequest.getName()));
+    Assert.assertEquals(name, DlpJobName.parse(actualRequest.getName()));
     Assert.assertTrue(
         channelProvider.isHeaderSent(
             ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
@@ -1375,16 +1576,14 @@ public void updateJobTriggerTest() {
 
   @Test
   @SuppressWarnings("all")
-  public void updateJobTriggerExceptionTest() throws Exception {
+  public void deleteDlpJobExceptionTest() throws Exception {
     StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT);
     mockDlpService.addException(exception);
 
     try {
-      ProjectJobTriggerName name = ProjectJobTriggerName.of("[PROJECT]", "[JOB_TRIGGER]");
-      UpdateJobTriggerRequest request =
-          UpdateJobTriggerRequest.newBuilder().setName(name.toString()).build();
+      DlpJobName name = DlpJobName.ofProjectDlpJobName("[PROJECT]", "[DLP_JOB]");
 
-      client.updateJobTrigger(request);
+      client.deleteDlpJob(name);
       Assert.fail("No exception raised");
     } catch (InvalidArgumentException e) {
       // Expected exception
@@ -1393,30 +1592,20 @@ public void updateJobTriggerExceptionTest() throws Exception {
 
   @Test
   @SuppressWarnings("all")
-  public void createJobTriggerTest() {
-    String name = "name3373707";
-    String displayName = "displayName1615086568";
-    String description = "description-1724546052";
-    JobTrigger expectedResponse =
-        JobTrigger.newBuilder()
-            .setName(name)
-            .setDisplayName(displayName)
-            .setDescription(description)
-            .build();
+  public void cancelDlpJobTest() {
+    Empty expectedResponse = Empty.newBuilder().build();
     mockDlpService.addResponse(expectedResponse);
 
-    ProjectName parent = ProjectName.of("[PROJECT]");
-    CreateJobTriggerRequest request =
-        CreateJobTriggerRequest.newBuilder().setParent(parent.toString()).build();
+    DlpJobName name = DlpJobName.ofProjectDlpJobName("[PROJECT]", "[DLP_JOB]");
+    CancelDlpJobRequest request = CancelDlpJobRequest.newBuilder().setName(name.toString()).build();
 
-    JobTrigger actualResponse = client.createJobTrigger(request);
-    Assert.assertEquals(expectedResponse, actualResponse);
+    client.cancelDlpJob(request);
 
     List actualRequests = mockDlpService.getRequests();
     Assert.assertEquals(1, actualRequests.size());
-    CreateJobTriggerRequest actualRequest = (CreateJobTriggerRequest) actualRequests.get(0);
+    CancelDlpJobRequest actualRequest = (CancelDlpJobRequest) actualRequests.get(0);
 
-    Assert.assertEquals(parent, ProjectName.parse(actualRequest.getParent()));
+    Assert.assertEquals(name, DlpJobName.parse(actualRequest.getName()));
     Assert.assertTrue(
         channelProvider.isHeaderSent(
             ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
@@ -1425,16 +1614,16 @@ public void createJobTriggerTest() {
 
   @Test
   @SuppressWarnings("all")
-  public void createJobTriggerExceptionTest() throws Exception {
+  public void cancelDlpJobExceptionTest() throws Exception {
     StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT);
     mockDlpService.addException(exception);
 
     try {
-      ProjectName parent = ProjectName.of("[PROJECT]");
-      CreateJobTriggerRequest request =
-          CreateJobTriggerRequest.newBuilder().setParent(parent.toString()).build();
+      DlpJobName name = DlpJobName.ofProjectDlpJobName("[PROJECT]", "[DLP_JOB]");
+      CancelDlpJobRequest request =
+          CancelDlpJobRequest.newBuilder().setName(name.toString()).build();
 
-      client.createJobTrigger(request);
+      client.cancelDlpJob(request);
       Assert.fail("No exception raised");
     } catch (InvalidArgumentException e) {
       // Expected exception
@@ -1444,22 +1633,23 @@ public void createJobTriggerExceptionTest() throws Exception {
   @Test
   @SuppressWarnings("all")
   public void createStoredInfoTypeTest() {
-    String name = "name3373707";
-    StoredInfoType expectedResponse = StoredInfoType.newBuilder().setName(name).build();
+    StoredInfoTypeName name =
+        StoredInfoTypeName.ofOrganizationStoredInfoTypeName("[ORGANIZATION]", "[STORED_INFO_TYPE]");
+    StoredInfoType expectedResponse = StoredInfoType.newBuilder().setName(name.toString()).build();
     mockDlpService.addResponse(expectedResponse);
 
-    OrganizationName parent = OrganizationName.of("[ORGANIZATION]");
-    CreateStoredInfoTypeRequest request =
-        CreateStoredInfoTypeRequest.newBuilder().setParent(parent.toString()).build();
+    OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]");
+    StoredInfoTypeConfig config = StoredInfoTypeConfig.newBuilder().build();
 
-    StoredInfoType actualResponse = client.createStoredInfoType(request);
+    StoredInfoType actualResponse = client.createStoredInfoType(parent, config);
     Assert.assertEquals(expectedResponse, actualResponse);
 
     List actualRequests = mockDlpService.getRequests();
     Assert.assertEquals(1, actualRequests.size());
     CreateStoredInfoTypeRequest actualRequest = (CreateStoredInfoTypeRequest) actualRequests.get(0);
 
-    Assert.assertEquals(parent, OrganizationName.parse(actualRequest.getParent()));
+    Assert.assertEquals(parent, OrganizationLocationName.parse(actualRequest.getParent()));
+    Assert.assertEquals(config, actualRequest.getConfig());
     Assert.assertTrue(
         channelProvider.isHeaderSent(
             ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
@@ -1473,11 +1663,56 @@ public void createStoredInfoTypeExceptionTest() throws Exception {
     mockDlpService.addException(exception);
 
     try {
-      OrganizationName parent = OrganizationName.of("[ORGANIZATION]");
-      CreateStoredInfoTypeRequest request =
-          CreateStoredInfoTypeRequest.newBuilder().setParent(parent.toString()).build();
+      OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]");
+      StoredInfoTypeConfig config = StoredInfoTypeConfig.newBuilder().build();
 
-      client.createStoredInfoType(request);
+      client.createStoredInfoType(parent, config);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception
+    }
+  }
+
+  @Test
+  @SuppressWarnings("all")
+  public void createStoredInfoTypeTest2() {
+    StoredInfoTypeName name =
+        StoredInfoTypeName.ofOrganizationStoredInfoTypeName("[ORGANIZATION]", "[STORED_INFO_TYPE]");
+    StoredInfoType expectedResponse = StoredInfoType.newBuilder().setName(name.toString()).build();
+    mockDlpService.addResponse(expectedResponse);
+
+    OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]");
+    StoredInfoTypeConfig config = StoredInfoTypeConfig.newBuilder().build();
+    String locationId = "locationId552319461";
+
+    StoredInfoType actualResponse = client.createStoredInfoType(parent, config, locationId);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockDlpService.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    CreateStoredInfoTypeRequest actualRequest = (CreateStoredInfoTypeRequest) actualRequests.get(0);
+
+    Assert.assertEquals(parent, OrganizationLocationName.parse(actualRequest.getParent()));
+    Assert.assertEquals(config, actualRequest.getConfig());
+    Assert.assertEquals(locationId, actualRequest.getLocationId());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  @SuppressWarnings("all")
+  public void createStoredInfoTypeExceptionTest2() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT);
+    mockDlpService.addException(exception);
+
+    try {
+      OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]");
+      StoredInfoTypeConfig config = StoredInfoTypeConfig.newBuilder().build();
+      String locationId = "locationId552319461";
+
+      client.createStoredInfoType(parent, config, locationId);
       Assert.fail("No exception raised");
     } catch (InvalidArgumentException e) {
       // Expected exception
@@ -1487,23 +1722,26 @@ public void createStoredInfoTypeExceptionTest() throws Exception {
   @Test
   @SuppressWarnings("all")
   public void updateStoredInfoTypeTest() {
-    String name2 = "name2-1052831874";
-    StoredInfoType expectedResponse = StoredInfoType.newBuilder().setName(name2).build();
+    StoredInfoTypeName name2 =
+        StoredInfoTypeName.ofOrganizationStoredInfoTypeName("[ORGANIZATION]", "[STORED_INFO_TYPE]");
+    StoredInfoType expectedResponse = StoredInfoType.newBuilder().setName(name2.toString()).build();
     mockDlpService.addResponse(expectedResponse);
 
     StoredInfoTypeName name =
-        OrganizationStoredInfoTypeName.of("[ORGANIZATION]", "[STORED_INFO_TYPE]");
-    UpdateStoredInfoTypeRequest request =
-        UpdateStoredInfoTypeRequest.newBuilder().setName(name.toString()).build();
+        StoredInfoTypeName.ofOrganizationStoredInfoTypeName("[ORGANIZATION]", "[STORED_INFO_TYPE]");
+    StoredInfoTypeConfig config = StoredInfoTypeConfig.newBuilder().build();
+    FieldMask updateMask = FieldMask.newBuilder().build();
 
-    StoredInfoType actualResponse = client.updateStoredInfoType(request);
+    StoredInfoType actualResponse = client.updateStoredInfoType(name, config, updateMask);
     Assert.assertEquals(expectedResponse, actualResponse);
 
     List actualRequests = mockDlpService.getRequests();
     Assert.assertEquals(1, actualRequests.size());
     UpdateStoredInfoTypeRequest actualRequest = (UpdateStoredInfoTypeRequest) actualRequests.get(0);
 
-    Assert.assertEquals(name, StoredInfoTypeNames.parse(actualRequest.getName()));
+    Assert.assertEquals(name, StoredInfoTypeName.parse(actualRequest.getName()));
+    Assert.assertEquals(config, actualRequest.getConfig());
+    Assert.assertEquals(updateMask, actualRequest.getUpdateMask());
     Assert.assertTrue(
         channelProvider.isHeaderSent(
             ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
@@ -1518,11 +1756,12 @@ public void updateStoredInfoTypeExceptionTest() throws Exception {
 
     try {
       StoredInfoTypeName name =
-          OrganizationStoredInfoTypeName.of("[ORGANIZATION]", "[STORED_INFO_TYPE]");
-      UpdateStoredInfoTypeRequest request =
-          UpdateStoredInfoTypeRequest.newBuilder().setName(name.toString()).build();
+          StoredInfoTypeName.ofOrganizationStoredInfoTypeName(
+              "[ORGANIZATION]", "[STORED_INFO_TYPE]");
+      StoredInfoTypeConfig config = StoredInfoTypeConfig.newBuilder().build();
+      FieldMask updateMask = FieldMask.newBuilder().build();
 
-      client.updateStoredInfoType(request);
+      client.updateStoredInfoType(name, config, updateMask);
       Assert.fail("No exception raised");
     } catch (InvalidArgumentException e) {
       // Expected exception
@@ -1532,23 +1771,22 @@ public void updateStoredInfoTypeExceptionTest() throws Exception {
   @Test
   @SuppressWarnings("all")
   public void getStoredInfoTypeTest() {
-    String name2 = "name2-1052831874";
-    StoredInfoType expectedResponse = StoredInfoType.newBuilder().setName(name2).build();
+    StoredInfoTypeName name2 =
+        StoredInfoTypeName.ofOrganizationStoredInfoTypeName("[ORGANIZATION]", "[STORED_INFO_TYPE]");
+    StoredInfoType expectedResponse = StoredInfoType.newBuilder().setName(name2.toString()).build();
     mockDlpService.addResponse(expectedResponse);
 
     StoredInfoTypeName name =
-        OrganizationStoredInfoTypeName.of("[ORGANIZATION]", "[STORED_INFO_TYPE]");
-    GetStoredInfoTypeRequest request =
-        GetStoredInfoTypeRequest.newBuilder().setName(name.toString()).build();
+        StoredInfoTypeName.ofOrganizationStoredInfoTypeName("[ORGANIZATION]", "[STORED_INFO_TYPE]");
 
-    StoredInfoType actualResponse = client.getStoredInfoType(request);
+    StoredInfoType actualResponse = client.getStoredInfoType(name);
     Assert.assertEquals(expectedResponse, actualResponse);
 
     List actualRequests = mockDlpService.getRequests();
     Assert.assertEquals(1, actualRequests.size());
     GetStoredInfoTypeRequest actualRequest = (GetStoredInfoTypeRequest) actualRequests.get(0);
 
-    Assert.assertEquals(name, StoredInfoTypeNames.parse(actualRequest.getName()));
+    Assert.assertEquals(name, StoredInfoTypeName.parse(actualRequest.getName()));
     Assert.assertTrue(
         channelProvider.isHeaderSent(
             ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
@@ -1563,11 +1801,10 @@ public void getStoredInfoTypeExceptionTest() throws Exception {
 
     try {
       StoredInfoTypeName name =
-          OrganizationStoredInfoTypeName.of("[ORGANIZATION]", "[STORED_INFO_TYPE]");
-      GetStoredInfoTypeRequest request =
-          GetStoredInfoTypeRequest.newBuilder().setName(name.toString()).build();
+          StoredInfoTypeName.ofOrganizationStoredInfoTypeName(
+              "[ORGANIZATION]", "[STORED_INFO_TYPE]");
 
-      client.getStoredInfoType(request);
+      client.getStoredInfoType(name);
       Assert.fail("No exception raised");
     } catch (InvalidArgumentException e) {
       // Expected exception
@@ -1587,11 +1824,9 @@ public void listStoredInfoTypesTest() {
             .build();
     mockDlpService.addResponse(expectedResponse);
 
-    OrganizationName parent = OrganizationName.of("[ORGANIZATION]");
-    ListStoredInfoTypesRequest request =
-        ListStoredInfoTypesRequest.newBuilder().setParent(parent.toString()).build();
+    OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]");
 
-    ListStoredInfoTypesPagedResponse pagedListResponse = client.listStoredInfoTypes(request);
+    ListStoredInfoTypesPagedResponse pagedListResponse = client.listStoredInfoTypes(parent);
 
     List resources = Lists.newArrayList(pagedListResponse.iterateAll());
     Assert.assertEquals(1, resources.size());
@@ -1601,7 +1836,7 @@ public void listStoredInfoTypesTest() {
     Assert.assertEquals(1, actualRequests.size());
     ListStoredInfoTypesRequest actualRequest = (ListStoredInfoTypesRequest) actualRequests.get(0);
 
-    Assert.assertEquals(parent, OrganizationName.parse(actualRequest.getParent()));
+    Assert.assertEquals(parent, OrganizationLocationName.parse(actualRequest.getParent()));
     Assert.assertTrue(
         channelProvider.isHeaderSent(
             ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
@@ -1615,11 +1850,9 @@ public void listStoredInfoTypesExceptionTest() throws Exception {
     mockDlpService.addException(exception);
 
     try {
-      OrganizationName parent = OrganizationName.of("[ORGANIZATION]");
-      ListStoredInfoTypesRequest request =
-          ListStoredInfoTypesRequest.newBuilder().setParent(parent.toString()).build();
+      OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]");
 
-      client.listStoredInfoTypes(request);
+      client.listStoredInfoTypes(parent);
       Assert.fail("No exception raised");
     } catch (InvalidArgumentException e) {
       // Expected exception
@@ -1633,17 +1866,15 @@ public void deleteStoredInfoTypeTest() {
     mockDlpService.addResponse(expectedResponse);
 
     StoredInfoTypeName name =
-        OrganizationStoredInfoTypeName.of("[ORGANIZATION]", "[STORED_INFO_TYPE]");
-    DeleteStoredInfoTypeRequest request =
-        DeleteStoredInfoTypeRequest.newBuilder().setName(name.toString()).build();
+        StoredInfoTypeName.ofOrganizationStoredInfoTypeName("[ORGANIZATION]", "[STORED_INFO_TYPE]");
 
-    client.deleteStoredInfoType(request);
+    client.deleteStoredInfoType(name);
 
     List actualRequests = mockDlpService.getRequests();
     Assert.assertEquals(1, actualRequests.size());
     DeleteStoredInfoTypeRequest actualRequest = (DeleteStoredInfoTypeRequest) actualRequests.get(0);
 
-    Assert.assertEquals(name, StoredInfoTypeNames.parse(actualRequest.getName()));
+    Assert.assertEquals(name, StoredInfoTypeName.parse(actualRequest.getName()));
     Assert.assertTrue(
         channelProvider.isHeaderSent(
             ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
@@ -1658,11 +1889,88 @@ public void deleteStoredInfoTypeExceptionTest() throws Exception {
 
     try {
       StoredInfoTypeName name =
-          OrganizationStoredInfoTypeName.of("[ORGANIZATION]", "[STORED_INFO_TYPE]");
-      DeleteStoredInfoTypeRequest request =
-          DeleteStoredInfoTypeRequest.newBuilder().setName(name.toString()).build();
+          StoredInfoTypeName.ofOrganizationStoredInfoTypeName(
+              "[ORGANIZATION]", "[STORED_INFO_TYPE]");
+
+      client.deleteStoredInfoType(name);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception
+    }
+  }
+
+  @Test
+  @SuppressWarnings("all")
+  public void hybridInspectDlpJobTest() {
+    HybridInspectResponse expectedResponse = HybridInspectResponse.newBuilder().build();
+    mockDlpService.addResponse(expectedResponse);
 
-      client.deleteStoredInfoType(request);
+    DlpJobName name = DlpJobName.ofProjectDlpJobName("[PROJECT]", "[DLP_JOB]");
+
+    HybridInspectResponse actualResponse = client.hybridInspectDlpJob(name);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockDlpService.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    HybridInspectDlpJobRequest actualRequest = (HybridInspectDlpJobRequest) actualRequests.get(0);
+
+    Assert.assertEquals(name, DlpJobName.parse(actualRequest.getName()));
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  @SuppressWarnings("all")
+  public void hybridInspectDlpJobExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT);
+    mockDlpService.addException(exception);
+
+    try {
+      DlpJobName name = DlpJobName.ofProjectDlpJobName("[PROJECT]", "[DLP_JOB]");
+
+      client.hybridInspectDlpJob(name);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception
+    }
+  }
+
+  @Test
+  @SuppressWarnings("all")
+  public void finishDlpJobTest() {
+    Empty expectedResponse = Empty.newBuilder().build();
+    mockDlpService.addResponse(expectedResponse);
+
+    DlpJobName name = DlpJobName.ofProjectDlpJobName("[PROJECT]", "[DLP_JOB]");
+    FinishDlpJobRequest request = FinishDlpJobRequest.newBuilder().setName(name.toString()).build();
+
+    client.finishDlpJob(request);
+
+    List actualRequests = mockDlpService.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    FinishDlpJobRequest actualRequest = (FinishDlpJobRequest) actualRequests.get(0);
+
+    Assert.assertEquals(name, DlpJobName.parse(actualRequest.getName()));
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  @SuppressWarnings("all")
+  public void finishDlpJobExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT);
+    mockDlpService.addException(exception);
+
+    try {
+      DlpJobName name = DlpJobName.ofProjectDlpJobName("[PROJECT]", "[DLP_JOB]");
+      FinishDlpJobRequest request =
+          FinishDlpJobRequest.newBuilder().setName(name.toString()).build();
+
+      client.finishDlpJob(request);
       Assert.fail("No exception raised");
     } catch (InvalidArgumentException e) {
       // Expected exception
diff --git a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DeidentifyTemplateName.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DeidentifyTemplateName.java
index c567e216..c7d25571 100644
--- a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DeidentifyTemplateName.java
+++ b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DeidentifyTemplateName.java
@@ -16,10 +16,473 @@
 
 package com.google.privacy.dlp.v2;
 
+import com.google.api.core.BetaApi;
+import com.google.api.pathtemplate.PathTemplate;
+import com.google.api.pathtemplate.ValidationException;
 import com.google.api.resourcenames.ResourceName;
+import com.google.common.base.Preconditions;
+import com.google.common.collect.ImmutableMap;
+import java.util.Map;
+import java.util.Objects;
 
 /** AUTO-GENERATED DOCUMENTATION AND CLASS */
 @javax.annotation.Generated("by GAPIC protoc plugin")
-public abstract class DeidentifyTemplateName implements ResourceName {
+public class DeidentifyTemplateName implements ResourceName {
+
+  @Deprecated
   protected DeidentifyTemplateName() {}
+
+  private static final PathTemplate ORGANIZATION_DEIDENTIFY_TEMPLATE_PATH_TEMPLATE =
+      PathTemplate.createWithoutUrlEncoding(
+          "organizations/{organization}/deidentifyTemplates/{deidentify_template}");
+  private static final PathTemplate PROJECT_DEIDENTIFY_TEMPLATE_PATH_TEMPLATE =
+      PathTemplate.createWithoutUrlEncoding(
+          "projects/{project}/deidentifyTemplates/{deidentify_template}");
+  private static final PathTemplate ORGANIZATION_LOCATION_DEIDENTIFY_TEMPLATE_PATH_TEMPLATE =
+      PathTemplate.createWithoutUrlEncoding(
+          "organizations/{organization}/locations/{location}/deidentifyTemplates/{deidentify_template}");
+  private static final PathTemplate PROJECT_LOCATION_DEIDENTIFY_TEMPLATE_PATH_TEMPLATE =
+      PathTemplate.createWithoutUrlEncoding(
+          "projects/{project}/locations/{location}/deidentifyTemplates/{deidentify_template}");
+
+  private volatile Map fieldValuesMap;
+  private PathTemplate pathTemplate;
+  private String fixedValue;
+
+  private String organization;
+  private String deidentifyTemplate;
+  private String project;
+  private String location;
+
+  public String getOrganization() {
+    return organization;
+  }
+
+  public String getDeidentifyTemplate() {
+    return deidentifyTemplate;
+  }
+
+  public String getProject() {
+    return project;
+  }
+
+  public String getLocation() {
+    return location;
+  }
+
+  private DeidentifyTemplateName(Builder builder) {
+    organization = Preconditions.checkNotNull(builder.getOrganization());
+    deidentifyTemplate = Preconditions.checkNotNull(builder.getDeidentifyTemplate());
+    pathTemplate = ORGANIZATION_DEIDENTIFY_TEMPLATE_PATH_TEMPLATE;
+  }
+
+  private DeidentifyTemplateName(ProjectDeidentifyTemplateBuilder builder) {
+    project = Preconditions.checkNotNull(builder.getProject());
+    deidentifyTemplate = Preconditions.checkNotNull(builder.getDeidentifyTemplate());
+    pathTemplate = PROJECT_DEIDENTIFY_TEMPLATE_PATH_TEMPLATE;
+  }
+
+  private DeidentifyTemplateName(OrganizationLocationDeidentifyTemplateBuilder builder) {
+    organization = Preconditions.checkNotNull(builder.getOrganization());
+    location = Preconditions.checkNotNull(builder.getLocation());
+    deidentifyTemplate = Preconditions.checkNotNull(builder.getDeidentifyTemplate());
+    pathTemplate = ORGANIZATION_LOCATION_DEIDENTIFY_TEMPLATE_PATH_TEMPLATE;
+  }
+
+  private DeidentifyTemplateName(ProjectLocationDeidentifyTemplateBuilder builder) {
+    project = Preconditions.checkNotNull(builder.getProject());
+    location = Preconditions.checkNotNull(builder.getLocation());
+    deidentifyTemplate = Preconditions.checkNotNull(builder.getDeidentifyTemplate());
+    pathTemplate = PROJECT_LOCATION_DEIDENTIFY_TEMPLATE_PATH_TEMPLATE;
+  }
+
+  public static Builder newBuilder() {
+    return new Builder();
+  }
+
+  @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.")
+  public static Builder newOrganizationDeidentifyTemplateBuilder() {
+    return new Builder();
+  }
+
+  @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.")
+  public static ProjectDeidentifyTemplateBuilder newProjectDeidentifyTemplateBuilder() {
+    return new ProjectDeidentifyTemplateBuilder();
+  }
+
+  @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.")
+  public static OrganizationLocationDeidentifyTemplateBuilder
+      newOrganizationLocationDeidentifyTemplateBuilder() {
+    return new OrganizationLocationDeidentifyTemplateBuilder();
+  }
+
+  @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.")
+  public static ProjectLocationDeidentifyTemplateBuilder
+      newProjectLocationDeidentifyTemplateBuilder() {
+    return new ProjectLocationDeidentifyTemplateBuilder();
+  }
+
+  public Builder toBuilder() {
+    return new Builder(this);
+  }
+
+  public static DeidentifyTemplateName of(String organization, String deidentifyTemplate) {
+    return newOrganizationDeidentifyTemplateBuilder()
+        .setOrganization(organization)
+        .setDeidentifyTemplate(deidentifyTemplate)
+        .build();
+  }
+
+  @BetaApi("The static create methods are not stable yet and may be changed in the future.")
+  public static DeidentifyTemplateName ofOrganizationDeidentifyTemplateName(
+      String organization, String deidentifyTemplate) {
+    return newOrganizationDeidentifyTemplateBuilder()
+        .setOrganization(organization)
+        .setDeidentifyTemplate(deidentifyTemplate)
+        .build();
+  }
+
+  @BetaApi("The static create methods are not stable yet and may be changed in the future.")
+  public static DeidentifyTemplateName ofProjectDeidentifyTemplateName(
+      String project, String deidentifyTemplate) {
+    return newProjectDeidentifyTemplateBuilder()
+        .setProject(project)
+        .setDeidentifyTemplate(deidentifyTemplate)
+        .build();
+  }
+
+  @BetaApi("The static create methods are not stable yet and may be changed in the future.")
+  public static DeidentifyTemplateName ofOrganizationLocationDeidentifyTemplateName(
+      String organization, String location, String deidentifyTemplate) {
+    return newOrganizationLocationDeidentifyTemplateBuilder()
+        .setOrganization(organization)
+        .setLocation(location)
+        .setDeidentifyTemplate(deidentifyTemplate)
+        .build();
+  }
+
+  @BetaApi("The static create methods are not stable yet and may be changed in the future.")
+  public static DeidentifyTemplateName ofProjectLocationDeidentifyTemplateName(
+      String project, String location, String deidentifyTemplate) {
+    return newProjectLocationDeidentifyTemplateBuilder()
+        .setProject(project)
+        .setLocation(location)
+        .setDeidentifyTemplate(deidentifyTemplate)
+        .build();
+  }
+
+  public static String format(String organization, String deidentifyTemplate) {
+    return newBuilder()
+        .setOrganization(organization)
+        .setDeidentifyTemplate(deidentifyTemplate)
+        .build()
+        .toString();
+  }
+
+  @BetaApi("The static format methods are not stable yet and may be changed in the future.")
+  public static String formatOrganizationDeidentifyTemplateName(
+      String organization, String deidentifyTemplate) {
+    return newBuilder()
+        .setOrganization(organization)
+        .setDeidentifyTemplate(deidentifyTemplate)
+        .build()
+        .toString();
+  }
+
+  @BetaApi("The static format methods are not stable yet and may be changed in the future.")
+  public static String formatProjectDeidentifyTemplateName(
+      String project, String deidentifyTemplate) {
+    return newProjectDeidentifyTemplateBuilder()
+        .setProject(project)
+        .setDeidentifyTemplate(deidentifyTemplate)
+        .build()
+        .toString();
+  }
+
+  @BetaApi("The static format methods are not stable yet and may be changed in the future.")
+  public static String formatOrganizationLocationDeidentifyTemplateName(
+      String organization, String location, String deidentifyTemplate) {
+    return newOrganizationLocationDeidentifyTemplateBuilder()
+        .setOrganization(organization)
+        .setLocation(location)
+        .setDeidentifyTemplate(deidentifyTemplate)
+        .build()
+        .toString();
+  }
+
+  @BetaApi("The static format methods are not stable yet and may be changed in the future.")
+  public static String formatProjectLocationDeidentifyTemplateName(
+      String project, String location, String deidentifyTemplate) {
+    return newProjectLocationDeidentifyTemplateBuilder()
+        .setProject(project)
+        .setLocation(location)
+        .setDeidentifyTemplate(deidentifyTemplate)
+        .build()
+        .toString();
+  }
+
+  public static DeidentifyTemplateName parse(String formattedString) {
+    if (formattedString.isEmpty()) {
+      return null;
+    }
+    if (ORGANIZATION_DEIDENTIFY_TEMPLATE_PATH_TEMPLATE.matches(formattedString)) {
+      Map matchMap =
+          ORGANIZATION_DEIDENTIFY_TEMPLATE_PATH_TEMPLATE.match(formattedString);
+      return ofOrganizationDeidentifyTemplateName(
+          matchMap.get("organization"), matchMap.get("deidentify_template"));
+    } else if (PROJECT_DEIDENTIFY_TEMPLATE_PATH_TEMPLATE.matches(formattedString)) {
+      Map matchMap =
+          PROJECT_DEIDENTIFY_TEMPLATE_PATH_TEMPLATE.match(formattedString);
+      return ofProjectDeidentifyTemplateName(
+          matchMap.get("project"), matchMap.get("deidentify_template"));
+    } else if (ORGANIZATION_LOCATION_DEIDENTIFY_TEMPLATE_PATH_TEMPLATE.matches(formattedString)) {
+      Map matchMap =
+          ORGANIZATION_LOCATION_DEIDENTIFY_TEMPLATE_PATH_TEMPLATE.match(formattedString);
+      return ofOrganizationLocationDeidentifyTemplateName(
+          matchMap.get("organization"),
+          matchMap.get("location"),
+          matchMap.get("deidentify_template"));
+    } else if (PROJECT_LOCATION_DEIDENTIFY_TEMPLATE_PATH_TEMPLATE.matches(formattedString)) {
+      Map matchMap =
+          PROJECT_LOCATION_DEIDENTIFY_TEMPLATE_PATH_TEMPLATE.match(formattedString);
+      return ofProjectLocationDeidentifyTemplateName(
+          matchMap.get("project"), matchMap.get("location"), matchMap.get("deidentify_template"));
+    }
+    throw new ValidationException("JobName.parse: formattedString not in valid format");
+  }
+
+  public static boolean isParsableFrom(String formattedString) {
+    return ORGANIZATION_DEIDENTIFY_TEMPLATE_PATH_TEMPLATE.matches(formattedString)
+        || PROJECT_DEIDENTIFY_TEMPLATE_PATH_TEMPLATE.matches(formattedString)
+        || ORGANIZATION_LOCATION_DEIDENTIFY_TEMPLATE_PATH_TEMPLATE.matches(formattedString)
+        || PROJECT_LOCATION_DEIDENTIFY_TEMPLATE_PATH_TEMPLATE.matches(formattedString);
+  }
+
+  @Override
+  public Map getFieldValuesMap() {
+    if (fieldValuesMap == null) {
+      synchronized (this) {
+        if (fieldValuesMap == null) {
+          ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder();
+          if (organization != null) {
+            fieldMapBuilder.put("organization", organization);
+          }
+          if (deidentifyTemplate != null) {
+            fieldMapBuilder.put("deidentify_template", deidentifyTemplate);
+          }
+          if (project != null) {
+            fieldMapBuilder.put("project", project);
+          }
+          if (location != null) {
+            fieldMapBuilder.put("location", location);
+          }
+          fieldValuesMap = fieldMapBuilder.build();
+        }
+      }
+    }
+    return fieldValuesMap;
+  }
+
+  public String getFieldValue(String fieldName) {
+    return getFieldValuesMap().get(fieldName);
+  }
+
+  @Override
+  public String toString() {
+    return fixedValue != null ? fixedValue : pathTemplate.instantiate(getFieldValuesMap());
+  }
+
+  /** Builder for organizations/{organization}/deidentifyTemplates/{deidentify_template}. */
+  public static class Builder {
+
+    private String organization;
+    private String deidentifyTemplate;
+
+    protected Builder() {}
+
+    public String getOrganization() {
+      return organization;
+    }
+
+    public String getDeidentifyTemplate() {
+      return deidentifyTemplate;
+    }
+
+    public Builder setOrganization(String organization) {
+      this.organization = organization;
+      return this;
+    }
+
+    public Builder setDeidentifyTemplate(String deidentifyTemplate) {
+      this.deidentifyTemplate = deidentifyTemplate;
+      return this;
+    }
+
+    private Builder(DeidentifyTemplateName deidentifyTemplateName) {
+      Preconditions.checkArgument(
+          deidentifyTemplateName.pathTemplate == ORGANIZATION_DEIDENTIFY_TEMPLATE_PATH_TEMPLATE,
+          "toBuilder is only supported when DeidentifyTemplateName has the pattern of "
+              + "organizations/{organization}/deidentifyTemplates/{deidentify_template}.");
+      organization = deidentifyTemplateName.organization;
+      deidentifyTemplate = deidentifyTemplateName.deidentifyTemplate;
+    }
+
+    public DeidentifyTemplateName build() {
+      return new DeidentifyTemplateName(this);
+    }
+  }
+
+  /** Builder for projects/{project}/deidentifyTemplates/{deidentify_template}. */
+  @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.")
+  public static class ProjectDeidentifyTemplateBuilder {
+
+    private String project;
+    private String deidentifyTemplate;
+
+    private ProjectDeidentifyTemplateBuilder() {}
+
+    public String getProject() {
+      return project;
+    }
+
+    public String getDeidentifyTemplate() {
+      return deidentifyTemplate;
+    }
+
+    public ProjectDeidentifyTemplateBuilder setProject(String project) {
+      this.project = project;
+      return this;
+    }
+
+    public ProjectDeidentifyTemplateBuilder setDeidentifyTemplate(String deidentifyTemplate) {
+      this.deidentifyTemplate = deidentifyTemplate;
+      return this;
+    }
+
+    public DeidentifyTemplateName build() {
+      return new DeidentifyTemplateName(this);
+    }
+  }
+
+  /**
+   * Builder for
+   * organizations/{organization}/locations/{location}/deidentifyTemplates/{deidentify_template}.
+   */
+  @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.")
+  public static class OrganizationLocationDeidentifyTemplateBuilder {
+
+    private String organization;
+    private String location;
+    private String deidentifyTemplate;
+
+    private OrganizationLocationDeidentifyTemplateBuilder() {}
+
+    public String getOrganization() {
+      return organization;
+    }
+
+    public String getLocation() {
+      return location;
+    }
+
+    public String getDeidentifyTemplate() {
+      return deidentifyTemplate;
+    }
+
+    public OrganizationLocationDeidentifyTemplateBuilder setOrganization(String organization) {
+      this.organization = organization;
+      return this;
+    }
+
+    public OrganizationLocationDeidentifyTemplateBuilder setLocation(String location) {
+      this.location = location;
+      return this;
+    }
+
+    public OrganizationLocationDeidentifyTemplateBuilder setDeidentifyTemplate(
+        String deidentifyTemplate) {
+      this.deidentifyTemplate = deidentifyTemplate;
+      return this;
+    }
+
+    public DeidentifyTemplateName build() {
+      return new DeidentifyTemplateName(this);
+    }
+  }
+
+  /**
+   * Builder for projects/{project}/locations/{location}/deidentifyTemplates/{deidentify_template}.
+   */
+  @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.")
+  public static class ProjectLocationDeidentifyTemplateBuilder {
+
+    private String project;
+    private String location;
+    private String deidentifyTemplate;
+
+    private ProjectLocationDeidentifyTemplateBuilder() {}
+
+    public String getProject() {
+      return project;
+    }
+
+    public String getLocation() {
+      return location;
+    }
+
+    public String getDeidentifyTemplate() {
+      return deidentifyTemplate;
+    }
+
+    public ProjectLocationDeidentifyTemplateBuilder setProject(String project) {
+      this.project = project;
+      return this;
+    }
+
+    public ProjectLocationDeidentifyTemplateBuilder setLocation(String location) {
+      this.location = location;
+      return this;
+    }
+
+    public ProjectLocationDeidentifyTemplateBuilder setDeidentifyTemplate(
+        String deidentifyTemplate) {
+      this.deidentifyTemplate = deidentifyTemplate;
+      return this;
+    }
+
+    public DeidentifyTemplateName build() {
+      return new DeidentifyTemplateName(this);
+    }
+  }
+
+  @Override
+  public boolean equals(Object o) {
+    if (o == this) {
+      return true;
+    }
+    if (o != null || getClass() == o.getClass()) {
+      DeidentifyTemplateName that = (DeidentifyTemplateName) o;
+      return (Objects.equals(this.organization, that.organization))
+          && (Objects.equals(this.deidentifyTemplate, that.deidentifyTemplate))
+          && (Objects.equals(this.project, that.project))
+          && (Objects.equals(this.location, that.location));
+    }
+    return false;
+  }
+
+  @Override
+  public int hashCode() {
+    int h = 1;
+    h *= 1000003;
+    h ^= Objects.hashCode(fixedValue);
+    h *= 1000003;
+    h ^= Objects.hashCode(organization);
+    h *= 1000003;
+    h ^= Objects.hashCode(deidentifyTemplate);
+    h *= 1000003;
+    h ^= Objects.hashCode(project);
+    h *= 1000003;
+    h ^= Objects.hashCode(location);
+    return h;
+  }
 }
diff --git a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DlpJobName.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DlpJobName.java
index 0fcb76b9..8644115b 100644
--- a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DlpJobName.java
+++ b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DlpJobName.java
@@ -16,25 +16,37 @@
 
 package com.google.privacy.dlp.v2;
 
+import com.google.api.core.BetaApi;
 import com.google.api.pathtemplate.PathTemplate;
+import com.google.api.pathtemplate.ValidationException;
 import com.google.api.resourcenames.ResourceName;
 import com.google.common.base.Preconditions;
 import com.google.common.collect.ImmutableMap;
 import java.util.ArrayList;
 import java.util.List;
 import java.util.Map;
+import java.util.Objects;
 
 /** AUTO-GENERATED DOCUMENTATION AND CLASS */
 @javax.annotation.Generated("by GAPIC protoc plugin")
 public class DlpJobName implements ResourceName {
 
-  private static final PathTemplate PATH_TEMPLATE =
+  @Deprecated
+  protected DlpJobName() {}
+
+  private static final PathTemplate PROJECT_DLP_JOB_PATH_TEMPLATE =
       PathTemplate.createWithoutUrlEncoding("projects/{project}/dlpJobs/{dlp_job}");
+  private static final PathTemplate PROJECT_LOCATION_DLP_JOB_PATH_TEMPLATE =
+      PathTemplate.createWithoutUrlEncoding(
+          "projects/{project}/locations/{location}/dlpJobs/{dlp_job}");
 
   private volatile Map fieldValuesMap;
+  private PathTemplate pathTemplate;
+  private String fixedValue;
 
-  private final String project;
-  private final String dlpJob;
+  private String project;
+  private String dlpJob;
+  private String location;
 
   public String getProject() {
     return project;
@@ -44,35 +56,93 @@ public String getDlpJob() {
     return dlpJob;
   }
 
+  public String getLocation() {
+    return location;
+  }
+
+  private DlpJobName(Builder builder) {
+    project = Preconditions.checkNotNull(builder.getProject());
+    dlpJob = Preconditions.checkNotNull(builder.getDlpJob());
+    pathTemplate = PROJECT_DLP_JOB_PATH_TEMPLATE;
+  }
+
+  private DlpJobName(ProjectLocationDlpJobBuilder builder) {
+    project = Preconditions.checkNotNull(builder.getProject());
+    location = Preconditions.checkNotNull(builder.getLocation());
+    dlpJob = Preconditions.checkNotNull(builder.getDlpJob());
+    pathTemplate = PROJECT_LOCATION_DLP_JOB_PATH_TEMPLATE;
+  }
+
   public static Builder newBuilder() {
     return new Builder();
   }
 
+  @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.")
+  public static Builder newProjectDlpJobBuilder() {
+    return new Builder();
+  }
+
+  @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.")
+  public static ProjectLocationDlpJobBuilder newProjectLocationDlpJobBuilder() {
+    return new ProjectLocationDlpJobBuilder();
+  }
+
   public Builder toBuilder() {
     return new Builder(this);
   }
 
-  private DlpJobName(Builder builder) {
-    project = Preconditions.checkNotNull(builder.getProject());
-    dlpJob = Preconditions.checkNotNull(builder.getDlpJob());
+  public static DlpJobName of(String project, String dlpJob) {
+    return newProjectDlpJobBuilder().setProject(project).setDlpJob(dlpJob).build();
   }
 
-  public static DlpJobName of(String project, String dlpJob) {
-    return newBuilder().setProject(project).setDlpJob(dlpJob).build();
+  @BetaApi("The static create methods are not stable yet and may be changed in the future.")
+  public static DlpJobName ofProjectDlpJobName(String project, String dlpJob) {
+    return newProjectDlpJobBuilder().setProject(project).setDlpJob(dlpJob).build();
+  }
+
+  @BetaApi("The static create methods are not stable yet and may be changed in the future.")
+  public static DlpJobName ofProjectLocationDlpJobName(
+      String project, String location, String dlpJob) {
+    return newProjectLocationDlpJobBuilder()
+        .setProject(project)
+        .setLocation(location)
+        .setDlpJob(dlpJob)
+        .build();
   }
 
   public static String format(String project, String dlpJob) {
     return newBuilder().setProject(project).setDlpJob(dlpJob).build().toString();
   }
 
+  @BetaApi("The static format methods are not stable yet and may be changed in the future.")
+  public static String formatProjectDlpJobName(String project, String dlpJob) {
+    return newBuilder().setProject(project).setDlpJob(dlpJob).build().toString();
+  }
+
+  @BetaApi("The static format methods are not stable yet and may be changed in the future.")
+  public static String formatProjectLocationDlpJobName(
+      String project, String location, String dlpJob) {
+    return newProjectLocationDlpJobBuilder()
+        .setProject(project)
+        .setLocation(location)
+        .setDlpJob(dlpJob)
+        .build()
+        .toString();
+  }
+
   public static DlpJobName parse(String formattedString) {
     if (formattedString.isEmpty()) {
       return null;
     }
-    Map matchMap =
-        PATH_TEMPLATE.validatedMatch(
-            formattedString, "DlpJobName.parse: formattedString not in valid format");
-    return of(matchMap.get("project"), matchMap.get("dlp_job"));
+    if (PROJECT_DLP_JOB_PATH_TEMPLATE.matches(formattedString)) {
+      Map matchMap = PROJECT_DLP_JOB_PATH_TEMPLATE.match(formattedString);
+      return ofProjectDlpJobName(matchMap.get("project"), matchMap.get("dlp_job"));
+    } else if (PROJECT_LOCATION_DLP_JOB_PATH_TEMPLATE.matches(formattedString)) {
+      Map matchMap = PROJECT_LOCATION_DLP_JOB_PATH_TEMPLATE.match(formattedString);
+      return ofProjectLocationDlpJobName(
+          matchMap.get("project"), matchMap.get("location"), matchMap.get("dlp_job"));
+    }
+    throw new ValidationException("JobName.parse: formattedString not in valid format");
   }
 
   public static List parseList(List formattedStrings) {
@@ -84,7 +154,7 @@ public static List parseList(List formattedStrings) {
   }
 
   public static List toStringList(List values) {
-    List list = new ArrayList(values.size());
+    List list = new ArrayList<>(values.size());
     for (DlpJobName value : values) {
       if (value == null) {
         list.add("");
@@ -96,16 +166,25 @@ public static List toStringList(List values) {
   }
 
   public static boolean isParsableFrom(String formattedString) {
-    return PATH_TEMPLATE.matches(formattedString);
+    return PROJECT_DLP_JOB_PATH_TEMPLATE.matches(formattedString)
+        || PROJECT_LOCATION_DLP_JOB_PATH_TEMPLATE.matches(formattedString);
   }
 
+  @Override
   public Map getFieldValuesMap() {
     if (fieldValuesMap == null) {
       synchronized (this) {
         if (fieldValuesMap == null) {
           ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder();
-          fieldMapBuilder.put("project", project);
-          fieldMapBuilder.put("dlpJob", dlpJob);
+          if (project != null) {
+            fieldMapBuilder.put("project", project);
+          }
+          if (dlpJob != null) {
+            fieldMapBuilder.put("dlp_job", dlpJob);
+          }
+          if (location != null) {
+            fieldMapBuilder.put("location", location);
+          }
           fieldValuesMap = fieldMapBuilder.build();
         }
       }
@@ -119,15 +198,17 @@ public String getFieldValue(String fieldName) {
 
   @Override
   public String toString() {
-    return PATH_TEMPLATE.instantiate("project", project, "dlp_job", dlpJob);
+    return fixedValue != null ? fixedValue : pathTemplate.instantiate(getFieldValuesMap());
   }
 
-  /** Builder for DlpJobName. */
+  /** Builder for projects/{project}/dlpJobs/{dlp_job}. */
   public static class Builder {
 
     private String project;
     private String dlpJob;
 
+    protected Builder() {}
+
     public String getProject() {
       return project;
     }
@@ -146,9 +227,11 @@ public Builder setDlpJob(String dlpJob) {
       return this;
     }
 
-    private Builder() {}
-
     private Builder(DlpJobName dlpJobName) {
+      Preconditions.checkArgument(
+          dlpJobName.pathTemplate == PROJECT_DLP_JOB_PATH_TEMPLATE,
+          "toBuilder is only supported when DlpJobName has the pattern of "
+              + "projects/{project}/dlpJobs/{dlp_job}.");
       project = dlpJobName.project;
       dlpJob = dlpJobName.dlpJob;
     }
@@ -158,14 +241,58 @@ public DlpJobName build() {
     }
   }
 
+  /** Builder for projects/{project}/locations/{location}/dlpJobs/{dlp_job}. */
+  @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.")
+  public static class ProjectLocationDlpJobBuilder {
+
+    private String project;
+    private String location;
+    private String dlpJob;
+
+    private ProjectLocationDlpJobBuilder() {}
+
+    public String getProject() {
+      return project;
+    }
+
+    public String getLocation() {
+      return location;
+    }
+
+    public String getDlpJob() {
+      return dlpJob;
+    }
+
+    public ProjectLocationDlpJobBuilder setProject(String project) {
+      this.project = project;
+      return this;
+    }
+
+    public ProjectLocationDlpJobBuilder setLocation(String location) {
+      this.location = location;
+      return this;
+    }
+
+    public ProjectLocationDlpJobBuilder setDlpJob(String dlpJob) {
+      this.dlpJob = dlpJob;
+      return this;
+    }
+
+    public DlpJobName build() {
+      return new DlpJobName(this);
+    }
+  }
+
   @Override
   public boolean equals(Object o) {
     if (o == this) {
       return true;
     }
-    if (o instanceof DlpJobName) {
+    if (o != null || getClass() == o.getClass()) {
       DlpJobName that = (DlpJobName) o;
-      return (this.project.equals(that.project)) && (this.dlpJob.equals(that.dlpJob));
+      return (Objects.equals(this.project, that.project))
+          && (Objects.equals(this.dlpJob, that.dlpJob))
+          && (Objects.equals(this.location, that.location));
     }
     return false;
   }
@@ -174,9 +301,13 @@ public boolean equals(Object o) {
   public int hashCode() {
     int h = 1;
     h *= 1000003;
-    h ^= project.hashCode();
+    h ^= Objects.hashCode(fixedValue);
+    h *= 1000003;
+    h ^= Objects.hashCode(project);
+    h *= 1000003;
+    h ^= Objects.hashCode(dlpJob);
     h *= 1000003;
-    h ^= dlpJob.hashCode();
+    h ^= Objects.hashCode(location);
     return h;
   }
 }
diff --git a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InspectFindingName.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InspectFindingName.java
new file mode 100644
index 00000000..05e4563c
--- /dev/null
+++ b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InspectFindingName.java
@@ -0,0 +1,210 @@
+/*
+ * 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 com.google.api.pathtemplate.PathTemplate;
+import com.google.api.resourcenames.ResourceName;
+import com.google.common.base.Preconditions;
+import com.google.common.collect.ImmutableMap;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Map;
+
+/** AUTO-GENERATED DOCUMENTATION AND CLASS */
+@javax.annotation.Generated("by GAPIC protoc plugin")
+public class InspectFindingName implements ResourceName {
+
+  private static final PathTemplate PATH_TEMPLATE =
+      PathTemplate.createWithoutUrlEncoding(
+          "projects/{project}/locations/{location}/findings/{finding}");
+
+  private volatile Map fieldValuesMap;
+
+  private final String project;
+  private final String location;
+  private final String finding;
+
+  public String getProject() {
+    return project;
+  }
+
+  public String getLocation() {
+    return location;
+  }
+
+  public String getFinding() {
+    return finding;
+  }
+
+  public static Builder newBuilder() {
+    return new Builder();
+  }
+
+  public Builder toBuilder() {
+    return new Builder(this);
+  }
+
+  private InspectFindingName(Builder builder) {
+    project = Preconditions.checkNotNull(builder.getProject());
+    location = Preconditions.checkNotNull(builder.getLocation());
+    finding = Preconditions.checkNotNull(builder.getFinding());
+  }
+
+  public static InspectFindingName of(String project, String location, String finding) {
+    return newBuilder().setProject(project).setLocation(location).setFinding(finding).build();
+  }
+
+  public static String format(String project, String location, String finding) {
+    return newBuilder()
+        .setProject(project)
+        .setLocation(location)
+        .setFinding(finding)
+        .build()
+        .toString();
+  }
+
+  public static InspectFindingName parse(String formattedString) {
+    if (formattedString.isEmpty()) {
+      return null;
+    }
+    Map matchMap =
+        PATH_TEMPLATE.validatedMatch(
+            formattedString, "InspectFindingName.parse: formattedString not in valid format");
+    return of(matchMap.get("project"), matchMap.get("location"), matchMap.get("finding"));
+  }
+
+  public static List parseList(List formattedStrings) {
+    List list = new ArrayList<>(formattedStrings.size());
+    for (String formattedString : formattedStrings) {
+      list.add(parse(formattedString));
+    }
+    return list;
+  }
+
+  public static List toStringList(List values) {
+    List list = new ArrayList(values.size());
+    for (InspectFindingName value : values) {
+      if (value == null) {
+        list.add("");
+      } else {
+        list.add(value.toString());
+      }
+    }
+    return list;
+  }
+
+  public static boolean isParsableFrom(String formattedString) {
+    return PATH_TEMPLATE.matches(formattedString);
+  }
+
+  public Map getFieldValuesMap() {
+    if (fieldValuesMap == null) {
+      synchronized (this) {
+        if (fieldValuesMap == null) {
+          ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder();
+          fieldMapBuilder.put("project", project);
+          fieldMapBuilder.put("location", location);
+          fieldMapBuilder.put("finding", finding);
+          fieldValuesMap = fieldMapBuilder.build();
+        }
+      }
+    }
+    return fieldValuesMap;
+  }
+
+  public String getFieldValue(String fieldName) {
+    return getFieldValuesMap().get(fieldName);
+  }
+
+  @Override
+  public String toString() {
+    return PATH_TEMPLATE.instantiate("project", project, "location", location, "finding", finding);
+  }
+
+  /** Builder for InspectFindingName. */
+  public static class Builder {
+
+    private String project;
+    private String location;
+    private String finding;
+
+    public String getProject() {
+      return project;
+    }
+
+    public String getLocation() {
+      return location;
+    }
+
+    public String getFinding() {
+      return finding;
+    }
+
+    public Builder setProject(String project) {
+      this.project = project;
+      return this;
+    }
+
+    public Builder setLocation(String location) {
+      this.location = location;
+      return this;
+    }
+
+    public Builder setFinding(String finding) {
+      this.finding = finding;
+      return this;
+    }
+
+    private Builder() {}
+
+    private Builder(InspectFindingName inspectFindingName) {
+      project = inspectFindingName.project;
+      location = inspectFindingName.location;
+      finding = inspectFindingName.finding;
+    }
+
+    public InspectFindingName build() {
+      return new InspectFindingName(this);
+    }
+  }
+
+  @Override
+  public boolean equals(Object o) {
+    if (o == this) {
+      return true;
+    }
+    if (o instanceof InspectFindingName) {
+      InspectFindingName that = (InspectFindingName) o;
+      return (this.project.equals(that.project))
+          && (this.location.equals(that.location))
+          && (this.finding.equals(that.finding));
+    }
+    return false;
+  }
+
+  @Override
+  public int hashCode() {
+    int h = 1;
+    h *= 1000003;
+    h ^= project.hashCode();
+    h *= 1000003;
+    h ^= location.hashCode();
+    h *= 1000003;
+    h ^= finding.hashCode();
+    return h;
+  }
+}
diff --git a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InspectTemplateName.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InspectTemplateName.java
index 6f18df75..48154875 100644
--- a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InspectTemplateName.java
+++ b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InspectTemplateName.java
@@ -16,10 +16,464 @@
 
 package com.google.privacy.dlp.v2;
 
+import com.google.api.core.BetaApi;
+import com.google.api.pathtemplate.PathTemplate;
+import com.google.api.pathtemplate.ValidationException;
 import com.google.api.resourcenames.ResourceName;
+import com.google.common.base.Preconditions;
+import com.google.common.collect.ImmutableMap;
+import java.util.Map;
+import java.util.Objects;
 
 /** AUTO-GENERATED DOCUMENTATION AND CLASS */
 @javax.annotation.Generated("by GAPIC protoc plugin")
-public abstract class InspectTemplateName implements ResourceName {
+public class InspectTemplateName implements ResourceName {
+
+  @Deprecated
   protected InspectTemplateName() {}
+
+  private static final PathTemplate ORGANIZATION_INSPECT_TEMPLATE_PATH_TEMPLATE =
+      PathTemplate.createWithoutUrlEncoding(
+          "organizations/{organization}/inspectTemplates/{inspect_template}");
+  private static final PathTemplate PROJECT_INSPECT_TEMPLATE_PATH_TEMPLATE =
+      PathTemplate.createWithoutUrlEncoding(
+          "projects/{project}/inspectTemplates/{inspect_template}");
+  private static final PathTemplate ORGANIZATION_LOCATION_INSPECT_TEMPLATE_PATH_TEMPLATE =
+      PathTemplate.createWithoutUrlEncoding(
+          "organizations/{organization}/locations/{location}/inspectTemplates/{inspect_template}");
+  private static final PathTemplate PROJECT_LOCATION_INSPECT_TEMPLATE_PATH_TEMPLATE =
+      PathTemplate.createWithoutUrlEncoding(
+          "projects/{project}/locations/{location}/inspectTemplates/{inspect_template}");
+
+  private volatile Map fieldValuesMap;
+  private PathTemplate pathTemplate;
+  private String fixedValue;
+
+  private String organization;
+  private String inspectTemplate;
+  private String project;
+  private String location;
+
+  public String getOrganization() {
+    return organization;
+  }
+
+  public String getInspectTemplate() {
+    return inspectTemplate;
+  }
+
+  public String getProject() {
+    return project;
+  }
+
+  public String getLocation() {
+    return location;
+  }
+
+  private InspectTemplateName(Builder builder) {
+    organization = Preconditions.checkNotNull(builder.getOrganization());
+    inspectTemplate = Preconditions.checkNotNull(builder.getInspectTemplate());
+    pathTemplate = ORGANIZATION_INSPECT_TEMPLATE_PATH_TEMPLATE;
+  }
+
+  private InspectTemplateName(ProjectInspectTemplateBuilder builder) {
+    project = Preconditions.checkNotNull(builder.getProject());
+    inspectTemplate = Preconditions.checkNotNull(builder.getInspectTemplate());
+    pathTemplate = PROJECT_INSPECT_TEMPLATE_PATH_TEMPLATE;
+  }
+
+  private InspectTemplateName(OrganizationLocationInspectTemplateBuilder builder) {
+    organization = Preconditions.checkNotNull(builder.getOrganization());
+    location = Preconditions.checkNotNull(builder.getLocation());
+    inspectTemplate = Preconditions.checkNotNull(builder.getInspectTemplate());
+    pathTemplate = ORGANIZATION_LOCATION_INSPECT_TEMPLATE_PATH_TEMPLATE;
+  }
+
+  private InspectTemplateName(ProjectLocationInspectTemplateBuilder builder) {
+    project = Preconditions.checkNotNull(builder.getProject());
+    location = Preconditions.checkNotNull(builder.getLocation());
+    inspectTemplate = Preconditions.checkNotNull(builder.getInspectTemplate());
+    pathTemplate = PROJECT_LOCATION_INSPECT_TEMPLATE_PATH_TEMPLATE;
+  }
+
+  public static Builder newBuilder() {
+    return new Builder();
+  }
+
+  @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.")
+  public static Builder newOrganizationInspectTemplateBuilder() {
+    return new Builder();
+  }
+
+  @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.")
+  public static ProjectInspectTemplateBuilder newProjectInspectTemplateBuilder() {
+    return new ProjectInspectTemplateBuilder();
+  }
+
+  @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.")
+  public static OrganizationLocationInspectTemplateBuilder
+      newOrganizationLocationInspectTemplateBuilder() {
+    return new OrganizationLocationInspectTemplateBuilder();
+  }
+
+  @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.")
+  public static ProjectLocationInspectTemplateBuilder newProjectLocationInspectTemplateBuilder() {
+    return new ProjectLocationInspectTemplateBuilder();
+  }
+
+  public Builder toBuilder() {
+    return new Builder(this);
+  }
+
+  public static InspectTemplateName of(String organization, String inspectTemplate) {
+    return newOrganizationInspectTemplateBuilder()
+        .setOrganization(organization)
+        .setInspectTemplate(inspectTemplate)
+        .build();
+  }
+
+  @BetaApi("The static create methods are not stable yet and may be changed in the future.")
+  public static InspectTemplateName ofOrganizationInspectTemplateName(
+      String organization, String inspectTemplate) {
+    return newOrganizationInspectTemplateBuilder()
+        .setOrganization(organization)
+        .setInspectTemplate(inspectTemplate)
+        .build();
+  }
+
+  @BetaApi("The static create methods are not stable yet and may be changed in the future.")
+  public static InspectTemplateName ofProjectInspectTemplateName(
+      String project, String inspectTemplate) {
+    return newProjectInspectTemplateBuilder()
+        .setProject(project)
+        .setInspectTemplate(inspectTemplate)
+        .build();
+  }
+
+  @BetaApi("The static create methods are not stable yet and may be changed in the future.")
+  public static InspectTemplateName ofOrganizationLocationInspectTemplateName(
+      String organization, String location, String inspectTemplate) {
+    return newOrganizationLocationInspectTemplateBuilder()
+        .setOrganization(organization)
+        .setLocation(location)
+        .setInspectTemplate(inspectTemplate)
+        .build();
+  }
+
+  @BetaApi("The static create methods are not stable yet and may be changed in the future.")
+  public static InspectTemplateName ofProjectLocationInspectTemplateName(
+      String project, String location, String inspectTemplate) {
+    return newProjectLocationInspectTemplateBuilder()
+        .setProject(project)
+        .setLocation(location)
+        .setInspectTemplate(inspectTemplate)
+        .build();
+  }
+
+  public static String format(String organization, String inspectTemplate) {
+    return newBuilder()
+        .setOrganization(organization)
+        .setInspectTemplate(inspectTemplate)
+        .build()
+        .toString();
+  }
+
+  @BetaApi("The static format methods are not stable yet and may be changed in the future.")
+  public static String formatOrganizationInspectTemplateName(
+      String organization, String inspectTemplate) {
+    return newBuilder()
+        .setOrganization(organization)
+        .setInspectTemplate(inspectTemplate)
+        .build()
+        .toString();
+  }
+
+  @BetaApi("The static format methods are not stable yet and may be changed in the future.")
+  public static String formatProjectInspectTemplateName(String project, String inspectTemplate) {
+    return newProjectInspectTemplateBuilder()
+        .setProject(project)
+        .setInspectTemplate(inspectTemplate)
+        .build()
+        .toString();
+  }
+
+  @BetaApi("The static format methods are not stable yet and may be changed in the future.")
+  public static String formatOrganizationLocationInspectTemplateName(
+      String organization, String location, String inspectTemplate) {
+    return newOrganizationLocationInspectTemplateBuilder()
+        .setOrganization(organization)
+        .setLocation(location)
+        .setInspectTemplate(inspectTemplate)
+        .build()
+        .toString();
+  }
+
+  @BetaApi("The static format methods are not stable yet and may be changed in the future.")
+  public static String formatProjectLocationInspectTemplateName(
+      String project, String location, String inspectTemplate) {
+    return newProjectLocationInspectTemplateBuilder()
+        .setProject(project)
+        .setLocation(location)
+        .setInspectTemplate(inspectTemplate)
+        .build()
+        .toString();
+  }
+
+  public static InspectTemplateName parse(String formattedString) {
+    if (formattedString.isEmpty()) {
+      return null;
+    }
+    if (ORGANIZATION_INSPECT_TEMPLATE_PATH_TEMPLATE.matches(formattedString)) {
+      Map matchMap =
+          ORGANIZATION_INSPECT_TEMPLATE_PATH_TEMPLATE.match(formattedString);
+      return ofOrganizationInspectTemplateName(
+          matchMap.get("organization"), matchMap.get("inspect_template"));
+    } else if (PROJECT_INSPECT_TEMPLATE_PATH_TEMPLATE.matches(formattedString)) {
+      Map matchMap = PROJECT_INSPECT_TEMPLATE_PATH_TEMPLATE.match(formattedString);
+      return ofProjectInspectTemplateName(
+          matchMap.get("project"), matchMap.get("inspect_template"));
+    } else if (ORGANIZATION_LOCATION_INSPECT_TEMPLATE_PATH_TEMPLATE.matches(formattedString)) {
+      Map matchMap =
+          ORGANIZATION_LOCATION_INSPECT_TEMPLATE_PATH_TEMPLATE.match(formattedString);
+      return ofOrganizationLocationInspectTemplateName(
+          matchMap.get("organization"), matchMap.get("location"), matchMap.get("inspect_template"));
+    } else if (PROJECT_LOCATION_INSPECT_TEMPLATE_PATH_TEMPLATE.matches(formattedString)) {
+      Map matchMap =
+          PROJECT_LOCATION_INSPECT_TEMPLATE_PATH_TEMPLATE.match(formattedString);
+      return ofProjectLocationInspectTemplateName(
+          matchMap.get("project"), matchMap.get("location"), matchMap.get("inspect_template"));
+    }
+    throw new ValidationException("JobName.parse: formattedString not in valid format");
+  }
+
+  public static boolean isParsableFrom(String formattedString) {
+    return ORGANIZATION_INSPECT_TEMPLATE_PATH_TEMPLATE.matches(formattedString)
+        || PROJECT_INSPECT_TEMPLATE_PATH_TEMPLATE.matches(formattedString)
+        || ORGANIZATION_LOCATION_INSPECT_TEMPLATE_PATH_TEMPLATE.matches(formattedString)
+        || PROJECT_LOCATION_INSPECT_TEMPLATE_PATH_TEMPLATE.matches(formattedString);
+  }
+
+  @Override
+  public Map getFieldValuesMap() {
+    if (fieldValuesMap == null) {
+      synchronized (this) {
+        if (fieldValuesMap == null) {
+          ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder();
+          if (organization != null) {
+            fieldMapBuilder.put("organization", organization);
+          }
+          if (inspectTemplate != null) {
+            fieldMapBuilder.put("inspect_template", inspectTemplate);
+          }
+          if (project != null) {
+            fieldMapBuilder.put("project", project);
+          }
+          if (location != null) {
+            fieldMapBuilder.put("location", location);
+          }
+          fieldValuesMap = fieldMapBuilder.build();
+        }
+      }
+    }
+    return fieldValuesMap;
+  }
+
+  public String getFieldValue(String fieldName) {
+    return getFieldValuesMap().get(fieldName);
+  }
+
+  @Override
+  public String toString() {
+    return fixedValue != null ? fixedValue : pathTemplate.instantiate(getFieldValuesMap());
+  }
+
+  /** Builder for organizations/{organization}/inspectTemplates/{inspect_template}. */
+  public static class Builder {
+
+    private String organization;
+    private String inspectTemplate;
+
+    protected Builder() {}
+
+    public String getOrganization() {
+      return organization;
+    }
+
+    public String getInspectTemplate() {
+      return inspectTemplate;
+    }
+
+    public Builder setOrganization(String organization) {
+      this.organization = organization;
+      return this;
+    }
+
+    public Builder setInspectTemplate(String inspectTemplate) {
+      this.inspectTemplate = inspectTemplate;
+      return this;
+    }
+
+    private Builder(InspectTemplateName inspectTemplateName) {
+      Preconditions.checkArgument(
+          inspectTemplateName.pathTemplate == ORGANIZATION_INSPECT_TEMPLATE_PATH_TEMPLATE,
+          "toBuilder is only supported when InspectTemplateName has the pattern of "
+              + "organizations/{organization}/inspectTemplates/{inspect_template}.");
+      organization = inspectTemplateName.organization;
+      inspectTemplate = inspectTemplateName.inspectTemplate;
+    }
+
+    public InspectTemplateName build() {
+      return new InspectTemplateName(this);
+    }
+  }
+
+  /** Builder for projects/{project}/inspectTemplates/{inspect_template}. */
+  @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.")
+  public static class ProjectInspectTemplateBuilder {
+
+    private String project;
+    private String inspectTemplate;
+
+    private ProjectInspectTemplateBuilder() {}
+
+    public String getProject() {
+      return project;
+    }
+
+    public String getInspectTemplate() {
+      return inspectTemplate;
+    }
+
+    public ProjectInspectTemplateBuilder setProject(String project) {
+      this.project = project;
+      return this;
+    }
+
+    public ProjectInspectTemplateBuilder setInspectTemplate(String inspectTemplate) {
+      this.inspectTemplate = inspectTemplate;
+      return this;
+    }
+
+    public InspectTemplateName build() {
+      return new InspectTemplateName(this);
+    }
+  }
+
+  /**
+   * Builder for
+   * organizations/{organization}/locations/{location}/inspectTemplates/{inspect_template}.
+   */
+  @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.")
+  public static class OrganizationLocationInspectTemplateBuilder {
+
+    private String organization;
+    private String location;
+    private String inspectTemplate;
+
+    private OrganizationLocationInspectTemplateBuilder() {}
+
+    public String getOrganization() {
+      return organization;
+    }
+
+    public String getLocation() {
+      return location;
+    }
+
+    public String getInspectTemplate() {
+      return inspectTemplate;
+    }
+
+    public OrganizationLocationInspectTemplateBuilder setOrganization(String organization) {
+      this.organization = organization;
+      return this;
+    }
+
+    public OrganizationLocationInspectTemplateBuilder setLocation(String location) {
+      this.location = location;
+      return this;
+    }
+
+    public OrganizationLocationInspectTemplateBuilder setInspectTemplate(String inspectTemplate) {
+      this.inspectTemplate = inspectTemplate;
+      return this;
+    }
+
+    public InspectTemplateName build() {
+      return new InspectTemplateName(this);
+    }
+  }
+
+  /** Builder for projects/{project}/locations/{location}/inspectTemplates/{inspect_template}. */
+  @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.")
+  public static class ProjectLocationInspectTemplateBuilder {
+
+    private String project;
+    private String location;
+    private String inspectTemplate;
+
+    private ProjectLocationInspectTemplateBuilder() {}
+
+    public String getProject() {
+      return project;
+    }
+
+    public String getLocation() {
+      return location;
+    }
+
+    public String getInspectTemplate() {
+      return inspectTemplate;
+    }
+
+    public ProjectLocationInspectTemplateBuilder setProject(String project) {
+      this.project = project;
+      return this;
+    }
+
+    public ProjectLocationInspectTemplateBuilder setLocation(String location) {
+      this.location = location;
+      return this;
+    }
+
+    public ProjectLocationInspectTemplateBuilder setInspectTemplate(String inspectTemplate) {
+      this.inspectTemplate = inspectTemplate;
+      return this;
+    }
+
+    public InspectTemplateName build() {
+      return new InspectTemplateName(this);
+    }
+  }
+
+  @Override
+  public boolean equals(Object o) {
+    if (o == this) {
+      return true;
+    }
+    if (o != null || getClass() == o.getClass()) {
+      InspectTemplateName that = (InspectTemplateName) o;
+      return (Objects.equals(this.organization, that.organization))
+          && (Objects.equals(this.inspectTemplate, that.inspectTemplate))
+          && (Objects.equals(this.project, that.project))
+          && (Objects.equals(this.location, that.location));
+    }
+    return false;
+  }
+
+  @Override
+  public int hashCode() {
+    int h = 1;
+    h *= 1000003;
+    h ^= Objects.hashCode(fixedValue);
+    h *= 1000003;
+    h ^= Objects.hashCode(organization);
+    h *= 1000003;
+    h ^= Objects.hashCode(inspectTemplate);
+    h *= 1000003;
+    h ^= Objects.hashCode(project);
+    h *= 1000003;
+    h ^= Objects.hashCode(location);
+    return h;
+  }
 }
diff --git a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/JobTriggerName.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/JobTriggerName.java
new file mode 100644
index 00000000..40f831d0
--- /dev/null
+++ b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/JobTriggerName.java
@@ -0,0 +1,292 @@
+/*
+ * 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 com.google.api.core.BetaApi;
+import com.google.api.pathtemplate.PathTemplate;
+import com.google.api.pathtemplate.ValidationException;
+import com.google.api.resourcenames.ResourceName;
+import com.google.common.base.Preconditions;
+import com.google.common.collect.ImmutableMap;
+import java.util.Map;
+import java.util.Objects;
+
+/** AUTO-GENERATED DOCUMENTATION AND CLASS */
+@javax.annotation.Generated("by GAPIC protoc plugin")
+public class JobTriggerName implements ResourceName {
+
+  @Deprecated
+  protected JobTriggerName() {}
+
+  private static final PathTemplate PROJECT_JOB_TRIGGER_PATH_TEMPLATE =
+      PathTemplate.createWithoutUrlEncoding("projects/{project}/jobTriggers/{job_trigger}");
+  private static final PathTemplate PROJECT_LOCATION_JOB_TRIGGER_PATH_TEMPLATE =
+      PathTemplate.createWithoutUrlEncoding(
+          "projects/{project}/locations/{location}/jobTriggers/{job_trigger}");
+
+  private volatile Map fieldValuesMap;
+  private PathTemplate pathTemplate;
+  private String fixedValue;
+
+  private String project;
+  private String jobTrigger;
+  private String location;
+
+  public String getProject() {
+    return project;
+  }
+
+  public String getJobTrigger() {
+    return jobTrigger;
+  }
+
+  public String getLocation() {
+    return location;
+  }
+
+  private JobTriggerName(Builder builder) {
+    project = Preconditions.checkNotNull(builder.getProject());
+    jobTrigger = Preconditions.checkNotNull(builder.getJobTrigger());
+    pathTemplate = PROJECT_JOB_TRIGGER_PATH_TEMPLATE;
+  }
+
+  private JobTriggerName(ProjectLocationJobTriggerBuilder builder) {
+    project = Preconditions.checkNotNull(builder.getProject());
+    location = Preconditions.checkNotNull(builder.getLocation());
+    jobTrigger = Preconditions.checkNotNull(builder.getJobTrigger());
+    pathTemplate = PROJECT_LOCATION_JOB_TRIGGER_PATH_TEMPLATE;
+  }
+
+  public static Builder newBuilder() {
+    return new Builder();
+  }
+
+  @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.")
+  public static Builder newProjectJobTriggerBuilder() {
+    return new Builder();
+  }
+
+  @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.")
+  public static ProjectLocationJobTriggerBuilder newProjectLocationJobTriggerBuilder() {
+    return new ProjectLocationJobTriggerBuilder();
+  }
+
+  public Builder toBuilder() {
+    return new Builder(this);
+  }
+
+  public static JobTriggerName of(String project, String jobTrigger) {
+    return newProjectJobTriggerBuilder().setProject(project).setJobTrigger(jobTrigger).build();
+  }
+
+  @BetaApi("The static create methods are not stable yet and may be changed in the future.")
+  public static JobTriggerName ofProjectJobTriggerName(String project, String jobTrigger) {
+    return newProjectJobTriggerBuilder().setProject(project).setJobTrigger(jobTrigger).build();
+  }
+
+  @BetaApi("The static create methods are not stable yet and may be changed in the future.")
+  public static JobTriggerName ofProjectLocationJobTriggerName(
+      String project, String location, String jobTrigger) {
+    return newProjectLocationJobTriggerBuilder()
+        .setProject(project)
+        .setLocation(location)
+        .setJobTrigger(jobTrigger)
+        .build();
+  }
+
+  public static String format(String project, String jobTrigger) {
+    return newBuilder().setProject(project).setJobTrigger(jobTrigger).build().toString();
+  }
+
+  @BetaApi("The static format methods are not stable yet and may be changed in the future.")
+  public static String formatProjectJobTriggerName(String project, String jobTrigger) {
+    return newBuilder().setProject(project).setJobTrigger(jobTrigger).build().toString();
+  }
+
+  @BetaApi("The static format methods are not stable yet and may be changed in the future.")
+  public static String formatProjectLocationJobTriggerName(
+      String project, String location, String jobTrigger) {
+    return newProjectLocationJobTriggerBuilder()
+        .setProject(project)
+        .setLocation(location)
+        .setJobTrigger(jobTrigger)
+        .build()
+        .toString();
+  }
+
+  public static JobTriggerName parse(String formattedString) {
+    if (formattedString.isEmpty()) {
+      return null;
+    }
+    if (PROJECT_JOB_TRIGGER_PATH_TEMPLATE.matches(formattedString)) {
+      Map matchMap = PROJECT_JOB_TRIGGER_PATH_TEMPLATE.match(formattedString);
+      return ofProjectJobTriggerName(matchMap.get("project"), matchMap.get("job_trigger"));
+    } else if (PROJECT_LOCATION_JOB_TRIGGER_PATH_TEMPLATE.matches(formattedString)) {
+      Map matchMap =
+          PROJECT_LOCATION_JOB_TRIGGER_PATH_TEMPLATE.match(formattedString);
+      return ofProjectLocationJobTriggerName(
+          matchMap.get("project"), matchMap.get("location"), matchMap.get("job_trigger"));
+    }
+    throw new ValidationException("JobName.parse: formattedString not in valid format");
+  }
+
+  public static boolean isParsableFrom(String formattedString) {
+    return PROJECT_JOB_TRIGGER_PATH_TEMPLATE.matches(formattedString)
+        || PROJECT_LOCATION_JOB_TRIGGER_PATH_TEMPLATE.matches(formattedString);
+  }
+
+  @Override
+  public Map getFieldValuesMap() {
+    if (fieldValuesMap == null) {
+      synchronized (this) {
+        if (fieldValuesMap == null) {
+          ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder();
+          if (project != null) {
+            fieldMapBuilder.put("project", project);
+          }
+          if (jobTrigger != null) {
+            fieldMapBuilder.put("job_trigger", jobTrigger);
+          }
+          if (location != null) {
+            fieldMapBuilder.put("location", location);
+          }
+          fieldValuesMap = fieldMapBuilder.build();
+        }
+      }
+    }
+    return fieldValuesMap;
+  }
+
+  public String getFieldValue(String fieldName) {
+    return getFieldValuesMap().get(fieldName);
+  }
+
+  @Override
+  public String toString() {
+    return fixedValue != null ? fixedValue : pathTemplate.instantiate(getFieldValuesMap());
+  }
+
+  /** Builder for projects/{project}/jobTriggers/{job_trigger}. */
+  public static class Builder {
+
+    private String project;
+    private String jobTrigger;
+
+    protected Builder() {}
+
+    public String getProject() {
+      return project;
+    }
+
+    public String getJobTrigger() {
+      return jobTrigger;
+    }
+
+    public Builder setProject(String project) {
+      this.project = project;
+      return this;
+    }
+
+    public Builder setJobTrigger(String jobTrigger) {
+      this.jobTrigger = jobTrigger;
+      return this;
+    }
+
+    private Builder(JobTriggerName jobTriggerName) {
+      Preconditions.checkArgument(
+          jobTriggerName.pathTemplate == PROJECT_JOB_TRIGGER_PATH_TEMPLATE,
+          "toBuilder is only supported when JobTriggerName has the pattern of "
+              + "projects/{project}/jobTriggers/{job_trigger}.");
+      project = jobTriggerName.project;
+      jobTrigger = jobTriggerName.jobTrigger;
+    }
+
+    public JobTriggerName build() {
+      return new JobTriggerName(this);
+    }
+  }
+
+  /** Builder for projects/{project}/locations/{location}/jobTriggers/{job_trigger}. */
+  @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.")
+  public static class ProjectLocationJobTriggerBuilder {
+
+    private String project;
+    private String location;
+    private String jobTrigger;
+
+    private ProjectLocationJobTriggerBuilder() {}
+
+    public String getProject() {
+      return project;
+    }
+
+    public String getLocation() {
+      return location;
+    }
+
+    public String getJobTrigger() {
+      return jobTrigger;
+    }
+
+    public ProjectLocationJobTriggerBuilder setProject(String project) {
+      this.project = project;
+      return this;
+    }
+
+    public ProjectLocationJobTriggerBuilder setLocation(String location) {
+      this.location = location;
+      return this;
+    }
+
+    public ProjectLocationJobTriggerBuilder setJobTrigger(String jobTrigger) {
+      this.jobTrigger = jobTrigger;
+      return this;
+    }
+
+    public JobTriggerName build() {
+      return new JobTriggerName(this);
+    }
+  }
+
+  @Override
+  public boolean equals(Object o) {
+    if (o == this) {
+      return true;
+    }
+    if (o != null || getClass() == o.getClass()) {
+      JobTriggerName that = (JobTriggerName) o;
+      return (Objects.equals(this.project, that.project))
+          && (Objects.equals(this.jobTrigger, that.jobTrigger))
+          && (Objects.equals(this.location, that.location));
+    }
+    return false;
+  }
+
+  @Override
+  public int hashCode() {
+    int h = 1;
+    h *= 1000003;
+    h ^= Objects.hashCode(fixedValue);
+    h *= 1000003;
+    h ^= Objects.hashCode(project);
+    h *= 1000003;
+    h ^= Objects.hashCode(jobTrigger);
+    h *= 1000003;
+    h ^= Objects.hashCode(location);
+    return h;
+  }
+}
diff --git a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/LocationName.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/LocationName.java
new file mode 100644
index 00000000..09157ce4
--- /dev/null
+++ b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/LocationName.java
@@ -0,0 +1,182 @@
+/*
+ * 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 com.google.api.pathtemplate.PathTemplate;
+import com.google.api.resourcenames.ResourceName;
+import com.google.common.base.Preconditions;
+import com.google.common.collect.ImmutableMap;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Map;
+
+/** AUTO-GENERATED DOCUMENTATION AND CLASS */
+@javax.annotation.Generated("by GAPIC protoc plugin")
+public class LocationName implements ResourceName {
+
+  private static final PathTemplate PATH_TEMPLATE =
+      PathTemplate.createWithoutUrlEncoding("projects/{project}/locations/{location}");
+
+  private volatile Map fieldValuesMap;
+
+  private final String project;
+  private final String location;
+
+  public String getProject() {
+    return project;
+  }
+
+  public String getLocation() {
+    return location;
+  }
+
+  public static Builder newBuilder() {
+    return new Builder();
+  }
+
+  public Builder toBuilder() {
+    return new Builder(this);
+  }
+
+  private LocationName(Builder builder) {
+    project = Preconditions.checkNotNull(builder.getProject());
+    location = Preconditions.checkNotNull(builder.getLocation());
+  }
+
+  public static LocationName of(String project, String location) {
+    return newBuilder().setProject(project).setLocation(location).build();
+  }
+
+  public static String format(String project, String location) {
+    return newBuilder().setProject(project).setLocation(location).build().toString();
+  }
+
+  public static LocationName parse(String formattedString) {
+    if (formattedString.isEmpty()) {
+      return null;
+    }
+    Map matchMap =
+        PATH_TEMPLATE.validatedMatch(
+            formattedString, "LocationName.parse: formattedString not in valid format");
+    return of(matchMap.get("project"), matchMap.get("location"));
+  }
+
+  public static List parseList(List formattedStrings) {
+    List list = new ArrayList<>(formattedStrings.size());
+    for (String formattedString : formattedStrings) {
+      list.add(parse(formattedString));
+    }
+    return list;
+  }
+
+  public static List toStringList(List values) {
+    List list = new ArrayList(values.size());
+    for (LocationName value : values) {
+      if (value == null) {
+        list.add("");
+      } else {
+        list.add(value.toString());
+      }
+    }
+    return list;
+  }
+
+  public static boolean isParsableFrom(String formattedString) {
+    return PATH_TEMPLATE.matches(formattedString);
+  }
+
+  public Map getFieldValuesMap() {
+    if (fieldValuesMap == null) {
+      synchronized (this) {
+        if (fieldValuesMap == null) {
+          ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder();
+          fieldMapBuilder.put("project", project);
+          fieldMapBuilder.put("location", location);
+          fieldValuesMap = fieldMapBuilder.build();
+        }
+      }
+    }
+    return fieldValuesMap;
+  }
+
+  public String getFieldValue(String fieldName) {
+    return getFieldValuesMap().get(fieldName);
+  }
+
+  @Override
+  public String toString() {
+    return PATH_TEMPLATE.instantiate("project", project, "location", location);
+  }
+
+  /** Builder for LocationName. */
+  public static class Builder {
+
+    private String project;
+    private String location;
+
+    public String getProject() {
+      return project;
+    }
+
+    public String getLocation() {
+      return location;
+    }
+
+    public Builder setProject(String project) {
+      this.project = project;
+      return this;
+    }
+
+    public Builder setLocation(String location) {
+      this.location = location;
+      return this;
+    }
+
+    private Builder() {}
+
+    private Builder(LocationName locationName) {
+      project = locationName.project;
+      location = locationName.location;
+    }
+
+    public LocationName build() {
+      return new LocationName(this);
+    }
+  }
+
+  @Override
+  public boolean equals(Object o) {
+    if (o == this) {
+      return true;
+    }
+    if (o instanceof LocationName) {
+      LocationName that = (LocationName) o;
+      return (this.project.equals(that.project)) && (this.location.equals(that.location));
+    }
+    return false;
+  }
+
+  @Override
+  public int hashCode() {
+    int h = 1;
+    h *= 1000003;
+    h ^= project.hashCode();
+    h *= 1000003;
+    h ^= location.hashCode();
+    return h;
+  }
+}
diff --git a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/OrganizationDeidentifyTemplateName.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/OrganizationDeidentifyTemplateName.java
index afb4905f..d9bcb620 100644
--- a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/OrganizationDeidentifyTemplateName.java
+++ b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/OrganizationDeidentifyTemplateName.java
@@ -133,7 +133,7 @@ public String toString() {
   }
 
   /** Builder for OrganizationDeidentifyTemplateName. */
-  public static class Builder {
+  public static class Builder extends DeidentifyTemplateName.Builder {
 
     private String organization;
     private String deidentifyTemplate;
diff --git a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/OrganizationInspectTemplateName.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/OrganizationInspectTemplateName.java
index f5d81914..78b97326 100644
--- a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/OrganizationInspectTemplateName.java
+++ b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/OrganizationInspectTemplateName.java
@@ -129,7 +129,7 @@ public String toString() {
   }
 
   /** Builder for OrganizationInspectTemplateName. */
-  public static class Builder {
+  public static class Builder extends InspectTemplateName.Builder {
 
     private String organization;
     private String inspectTemplate;
diff --git a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/OrganizationLocationName.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/OrganizationLocationName.java
new file mode 100644
index 00000000..ba773c3b
--- /dev/null
+++ b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/OrganizationLocationName.java
@@ -0,0 +1,182 @@
+/*
+ * 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 com.google.api.pathtemplate.PathTemplate;
+import com.google.api.resourcenames.ResourceName;
+import com.google.common.base.Preconditions;
+import com.google.common.collect.ImmutableMap;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Map;
+
+/** AUTO-GENERATED DOCUMENTATION AND CLASS */
+@javax.annotation.Generated("by GAPIC protoc plugin")
+public class OrganizationLocationName implements ResourceName {
+
+  private static final PathTemplate PATH_TEMPLATE =
+      PathTemplate.createWithoutUrlEncoding("organizations/{organization}/locations/{location}");
+
+  private volatile Map fieldValuesMap;
+
+  private final String organization;
+  private final String location;
+
+  public String getOrganization() {
+    return organization;
+  }
+
+  public String getLocation() {
+    return location;
+  }
+
+  public static Builder newBuilder() {
+    return new Builder();
+  }
+
+  public Builder toBuilder() {
+    return new Builder(this);
+  }
+
+  private OrganizationLocationName(Builder builder) {
+    organization = Preconditions.checkNotNull(builder.getOrganization());
+    location = Preconditions.checkNotNull(builder.getLocation());
+  }
+
+  public static OrganizationLocationName of(String organization, String location) {
+    return newBuilder().setOrganization(organization).setLocation(location).build();
+  }
+
+  public static String format(String organization, String location) {
+    return newBuilder().setOrganization(organization).setLocation(location).build().toString();
+  }
+
+  public static OrganizationLocationName parse(String formattedString) {
+    if (formattedString.isEmpty()) {
+      return null;
+    }
+    Map matchMap =
+        PATH_TEMPLATE.validatedMatch(
+            formattedString, "OrganizationLocationName.parse: formattedString not in valid format");
+    return of(matchMap.get("organization"), matchMap.get("location"));
+  }
+
+  public static List parseList(List formattedStrings) {
+    List list = new ArrayList<>(formattedStrings.size());
+    for (String formattedString : formattedStrings) {
+      list.add(parse(formattedString));
+    }
+    return list;
+  }
+
+  public static List toStringList(List values) {
+    List list = new ArrayList(values.size());
+    for (OrganizationLocationName value : values) {
+      if (value == null) {
+        list.add("");
+      } else {
+        list.add(value.toString());
+      }
+    }
+    return list;
+  }
+
+  public static boolean isParsableFrom(String formattedString) {
+    return PATH_TEMPLATE.matches(formattedString);
+  }
+
+  public Map getFieldValuesMap() {
+    if (fieldValuesMap == null) {
+      synchronized (this) {
+        if (fieldValuesMap == null) {
+          ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder();
+          fieldMapBuilder.put("organization", organization);
+          fieldMapBuilder.put("location", location);
+          fieldValuesMap = fieldMapBuilder.build();
+        }
+      }
+    }
+    return fieldValuesMap;
+  }
+
+  public String getFieldValue(String fieldName) {
+    return getFieldValuesMap().get(fieldName);
+  }
+
+  @Override
+  public String toString() {
+    return PATH_TEMPLATE.instantiate("organization", organization, "location", location);
+  }
+
+  /** Builder for OrganizationLocationName. */
+  public static class Builder {
+
+    private String organization;
+    private String location;
+
+    public String getOrganization() {
+      return organization;
+    }
+
+    public String getLocation() {
+      return location;
+    }
+
+    public Builder setOrganization(String organization) {
+      this.organization = organization;
+      return this;
+    }
+
+    public Builder setLocation(String location) {
+      this.location = location;
+      return this;
+    }
+
+    private Builder() {}
+
+    private Builder(OrganizationLocationName organizationLocationName) {
+      organization = organizationLocationName.organization;
+      location = organizationLocationName.location;
+    }
+
+    public OrganizationLocationName build() {
+      return new OrganizationLocationName(this);
+    }
+  }
+
+  @Override
+  public boolean equals(Object o) {
+    if (o == this) {
+      return true;
+    }
+    if (o instanceof OrganizationLocationName) {
+      OrganizationLocationName that = (OrganizationLocationName) o;
+      return (this.organization.equals(that.organization)) && (this.location.equals(that.location));
+    }
+    return false;
+  }
+
+  @Override
+  public int hashCode() {
+    int h = 1;
+    h *= 1000003;
+    h ^= organization.hashCode();
+    h *= 1000003;
+    h ^= location.hashCode();
+    return h;
+  }
+}
diff --git a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/OrganizationStoredInfoTypeName.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/OrganizationStoredInfoTypeName.java
index 77344250..312cbc2a 100644
--- a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/OrganizationStoredInfoTypeName.java
+++ b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/OrganizationStoredInfoTypeName.java
@@ -129,7 +129,7 @@ public String toString() {
   }
 
   /** Builder for OrganizationStoredInfoTypeName. */
-  public static class Builder {
+  public static class Builder extends StoredInfoTypeName.Builder {
 
     private String organization;
     private String storedInfoType;
diff --git a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ProjectDeidentifyTemplateName.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ProjectDeidentifyTemplateName.java
index 5537daf3..27c1448f 100644
--- a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ProjectDeidentifyTemplateName.java
+++ b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ProjectDeidentifyTemplateName.java
@@ -128,7 +128,7 @@ public String toString() {
   }
 
   /** Builder for ProjectDeidentifyTemplateName. */
-  public static class Builder {
+  public static class Builder extends DeidentifyTemplateName.Builder {
 
     private String project;
     private String deidentifyTemplate;
diff --git a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ProjectInspectTemplateName.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ProjectInspectTemplateName.java
index d2834c2a..4122ec5b 100644
--- a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ProjectInspectTemplateName.java
+++ b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ProjectInspectTemplateName.java
@@ -124,7 +124,7 @@ public String toString() {
   }
 
   /** Builder for ProjectInspectTemplateName. */
-  public static class Builder {
+  public static class Builder extends InspectTemplateName.Builder {
 
     private String project;
     private String inspectTemplate;
diff --git a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ProjectStoredInfoTypeName.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ProjectStoredInfoTypeName.java
index 58edbf93..9b1e3f7c 100644
--- a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ProjectStoredInfoTypeName.java
+++ b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ProjectStoredInfoTypeName.java
@@ -124,7 +124,7 @@ public String toString() {
   }
 
   /** Builder for ProjectStoredInfoTypeName. */
-  public static class Builder {
+  public static class Builder extends StoredInfoTypeName.Builder {
 
     private String project;
     private String storedInfoType;
diff --git a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/StoredInfoTypeName.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/StoredInfoTypeName.java
index 922f18c4..b0878a91 100644
--- a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/StoredInfoTypeName.java
+++ b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/StoredInfoTypeName.java
@@ -16,10 +16,463 @@
 
 package com.google.privacy.dlp.v2;
 
+import com.google.api.core.BetaApi;
+import com.google.api.pathtemplate.PathTemplate;
+import com.google.api.pathtemplate.ValidationException;
 import com.google.api.resourcenames.ResourceName;
+import com.google.common.base.Preconditions;
+import com.google.common.collect.ImmutableMap;
+import java.util.Map;
+import java.util.Objects;
 
 /** AUTO-GENERATED DOCUMENTATION AND CLASS */
 @javax.annotation.Generated("by GAPIC protoc plugin")
-public abstract class StoredInfoTypeName implements ResourceName {
+public class StoredInfoTypeName implements ResourceName {
+
+  @Deprecated
   protected StoredInfoTypeName() {}
+
+  private static final PathTemplate ORGANIZATION_STORED_INFO_TYPE_PATH_TEMPLATE =
+      PathTemplate.createWithoutUrlEncoding(
+          "organizations/{organization}/storedInfoTypes/{stored_info_type}");
+  private static final PathTemplate PROJECT_STORED_INFO_TYPE_PATH_TEMPLATE =
+      PathTemplate.createWithoutUrlEncoding(
+          "projects/{project}/storedInfoTypes/{stored_info_type}");
+  private static final PathTemplate ORGANIZATION_LOCATION_STORED_INFO_TYPE_PATH_TEMPLATE =
+      PathTemplate.createWithoutUrlEncoding(
+          "organizations/{organization}/locations/{location}/storedInfoTypes/{stored_info_type}");
+  private static final PathTemplate PROJECT_LOCATION_STORED_INFO_TYPE_PATH_TEMPLATE =
+      PathTemplate.createWithoutUrlEncoding(
+          "projects/{project}/locations/{location}/storedInfoTypes/{stored_info_type}");
+
+  private volatile Map fieldValuesMap;
+  private PathTemplate pathTemplate;
+  private String fixedValue;
+
+  private String organization;
+  private String storedInfoType;
+  private String project;
+  private String location;
+
+  public String getOrganization() {
+    return organization;
+  }
+
+  public String getStoredInfoType() {
+    return storedInfoType;
+  }
+
+  public String getProject() {
+    return project;
+  }
+
+  public String getLocation() {
+    return location;
+  }
+
+  private StoredInfoTypeName(Builder builder) {
+    organization = Preconditions.checkNotNull(builder.getOrganization());
+    storedInfoType = Preconditions.checkNotNull(builder.getStoredInfoType());
+    pathTemplate = ORGANIZATION_STORED_INFO_TYPE_PATH_TEMPLATE;
+  }
+
+  private StoredInfoTypeName(ProjectStoredInfoTypeBuilder builder) {
+    project = Preconditions.checkNotNull(builder.getProject());
+    storedInfoType = Preconditions.checkNotNull(builder.getStoredInfoType());
+    pathTemplate = PROJECT_STORED_INFO_TYPE_PATH_TEMPLATE;
+  }
+
+  private StoredInfoTypeName(OrganizationLocationStoredInfoTypeBuilder builder) {
+    organization = Preconditions.checkNotNull(builder.getOrganization());
+    location = Preconditions.checkNotNull(builder.getLocation());
+    storedInfoType = Preconditions.checkNotNull(builder.getStoredInfoType());
+    pathTemplate = ORGANIZATION_LOCATION_STORED_INFO_TYPE_PATH_TEMPLATE;
+  }
+
+  private StoredInfoTypeName(ProjectLocationStoredInfoTypeBuilder builder) {
+    project = Preconditions.checkNotNull(builder.getProject());
+    location = Preconditions.checkNotNull(builder.getLocation());
+    storedInfoType = Preconditions.checkNotNull(builder.getStoredInfoType());
+    pathTemplate = PROJECT_LOCATION_STORED_INFO_TYPE_PATH_TEMPLATE;
+  }
+
+  public static Builder newBuilder() {
+    return new Builder();
+  }
+
+  @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.")
+  public static Builder newOrganizationStoredInfoTypeBuilder() {
+    return new Builder();
+  }
+
+  @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.")
+  public static ProjectStoredInfoTypeBuilder newProjectStoredInfoTypeBuilder() {
+    return new ProjectStoredInfoTypeBuilder();
+  }
+
+  @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.")
+  public static OrganizationLocationStoredInfoTypeBuilder
+      newOrganizationLocationStoredInfoTypeBuilder() {
+    return new OrganizationLocationStoredInfoTypeBuilder();
+  }
+
+  @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.")
+  public static ProjectLocationStoredInfoTypeBuilder newProjectLocationStoredInfoTypeBuilder() {
+    return new ProjectLocationStoredInfoTypeBuilder();
+  }
+
+  public Builder toBuilder() {
+    return new Builder(this);
+  }
+
+  public static StoredInfoTypeName of(String organization, String storedInfoType) {
+    return newOrganizationStoredInfoTypeBuilder()
+        .setOrganization(organization)
+        .setStoredInfoType(storedInfoType)
+        .build();
+  }
+
+  @BetaApi("The static create methods are not stable yet and may be changed in the future.")
+  public static StoredInfoTypeName ofOrganizationStoredInfoTypeName(
+      String organization, String storedInfoType) {
+    return newOrganizationStoredInfoTypeBuilder()
+        .setOrganization(organization)
+        .setStoredInfoType(storedInfoType)
+        .build();
+  }
+
+  @BetaApi("The static create methods are not stable yet and may be changed in the future.")
+  public static StoredInfoTypeName ofProjectStoredInfoTypeName(
+      String project, String storedInfoType) {
+    return newProjectStoredInfoTypeBuilder()
+        .setProject(project)
+        .setStoredInfoType(storedInfoType)
+        .build();
+  }
+
+  @BetaApi("The static create methods are not stable yet and may be changed in the future.")
+  public static StoredInfoTypeName ofOrganizationLocationStoredInfoTypeName(
+      String organization, String location, String storedInfoType) {
+    return newOrganizationLocationStoredInfoTypeBuilder()
+        .setOrganization(organization)
+        .setLocation(location)
+        .setStoredInfoType(storedInfoType)
+        .build();
+  }
+
+  @BetaApi("The static create methods are not stable yet and may be changed in the future.")
+  public static StoredInfoTypeName ofProjectLocationStoredInfoTypeName(
+      String project, String location, String storedInfoType) {
+    return newProjectLocationStoredInfoTypeBuilder()
+        .setProject(project)
+        .setLocation(location)
+        .setStoredInfoType(storedInfoType)
+        .build();
+  }
+
+  public static String format(String organization, String storedInfoType) {
+    return newBuilder()
+        .setOrganization(organization)
+        .setStoredInfoType(storedInfoType)
+        .build()
+        .toString();
+  }
+
+  @BetaApi("The static format methods are not stable yet and may be changed in the future.")
+  public static String formatOrganizationStoredInfoTypeName(
+      String organization, String storedInfoType) {
+    return newBuilder()
+        .setOrganization(organization)
+        .setStoredInfoType(storedInfoType)
+        .build()
+        .toString();
+  }
+
+  @BetaApi("The static format methods are not stable yet and may be changed in the future.")
+  public static String formatProjectStoredInfoTypeName(String project, String storedInfoType) {
+    return newProjectStoredInfoTypeBuilder()
+        .setProject(project)
+        .setStoredInfoType(storedInfoType)
+        .build()
+        .toString();
+  }
+
+  @BetaApi("The static format methods are not stable yet and may be changed in the future.")
+  public static String formatOrganizationLocationStoredInfoTypeName(
+      String organization, String location, String storedInfoType) {
+    return newOrganizationLocationStoredInfoTypeBuilder()
+        .setOrganization(organization)
+        .setLocation(location)
+        .setStoredInfoType(storedInfoType)
+        .build()
+        .toString();
+  }
+
+  @BetaApi("The static format methods are not stable yet and may be changed in the future.")
+  public static String formatProjectLocationStoredInfoTypeName(
+      String project, String location, String storedInfoType) {
+    return newProjectLocationStoredInfoTypeBuilder()
+        .setProject(project)
+        .setLocation(location)
+        .setStoredInfoType(storedInfoType)
+        .build()
+        .toString();
+  }
+
+  public static StoredInfoTypeName parse(String formattedString) {
+    if (formattedString.isEmpty()) {
+      return null;
+    }
+    if (ORGANIZATION_STORED_INFO_TYPE_PATH_TEMPLATE.matches(formattedString)) {
+      Map matchMap =
+          ORGANIZATION_STORED_INFO_TYPE_PATH_TEMPLATE.match(formattedString);
+      return ofOrganizationStoredInfoTypeName(
+          matchMap.get("organization"), matchMap.get("stored_info_type"));
+    } else if (PROJECT_STORED_INFO_TYPE_PATH_TEMPLATE.matches(formattedString)) {
+      Map matchMap = PROJECT_STORED_INFO_TYPE_PATH_TEMPLATE.match(formattedString);
+      return ofProjectStoredInfoTypeName(matchMap.get("project"), matchMap.get("stored_info_type"));
+    } else if (ORGANIZATION_LOCATION_STORED_INFO_TYPE_PATH_TEMPLATE.matches(formattedString)) {
+      Map matchMap =
+          ORGANIZATION_LOCATION_STORED_INFO_TYPE_PATH_TEMPLATE.match(formattedString);
+      return ofOrganizationLocationStoredInfoTypeName(
+          matchMap.get("organization"), matchMap.get("location"), matchMap.get("stored_info_type"));
+    } else if (PROJECT_LOCATION_STORED_INFO_TYPE_PATH_TEMPLATE.matches(formattedString)) {
+      Map matchMap =
+          PROJECT_LOCATION_STORED_INFO_TYPE_PATH_TEMPLATE.match(formattedString);
+      return ofProjectLocationStoredInfoTypeName(
+          matchMap.get("project"), matchMap.get("location"), matchMap.get("stored_info_type"));
+    }
+    throw new ValidationException("JobName.parse: formattedString not in valid format");
+  }
+
+  public static boolean isParsableFrom(String formattedString) {
+    return ORGANIZATION_STORED_INFO_TYPE_PATH_TEMPLATE.matches(formattedString)
+        || PROJECT_STORED_INFO_TYPE_PATH_TEMPLATE.matches(formattedString)
+        || ORGANIZATION_LOCATION_STORED_INFO_TYPE_PATH_TEMPLATE.matches(formattedString)
+        || PROJECT_LOCATION_STORED_INFO_TYPE_PATH_TEMPLATE.matches(formattedString);
+  }
+
+  @Override
+  public Map getFieldValuesMap() {
+    if (fieldValuesMap == null) {
+      synchronized (this) {
+        if (fieldValuesMap == null) {
+          ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder();
+          if (organization != null) {
+            fieldMapBuilder.put("organization", organization);
+          }
+          if (storedInfoType != null) {
+            fieldMapBuilder.put("stored_info_type", storedInfoType);
+          }
+          if (project != null) {
+            fieldMapBuilder.put("project", project);
+          }
+          if (location != null) {
+            fieldMapBuilder.put("location", location);
+          }
+          fieldValuesMap = fieldMapBuilder.build();
+        }
+      }
+    }
+    return fieldValuesMap;
+  }
+
+  public String getFieldValue(String fieldName) {
+    return getFieldValuesMap().get(fieldName);
+  }
+
+  @Override
+  public String toString() {
+    return fixedValue != null ? fixedValue : pathTemplate.instantiate(getFieldValuesMap());
+  }
+
+  /** Builder for organizations/{organization}/storedInfoTypes/{stored_info_type}. */
+  public static class Builder {
+
+    private String organization;
+    private String storedInfoType;
+
+    protected Builder() {}
+
+    public String getOrganization() {
+      return organization;
+    }
+
+    public String getStoredInfoType() {
+      return storedInfoType;
+    }
+
+    public Builder setOrganization(String organization) {
+      this.organization = organization;
+      return this;
+    }
+
+    public Builder setStoredInfoType(String storedInfoType) {
+      this.storedInfoType = storedInfoType;
+      return this;
+    }
+
+    private Builder(StoredInfoTypeName storedInfoTypeName) {
+      Preconditions.checkArgument(
+          storedInfoTypeName.pathTemplate == ORGANIZATION_STORED_INFO_TYPE_PATH_TEMPLATE,
+          "toBuilder is only supported when StoredInfoTypeName has the pattern of "
+              + "organizations/{organization}/storedInfoTypes/{stored_info_type}.");
+      organization = storedInfoTypeName.organization;
+      storedInfoType = storedInfoTypeName.storedInfoType;
+    }
+
+    public StoredInfoTypeName build() {
+      return new StoredInfoTypeName(this);
+    }
+  }
+
+  /** Builder for projects/{project}/storedInfoTypes/{stored_info_type}. */
+  @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.")
+  public static class ProjectStoredInfoTypeBuilder {
+
+    private String project;
+    private String storedInfoType;
+
+    private ProjectStoredInfoTypeBuilder() {}
+
+    public String getProject() {
+      return project;
+    }
+
+    public String getStoredInfoType() {
+      return storedInfoType;
+    }
+
+    public ProjectStoredInfoTypeBuilder setProject(String project) {
+      this.project = project;
+      return this;
+    }
+
+    public ProjectStoredInfoTypeBuilder setStoredInfoType(String storedInfoType) {
+      this.storedInfoType = storedInfoType;
+      return this;
+    }
+
+    public StoredInfoTypeName build() {
+      return new StoredInfoTypeName(this);
+    }
+  }
+
+  /**
+   * Builder for
+   * organizations/{organization}/locations/{location}/storedInfoTypes/{stored_info_type}.
+   */
+  @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.")
+  public static class OrganizationLocationStoredInfoTypeBuilder {
+
+    private String organization;
+    private String location;
+    private String storedInfoType;
+
+    private OrganizationLocationStoredInfoTypeBuilder() {}
+
+    public String getOrganization() {
+      return organization;
+    }
+
+    public String getLocation() {
+      return location;
+    }
+
+    public String getStoredInfoType() {
+      return storedInfoType;
+    }
+
+    public OrganizationLocationStoredInfoTypeBuilder setOrganization(String organization) {
+      this.organization = organization;
+      return this;
+    }
+
+    public OrganizationLocationStoredInfoTypeBuilder setLocation(String location) {
+      this.location = location;
+      return this;
+    }
+
+    public OrganizationLocationStoredInfoTypeBuilder setStoredInfoType(String storedInfoType) {
+      this.storedInfoType = storedInfoType;
+      return this;
+    }
+
+    public StoredInfoTypeName build() {
+      return new StoredInfoTypeName(this);
+    }
+  }
+
+  /** Builder for projects/{project}/locations/{location}/storedInfoTypes/{stored_info_type}. */
+  @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.")
+  public static class ProjectLocationStoredInfoTypeBuilder {
+
+    private String project;
+    private String location;
+    private String storedInfoType;
+
+    private ProjectLocationStoredInfoTypeBuilder() {}
+
+    public String getProject() {
+      return project;
+    }
+
+    public String getLocation() {
+      return location;
+    }
+
+    public String getStoredInfoType() {
+      return storedInfoType;
+    }
+
+    public ProjectLocationStoredInfoTypeBuilder setProject(String project) {
+      this.project = project;
+      return this;
+    }
+
+    public ProjectLocationStoredInfoTypeBuilder setLocation(String location) {
+      this.location = location;
+      return this;
+    }
+
+    public ProjectLocationStoredInfoTypeBuilder setStoredInfoType(String storedInfoType) {
+      this.storedInfoType = storedInfoType;
+      return this;
+    }
+
+    public StoredInfoTypeName build() {
+      return new StoredInfoTypeName(this);
+    }
+  }
+
+  @Override
+  public boolean equals(Object o) {
+    if (o == this) {
+      return true;
+    }
+    if (o != null || getClass() == o.getClass()) {
+      StoredInfoTypeName that = (StoredInfoTypeName) o;
+      return (Objects.equals(this.organization, that.organization))
+          && (Objects.equals(this.storedInfoType, that.storedInfoType))
+          && (Objects.equals(this.project, that.project))
+          && (Objects.equals(this.location, that.location));
+    }
+    return false;
+  }
+
+  @Override
+  public int hashCode() {
+    int h = 1;
+    h *= 1000003;
+    h ^= Objects.hashCode(fixedValue);
+    h *= 1000003;
+    h ^= Objects.hashCode(organization);
+    h *= 1000003;
+    h ^= Objects.hashCode(storedInfoType);
+    h *= 1000003;
+    h ^= Objects.hashCode(project);
+    h *= 1000003;
+    h ^= Objects.hashCode(location);
+    return h;
+  }
 }
diff --git a/synth.metadata b/synth.metadata
index dccfae0a..254904ca 100644
--- a/synth.metadata
+++ b/synth.metadata
@@ -1,21 +1,12 @@
 {
-  "updateTime": "2020-03-25T17:26:35.704489Z",
+  "updateTime": "2020-04-03T21:45:30.394733Z",
   "sources": [
-    {
-      "git": {
-        "name": "googleapis",
-        "remote": "https://github.com/googleapis/googleapis.git",
-        "sha": "fd83ab212176a1042e8d45ea90766b3bf59ac679",
-        "internalRef": "302913609",
-        "log": "fd83ab212176a1042e8d45ea90766b3bf59ac679\nfix: migrate osconfig/agentendpoint/v1 go_gapic_library target to microgen impl\n\nPiperOrigin-RevId: 302913609\n\n0e07113e776bdd8fcc0783372e08bb6e76cb1b5b\ndocs: Update documentation with links to smart home developer guides and reference pages. Remove outdated authorization instructions.\n\nPiperOrigin-RevId: 302892245\n\n"
-      }
-    },
     {
       "git": {
         "name": "synthtool",
         "remote": "https://github.com/googleapis/synthtool.git",
-        "sha": "e36822bfa0acb355502dab391b8ef9c4f30208d8",
-        "log": "e36822bfa0acb355502dab391b8ef9c4f30208d8\nchore(java): treat samples shared configuration dependency update as chore (#457)\n\n\n1b4cc80a7aaf164f6241937dd87f3bd1f4149e0c\nfix: do not run node 8 CI (#456)\n\n\n"
+        "sha": "99820243d348191bc9c634f2b48ddf65096285ed",
+        "log": "99820243d348191bc9c634f2b48ddf65096285ed\nfix: update template files for Node.js libraries (#463)\n\n\n3cbe6bcd5623139ac9834c43818424ddca5430cb\nfix(ruby): remove dead troubleshooting link from generated auth guide (#462)\n\n\na003d8655d3ebec2bbbd5fc3898e91e152265c67\ndocs: remove \"install stable\" instructions (#461)\n\nThe package hasn't been released to PyPI in some time\nf5e8c88d9870d8aa4eb43fa0b39f07e02bfbe4df\nchore(python): add license headers to config files; make small tweaks to templates (#458)\n\n\n"
       }
     }
   ],