google-cloud-vision-v1 0.15.0 → 1.0.0

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: d78227bc6d3dd7ceefd56c565b76c8f0df9e6d9a0b9466fc5a457b88bf97178d
4
- data.tar.gz: 670e65759234417007f036c0b17e3debc7a0cbf146d9c2ff05df56d1bddf39c6
3
+ metadata.gz: 970bf13e9524469f6e536c778469568892512717b80ff1f29cc68f8f1cac846b
4
+ data.tar.gz: 38e989a02b3f45c8eb73818368fc00d5d1193bf36dc7e2862317a2a1684b6480
5
5
  SHA512:
6
- metadata.gz: de9dbcb520de5e177ab2cb9055a4f4ad8006d37948a60087769558ee8dc74c19d072c602ba30dd8794664483c21118a324c37395b0814b820d8e5dcfaa462305
7
- data.tar.gz: 1c4743824bed58f29a578be6d306def87ca9377eb508705788367a5245787a08cf383f4cb565cb8c88327348967180f2f1ddb913ad57e498c499e5b3c8f156b5
6
+ metadata.gz: 0b1ed64849d9338a9b625a26d3143701638de83e1ee9e60571f76c4a85154594c9b968b77c6608f9ea7b759d4bc11b31a0045d9a2d2fd6e40034e62008124a8e
7
+ data.tar.gz: 9ecdc7423fcd4ad32a5751b10fa382e98368f84307f4020a55f873032c02379c317e3cd0e7196ea00fa60000be10cd4f038013cc65b0104d62cabd11e8f82e5b
@@ -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
 
@@ -271,10 +274,11 @@ module Google
271
274
  # Customize the options with defaults
272
275
  metadata = @config.rpcs.batch_annotate_images.metadata.to_h
273
276
 
274
- # Set x-goog-api-client and x-goog-user-project headers
277
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
275
278
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
276
279
  lib_name: @config.lib_name, lib_version: @config.lib_version,
277
280
  gapic_version: ::Google::Cloud::Vision::V1::VERSION
281
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
278
282
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
279
283
 
280
284
  options.apply_defaults timeout: @config.rpcs.batch_annotate_images.timeout,
@@ -375,10 +379,11 @@ module Google
375
379
  # Customize the options with defaults
376
380
  metadata = @config.rpcs.batch_annotate_files.metadata.to_h
377
381
 
378
- # Set x-goog-api-client and x-goog-user-project headers
382
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
379
383
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
380
384
  lib_name: @config.lib_name, lib_version: @config.lib_version,
381
385
  gapic_version: ::Google::Cloud::Vision::V1::VERSION
386
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
382
387
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
383
388
 
384
389
  options.apply_defaults timeout: @config.rpcs.batch_annotate_files.timeout,
@@ -489,10 +494,11 @@ module Google
489
494
  # Customize the options with defaults
490
495
  metadata = @config.rpcs.async_batch_annotate_images.metadata.to_h
491
496
 
492
- # Set x-goog-api-client and x-goog-user-project headers
497
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
493
498
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
494
499
  lib_name: @config.lib_name, lib_version: @config.lib_version,
495
500
  gapic_version: ::Google::Cloud::Vision::V1::VERSION
501
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
496
502
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
497
503
 
498
504
  options.apply_defaults timeout: @config.rpcs.async_batch_annotate_images.timeout,
@@ -599,10 +605,11 @@ module Google
599
605
  # Customize the options with defaults
600
606
  metadata = @config.rpcs.async_batch_annotate_files.metadata.to_h
601
607
 
602
- # Set x-goog-api-client and x-goog-user-project headers
608
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
603
609
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
604
610
  lib_name: @config.lib_name, lib_version: @config.lib_version,
605
611
  gapic_version: ::Google::Cloud::Vision::V1::VERSION
612
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
606
613
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
607
614
 
608
615
  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::V1::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::V1::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::V1::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::V1::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::V1::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
 
