{@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]
From 2b5065455982b0ed444e890e8ade0ce56e450f37 Mon Sep 17 00:00:00 2001
From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com>
Date: Sat, 10 Sep 2022 02:10:19 +0000
Subject: [PATCH 3/5] chore: Generated snippets should not be owned by samples
reviewers (#1575) (#718)
Source-Link: https://github.com/googleapis/synthtool/commit/2e9ac19d5b8181af77cdc5337cf922517813cc49
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:8175681a918181d306d9c370d3262f16b4c724cc73d74111b7d42fc985ca7f93
---
.github/.OwlBot.lock.yaml | 3 +--
.github/CODEOWNERS | 3 +++
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml
index de9173d9..62592923 100644
--- a/.github/.OwlBot.lock.yaml
+++ b/.github/.OwlBot.lock.yaml
@@ -13,5 +13,4 @@
# limitations under the License.
docker:
image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest
- digest: sha256:d4b80feffe1579818cdc39466152e9de95789a193408506cd4a1ffbe8804dc00
-# created: 2022-07-13T13:53:17.676447481Z
+ digest: sha256:8175681a918181d306d9c370d3262f16b4c724cc73d74111b7d42fc985ca7f93
diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS
index 30fdb7b9..db2d8ad1 100644
--- a/.github/CODEOWNERS
+++ b/.github/CODEOWNERS
@@ -8,3 +8,6 @@
# The java-samples-reviewers team is the default owner for samples changes
samples/**/*.java @googleapis/java-samples-reviewers
+
+# Generated snippets should not be owned by samples reviewers
+samples/snippets/generated/ @googleapis/yoshi-java
From 979786303c544aa9be31feb5bef5f267d94ac673 Mon Sep 17 00:00:00 2001
From: WhiteSource Renovate
Date: Thu, 15 Sep 2022 14:24:27 +0200
Subject: [PATCH 4/5] deps: update dependency
com.google.cloud:google-cloud-shared-dependencies to v3.0.3 (#719)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
[](https://renovatebot.com)
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [com.google.cloud:google-cloud-shared-dependencies](https://togithub.com/googleapis/java-shared-dependencies) | `3.0.2` -> `3.0.3` | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) |
---
### Release Notes
googleapis/java-shared-dependencies
### [`v3.0.3`](https://togithub.com/googleapis/java-shared-dependencies/blob/HEAD/CHANGELOG.md#303-httpsgithubcomgoogleapisjava-shared-dependenciescomparev302v303-2022-09-14)
[Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v3.0.2...v3.0.3)
##### Dependencies
- Google-cloud-core 2.8.12 ([#799](https://togithub.com/googleapis/java-shared-dependencies/issues/799)) ([1b3db8d](https://togithub.com/googleapis/java-shared-dependencies/commit/1b3db8d1e17c49ebae79fc96164fa9058e1df6e3))
- Moving gson to first-party-dependencies ([#800](https://togithub.com/googleapis/java-shared-dependencies/issues/800)) ([a41fcc1](https://togithub.com/googleapis/java-shared-dependencies/commit/a41fcc11d32e02e5af2837561792e3919f6d4b3f))
- Update dependency com.google.protobuf:protobuf-bom to v3.21.6 ([#797](https://togithub.com/googleapis/java-shared-dependencies/issues/797)) ([bc5fdc9](https://togithub.com/googleapis/java-shared-dependencies/commit/bc5fdc9b3af7973c28f063a9ac156fe2af562814))
- Update gax.version to v2.19.1 ([#798](https://togithub.com/googleapis/java-shared-dependencies/issues/798)) ([84e5487](https://togithub.com/googleapis/java-shared-dependencies/commit/84e5487b2e3dce4bb60badecebde788c3cb702b8))
- Update google.core.version to v2.8.11 ([#793](https://togithub.com/googleapis/java-shared-dependencies/issues/793)) ([63c1297](https://togithub.com/googleapis/java-shared-dependencies/commit/63c129722aa0b821031ff5b4c11004adf7b12044))
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.
â™» **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 **Ignore**: Close this PR and you won't be reminded about this update again.
---
- [ ] If you want to rebase/retry this PR, click this checkbox.
---
This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-phishingprotection).
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 2764354f..1c5f5fb9 100644
--- a/pom.xml
+++ b/pom.xml
@@ -77,7 +77,7 @@
com.google.cloud
google-cloud-shared-dependencies
- 3.0.2
+ 3.0.3
pom
import
From 1e7a51740d1b9be96f1253f447e2c24f026f1ac2 Mon Sep 17 00:00:00 2001
From: "release-please[bot]"
<55107282+release-please[bot]@users.noreply.github.com>
Date: Thu, 15 Sep 2022 12:48:19 +0000
Subject: [PATCH 5/5] chore(main): release 0.34.4 (#720)
:robot: I have created a release *beep* *boop*
---
## [0.34.4](https://github.com/googleapis/java-phishingprotection/compare/v0.34.3...v0.34.4) (2022-09-15)
### Dependencies
* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.0.3 ([#719](https://github.com/googleapis/java-phishingprotection/issues/719)) ([9797863](https://github.com/googleapis/java-phishingprotection/commit/979786303c544aa9be31feb5bef5f267d94ac673))
---
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
---
CHANGELOG.md | 7 +++++++
google-cloud-phishingprotection-bom/pom.xml | 8 ++++----
google-cloud-phishingprotection/pom.xml | 4 ++--
grpc-google-cloud-phishingprotection-v1beta1/pom.xml | 4 ++--
pom.xml | 8 ++++----
proto-google-cloud-phishingprotection-v1beta1/pom.xml | 4 ++--
versions.txt | 6 +++---
7 files changed, 24 insertions(+), 17 deletions(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 14edef35..edbb8e45 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,12 @@
# Changelog
+## [0.34.4](https://github.com/googleapis/java-phishingprotection/compare/v0.34.3...v0.34.4) (2022-09-15)
+
+
+### Dependencies
+
+* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.0.3 ([#719](https://github.com/googleapis/java-phishingprotection/issues/719)) ([9797863](https://github.com/googleapis/java-phishingprotection/commit/979786303c544aa9be31feb5bef5f267d94ac673))
+
## [0.34.3](https://github.com/googleapis/java-phishingprotection/compare/v0.34.2...v0.34.3) (2022-09-09)
diff --git a/google-cloud-phishingprotection-bom/pom.xml b/google-cloud-phishingprotection-bom/pom.xml
index c47065f8..e168da77 100644
--- a/google-cloud-phishingprotection-bom/pom.xml
+++ b/google-cloud-phishingprotection-bom/pom.xml
@@ -3,7 +3,7 @@
4.0.0
com.google.cloud
google-cloud-phishingprotection-bom
- 0.34.4-SNAPSHOT
+ 0.34.4
pom
com.google.cloud
@@ -52,17 +52,17 @@
com.google.cloud
google-cloud-phishingprotection
- 0.34.4-SNAPSHOT
+ 0.34.4
com.google.api.grpc
grpc-google-cloud-phishingprotection-v1beta1
- 0.34.4-SNAPSHOT
+ 0.34.4
com.google.api.grpc
proto-google-cloud-phishingprotection-v1beta1
- 0.34.4-SNAPSHOT
+ 0.34.4