google-cloud-vision-v1p3beta1 0.13.0 → 0.13.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 42ab6451797a2a598a68bc6ccf84a9a6a31d73c8dbf9f3506b850a856164798a
4
- data.tar.gz: 382b8a2de7f09dc0fc22f070d839427720c21b88eb110fef9a79fd438b997905
3
+ metadata.gz: 5892e6507ec72bb5b36273fa75789b6bc71a8cade521845e4b90d1f6d4aaa538
4
+ data.tar.gz: c69038c8f20ff02f872d43a2d6d7c53a2aba8e60997e486b6f01720e34c583a4
5
5
  SHA512:
6
- metadata.gz: 6cb6a2dbcec539a7f153be4319e278d248410e27c52bea04dd59d04d40edc869d5a0536f8ae3470aca3ce0487105fd98e54ca3536e74159d06477eda0b980635
7
- data.tar.gz: bcca4652176811c19941fe263e81c62988c33e944ab7ec031446ff1ddb0635b3b7c9066d58d8d073afa28466890303122ef13a9a27a8deba9be013513d0fb251
6
+ metadata.gz: e2e896e9f749433092ef756e23898ebeed152482928190426f8309e367a38093d96a05de6855629a7653dcca520d2bc22b7ee1300509c43dd13b2582abb6d04a
7
+ data.tar.gz: 3eb25fe70f45f3e6ad84ddeb3c62e68df6665f9bf26f80a3aaee4f91dbdc0263eadb475b878c46bca804faba6c109fd314e71781658ffb49f1c0b81652a95415
@@ -32,6 +32,9 @@ module Google
32
32
  # ImageAnnotator service returns detected entities from the images.
33
33
  #
34
34
  class Client
35
+ # @private
36
+ API_VERSION = ""
37
+
35
38
  # @private
36
39
  DEFAULT_ENDPOINT_TEMPLATE = "vision.$UNIVERSE_DOMAIN$"
37
40
 
@@ -241,10 +244,11 @@ module Google
241
244
  # Customize the options with defaults
242
245
  metadata = @config.rpcs.batch_annotate_images.metadata.to_h
243
246
 
244
- # Set x-goog-api-client and x-goog-user-project headers
247
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
245
248
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
246
249
  lib_name: @config.lib_name, lib_version: @config.lib_version,
247
250
  gapic_version: ::Google::Cloud::Vision::V1p3beta1::VERSION
251
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
248
252
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
249
253
 
250
254
  options.apply_defaults timeout: @config.rpcs.batch_annotate_images.timeout,
@@ -330,10 +334,11 @@ module Google
330
334
  # Customize the options with defaults
331
335
  metadata = @config.rpcs.async_batch_annotate_files.metadata.to_h
332
336
 
333
- # Set x-goog-api-client and x-goog-user-project headers
337
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
334
338
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
335
339
  lib_name: @config.lib_name, lib_version: @config.lib_version,
336
340
  gapic_version: ::Google::Cloud::Vision::V1p3beta1::VERSION
341
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
337
342
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
338
343
 
339
344
  options.apply_defaults timeout: @config.rpcs.async_batch_annotate_files.timeout,
@@ -26,6 +26,9 @@ module Google
26
26
  module ImageAnnotator
27
27
  # Service that implements Longrunning Operations API.
28
28
  class Operations
29
+ # @private
30
+ API_VERSION = ""
31
+
29
32
  # @private
30
33
  DEFAULT_ENDPOINT_TEMPLATE = "vision.$UNIVERSE_DOMAIN$"
31
34
 
@@ -191,10 +194,11 @@ module Google
191
194
  # Customize the options with defaults
192
195
  metadata = @config.rpcs.list_operations.metadata.to_h
193
196
 
194
- # Set x-goog-api-client and x-goog-user-project headers
197
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
195
198
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
196
199
  lib_name: @config.lib_name, lib_version: @config.lib_version,
197
200
  gapic_version: ::Google::Cloud::Vision::V1p3beta1::VERSION
201
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
198
202
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
199
203
 
200
204
  header_params = {}
@@ -287,10 +291,11 @@ module Google
287
291
  # Customize the options with defaults
288
292
  metadata = @config.rpcs.get_operation.metadata.to_h
289
293
 
290
- # Set x-goog-api-client and x-goog-user-project headers
294
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
291
295
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
292
296
  lib_name: @config.lib_name, lib_version: @config.lib_version,
293
297
  gapic_version: ::Google::Cloud::Vision::V1p3beta1::VERSION
298
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
294
299
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
295
300
 
296
301
  header_params = {}
@@ -376,10 +381,11 @@ module Google
376
381
  # Customize the options with defaults
377
382
  metadata = @config.rpcs.delete_operation.metadata.to_h
378
383
 
379
- # Set x-goog-api-client and x-goog-user-project headers
384
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
380
385
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
381
386
  lib_name: @config.lib_name, lib_version: @config.lib_version,
382
387
  gapic_version: ::Google::Cloud::Vision::V1p3beta1::VERSION
388
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
383
389
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
384
390
 
385
391
  header_params = {}
@@ -470,10 +476,11 @@ module Google
470
476
  # Customize the options with defaults
471
477
  metadata = @config.rpcs.cancel_operation.metadata.to_h
472
478
 
473
- # Set x-goog-api-client and x-goog-user-project headers
479
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
474
480
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
475
481
  lib_name: @config.lib_name, lib_version: @config.lib_version,
476
482
  gapic_version: ::Google::Cloud::Vision::V1p3beta1::VERSION