@@ -263,12 +266,13 @@ module Google
263
266
  # Customize the options with defaults
264
267
  call_metadata = @config.rpcs.batch_annotate_images.metadata.to_h
265
268
 
266
- # Set x-goog-api-client and x-goog-user-project headers
269
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
267
270
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
268
271
  lib_name: @config.lib_name, lib_version: @config.lib_version,
269
272
  gapic_version: ::Google::Cloud::Vision::V1::VERSION,
270
273
  transports_version_send: [:rest]
271
274
 
275
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
272
276
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
273
277
 
274
278
  options.apply_defaults timeout: @config.rpcs.batch_annotate_images.timeout,
@@ -368,12 +372,13 @@ module Google
368
372
  # Customize the options with defaults
369
373
  call_metadata = @config.rpcs.batch_annotate_files.metadata.to_h
370
374
 
371
- # Set x-goog-api-client and x-goog-user-project headers
375
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
372
376
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
373
377
  lib_name: @config.lib_name, lib_version: @config.lib_version,
374
378
  gapic_version: ::Google::Cloud::Vision::V1::VERSION,
375
379
  transports_version_send: [:rest]
376
380
 
381
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
377
382
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
378
383
 
379
384
  options.apply_defaults timeout: @config.rpcs.batch_annotate_files.timeout,
@@ -483,12 +488,13 @@ module Google
483
488
  # Customize the options with defaults
484
489
  call_metadata = @config.rpcs.async_batch_annotate_images.metadata.to_h
485
490
 
486
- # Set x-goog-api-client and x-goog-user-project headers
491
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
487
492
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
488
493
  lib_name: @config.lib_name, lib_version: @config.lib_version,
489
494
  gapic_version: ::Google::Cloud::Vision::V1::VERSION,
490
495
  transports_version_send: [:rest]
491
496
 
497
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
492
498
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
493
499
 
494
500
  options.apply_defaults timeout: @config.rpcs.async_batch_annotate_images.timeout,
@@ -594,12 +600,13 @@ module Google
594
600
  # Customize the options with defaults
595
601
  call_metadata = @config.rpcs.async_batch_annotate_files.metadata.to_h
596
602
 
597
- # Set x-goog-api-client and x-goog-user-project headers
603
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
598
604
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
599
605
  lib_name: @config.lib_name, lib_version: @config.lib_version,
600
606
  gapic_version: ::Google::Cloud::Vision::V1::VERSION,
601
607
  transports_version_send: [:rest]
602
608
 
609
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
603
610
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
604
611
 
605
612
  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::V1::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::V1::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::V1::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::V1::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,
@@ -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
 
@@ -353,10 +356,11 @@ module Google
353
356
  # Customize the options with defaults
354
357
  metadata = @config.rpcs.create_product_set.metadata.to_h
355
358
 
356
- # 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
357
360
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
358
361
  lib_name: @config.lib_name, lib_version: @config.lib_version,
359
362
  gapic_version: ::Google::Cloud::Vision::V1::VERSION
363
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
360
364
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
361
365
 
362
366
  header_params = {}
@@ -453,10 +457,11 @@ module Google
453
457
  # Customize the options with defaults
454
458
  metadata = @config.rpcs.list_product_sets.metadata.to_h
455
459
 
456
- # Set x-goog-api-client and x-goog-user-project headers
460
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
457
461
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
458
462
  lib_name: @config.lib_name, lib_version: @config.lib_version,
459
463
  gapic_version: ::Google::Cloud::Vision::V1::VERSION
464
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
460
465
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
461
466
 
462
467
  header_params = {}
@@ -546,10 +551,11 @@ module Google
546
551
  # Customize the options with defaults
547
552
  metadata = @config.rpcs.get_product_set.metadata.to_h
548
553
 
549
- # Set x-goog-api-client and x-goog-user-project headers
554
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
550
555
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
551
556
  lib_name: @config.lib_name, lib_version: @config.lib_version,
552
557
  gapic_version: ::Google::Cloud::Vision::V1::VERSION
558
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
553
559
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
554
560
 
555
561
  header_params = {}
@@ -643,10 +649,11 @@ module Google
643
649
  # Customize the options with defaults
644
650
  metadata = @config.rpcs.update_product_set.metadata.to_h
645
651
 
646
- # Set x-goog-api-client and x-goog-user-project headers
652
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
647
653
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
648
654
  lib_name: @config.lib_name, lib_version: @config.lib_version,
649
655
  gapic_version: ::Google::Cloud::Vision::V1::VERSION
656
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
650
657
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
651
658
 
652
659
  header_params = {}
@@ -734,10 +741,11 @@ module Google
734
741
  # Customize the options with defaults
735
742
  metadata = @config.rpcs.delete_product_set.metadata.to_h
736
743
 
737
- # Set x-goog-api-client and x-goog-user-project headers
744
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
738
745
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
739
746
  lib_name: @config.lib_name, lib_version: @config.lib_version,
740
747
  gapic_version: ::Google::Cloud::Vision::V1::VERSION
748
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
741
749
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
742
750
 
743
751
  header_params = {}
@@ -836,10 +844,11 @@ module Google
836
844
  # Customize the options with defaults
837
845
  metadata = @config.rpcs.create_product.metadata.to_h
838
846
 
839
- # Set x-goog-api-client and x-goog-user-project headers
847
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
840
848
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
841
849
  lib_name: @config.lib_name, lib_version: @config.lib_version,
842
850
  gapic_version: ::Google::Cloud::Vision::V1::VERSION
851
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
843
852
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
844
853
 
845
854
  header_params = {}
@@ -936,10 +945,11 @@ module Google
936
945
  # Customize the options with defaults
937
946
  metadata = @config.rpcs.list_products.metadata.to_h
938
947
 
939
- # Set x-goog-api-client and x-goog-user-project headers
948
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
940
949
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
941
950
  lib_name: @config.lib_name, lib_version: @config.lib_version,
942
951
  gapic_version: ::Google::Cloud::Vision::V1::VERSION
952
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
943
953
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
944
954
 
945
955
  header_params = {}
@@ -1029,10 +1039,11 @@ module Google
1029
1039
  # Customize the options with defaults
1030
1040
  metadata = @config.rpcs.get_product.metadata.to_h
1031
1041
 
1032
- # Set x-goog-api-client and x-goog-user-project headers
1042
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1033
1043
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1034
1044
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1035
1045
  gapic_version: ::Google::Cloud::Vision::V1::VERSION
1046
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1036
1047
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1037
1048
 
1038
1049
  header_params = {}
@@ -1135,10 +1146,11 @@ module Google
1135
1146
  # Customize the options with defaults
1136
1147
  metadata = @config.rpcs.update_product.metadata.to_h
1137
1148
 
1138
- # Set x-goog-api-client and x-goog-user-project headers
1149
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1139
1150
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1140
1151
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1141
1152
  gapic_version: ::Google::Cloud::Vision::V1::VERSION
1153
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1142
1154
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1143
1155
 
1144
1156
  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::V1::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 = {}
@@ -1342,10 +1355,11 @@ module Google
1342
1355
  # Customize the options with defaults
1343
1356
  metadata = @config.rpcs.create_reference_image.metadata.to_h
1344
1357
 
1345
- # Set x-goog-api-client and x-goog-user-project headers
1358
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1346
1359
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1347
1360
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1348
1361
  gapic_version: ::Google::Cloud::Vision::V1::VERSION
1362
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1349
1363
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1350
1364
 
1351
1365
  header_params = {}
@@ -1436,10 +1450,11 @@ module Google
1436
1450
  # Customize the options with defaults
1437
1451
  metadata = @config.rpcs.delete_reference_image.metadata.to_h
1438
1452
 
