Skip to content

Commit 8fcaaf3

Browse files
chore(bazel): Update WORKSPACE files for rules_gapic, gax_java, generator_java versions (#714)
- [ ] Regenerate this pull request now. PiperOrigin-RevId: 472750037 Source-Link: googleapis/googleapis@88f2ea3 Source-Link: https://github.com/googleapis/googleapis-gen/commit/230a5588306aae18fe8f2a57f14d4039ad72c901 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMjMwYTU1ODgzMDZhYWUxOGZlOGYyYTU3ZjE0ZDQwMzlhZDcyYzkwMSJ9
1 parent 7e10d24 commit 8fcaaf3

File tree

14 files changed

+119
-77
lines changed

14 files changed

+119
-77
lines changed

java-phishingprotection/google-cloud-phishingprotection/src/main/java/com/google/cloud/phishingprotection/v1beta1/PhishingProtectionServiceV1Beta1Client.java

Lines changed: 40 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,11 @@
3636
* calls that map to API methods. Sample code to get started:
3737
*
3838
* <pre>{@code
39-
* // This snippet has been automatically generated for illustrative purposes only.
40-
* // It may require modifications to work in your environment.
39+
* // This snippet has been automatically generated and should be regarded as a code template only.
40+
* // It will require modifications to work:
41+
* // - It may require correct/in-range values for request initialization.
42+
* // - It may require specifying regional endpoints when creating the service client as shown in
43+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
4144
* try (PhishingProtectionServiceV1Beta1Client phishingProtectionServiceV1Beta1Client =
4245
* PhishingProtectionServiceV1Beta1Client.create()) {
4346
* ProjectName parent = ProjectName.of("[PROJECT]");
@@ -77,8 +80,11 @@
7780
* <p>To customize credentials:
7881
*
7982
* <pre>{@code
80-
* // This snippet has been automatically generated for illustrative purposes only.
81-
* // It may require modifications to work in your environment.
83+
* // This snippet has been automatically generated and should be regarded as a code template only.
84+
* // It will require modifications to work:
85+
* // - It may require correct/in-range values for request initialization.
86+
* // - It may require specifying regional endpoints when creating the service client as shown in
87+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
8288
* PhishingProtectionServiceV1Beta1Settings phishingProtectionServiceV1Beta1Settings =
8389
* PhishingProtectionServiceV1Beta1Settings.newBuilder()
8490
* .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -90,8 +96,11 @@
9096
* <p>To customize the endpoint:
9197
*
9298
* <pre>{@code
93-
* // This snippet has been automatically generated for illustrative purposes only.
94-
* // It may require modifications to work in your environment.
99+
* // This snippet has been automatically generated and should be regarded as a code template only.
100+
* // It will require modifications to work:
101+
* // - It may require correct/in-range values for request initialization.
102+
* // - It may require specifying regional endpoints when creating the service client as shown in
103+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
95104
* PhishingProtectionServiceV1Beta1Settings phishingProtectionServiceV1Beta1Settings =
96105
* PhishingProtectionServiceV1Beta1Settings.newBuilder().setEndpoint(myEndpoint).build();
97106
* PhishingProtectionServiceV1Beta1Client phishingProtectionServiceV1Beta1Client =
@@ -102,8 +111,11 @@
102111
* the wire:
103112
*
104113
* <pre>{@code
105-
* // This snippet has been automatically generated for illustrative purposes only.
106-
* // It may require modifications to work in your environment.
114+
* // This snippet has been automatically generated and should be regarded as a code template only.
115+
* // It will require modifications to work:
116+
* // - It may require correct/in-range values for request initialization.
117+
* // - It may require specifying regional endpoints when creating the service client as shown in
118+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
107119
* PhishingProtectionServiceV1Beta1Settings phishingProtectionServiceV1Beta1Settings =
108120
* PhishingProtectionServiceV1Beta1Settings.newBuilder()
109121
* .setTransportChannelProvider(
@@ -184,8 +196,11 @@ public PhishingProtectionServiceV1Beta1Stub getStub() {
184196
* <p>Sample code:
185197
*
186198
* <pre>{@code
187-
* // This snippet has been automatically generated for illustrative purposes only.
188-
* // It may require modifications to work in your environment.
199+
* // This snippet has been automatically generated and should be regarded as a code template only.
200+
* // It will require modifications to work:
201+
* // - It may require correct/in-range values for request initialization.
202+
* // - It may require specifying regional endpoints when creating the service client as shown in
203+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
189204
* try (PhishingProtectionServiceV1Beta1Client phishingProtectionServiceV1Beta1Client =
190205
* PhishingProtectionServiceV1Beta1Client.create()) {
191206
* ProjectName parent = ProjectName.of("[PROJECT]");
@@ -221,8 +236,11 @@ public final ReportPhishingResponse reportPhishing(ProjectName parent, String ur
221236
* <p>Sample code:
222237
*
223238
* <pre>{@code
224-
* // This snippet has been automatically generated for illustrative purposes only.
225-
* // It may require modifications to work in your environment.
239+
* // This snippet has been automatically generated and should be regarded as a code template only.
240+
* // It will require modifications to work:
241+
* // - It may require correct/in-range values for request initialization.
242+
* // - It may require specifying regional endpoints when creating the service client as shown in
243+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
226244
* try (PhishingProtectionServiceV1Beta1Client phishingProtectionServiceV1Beta1Client =
227245
* PhishingProtectionServiceV1Beta1Client.create()) {
228246
* String parent = ProjectName.of("[PROJECT]").toString();
@@ -255,8 +273,11 @@ public final ReportPhishingResponse reportPhishing(String parent, String uri) {
255273
* <p>Sample code:
256274
*
257275
* <pre>{@code
258-
* // This snippet has been automatically generated for illustrative purposes only.
259-
* // It may require modifications to work in your environment.
276+
* // This snippet has been automatically generated and should be regarded as a code template only.
277+
* // It will require modifications to work:
278+
* // - It may require correct/in-range values for request initialization.
279+
* // - It may require specifying regional endpoints when creating the service client as shown in
280+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
260281
* try (PhishingProtectionServiceV1Beta1Client phishingProtectionServiceV1Beta1Client =
261282
* PhishingProtectionServiceV1Beta1Client.create()) {
262283
* ReportPhishingRequest request =
@@ -288,8 +309,11 @@ public final ReportPhishingResponse reportPhishing(ReportPhishingRequest request
288309
* <p>Sample code:
289310
*
290311
* <pre>{@code
291-
* // This snippet has been automatically generated for illustrative purposes only.
292-
* // It may require modifications to work in your environment.
312+
* // This snippet has been automatically generated and should be regarded as a code template only.
313+
* // It will require modifications to work:
314+
* // - It may require correct/in-range values for request initialization.
315+
* // - It may require specifying regional endpoints when creating the service client as shown in
316+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
293317
* try (PhishingProtectionServiceV1Beta1Client phishingProtectionServiceV1Beta1Client =
294318
* PhishingProtectionServiceV1Beta1Client.create()) {
295319
* ReportPhishingRequest request =

java-phishingprotection/google-cloud-phishingprotection/src/main/java/com/google/cloud/phishingprotection/v1beta1/PhishingProtectionServiceV1Beta1Settings.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,11 @@
5353
* <p>For example, to set the total timeout of reportPhishing to 30 seconds:
5454
*
5555
* <pre>{@code
56-
* // This snippet has been automatically generated for illustrative purposes only.
57-
* // It may require modifications to work in your environment.
56+
* // This snippet has been automatically generated and should be regarded as a code template only.
57+
* // It will require modifications to work:
58+
* // - It may require correct/in-range values for request initialization.
59+
* // - It may require specifying regional endpoints when creating the service client as shown in
60+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
5861
* PhishingProtectionServiceV1Beta1Settings.Builder
5962
* phishingProtectionServiceV1Beta1SettingsBuilder =
6063
* PhishingProtectionServiceV1Beta1Settings.newBuilder();

java-phishingprotection/google-cloud-phishingprotection/src/main/java/com/google/cloud/phishingprotection/v1beta1/package-info.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,11 @@
2424
* <p>Sample for PhishingProtectionServiceV1Beta1Client:
2525
*
2626
* <pre>{@code
27-
* // This snippet has been automatically generated for illustrative purposes only.
28-
* // It may require modifications to work in your environment.
27+
* // This snippet has been automatically generated and should be regarded as a code template only.
28+
* // It will require modifications to work:
29+
* // - It may require correct/in-range values for request initialization.
30+
* // - It may require specifying regional endpoints when creating the service client as shown in
31+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
2932
* try (PhishingProtectionServiceV1Beta1Client phishingProtectionServiceV1Beta1Client =
3033
* PhishingProtectionServiceV1Beta1Client.create()) {
3134
* ProjectName parent = ProjectName.of("[PROJECT]");

java-phishingprotection/google-cloud-phishingprotection/src/main/java/com/google/cloud/phishingprotection/v1beta1/stub/HttpJsonPhishingProtectionServiceV1Beta1Stub.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public class HttpJsonPhishingProtectionServiceV1Beta1Stub
7979
.setRequestBodyExtractor(
8080
request ->
8181
ProtoRestSerializer.create()
82-
.toBody("*", request.toBuilder().clearParent().build()))
82+
.toBody("*", request.toBuilder().clearParent().build(), false))
8383
.build())
8484
.setResponseParser(
8585
ProtoMessageResponseParser.<ReportPhishingResponse>newBuilder()

java-phishingprotection/google-cloud-phishingprotection/src/main/java/com/google/cloud/phishingprotection/v1beta1/stub/PhishingProtectionServiceV1Beta1StubSettings.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,11 @@
6464
* <p>For example, to set the total timeout of reportPhishing to 30 seconds:
6565
*
6666
* <pre>{@code
67-
* // This snippet has been automatically generated for illustrative purposes only.
68-
* // It may require modifications to work in your environment.
67+
* // This snippet has been automatically generated and should be regarded as a code template only.
68+
* // It will require modifications to work:
69+
* // - It may require correct/in-range values for request initialization.
70+
* // - It may require specifying regional endpoints when creating the service client as shown in
71+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
6972
* PhishingProtectionServiceV1Beta1StubSettings.Builder
7073
* phishingProtectionServiceV1Beta1SettingsBuilder =
7174
* PhishingProtectionServiceV1Beta1StubSettings.newBuilder();

java-phishingprotection/samples/snippets/generated/com/google/cloud/phishingprotection/v1beta1/phishingprotectionservicev1beta1client/create/SyncCreateSetCredentialsProvider.java

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@
1616

1717
package com.google.cloud.phishingprotection.v1beta1.samples;
1818

19-
// [START
20-
// phishingprotection_v1beta1_generated_phishingprotectionservicev1beta1client_create_setcredentialsprovider_sync]
19+
// [START phishingprotection_v1beta1_generated_phishingprotectionservicev1beta1client_create_setcredentialsprovider_sync]
2120
import com.google.api.gax.core.FixedCredentialsProvider;
2221
import com.google.cloud.phishingprotection.v1beta1.PhishingProtectionServiceV1Beta1Client;
2322
import com.google.cloud.phishingprotection.v1beta1.PhishingProtectionServiceV1Beta1Settings;
@@ -30,8 +29,11 @@ public static void main(String[] args) throws Exception {
3029
}
3130

3231
public static void syncCreateSetCredentialsProvider() throws Exception {
33-
// This snippet has been automatically generated for illustrative purposes only.
34-
// It may require modifications to work in your environment.
32+
// This snippet has been automatically generated and should be regarded as a code template only.
33+
// It will require modifications to work:
34+
// - It may require correct/in-range values for request initialization.
35+
// - It may require specifying regional endpoints when creating the service client as shown in
36+
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
3537
PhishingProtectionServiceV1Beta1Settings phishingProtectionServiceV1Beta1Settings =
3638
PhishingProtectionServiceV1Beta1Settings.newBuilder()
3739
.setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -40,5 +42,4 @@ public static void syncCreateSetCredentialsProvider() throws Exception {
4042
PhishingProtectionServiceV1Beta1Client.create(phishingProtectionServiceV1Beta1Settings);
4143
}
4244
}
43-
// [END
44-
// phishingprotection_v1beta1_generated_phishingprotectionservicev1beta1client_create_setcredentialsprovider_sync]
45+
// [END phishingprotection_v1beta1_generated_phishingprotectionservicev1beta1client_create_setcredentialsprovider_sync]

java-phishingprotection/samples/snippets/generated/com/google/cloud/phishingprotection/v1beta1/phishingprotectionservicev1beta1client/create/SyncCreateSetCredentialsProvider1.java

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@
1616

1717
package com.google.cloud.phishingprotection.v1beta1.samples;
1818

19-
// [START
20-
// phishingprotection_v1beta1_generated_phishingprotectionservicev1beta1client_create_setcredentialsprovider1_sync]
19+
// [START phishingprotection_v1beta1_generated_phishingprotectionservicev1beta1client_create_setcredentialsprovider1_sync]
2120
import com.google.cloud.phishingprotection.v1beta1.PhishingProtectionServiceV1Beta1Client;
2221
import com.google.cloud.phishingprotection.v1beta1.PhishingProtectionServiceV1Beta1Settings;
2322

@@ -28,8 +27,11 @@ public static void main(String[] args) throws Exception {
2827
}
2928

3029
public static void syncCreateSetCredentialsProvider1() throws Exception {
31-
// This snippet has been automatically generated for illustrative purposes only.
32-
// It may require modifications to work in your environment.
30+
// This snippet has been automatically generated and should be regarded as a code template only.
31+
// It will require modifications to work:
32+
// - It may require correct/in-range values for request initialization.
33+
// - It may require specifying regional endpoints when creating the service client as shown in
34+
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
3335
PhishingProtectionServiceV1Beta1Settings phishingProtectionServiceV1Beta1Settings =
3436
PhishingProtectionServiceV1Beta1Settings.newBuilder()
3537
.setTransportChannelProvider(
@@ -40,5 +42,4 @@ public static void syncCreateSetCredentialsProvider1() throws Exception {
4042
PhishingProtectionServiceV1Beta1Client.create(phishingProtectionServiceV1Beta1Settings);
4143
}
4244
}
43-
// [END
44-
// phishingprotection_v1beta1_generated_phishingprotectionservicev1beta1client_create_setcredentialsprovider1_sync]
45+
// [END phishingprotection_v1beta1_generated_phishingprotectionservicev1beta1client_create_setcredentialsprovider1_sync]

java-phishingprotection/samples/snippets/generated/com/google/cloud/phishingprotection/v1beta1/phishingprotectionservicev1beta1client/create/SyncCreateSetEndpoint.java

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@
1616

1717
package com.google.cloud.phishingprotection.v1beta1.samples;
1818

19-
// [START
20-
// phishingprotection_v1beta1_generated_phishingprotectionservicev1beta1client_create_setendpoint_sync]
19+
// [START phishingprotection_v1beta1_generated_phishingprotectionservicev1beta1client_create_setendpoint_sync]
2120
import com.google.cloud.phishingprotection.v1beta1.PhishingProtectionServiceV1Beta1Client;
2221
import com.google.cloud.phishingprotection.v1beta1.PhishingProtectionServiceV1Beta1Settings;
2322
import com.google.cloud.phishingprotection.v1beta1.myEndpoint;
@@ -29,13 +28,15 @@ public static void main(String[] args) throws Exception {
2928
}
3029

3130
public static void syncCreateSetEndpoint() throws Exception {
32-
// This snippet has been automatically generated for illustrative purposes only.
33-
// It may require modifications to work in your environment.
31+
// This snippet has been automatically generated and should be regarded as a code template only.
32+
// It will require modifications to work:
33+
// - It may require correct/in-range values for request initialization.
34+
// - It may require specifying regional endpoints when creating the service client as shown in
35+
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
3436
PhishingProtectionServiceV1Beta1Settings phishingProtectionServiceV1Beta1Settings =
3537
PhishingProtectionServiceV1Beta1Settings.newBuilder().setEndpoint(myEndpoint).build();
3638
PhishingProtectionServiceV1Beta1Client phishingProtectionServiceV1Beta1Client =
3739
PhishingProtectionServiceV1Beta1Client.create(phishingProtectionServiceV1Beta1Settings);
3840
}
3941
}
40-
// [END
41-
// phishingprotection_v1beta1_generated_phishingprotectionservicev1beta1client_create_setendpoint_sync]
42+
// [END phishingprotection_v1beta1_generated_phishingprotectionservicev1beta1client_create_setendpoint_sync]

java-phishingprotection/samples/snippets/generated/com/google/cloud/phishingprotection/v1beta1/phishingprotectionservicev1beta1client/reportphishing/AsyncReportPhishing.java

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@
1616

1717
package com.google.cloud.phishingprotection.v1beta1.samples;
1818

19-
// [START
20-
// phishingprotection_v1beta1_generated_phishingprotectionservicev1beta1client_reportphishing_async]
19+
// [START phishingprotection_v1beta1_generated_phishingprotectionservicev1beta1client_reportphishing_async]
2120
import com.google.api.core.ApiFuture;
2221
import com.google.cloud.phishingprotection.v1beta1.PhishingProtectionServiceV1Beta1Client;
2322
import com.google.phishingprotection.v1beta1.ProjectName;
@@ -31,8 +30,11 @@ public static void main(String[] args) throws Exception {
3130
}
3231

3332
public static void asyncReportPhishing() throws Exception {
34-
// This snippet has been automatically generated for illustrative purposes only.
35-
// It may require modifications to work in your environment.
33+
// This snippet has been automatically generated and should be regarded as a code template only.
34+
// It will require modifications to work:
35+
// - It may require correct/in-range values for request initialization.
36+
// - It may require specifying regional endpoints when creating the service client as shown in
37+
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
3638
try (PhishingProtectionServiceV1Beta1Client phishingProtectionServiceV1Beta1Client =
3739
PhishingProtectionServiceV1Beta1Client.create()) {
3840
ReportPhishingRequest request =
@@ -47,5 +49,4 @@ public static void asyncReportPhishing() throws Exception {
4749
}
4850
}
4951
}
50-
// [END
51-
// phishingprotection_v1beta1_generated_phishingprotectionservicev1beta1client_reportphishing_async]
52+
// [END phishingprotection_v1beta1_generated_phishingprotectionservicev1beta1client_reportphishing_async]

java-phishingprotection/samples/snippets/generated/com/google/cloud/phishingprotection/v1beta1/phishingprotectionservicev1beta1client/reportphishing/SyncReportPhishing.java

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@
1616

1717
package com.google.cloud.phishingprotection.v1beta1.samples;
1818

19-
// [START
20-
// phishingprotection_v1beta1_generated_phishingprotectionservicev1beta1client_reportphishing_sync]
19+
// [START phishingprotection_v1beta1_generated_phishingprotectionservicev1beta1client_reportphishing_sync]
2120
import com.google.cloud.phishingprotection.v1beta1.PhishingProtectionServiceV1Beta1Client;
2221
import com.google.phishingprotection.v1beta1.ProjectName;
2322
import com.google.phishingprotection.v1beta1.ReportPhishingRequest;
@@ -30,8 +29,11 @@ public static void main(String[] args) throws Exception {
3029
}
3130

3231
public static void syncReportPhishing() throws Exception {
33-
// This snippet has been automatically generated for illustrative purposes only.
34-
// It may require modifications to work in your environment.
32+
// This snippet has been automatically generated and should be regarded as a code template only.
33+
// It will require modifications to work:
34+
// - It may require correct/in-range values for request initialization.
35+
// - It may require specifying regional endpoints when creating the service client as shown in
36+
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
3537
try (PhishingProtectionServiceV1Beta1Client phishingProtectionServiceV1Beta1Client =
3638
PhishingProtectionServiceV1Beta1Client.create()) {
3739
ReportPhishingRequest request =
@@ -44,5 +46,4 @@ public static void syncReportPhishing() throws Exception {
4446
}
4547
}
4648
}
47-
// [END
48-
// phishingprotection_v1beta1_generated_phishingprotectionservicev1beta1client_reportphishing_sync]
49+
// [END phishingprotection_v1beta1_generated_phishingprotectionservicev1beta1client_reportphishing_sync]

0 commit comments

Comments
 (0)