483
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
477
484
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
478
485
 
479
486
  header_params = {}
@@ -574,10 +581,11 @@ module Google
574
581
  # Customize the options with defaults
575
582
  metadata = @config.rpcs.wait_operation.metadata.to_h
576
583
 
577
- # Set x-goog-api-client and x-goog-user-project headers
584
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
578
585
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
579
586
  lib_name: @config.lib_name, lib_version: @config.lib_version,
580
587
  gapic_version: ::Google::Cloud::Vision::V1p3beta1::VERSION
588
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
581
589
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
582
590
 
583
591
  options.apply_defaults timeout: @config.rpcs.wait_operation.timeout,
@@ -34,6 +34,9 @@ module Google
34
34
  # ImageAnnotator service returns detected entities from the images.
35
35
  #
36
36
  class Client
37
+ # @private
38
+ API_VERSION = ""
39
+
37
40
  # @private
38
41
  DEFAULT_ENDPOINT_TEMPLATE = "vision.$UNIVERSE_DOMAIN$"
39
42
 
@@ -233,12 +236,13 @@ module Google
233
236
  # Customize the options with defaults
234
237
  call_metadata = @config.rpcs.batch_annotate_images.metadata.to_h
235
238
 
236
- # Set x-goog-api-client and x-goog-user-project headers
239
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
237
240
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
238
241
  lib_name: @config.lib_name, lib_version: @config.lib_version,
239
242
  gapic_version: ::Google::Cloud::Vision::V1p3beta1::VERSION,
240
243
  transports_version_send: [:rest]
241
244
 
245
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
242
246
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
243
247
 
244
248
  options.apply_defaults timeout: @config.rpcs.batch_annotate_images.timeout,
@@ -323,12 +327,13 @@ module Google
323
327
  # Customize the options with defaults
324
328
  call_metadata = @config.rpcs.async_batch_annotate_files.metadata.to_h
325
329
 
326
- # Set x-goog-api-client and x-goog-user-project headers
330
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
327
331
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
328
332
  lib_name: @config.lib_name, lib_version: @config.lib_version,
329
333
  gapic_version: ::Google::Cloud::Vision::V1p3beta1::VERSION,
330
334
  transports_version_send: [:rest]
331
335
 
336
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
332
337
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
333
338
 
334
339
  options.apply_defaults timeout: @config.rpcs.async_batch_annotate_files.timeout,
@@ -26,6 +26,9 @@ module Google
26
26
  module Rest
27
27
  # Service that implements Longrunning Operations API.
28
28
  class Operations
29
+ # @private
30
+ API_VERSION = ""
31
+
29
32
  # @private
30
33
  DEFAULT_ENDPOINT_TEMPLATE = "vision.$UNIVERSE_DOMAIN$"
31
34
 
@@ -181,12 +184,13 @@ module Google
181
184
  # Customize the options with defaults
182
185
  call_metadata = @config.rpcs.list_operations.metadata.to_h
183
186
 
184
- # Set x-goog-api-client and x-goog-user-project headers
187
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
185
188
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
186
189
  lib_name: @config.lib_name, lib_version: @config.lib_version,
187
190
  gapic_version: ::Google::Cloud::Vision::V1p3beta1::VERSION,
188
191
  transports_version_send: [:rest]
189
192
 
193
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
190
194
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
191
195
 
192
196
  options.apply_defaults timeout: @config.rpcs.list_operations.timeout,
@@ -269,12 +273,13 @@ module Google
269
273
  # Customize the options with defaults
270
274
  call_metadata = @config.rpcs.get_operation.metadata.to_h
271
275
 
272
- # Set x-goog-api-client and x-goog-user-project headers
276
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
273
277
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
274
278
  lib_name: @config.lib_name, lib_version: @config.lib_version,
275
279
  gapic_version: ::Google::Cloud::Vision::V1p3beta1::VERSION,
276
280
  transports_version_send: [:rest]
277
281
 
282
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
278
283
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
279
284
 
280
285
  options.apply_defaults timeout: @config.rpcs.get_operation.timeout,
@@ -351,12 +356,13 @@ module Google
351
356
  # Customize the options with defaults
352
357
  call_metadata = @config.rpcs.delete_operation.metadata.to_h
353
358
 
354
- # Set x-goog-api-client and x-goog-user-project headers
359
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
355
360
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
356
361
  lib_name: @config.lib_name, lib_version: @config.lib_version,
357
362
  gapic_version: ::Google::Cloud::Vision::V1p3beta1::VERSION,
358
363
  transports_version_send: [:rest]
359
364
 
365
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
360
366
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
361
367
 
362
368
  options.apply_defaults timeout: @config.rpcs.delete_operation.timeout,
@@ -438,12 +444,13 @@ module Google
438
444
  # Customize the options with defaults
439
445
  call_metadata = @config.rpcs.cancel_operation.metadata.to_h
440
446
 
441
- # Set x-goog-api-client and x-goog-user-project headers
447
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
442
448
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
443
449
  lib_name: @config.lib_name, lib_version: @config.lib_version,
444
450
  gapic_version: ::Google::Cloud::Vision::V1p3beta1::VERSION,
445
451
  transports_version_send: [:rest]
446
452
 
453
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
447
454
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
448
455
 
449
456
  options.apply_defaults timeout: @config.rpcs.cancel_operation.timeout,
@@ -1,7 +1,7 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # Source: google/cloud/vision/v1p3beta1/image_annotator.proto for package 'google.cloud.vision.v1p3beta1'
3
3
  # Original file comments:
4
- # Copyright 2019 Google LLC.
4
+ # Copyright 2024 Google LLC
5
5
  #
6
6
  # Licensed under the Apache License, Version 2.0 (the "License");
7
7
  # you may not use this file except in compliance with the License.
@@ -43,6 +43,9 @@ module Google
43
43
  # `projects/*/locations/*/products/*/referenceImages/*`
44
44
  #
45
45
  class Client
46
+ # @private
47
+ API_VERSION = ""
48
+
46
49
  # @private
47
50
  DEFAULT_ENDPOINT_TEMPLATE = "vision.$UNIVERSE_DOMAIN$"
48
51
 
@@ -346,10 +349,11 @@ module Google
346
349
  # Customize the options with defaults
347
350
  metadata = @config.rpcs.create_product_set.metadata.to_h
348
351
 
349
- # Set x-goog-api-client and x-goog-user-project headers
352
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
350
353
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
351
354
  lib_name: @config.lib_name, lib_version: @config.lib_version,
352
355
  gapic_version: ::Google::Cloud::Vision::V1p3beta1::VERSION
356
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
353
357
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
354
358
 
355
359
  header_params = {}
@@ -446,10 +450,11 @@ module Google
446
450
  # Customize the options with defaults
447
451
  metadata = @config.rpcs.list_product_sets.metadata.to_h
448
452
 
449
- # Set x-goog-api-client and x-goog-user-project headers
453
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
450
454
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
451
455
  lib_name: @config.lib_name, lib_version: @config.lib_version,
452
456
  gapic_version: ::Google::Cloud::Vision::V1p3beta1::VERSION
457
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
453
458
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
454
459
 
455
460
  header_params = {}
@@ -539,10 +544,11 @@ module Google
539
544
  # Customize the options with defaults
540
545
  metadata = @config.rpcs.get_product_set.metadata.to_h
541
546
 
542
- # Set x-goog-api-client and x-goog-user-project headers
547
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
543
548
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
544
549
  lib_name: @config.lib_name, lib_version: @config.lib_version,
545
550
  gapic_version: ::Google::Cloud::Vision::V1p3beta1::VERSION
551
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
546
552
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
547
553
 
548
554
  header_params = {}
@@ -636,10 +642,11 @@ module Google
636
642
  # Customize the options with defaults
637
643
  metadata = @config.rpcs.update_product_set.metadata.to_h
638
644
 
639
- # Set x-goog-api-client and x-goog-user-project headers
645
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
640
646
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
641
647
  lib_name: @config.lib_name, lib_version: @config.lib_version,
642
648
  gapic_version: ::Google::Cloud::Vision::V1p3beta1::VERSION
649
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
643
650
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
644
651
 
645
652
  header_params = {}
@@ -731,10 +738,11 @@ module Google
731
738
  # Customize the options with defaults
732
739
  metadata = @config.rpcs.delete_product_set.metadata.to_h
733
740
 
734
- # Set x-goog-api-client and x-goog-user-project headers
741
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
735
742
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
736
743
  lib_name: @config.lib_name, lib_version: @config.lib_version,
737
744
  gapic_version: ::Google::Cloud::Vision::V1p3beta1::VERSION
745
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
738
746
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
739
747
 
740
748
  header_params = {}
@@ -833,10 +841,11 @@ module Google
833
841
  # Customize the options with defaults
834
842
  metadata = @config.rpcs.create_product.metadata.to_h
835
843
 
836
- # Set x-goog-api-client and x-goog-user-project headers
844
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
837
845
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
838
846
  lib_name: @config.lib_name, lib_version: @config.lib_version,
839
847
  gapic_version: ::Google::Cloud::Vision::V1p3beta1::VERSION
848
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
840
849
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
841
850
 
842
851
  header_params = {}
@@ -933,10 +942,11 @@ module Google
933
942
  # Customize the options with defaults
934
943
  metadata = @config.rpcs.list_products.metadata.to_h
935
944
 
936
- # Set x-goog-api-client and x-goog-user-project headers
945
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
937
946
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
938
947
  lib_name: @config.lib_name, lib_version: @config.lib_version,
939
948
  gapic_version: ::Google::Cloud::Vision::V1p3beta1::VERSION
949
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
940
950
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
941
951
 
942
952
  header_params = {}
@@ -1026,10 +1036,11 @@ module Google
1026
1036
  # Customize the options with defaults
1027
1037
  metadata = @config.rpcs.get_product.metadata.to_h
1028
1038
 
1029
- # Set x-goog-api-client and x-goog-user-project headers
1039
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1030
1040
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1031
1041
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1032
1042
  gapic_version: ::Google::Cloud::Vision::V1p3beta1::VERSION
1043
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1033
1044
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1034
1045
 
1035
1046
  header_params = {}
@@ -1131,10 +1142,11 @@ module Google
1131
1142
  # Customize the options with defaults
1132
1143
  metadata = @config.rpcs.update_product.metadata.to_h
1133
1144
 
1134
- # Set x-goog-api-client and x-goog-user-project headers
1145
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1135
1146
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1136
1147
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1137
1148
  gapic_version: ::Google::Cloud::Vision::V1p3beta1::VERSION
1149
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1138
1150
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1139
1151
 
1140
1152
  header_params = {}
@@ -1227,10 +1239,11 @@ module Google
1227
1239
  # Customize the options with defaults
1228
1240
  metadata = @config.rpcs.delete_product.metadata.to_h
1229
1241
 
1230
- # Set x-goog-api-client and x-goog-user-project headers
1242
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1231
1243
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1232
1244
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1233
1245
  gapic_version: ::Google::Cloud::Vision::V1p3beta1::VERSION