1439
- # Set x-goog-api-client and x-goog-user-project headers
1453
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1440
1454
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1441
1455
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1442
1456
  gapic_version: ::Google::Cloud::Vision::V1::VERSION
1457
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1443
1458
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1444
1459
 
1445
1460
  header_params = {}
@@ -1541,10 +1556,11 @@ module Google
1541
1556
  # Customize the options with defaults
1542
1557
  metadata = @config.rpcs.list_reference_images.metadata.to_h
1543
1558
 
1544
- # 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
1545
1560
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1546
1561
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1547
1562
  gapic_version: ::Google::Cloud::Vision::V1::VERSION
1563
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1548
1564
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1549
1565
 
1550
1566
  header_params = {}
@@ -1634,10 +1650,11 @@ module Google
1634
1650
  # Customize the options with defaults
1635
1651
  metadata = @config.rpcs.get_reference_image.metadata.to_h
1636
1652
 
1637
- # 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
1638
1654
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1639
1655
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1640
1656
  gapic_version: ::Google::Cloud::Vision::V1::VERSION
1657
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1641
1658
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1642
1659
 
1643
1660
  header_params = {}
@@ -1734,10 +1751,11 @@ module Google
1734
1751
  # Customize the options with defaults
1735
1752
  metadata = @config.rpcs.add_product_to_product_set.metadata.to_h
1736
1753
 
1737
- # Set x-goog-api-client and x-goog-user-project headers
1754
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1738
1755
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1739
1756
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1740
1757
  gapic_version: ::Google::Cloud::Vision::V1::VERSION
1758
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1741
1759
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1742
1760
 
1743
1761
  header_params = {}
@@ -1828,10 +1846,11 @@ module Google
1828
1846
  # Customize the options with defaults
1829
1847
  metadata = @config.rpcs.remove_product_from_product_set.metadata.to_h
1830
1848
 
1831
- # Set x-goog-api-client and x-goog-user-project headers
1849
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1832
1850
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1833
1851
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1834
1852
  gapic_version: ::Google::Cloud::Vision::V1::VERSION
1853
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1835
1854
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1836
1855
 
1837
1856
  header_params = {}
@@ -1930,10 +1949,11 @@ module Google
1930
1949
  # Customize the options with defaults
1931
1950
  metadata = @config.rpcs.list_products_in_product_set.metadata.to_h
1932
1951
 
1933
- # Set x-goog-api-client and x-goog-user-project headers
1952
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1934
1953
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1935
1954
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1936
1955
  gapic_version: ::Google::Cloud::Vision::V1::VERSION
1956
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1937
1957
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1938
1958
 
1939
1959
  header_params = {}
@@ -2037,10 +2057,11 @@ module Google
2037
2057
  # Customize the options with defaults
2038
2058
  metadata = @config.rpcs.import_product_sets.metadata.to_h
2039
2059
 
2040
- # Set x-goog-api-client and x-goog-user-project headers
2060
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2041
2061
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2042
2062
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2043
2063
  gapic_version: ::Google::Cloud::Vision::V1::VERSION
2064
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2044
2065
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2045
2066
 
2046
2067
  header_params = {}
@@ -2163,10 +2184,11 @@ module Google
2163
2184
  # Customize the options with defaults
2164
2185
  metadata = @config.rpcs.purge_products.metadata.to_h
2165
2186
 
2166
- # Set x-goog-api-client and x-goog-user-project headers
2187
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2167
2188
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2168
2189
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2169
2190
  gapic_version: ::Google::Cloud::Vision::V1::VERSION
2191
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2170
2192
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2171
2193
 
2172
2194
  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::V1::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::V1::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::V1::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::V1::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::V1::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,
@@ -47,6 +47,9 @@ module Google
47
47
  # `projects/*/locations/*/products/*/referenceImages/*`
48
48
  #
49
49
  class Client
50
+ # @private
51
+ API_VERSION = ""
52
+
50
53
  # @private
