diff --git a/java-dlp/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/DlpServiceClient.java b/java-dlp/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/DlpServiceClient.java index a257231cc257..0a34f823a476 100644 --- a/java-dlp/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/DlpServiceClient.java +++ b/java-dlp/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/DlpServiceClient.java @@ -110,8 +110,11 @@ * calls that map to API methods. Sample code to get started: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * InspectContentRequest request = * InspectContentRequest.newBuilder() @@ -154,8 +157,11 @@ *To customize credentials: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * DlpServiceSettings dlpServiceSettings = * DlpServiceSettings.newBuilder() * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) @@ -166,8 +172,11 @@ *To customize the endpoint: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * DlpServiceSettings dlpServiceSettings = * DlpServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); * DlpServiceClient dlpServiceClient = DlpServiceClient.create(dlpServiceSettings); @@ -177,8 +186,11 @@ * the wire: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * DlpServiceSettings dlpServiceSettings = * DlpServiceSettings.newBuilder() * .setTransportChannelProvider( @@ -252,8 +264,11 @@ public DlpServiceStub getStub() { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * InspectContentRequest request = * InspectContentRequest.newBuilder() @@ -289,8 +304,11 @@ public final InspectContentResponse inspectContent(InspectContentRequest request *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * InspectContentRequest request = * InspectContentRequest.newBuilder() @@ -325,8 +343,11 @@ public final InspectContentResponse inspectContent(InspectContentRequest request *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * RedactImageRequest request = * RedactImageRequest.newBuilder() @@ -361,8 +382,11 @@ public final RedactImageResponse redactImage(RedactImageRequest request) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * RedactImageRequest request = * RedactImageRequest.newBuilder() @@ -397,8 +421,11 @@ public final UnaryCallableredactImageC * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * DeidentifyContentRequest request = * DeidentifyContentRequest.newBuilder() @@ -434,8 +461,11 @@ public final DeidentifyContentResponse deidentifyContent(DeidentifyContentReques *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * DeidentifyContentRequest request = * DeidentifyContentRequest.newBuilder() @@ -468,8 +498,11 @@ public final DeidentifyContentResponse deidentifyContent(DeidentifyContentReques *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * ReidentifyContentRequest request = * ReidentifyContentRequest.newBuilder() @@ -501,8 +534,11 @@ public final ReidentifyContentResponse reidentifyContent(ReidentifyContentReques *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * ReidentifyContentRequest request = * ReidentifyContentRequest.newBuilder() @@ -534,8 +570,11 @@ public final ReidentifyContentResponse reidentifyContent(ReidentifyContentReques *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * String parent = "parent-995424086"; * ListInfoTypesResponse response = dlpServiceClient.listInfoTypes(parent); @@ -560,8 +599,11 @@ public final ListInfoTypesResponse listInfoTypes(String parent) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * ListInfoTypesRequest request = * ListInfoTypesRequest.newBuilder() @@ -589,8 +631,11 @@ public final ListInfoTypesResponse listInfoTypes(ListInfoTypesRequest request) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * ListInfoTypesRequest request = * ListInfoTypesRequest.newBuilder() @@ -618,8 +663,11 @@ public final UnaryCallablelistInfo * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); * InspectTemplate inspectTemplate = InspectTemplate.newBuilder().build(); @@ -663,8 +711,11 @@ public final InspectTemplate createInspectTemplate( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); * InspectTemplate inspectTemplate = InspectTemplate.newBuilder().build(); @@ -708,8 +759,11 @@ public final InspectTemplate createInspectTemplate( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * OrganizationName parent = OrganizationName.of("[ORGANIZATION]"); * InspectTemplate inspectTemplate = InspectTemplate.newBuilder().build(); @@ -753,8 +807,11 @@ public final InspectTemplate createInspectTemplate( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * ProjectName parent = ProjectName.of("[PROJECT]"); * InspectTemplate inspectTemplate = InspectTemplate.newBuilder().build(); @@ -798,8 +855,11 @@ public final InspectTemplate createInspectTemplate( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * String parent = OrganizationName.of("[ORGANIZATION]").toString(); * InspectTemplate inspectTemplate = InspectTemplate.newBuilder().build(); @@ -843,8 +903,11 @@ public final InspectTemplate createInspectTemplate( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * CreateInspectTemplateRequest request = * CreateInspectTemplateRequest.newBuilder() @@ -872,8 +935,11 @@ public final InspectTemplate createInspectTemplate(CreateInspectTemplateRequest *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * CreateInspectTemplateRequest request = * CreateInspectTemplateRequest.newBuilder() @@ -902,8 +968,11 @@ public final InspectTemplate createInspectTemplate(CreateInspectTemplateRequest *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * InspectTemplateName name = * InspectTemplateName.ofOrganizationInspectTemplateName( @@ -941,8 +1010,11 @@ public final InspectTemplate updateInspectTemplate( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * String name = * InspectTemplateName.ofOrganizationInspectTemplateName( @@ -981,8 +1053,11 @@ public final InspectTemplate updateInspectTemplate( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * UpdateInspectTemplateRequest request = * UpdateInspectTemplateRequest.newBuilder() @@ -1012,8 +1087,11 @@ public final InspectTemplate updateInspectTemplate(UpdateInspectTemplateRequest *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * UpdateInspectTemplateRequest request = * UpdateInspectTemplateRequest.newBuilder() @@ -1044,8 +1122,11 @@ public final InspectTemplate updateInspectTemplate(UpdateInspectTemplateRequest *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * InspectTemplateName name = * InspectTemplateName.ofOrganizationInspectTemplateName( @@ -1075,8 +1156,11 @@ public final InspectTemplate getInspectTemplate(InspectTemplateName name) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * String name = * InspectTemplateName.ofOrganizationInspectTemplateName( @@ -1105,8 +1189,11 @@ public final InspectTemplate getInspectTemplate(String name) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * GetInspectTemplateRequest request = * GetInspectTemplateRequest.newBuilder() @@ -1134,8 +1221,11 @@ public final InspectTemplate getInspectTemplate(GetInspectTemplateRequest reques *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * GetInspectTemplateRequest request = * GetInspectTemplateRequest.newBuilder() @@ -1163,8 +1253,11 @@ public final InspectTemplate getInspectTemplate(GetInspectTemplateRequest reques *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); * for (InspectTemplate element : dlpServiceClient.listInspectTemplates(parent).iterateAll()) { @@ -1205,8 +1298,11 @@ public final ListInspectTemplatesPagedResponse listInspectTemplates(LocationName *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); * for (InspectTemplate element : dlpServiceClient.listInspectTemplates(parent).iterateAll()) { @@ -1248,8 +1344,11 @@ public final ListInspectTemplatesPagedResponse listInspectTemplates( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * OrganizationName parent = OrganizationName.of("[ORGANIZATION]"); * for (InspectTemplate element : dlpServiceClient.listInspectTemplates(parent).iterateAll()) { @@ -1290,8 +1389,11 @@ public final ListInspectTemplatesPagedResponse listInspectTemplates(Organization *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * ProjectName parent = ProjectName.of("[PROJECT]"); * for (InspectTemplate element : dlpServiceClient.listInspectTemplates(parent).iterateAll()) { @@ -1332,8 +1434,11 @@ public final ListInspectTemplatesPagedResponse listInspectTemplates(ProjectName *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * String parent = OrganizationName.of("[ORGANIZATION]").toString(); * for (InspectTemplate element : dlpServiceClient.listInspectTemplates(parent).iterateAll()) { @@ -1372,8 +1477,11 @@ public final ListInspectTemplatesPagedResponse listInspectTemplates(String paren *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * ListInspectTemplatesRequest request = * ListInspectTemplatesRequest.newBuilder() @@ -1404,8 +1512,11 @@ public final ListInspectTemplatesPagedResponse listInspectTemplates( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * ListInspectTemplatesRequest request = * ListInspectTemplatesRequest.newBuilder() @@ -1436,8 +1547,11 @@ public final ListInspectTemplatesPagedResponse listInspectTemplates( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * ListInspectTemplatesRequest request = * ListInspectTemplatesRequest.newBuilder() @@ -1476,8 +1590,11 @@ public final ListInspectTemplatesPagedResponse listInspectTemplates( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * InspectTemplateName name = * InspectTemplateName.ofOrganizationInspectTemplateName( @@ -1507,8 +1624,11 @@ public final void deleteInspectTemplate(InspectTemplateName name) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * String name = * InspectTemplateName.ofOrganizationInspectTemplateName( @@ -1537,8 +1657,11 @@ public final void deleteInspectTemplate(String name) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * DeleteInspectTemplateRequest request = * DeleteInspectTemplateRequest.newBuilder() @@ -1566,8 +1689,11 @@ public final void deleteInspectTemplate(DeleteInspectTemplateRequest request) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * DeleteInspectTemplateRequest request = * DeleteInspectTemplateRequest.newBuilder() @@ -1596,8 +1722,11 @@ public final UnaryCallabledeleteInspectTem * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); * DeidentifyTemplate deidentifyTemplate = DeidentifyTemplate.newBuilder().build(); @@ -1643,8 +1772,11 @@ public final DeidentifyTemplate createDeidentifyTemplate( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); * DeidentifyTemplate deidentifyTemplate = DeidentifyTemplate.newBuilder().build(); @@ -1690,8 +1822,11 @@ public final DeidentifyTemplate createDeidentifyTemplate( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * OrganizationName parent = OrganizationName.of("[ORGANIZATION]"); * DeidentifyTemplate deidentifyTemplate = DeidentifyTemplate.newBuilder().build(); @@ -1737,8 +1872,11 @@ public final DeidentifyTemplate createDeidentifyTemplate( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * ProjectName parent = ProjectName.of("[PROJECT]"); * DeidentifyTemplate deidentifyTemplate = DeidentifyTemplate.newBuilder().build(); @@ -1784,8 +1922,11 @@ public final DeidentifyTemplate createDeidentifyTemplate( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * String parent = OrganizationName.of("[ORGANIZATION]").toString(); * DeidentifyTemplate deidentifyTemplate = DeidentifyTemplate.newBuilder().build(); @@ -1831,8 +1972,11 @@ public final DeidentifyTemplate createDeidentifyTemplate( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * CreateDeidentifyTemplateRequest request = * CreateDeidentifyTemplateRequest.newBuilder() @@ -1862,8 +2006,11 @@ public final DeidentifyTemplate createDeidentifyTemplate( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * CreateDeidentifyTemplateRequest request = * CreateDeidentifyTemplateRequest.newBuilder() @@ -1892,8 +2039,11 @@ public final DeidentifyTemplate createDeidentifyTemplate( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * DeidentifyTemplateName name = * DeidentifyTemplateName.ofOrganizationDeidentifyTemplateName( @@ -1931,8 +2081,11 @@ public final DeidentifyTemplate updateDeidentifyTemplate( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * String name = * DeidentifyTemplateName.ofOrganizationDeidentifyTemplateName( @@ -1971,8 +2124,11 @@ public final DeidentifyTemplate updateDeidentifyTemplate( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * UpdateDeidentifyTemplateRequest request = * UpdateDeidentifyTemplateRequest.newBuilder() @@ -2003,8 +2159,11 @@ public final DeidentifyTemplate updateDeidentifyTemplate( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * UpdateDeidentifyTemplateRequest request = * UpdateDeidentifyTemplateRequest.newBuilder() @@ -2035,8 +2194,11 @@ public final DeidentifyTemplate updateDeidentifyTemplate( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * DeidentifyTemplateName name = * DeidentifyTemplateName.ofOrganizationDeidentifyTemplateName( @@ -2066,8 +2228,11 @@ public final DeidentifyTemplate getDeidentifyTemplate(DeidentifyTemplateName nam *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * String name = * DeidentifyTemplateName.ofOrganizationDeidentifyTemplateName( @@ -2096,8 +2261,11 @@ public final DeidentifyTemplate getDeidentifyTemplate(String name) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * GetDeidentifyTemplateRequest request = * GetDeidentifyTemplateRequest.newBuilder() @@ -2125,8 +2293,11 @@ public final DeidentifyTemplate getDeidentifyTemplate(GetDeidentifyTemplateReque *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * GetDeidentifyTemplateRequest request = * GetDeidentifyTemplateRequest.newBuilder() @@ -2155,8 +2326,11 @@ public final DeidentifyTemplate getDeidentifyTemplate(GetDeidentifyTemplateReque *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); * for (DeidentifyTemplate element : @@ -2199,8 +2373,11 @@ public final ListDeidentifyTemplatesPagedResponse listDeidentifyTemplates(Locati *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); * for (DeidentifyTemplate element : @@ -2244,8 +2421,11 @@ public final ListDeidentifyTemplatesPagedResponse listDeidentifyTemplates( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * OrganizationName parent = OrganizationName.of("[ORGANIZATION]"); * for (DeidentifyTemplate element : @@ -2289,8 +2469,11 @@ public final ListDeidentifyTemplatesPagedResponse listDeidentifyTemplates( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * ProjectName parent = ProjectName.of("[PROJECT]"); * for (DeidentifyTemplate element : @@ -2333,8 +2516,11 @@ public final ListDeidentifyTemplatesPagedResponse listDeidentifyTemplates(Projec *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * String parent = OrganizationName.of("[ORGANIZATION]").toString(); * for (DeidentifyTemplate element : @@ -2375,8 +2561,11 @@ public final ListDeidentifyTemplatesPagedResponse listDeidentifyTemplates(String *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * ListDeidentifyTemplatesRequest request = * ListDeidentifyTemplatesRequest.newBuilder() @@ -2409,8 +2598,11 @@ public final ListDeidentifyTemplatesPagedResponse listDeidentifyTemplates( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * ListDeidentifyTemplatesRequest request = * ListDeidentifyTemplatesRequest.newBuilder() @@ -2442,8 +2634,11 @@ public final ListDeidentifyTemplatesPagedResponse listDeidentifyTemplates( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * ListDeidentifyTemplatesRequest request = * ListDeidentifyTemplatesRequest.newBuilder() @@ -2482,8 +2677,11 @@ public final ListDeidentifyTemplatesPagedResponse listDeidentifyTemplates( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * DeidentifyTemplateName name = * DeidentifyTemplateName.ofOrganizationDeidentifyTemplateName( @@ -2513,8 +2711,11 @@ public final void deleteDeidentifyTemplate(DeidentifyTemplateName name) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * String name = * DeidentifyTemplateName.ofOrganizationDeidentifyTemplateName( @@ -2543,8 +2744,11 @@ public final void deleteDeidentifyTemplate(String name) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * DeleteDeidentifyTemplateRequest request = * DeleteDeidentifyTemplateRequest.newBuilder() @@ -2572,8 +2776,11 @@ public final void deleteDeidentifyTemplate(DeleteDeidentifyTemplateRequest reque *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * DeleteDeidentifyTemplateRequest request = * DeleteDeidentifyTemplateRequest.newBuilder() @@ -2602,8 +2809,11 @@ public final void deleteDeidentifyTemplate(DeleteDeidentifyTemplateRequest reque *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); * JobTrigger jobTrigger = JobTrigger.newBuilder().build(); @@ -2641,8 +2851,11 @@ public final JobTrigger createJobTrigger(LocationName parent, JobTrigger jobTrig *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * ProjectName parent = ProjectName.of("[PROJECT]"); * JobTrigger jobTrigger = JobTrigger.newBuilder().build(); @@ -2680,8 +2893,11 @@ public final JobTrigger createJobTrigger(ProjectName parent, JobTrigger jobTrigg *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * String parent = ProjectName.of("[PROJECT]").toString(); * JobTrigger jobTrigger = JobTrigger.newBuilder().build(); @@ -2716,8 +2932,11 @@ public final JobTrigger createJobTrigger(String parent, JobTrigger jobTrigger) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * CreateJobTriggerRequest request = * CreateJobTriggerRequest.newBuilder() @@ -2745,8 +2964,11 @@ public final JobTrigger createJobTrigger(CreateJobTriggerRequest request) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * CreateJobTriggerRequest request = * CreateJobTriggerRequest.newBuilder() @@ -2774,8 +2996,11 @@ public final UnaryCallablecreateJobTrigger * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * JobTriggerName name = JobTriggerName.ofProjectJobTriggerName("[PROJECT]", "[JOB_TRIGGER]"); * JobTrigger jobTrigger = JobTrigger.newBuilder().build(); @@ -2809,8 +3034,11 @@ public final JobTrigger updateJobTrigger( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * String name = JobTriggerName.ofProjectJobTriggerName("[PROJECT]", "[JOB_TRIGGER]").toString(); * JobTrigger jobTrigger = JobTrigger.newBuilder().build(); @@ -2844,8 +3072,11 @@ public final JobTrigger updateJobTrigger( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * UpdateJobTriggerRequest request = * UpdateJobTriggerRequest.newBuilder() @@ -2873,8 +3104,11 @@ public final JobTrigger updateJobTrigger(UpdateJobTriggerRequest request) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * UpdateJobTriggerRequest request = * UpdateJobTriggerRequest.newBuilder() @@ -2902,8 +3136,11 @@ public final UnaryCallableupdateJobTrigger * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * JobTriggerName name = * JobTriggerName.ofProjectLocationJobTriggerName( @@ -2932,8 +3169,11 @@ public final HybridInspectResponse hybridInspectJobTrigger(JobTriggerName name) *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * String name = JobTriggerName.ofProjectJobTriggerName("[PROJECT]", "[JOB_TRIGGER]").toString(); * HybridInspectResponse response = dlpServiceClient.hybridInspectJobTrigger(name); @@ -2958,8 +3198,11 @@ public final HybridInspectResponse hybridInspectJobTrigger(String name) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * HybridInspectJobTriggerRequest request = * HybridInspectJobTriggerRequest.newBuilder() @@ -2989,8 +3232,11 @@ public final HybridInspectResponse hybridInspectJobTrigger( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * HybridInspectJobTriggerRequest request = * HybridInspectJobTriggerRequest.newBuilder() @@ -3019,8 +3265,11 @@ public final HybridInspectResponse hybridInspectJobTrigger( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * JobTriggerName name = JobTriggerName.ofProjectJobTriggerName("[PROJECT]", "[JOB_TRIGGER]"); * JobTrigger response = dlpServiceClient.getJobTrigger(name); @@ -3044,8 +3293,11 @@ public final JobTrigger getJobTrigger(JobTriggerName name) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * String name = JobTriggerName.ofProjectJobTriggerName("[PROJECT]", "[JOB_TRIGGER]").toString(); * JobTrigger response = dlpServiceClient.getJobTrigger(name); @@ -3068,8 +3320,11 @@ public final JobTrigger getJobTrigger(String name) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * GetJobTriggerRequest request = * GetJobTriggerRequest.newBuilder() @@ -3094,8 +3349,11 @@ public final JobTrigger getJobTrigger(GetJobTriggerRequest request) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * GetJobTriggerRequest request = * GetJobTriggerRequest.newBuilder() @@ -3119,8 +3377,11 @@ public final UnaryCallablegetJobTriggerCallab * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); * for (JobTrigger element : dlpServiceClient.listJobTriggers(parent).iterateAll()) { @@ -3156,8 +3417,11 @@ public final ListJobTriggersPagedResponse listJobTriggers(LocationName parent) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * ProjectName parent = ProjectName.of("[PROJECT]"); * for (JobTrigger element : dlpServiceClient.listJobTriggers(parent).iterateAll()) { @@ -3193,8 +3457,11 @@ public final ListJobTriggersPagedResponse listJobTriggers(ProjectName parent) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * String parent = ProjectName.of("[PROJECT]").toString(); * for (JobTrigger element : dlpServiceClient.listJobTriggers(parent).iterateAll()) { @@ -3227,8 +3494,11 @@ public final ListJobTriggersPagedResponse listJobTriggers(String parent) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * ListJobTriggersRequest request = * ListJobTriggersRequest.newBuilder() @@ -3260,8 +3530,11 @@ public final ListJobTriggersPagedResponse listJobTriggers(ListJobTriggersRequest *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * ListJobTriggersRequest request = * ListJobTriggersRequest.newBuilder() @@ -3294,8 +3567,11 @@ public final ListJobTriggersPagedResponse listJobTriggers(ListJobTriggersRequest *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * ListJobTriggersRequest request = * ListJobTriggersRequest.newBuilder() @@ -3335,8 +3611,11 @@ public final ListJobTriggersPagedResponse listJobTriggers(ListJobTriggersRequest *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * JobTriggerName name = JobTriggerName.ofProjectJobTriggerName("[PROJECT]", "[JOB_TRIGGER]"); * dlpServiceClient.deleteJobTrigger(name); @@ -3361,8 +3640,11 @@ public final void deleteJobTrigger(JobTriggerName name) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * String name = JobTriggerName.ofProjectJobTriggerName("[PROJECT]", "[JOB_TRIGGER]").toString(); * dlpServiceClient.deleteJobTrigger(name); @@ -3386,8 +3668,11 @@ public final void deleteJobTrigger(String name) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * DeleteJobTriggerRequest request = * DeleteJobTriggerRequest.newBuilder() @@ -3413,8 +3698,11 @@ public final void deleteJobTrigger(DeleteJobTriggerRequest request) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * DeleteJobTriggerRequest request = * DeleteJobTriggerRequest.newBuilder() @@ -3439,8 +3727,11 @@ public final UnaryCallabledeleteJobTriggerCalla * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * ActivateJobTriggerRequest request = * ActivateJobTriggerRequest.newBuilder() @@ -3466,8 +3757,11 @@ public final DlpJob activateJobTrigger(ActivateJobTriggerRequest request) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * ActivateJobTriggerRequest request = * ActivateJobTriggerRequest.newBuilder() @@ -3497,8 +3791,11 @@ public final UnaryCallableactivateJobTrigger * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); * InspectJobConfig inspectJob = InspectJobConfig.newBuilder().build(); @@ -3541,8 +3838,11 @@ public final DlpJob createDlpJob(LocationName parent, InspectJobConfig inspectJo *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); * RiskAnalysisJobConfig riskJob = RiskAnalysisJobConfig.newBuilder().build(); @@ -3586,8 +3886,11 @@ public final DlpJob createDlpJob(LocationName parent, RiskAnalysisJobConfig risk *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * ProjectName parent = ProjectName.of("[PROJECT]"); * InspectJobConfig inspectJob = InspectJobConfig.newBuilder().build(); @@ -3630,8 +3933,11 @@ public final DlpJob createDlpJob(ProjectName parent, InspectJobConfig inspectJob *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * ProjectName parent = ProjectName.of("[PROJECT]"); * RiskAnalysisJobConfig riskJob = RiskAnalysisJobConfig.newBuilder().build(); @@ -3675,8 +3981,11 @@ public final DlpJob createDlpJob(ProjectName parent, RiskAnalysisJobConfig riskJ *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * String parent = ProjectName.of("[PROJECT]").toString(); * InspectJobConfig inspectJob = InspectJobConfig.newBuilder().build(); @@ -3716,8 +4025,11 @@ public final DlpJob createDlpJob(String parent, InspectJobConfig inspectJob) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * String parent = ProjectName.of("[PROJECT]").toString(); * RiskAnalysisJobConfig riskJob = RiskAnalysisJobConfig.newBuilder().build(); @@ -3758,8 +4070,11 @@ public final DlpJob createDlpJob(String parent, RiskAnalysisJobConfig riskJob) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * CreateDlpJobRequest request = * CreateDlpJobRequest.newBuilder() @@ -3791,8 +4106,11 @@ public final DlpJob createDlpJob(CreateDlpJobRequest request) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * CreateDlpJobRequest request = * CreateDlpJobRequest.newBuilder() @@ -3819,8 +4137,11 @@ public final UnaryCallablecreateDlpJobCallable() { * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); * for (DlpJob element : dlpServiceClient.listDlpJobs(parent).iterateAll()) { @@ -3858,8 +4179,11 @@ public final ListDlpJobsPagedResponse listDlpJobs(LocationName parent) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * ProjectName parent = ProjectName.of("[PROJECT]"); * for (DlpJob element : dlpServiceClient.listDlpJobs(parent).iterateAll()) { @@ -3897,8 +4221,11 @@ public final ListDlpJobsPagedResponse listDlpJobs(ProjectName parent) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * String parent = ProjectName.of("[PROJECT]").toString(); * for (DlpJob element : dlpServiceClient.listDlpJobs(parent).iterateAll()) { @@ -3933,8 +4260,11 @@ public final ListDlpJobsPagedResponse listDlpJobs(String parent) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * ListDlpJobsRequest request = * ListDlpJobsRequest.newBuilder() @@ -3968,8 +4298,11 @@ public final ListDlpJobsPagedResponse listDlpJobs(ListDlpJobsRequest request) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * ListDlpJobsRequest request = * ListDlpJobsRequest.newBuilder() @@ -4003,8 +4336,11 @@ public final ListDlpJobsPagedResponse listDlpJobs(ListDlpJobsRequest request) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * ListDlpJobsRequest request = * ListDlpJobsRequest.newBuilder() @@ -4044,8 +4380,11 @@ public final UnaryCallablelistDlpJobsC * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * DlpJobName name = DlpJobName.ofProjectDlpJobName("[PROJECT]", "[DLP_JOB]"); * DlpJob response = dlpServiceClient.getDlpJob(name); @@ -4070,8 +4409,11 @@ public final DlpJob getDlpJob(DlpJobName name) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * String name = DlpJobName.ofProjectDlpJobName("[PROJECT]", "[DLP_JOB]").toString(); * DlpJob response = dlpServiceClient.getDlpJob(name); @@ -4095,8 +4437,11 @@ public final DlpJob getDlpJob(String name) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * GetDlpJobRequest request = * GetDlpJobRequest.newBuilder() @@ -4122,8 +4467,11 @@ public final DlpJob getDlpJob(GetDlpJobRequest request) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * GetDlpJobRequest request = * GetDlpJobRequest.newBuilder() @@ -4149,8 +4497,11 @@ public final UnaryCallablegetDlpJobCallable() { * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * DlpJobName name = DlpJobName.ofProjectDlpJobName("[PROJECT]", "[DLP_JOB]"); * dlpServiceClient.deleteDlpJob(name); @@ -4176,8 +4527,11 @@ public final void deleteDlpJob(DlpJobName name) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * String name = DlpJobName.ofProjectDlpJobName("[PROJECT]", "[DLP_JOB]").toString(); * dlpServiceClient.deleteDlpJob(name); @@ -4202,8 +4556,11 @@ public final void deleteDlpJob(String name) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * DeleteDlpJobRequest request = * DeleteDlpJobRequest.newBuilder() @@ -4230,8 +4587,11 @@ public final void deleteDlpJob(DeleteDlpJobRequest request) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * DeleteDlpJobRequest request = * DeleteDlpJobRequest.newBuilder() @@ -4257,8 +4617,11 @@ public final UnaryCallabledeleteDlpJobCallable() { * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * CancelDlpJobRequest request = * CancelDlpJobRequest.newBuilder() @@ -4285,8 +4648,11 @@ public final void cancelDlpJob(CancelDlpJobRequest request) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * CancelDlpJobRequest request = * CancelDlpJobRequest.newBuilder() @@ -4310,8 +4676,11 @@ public final UnaryCallablecancelDlpJobCallable() { * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); * StoredInfoTypeConfig config = StoredInfoTypeConfig.newBuilder().build(); @@ -4355,8 +4724,11 @@ public final StoredInfoType createStoredInfoType( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); * StoredInfoTypeConfig config = StoredInfoTypeConfig.newBuilder().build(); @@ -4400,8 +4772,11 @@ public final StoredInfoType createStoredInfoType( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * OrganizationName parent = OrganizationName.of("[ORGANIZATION]"); * StoredInfoTypeConfig config = StoredInfoTypeConfig.newBuilder().build(); @@ -4445,8 +4820,11 @@ public final StoredInfoType createStoredInfoType( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * ProjectName parent = ProjectName.of("[PROJECT]"); * StoredInfoTypeConfig config = StoredInfoTypeConfig.newBuilder().build(); @@ -4490,8 +4868,11 @@ public final StoredInfoType createStoredInfoType( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * String parent = OrganizationName.of("[ORGANIZATION]").toString(); * StoredInfoTypeConfig config = StoredInfoTypeConfig.newBuilder().build(); @@ -4531,8 +4912,11 @@ public final StoredInfoType createStoredInfoType(String parent, StoredInfoTypeCo *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * CreateStoredInfoTypeRequest request = * CreateStoredInfoTypeRequest.newBuilder() @@ -4560,8 +4944,11 @@ public final StoredInfoType createStoredInfoType(CreateStoredInfoTypeRequest req *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * CreateStoredInfoTypeRequest request = * CreateStoredInfoTypeRequest.newBuilder() @@ -4591,8 +4978,11 @@ public final StoredInfoType createStoredInfoType(CreateStoredInfoTypeRequest req *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * StoredInfoTypeName name = * StoredInfoTypeName.ofOrganizationStoredInfoTypeName( @@ -4631,8 +5021,11 @@ public final StoredInfoType updateStoredInfoType( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * String name = * StoredInfoTypeName.ofOrganizationStoredInfoTypeName( @@ -4672,8 +5065,11 @@ public final StoredInfoType updateStoredInfoType( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * UpdateStoredInfoTypeRequest request = * UpdateStoredInfoTypeRequest.newBuilder() @@ -4704,8 +5100,11 @@ public final StoredInfoType updateStoredInfoType(UpdateStoredInfoTypeRequest req *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * UpdateStoredInfoTypeRequest request = * UpdateStoredInfoTypeRequest.newBuilder() @@ -4736,8 +5135,11 @@ public final StoredInfoType updateStoredInfoType(UpdateStoredInfoTypeRequest req *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * StoredInfoTypeName name = * StoredInfoTypeName.ofOrganizationStoredInfoTypeName( @@ -4767,8 +5169,11 @@ public final StoredInfoType getStoredInfoType(StoredInfoTypeName name) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * String name = * StoredInfoTypeName.ofOrganizationStoredInfoTypeName( @@ -4796,8 +5201,11 @@ public final StoredInfoType getStoredInfoType(String name) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * GetStoredInfoTypeRequest request = * GetStoredInfoTypeRequest.newBuilder() @@ -4825,8 +5233,11 @@ public final StoredInfoType getStoredInfoType(GetStoredInfoTypeRequest request) *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * GetStoredInfoTypeRequest request = * GetStoredInfoTypeRequest.newBuilder() @@ -4854,8 +5265,11 @@ public final UnaryCallablegetStoredIn * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); * for (StoredInfoType element : dlpServiceClient.listStoredInfoTypes(parent).iterateAll()) { @@ -4893,8 +5307,11 @@ public final ListStoredInfoTypesPagedResponse listStoredInfoTypes(LocationName p *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); * for (StoredInfoType element : dlpServiceClient.listStoredInfoTypes(parent).iterateAll()) { @@ -4933,8 +5350,11 @@ public final ListStoredInfoTypesPagedResponse listStoredInfoTypes( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * OrganizationName parent = OrganizationName.of("[ORGANIZATION]"); * for (StoredInfoType element : dlpServiceClient.listStoredInfoTypes(parent).iterateAll()) { @@ -4972,8 +5392,11 @@ public final ListStoredInfoTypesPagedResponse listStoredInfoTypes(OrganizationNa *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * ProjectName parent = ProjectName.of("[PROJECT]"); * for (StoredInfoType element : dlpServiceClient.listStoredInfoTypes(parent).iterateAll()) { @@ -5011,8 +5434,11 @@ public final ListStoredInfoTypesPagedResponse listStoredInfoTypes(ProjectName pa *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * String parent = OrganizationName.of("[ORGANIZATION]").toString(); * for (StoredInfoType element : dlpServiceClient.listStoredInfoTypes(parent).iterateAll()) { @@ -5048,8 +5474,11 @@ public final ListStoredInfoTypesPagedResponse listStoredInfoTypes(String parent) *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * ListStoredInfoTypesRequest request = * ListStoredInfoTypesRequest.newBuilder() @@ -5081,8 +5510,11 @@ public final ListStoredInfoTypesPagedResponse listStoredInfoTypes( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * ListStoredInfoTypesRequest request = * ListStoredInfoTypesRequest.newBuilder() @@ -5114,8 +5546,11 @@ public final ListStoredInfoTypesPagedResponse listStoredInfoTypes( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * ListStoredInfoTypesRequest request = * ListStoredInfoTypesRequest.newBuilder() @@ -5154,8 +5589,11 @@ public final ListStoredInfoTypesPagedResponse listStoredInfoTypes( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * StoredInfoTypeName name = * StoredInfoTypeName.ofOrganizationStoredInfoTypeName( @@ -5185,8 +5623,11 @@ public final void deleteStoredInfoType(StoredInfoTypeName name) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * String name = * StoredInfoTypeName.ofOrganizationStoredInfoTypeName( @@ -5215,8 +5656,11 @@ public final void deleteStoredInfoType(String name) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * DeleteStoredInfoTypeRequest request = * DeleteStoredInfoTypeRequest.newBuilder() @@ -5244,8 +5688,11 @@ public final void deleteStoredInfoType(DeleteStoredInfoTypeRequest request) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * DeleteStoredInfoTypeRequest request = * DeleteStoredInfoTypeRequest.newBuilder() @@ -5272,8 +5719,11 @@ public final UnaryCallabledeleteStoredInfoT * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * DlpJobName name = * DlpJobName.ofProjectLocationDlpJobName("[PROJECT]", "[LOCATION]", "[DLP_JOB]"); @@ -5301,8 +5751,11 @@ public final HybridInspectResponse hybridInspectDlpJob(DlpJobName name) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * String name = DlpJobName.ofProjectDlpJobName("[PROJECT]", "[DLP_JOB]").toString(); * HybridInspectResponse response = dlpServiceClient.hybridInspectDlpJob(name); @@ -5327,8 +5780,11 @@ public final HybridInspectResponse hybridInspectDlpJob(String name) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * HybridInspectDlpJobRequest request = * HybridInspectDlpJobRequest.newBuilder() @@ -5356,8 +5812,11 @@ public final HybridInspectResponse hybridInspectDlpJob(HybridInspectDlpJobReques *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * HybridInspectDlpJobRequest request = * HybridInspectDlpJobRequest.newBuilder() @@ -5386,8 +5845,11 @@ public final HybridInspectResponse hybridInspectDlpJob(HybridInspectDlpJobReques *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * FinishDlpJobRequest request = * FinishDlpJobRequest.newBuilder() @@ -5414,8 +5876,11 @@ public final void finishDlpJob(FinishDlpJobRequest request) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * FinishDlpJobRequest request = * FinishDlpJobRequest.newBuilder() diff --git a/java-dlp/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/DlpServiceSettings.java b/java-dlp/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/DlpServiceSettings.java index e5574d63aff0..a088669d2bd7 100644 --- a/java-dlp/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/DlpServiceSettings.java +++ b/java-dlp/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/DlpServiceSettings.java @@ -108,16 +108,16 @@ *For example, to set the total timeout of inspectContent to 30 seconds: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * DlpServiceSettings.Builder dlpServiceSettingsBuilder = DlpServiceSettings.newBuilder(); * dlpServiceSettingsBuilder * .inspectContentSettings() * .setRetrySettings( - * dlpServiceSettingsBuilder - * .inspectContentSettings() - * .getRetrySettings() - * .toBuilder() + * dlpServiceSettingsBuilder.inspectContentSettings().getRetrySettings().toBuilder() * .setTotalTimeout(Duration.ofSeconds(30)) * .build()); * DlpServiceSettings dlpServiceSettings = dlpServiceSettingsBuilder.build(); diff --git a/java-dlp/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/package-info.java b/java-dlp/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/package-info.java index ed4f1afe278a..0ab1e3a3183c 100644 --- a/java-dlp/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/package-info.java +++ b/java-dlp/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/package-info.java @@ -30,8 +30,11 @@ *Sample for DlpServiceClient: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * InspectContentRequest request = * InspectContentRequest.newBuilder() diff --git a/java-dlp/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/stub/DlpServiceStubSettings.java b/java-dlp/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/stub/DlpServiceStubSettings.java index da9bfec3df0d..5cdff09bf0bb 100644 --- a/java-dlp/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/stub/DlpServiceStubSettings.java +++ b/java-dlp/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/stub/DlpServiceStubSettings.java @@ -125,16 +125,16 @@ *For example, to set the total timeout of inspectContent to 30 seconds: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * DlpServiceStubSettings.Builder dlpServiceSettingsBuilder = DlpServiceStubSettings.newBuilder(); * dlpServiceSettingsBuilder * .inspectContentSettings() * .setRetrySettings( - * dlpServiceSettingsBuilder - * .inspectContentSettings() - * .getRetrySettings() - * .toBuilder() + * dlpServiceSettingsBuilder.inspectContentSettings().getRetrySettings().toBuilder() * .setTotalTimeout(Duration.ofSeconds(30)) * .build()); * DlpServiceStubSettings dlpServiceSettings = dlpServiceSettingsBuilder.build(); diff --git a/java-dlp/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/stub/HttpJsonDlpServiceStub.java b/java-dlp/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/stub/HttpJsonDlpServiceStub.java index 627f54d01a15..1080c0cc1089 100644 --- a/java-dlp/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/stub/HttpJsonDlpServiceStub.java +++ b/java-dlp/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/stub/HttpJsonDlpServiceStub.java @@ -133,7 +133,7 @@ public class HttpJsonDlpServiceStub extends DlpServiceStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearParent().build())) + .toBody("*", request.toBuilder().clearParent().build(), false)) .build()) .setResponseParser( ProtoMessageResponseParser.newBuilder() @@ -170,7 +170,7 @@ public class HttpJsonDlpServiceStub extends DlpServiceStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearParent().build())) + .toBody("*", request.toBuilder().clearParent().build(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() @@ -207,7 +207,7 @@ public class HttpJsonDlpServiceStub extends DlpServiceStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearParent().build())) + .toBody("*", request.toBuilder().clearParent().build(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() @@ -244,7 +244,7 @@ public class HttpJsonDlpServiceStub extends DlpServiceStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearParent().build())) + .toBody("*", request.toBuilder().clearParent().build(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() @@ -322,7 +322,7 @@ public class HttpJsonDlpServiceStub extends DlpServiceStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearParent().build())) + .toBody("*", request.toBuilder().clearParent().build(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() @@ -362,7 +362,7 @@ public class HttpJsonDlpServiceStub extends DlpServiceStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearName().build())) + .toBody("*", request.toBuilder().clearName().build(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() @@ -519,7 +519,7 @@ public class HttpJsonDlpServiceStub extends DlpServiceStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearParent().build())) + .toBody("*", request.toBuilder().clearParent().build(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() @@ -559,7 +559,7 @@ public class HttpJsonDlpServiceStub extends DlpServiceStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearName().build())) + .toBody("*", request.toBuilder().clearName().build(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() @@ -715,7 +715,7 @@ public class HttpJsonDlpServiceStub extends DlpServiceStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearParent().build())) + .toBody("*", request.toBuilder().clearParent().build(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() @@ -754,7 +754,7 @@ public class HttpJsonDlpServiceStub extends DlpServiceStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearName().build())) + .toBody("*", request.toBuilder().clearName().build(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() @@ -790,7 +790,7 @@ public class HttpJsonDlpServiceStub extends DlpServiceStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearName().build())) + .toBody("*", request.toBuilder().clearName().build(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() @@ -942,7 +942,7 @@ public class HttpJsonDlpServiceStub extends DlpServiceStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearName().build())) + .toBody("*", request.toBuilder().clearName().build(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() @@ -979,7 +979,7 @@ public class HttpJsonDlpServiceStub extends DlpServiceStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearParent().build())) + .toBody("*", request.toBuilder().clearParent().build(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() @@ -1125,7 +1125,7 @@ public class HttpJsonDlpServiceStub extends DlpServiceStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearName().build())) + .toBody("*", request.toBuilder().clearName().build(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() @@ -1165,7 +1165,7 @@ public class HttpJsonDlpServiceStub extends DlpServiceStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearParent().build())) + .toBody("*", request.toBuilder().clearParent().build(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() @@ -1205,7 +1205,7 @@ public class HttpJsonDlpServiceStub extends DlpServiceStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearName().build())) + .toBody("*", request.toBuilder().clearName().build(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() @@ -1356,7 +1356,7 @@ public class HttpJsonDlpServiceStub extends DlpServiceStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearName().build())) + .toBody("*", request.toBuilder().clearName().build(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() @@ -1392,7 +1392,7 @@ public class HttpJsonDlpServiceStub extends DlpServiceStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearName().build())) + .toBody("*", request.toBuilder().clearName().build(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder()