google-cloud-vision-v1p4beta1 0.8.0 → 0.8.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/vision/v1p4beta1/image_annotator/client.rb +11 -4
- data/lib/google/cloud/vision/v1p4beta1/image_annotator/operations.rb +13 -5
- data/lib/google/cloud/vision/v1p4beta1/image_annotator/rest/client.rb +11 -4
- data/lib/google/cloud/vision/v1p4beta1/image_annotator/rest/operations.rb +11 -4
- data/lib/google/cloud/vision/v1p4beta1/image_annotator_services_pb.rb +1 -1
- data/lib/google/cloud/vision/v1p4beta1/product_search/client.rb +41 -19
- data/lib/google/cloud/vision/v1p4beta1/product_search/operations.rb +13 -5
- data/lib/google/cloud/vision/v1p4beta1/product_search/rest/client.rb +41 -19
- data/lib/google/cloud/vision/v1p4beta1/product_search/rest/operations.rb +11 -4
- data/lib/google/cloud/vision/v1p4beta1/product_search_service_services_pb.rb +1 -1
- data/lib/google/cloud/vision/v1p4beta1/version.rb +1 -1
- data/proto_docs/google/api/client.rb +35 -10
- data/proto_docs/google/api/resource.rb +7 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dab5d2850c45416aed624772cc3f34dd11487236084db595f26a4bcc3598e567
|
4
|
+
data.tar.gz: 85f1fa1900d0dada94f97801c90cf9c43a0b68a1afc59845d4c4f9a8d72c6925
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 79d7d1b3b3c31da413789b8a4df0f09cfe1fbffdcea75d23a7792e4301a62c4d4ce0e7d2da923af613f0fb08e526e35f36834412fef8e65a2056cc243ab8c867
|
7
|
+
data.tar.gz: 62fa82467497031e8ac39daa7c5f4bfdc9bd1ed779b3cdd1673a18199a0f4132f662fec83858fbfc099913af7fe7b9b1fae1d8b468e4e2bdd232179a30a75cc8
|
@@ -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
|
|
@@ -251,10 +254,11 @@ module Google
|
|
251
254
|
# Customize the options with defaults
|
252
255
|
metadata = @config.rpcs.batch_annotate_images.metadata.to_h
|
253
256
|
|
254
|
-
# Set x-goog-api-client
|
257
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
255
258
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
256
259
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
257
260
|
gapic_version: ::Google::Cloud::Vision::V1p4beta1::VERSION
|
261
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
258
262
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
259
263
|
|
260
264
|
options.apply_defaults timeout: @config.rpcs.batch_annotate_images.timeout,
|
@@ -335,10 +339,11 @@ module Google
|
|
335
339
|
# Customize the options with defaults
|
336
340
|
metadata = @config.rpcs.batch_annotate_files.metadata.to_h
|
337
341
|
|
338
|
-
# Set x-goog-api-client
|
342
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
339
343
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
340
344
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
341
345
|
gapic_version: ::Google::Cloud::Vision::V1p4beta1::VERSION
|
346
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
342
347
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
343
348
|
|
344
349
|
options.apply_defaults timeout: @config.rpcs.batch_annotate_files.timeout,
|
@@ -429,10 +434,11 @@ module Google
|
|
429
434
|
# Customize the options with defaults
|
430
435
|
metadata = @config.rpcs.async_batch_annotate_images.metadata.to_h
|
431
436
|
|
432
|
-
# Set x-goog-api-client
|
437
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
433
438
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
434
439
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
435
440
|
gapic_version: ::Google::Cloud::Vision::V1p4beta1::VERSION
|
441
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
436
442
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
437
443
|
|
438
444
|
options.apply_defaults timeout: @config.rpcs.async_batch_annotate_images.timeout,
|
@@ -519,10 +525,11 @@ module Google
|
|
519
525
|
# Customize the options with defaults
|
520
526
|
metadata = @config.rpcs.async_batch_annotate_files.metadata.to_h
|
521
527
|
|
522
|
-
# Set x-goog-api-client
|
528
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
523
529
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
524
530
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
525
531
|
gapic_version: ::Google::Cloud::Vision::V1p4beta1::VERSION
|
532
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
526
533
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
527
534
|
|
528
535
|
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
|
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::V1p4beta1::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
|
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::V1p4beta1::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
|
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::V1p4beta1::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
|
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::V1p4beta1::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
|
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::V1p4beta1::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
|
|
@@ -243,12 +246,13 @@ module Google
|
|
243
246
|
# Customize the options with defaults
|
244
247
|
call_metadata = @config.rpcs.batch_annotate_images.metadata.to_h
|
245
248
|
|
246
|
-
# Set x-goog-api-client
|
249
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
247
250
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
248
251
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
249
252
|
gapic_version: ::Google::Cloud::Vision::V1p4beta1::VERSION,
|
250
253
|
transports_version_send: [:rest]
|
251
254
|
|
255
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
252
256
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
253
257
|
|
254
258
|
options.apply_defaults timeout: @config.rpcs.batch_annotate_images.timeout,
|
@@ -328,12 +332,13 @@ module Google
|
|
328
332
|
# Customize the options with defaults
|
329
333
|
call_metadata = @config.rpcs.batch_annotate_files.metadata.to_h
|
330
334
|
|
331
|
-
# Set x-goog-api-client
|
335
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
332
336
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
333
337
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
334
338
|
gapic_version: ::Google::Cloud::Vision::V1p4beta1::VERSION,
|
335
339
|
transports_version_send: [:rest]
|
336
340
|
|
341
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
337
342
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
338
343
|
|
339
344
|
options.apply_defaults timeout: @config.rpcs.batch_annotate_files.timeout,
|
@@ -423,12 +428,13 @@ module Google
|
|
423
428
|
# Customize the options with defaults
|
424
429
|
call_metadata = @config.rpcs.async_batch_annotate_images.metadata.to_h
|
425
430
|
|
426
|
-
# Set x-goog-api-client
|
431
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
427
432
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
428
433
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
429
434
|
gapic_version: ::Google::Cloud::Vision::V1p4beta1::VERSION,
|
430
435
|
transports_version_send: [:rest]
|
431
436
|
|
437
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
432
438
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
433
439
|
|
434
440
|
options.apply_defaults timeout: @config.rpcs.async_batch_annotate_images.timeout,
|
@@ -514,12 +520,13 @@ module Google
|
|
514
520
|
# Customize the options with defaults
|
515
521
|
call_metadata = @config.rpcs.async_batch_annotate_files.metadata.to_h
|
516
522
|
|
517
|
-
# Set x-goog-api-client
|
523
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
518
524
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
519
525
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
520
526
|
gapic_version: ::Google::Cloud::Vision::V1p4beta1::VERSION,
|
521
527
|
transports_version_send: [:rest]
|
522
528
|
|
529
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
523
530
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
524
531
|
|
525
532
|
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
|
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::V1p4beta1::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
|
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::V1p4beta1::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
|
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::V1p4beta1::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
|
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::V1p4beta1::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/v1p4beta1/image_annotator.proto for package 'google.cloud.vision.v1p4beta1'
|
3
3
|
# Original file comments:
|
4
|
-
# Copyright
|
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.
|
@@ -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
|
|
@@ -350,10 +353,11 @@ module Google
|
|
350
353
|
# Customize the options with defaults
|
351
354
|
metadata = @config.rpcs.create_product_set.metadata.to_h
|
352
355
|
|
353
|
-
# Set x-goog-api-client
|
356
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
354
357
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
355
358
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
356
359
|
gapic_version: ::Google::Cloud::Vision::V1p4beta1::VERSION
|
360
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
357
361
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
358
362
|
|
359
363
|
header_params = {}
|
@@ -450,10 +454,11 @@ module Google
|
|
450
454
|
# Customize the options with defaults
|
451
455
|
metadata = @config.rpcs.list_product_sets.metadata.to_h
|
452
456
|
|
453
|
-
# Set x-goog-api-client
|
457
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
454
458
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
455
459
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
456
460
|
gapic_version: ::Google::Cloud::Vision::V1p4beta1::VERSION
|
461
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
457
462
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
458
463
|
|
459
464
|
header_params = {}
|
@@ -543,10 +548,11 @@ module Google
|
|
543
548
|
# Customize the options with defaults
|
544
549
|
metadata = @config.rpcs.get_product_set.metadata.to_h
|
545
550
|
|
546
|
-
# Set x-goog-api-client
|
551
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
547
552
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
548
553
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
549
554
|
gapic_version: ::Google::Cloud::Vision::V1p4beta1::VERSION
|
555
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
550
556
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
551
557
|
|
552
558
|
header_params = {}
|
@@ -640,10 +646,11 @@ module Google
|
|
640
646
|
# Customize the options with defaults
|
641
647
|
metadata = @config.rpcs.update_product_set.metadata.to_h
|
642
648
|
|
643
|
-
# Set x-goog-api-client
|
649
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
644
650
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
645
651
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
646
652
|
gapic_version: ::Google::Cloud::Vision::V1p4beta1::VERSION
|
653
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
647
654
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
648
655
|
|
649
656
|
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
|
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::V1p4beta1::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
|
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::V1p4beta1::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
|
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::V1p4beta1::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
|
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::V1p4beta1::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 = {}
|
@@ -1132,10 +1143,11 @@ module Google
|
|
1132
1143
|
# Customize the options with defaults
|
1133
1144
|
metadata = @config.rpcs.update_product.metadata.to_h
|
1134
1145
|
|
1135
|
-
# Set x-goog-api-client
|
1146
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1136
1147
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1137
1148
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1138
1149
|
gapic_version: ::Google::Cloud::Vision::V1p4beta1::VERSION
|
1150
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1139
1151
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1140
1152
|
|
1141
1153
|
header_params = {}
|
@@ -1224,10 +1236,11 @@ module Google
|
|
1224
1236
|
# Customize the options with defaults
|
1225
1237
|
metadata = @config.rpcs.delete_product.metadata.to_h
|
1226
1238
|
|
1227
|
-
# Set x-goog-api-client
|
1239
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1228
1240
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1229
1241
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1230
1242
|
gapic_version: ::Google::Cloud::Vision::V1p4beta1::VERSION
|
1243
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1231
1244
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1232
1245
|
|
1233
1246
|
header_params = {}
|
@@ -1339,10 +1352,11 @@ module Google
|
|
1339
1352
|
# Customize the options with defaults
|
1340
1353
|
metadata = @config.rpcs.create_reference_image.metadata.to_h
|
1341
1354
|
|
1342
|
-
# Set x-goog-api-client
|
1355
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1343
1356
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1344
1357
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1345
1358
|
gapic_version: ::Google::Cloud::Vision::V1p4beta1::VERSION
|
1359
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1346
1360
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1347
1361
|
|
1348
1362
|
header_params = {}
|
@@ -1434,10 +1448,11 @@ module Google
|
|
1434
1448
|
# Customize the options with defaults
|
1435
1449
|
metadata = @config.rpcs.delete_reference_image.metadata.to_h
|
1436
1450
|
|
1437
|
-
# Set x-goog-api-client
|
1451
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1438
1452
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1439
1453
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1440
1454
|
gapic_version: ::Google::Cloud::Vision::V1p4beta1::VERSION
|
1455
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1441
1456
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1442
1457
|
|
1443
1458
|
header_params = {}
|
@@ -1539,10 +1554,11 @@ module Google
|
|
1539
1554
|
# Customize the options with defaults
|
1540
1555
|
metadata = @config.rpcs.list_reference_images.metadata.to_h
|
1541
1556
|
|
1542
|
-
# Set x-goog-api-client
|
1557
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1543
1558
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1544
1559
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1545
1560
|
gapic_version: ::Google::Cloud::Vision::V1p4beta1::VERSION
|
1561
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1546
1562
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1547
1563
|
|
1548
1564
|
header_params = {}
|
@@ -1633,10 +1649,11 @@ module Google
|
|
1633
1649
|
# Customize the options with defaults
|
1634
1650
|
metadata = @config.rpcs.get_reference_image.metadata.to_h
|
1635
1651
|
|
1636
|
-
# Set x-goog-api-client
|
1652
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1637
1653
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1638
1654
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1639
1655
|
gapic_version: ::Google::Cloud::Vision::V1p4beta1::VERSION
|
1656
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1640
1657
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1641
1658
|
|
1642
1659
|
header_params = {}
|
@@ -1733,10 +1750,11 @@ module Google
|
|
1733
1750
|
# Customize the options with defaults
|
1734
1751
|
metadata = @config.rpcs.add_product_to_product_set.metadata.to_h
|
1735
1752
|
|
1736
|
-
# Set x-goog-api-client
|
1753
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1737
1754
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1738
1755
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1739
1756
|
gapic_version: ::Google::Cloud::Vision::V1p4beta1::VERSION
|
1757
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1740
1758
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1741
1759
|
|
1742
1760
|
header_params = {}
|
@@ -1827,10 +1845,11 @@ module Google
|
|
1827
1845
|
# Customize the options with defaults
|
1828
1846
|
metadata = @config.rpcs.remove_product_from_product_set.metadata.to_h
|
1829
1847
|
|
1830
|
-
# Set x-goog-api-client
|
1848
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1831
1849
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1832
1850
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1833
1851
|
gapic_version: ::Google::Cloud::Vision::V1p4beta1::VERSION
|
1852
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1834
1853
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1835
1854
|
|
1836
1855
|
header_params = {}
|
@@ -1929,10 +1948,11 @@ module Google
|
|
1929
1948
|
# Customize the options with defaults
|
1930
1949
|
metadata = @config.rpcs.list_products_in_product_set.metadata.to_h
|
1931
1950
|
|
1932
|
-
# Set x-goog-api-client
|
1951
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1933
1952
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1934
1953
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1935
1954
|
gapic_version: ::Google::Cloud::Vision::V1p4beta1::VERSION
|
1955
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1936
1956
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1937
1957
|
|
1938
1958
|
header_params = {}
|
@@ -2036,10 +2056,11 @@ module Google
|
|
2036
2056
|
# Customize the options with defaults
|
2037
2057
|
metadata = @config.rpcs.import_product_sets.metadata.to_h
|
2038
2058
|
|
2039
|
-
# Set x-goog-api-client
|
2059
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2040
2060
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2041
2061
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2042
2062
|
gapic_version: ::Google::Cloud::Vision::V1p4beta1::VERSION
|
2063
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2043
2064
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2044
2065
|
|
2045
2066
|
header_params = {}
|
@@ -2162,10 +2183,11 @@ module Google
|
|
2162
2183
|
# Customize the options with defaults
|
2163
2184
|
metadata = @config.rpcs.purge_products.metadata.to_h
|
2164
2185
|
|
2165
|
-
# Set x-goog-api-client
|
2186
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2166
2187
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2167
2188
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2168
2189
|
gapic_version: ::Google::Cloud::Vision::V1p4beta1::VERSION
|
2190
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2169
2191
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2170
2192
|
|
2171
2193
|
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
|
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::V1p4beta1::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
|
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::V1p4beta1::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
|
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::V1p4beta1::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
|
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::V1p4beta1::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
|
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::V1p4beta1::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,
|
@@ -49,6 +49,9 @@ module Google
|
|
49
49
|
# `projects/*/locations/*/products/*/referenceImages/*`
|
50
50
|
#
|
51
51
|
class Client
|
52
|
+
# @private
|
53
|
+
API_VERSION = ""
|
54
|
+
|
52
55
|
# @private
|
53
56
|
DEFAULT_ENDPOINT_TEMPLATE = "vision.$UNIVERSE_DOMAIN$"
|
54
57
|
|
@@ -342,12 +345,13 @@ module Google
|
|
342
345
|
# Customize the options with defaults
|
343
346
|
call_metadata = @config.rpcs.create_product_set.metadata.to_h
|
344
347
|
|
345
|
-
# Set x-goog-api-client
|
348
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
346
349
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
347
350
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
348
351
|
gapic_version: ::Google::Cloud::Vision::V1p4beta1::VERSION,
|
349
352
|
transports_version_send: [:rest]
|
350
353
|
|
354
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
351
355
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
352
356
|
|
353
357
|
options.apply_defaults timeout: @config.rpcs.create_product_set.timeout,
|
@@ -435,12 +439,13 @@ module Google
|
|
435
439
|
# Customize the options with defaults
|
436
440
|
call_metadata = @config.rpcs.list_product_sets.metadata.to_h
|
437
441
|
|
438
|
-
# Set x-goog-api-client
|
442
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
439
443
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
440
444
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
441
445
|
gapic_version: ::Google::Cloud::Vision::V1p4beta1::VERSION,
|
442
446
|
transports_version_send: [:rest]
|
443
447
|
|
448
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
444
449
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
445
450
|
|
446
451
|
options.apply_defaults timeout: @config.rpcs.list_product_sets.timeout,
|
@@ -521,12 +526,13 @@ module Google
|
|
521
526
|
# Customize the options with defaults
|
522
527
|
call_metadata = @config.rpcs.get_product_set.metadata.to_h
|
523
528
|
|
524
|
-
# Set x-goog-api-client
|
529
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
525
530
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
526
531
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
527
532
|
gapic_version: ::Google::Cloud::Vision::V1p4beta1::VERSION,
|
528
533
|
transports_version_send: [:rest]
|
529
534
|
|
535
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
530
536
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
531
537
|
|
532
538
|
options.apply_defaults timeout: @config.rpcs.get_product_set.timeout,
|
@@ -611,12 +617,13 @@ module Google
|
|
611
617
|
# Customize the options with defaults
|
612
618
|
call_metadata = @config.rpcs.update_product_set.metadata.to_h
|
613
619
|
|
614
|
-
# Set x-goog-api-client
|
620
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
615
621
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
616
622
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
617
623
|
gapic_version: ::Google::Cloud::Vision::V1p4beta1::VERSION,
|
618
624
|
transports_version_send: [:rest]
|
619
625
|
|
626
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
620
627
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
621
628
|
|
622
629
|
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
|
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::V1p4beta1::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
|
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::V1p4beta1::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
|
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::V1p4beta1::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
|
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::V1p4beta1::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,
|
@@ -1068,12 +1079,13 @@ module Google
|
|
1068
1079
|
# Customize the options with defaults
|
1069
1080
|
call_metadata = @config.rpcs.update_product.metadata.to_h
|
1070
1081
|
|
1071
|
-
# Set x-goog-api-client
|
1082
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1072
1083
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1073
1084
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1074
1085
|
gapic_version: ::Google::Cloud::Vision::V1p4beta1::VERSION,
|
1075
1086
|
transports_version_send: [:rest]
|
1076
1087
|
|
1088
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1077
1089
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1078
1090
|
|
1079
1091
|
options.apply_defaults timeout: @config.rpcs.update_product.timeout,
|
@@ -1153,12 +1165,13 @@ module Google
|
|
1153
1165
|
# Customize the options with defaults
|
1154
1166
|
call_metadata = @config.rpcs.delete_product.metadata.to_h
|
1155
1167
|
|
1156
|
-
# Set x-goog-api-client
|
1168
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1157
1169
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1158
1170
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1159
1171
|
gapic_version: ::Google::Cloud::Vision::V1p4beta1::VERSION,
|
1160
1172
|
transports_version_send: [:rest]
|
1161
1173
|
|
1174
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1162
1175
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1163
1176
|
|
1164
1177
|
options.apply_defaults timeout: @config.rpcs.delete_product.timeout,
|
@@ -1261,12 +1274,13 @@ module Google
|
|
1261
1274
|
# Customize the options with defaults
|
1262
1275
|
call_metadata = @config.rpcs.create_reference_image.metadata.to_h
|
1263
1276
|
|
1264
|
-
# Set x-goog-api-client
|
1277
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1265
1278
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1266
1279
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1267
1280
|
gapic_version: ::Google::Cloud::Vision::V1p4beta1::VERSION,
|
1268
1281
|
transports_version_send: [:rest]
|
1269
1282
|
|
1283
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1270
1284
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1271
1285
|
|
1272
1286
|
options.apply_defaults timeout: @config.rpcs.create_reference_image.timeout,
|
@@ -1349,12 +1363,13 @@ module Google
|
|
1349
1363
|
# Customize the options with defaults
|
1350
1364
|
call_metadata = @config.rpcs.delete_reference_image.metadata.to_h
|
1351
1365
|
|
1352
|
-
# Set x-goog-api-client
|
1366
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1353
1367
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1354
1368
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1355
1369
|
gapic_version: ::Google::Cloud::Vision::V1p4beta1::VERSION,
|
1356
1370
|
transports_version_send: [:rest]
|
1357
1371
|
|
1372
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1358
1373
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1359
1374
|
|
1360
1375
|
options.apply_defaults timeout: @config.rpcs.delete_reference_image.timeout,
|
@@ -1447,12 +1462,13 @@ module Google
|
|
1447
1462
|
# Customize the options with defaults
|
1448
1463
|
call_metadata = @config.rpcs.list_reference_images.metadata.to_h
|
1449
1464
|
|
1450
|
-
# Set x-goog-api-client
|
1465
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1451
1466
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1452
1467
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1453
1468
|
gapic_version: ::Google::Cloud::Vision::V1p4beta1::VERSION,
|
1454
1469
|
transports_version_send: [:rest]
|
1455
1470
|
|
1471
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1456
1472
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1457
1473
|
|
1458
1474
|
options.apply_defaults timeout: @config.rpcs.list_reference_images.timeout,
|
@@ -1534,12 +1550,13 @@ module Google
|
|
1534
1550
|
# Customize the options with defaults
|
1535
1551
|
call_metadata = @config.rpcs.get_reference_image.metadata.to_h
|
1536
1552
|
|
1537
|
-
# Set x-goog-api-client
|
1553
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1538
1554
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1539
1555
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1540
1556
|
gapic_version: ::Google::Cloud::Vision::V1p4beta1::VERSION,
|
1541
1557
|
transports_version_send: [:rest]
|
1542
1558
|
|
1559
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1543
1560
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1544
1561
|
|
1545
1562
|
options.apply_defaults timeout: @config.rpcs.get_reference_image.timeout,
|
@@ -1627,12 +1644,13 @@ module Google
|
|
1627
1644
|
# Customize the options with defaults
|
1628
1645
|
call_metadata = @config.rpcs.add_product_to_product_set.metadata.to_h
|
1629
1646
|
|
1630
|
-
# Set x-goog-api-client
|
1647
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1631
1648
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1632
1649
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1633
1650
|
gapic_version: ::Google::Cloud::Vision::V1p4beta1::VERSION,
|
1634
1651
|
transports_version_send: [:rest]
|
1635
1652
|
|
1653
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1636
1654
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1637
1655
|
|
1638
1656
|
options.apply_defaults timeout: @config.rpcs.add_product_to_product_set.timeout,
|
@@ -1714,12 +1732,13 @@ module Google
|
|
1714
1732
|
# Customize the options with defaults
|
1715
1733
|
call_metadata = @config.rpcs.remove_product_from_product_set.metadata.to_h
|
1716
1734
|
|
1717
|
-
# Set x-goog-api-client
|
1735
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1718
1736
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1719
1737
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1720
1738
|
gapic_version: ::Google::Cloud::Vision::V1p4beta1::VERSION,
|
1721
1739
|
transports_version_send: [:rest]
|
1722
1740
|
|
1741
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1723
1742
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1724
1743
|
|
1725
1744
|
options.apply_defaults timeout: @config.rpcs.remove_product_from_product_set.timeout,
|
@@ -1809,12 +1828,13 @@ module Google
|
|
1809
1828
|
# Customize the options with defaults
|
1810
1829
|
call_metadata = @config.rpcs.list_products_in_product_set.metadata.to_h
|
1811
1830
|
|
1812
|
-
# Set x-goog-api-client
|
1831
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1813
1832
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1814
1833
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1815
1834
|
gapic_version: ::Google::Cloud::Vision::V1p4beta1::VERSION,
|
1816
1835
|
transports_version_send: [:rest]
|
1817
1836
|
|
1837
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1818
1838
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1819
1839
|
|
1820
1840
|
options.apply_defaults timeout: @config.rpcs.list_products_in_product_set.timeout,
|
@@ -1909,12 +1929,13 @@ module Google
|
|
1909
1929
|
# Customize the options with defaults
|
1910
1930
|
call_metadata = @config.rpcs.import_product_sets.metadata.to_h
|
1911
1931
|
|
1912
|
-
# Set x-goog-api-client
|
1932
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1913
1933
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1914
1934
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1915
1935
|
gapic_version: ::Google::Cloud::Vision::V1p4beta1::VERSION,
|
1916
1936
|
transports_version_send: [:rest]
|
1917
1937
|
|
1938
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1918
1939
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1919
1940
|
|
1920
1941
|
options.apply_defaults timeout: @config.rpcs.import_product_sets.timeout,
|
@@ -2028,12 +2049,13 @@ module Google
|
|
2028
2049
|
# Customize the options with defaults
|
2029
2050
|
call_metadata = @config.rpcs.purge_products.metadata.to_h
|
2030
2051
|
|
2031
|
-
# Set x-goog-api-client
|
2052
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2032
2053
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2033
2054
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2034
2055
|
gapic_version: ::Google::Cloud::Vision::V1p4beta1::VERSION,
|
2035
2056
|
transports_version_send: [:rest]
|
2036
2057
|
|
2058
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2037
2059
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2038
2060
|
|
2039
2061
|
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
|
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::V1p4beta1::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
|
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::V1p4beta1::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
|
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::V1p4beta1::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
|
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::V1p4beta1::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/v1p4beta1/product_search_service.proto for package 'google.cloud.vision.v1p4beta1'
|
3
3
|
# Original file comments:
|
4
|
-
# Copyright
|
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.
|
@@ -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
|
-
#
|
298
|
-
#
|
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
|
-
#
|
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
|
-
#
|
317
|
-
#
|
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'.
|
128
|
-
#
|
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-v1p4beta1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.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-
|
11
|
+
date: 2024-08-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|