51
54
  DEFAULT_ENDPOINT_TEMPLATE = "vision.$UNIVERSE_DOMAIN$"
52
55
 
@@ -345,12 +348,13 @@ module Google
345
348
  # Customize the options with defaults
346
349
  call_metadata = @config.rpcs.create_product_set.metadata.to_h
347
350
 
348
- # Set x-goog-api-client and x-goog-user-project headers
351
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
349
352
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
350
353
  lib_name: @config.lib_name, lib_version: @config.lib_version,
351
354
  gapic_version: ::Google::Cloud::Vision::V1::VERSION,
352
355
  transports_version_send: [:rest]
353
356
 
357
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
354
358
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
355
359
 
356
360
  options.apply_defaults timeout: @config.rpcs.create_product_set.timeout,
@@ -438,12 +442,13 @@ module Google
438
442
  # Customize the options with defaults
439
443
  call_metadata = @config.rpcs.list_product_sets.metadata.to_h
440
444
 
441
- # Set x-goog-api-client and x-goog-user-project headers
445
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
442
446
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
443
447
  lib_name: @config.lib_name, lib_version: @config.lib_version,
444
448
  gapic_version: ::Google::Cloud::Vision::V1::VERSION,
445
449
  transports_version_send: [:rest]
446
450
 
451
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
447
452
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
448
453
 
449
454
  options.apply_defaults timeout: @config.rpcs.list_product_sets.timeout,
@@ -524,12 +529,13 @@ module Google
524
529
  # Customize the options with defaults
525
530
  call_metadata = @config.rpcs.get_product_set.metadata.to_h
526
531
 
527
- # Set x-goog-api-client and x-goog-user-project headers
532
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
528
533
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
529
534
  lib_name: @config.lib_name, lib_version: @config.lib_version,
530
535
  gapic_version: ::Google::Cloud::Vision::V1::VERSION,
531
536
  transports_version_send: [:rest]
532
537
 
538
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
533
539
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
534
540
 
535
541
  options.apply_defaults timeout: @config.rpcs.get_product_set.timeout,
@@ -614,12 +620,13 @@ module Google
614
620
  # Customize the options with defaults
615
621
  call_metadata = @config.rpcs.update_product_set.metadata.to_h
616
622
 
617
- # Set x-goog-api-client and x-goog-user-project headers
623
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
618
624
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
619
625
  lib_name: @config.lib_name, lib_version: @config.lib_version,
620
626
  gapic_version: ::Google::Cloud::Vision::V1::VERSION,
621
627
  transports_version_send: [:rest]
622
628
 
629
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
623
630
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
624
631
 
625
632
  options.apply_defaults timeout: @config.rpcs.update_product_set.timeout,
@@ -698,12 +705,13 @@ module Google
698
705
  # Customize the options with defaults
699
706
  call_metadata = @config.rpcs.delete_product_set.metadata.to_h
700
707
 
701
- # Set x-goog-api-client and x-goog-user-project headers
708
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
702
709
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
703
710
  lib_name: @config.lib_name, lib_version: @config.lib_version,
704
711
  gapic_version: ::Google::Cloud::Vision::V1::VERSION,
705
712
  transports_version_send: [:rest]
706
713
 
714
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
707
715
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
708
716
 
709
717
  options.apply_defaults timeout: @config.rpcs.delete_product_set.timeout,
@@ -793,12 +801,13 @@ module Google
793
801
  # Customize the options with defaults
794
802
  call_metadata = @config.rpcs.create_product.metadata.to_h
795
803
 
796
- # Set x-goog-api-client and x-goog-user-project headers
804
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
797
805
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
798
806
  lib_name: @config.lib_name, lib_version: @config.lib_version,
799
807
  gapic_version: ::Google::Cloud::Vision::V1::VERSION,
800
808
  transports_version_send: [:rest]
801
809
 
810
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
802
811
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
803
812
 
804
813
  options.apply_defaults timeout: @config.rpcs.create_product.timeout,