1246
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1234
1247
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1235
1248
 
1236
1249
  header_params = {}
@@ -1341,10 +1354,11 @@ module Google
1341
1354
  # Customize the options with defaults
1342
1355
  metadata = @config.rpcs.create_reference_image.metadata.to_h
1343
1356
 
1344
- # Set x-goog-api-client and x-goog-user-project headers
1357
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1345
1358
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1346
1359
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1347
1360
  gapic_version: ::Google::Cloud::Vision::V1p3beta1::VERSION
1361
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1348
1362
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1349
1363
 
1350
1364
  header_params = {}
@@ -1440,10 +1454,11 @@ module Google
1440
1454
  # Customize the options with defaults
1441
1455
  metadata = @config.rpcs.delete_reference_image.metadata.to_h
1442
1456
 
1443
- # Set x-goog-api-client and x-goog-user-project headers
1457
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1444
1458
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1445
1459
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1446
1460
  gapic_version: ::Google::Cloud::Vision::V1p3beta1::VERSION
1461
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1447
1462
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1448
1463
 
1449
1464
  header_params = {}
@@ -1545,10 +1560,11 @@ module Google
1545
1560
  # Customize the options with defaults
1546
1561
  metadata = @config.rpcs.list_reference_images.metadata.to_h
1547
1562
 
1548
- # Set x-goog-api-client and x-goog-user-project headers
1563
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1549
1564
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1550
1565
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1551
1566
  gapic_version: ::Google::Cloud::Vision::V1p3beta1::VERSION
1567
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1552
1568
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1553
1569
 
1554
1570
  header_params = {}
@@ -1639,10 +1655,11 @@ module Google
1639
1655
  # Customize the options with defaults
1640
1656
  metadata = @config.rpcs.get_reference_image.metadata.to_h
1641
1657
 
1642
- # Set x-goog-api-client and x-goog-user-project headers
1658
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1643
1659
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1644
1660
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1645
1661
  gapic_version: ::Google::Cloud::Vision::V1p3beta1::VERSION
1662
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1646
1663
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1647
1664
 
1648
1665
  header_params = {}
@@ -1739,10 +1756,11 @@ module Google
1739
1756
  # Customize the options with defaults
1740
1757
  metadata = @config.rpcs.add_product_to_product_set.metadata.to_h
1741
1758
 
1742
- # Set x-goog-api-client and x-goog-user-project headers
1759
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1743
1760
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1744
1761
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1745
1762
  gapic_version: ::Google::Cloud::Vision::V1p3beta1::VERSION
1763
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1746
1764
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1747
1765
 
1748
1766
  header_params = {}
@@ -1836,10 +1854,11 @@ module Google
1836
1854
  # Customize the options with defaults
1837
1855
  metadata = @config.rpcs.remove_product_from_product_set.metadata.to_h
1838
1856
 
1839
- # Set x-goog-api-client and x-goog-user-project headers
1857
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1840
1858
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1841
1859
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1842
1860
  gapic_version: ::Google::Cloud::Vision::V1p3beta1::VERSION
1861
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1843
1862
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1844
1863
 
1845
1864
  header_params = {}
@@ -1938,10 +1957,11 @@ module Google
1938
1957
  # Customize the options with defaults
1939
1958
  metadata = @config.rpcs.list_products_in_product_set.metadata.to_h
1940
1959
 
1941
- # Set x-goog-api-client and x-goog-user-project headers
1960
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1942
1961
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1943
1962
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1944
1963
  gapic_version: ::Google::Cloud::Vision::V1p3beta1::VERSION
1964
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1945
1965
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1946
1966
 
1947
1967
  header_params = {}
@@ -2045,10 +2065,11 @@ module Google
2045
2065
  # Customize the options with defaults
2046
2066
  metadata = @config.rpcs.import_product_sets.metadata.to_h
2047
2067
 
2048
- # Set x-goog-api-client and x-goog-user-project headers
2068
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2049
2069
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2050
2070
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2051
2071
  gapic_version: ::Google::Cloud::Vision::V1p3beta1::VERSION
2072
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2052
2073
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2053
2074
 
2054
2075
  header_params = {}
@@ -26,6 +26,9 @@ module Google
26
26
  module ProductSearch
27
27
  # Service that implements Longrunning Operations API.
28
28
  class Operations
29
+ # @private
30
+ API_VERSION = ""
31
+
29
32
  # @private
30
33
  DEFAULT_ENDPOINT_TEMPLATE = "vision.$UNIVERSE_DOMAIN$"
31
34
 
@@ -191,10 +194,11 @@ module Google
191
194
  # Customize the options with defaults
192
195
  metadata = @config.rpcs.list_operations.metadata.to_h
193
196
 
194
- # Set x-goog-api-client and x-goog-user-project headers
197
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
195
198
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
196
199
  lib_name: @config.lib_name, lib_version: @config.lib_version,
197
200
  gapic_version: ::Google::Cloud::Vision::V1p3beta1::VERSION
201
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
198
202
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
199
203
 
200
204
  header_params = {}
@@ -287,10 +291,11 @@ module Google
287
291
  # Customize the options with defaults
288
292
  metadata = @config.rpcs.get_operation.metadata.to_h
289
293
 
290
- # Set x-goog-api-client and x-goog-user-project headers
294
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
291
295
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
292
296
  lib_name: @config.lib_name, lib_version: @config.lib_version,
293
297
  gapic_version: ::Google::Cloud::Vision::V1p3beta1::VERSION
