diff --git a/java-phishingprotection/README.md b/java-phishingprotection/README.md index 2b81d2972edd..31c16ffb08e8 100644 --- a/java-phishingprotection/README.md +++ b/java-phishingprotection/README.md @@ -52,20 +52,20 @@ If you are using Maven without BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies: ```Groovy -implementation platform('com.google.cloud:libraries-bom:26.1.3') +implementation platform('com.google.cloud:libraries-bom:26.1.4') implementation 'com.google.cloud:google-cloud-phishingprotection' ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-phishingprotection:0.34.6' +implementation 'com.google.cloud:google-cloud-phishingprotection:0.36.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-phishingprotection" % "0.34.6" +libraryDependencies += "com.google.cloud" % "google-cloud-phishingprotection" % "0.36.0" ``` ## Authentication diff --git a/java-phishingprotection/google-cloud-phishingprotection/src/main/java/com/google/cloud/phishingprotection/v1beta1/PhishingProtectionServiceV1Beta1Client.java b/java-phishingprotection/google-cloud-phishingprotection/src/main/java/com/google/cloud/phishingprotection/v1beta1/PhishingProtectionServiceV1Beta1Client.java index 2ec66da5f1aa..7b472da7e66e 100644 --- a/java-phishingprotection/google-cloud-phishingprotection/src/main/java/com/google/cloud/phishingprotection/v1beta1/PhishingProtectionServiceV1Beta1Client.java +++ b/java-phishingprotection/google-cloud-phishingprotection/src/main/java/com/google/cloud/phishingprotection/v1beta1/PhishingProtectionServiceV1Beta1Client.java @@ -117,11 +117,7 @@ * // - It may require 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( - * PhishingProtectionServiceV1Beta1Settings.defaultHttpJsonTransportProviderBuilder() - * .build()) - * .build(); + * PhishingProtectionServiceV1Beta1Settings.newHttpJsonBuilder().build(); * PhishingProtectionServiceV1Beta1Client phishingProtectionServiceV1Beta1Client = * PhishingProtectionServiceV1Beta1Client.create(phishingProtectionServiceV1Beta1Settings); * } diff --git a/java-phishingprotection/samples/snippets/generated/com/google/cloud/phishingprotection/v1beta1/phishingprotectionservicev1beta1client/create/SyncCreateSetCredentialsProvider.java b/java-phishingprotection/samples/snippets/generated/com/google/cloud/phishingprotection/v1beta1/phishingprotectionservicev1beta1/create/SyncCreateSetCredentialsProvider.java similarity index 89% rename from java-phishingprotection/samples/snippets/generated/com/google/cloud/phishingprotection/v1beta1/phishingprotectionservicev1beta1client/create/SyncCreateSetCredentialsProvider.java rename to java-phishingprotection/samples/snippets/generated/com/google/cloud/phishingprotection/v1beta1/phishingprotectionservicev1beta1/create/SyncCreateSetCredentialsProvider.java index d206737f2e0a..090495c7b07d 100644 --- a/java-phishingprotection/samples/snippets/generated/com/google/cloud/phishingprotection/v1beta1/phishingprotectionservicev1beta1client/create/SyncCreateSetCredentialsProvider.java +++ b/java-phishingprotection/samples/snippets/generated/com/google/cloud/phishingprotection/v1beta1/phishingprotectionservicev1beta1/create/SyncCreateSetCredentialsProvider.java @@ -16,7 +16,7 @@ package com.google.cloud.phishingprotection.v1beta1.samples; -// [START phishingprotection_v1beta1_generated_phishingprotectionservicev1beta1client_create_setcredentialsprovider_sync] +// [START phishingprotection_v1beta1_generated_PhishingProtectionServiceV1Beta1_Create_SetCredentialsProvider_sync] import com.google.api.gax.core.FixedCredentialsProvider; import com.google.cloud.phishingprotection.v1beta1.PhishingProtectionServiceV1Beta1Client; import com.google.cloud.phishingprotection.v1beta1.PhishingProtectionServiceV1Beta1Settings; @@ -42,4 +42,4 @@ public static void syncCreateSetCredentialsProvider() throws Exception { PhishingProtectionServiceV1Beta1Client.create(phishingProtectionServiceV1Beta1Settings); } } -// [END phishingprotection_v1beta1_generated_phishingprotectionservicev1beta1client_create_setcredentialsprovider_sync] +// [END phishingprotection_v1beta1_generated_PhishingProtectionServiceV1Beta1_Create_SetCredentialsProvider_sync] diff --git a/java-phishingprotection/samples/snippets/generated/com/google/cloud/phishingprotection/v1beta1/phishingprotectionservicev1beta1client/create/SyncCreateSetCredentialsProvider1.java b/java-phishingprotection/samples/snippets/generated/com/google/cloud/phishingprotection/v1beta1/phishingprotectionservicev1beta1/create/SyncCreateSetCredentialsProvider1.java similarity index 77% rename from java-phishingprotection/samples/snippets/generated/com/google/cloud/phishingprotection/v1beta1/phishingprotectionservicev1beta1client/create/SyncCreateSetCredentialsProvider1.java rename to java-phishingprotection/samples/snippets/generated/com/google/cloud/phishingprotection/v1beta1/phishingprotectionservicev1beta1/create/SyncCreateSetCredentialsProvider1.java index d81240c7009a..c4ba0b2ea4c5 100644 --- a/java-phishingprotection/samples/snippets/generated/com/google/cloud/phishingprotection/v1beta1/phishingprotectionservicev1beta1client/create/SyncCreateSetCredentialsProvider1.java +++ b/java-phishingprotection/samples/snippets/generated/com/google/cloud/phishingprotection/v1beta1/phishingprotectionservicev1beta1/create/SyncCreateSetCredentialsProvider1.java @@ -16,7 +16,7 @@ package com.google.cloud.phishingprotection.v1beta1.samples; -// [START phishingprotection_v1beta1_generated_phishingprotectionservicev1beta1client_create_setcredentialsprovider1_sync] +// [START phishingprotection_v1beta1_generated_PhishingProtectionServiceV1Beta1_Create_SetCredentialsProvider1_sync] import com.google.cloud.phishingprotection.v1beta1.PhishingProtectionServiceV1Beta1Client; import com.google.cloud.phishingprotection.v1beta1.PhishingProtectionServiceV1Beta1Settings; @@ -33,13 +33,9 @@ public static void syncCreateSetCredentialsProvider1() throws Exception { // - It may require 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( - PhishingProtectionServiceV1Beta1Settings.defaultHttpJsonTransportProviderBuilder() - .build()) - .build(); + PhishingProtectionServiceV1Beta1Settings.newHttpJsonBuilder().build(); PhishingProtectionServiceV1Beta1Client phishingProtectionServiceV1Beta1Client = PhishingProtectionServiceV1Beta1Client.create(phishingProtectionServiceV1Beta1Settings); } } -// [END phishingprotection_v1beta1_generated_phishingprotectionservicev1beta1client_create_setcredentialsprovider1_sync] +// [END phishingprotection_v1beta1_generated_PhishingProtectionServiceV1Beta1_Create_SetCredentialsProvider1_sync] diff --git a/java-phishingprotection/samples/snippets/generated/com/google/cloud/phishingprotection/v1beta1/phishingprotectionservicev1beta1client/create/SyncCreateSetEndpoint.java b/java-phishingprotection/samples/snippets/generated/com/google/cloud/phishingprotection/v1beta1/phishingprotectionservicev1beta1/create/SyncCreateSetEndpoint.java similarity index 89% rename from java-phishingprotection/samples/snippets/generated/com/google/cloud/phishingprotection/v1beta1/phishingprotectionservicev1beta1client/create/SyncCreateSetEndpoint.java rename to java-phishingprotection/samples/snippets/generated/com/google/cloud/phishingprotection/v1beta1/phishingprotectionservicev1beta1/create/SyncCreateSetEndpoint.java index 0c494b01de54..4797668b1404 100644 --- a/java-phishingprotection/samples/snippets/generated/com/google/cloud/phishingprotection/v1beta1/phishingprotectionservicev1beta1client/create/SyncCreateSetEndpoint.java +++ b/java-phishingprotection/samples/snippets/generated/com/google/cloud/phishingprotection/v1beta1/phishingprotectionservicev1beta1/create/SyncCreateSetEndpoint.java @@ -16,7 +16,7 @@ package com.google.cloud.phishingprotection.v1beta1.samples; -// [START phishingprotection_v1beta1_generated_phishingprotectionservicev1beta1client_create_setendpoint_sync] +// [START phishingprotection_v1beta1_generated_PhishingProtectionServiceV1Beta1_Create_SetEndpoint_sync] import com.google.cloud.phishingprotection.v1beta1.PhishingProtectionServiceV1Beta1Client; import com.google.cloud.phishingprotection.v1beta1.PhishingProtectionServiceV1Beta1Settings; import com.google.cloud.phishingprotection.v1beta1.myEndpoint; @@ -39,4 +39,4 @@ public static void syncCreateSetEndpoint() throws Exception { PhishingProtectionServiceV1Beta1Client.create(phishingProtectionServiceV1Beta1Settings); } } -// [END phishingprotection_v1beta1_generated_phishingprotectionservicev1beta1client_create_setendpoint_sync] +// [END phishingprotection_v1beta1_generated_PhishingProtectionServiceV1Beta1_Create_SetEndpoint_sync] diff --git a/java-phishingprotection/samples/snippets/generated/com/google/cloud/phishingprotection/v1beta1/phishingprotectionservicev1beta1client/reportphishing/AsyncReportPhishing.java b/java-phishingprotection/samples/snippets/generated/com/google/cloud/phishingprotection/v1beta1/phishingprotectionservicev1beta1/reportphishing/AsyncReportPhishing.java similarity index 91% rename from java-phishingprotection/samples/snippets/generated/com/google/cloud/phishingprotection/v1beta1/phishingprotectionservicev1beta1client/reportphishing/AsyncReportPhishing.java rename to java-phishingprotection/samples/snippets/generated/com/google/cloud/phishingprotection/v1beta1/phishingprotectionservicev1beta1/reportphishing/AsyncReportPhishing.java index ccf6ea2e5fe7..d9120ed46ce2 100644 --- a/java-phishingprotection/samples/snippets/generated/com/google/cloud/phishingprotection/v1beta1/phishingprotectionservicev1beta1client/reportphishing/AsyncReportPhishing.java +++ b/java-phishingprotection/samples/snippets/generated/com/google/cloud/phishingprotection/v1beta1/phishingprotectionservicev1beta1/reportphishing/AsyncReportPhishing.java @@ -16,7 +16,7 @@ package com.google.cloud.phishingprotection.v1beta1.samples; -// [START phishingprotection_v1beta1_generated_phishingprotectionservicev1beta1client_reportphishing_async] +// [START phishingprotection_v1beta1_generated_PhishingProtectionServiceV1Beta1_ReportPhishing_async] import com.google.api.core.ApiFuture; import com.google.cloud.phishingprotection.v1beta1.PhishingProtectionServiceV1Beta1Client; import com.google.phishingprotection.v1beta1.ProjectName; @@ -49,4 +49,4 @@ public static void asyncReportPhishing() throws Exception { } } } -// [END phishingprotection_v1beta1_generated_phishingprotectionservicev1beta1client_reportphishing_async] +// [END phishingprotection_v1beta1_generated_PhishingProtectionServiceV1Beta1_ReportPhishing_async] diff --git a/java-phishingprotection/samples/snippets/generated/com/google/cloud/phishingprotection/v1beta1/phishingprotectionservicev1beta1client/reportphishing/SyncReportPhishing.java b/java-phishingprotection/samples/snippets/generated/com/google/cloud/phishingprotection/v1beta1/phishingprotectionservicev1beta1/reportphishing/SyncReportPhishing.java similarity index 90% rename from java-phishingprotection/samples/snippets/generated/com/google/cloud/phishingprotection/v1beta1/phishingprotectionservicev1beta1client/reportphishing/SyncReportPhishing.java rename to java-phishingprotection/samples/snippets/generated/com/google/cloud/phishingprotection/v1beta1/phishingprotectionservicev1beta1/reportphishing/SyncReportPhishing.java index 1176597a24f1..04eb54ccd252 100644 --- a/java-phishingprotection/samples/snippets/generated/com/google/cloud/phishingprotection/v1beta1/phishingprotectionservicev1beta1client/reportphishing/SyncReportPhishing.java +++ b/java-phishingprotection/samples/snippets/generated/com/google/cloud/phishingprotection/v1beta1/phishingprotectionservicev1beta1/reportphishing/SyncReportPhishing.java @@ -16,7 +16,7 @@ package com.google.cloud.phishingprotection.v1beta1.samples; -// [START phishingprotection_v1beta1_generated_phishingprotectionservicev1beta1client_reportphishing_sync] +// [START phishingprotection_v1beta1_generated_PhishingProtectionServiceV1Beta1_ReportPhishing_sync] import com.google.cloud.phishingprotection.v1beta1.PhishingProtectionServiceV1Beta1Client; import com.google.phishingprotection.v1beta1.ProjectName; import com.google.phishingprotection.v1beta1.ReportPhishingRequest; @@ -46,4 +46,4 @@ public static void syncReportPhishing() throws Exception { } } } -// [END phishingprotection_v1beta1_generated_phishingprotectionservicev1beta1client_reportphishing_sync] +// [END phishingprotection_v1beta1_generated_PhishingProtectionServiceV1Beta1_ReportPhishing_sync] diff --git a/java-phishingprotection/samples/snippets/generated/com/google/cloud/phishingprotection/v1beta1/phishingprotectionservicev1beta1client/reportphishing/SyncReportPhishingProjectnameString.java b/java-phishingprotection/samples/snippets/generated/com/google/cloud/phishingprotection/v1beta1/phishingprotectionservicev1beta1/reportphishing/SyncReportPhishingProjectnameString.java similarity index 88% rename from java-phishingprotection/samples/snippets/generated/com/google/cloud/phishingprotection/v1beta1/phishingprotectionservicev1beta1client/reportphishing/SyncReportPhishingProjectnameString.java rename to java-phishingprotection/samples/snippets/generated/com/google/cloud/phishingprotection/v1beta1/phishingprotectionservicev1beta1/reportphishing/SyncReportPhishingProjectnameString.java index 6047df823cd0..33a9d0fd0c33 100644 --- a/java-phishingprotection/samples/snippets/generated/com/google/cloud/phishingprotection/v1beta1/phishingprotectionservicev1beta1client/reportphishing/SyncReportPhishingProjectnameString.java +++ b/java-phishingprotection/samples/snippets/generated/com/google/cloud/phishingprotection/v1beta1/phishingprotectionservicev1beta1/reportphishing/SyncReportPhishingProjectnameString.java @@ -16,7 +16,7 @@ package com.google.cloud.phishingprotection.v1beta1.samples; -// [START phishingprotection_v1beta1_generated_phishingprotectionservicev1beta1client_reportphishing_projectnamestring_sync] +// [START phishingprotection_v1beta1_generated_PhishingProtectionServiceV1Beta1_ReportPhishing_ProjectnameString_sync] import com.google.cloud.phishingprotection.v1beta1.PhishingProtectionServiceV1Beta1Client; import com.google.phishingprotection.v1beta1.ProjectName; import com.google.phishingprotection.v1beta1.ReportPhishingResponse; @@ -42,4 +42,4 @@ public static void syncReportPhishingProjectnameString() throws Exception { } } } -// [END phishingprotection_v1beta1_generated_phishingprotectionservicev1beta1client_reportphishing_projectnamestring_sync] +// [END phishingprotection_v1beta1_generated_PhishingProtectionServiceV1Beta1_ReportPhishing_ProjectnameString_sync] diff --git a/java-phishingprotection/samples/snippets/generated/com/google/cloud/phishingprotection/v1beta1/phishingprotectionservicev1beta1client/reportphishing/SyncReportPhishingStringString.java b/java-phishingprotection/samples/snippets/generated/com/google/cloud/phishingprotection/v1beta1/phishingprotectionservicev1beta1/reportphishing/SyncReportPhishingStringString.java similarity index 88% rename from java-phishingprotection/samples/snippets/generated/com/google/cloud/phishingprotection/v1beta1/phishingprotectionservicev1beta1client/reportphishing/SyncReportPhishingStringString.java rename to java-phishingprotection/samples/snippets/generated/com/google/cloud/phishingprotection/v1beta1/phishingprotectionservicev1beta1/reportphishing/SyncReportPhishingStringString.java index 920676051568..96277eeabfff 100644 --- a/java-phishingprotection/samples/snippets/generated/com/google/cloud/phishingprotection/v1beta1/phishingprotectionservicev1beta1client/reportphishing/SyncReportPhishingStringString.java +++ b/java-phishingprotection/samples/snippets/generated/com/google/cloud/phishingprotection/v1beta1/phishingprotectionservicev1beta1/reportphishing/SyncReportPhishingStringString.java @@ -16,7 +16,7 @@ package com.google.cloud.phishingprotection.v1beta1.samples; -// [START phishingprotection_v1beta1_generated_phishingprotectionservicev1beta1client_reportphishing_stringstring_sync] +// [START phishingprotection_v1beta1_generated_PhishingProtectionServiceV1Beta1_ReportPhishing_StringString_sync] import com.google.cloud.phishingprotection.v1beta1.PhishingProtectionServiceV1Beta1Client; import com.google.phishingprotection.v1beta1.ProjectName; import com.google.phishingprotection.v1beta1.ReportPhishingResponse; @@ -42,4 +42,4 @@ public static void syncReportPhishingStringString() throws Exception { } } } -// [END phishingprotection_v1beta1_generated_phishingprotectionservicev1beta1client_reportphishing_stringstring_sync] +// [END phishingprotection_v1beta1_generated_PhishingProtectionServiceV1Beta1_ReportPhishing_StringString_sync] diff --git a/java-phishingprotection/samples/snippets/generated/com/google/cloud/phishingprotection/v1beta1/phishingprotectionservicev1beta1settings/reportphishing/SyncReportPhishing.java b/java-phishingprotection/samples/snippets/generated/com/google/cloud/phishingprotection/v1beta1/phishingprotectionservicev1beta1settings/reportphishing/SyncReportPhishing.java index d8913d1b9168..eb11fa533c43 100644 --- a/java-phishingprotection/samples/snippets/generated/com/google/cloud/phishingprotection/v1beta1/phishingprotectionservicev1beta1settings/reportphishing/SyncReportPhishing.java +++ b/java-phishingprotection/samples/snippets/generated/com/google/cloud/phishingprotection/v1beta1/phishingprotectionservicev1beta1settings/reportphishing/SyncReportPhishing.java @@ -16,7 +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; @@ -48,4 +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/java-phishingprotection/samples/snippets/generated/com/google/cloud/phishingprotection/v1beta1/stub/phishingprotectionservicev1beta1stubsettings/reportphishing/SyncReportPhishing.java b/java-phishingprotection/samples/snippets/generated/com/google/cloud/phishingprotection/v1beta1/stub/phishingprotectionservicev1beta1stubsettings/reportphishing/SyncReportPhishing.java index f9e88ce14a75..5e1b4b114bbd 100644 --- a/java-phishingprotection/samples/snippets/generated/com/google/cloud/phishingprotection/v1beta1/stub/phishingprotectionservicev1beta1stubsettings/reportphishing/SyncReportPhishing.java +++ b/java-phishingprotection/samples/snippets/generated/com/google/cloud/phishingprotection/v1beta1/stub/phishingprotectionservicev1beta1stubsettings/reportphishing/SyncReportPhishing.java @@ -16,7 +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; @@ -48,4 +48,4 @@ public static void syncReportPhishing() throws Exception { phishingProtectionServiceV1Beta1SettingsBuilder.build(); } } -// [END phishingprotection_v1beta1_generated_phishingprotectionservicev1beta1stubsettings_reportphishing_sync] +// [END phishingprotection_v1beta1_generated_PhishingProtectionServiceV1Beta1StubSettings_ReportPhishing_sync]