Skip to content

Commit 266b63c

Browse files
chore(bazel): Update WORKSPACE files for rules_gapic, gax_java, generator_java versions (#881)
- [ ] 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 b42e837 commit 266b63c

File tree

66 files changed

+592
-238
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+592
-238
lines changed

java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1/RecaptchaEnterpriseServiceClient.java

Lines changed: 215 additions & 86 deletions
Large diffs are not rendered by default.

java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1/RecaptchaEnterpriseServiceSettings.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,11 @@
7777
* <p>For example, to set the total timeout of createAssessment to 30 seconds:
7878
*
7979
* <pre>{@code
80-
* // This snippet has been automatically generated for illustrative purposes only.
81-
* // It may require modifications to work in your environment.
80+
* // This snippet has been automatically generated and should be regarded as a code template only.
81+
* // It will require modifications to work:
82+
* // - It may require correct/in-range values for request initialization.
83+
* // - It may require specifying regional endpoints when creating the service client as shown in
84+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
8285
* RecaptchaEnterpriseServiceSettings.Builder recaptchaEnterpriseServiceSettingsBuilder =
8386
* RecaptchaEnterpriseServiceSettings.newBuilder();
8487
* recaptchaEnterpriseServiceSettingsBuilder

java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1/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 RecaptchaEnterpriseServiceClient:
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 (RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient =
3033
* RecaptchaEnterpriseServiceClient.create()) {
3134
* ProjectName parent = ProjectName.of("[PROJECT]");

java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1/stub/RecaptchaEnterpriseServiceStubSettings.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,11 @@
9494
* <p>For example, to set the total timeout of createAssessment to 30 seconds:
9595
*
9696
* <pre>{@code
97-
* // This snippet has been automatically generated for illustrative purposes only.
98-
* // It may require modifications to work in your environment.
97+
* // This snippet has been automatically generated and should be regarded as a code template only.
98+
* // It will require modifications to work:
99+
* // - It may require correct/in-range values for request initialization.
100+
* // - It may require specifying regional endpoints when creating the service client as shown in
101+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
99102
* RecaptchaEnterpriseServiceStubSettings.Builder recaptchaEnterpriseServiceSettingsBuilder =
100103
* RecaptchaEnterpriseServiceStubSettings.newBuilder();
101104
* recaptchaEnterpriseServiceSettingsBuilder

java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/RecaptchaEnterpriseServiceV1Beta1Client.java

Lines changed: 60 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,11 @@
3939
* calls that map to API methods. Sample code to get started:
4040
*
4141
* <pre>{@code
42-
* // This snippet has been automatically generated for illustrative purposes only.
43-
* // It may require modifications to work in your environment.
42+
* // This snippet has been automatically generated and should be regarded as a code template only.
43+
* // It will require modifications to work:
44+
* // - It may require correct/in-range values for request initialization.
45+
* // - It may require specifying regional endpoints when creating the service client as shown in
46+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
4447
* try (RecaptchaEnterpriseServiceV1Beta1Client recaptchaEnterpriseServiceV1Beta1Client =
4548
* RecaptchaEnterpriseServiceV1Beta1Client.create()) {
4649
* ProjectName parent = ProjectName.of("[PROJECT]");
@@ -80,8 +83,11 @@
8083
* <p>To customize credentials:
8184
*
8285
* <pre>{@code
83-
* // This snippet has been automatically generated for illustrative purposes only.
84-
* // It may require modifications to work in your environment.
86+
* // This snippet has been automatically generated and should be regarded as a code template only.
87+
* // It will require modifications to work:
88+
* // - It may require correct/in-range values for request initialization.
89+
* // - It may require specifying regional endpoints when creating the service client as shown in
90+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
8591
* RecaptchaEnterpriseServiceV1Beta1Settings recaptchaEnterpriseServiceV1Beta1Settings =
8692
* RecaptchaEnterpriseServiceV1Beta1Settings.newBuilder()
8793
* .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -93,8 +99,11 @@
9399
* <p>To customize the endpoint:
94100
*
95101
* <pre>{@code
96-
* // This snippet has been automatically generated for illustrative purposes only.
97-
* // It may require modifications to work in your environment.
102+
* // This snippet has been automatically generated and should be regarded as a code template only.
103+
* // It will require modifications to work:
104+
* // - It may require correct/in-range values for request initialization.
105+
* // - It may require specifying regional endpoints when creating the service client as shown in
106+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
98107
* RecaptchaEnterpriseServiceV1Beta1Settings recaptchaEnterpriseServiceV1Beta1Settings =
99108
* RecaptchaEnterpriseServiceV1Beta1Settings.newBuilder().setEndpoint(myEndpoint).build();
100109
* RecaptchaEnterpriseServiceV1Beta1Client recaptchaEnterpriseServiceV1Beta1Client =
@@ -105,8 +114,11 @@
105114
* the wire:
106115
*
107116
* <pre>{@code
108-
* // This snippet has been automatically generated for illustrative purposes only.
109-
* // It may require modifications to work in your environment.
117+
* // This snippet has been automatically generated and should be regarded as a code template only.
118+
* // It will require modifications to work:
119+
* // - It may require correct/in-range values for request initialization.
120+
* // - It may require specifying regional endpoints when creating the service client as shown in
121+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
110122
* RecaptchaEnterpriseServiceV1Beta1Settings recaptchaEnterpriseServiceV1Beta1Settings =
111123
* RecaptchaEnterpriseServiceV1Beta1Settings.newBuilder()
112124
* .setTransportChannelProvider(
@@ -182,8 +194,11 @@ public RecaptchaEnterpriseServiceV1Beta1Stub getStub() {
182194
* <p>Sample code:
183195
*
184196
* <pre>{@code
185-
* // This snippet has been automatically generated for illustrative purposes only.
186-
* // It may require modifications to work in your environment.
197+
* // This snippet has been automatically generated and should be regarded as a code template only.
198+
* // It will require modifications to work:
199+
* // - It may require correct/in-range values for request initialization.
200+
* // - It may require specifying regional endpoints when creating the service client as shown in
201+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
187202
* try (RecaptchaEnterpriseServiceV1Beta1Client recaptchaEnterpriseServiceV1Beta1Client =
188203
* RecaptchaEnterpriseServiceV1Beta1Client.create()) {
189204
* ProjectName parent = ProjectName.of("[PROJECT]");
@@ -214,8 +229,11 @@ public final Assessment createAssessment(ProjectName parent, Assessment assessme
214229
* <p>Sample code:
215230
*
216231
* <pre>{@code
217-
* // This snippet has been automatically generated for illustrative purposes only.
218-
* // It may require modifications to work in your environment.
232+
* // This snippet has been automatically generated and should be regarded as a code template only.
233+
* // It will require modifications to work:
234+
* // - It may require correct/in-range values for request initialization.
235+
* // - It may require specifying regional endpoints when creating the service client as shown in
236+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
219237
* try (RecaptchaEnterpriseServiceV1Beta1Client recaptchaEnterpriseServiceV1Beta1Client =
220238
* RecaptchaEnterpriseServiceV1Beta1Client.create()) {
221239
* String parent = ProjectName.of("[PROJECT]").toString();
@@ -243,8 +261,11 @@ public final Assessment createAssessment(String parent, Assessment assessment) {
243261
* <p>Sample code:
244262
*
245263
* <pre>{@code
246-
* // This snippet has been automatically generated for illustrative purposes only.
247-
* // It may require modifications to work in your environment.
264+
* // This snippet has been automatically generated and should be regarded as a code template only.
265+
* // It will require modifications to work:
266+
* // - It may require correct/in-range values for request initialization.
267+
* // - It may require specifying regional endpoints when creating the service client as shown in
268+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
248269
* try (RecaptchaEnterpriseServiceV1Beta1Client recaptchaEnterpriseServiceV1Beta1Client =
249270
* RecaptchaEnterpriseServiceV1Beta1Client.create()) {
250271
* CreateAssessmentRequest request =
@@ -270,8 +291,11 @@ public final Assessment createAssessment(CreateAssessmentRequest request) {
270291
* <p>Sample code:
271292
*
272293
* <pre>{@code
273-
* // This snippet has been automatically generated for illustrative purposes only.
274-
* // It may require modifications to work in your environment.
294+
* // This snippet has been automatically generated and should be regarded as a code template only.
295+
* // It will require modifications to work:
296+
* // - It may require correct/in-range values for request initialization.
297+
* // - It may require specifying regional endpoints when creating the service client as shown in
298+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
275299
* try (RecaptchaEnterpriseServiceV1Beta1Client recaptchaEnterpriseServiceV1Beta1Client =
276300
* RecaptchaEnterpriseServiceV1Beta1Client.create()) {
277301
* CreateAssessmentRequest request =
@@ -298,8 +322,11 @@ public final UnaryCallable<CreateAssessmentRequest, Assessment> createAssessment
298322
* <p>Sample code:
299323
*
300324
* <pre>{@code
301-
* // This snippet has been automatically generated for illustrative purposes only.
302-
* // It may require modifications to work in your environment.
325+
* // This snippet has been automatically generated and should be regarded as a code template only.
326+
* // It will require modifications to work:
327+
* // - It may require correct/in-range values for request initialization.
328+
* // - It may require specifying regional endpoints when creating the service client as shown in
329+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
303330
* try (RecaptchaEnterpriseServiceV1Beta1Client recaptchaEnterpriseServiceV1Beta1Client =
304331
* RecaptchaEnterpriseServiceV1Beta1Client.create()) {
305332
* AssessmentName name = AssessmentName.of("[PROJECT]", "[ASSESSMENT]");
@@ -335,8 +362,11 @@ public final AnnotateAssessmentResponse annotateAssessment(
335362
* <p>Sample code:
336363
*
337364
* <pre>{@code
338-
* // This snippet has been automatically generated for illustrative purposes only.
339-
* // It may require modifications to work in your environment.
365+
* // This snippet has been automatically generated and should be regarded as a code template only.
366+
* // It will require modifications to work:
367+
* // - It may require correct/in-range values for request initialization.
368+
* // - It may require specifying regional endpoints when creating the service client as shown in
369+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
340370
* try (RecaptchaEnterpriseServiceV1Beta1Client recaptchaEnterpriseServiceV1Beta1Client =
341371
* RecaptchaEnterpriseServiceV1Beta1Client.create()) {
342372
* String name = AssessmentName.of("[PROJECT]", "[ASSESSMENT]").toString();
@@ -369,8 +399,11 @@ public final AnnotateAssessmentResponse annotateAssessment(
369399
* <p>Sample code:
370400
*
371401
* <pre>{@code
372-
* // This snippet has been automatically generated for illustrative purposes only.
373-
* // It may require modifications to work in your environment.
402+
* // This snippet has been automatically generated and should be regarded as a code template only.
403+
* // It will require modifications to work:
404+
* // - It may require correct/in-range values for request initialization.
405+
* // - It may require specifying regional endpoints when creating the service client as shown in
406+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
374407
* try (RecaptchaEnterpriseServiceV1Beta1Client recaptchaEnterpriseServiceV1Beta1Client =
375408
* RecaptchaEnterpriseServiceV1Beta1Client.create()) {
376409
* AnnotateAssessmentRequest request =
@@ -399,8 +432,11 @@ public final AnnotateAssessmentResponse annotateAssessment(AnnotateAssessmentReq
399432
* <p>Sample code:
400433
*
401434
* <pre>{@code
402-
* // This snippet has been automatically generated for illustrative purposes only.
403-
* // It may require modifications to work in your environment.
435+
* // This snippet has been automatically generated and should be regarded as a code template only.
436+
* // It will require modifications to work:
437+
* // - It may require correct/in-range values for request initialization.
438+
* // - It may require specifying regional endpoints when creating the service client as shown in
439+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
404440
* try (RecaptchaEnterpriseServiceV1Beta1Client recaptchaEnterpriseServiceV1Beta1Client =
405441
* RecaptchaEnterpriseServiceV1Beta1Client.create()) {
406442
* AnnotateAssessmentRequest request =

java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/RecaptchaEnterpriseServiceV1Beta1Settings.java

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

java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/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 RecaptchaEnterpriseServiceV1Beta1Client:
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 (RecaptchaEnterpriseServiceV1Beta1Client recaptchaEnterpriseServiceV1Beta1Client =
3033
* RecaptchaEnterpriseServiceV1Beta1Client.create()) {
3134
* ProjectName parent = ProjectName.of("[PROJECT]");

java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/stub/HttpJsonRecaptchaEnterpriseServiceV1Beta1Stub.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public class HttpJsonRecaptchaEnterpriseServiceV1Beta1Stub
8181
.setRequestBodyExtractor(
8282
request ->
8383
ProtoRestSerializer.create()
84-
.toBody("assessment", request.getAssessment()))
84+
.toBody("assessment", request.getAssessment(), false))
8585
.build())
8686
.setResponseParser(
8787
ProtoMessageResponseParser.<Assessment>newBuilder()
@@ -118,7 +118,7 @@ public class HttpJsonRecaptchaEnterpriseServiceV1Beta1Stub
118118
.setRequestBodyExtractor(
119119
request ->
120120
ProtoRestSerializer.create()
121-
.toBody("*", request.toBuilder().clearName().build()))
121+
.toBody("*", request.toBuilder().clearName().build(), false))
122122
.build())
123123
.setResponseParser(
124124
ProtoMessageResponseParser.<AnnotateAssessmentResponse>newBuilder()

java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/stub/RecaptchaEnterpriseServiceV1Beta1StubSettings.java

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

java-recaptchaenterprise/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/annotateassessment/AsyncAnnotateAssessment.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,11 @@ public static void main(String[] args) throws Exception {
3232
}
3333

3434
public static void asyncAnnotateAssessment() throws Exception {
35-
// This snippet has been automatically generated for illustrative purposes only.
36-
// It may require modifications to work in your environment.
35+
// This snippet has been automatically generated and should be regarded as a code template only.
36+
// It will require modifications to work:
37+
// - It may require correct/in-range values for request initialization.
38+
// - It may require specifying regional endpoints when creating the service client as shown in
39+
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
3740
try (RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient =
3841
RecaptchaEnterpriseServiceClient.create()) {
3942
AnnotateAssessmentRequest request =

0 commit comments

Comments
 (0)