298
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
294
299
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
295
300
 
296
301
  header_params = {}
@@ -376,10 +381,11 @@ module Google
376
381
  # Customize the options with defaults
377
382
  metadata = @config.rpcs.delete_operation.metadata.to_h
378
383
 
379
- # Set x-goog-api-client and x-goog-user-project headers
384
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
380
385
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
381
386
  lib_name: @config.lib_name, lib_version: @config.lib_version,
382
387
  gapic_version: ::Google::Cloud::Vision::V1p3beta1::VERSION
388
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
383
389
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
384
390
 
385
391
  header_params = {}
@@ -470,10 +476,11 @@ module Google
470
476
  # Customize the options with defaults
471
477
  metadata = @config.rpcs.cancel_operation.metadata.to_h
472
478
 
473
- # Set x-goog-api-client and x-goog-user-project headers
479
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
474
480
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
475
481
  lib_name: @config.lib_name, lib_version: @config.lib_version,
476
482
  gapic_version: ::Google::Cloud::Vision::V1p3beta1::VERSION
483
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
477
484
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
478
485
 
479
486
  header_params = {}
@@ -574,10 +581,11 @@ module Google
574
581
  # Customize the options with defaults
575
582
  metadata = @config.rpcs.wait_operation.metadata.to_h
576
583
 
577
- # Set x-goog-api-client and x-goog-user-project headers
584
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
578
585
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
579
586
  lib_name: @config.lib_name, lib_version: @config.lib_version,
580
587
  gapic_version: ::Google::Cloud::Vision::V1p3beta1::VERSION
588
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
581
589
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
582
590
 
583
591
  options.apply_defaults timeout: @config.rpcs.wait_operation.timeout,
@@ -45,6 +45,9 @@ module Google
45
45
  # `projects/*/locations/*/products/*/referenceImages/*`
46
46
  #
47
47
  class Client
48
+ # @private
49
+ API_VERSION = ""
50
+
48
51
  # @private
49
52
  DEFAULT_ENDPOINT_TEMPLATE = "vision.$UNIVERSE_DOMAIN$"
50
53
 
@@ -338,12 +341,13 @@ module Google
338
341
  # Customize the options with defaults
339
342
  call_metadata = @config.rpcs.create_product_set.metadata.to_h
340
343
 
341
- # Set x-goog-api-client and x-goog-user-project headers
344
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
342
345
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
343
346
  lib_name: @config.lib_name, lib_version: @config.lib_version,
344
347
  gapic_version: ::Google::Cloud::Vision::V1p3beta1::VERSION,
345
348
  transports_version_send: [:rest]
346
349
 
350
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
347
351
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
348
352
 
349
353
  options.apply_defaults timeout: @config.rpcs.create_product_set.timeout,
@@ -431,12 +435,13 @@ module Google
431
435
  # Customize the options with defaults
432
436
  call_metadata = @config.rpcs.list_product_sets.metadata.to_h
433
437
 
434
- # Set x-goog-api-client and x-goog-user-project headers
438
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
435
439
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
436
440
  lib_name: @config.lib_name, lib_version: @config.lib_version,
437
441
  gapic_version: ::Google::Cloud::Vision::V1p3beta1::VERSION,
438
442
  transports_version_send: [:rest]
439
443
 
444
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
440
445
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
441
446
 
442
447
  options.apply_defaults timeout: @config.rpcs.list_product_sets.timeout,
@@ -517,12 +522,13 @@ module Google
517
522
  # Customize the options with defaults
518
523
  call_metadata = @config.rpcs.get_product_set.metadata.to_h
519
524
 
520
- # Set x-goog-api-client and x-goog-user-project headers
525
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
521
526
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
522
527
  lib_name: @config.lib_name, lib_version: @config.lib_version,
523
528
  gapic_version: ::Google::Cloud::Vision::V1p3beta1::VERSION,
524
529
  transports_version_send: [:rest]
525
530
 
531
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
526
532
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
527
533
 
528
534
  options.apply_defaults timeout: @config.rpcs.get_product_set.timeout,
@@ -607,12 +613,13 @@ module Google
607
613
  # Customize the options with defaults
608
614
  call_metadata = @config.rpcs.update_product_set.metadata.to_h
609
615
 
610
- # Set x-goog-api-client and x-goog-user-project headers
616
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
611
617
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
612
618
  lib_name: @config.lib_name, lib_version: @config.lib_version,
613
619
  gapic_version: ::Google::Cloud::Vision::V1p3beta1::VERSION,
614
620
  transports_version_send: [:rest]
615
621
 
622
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
616
623
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
617
624
 
618
625
  options.apply_defaults timeout: @config.rpcs.update_product_set.timeout,
@@ -695,12 +702,13 @@ module Google
695
702
  # Customize the options with defaults
696
703
  call_metadata = @config.rpcs.delete_product_set.metadata.to_h
697
704
 
698
- # Set x-goog-api-client and x-goog-user-project headers
705
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
699
706
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
700
707
  lib_name: @config.lib_name, lib_version: @config.lib_version,
701
708
  gapic_version: ::Google::Cloud::Vision::V1p3beta1::VERSION,
702
709
  transports_version_send: [:rest]
703
710
 
711
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
704
712
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
705
713
 
706
714
  options.apply_defaults timeout: @config.rpcs.delete_product_set.timeout,
@@ -790,12 +798,13 @@ module Google
790
798
  # Customize the options with defaults
791
799
  call_metadata = @config.rpcs.create_product.metadata.to_h
792
800
 