@@ -886,12 +895,13 @@ module Google
886
895
  # Customize the options with defaults
887
896
  call_metadata = @config.rpcs.list_products.metadata.to_h
888
897
 
889
- # Set x-goog-api-client and x-goog-user-project headers
898
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
890
899
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
891
900
  lib_name: @config.lib_name, lib_version: @config.lib_version,
892
901
  gapic_version: ::Google::Cloud::Vision::V1::VERSION,
893
902
  transports_version_send: [:rest]
894
903
 
904
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
895
905
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
896
906
 
897
907
  options.apply_defaults timeout: @config.rpcs.list_products.timeout,
@@ -972,12 +982,13 @@ module Google
972
982
  # Customize the options with defaults
973
983
  call_metadata = @config.rpcs.get_product.metadata.to_h
974
984
 
975
- # Set x-goog-api-client and x-goog-user-project headers
985
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
976
986
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
977
987
  lib_name: @config.lib_name, lib_version: @config.lib_version,
978
988
  gapic_version: ::Google::Cloud::Vision::V1::VERSION,
979
989
  transports_version_send: [:rest]
980
990
 
991
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
981
992
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
982
993
 
983
994
  options.apply_defaults timeout: @config.rpcs.get_product.timeout,
@@ -1071,12 +1082,13 @@ module Google
1071
1082
  # Customize the options with defaults
1072
1083
  call_metadata = @config.rpcs.update_product.metadata.to_h
1073
1084
 
1074
- # Set x-goog-api-client and x-goog-user-project headers
1085
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1075
1086
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1076
1087
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1077
1088
  gapic_version: ::Google::Cloud::Vision::V1::VERSION,
1078
1089
  transports_version_send: [:rest]
1079
1090
 
1091
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1080
1092
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1081
1093
 
1082
1094
  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::V1::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,
@@ -1264,12 +1277,13 @@ module Google
1264
1277
  # Customize the options with defaults
1265
1278
  call_metadata = @config.rpcs.create_reference_image.metadata.to_h
1266
1279
 
1267
- # Set x-goog-api-client and x-goog-user-project headers
1280
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1268
1281
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1269
1282
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1270
1283
  gapic_version: ::Google::Cloud::Vision::V1::VERSION,
1271
1284
  transports_version_send: [:rest]
1272
1285
 
1286
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1273
1287
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1274
1288
 
1275
1289
  options.apply_defaults timeout: @config.rpcs.create_reference_image.timeout,
@@ -1351,12 +1365,13 @@ module Google
1351
1365
  # Customize the options with defaults
1352
1366
  call_metadata = @config.rpcs.delete_reference_image.metadata.to_h
1353
1367
 
1354
- # Set x-goog-api-client and x-goog-user-project headers
1368
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1355
1369
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1356
1370
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1357
1371
  gapic_version: ::Google::Cloud::Vision::V1::VERSION,
1358
1372
  transports_version_send: [:rest]
1359
1373
 
1374
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1360
1375
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1361
1376
 
1362
1377
  options.apply_defaults timeout: @config.rpcs.delete_reference_image.timeout,
@@ -1449,12 +1464,13 @@ module Google
1449
1464
  # Customize the options with defaults
1450
1465
  call_metadata = @config.rpcs.list_reference_images.metadata.to_h
1451
1466
 
1452
- # Set x-goog-api-client and x-goog-user-project headers
1467
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1453
1468
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1454
1469
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1455
1470
  gapic_version: ::Google::Cloud::Vision::V1::VERSION,
1456
1471
  transports_version_send: [:rest]
1457
1472
 
1473
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1458
1474
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1459
1475
 
1460
1476
  options.apply_defaults timeout: @config.rpcs.list_reference_images.timeout,
@@ -1535,12 +1551,13 @@ module Google
1535
1551
  # Customize the options with defaults
1536
1552
  call_metadata = @config.rpcs.get_reference_image.metadata.to_h
