From 24632dc67e616222e60dff6ece4dcb4066923234 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Fri, 9 Sep 2022 16:26:21 +0000 Subject: [PATCH] chore(bazel): Update WORKSPACE files for rules_gapic, gax_java, generator_java versions (#714) - [ ] Regenerate this pull request now. PiperOrigin-RevId: 472750037 Source-Link: https://github.com/googleapis/googleapis/commit/88f2ea3f53b9712f2e04f28f06210f6f77fa7e24 Source-Link: https://github.com/googleapis/googleapis-gen/commit/230a5588306aae18fe8f2a57f14d4039ad72c901 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMjMwYTU1ODgzMDZhYWUxOGZlOGYyYTU3ZjE0ZDQwMzlhZDcyYzkwMSJ9 --- ...hishingProtectionServiceV1Beta1Client.java | 56 +++++++++++++------ ...shingProtectionServiceV1Beta1Settings.java | 7 ++- .../v1beta1/package-info.java | 7 ++- ...nPhishingProtectionServiceV1Beta1Stub.java | 2 +- ...gProtectionServiceV1Beta1StubSettings.java | 7 ++- .../SyncCreateSetCredentialsProvider.java | 13 +++-- .../SyncCreateSetCredentialsProvider1.java | 13 +++-- .../create/SyncCreateSetEndpoint.java | 13 +++-- .../reportphishing/AsyncReportPhishing.java | 13 +++-- .../reportphishing/SyncReportPhishing.java | 13 +++-- .../SyncReportPhishingProjectnameString.java | 13 +++-- .../SyncReportPhishingStringString.java | 13 +++-- .../reportphishing/SyncReportPhishing.java | 13 +++-- .../reportphishing/SyncReportPhishing.java | 13 +++-- 14 files changed, 119 insertions(+), 77 deletions(-) diff --git a/google-cloud-phishingprotection/src/main/java/com/google/cloud/phishingprotection/v1beta1/PhishingProtectionServiceV1Beta1Client.java b/google-cloud-phishingprotection/src/main/java/com/google/cloud/phishingprotection/v1beta1/PhishingProtectionServiceV1Beta1Client.java index e8559f92..2ec66da5 100644 --- a/google-cloud-phishingprotection/src/main/java/com/google/cloud/phishingprotection/v1beta1/PhishingProtectionServiceV1Beta1Client.java +++ b/google-cloud-phishingprotection/src/main/java/com/google/cloud/phishingprotection/v1beta1/PhishingProtectionServiceV1Beta1Client.java @@ -36,8 +36,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 (PhishingProtectionServiceV1Beta1Client phishingProtectionServiceV1Beta1Client =
  *     PhishingProtectionServiceV1Beta1Client.create()) {
  *   ProjectName parent = ProjectName.of("[PROJECT]");
@@ -77,8 +80,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
  * PhishingProtectionServiceV1Beta1Settings phishingProtectionServiceV1Beta1Settings =
  *     PhishingProtectionServiceV1Beta1Settings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -90,8 +96,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
  * PhishingProtectionServiceV1Beta1Settings phishingProtectionServiceV1Beta1Settings =
  *     PhishingProtectionServiceV1Beta1Settings.newBuilder().setEndpoint(myEndpoint).build();
  * PhishingProtectionServiceV1Beta1Client phishingProtectionServiceV1Beta1Client =
@@ -102,8 +111,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
  * PhishingProtectionServiceV1Beta1Settings phishingProtectionServiceV1Beta1Settings =
  *     PhishingProtectionServiceV1Beta1Settings.newBuilder()
  *         .setTransportChannelProvider(
@@ -184,8 +196,11 @@ public PhishingProtectionServiceV1Beta1Stub 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 (PhishingProtectionServiceV1Beta1Client phishingProtectionServiceV1Beta1Client =
    *     PhishingProtectionServiceV1Beta1Client.create()) {
    *   ProjectName parent = ProjectName.of("[PROJECT]");
@@ -221,8 +236,11 @@ public final ReportPhishingResponse reportPhishing(ProjectName parent, String ur
    * 

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 (PhishingProtectionServiceV1Beta1Client phishingProtectionServiceV1Beta1Client =
    *     PhishingProtectionServiceV1Beta1Client.create()) {
    *   String parent = ProjectName.of("[PROJECT]").toString();
@@ -255,8 +273,11 @@ public final ReportPhishingResponse reportPhishing(String parent, String uri) {
    * 

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 (PhishingProtectionServiceV1Beta1Client phishingProtectionServiceV1Beta1Client =
    *     PhishingProtectionServiceV1Beta1Client.create()) {
    *   ReportPhishingRequest request =
@@ -288,8 +309,11 @@ public final ReportPhishingResponse reportPhishing(ReportPhishingRequest 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 (PhishingProtectionServiceV1Beta1Client phishingProtectionServiceV1Beta1Client =
    *     PhishingProtectionServiceV1Beta1Client.create()) {
    *   ReportPhishingRequest request =
diff --git a/google-cloud-phishingprotection/src/main/java/com/google/cloud/phishingprotection/v1beta1/PhishingProtectionServiceV1Beta1Settings.java b/google-cloud-phishingprotection/src/main/java/com/google/cloud/phishingprotection/v1beta1/PhishingProtectionServiceV1Beta1Settings.java
index e505fe3b..678fd416 100644
--- a/google-cloud-phishingprotection/src/main/java/com/google/cloud/phishingprotection/v1beta1/PhishingProtectionServiceV1Beta1Settings.java
+++ b/google-cloud-phishingprotection/src/main/java/com/google/cloud/phishingprotection/v1beta1/PhishingProtectionServiceV1Beta1Settings.java
@@ -53,8 +53,11 @@
  * 

For example, to set the total timeout of reportPhishing 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
  * PhishingProtectionServiceV1Beta1Settings.Builder
  *     phishingProtectionServiceV1Beta1SettingsBuilder =
  *         PhishingProtectionServiceV1Beta1Settings.newBuilder();
diff --git a/google-cloud-phishingprotection/src/main/java/com/google/cloud/phishingprotection/v1beta1/package-info.java b/google-cloud-phishingprotection/src/main/java/com/google/cloud/phishingprotection/v1beta1/package-info.java
index 50b65708..8a4b6bbf 100644
--- a/google-cloud-phishingprotection/src/main/java/com/google/cloud/phishingprotection/v1beta1/package-info.java
+++ b/google-cloud-phishingprotection/src/main/java/com/google/cloud/phishingprotection/v1beta1/package-info.java
@@ -24,8 +24,11 @@
  * 

Sample for PhishingProtectionServiceV1Beta1Client: * *

{@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 (PhishingProtectionServiceV1Beta1Client phishingProtectionServiceV1Beta1Client =
  *     PhishingProtectionServiceV1Beta1Client.create()) {
  *   ProjectName parent = ProjectName.of("[PROJECT]");
diff --git a/google-cloud-phishingprotection/src/main/java/com/google/cloud/phishingprotection/v1beta1/stub/HttpJsonPhishingProtectionServiceV1Beta1Stub.java b/google-cloud-phishingprotection/src/main/java/com/google/cloud/phishingprotection/v1beta1/stub/HttpJsonPhishingProtectionServiceV1Beta1Stub.java
index 1bf0c783..9216efe2 100644
--- a/google-cloud-phishingprotection/src/main/java/com/google/cloud/phishingprotection/v1beta1/stub/HttpJsonPhishingProtectionServiceV1Beta1Stub.java
+++ b/google-cloud-phishingprotection/src/main/java/com/google/cloud/phishingprotection/v1beta1/stub/HttpJsonPhishingProtectionServiceV1Beta1Stub.java
@@ -79,7 +79,7 @@ public class HttpJsonPhishingProtectionServiceV1Beta1Stub
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("*", request.toBuilder().clearParent().build()))
+                                  .toBody("*", request.toBuilder().clearParent().build(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
diff --git a/google-cloud-phishingprotection/src/main/java/com/google/cloud/phishingprotection/v1beta1/stub/PhishingProtectionServiceV1Beta1StubSettings.java b/google-cloud-phishingprotection/src/main/java/com/google/cloud/phishingprotection/v1beta1/stub/PhishingProtectionServiceV1Beta1StubSettings.java
index 36dcdece..d93ed72e 100644
--- a/google-cloud-phishingprotection/src/main/java/com/google/cloud/phishingprotection/v1beta1/stub/PhishingProtectionServiceV1Beta1StubSettings.java
+++ b/google-cloud-phishingprotection/src/main/java/com/google/cloud/phishingprotection/v1beta1/stub/PhishingProtectionServiceV1Beta1StubSettings.java
@@ -64,8 +64,11 @@
  * 

For example, to set the total timeout of reportPhishing 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
  * PhishingProtectionServiceV1Beta1StubSettings.Builder
  *     phishingProtectionServiceV1Beta1SettingsBuilder =
  *         PhishingProtectionServiceV1Beta1StubSettings.newBuilder();
diff --git a/samples/snippets/generated/com/google/cloud/phishingprotection/v1beta1/phishingprotectionservicev1beta1client/create/SyncCreateSetCredentialsProvider.java b/samples/snippets/generated/com/google/cloud/phishingprotection/v1beta1/phishingprotectionservicev1beta1client/create/SyncCreateSetCredentialsProvider.java
index fbc05917..d206737f 100644
--- a/samples/snippets/generated/com/google/cloud/phishingprotection/v1beta1/phishingprotectionservicev1beta1client/create/SyncCreateSetCredentialsProvider.java
+++ b/samples/snippets/generated/com/google/cloud/phishingprotection/v1beta1/phishingprotectionservicev1beta1client/create/SyncCreateSetCredentialsProvider.java
@@ -16,8 +16,7 @@
 
 package com.google.cloud.phishingprotection.v1beta1.samples;
 
-// [START
-// phishingprotection_v1beta1_generated_phishingprotectionservicev1beta1client_create_setcredentialsprovider_sync]
+// [START phishingprotection_v1beta1_generated_phishingprotectionservicev1beta1client_create_setcredentialsprovider_sync]
 import com.google.api.gax.core.FixedCredentialsProvider;
 import com.google.cloud.phishingprotection.v1beta1.PhishingProtectionServiceV1Beta1Client;
 import com.google.cloud.phishingprotection.v1beta1.PhishingProtectionServiceV1Beta1Settings;
@@ -30,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateSetCredentialsProvider() throws Exception {
-    // 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
     PhishingProtectionServiceV1Beta1Settings phishingProtectionServiceV1Beta1Settings =
         PhishingProtectionServiceV1Beta1Settings.newBuilder()
             .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -40,5 +42,4 @@ public static void syncCreateSetCredentialsProvider() throws Exception {
         PhishingProtectionServiceV1Beta1Client.create(phishingProtectionServiceV1Beta1Settings);
   }
 }
-// [END
-// phishingprotection_v1beta1_generated_phishingprotectionservicev1beta1client_create_setcredentialsprovider_sync]
+// [END phishingprotection_v1beta1_generated_phishingprotectionservicev1beta1client_create_setcredentialsprovider_sync]
diff --git a/samples/snippets/generated/com/google/cloud/phishingprotection/v1beta1/phishingprotectionservicev1beta1client/create/SyncCreateSetCredentialsProvider1.java b/samples/snippets/generated/com/google/cloud/phishingprotection/v1beta1/phishingprotectionservicev1beta1client/create/SyncCreateSetCredentialsProvider1.java
index ef9b86c5..d81240c7 100644
--- a/samples/snippets/generated/com/google/cloud/phishingprotection/v1beta1/phishingprotectionservicev1beta1client/create/SyncCreateSetCredentialsProvider1.java
+++ b/samples/snippets/generated/com/google/cloud/phishingprotection/v1beta1/phishingprotectionservicev1beta1client/create/SyncCreateSetCredentialsProvider1.java
@@ -16,8 +16,7 @@
 
 package com.google.cloud.phishingprotection.v1beta1.samples;
 
-// [START
-// phishingprotection_v1beta1_generated_phishingprotectionservicev1beta1client_create_setcredentialsprovider1_sync]
+// [START phishingprotection_v1beta1_generated_phishingprotectionservicev1beta1client_create_setcredentialsprovider1_sync]
 import com.google.cloud.phishingprotection.v1beta1.PhishingProtectionServiceV1Beta1Client;
 import com.google.cloud.phishingprotection.v1beta1.PhishingProtectionServiceV1Beta1Settings;
 
@@ -28,8 +27,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateSetCredentialsProvider1() throws Exception {
-    // 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
     PhishingProtectionServiceV1Beta1Settings phishingProtectionServiceV1Beta1Settings =
         PhishingProtectionServiceV1Beta1Settings.newBuilder()
             .setTransportChannelProvider(
@@ -40,5 +42,4 @@ public static void syncCreateSetCredentialsProvider1() throws Exception {
         PhishingProtectionServiceV1Beta1Client.create(phishingProtectionServiceV1Beta1Settings);
   }
 }
-// [END
-// phishingprotection_v1beta1_generated_phishingprotectionservicev1beta1client_create_setcredentialsprovider1_sync]
+// [END phishingprotection_v1beta1_generated_phishingprotectionservicev1beta1client_create_setcredentialsprovider1_sync]
diff --git a/samples/snippets/generated/com/google/cloud/phishingprotection/v1beta1/phishingprotectionservicev1beta1client/create/SyncCreateSetEndpoint.java b/samples/snippets/generated/com/google/cloud/phishingprotection/v1beta1/phishingprotectionservicev1beta1client/create/SyncCreateSetEndpoint.java
index 3c8fd580..0c494b01 100644
--- a/samples/snippets/generated/com/google/cloud/phishingprotection/v1beta1/phishingprotectionservicev1beta1client/create/SyncCreateSetEndpoint.java
+++ b/samples/snippets/generated/com/google/cloud/phishingprotection/v1beta1/phishingprotectionservicev1beta1client/create/SyncCreateSetEndpoint.java
@@ -16,8 +16,7 @@
 
 package com.google.cloud.phishingprotection.v1beta1.samples;
 
-// [START
-// phishingprotection_v1beta1_generated_phishingprotectionservicev1beta1client_create_setendpoint_sync]
+// [START phishingprotection_v1beta1_generated_phishingprotectionservicev1beta1client_create_setendpoint_sync]
 import com.google.cloud.phishingprotection.v1beta1.PhishingProtectionServiceV1Beta1Client;
 import com.google.cloud.phishingprotection.v1beta1.PhishingProtectionServiceV1Beta1Settings;
 import com.google.cloud.phishingprotection.v1beta1.myEndpoint;
@@ -29,13 +28,15 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateSetEndpoint() throws Exception {
-    // 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
     PhishingProtectionServiceV1Beta1Settings phishingProtectionServiceV1Beta1Settings =
         PhishingProtectionServiceV1Beta1Settings.newBuilder().setEndpoint(myEndpoint).build();
     PhishingProtectionServiceV1Beta1Client phishingProtectionServiceV1Beta1Client =
         PhishingProtectionServiceV1Beta1Client.create(phishingProtectionServiceV1Beta1Settings);
   }
 }
-// [END
-// phishingprotection_v1beta1_generated_phishingprotectionservicev1beta1client_create_setendpoint_sync]
+// [END phishingprotection_v1beta1_generated_phishingprotectionservicev1beta1client_create_setendpoint_sync]
diff --git a/samples/snippets/generated/com/google/cloud/phishingprotection/v1beta1/phishingprotectionservicev1beta1client/reportphishing/AsyncReportPhishing.java b/samples/snippets/generated/com/google/cloud/phishingprotection/v1beta1/phishingprotectionservicev1beta1client/reportphishing/AsyncReportPhishing.java
index 9fe76545..ccf6ea2e 100644
--- a/samples/snippets/generated/com/google/cloud/phishingprotection/v1beta1/phishingprotectionservicev1beta1client/reportphishing/AsyncReportPhishing.java
+++ b/samples/snippets/generated/com/google/cloud/phishingprotection/v1beta1/phishingprotectionservicev1beta1client/reportphishing/AsyncReportPhishing.java
@@ -16,8 +16,7 @@
 
 package com.google.cloud.phishingprotection.v1beta1.samples;
 
-// [START
-// phishingprotection_v1beta1_generated_phishingprotectionservicev1beta1client_reportphishing_async]
+// [START phishingprotection_v1beta1_generated_phishingprotectionservicev1beta1client_reportphishing_async]
 import com.google.api.core.ApiFuture;
 import com.google.cloud.phishingprotection.v1beta1.PhishingProtectionServiceV1Beta1Client;
 import com.google.phishingprotection.v1beta1.ProjectName;
@@ -31,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncReportPhishing() throws Exception {
-    // 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 (PhishingProtectionServiceV1Beta1Client phishingProtectionServiceV1Beta1Client =
         PhishingProtectionServiceV1Beta1Client.create()) {
       ReportPhishingRequest request =
@@ -47,5 +49,4 @@ public static void asyncReportPhishing() throws Exception {
     }
   }
 }
-// [END
-// phishingprotection_v1beta1_generated_phishingprotectionservicev1beta1client_reportphishing_async]
+// [END phishingprotection_v1beta1_generated_phishingprotectionservicev1beta1client_reportphishing_async]
diff --git a/samples/snippets/generated/com/google/cloud/phishingprotection/v1beta1/phishingprotectionservicev1beta1client/reportphishing/SyncReportPhishing.java b/samples/snippets/generated/com/google/cloud/phishingprotection/v1beta1/phishingprotectionservicev1beta1client/reportphishing/SyncReportPhishing.java
index 70d70369..1176597a 100644
--- a/samples/snippets/generated/com/google/cloud/phishingprotection/v1beta1/phishingprotectionservicev1beta1client/reportphishing/SyncReportPhishing.java
+++ b/samples/snippets/generated/com/google/cloud/phishingprotection/v1beta1/phishingprotectionservicev1beta1client/reportphishing/SyncReportPhishing.java
@@ -16,8 +16,7 @@
 
 package com.google.cloud.phishingprotection.v1beta1.samples;
 
-// [START
-// phishingprotection_v1beta1_generated_phishingprotectionservicev1beta1client_reportphishing_sync]
+// [START phishingprotection_v1beta1_generated_phishingprotectionservicev1beta1client_reportphishing_sync]
 import com.google.cloud.phishingprotection.v1beta1.PhishingProtectionServiceV1Beta1Client;
 import com.google.phishingprotection.v1beta1.ProjectName;
 import com.google.phishingprotection.v1beta1.ReportPhishingRequest;
@@ -30,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncReportPhishing() throws Exception {
-    // 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 (PhishingProtectionServiceV1Beta1Client phishingProtectionServiceV1Beta1Client =
         PhishingProtectionServiceV1Beta1Client.create()) {
       ReportPhishingRequest request =
@@ -44,5 +46,4 @@ public static void syncReportPhishing() throws Exception {
     }
   }
 }
-// [END
-// phishingprotection_v1beta1_generated_phishingprotectionservicev1beta1client_reportphishing_sync]
+// [END phishingprotection_v1beta1_generated_phishingprotectionservicev1beta1client_reportphishing_sync]
diff --git a/samples/snippets/generated/com/google/cloud/phishingprotection/v1beta1/phishingprotectionservicev1beta1client/reportphishing/SyncReportPhishingProjectnameString.java b/samples/snippets/generated/com/google/cloud/phishingprotection/v1beta1/phishingprotectionservicev1beta1client/reportphishing/SyncReportPhishingProjectnameString.java
index ef363ca1..6047df82 100644
--- a/samples/snippets/generated/com/google/cloud/phishingprotection/v1beta1/phishingprotectionservicev1beta1client/reportphishing/SyncReportPhishingProjectnameString.java
+++ b/samples/snippets/generated/com/google/cloud/phishingprotection/v1beta1/phishingprotectionservicev1beta1client/reportphishing/SyncReportPhishingProjectnameString.java
@@ -16,8 +16,7 @@
 
 package com.google.cloud.phishingprotection.v1beta1.samples;
 
-// [START
-// phishingprotection_v1beta1_generated_phishingprotectionservicev1beta1client_reportphishing_projectnamestring_sync]
+// [START phishingprotection_v1beta1_generated_phishingprotectionservicev1beta1client_reportphishing_projectnamestring_sync]
 import com.google.cloud.phishingprotection.v1beta1.PhishingProtectionServiceV1Beta1Client;
 import com.google.phishingprotection.v1beta1.ProjectName;
 import com.google.phishingprotection.v1beta1.ReportPhishingResponse;
@@ -29,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncReportPhishingProjectnameString() throws Exception {
-    // 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 (PhishingProtectionServiceV1Beta1Client phishingProtectionServiceV1Beta1Client =
         PhishingProtectionServiceV1Beta1Client.create()) {
       ProjectName parent = ProjectName.of("[PROJECT]");
@@ -40,5 +42,4 @@ public static void syncReportPhishingProjectnameString() throws Exception {
     }
   }
 }
-// [END
-// phishingprotection_v1beta1_generated_phishingprotectionservicev1beta1client_reportphishing_projectnamestring_sync]
+// [END phishingprotection_v1beta1_generated_phishingprotectionservicev1beta1client_reportphishing_projectnamestring_sync]
diff --git a/samples/snippets/generated/com/google/cloud/phishingprotection/v1beta1/phishingprotectionservicev1beta1client/reportphishing/SyncReportPhishingStringString.java b/samples/snippets/generated/com/google/cloud/phishingprotection/v1beta1/phishingprotectionservicev1beta1client/reportphishing/SyncReportPhishingStringString.java
index f958ce81..92067605 100644
--- a/samples/snippets/generated/com/google/cloud/phishingprotection/v1beta1/phishingprotectionservicev1beta1client/reportphishing/SyncReportPhishingStringString.java
+++ b/samples/snippets/generated/com/google/cloud/phishingprotection/v1beta1/phishingprotectionservicev1beta1client/reportphishing/SyncReportPhishingStringString.java
@@ -16,8 +16,7 @@
 
 package com.google.cloud.phishingprotection.v1beta1.samples;
 
-// [START
-// phishingprotection_v1beta1_generated_phishingprotectionservicev1beta1client_reportphishing_stringstring_sync]
+// [START phishingprotection_v1beta1_generated_phishingprotectionservicev1beta1client_reportphishing_stringstring_sync]
 import com.google.cloud.phishingprotection.v1beta1.PhishingProtectionServiceV1Beta1Client;
 import com.google.phishingprotection.v1beta1.ProjectName;
 import com.google.phishingprotection.v1beta1.ReportPhishingResponse;
@@ -29,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncReportPhishingStringString() throws Exception {
-    // 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 (PhishingProtectionServiceV1Beta1Client phishingProtectionServiceV1Beta1Client =
         PhishingProtectionServiceV1Beta1Client.create()) {
       String parent = ProjectName.of("[PROJECT]").toString();
@@ -40,5 +42,4 @@ public static void syncReportPhishingStringString() throws Exception {
     }
   }
 }
-// [END
-// phishingprotection_v1beta1_generated_phishingprotectionservicev1beta1client_reportphishing_stringstring_sync]
+// [END phishingprotection_v1beta1_generated_phishingprotectionservicev1beta1client_reportphishing_stringstring_sync]
diff --git a/samples/snippets/generated/com/google/cloud/phishingprotection/v1beta1/phishingprotectionservicev1beta1settings/reportphishing/SyncReportPhishing.java b/samples/snippets/generated/com/google/cloud/phishingprotection/v1beta1/phishingprotectionservicev1beta1settings/reportphishing/SyncReportPhishing.java
index eedd3f96..d8913d1b 100644
--- a/samples/snippets/generated/com/google/cloud/phishingprotection/v1beta1/phishingprotectionservicev1beta1settings/reportphishing/SyncReportPhishing.java
+++ b/samples/snippets/generated/com/google/cloud/phishingprotection/v1beta1/phishingprotectionservicev1beta1settings/reportphishing/SyncReportPhishing.java
@@ -16,8 +16,7 @@
 
 package com.google.cloud.phishingprotection.v1beta1.samples;
 
-// [START
-// phishingprotection_v1beta1_generated_phishingprotectionservicev1beta1settings_reportphishing_sync]
+// [START phishingprotection_v1beta1_generated_phishingprotectionservicev1beta1settings_reportphishing_sync]
 import com.google.cloud.phishingprotection.v1beta1.PhishingProtectionServiceV1Beta1Settings;
 import java.time.Duration;
 
@@ -28,8 +27,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncReportPhishing() throws Exception {
-    // 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
     PhishingProtectionServiceV1Beta1Settings.Builder
         phishingProtectionServiceV1Beta1SettingsBuilder =
             PhishingProtectionServiceV1Beta1Settings.newBuilder();
@@ -46,5 +48,4 @@ public static void syncReportPhishing() throws Exception {
         phishingProtectionServiceV1Beta1SettingsBuilder.build();
   }
 }
-// [END
-// phishingprotection_v1beta1_generated_phishingprotectionservicev1beta1settings_reportphishing_sync]
+// [END phishingprotection_v1beta1_generated_phishingprotectionservicev1beta1settings_reportphishing_sync]
diff --git a/samples/snippets/generated/com/google/cloud/phishingprotection/v1beta1/stub/phishingprotectionservicev1beta1stubsettings/reportphishing/SyncReportPhishing.java b/samples/snippets/generated/com/google/cloud/phishingprotection/v1beta1/stub/phishingprotectionservicev1beta1stubsettings/reportphishing/SyncReportPhishing.java
index b27d291c..f9e88ce1 100644
--- a/samples/snippets/generated/com/google/cloud/phishingprotection/v1beta1/stub/phishingprotectionservicev1beta1stubsettings/reportphishing/SyncReportPhishing.java
+++ b/samples/snippets/generated/com/google/cloud/phishingprotection/v1beta1/stub/phishingprotectionservicev1beta1stubsettings/reportphishing/SyncReportPhishing.java
@@ -16,8 +16,7 @@
 
 package com.google.cloud.phishingprotection.v1beta1.stub.samples;
 
-// [START
-// phishingprotection_v1beta1_generated_phishingprotectionservicev1beta1stubsettings_reportphishing_sync]
+// [START phishingprotection_v1beta1_generated_phishingprotectionservicev1beta1stubsettings_reportphishing_sync]
 import com.google.cloud.phishingprotection.v1beta1.stub.PhishingProtectionServiceV1Beta1StubSettings;
 import java.time.Duration;
 
@@ -28,8 +27,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncReportPhishing() throws Exception {
-    // 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
     PhishingProtectionServiceV1Beta1StubSettings.Builder
         phishingProtectionServiceV1Beta1SettingsBuilder =
             PhishingProtectionServiceV1Beta1StubSettings.newBuilder();
@@ -46,5 +48,4 @@ public static void syncReportPhishing() throws Exception {
         phishingProtectionServiceV1Beta1SettingsBuilder.build();
   }
 }
-// [END
-// phishingprotection_v1beta1_generated_phishingprotectionservicev1beta1stubsettings_reportphishing_sync]
+// [END phishingprotection_v1beta1_generated_phishingprotectionservicev1beta1stubsettings_reportphishing_sync]