793
- # Set x-goog-api-client and x-goog-user-project headers
801
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
794
802
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
795
803
  lib_name: @config.lib_name, lib_version: @config.lib_version,
796
804
  gapic_version: ::Google::Cloud::Vision::V1p3beta1::VERSION,
797
805
  transports_version_send: [:rest]
798
806
 
807
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
799
808
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
800
809
 
801
810
  options.apply_defaults timeout: @config.rpcs.create_product.timeout,
@@ -883,12 +892,13 @@ module Google
883
892
  # Customize the options with defaults
884
893
  call_metadata = @config.rpcs.list_products.metadata.to_h
885
894
 
886
- # Set x-goog-api-client and x-goog-user-project headers
895
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
887
896
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
888
897
  lib_name: @config.lib_name, lib_version: @config.lib_version,
889
898
  gapic_version: ::Google::Cloud::Vision::V1p3beta1::VERSION,
890
899
  transports_version_send: [:rest]
891
900
 
901
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
892
902
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
893
903
 
894
904
  options.apply_defaults timeout: @config.rpcs.list_products.timeout,
@@ -969,12 +979,13 @@ module Google
969
979
  # Customize the options with defaults
970
980
  call_metadata = @config.rpcs.get_product.metadata.to_h
971
981
 
972
- # Set x-goog-api-client and x-goog-user-project headers
982
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
973
983
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
974
984
  lib_name: @config.lib_name, lib_version: @config.lib_version,
975
985
  gapic_version: ::Google::Cloud::Vision::V1p3beta1::VERSION,
976
986
  transports_version_send: [:rest]
977
987
 
988
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
978
989
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
979
990
 
980
991
  options.apply_defaults timeout: @config.rpcs.get_product.timeout,
@@ -1067,12 +1078,13 @@ module Google
1067
1078
  # Customize the options with defaults
1068
1079
  call_metadata = @config.rpcs.update_product.metadata.to_h
1069
1080
 
1070
- # Set x-goog-api-client and x-goog-user-project headers
1081
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1071
1082
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1072
1083
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1073
1084
  gapic_version: ::Google::Cloud::Vision::V1p3beta1::VERSION,
1074
1085
  transports_version_send: [:rest]
1075
1086
 
1087
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1076
1088
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1077
1089
 
1078
1090
  options.apply_defaults timeout: @config.rpcs.update_product.timeout,
@@ -1156,12 +1168,13 @@ module Google
1156
1168
  # Customize the options with defaults
1157
1169
  call_metadata = @config.rpcs.delete_product.metadata.to_h
1158
1170
 
1159
- # Set x-goog-api-client and x-goog-user-project headers
1171
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1160
1172
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1161
1173
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1162
1174
  gapic_version: ::Google::Cloud::Vision::V1p3beta1::VERSION,
1163
1175
  transports_version_send: [:rest]
1164
1176
 
1177
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1165
1178
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1166
1179
 
1167
1180
  options.apply_defaults timeout: @config.rpcs.delete_product.timeout,
@@ -1263,12 +1276,13 @@ module Google
1263
1276
  # Customize the options with defaults
1264
1277
  call_metadata = @config.rpcs.create_reference_image.metadata.to_h
1265
1278
 
1266
- # Set x-goog-api-client and x-goog-user-project headers
1279
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1267
1280
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1268
1281
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1269
1282
  gapic_version: ::Google::Cloud::Vision::V1p3beta1::VERSION,
1270
1283
  transports_version_send: [:rest]
1271
1284
 
1285
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1272
1286
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1273
1287
 
1274
1288
  options.apply_defaults timeout: @config.rpcs.create_reference_image.timeout,
@@ -1355,12 +1369,13 @@ module Google
1355
1369
  # Customize the options with defaults
1356
1370
  call_metadata = @config.rpcs.delete_reference_image.metadata.to_h
1357
1371
 
1358
- # Set x-goog-api-client and x-goog-user-project headers
1372
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1359
1373
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1360
1374
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1361
1375
  gapic_version: ::Google::Cloud::Vision::V1p3beta1::VERSION,
1362
1376
  transports_version_send: [:rest]
1363
1377
 
1378
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1364
1379
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1365
1380
 
1366
1381
  options.apply_defaults timeout: @config.rpcs.delete_reference_image.timeout,
@@ -1453,12 +1468,13 @@ module Google
1453
1468
  # Customize the options with defaults
1454
1469
  call_metadata = @config.rpcs.list_reference_images.metadata.to_h
1455
1470
 
1456
- # Set x-goog-api-client and x-goog-user-project headers
1471
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1457
1472
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1458
1473
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1459
1474
  gapic_version: ::Google::Cloud::Vision::V1p3beta1::VERSION,
1460
1475
  transports_version_send: [:rest]
1461
1476
 
1477
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1462
1478
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1463
1479
 
1464
1480
  options.apply_defaults timeout: @config.rpcs.list_reference_images.timeout,
@@ -1540,12 +1556,13 @@ module Google
1540
1556
  # Customize the options with defaults
1541
1557
  call_metadata = @config.rpcs.get_reference_image.metadata.to_h
1542
1558
 
1543
- # Set x-goog-api-client and x-goog-user-project headers
1559
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1544
1560
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1545
1561
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1546
1562
  gapic_version: ::Google::Cloud::Vision::V1p3beta1::VERSION,
1547
1563
  transports_version_send: [:rest]
1548
1564
 
1565
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1549
1566
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1550
1567
 
1551
1568
  options.apply_defaults timeout: @config.rpcs.get_reference_image.timeout,