1537
1553
 
1538
- # Set x-goog-api-client and x-goog-user-project headers
1554
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1539
1555
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1540
1556
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1541
1557
  gapic_version: ::Google::Cloud::Vision::V1::VERSION,
1542
1558
  transports_version_send: [:rest]
1543
1559
 
1560
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1544
1561
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1545
1562
 
1546
1563
  options.apply_defaults timeout: @config.rpcs.get_reference_image.timeout,
@@ -1628,12 +1645,13 @@ module Google
1628
1645
  # Customize the options with defaults
1629
1646
  call_metadata = @config.rpcs.add_product_to_product_set.metadata.to_h
1630
1647
 
1631
- # Set x-goog-api-client and x-goog-user-project headers
1648
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1632
1649
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1633
1650
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1634
1651
  gapic_version: ::Google::Cloud::Vision::V1::VERSION,
1635
1652
  transports_version_send: [:rest]
1636
1653
 
1654
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1637
1655
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1638
1656
 
1639
1657
  options.apply_defaults timeout: @config.rpcs.add_product_to_product_set.timeout,
@@ -1715,12 +1733,13 @@ module Google
1715
1733
  # Customize the options with defaults
1716
1734
  call_metadata = @config.rpcs.remove_product_from_product_set.metadata.to_h
1717
1735
 
1718
- # Set x-goog-api-client and x-goog-user-project headers
1736
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1719
1737
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1720
1738
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1721
1739
  gapic_version: ::Google::Cloud::Vision::V1::VERSION,
1722
1740
  transports_version_send: [:rest]
1723
1741
 
1742
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1724
1743
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1725
1744
 
1726
1745
  options.apply_defaults timeout: @config.rpcs.remove_product_from_product_set.timeout,
@@ -1810,12 +1829,13 @@ module Google
1810
1829
  # Customize the options with defaults
1811
1830
  call_metadata = @config.rpcs.list_products_in_product_set.metadata.to_h
1812
1831
 
1813
- # Set x-goog-api-client and x-goog-user-project headers
1832
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1814
1833
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1815
1834
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1816
1835
  gapic_version: ::Google::Cloud::Vision::V1::VERSION,
1817
1836
  transports_version_send: [:rest]
1818
1837
 
1838
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1819
1839
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1820
1840
 
1821
1841
  options.apply_defaults timeout: @config.rpcs.list_products_in_product_set.timeout,
@@ -1910,12 +1930,13 @@ module Google
1910
1930
  # Customize the options with defaults
1911
1931
  call_metadata = @config.rpcs.import_product_sets.metadata.to_h
1912
1932
 
1913
- # Set x-goog-api-client and x-goog-user-project headers
1933
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1914
1934
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1915
1935
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1916
1936
  gapic_version: ::Google::Cloud::Vision::V1::VERSION,
1917
1937
  transports_version_send: [:rest]
1918
1938
 
1939
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1919
1940
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1920
1941
 
1921
1942
  options.apply_defaults timeout: @config.rpcs.import_product_sets.timeout,
@@ -2029,12 +2050,13 @@ module Google
2029
2050
  # Customize the options with defaults
2030
2051
  call_metadata = @config.rpcs.purge_products.metadata.to_h
2031
2052
 
2032
- # Set x-goog-api-client and x-goog-user-project headers
2053
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2033
2054
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2034
2055
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2035
2056
  gapic_version: ::Google::Cloud::Vision::V1::VERSION,
2036
2057
  transports_version_send: [:rest]
2037
2058
 
2059
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2038
2060
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2039
2061
 
2040
2062
  options.apply_defaults timeout: @config.rpcs.purge_products.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::V1::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::V1::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::V1::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::V1::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,
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Vision
23
23
  module V1
24
- VERSION = "0.15.0"
24
+ VERSION = "1.0.0"
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
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-vision-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.15.0
4
+ version: 1.0.0
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-07-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common