Skip to content

Commit c0ed968

Browse files
chore(bazel): Update WORKSPACE files for rules_gapic, gax_java, generator_java versions (#971)
- [ ] 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 7a9b3a2 commit c0ed968

File tree

79 files changed

+580
-233
lines changed

Some content is hidden

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

79 files changed

+580
-233
lines changed

java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1/VideoIntelligenceServiceClient.java

Lines changed: 40 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,11 @@
3838
* calls that map to API methods. Sample code to get started:
3939
*
4040
* <pre>{@code
41-
* // This snippet has been automatically generated for illustrative purposes only.
42-
* // It may require modifications to work in your environment.
41+
* // This snippet has been automatically generated and should be regarded as a code template only.
42+
* // It will require modifications to work:
43+
* // - It may require correct/in-range values for request initialization.
44+
* // - It may require specifying regional endpoints when creating the service client as shown in
45+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
4346
* try (VideoIntelligenceServiceClient videoIntelligenceServiceClient =
4447
* VideoIntelligenceServiceClient.create()) {
4548
* String inputUri = "inputUri470706498";
@@ -79,8 +82,11 @@
7982
* <p>To customize credentials:
8083
*
8184
* <pre>{@code
82-
* // This snippet has been automatically generated for illustrative purposes only.
83-
* // It may require modifications to work in your environment.
85+
* // This snippet has been automatically generated and should be regarded as a code template only.
86+
* // It will require modifications to work:
87+
* // - It may require correct/in-range values for request initialization.
88+
* // - It may require specifying regional endpoints when creating the service client as shown in
89+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
8490
* VideoIntelligenceServiceSettings videoIntelligenceServiceSettings =
8591
* VideoIntelligenceServiceSettings.newBuilder()
8692
* .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -92,8 +98,11 @@
9298
* <p>To customize the endpoint:
9399
*
94100
* <pre>{@code
95-
* // This snippet has been automatically generated for illustrative purposes only.
96-
* // It may require modifications to work in your environment.
101+
* // This snippet has been automatically generated and should be regarded as a code template only.
102+
* // It will require modifications to work:
103+
* // - It may require correct/in-range values for request initialization.
104+
* // - It may require specifying regional endpoints when creating the service client as shown in
105+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
97106
* VideoIntelligenceServiceSettings videoIntelligenceServiceSettings =
98107
* VideoIntelligenceServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
99108
* VideoIntelligenceServiceClient videoIntelligenceServiceClient =
@@ -104,8 +113,11 @@
104113
* the wire:
105114
*
106115
* <pre>{@code
107-
* // This snippet has been automatically generated for illustrative purposes only.
108-
* // It may require modifications to work in your environment.
116+
* // This snippet has been automatically generated and should be regarded as a code template only.
117+
* // It will require modifications to work:
118+
* // - It may require correct/in-range values for request initialization.
119+
* // - It may require specifying regional endpoints when creating the service client as shown in
120+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
109121
* VideoIntelligenceServiceSettings videoIntelligenceServiceSettings =
110122
* VideoIntelligenceServiceSettings.newBuilder()
111123
* .setTransportChannelProvider(
@@ -204,8 +216,11 @@ public final OperationsClient getHttpJsonOperationsClient() {
204216
* <p>Sample code:
205217
*
206218
* <pre>{@code
207-
* // This snippet has been automatically generated for illustrative purposes only.
208-
* // It may require modifications to work in your environment.
219+
* // This snippet has been automatically generated and should be regarded as a code template only.
220+
* // It will require modifications to work:
221+
* // - It may require correct/in-range values for request initialization.
222+
* // - It may require specifying regional endpoints when creating the service client as shown in
223+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
209224
* try (VideoIntelligenceServiceClient videoIntelligenceServiceClient =
210225
* VideoIntelligenceServiceClient.create()) {
211226
* String inputUri = "inputUri470706498";
@@ -244,8 +259,11 @@ public final OperationFuture<AnnotateVideoResponse, AnnotateVideoProgress> annot
244259
* <p>Sample code:
245260
*
246261
* <pre>{@code
247-
* // This snippet has been automatically generated for illustrative purposes only.
248-
* // It may require modifications to work in your environment.
262+
* // This snippet has been automatically generated and should be regarded as a code template only.
263+
* // It will require modifications to work:
264+
* // - It may require correct/in-range values for request initialization.
265+
* // - It may require specifying regional endpoints when creating the service client as shown in
266+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
249267
* try (VideoIntelligenceServiceClient videoIntelligenceServiceClient =
250268
* VideoIntelligenceServiceClient.create()) {
251269
* AnnotateVideoRequest request =
@@ -280,8 +298,11 @@ public final OperationFuture<AnnotateVideoResponse, AnnotateVideoProgress> annot
280298
* <p>Sample code:
281299
*
282300
* <pre>{@code
283-
* // This snippet has been automatically generated for illustrative purposes only.
284-
* // It may require modifications to work in your environment.
301+
* // This snippet has been automatically generated and should be regarded as a code template only.
302+
* // It will require modifications to work:
303+
* // - It may require correct/in-range values for request initialization.
304+
* // - It may require specifying regional endpoints when creating the service client as shown in
305+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
285306
* try (VideoIntelligenceServiceClient videoIntelligenceServiceClient =
286307
* VideoIntelligenceServiceClient.create()) {
287308
* AnnotateVideoRequest request =
@@ -315,8 +336,11 @@ public final OperationFuture<AnnotateVideoResponse, AnnotateVideoProgress> annot
315336
* <p>Sample code:
316337
*
317338
* <pre>{@code
318-
* // This snippet has been automatically generated for illustrative purposes only.
319-
* // It may require modifications to work in your environment.
339+
* // This snippet has been automatically generated and should be regarded as a code template only.
340+
* // It will require modifications to work:
341+
* // - It may require correct/in-range values for request initialization.
342+
* // - It may require specifying regional endpoints when creating the service client as shown in
343+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
320344
* try (VideoIntelligenceServiceClient videoIntelligenceServiceClient =
321345
* VideoIntelligenceServiceClient.create()) {
322346
* AnnotateVideoRequest request =

java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1/VideoIntelligenceServiceSettings.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 annotateVideo 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
* VideoIntelligenceServiceSettings.Builder videoIntelligenceServiceSettingsBuilder =
5962
* VideoIntelligenceServiceSettings.newBuilder();
6063
* videoIntelligenceServiceSettingsBuilder

java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/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 VideoIntelligenceServiceClient:
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 (VideoIntelligenceServiceClient videoIntelligenceServiceClient =
3033
* VideoIntelligenceServiceClient.create()) {
3134
* String inputUri = "inputUri470706498";

java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1/stub/HttpJsonVideoIntelligenceServiceStub.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,8 @@ public class HttpJsonVideoIntelligenceServiceStub extends VideoIntelligenceServi
8585
})
8686
.setRequestBodyExtractor(
8787
request ->
88-
ProtoRestSerializer.create().toBody("*", request.toBuilder().build()))
88+
ProtoRestSerializer.create()
89+
.toBody("*", request.toBuilder().build(), false))
8990
.build())
9091
.setResponseParser(
9192
ProtoMessageResponseParser.<Operation>newBuilder()

java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1/stub/VideoIntelligenceServiceStubSettings.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,11 @@
7070
* <p>For example, to set the total timeout of annotateVideo to 30 seconds:
7171
*
7272
* <pre>{@code
73-
* // This snippet has been automatically generated for illustrative purposes only.
74-
* // It may require modifications to work in your environment.
73+
* // This snippet has been automatically generated and should be regarded as a code template only.
74+
* // It will require modifications to work:
75+
* // - It may require correct/in-range values for request initialization.
76+
* // - It may require specifying regional endpoints when creating the service client as shown in
77+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
7578
* VideoIntelligenceServiceStubSettings.Builder videoIntelligenceServiceSettingsBuilder =
7679
* VideoIntelligenceServiceStubSettings.newBuilder();
7780
* videoIntelligenceServiceSettingsBuilder

java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1beta2/VideoIntelligenceServiceClient.java

Lines changed: 40 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,11 @@
3838
* calls that map to API methods. Sample code to get started:
3939
*
4040
* <pre>{@code
41-
* // This snippet has been automatically generated for illustrative purposes only.
42-
* // It may require modifications to work in your environment.
41+
* // This snippet has been automatically generated and should be regarded as a code template only.
42+
* // It will require modifications to work:
43+
* // - It may require correct/in-range values for request initialization.
44+
* // - It may require specifying regional endpoints when creating the service client as shown in
45+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
4346
* try (VideoIntelligenceServiceClient videoIntelligenceServiceClient =
4447
* VideoIntelligenceServiceClient.create()) {
4548
* String inputUri = "inputUri470706498";
@@ -79,8 +82,11 @@
7982
* <p>To customize credentials:
8083
*
8184
* <pre>{@code
82-
* // This snippet has been automatically generated for illustrative purposes only.
83-
* // It may require modifications to work in your environment.
85+
* // This snippet has been automatically generated and should be regarded as a code template only.
86+
* // It will require modifications to work:
87+
* // - It may require correct/in-range values for request initialization.
88+
* // - It may require specifying regional endpoints when creating the service client as shown in
89+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
8490
* VideoIntelligenceServiceSettings videoIntelligenceServiceSettings =
8591
* VideoIntelligenceServiceSettings.newBuilder()
8692
* .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -92,8 +98,11 @@
9298
* <p>To customize the endpoint:
9399
*
94100
* <pre>{@code
95-
* // This snippet has been automatically generated for illustrative purposes only.
96-
* // It may require modifications to work in your environment.
101+
* // This snippet has been automatically generated and should be regarded as a code template only.
102+
* // It will require modifications to work:
103+
* // - It may require correct/in-range values for request initialization.
104+
* // - It may require specifying regional endpoints when creating the service client as shown in
105+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
97106
* VideoIntelligenceServiceSettings videoIntelligenceServiceSettings =
98107
* VideoIntelligenceServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
99108
* VideoIntelligenceServiceClient videoIntelligenceServiceClient =
@@ -104,8 +113,11 @@
104113
* the wire:
105114
*
106115
* <pre>{@code
107-
* // This snippet has been automatically generated for illustrative purposes only.
108-
* // It may require modifications to work in your environment.
116+
* // This snippet has been automatically generated and should be regarded as a code template only.
117+
* // It will require modifications to work:
118+
* // - It may require correct/in-range values for request initialization.
119+
* // - It may require specifying regional endpoints when creating the service client as shown in
120+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
109121
* VideoIntelligenceServiceSettings videoIntelligenceServiceSettings =
110122
* VideoIntelligenceServiceSettings.newBuilder()
111123
* .setTransportChannelProvider(
@@ -205,8 +217,11 @@ public final OperationsClient getHttpJsonOperationsClient() {
205217
* <p>Sample code:
206218
*
207219
* <pre>{@code
208-
* // This snippet has been automatically generated for illustrative purposes only.
209-
* // It may require modifications to work in your environment.
220+
* // This snippet has been automatically generated and should be regarded as a code template only.
221+
* // It will require modifications to work:
222+
* // - It may require correct/in-range values for request initialization.
223+
* // - It may require specifying regional endpoints when creating the service client as shown in
224+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
210225
* try (VideoIntelligenceServiceClient videoIntelligenceServiceClient =
211226
* VideoIntelligenceServiceClient.create()) {
212227
* String inputUri = "inputUri470706498";
@@ -245,8 +260,11 @@ public final OperationFuture<AnnotateVideoResponse, AnnotateVideoProgress> annot
245260
* <p>Sample code:
246261
*
247262
* <pre>{@code
248-
* // This snippet has been automatically generated for illustrative purposes only.
249-
* // It may require modifications to work in your environment.
263+
* // This snippet has been automatically generated and should be regarded as a code template only.
264+
* // It will require modifications to work:
265+
* // - It may require correct/in-range values for request initialization.
266+
* // - It may require specifying regional endpoints when creating the service client as shown in
267+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
250268
* try (VideoIntelligenceServiceClient videoIntelligenceServiceClient =
251269
* VideoIntelligenceServiceClient.create()) {
252270
* AnnotateVideoRequest request =
@@ -281,8 +299,11 @@ public final OperationFuture<AnnotateVideoResponse, AnnotateVideoProgress> annot
281299
* <p>Sample code:
282300
*
283301
* <pre>{@code
284-
* // This snippet has been automatically generated for illustrative purposes only.
285-
* // It may require modifications to work in your environment.
302+
* // This snippet has been automatically generated and should be regarded as a code template only.
303+
* // It will require modifications to work:
304+
* // - It may require correct/in-range values for request initialization.
305+
* // - It may require specifying regional endpoints when creating the service client as shown in
306+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
286307
* try (VideoIntelligenceServiceClient videoIntelligenceServiceClient =
287308
* VideoIntelligenceServiceClient.create()) {
288309
* AnnotateVideoRequest request =
@@ -316,8 +337,11 @@ public final OperationFuture<AnnotateVideoResponse, AnnotateVideoProgress> annot
316337
* <p>Sample code:
317338
*
318339
* <pre>{@code
319-
* // This snippet has been automatically generated for illustrative purposes only.
320-
* // It may require modifications to work in your environment.
340+
* // This snippet has been automatically generated and should be regarded as a code template only.
341+
* // It will require modifications to work:
342+
* // - It may require correct/in-range values for request initialization.
343+
* // - It may require specifying regional endpoints when creating the service client as shown in
344+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
321345
* try (VideoIntelligenceServiceClient videoIntelligenceServiceClient =
322346
* VideoIntelligenceServiceClient.create()) {
323347
* AnnotateVideoRequest request =

java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1beta2/VideoIntelligenceServiceSettings.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 annotateVideo 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
* VideoIntelligenceServiceSettings.Builder videoIntelligenceServiceSettingsBuilder =
5962
* VideoIntelligenceServiceSettings.newBuilder();
6063
* videoIntelligenceServiceSettingsBuilder

java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1beta2/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 VideoIntelligenceServiceClient:
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 (VideoIntelligenceServiceClient videoIntelligenceServiceClient =
3033
* VideoIntelligenceServiceClient.create()) {
3134
* String inputUri = "inputUri470706498";

java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1beta2/stub/HttpJsonVideoIntelligenceServiceStub.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,8 @@ public class HttpJsonVideoIntelligenceServiceStub extends VideoIntelligenceServi
8585
})
8686
.setRequestBodyExtractor(
8787
request ->
88-
ProtoRestSerializer.create().toBody("*", request.toBuilder().build()))
88+
ProtoRestSerializer.create()
89+
.toBody("*", request.toBuilder().build(), false))
8990
.build())
9091
.setResponseParser(
9192
ProtoMessageResponseParser.<Operation>newBuilder()

java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1beta2/stub/VideoIntelligenceServiceStubSettings.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,11 @@
7070
* <p>For example, to set the total timeout of annotateVideo to 30 seconds:
7171
*
7272
* <pre>{@code
73-
* // This snippet has been automatically generated for illustrative purposes only.
74-
* // It may require modifications to work in your environment.
73+
* // This snippet has been automatically generated and should be regarded as a code template only.
74+
* // It will require modifications to work:
75+
* // - It may require correct/in-range values for request initialization.
76+
* // - It may require specifying regional endpoints when creating the service client as shown in
77+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
7578
* VideoIntelligenceServiceStubSettings.Builder videoIntelligenceServiceSettingsBuilder =
7679
* VideoIntelligenceServiceStubSettings.newBuilder();
7780
* videoIntelligenceServiceSettingsBuilder

0 commit comments

Comments
 (0)