@@ -1633,12 +1650,13 @@ module Google
1633
1650
  # Customize the options with defaults
1634
1651
  call_metadata = @config.rpcs.add_product_to_product_set.metadata.to_h
1635
1652
 
1636
- # Set x-goog-api-client and x-goog-user-project headers
1653
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1637
1654
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1638
1655
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1639
1656
  gapic_version: ::Google::Cloud::Vision::V1p3beta1::VERSION,
1640
1657
  transports_version_send: [:rest]
1641
1658
 
1659
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1642
1660
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1643
1661
 
1644
1662
  options.apply_defaults timeout: @config.rpcs.add_product_to_product_set.timeout,
@@ -1723,12 +1741,13 @@ module Google
1723
1741
  # Customize the options with defaults
1724
1742
  call_metadata = @config.rpcs.remove_product_from_product_set.metadata.to_h
1725
1743
 
1726
- # Set x-goog-api-client and x-goog-user-project headers
1744
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1727
1745
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1728
1746
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1729
1747
  gapic_version: ::Google::Cloud::Vision::V1p3beta1::VERSION,
1730
1748
  transports_version_send: [:rest]
1731
1749
 
1750
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1732
1751
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1733
1752
 
1734
1753
  options.apply_defaults timeout: @config.rpcs.remove_product_from_product_set.timeout,
@@ -1818,12 +1837,13 @@ module Google
1818
1837
  # Customize the options with defaults
1819
1838
  call_metadata = @config.rpcs.list_products_in_product_set.metadata.to_h
1820
1839
 
1821
- # Set x-goog-api-client and x-goog-user-project headers
1840
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1822
1841
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1823
1842
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1824
1843
  gapic_version: ::Google::Cloud::Vision::V1p3beta1::VERSION,
1825
1844
  transports_version_send: [:rest]
1826
1845
 
1846
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1827
1847
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1828
1848
 
1829
1849
  options.apply_defaults timeout: @config.rpcs.list_products_in_product_set.timeout,
@@ -1918,12 +1938,13 @@ module Google
1918
1938
  # Customize the options with defaults
1919
1939
  call_metadata = @config.rpcs.import_product_sets.metadata.to_h
1920
1940
 
1921
- # Set x-goog-api-client and x-goog-user-project headers
1941
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1922
1942
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1923
1943
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1924
1944
  gapic_version: ::Google::Cloud::Vision::V1p3beta1::VERSION,
1925
1945
  transports_version_send: [:rest]
1926
1946
 
1947
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1927
1948
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1928
1949
 
1929
1950
  options.apply_defaults timeout: @config.rpcs.import_product_sets.timeout,
@@ -26,6 +26,9 @@ module Google
26
26
  module Rest
27
27
  # Service that implements Longrunning Operations API.
28
28
  class Operations
29
+ # @private
30
+ API_VERSION = ""
31
+
29
32
  # @private
30
33
  DEFAULT_ENDPOINT_TEMPLATE = "vision.$UNIVERSE_DOMAIN$"
31
34
 
@@ -181,12 +184,13 @@ module Google
181
184
  # Customize the options with defaults
182
185
  call_metadata = @config.rpcs.list_operations.metadata.to_h
183
186
 
184
- # Set x-goog-api-client and x-goog-user-project headers
187
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
185
188
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
186
189
  lib_name: @config.lib_name, lib_version: @config.lib_version,
187
190
  gapic_version: ::Google::Cloud::Vision::V1p3beta1::VERSION,
188
191
  transports_version_send: [:rest]
189
192
 
193
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
190
194
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
191
195
 
192
196
  options.apply_defaults timeout: @config.rpcs.list_operations.timeout,
@@ -269,12 +273,13 @@ module Google
269
273
  # Customize the options with defaults
270
274
  call_metadata = @config.rpcs.get_operation.metadata.to_h
271
275
 
272
- # Set x-goog-api-client and x-goog-user-project headers
276
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
273
277
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
274
278
  lib_name: @config.lib_name, lib_version: @config.lib_version,
275
279
  gapic_version: ::Google::Cloud::Vision::V1p3beta1::VERSION,
276
280
  transports_version_send: [:rest]
277
281
 
282
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
278
283
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
279
284
 
280
285
  options.apply_defaults timeout: @config.rpcs.get_operation.timeout,
@@ -351,12 +356,13 @@ module Google
351
356
  # Customize the options with defaults
352
357
  call_metadata = @config.rpcs.delete_operation.metadata.to_h
353
358
 
354
- # Set x-goog-api-client and x-goog-user-project headers
359
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
355
360
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
356
361
  lib_name: @config.lib_name, lib_version: @config.lib_version,
357
362
  gapic_version: ::Google::Cloud::Vision::V1p3beta1::VERSION,
358
363
  transports_version_send: [:rest]
359
364
 
365
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
360
366
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
361
367
 
362
368
  options.apply_defaults timeout: @config.rpcs.delete_operation.timeout,
@@ -438,12 +444,13 @@ module Google
438
444
  # Customize the options with defaults
439
445
  call_metadata = @config.rpcs.cancel_operation.metadata.to_h
440
446
 
441
- # Set x-goog-api-client and x-goog-user-project headers
447
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
442
448
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
443
449
  lib_name: @config.lib_name, lib_version: @config.lib_version,
444
450
  gapic_version: ::Google::Cloud::Vision::V1p3beta1::VERSION,
445
451
  transports_version_send: [:rest]
446
452
 
453
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
447
454
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
448
455
 
449
456
  options.apply_defaults timeout: @config.rpcs.cancel_operation.timeout,
@@ -1,7 +1,7 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # Source: google/cloud/vision/v1p3beta1/product_search_service.proto for package 'google.cloud.vision.v1p3beta1'
3
3
  # Original file comments:
4
- # Copyright 2019 Google LLC.
4
+ # Copyright 2024 Google LLC
5
5
  #
6
6
  # Licensed under the Apache License, Version 2.0 (the "License");
7
7
  # you may not use this file except in compliance with the License.
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Vision
23
23
  module V1p3beta1
24
- VERSION = "0.13.0"
24
+ VERSION = "0.13.1"
25
25
  end
26
26
  end
27
27
  end
@@ -118,6 +118,10 @@ module Google
118
118
  # @return [::String]
119
119
  # Optional link to proto reference documentation. Example:
120
120
  # https://cloud.google.com/pubsub/lite/docs/reference/rpc
121
+ # @!attribute [rw] rest_reference_documentation_uri
122
+ # @return [::String]
123
+ # Optional link to REST reference documentation. Example:
124
+ # https://cloud.google.com/pubsub/lite/docs/reference/rest
121
125
  class Publishing
122
126
  include ::Google::Protobuf::MessageExts
123
127
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -192,9 +196,26 @@ module Google
192
196
  # @!attribute [rw] common
193
197
  # @return [::Google::Api::CommonLanguageSettings]
194
198
  # Some settings.
199
+ # @!attribute [rw] experimental_features
200
+ # @return [::Google::Api::PythonSettings::ExperimentalFeatures]
201
+ # Experimental features to be included during client library generation.
195
202
  class PythonSettings
196
203
  include ::Google::Protobuf::MessageExts
197
204
  extend ::Google::Protobuf::MessageExts::ClassMethods
205
+
206
+ # Experimental features to be included during client library generation.
207
+ # These fields will be deprecated once the feature graduates and is enabled
208
+ # by default.
209
+ # @!attribute [rw] rest_async_io_enabled
210
+ # @return [::Boolean]
211
+ # Enables generation of asynchronous REST clients if `rest` transport is
212
+ # enabled. By default, asynchronous REST clients will not be generated.
213
+ # This feature will be enabled by default 1 month after launching the
214
+ # feature in preview packages.
215
+ class ExperimentalFeatures
216
+ include ::Google::Protobuf::MessageExts
217
+ extend ::Google::Protobuf::MessageExts::ClassMethods
218
+ end
198
219
  end
199
220
 
200
221
  # Settings for Node client libraries.
@@ -286,6 +307,13 @@ module Google
286
307
  # @return [::String]
287
308
  # The fully qualified name of the method, for which the options below apply.
288
309
  # This is used to find the method to apply the options.
310
+ #
311
+ # Example:
312
+ #
313
+ # publishing:
314
+ # method_settings:
315
+ # - selector: google.storage.control.v2.StorageControl.CreateFolder
316
+ # # method settings for CreateFolder...
289
317
  # @!attribute [rw] long_running
290
318
  # @return [::Google::Api::MethodSettings::LongRunning]
291
319
  # Describes settings to use for long-running operations when generating
@@ -294,17 +322,14 @@ module Google
294
322
  #
295
323
  # Example of a YAML configuration::
296
324
  #
297
- # publishing:
298
- # method_settings:
325
+ # publishing:
326
+ # method_settings:
299
327
  # - selector: google.cloud.speech.v2.Speech.BatchRecognize
300
328
  # long_running:
301
- # initial_poll_delay:
302
- # seconds: 60 # 1 minute
329
+ # initial_poll_delay: 60s # 1 minute
303
330
  # poll_delay_multiplier: 1.5
304
- # max_poll_delay:
305
- # seconds: 360 # 6 minutes
306
- # total_poll_timeout:
307
- # seconds: 54000 # 90 minutes
331
+ # max_poll_delay: 360s # 6 minutes
332
+ # total_poll_timeout: 54000s # 90 minutes
308
333
  # @!attribute [rw] auto_populated_fields
309
334
  # @return [::Array<::String>]
310
335
  # List of top-level fields of the request message, that should be
@@ -313,8 +338,8 @@ module Google
313
338
  #
314
339
  # Example of a YAML configuration:
315
340
  #
316
- # publishing:
317
- # method_settings:
341
+ # publishing:
342
+ # method_settings:
318
343
  # - selector: google.example.v1.ExampleService.CreateExample
319
344
  # auto_populated_fields:
320
345
  # - request_id
@@ -124,8 +124,13 @@ module Google
124
124
  # @return [::String]
125
125
  # The plural name used in the resource name and permission names, such as
126
126
  # 'projects' for the resource name of 'projects/\\{project}' and the permission
127
- # name of 'cloudresourcemanager.googleapis.com/projects.get'. It is the same
128
- # concept of the `plural` field in k8s CRD spec
127
+ # name of 'cloudresourcemanager.googleapis.com/projects.get'. One exception
128
+ # to this is for Nested Collections that have stuttering names, as defined
129
+ # in [AIP-122](https://google.aip.dev/122#nested-collections), where the
130
+ # collection ID in the resource name pattern does not necessarily directly
131
+ # match the `plural` value.
132
+ #
133
+ # It is the same concept of the `plural` field in k8s CRD spec
129
134
  # https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/
130
135
  #
131
136
  # Note: The plural form is required even for singleton resources. See
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-vision-v1p3beta1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.13.0
4
+ version: 0.13.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-02-26 00:00:00.000000000 Z
11
+ date: 2024-08-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common