google-cloud-vision-v1 0.11.1 → 0.12.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: 6341e277c30416ae67a66a2db042a929281cd6b53d6dcad253b82b2e841181ea
4
- data.tar.gz: 939fded39744121c62501bcc544aff487cea7886e5532c368252ca793ef6ed8e
3
+ metadata.gz: 5729acc4d540d8055498b926244b558ce721ca1b75424c82629a0c21829383c2
4
+ data.tar.gz: 4f3aab1c61292457b7e4d102746c8d0e2fb929a1039fc775c513251b950a5daf
5
5
  SHA512:
6
- metadata.gz: 9a1abaedb5b82ab28d8f12666b2e0fba89fca9d3dfa9732754ce49a00270fe1729ebbcf2dfa006e9fcc54bdb279ffe67b6695a4a66bfe2f2734798ee9c836664
7
- data.tar.gz: 98abefc37c5abc5c87efc6bb26554a85217c7f0258eea0153440f19093b69fb9029714f0bfa8cb101f1829072b78e96da98fd95db253de4e78edd2faf58a9d30
6
+ metadata.gz: ae16871a03bdd149a474ac48648941b1773db36b25635d02d57889e337df210c50506ab66c881553aae468e45daf3b27b05c8eca5a09f2341b11772a28a0852f
7
+ data.tar.gz: d7bdcffb2f7c306a6600a7d968ef979a56d774eeda707bd402431d0502fc232f3243642b2cef7ebaa0e892a343d0e67703dcbfd99b660b5e89875e372c664f3a
@@ -166,7 +166,8 @@ module Google
166
166
  credentials: credentials,
167
167
  endpoint: @config.endpoint,
168
168
  channel_args: @config.channel_args,
169
- interceptors: @config.interceptors
169
+ interceptors: @config.interceptors,
170
+ channel_pool_config: @config.channel_pool
170
171
  )
171
172
  end
172
173
 
@@ -696,6 +697,14 @@ module Google
696
697
  end
697
698
  end
698
699
 
700
+ ##
701
+ # Configuration for the channel pool
702
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
703
+ #
704
+ def channel_pool
705
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
706
+ end
707
+
699
708
  ##
700
709
  # Configuration RPC class for the ImageAnnotator API.
701
710
  #
@@ -93,7 +93,8 @@ module Google
93
93
  credentials: credentials,
94
94
  endpoint: @config.endpoint,
95
95
  channel_args: @config.channel_args,
96
- interceptors: @config.interceptors
96
+ interceptors: @config.interceptors,
97
+ channel_pool_config: @config.channel_pool
97
98
  )
98
99
 
99
100
  # Used by an LRO wrapper for some methods of this service
@@ -701,6 +702,14 @@ module Google
701
702
  end
702
703
  end
703
704
 
705
+ ##
706
+ # Configuration for the channel pool
707
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
708
+ #
709
+ def channel_pool
710
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
711
+ end
712
+
704
713
  ##
705
714
  # Configuration RPC class for the Operations API.
706
715
  #
@@ -210,6 +210,22 @@ module Google
210
210
  # @return [::Google::Cloud::Vision::V1::BatchAnnotateImagesResponse]
211
211
  #
212
212
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
213
+ #
214
+ # @example Basic example
215
+ # require "google/cloud/vision/v1"
216
+ #
217
+ # # Create a client object. The client can be reused for multiple calls.
218
+ # client = Google::Cloud::Vision::V1::ImageAnnotator::Rest::Client.new
219
+ #
220
+ # # Create a request. To set request fields, pass in keyword arguments.
221
+ # request = Google::Cloud::Vision::V1::BatchAnnotateImagesRequest.new
222
+ #
223
+ # # Call the batch_annotate_images method.
224
+ # result = client.batch_annotate_images request
225
+ #
226
+ # # The returned object is of type Google::Cloud::Vision::V1::BatchAnnotateImagesResponse.
227
+ # p result
228
+ #
213
229
  def batch_annotate_images request, options = nil
214
230
  raise ::ArgumentError, "request must be provided" if request.nil?
215
231
 
@@ -292,6 +308,22 @@ module Google
292
308
  # @return [::Google::Cloud::Vision::V1::BatchAnnotateFilesResponse]
293
309
  #
294
310
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
311
+ #
312
+ # @example Basic example
313
+ # require "google/cloud/vision/v1"
314
+ #
315
+ # # Create a client object. The client can be reused for multiple calls.
316
+ # client = Google::Cloud::Vision::V1::ImageAnnotator::Rest::Client.new
317
+ #
318
+ # # Create a request. To set request fields, pass in keyword arguments.
319
+ # request = Google::Cloud::Vision::V1::BatchAnnotateFilesRequest.new
320
+ #
321
+ # # Call the batch_annotate_files method.
322
+ # result = client.batch_annotate_files request
323
+ #
324
+ # # The returned object is of type Google::Cloud::Vision::V1::BatchAnnotateFilesResponse.
325
+ # p result
326
+ #
295
327
  def batch_annotate_files request, options = nil
296
328
  raise ::ArgumentError, "request must be provided" if request.nil?
297
329
 
@@ -377,6 +409,29 @@ module Google
377
409
  # @return [::Gapic::Operation]
378
410
  #
379
411
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
412
+ #
413
+ # @example Basic example
414
+ # require "google/cloud/vision/v1"
415
+ #
416
+ # # Create a client object. The client can be reused for multiple calls.
417
+ # client = Google::Cloud::Vision::V1::ImageAnnotator::Rest::Client.new
418
+ #
419
+ # # Create a request. To set request fields, pass in keyword arguments.
420
+ # request = Google::Cloud::Vision::V1::AsyncBatchAnnotateImagesRequest.new
421
+ #
422
+ # # Call the async_batch_annotate_images method.
423
+ # result = client.async_batch_annotate_images request
424
+ #
425
+ # # The returned object is of type Gapic::Operation. You can use it to
426
+ # # check the status of an operation, cancel it, or wait for results.
427
+ # # Here is how to wait for a response.
428
+ # result.wait_until_done! timeout: 60
429
+ # if result.response?
430
+ # p result.response
431
+ # else
432
+ # puts "No response received."
433
+ # end
434
+ #
380
435
  def async_batch_annotate_images request, options = nil
381
436
  raise ::ArgumentError, "request must be provided" if request.nil?
382
437
 
@@ -458,6 +513,29 @@ module Google
458
513
  # @return [::Gapic::Operation]
459
514
  #
460
515
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
516
+ #
517
+ # @example Basic example
518
+ # require "google/cloud/vision/v1"
519
+ #
520
+ # # Create a client object. The client can be reused for multiple calls.
521
+ # client = Google::Cloud::Vision::V1::ImageAnnotator::Rest::Client.new
522
+ #
523
+ # # Create a request. To set request fields, pass in keyword arguments.
524
+ # request = Google::Cloud::Vision::V1::AsyncBatchAnnotateFilesRequest.new
525
+ #
526
+ # # Call the async_batch_annotate_files method.
527
+ # result = client.async_batch_annotate_files request
528
+ #
529
+ # # The returned object is of type Gapic::Operation. You can use it to
530
+ # # check the status of an operation, cancel it, or wait for results.
531
+ # # Here is how to wait for a response.
532
+ # result.wait_until_done! timeout: 60
533
+ # if result.response?
534
+ # p result.response
535
+ # else
536
+ # puts "No response received."
537
+ # end
538
+ #
461
539
  def async_batch_annotate_files request, options = nil
462
540
  raise ::ArgumentError, "request must be provided" if request.nil?
463
541
 
@@ -136,6 +136,26 @@ module Google
136
136
  # @return [::Gapic::Operation]
137
137
  #
138
138
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
139
+ #
140
+ # @example Basic example
141
+ # require "google/longrunning"
142
+ #
143
+ # # Create a client object. The client can be reused for multiple calls.
144
+ # client = Google::Longrunning::Operations::Rest::Client.new
145
+ #
146
+ # # Create a request. To set request fields, pass in keyword arguments.
147
+ # request = Google::Longrunning::ListOperationsRequest.new
148
+ #
149
+ # # Call the list_operations method.
150
+ # result = client.list_operations request
151
+ #
152
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
153
+ # # over elements, and API calls will be issued to fetch pages as needed.
154
+ # result.each do |item|
155
+ # # Each element is of type ::Google::Longrunning::Operation.
156
+ # p item
157
+ # end
158
+ #
139
159
  def list_operations request, options = nil
140
160
  raise ::ArgumentError, "request must be provided" if request.nil?
141
161
 
@@ -201,6 +221,29 @@ module Google
201
221
  # @return [::Gapic::Operation]
202
222
  #
203
223
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
224
+ #
225
+ # @example Basic example
226
+ # require "google/longrunning"
227
+ #
228
+ # # Create a client object. The client can be reused for multiple calls.
229
+ # client = Google::Longrunning::Operations::Rest::Client.new
230
+ #
231
+ # # Create a request. To set request fields, pass in keyword arguments.
232
+ # request = Google::Longrunning::GetOperationRequest.new
233
+ #
234
+ # # Call the get_operation method.
235
+ # result = client.get_operation request
236
+ #
237
+ # # The returned object is of type Gapic::Operation. You can use it to
238
+ # # check the status of an operation, cancel it, or wait for results.
239
+ # # Here is how to wait for a response.
240
+ # result.wait_until_done! timeout: 60
241
+ # if result.response?
242
+ # p result.response
243
+ # else
244
+ # puts "No response received."
245
+ # end
246
+ #
204
247
  def get_operation request, options = nil
205
248
  raise ::ArgumentError, "request must be provided" if request.nil?
206
249
 
@@ -267,6 +310,22 @@ module Google
267
310
  # @return [::Google::Protobuf::Empty]
268
311
  #
269
312
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
313
+ #
314
+ # @example Basic example
315
+ # require "google/longrunning"
316
+ #
317
+ # # Create a client object. The client can be reused for multiple calls.
318
+ # client = Google::Longrunning::Operations::Rest::Client.new
319
+ #
320
+ # # Create a request. To set request fields, pass in keyword arguments.
321
+ # request = Google::Longrunning::DeleteOperationRequest.new
322
+ #
323
+ # # Call the delete_operation method.
324
+ # result = client.delete_operation request
325
+ #
326
+ # # The returned object is of type Google::Protobuf::Empty.
327
+ # p result
328
+ #
270
329
  def delete_operation request, options = nil
271
330
  raise ::ArgumentError, "request must be provided" if request.nil?
272
331
 
@@ -338,6 +397,22 @@ module Google
338
397
  # @return [::Google::Protobuf::Empty]
339
398
  #
340
399
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
400
+ #
401
+ # @example Basic example
402
+ # require "google/longrunning"
403
+ #
404
+ # # Create a client object. The client can be reused for multiple calls.
405
+ # client = Google::Longrunning::Operations::Rest::Client.new
406
+ #
407
+ # # Create a request. To set request fields, pass in keyword arguments.
408
+ # request = Google::Longrunning::CancelOperationRequest.new
409
+ #
410
+ # # Call the cancel_operation method.
411
+ # result = client.cancel_operation request
412
+ #
413
+ # # The returned object is of type Google::Protobuf::Empty.
414
+ # p result
415
+ #
341
416
  def cancel_operation request, options = nil
342
417
  raise ::ArgumentError, "request must be provided" if request.nil?
343
418
 
@@ -252,7 +252,8 @@ module Google
252
252
  credentials: credentials,
253
253
  endpoint: @config.endpoint,
254
254
  channel_args: @config.channel_args,
255
- interceptors: @config.interceptors
255
+ interceptors: @config.interceptors,
256
+ channel_pool_config: @config.channel_pool
256
257
  )
257
258
  end
258
259
 
@@ -2292,6 +2293,14 @@ module Google
2292
2293
  end
2293
2294
  end
2294
2295
 
2296
+ ##
2297
+ # Configuration for the channel pool
2298
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
2299
+ #
2300
+ def channel_pool
2301
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
2302
+ end
2303
+
2295
2304
  ##
2296
2305
  # Configuration RPC class for the ProductSearch API.
2297
2306
  #
@@ -93,7 +93,8 @@ module Google
93
93
  credentials: credentials,
94
94
  endpoint: @config.endpoint,
95
95
  channel_args: @config.channel_args,
96
- interceptors: @config.interceptors
96
+ interceptors: @config.interceptors,
97
+ channel_pool_config: @config.channel_pool
97
98
  )
98
99
 
99
100
  # Used by an LRO wrapper for some methods of this service
@@ -701,6 +702,14 @@ module Google
701
702
  end
702
703
  end
703
704
 
705
+ ##
706
+ # Configuration for the channel pool
707
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
708
+ #
709
+ def channel_pool
710
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
711
+ end
712
+
704
713
  ##
705
714
  # Configuration RPC class for the Operations API.
706
715
  #
@@ -297,6 +297,22 @@ module Google
297
297
  # @return [::Google::Cloud::Vision::V1::ProductSet]
298
298
  #
299
299
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
300
+ #
301
+ # @example Basic example
302
+ # require "google/cloud/vision/v1"
303
+ #
304
+ # # Create a client object. The client can be reused for multiple calls.
305
+ # client = Google::Cloud::Vision::V1::ProductSearch::Rest::Client.new
306
+ #
307
+ # # Create a request. To set request fields, pass in keyword arguments.
308
+ # request = Google::Cloud::Vision::V1::CreateProductSetRequest.new
309
+ #
310
+ # # Call the create_product_set method.
311
+ # result = client.create_product_set request
312
+ #
313
+ # # The returned object is of type Google::Cloud::Vision::V1::ProductSet.
314
+ # p result
315
+ #
300
316
  def create_product_set request, options = nil
301
317
  raise ::ArgumentError, "request must be provided" if request.nil?
302
318
 
@@ -370,6 +386,26 @@ module Google
370
386
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Vision::V1::ProductSet>]
371
387
  #
372
388
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
389
+ #
390
+ # @example Basic example
391
+ # require "google/cloud/vision/v1"
392
+ #
393
+ # # Create a client object. The client can be reused for multiple calls.
394
+ # client = Google::Cloud::Vision::V1::ProductSearch::Rest::Client.new
395
+ #
396
+ # # Create a request. To set request fields, pass in keyword arguments.
397
+ # request = Google::Cloud::Vision::V1::ListProductSetsRequest.new
398
+ #
399
+ # # Call the list_product_sets method.
400
+ # result = client.list_product_sets request
401
+ #
402
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
403
+ # # over elements, and API calls will be issued to fetch pages as needed.
404
+ # result.each do |item|
405
+ # # Each element is of type ::Google::Cloud::Vision::V1::ProductSet.
406
+ # p item
407
+ # end
408
+ #
373
409
  def list_product_sets request, options = nil
374
410
  raise ::ArgumentError, "request must be provided" if request.nil?
375
411
 
@@ -440,6 +476,22 @@ module Google
440
476
  # @return [::Google::Cloud::Vision::V1::ProductSet]
441
477
  #
442
478
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
479
+ #
480
+ # @example Basic example
481
+ # require "google/cloud/vision/v1"
482
+ #
483
+ # # Create a client object. The client can be reused for multiple calls.
484
+ # client = Google::Cloud::Vision::V1::ProductSearch::Rest::Client.new
485
+ #
486
+ # # Create a request. To set request fields, pass in keyword arguments.
487
+ # request = Google::Cloud::Vision::V1::GetProductSetRequest.new
488
+ #
489
+ # # Call the get_product_set method.
490
+ # result = client.get_product_set request
491
+ #
492
+ # # The returned object is of type Google::Cloud::Vision::V1::ProductSet.
493
+ # p result
494
+ #
443
495
  def get_product_set request, options = nil
444
496
  raise ::ArgumentError, "request must be provided" if request.nil?
445
497
 
@@ -514,6 +566,22 @@ module Google
514
566
  # @return [::Google::Cloud::Vision::V1::ProductSet]
515
567
  #
516
568
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
569
+ #
570
+ # @example Basic example
571
+ # require "google/cloud/vision/v1"
572
+ #
573
+ # # Create a client object. The client can be reused for multiple calls.
574
+ # client = Google::Cloud::Vision::V1::ProductSearch::Rest::Client.new
575
+ #
576
+ # # Create a request. To set request fields, pass in keyword arguments.
577
+ # request = Google::Cloud::Vision::V1::UpdateProductSetRequest.new
578
+ #
579
+ # # Call the update_product_set method.
580
+ # result = client.update_product_set request
581
+ #
582
+ # # The returned object is of type Google::Cloud::Vision::V1::ProductSet.
583
+ # p result
584
+ #
517
585
  def update_product_set request, options = nil
518
586
  raise ::ArgumentError, "request must be provided" if request.nil?
519
587
 
@@ -582,6 +650,22 @@ module Google
582
650
  # @return [::Google::Protobuf::Empty]
583
651
  #
584
652
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
653
+ #
654
+ # @example Basic example
655
+ # require "google/cloud/vision/v1"
656
+ #
657
+ # # Create a client object. The client can be reused for multiple calls.
658
+ # client = Google::Cloud::Vision::V1::ProductSearch::Rest::Client.new
659
+ #
660
+ # # Create a request. To set request fields, pass in keyword arguments.
661
+ # request = Google::Cloud::Vision::V1::DeleteProductSetRequest.new
662
+ #
663
+ # # Call the delete_product_set method.
664
+ # result = client.delete_product_set request
665
+ #
666
+ # # The returned object is of type Google::Protobuf::Empty.
667
+ # p result
668
+ #
585
669
  def delete_product_set request, options = nil
586
670
  raise ::ArgumentError, "request must be provided" if request.nil?
587
671
 
@@ -661,6 +745,22 @@ module Google
661
745
  # @return [::Google::Cloud::Vision::V1::Product]
662
746
  #
663
747
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
748
+ #
749
+ # @example Basic example
750
+ # require "google/cloud/vision/v1"
751
+ #
752
+ # # Create a client object. The client can be reused for multiple calls.
753
+ # client = Google::Cloud::Vision::V1::ProductSearch::Rest::Client.new
754
+ #
755
+ # # Create a request. To set request fields, pass in keyword arguments.
756
+ # request = Google::Cloud::Vision::V1::CreateProductRequest.new
757
+ #
758
+ # # Call the create_product method.
759
+ # result = client.create_product request
760
+ #
761
+ # # The returned object is of type Google::Cloud::Vision::V1::Product.
762
+ # p result
763
+ #
664
764
  def create_product request, options = nil
665
765
  raise ::ArgumentError, "request must be provided" if request.nil?
666
766
 
@@ -734,6 +834,26 @@ module Google
734
834
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Vision::V1::Product>]
735
835
  #
736
836
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
837
+ #
838
+ # @example Basic example
839
+ # require "google/cloud/vision/v1"
840
+ #
841
+ # # Create a client object. The client can be reused for multiple calls.
842
+ # client = Google::Cloud::Vision::V1::ProductSearch::Rest::Client.new
843
+ #
844
+ # # Create a request. To set request fields, pass in keyword arguments.
845
+ # request = Google::Cloud::Vision::V1::ListProductsRequest.new
846
+ #
847
+ # # Call the list_products method.
848
+ # result = client.list_products request
849
+ #
850
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
851
+ # # over elements, and API calls will be issued to fetch pages as needed.
852
+ # result.each do |item|
853
+ # # Each element is of type ::Google::Cloud::Vision::V1::Product.
854
+ # p item
855
+ # end
856
+ #
737
857
  def list_products request, options = nil
738
858
  raise ::ArgumentError, "request must be provided" if request.nil?
739
859
 
@@ -804,6 +924,22 @@ module Google
804
924
  # @return [::Google::Cloud::Vision::V1::Product]
805
925
  #
806
926
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
927
+ #
928
+ # @example Basic example
929
+ # require "google/cloud/vision/v1"
930
+ #
931
+ # # Create a client object. The client can be reused for multiple calls.
932
+ # client = Google::Cloud::Vision::V1::ProductSearch::Rest::Client.new
933
+ #
934
+ # # Create a request. To set request fields, pass in keyword arguments.
935
+ # request = Google::Cloud::Vision::V1::GetProductRequest.new
936
+ #
937
+ # # Call the get_product method.
938
+ # result = client.get_product request
939
+ #
940
+ # # The returned object is of type Google::Cloud::Vision::V1::Product.
941
+ # p result
942
+ #
807
943
  def get_product request, options = nil
808
944
  raise ::ArgumentError, "request must be provided" if request.nil?
809
945
 
@@ -887,6 +1023,22 @@ module Google
887
1023
  # @return [::Google::Cloud::Vision::V1::Product]
888
1024
  #
889
1025
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1026
+ #
1027
+ # @example Basic example
1028
+ # require "google/cloud/vision/v1"
1029
+ #
1030
+ # # Create a client object. The client can be reused for multiple calls.
1031
+ # client = Google::Cloud::Vision::V1::ProductSearch::Rest::Client.new
1032
+ #
1033
+ # # Create a request. To set request fields, pass in keyword arguments.
1034
+ # request = Google::Cloud::Vision::V1::UpdateProductRequest.new
1035
+ #
1036
+ # # Call the update_product method.
1037
+ # result = client.update_product request
1038
+ #
1039
+ # # The returned object is of type Google::Cloud::Vision::V1::Product.
1040
+ # p result
1041
+ #
890
1042
  def update_product request, options = nil
891
1043
  raise ::ArgumentError, "request must be provided" if request.nil?
892
1044
 
@@ -956,6 +1108,22 @@ module Google
956
1108
  # @return [::Google::Protobuf::Empty]
957
1109
  #
958
1110
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1111
+ #
1112
+ # @example Basic example
1113
+ # require "google/cloud/vision/v1"
1114
+ #
1115
+ # # Create a client object. The client can be reused for multiple calls.
1116
+ # client = Google::Cloud::Vision::V1::ProductSearch::Rest::Client.new
1117
+ #
1118
+ # # Create a request. To set request fields, pass in keyword arguments.
1119
+ # request = Google::Cloud::Vision::V1::DeleteProductRequest.new
1120
+ #
1121
+ # # Call the delete_product method.
1122
+ # result = client.delete_product request
1123
+ #
1124
+ # # The returned object is of type Google::Protobuf::Empty.
1125
+ # p result
1126
+ #
959
1127
  def delete_product request, options = nil
960
1128
  raise ::ArgumentError, "request must be provided" if request.nil?
961
1129
 
@@ -1047,6 +1215,22 @@ module Google
1047
1215
  # @return [::Google::Cloud::Vision::V1::ReferenceImage]
1048
1216
  #
1049
1217
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1218
+ #
1219
+ # @example Basic example
1220
+ # require "google/cloud/vision/v1"
1221
+ #
1222
+ # # Create a client object. The client can be reused for multiple calls.
1223
+ # client = Google::Cloud::Vision::V1::ProductSearch::Rest::Client.new
1224
+ #
1225
+ # # Create a request. To set request fields, pass in keyword arguments.
1226
+ # request = Google::Cloud::Vision::V1::CreateReferenceImageRequest.new
1227
+ #
1228
+ # # Call the create_reference_image method.
1229
+ # result = client.create_reference_image request
1230
+ #
1231
+ # # The returned object is of type Google::Cloud::Vision::V1::ReferenceImage.
1232
+ # p result
1233
+ #
1050
1234
  def create_reference_image request, options = nil
1051
1235
  raise ::ArgumentError, "request must be provided" if request.nil?
1052
1236
 
@@ -1118,6 +1302,22 @@ module Google
1118
1302
  # @return [::Google::Protobuf::Empty]
1119
1303
  #
1120
1304
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1305
+ #
1306
+ # @example Basic example
1307
+ # require "google/cloud/vision/v1"
1308
+ #
1309
+ # # Create a client object. The client can be reused for multiple calls.
1310
+ # client = Google::Cloud::Vision::V1::ProductSearch::Rest::Client.new
1311
+ #
1312
+ # # Create a request. To set request fields, pass in keyword arguments.
1313
+ # request = Google::Cloud::Vision::V1::DeleteReferenceImageRequest.new
1314
+ #
1315
+ # # Call the delete_reference_image method.
1316
+ # result = client.delete_reference_image request
1317
+ #
1318
+ # # The returned object is of type Google::Protobuf::Empty.
1319
+ # p result
1320
+ #
1121
1321
  def delete_reference_image request, options = nil
1122
1322
  raise ::ArgumentError, "request must be provided" if request.nil?
1123
1323
 
@@ -1196,6 +1396,26 @@ module Google
1196
1396
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Vision::V1::ReferenceImage>]
1197
1397
  #
1198
1398
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1399
+ #
1400
+ # @example Basic example
1401
+ # require "google/cloud/vision/v1"
1402
+ #
1403
+ # # Create a client object. The client can be reused for multiple calls.
1404
+ # client = Google::Cloud::Vision::V1::ProductSearch::Rest::Client.new
1405
+ #
1406
+ # # Create a request. To set request fields, pass in keyword arguments.
1407
+ # request = Google::Cloud::Vision::V1::ListReferenceImagesRequest.new
1408
+ #
1409
+ # # Call the list_reference_images method.
1410
+ # result = client.list_reference_images request
1411
+ #
1412
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
1413
+ # # over elements, and API calls will be issued to fetch pages as needed.
1414
+ # result.each do |item|
1415
+ # # Each element is of type ::Google::Cloud::Vision::V1::ReferenceImage.
1416
+ # p item
1417
+ # end
1418
+ #
1199
1419
  def list_reference_images request, options = nil
1200
1420
  raise ::ArgumentError, "request must be provided" if request.nil?
1201
1421
 
@@ -1266,6 +1486,22 @@ module Google
1266
1486
  # @return [::Google::Cloud::Vision::V1::ReferenceImage]
1267
1487
  #
1268
1488
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1489
+ #
1490
+ # @example Basic example
1491
+ # require "google/cloud/vision/v1"
1492
+ #
1493
+ # # Create a client object. The client can be reused for multiple calls.
1494
+ # client = Google::Cloud::Vision::V1::ProductSearch::Rest::Client.new
1495
+ #
1496
+ # # Create a request. To set request fields, pass in keyword arguments.
1497
+ # request = Google::Cloud::Vision::V1::GetReferenceImageRequest.new
1498
+ #
1499
+ # # Call the get_reference_image method.
1500
+ # result = client.get_reference_image request
1501
+ #
1502
+ # # The returned object is of type Google::Cloud::Vision::V1::ReferenceImage.
1503
+ # p result
1504
+ #
1269
1505
  def get_reference_image request, options = nil
1270
1506
  raise ::ArgumentError, "request must be provided" if request.nil?
1271
1507
 
@@ -1343,6 +1579,22 @@ module Google
1343
1579
  # @return [::Google::Protobuf::Empty]
1344
1580
  #
1345
1581
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1582
+ #
1583
+ # @example Basic example
1584
+ # require "google/cloud/vision/v1"
1585
+ #
1586
+ # # Create a client object. The client can be reused for multiple calls.
1587
+ # client = Google::Cloud::Vision::V1::ProductSearch::Rest::Client.new
1588
+ #
1589
+ # # Create a request. To set request fields, pass in keyword arguments.
1590
+ # request = Google::Cloud::Vision::V1::AddProductToProductSetRequest.new
1591
+ #
1592
+ # # Call the add_product_to_product_set method.
1593
+ # result = client.add_product_to_product_set request
1594
+ #
1595
+ # # The returned object is of type Google::Protobuf::Empty.
1596
+ # p result
1597
+ #
1346
1598
  def add_product_to_product_set request, options = nil
1347
1599
  raise ::ArgumentError, "request must be provided" if request.nil?
1348
1600
 
@@ -1413,6 +1665,22 @@ module Google
1413
1665
  # @return [::Google::Protobuf::Empty]
1414
1666
  #
1415
1667
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1668
+ #
1669
+ # @example Basic example
1670
+ # require "google/cloud/vision/v1"
1671
+ #
1672
+ # # Create a client object. The client can be reused for multiple calls.
1673
+ # client = Google::Cloud::Vision::V1::ProductSearch::Rest::Client.new
1674
+ #
1675
+ # # Create a request. To set request fields, pass in keyword arguments.
1676
+ # request = Google::Cloud::Vision::V1::RemoveProductFromProductSetRequest.new
1677
+ #
1678
+ # # Call the remove_product_from_product_set method.
1679
+ # result = client.remove_product_from_product_set request
1680
+ #
1681
+ # # The returned object is of type Google::Protobuf::Empty.
1682
+ # p result
1683
+ #
1416
1684
  def remove_product_from_product_set request, options = nil
1417
1685
  raise ::ArgumentError, "request must be provided" if request.nil?
1418
1686
 
@@ -1488,6 +1756,26 @@ module Google
1488
1756
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Vision::V1::Product>]
1489
1757
  #
1490
1758
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1759
+ #
1760
+ # @example Basic example
1761
+ # require "google/cloud/vision/v1"
1762
+ #
1763
+ # # Create a client object. The client can be reused for multiple calls.
1764
+ # client = Google::Cloud::Vision::V1::ProductSearch::Rest::Client.new
1765
+ #
1766
+ # # Create a request. To set request fields, pass in keyword arguments.
1767
+ # request = Google::Cloud::Vision::V1::ListProductsInProductSetRequest.new
1768
+ #
1769
+ # # Call the list_products_in_product_set method.
1770
+ # result = client.list_products_in_product_set request
1771
+ #
1772
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
1773
+ # # over elements, and API calls will be issued to fetch pages as needed.
1774
+ # result.each do |item|
1775
+ # # Each element is of type ::Google::Cloud::Vision::V1::Product.
1776
+ # p item
1777
+ # end
1778
+ #
1491
1779
  def list_products_in_product_set request, options = nil
1492
1780
  raise ::ArgumentError, "request must be provided" if request.nil?
1493
1781
 
@@ -1565,6 +1853,29 @@ module Google
1565
1853
  # @return [::Gapic::Operation]
1566
1854
  #
1567
1855
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1856
+ #
1857
+ # @example Basic example
1858
+ # require "google/cloud/vision/v1"
1859
+ #
1860
+ # # Create a client object. The client can be reused for multiple calls.
1861
+ # client = Google::Cloud::Vision::V1::ProductSearch::Rest::Client.new
1862
+ #
1863
+ # # Create a request. To set request fields, pass in keyword arguments.
1864
+ # request = Google::Cloud::Vision::V1::ImportProductSetsRequest.new
1865
+ #
1866
+ # # Call the import_product_sets method.
1867
+ # result = client.import_product_sets request
1868
+ #
1869
+ # # The returned object is of type Gapic::Operation. You can use it to
1870
+ # # check the status of an operation, cancel it, or wait for results.
1871
+ # # Here is how to wait for a response.
1872
+ # result.wait_until_done! timeout: 60
1873
+ # if result.response?
1874
+ # p result.response
1875
+ # else
1876
+ # puts "No response received."
1877
+ # end
1878
+ #
1568
1879
  def import_product_sets request, options = nil
1569
1880
  raise ::ArgumentError, "request must be provided" if request.nil?
1570
1881
 
@@ -1661,6 +1972,29 @@ module Google
1661
1972
  # @return [::Gapic::Operation]
1662
1973
  #
1663
1974
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1975
+ #
1976
+ # @example Basic example
1977
+ # require "google/cloud/vision/v1"
1978
+ #
1979
+ # # Create a client object. The client can be reused for multiple calls.
1980
+ # client = Google::Cloud::Vision::V1::ProductSearch::Rest::Client.new
1981
+ #
1982
+ # # Create a request. To set request fields, pass in keyword arguments.
1983
+ # request = Google::Cloud::Vision::V1::PurgeProductsRequest.new
1984
+ #
1985
+ # # Call the purge_products method.
1986
+ # result = client.purge_products request
1987
+ #
1988
+ # # The returned object is of type Gapic::Operation. You can use it to
1989
+ # # check the status of an operation, cancel it, or wait for results.
1990
+ # # Here is how to wait for a response.
1991
+ # result.wait_until_done! timeout: 60
1992
+ # if result.response?
1993
+ # p result.response
1994
+ # else
1995
+ # puts "No response received."
1996
+ # end
1997
+ #
1664
1998
  def purge_products request, options = nil
1665
1999
  raise ::ArgumentError, "request must be provided" if request.nil?
1666
2000
 
@@ -136,6 +136,26 @@ module Google
136
136
  # @return [::Gapic::Operation]
137
137
  #
138
138
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
139
+ #
140
+ # @example Basic example
141
+ # require "google/longrunning"
142
+ #
143
+ # # Create a client object. The client can be reused for multiple calls.
144
+ # client = Google::Longrunning::Operations::Rest::Client.new
145
+ #
146
+ # # Create a request. To set request fields, pass in keyword arguments.
147
+ # request = Google::Longrunning::ListOperationsRequest.new
148
+ #
149
+ # # Call the list_operations method.
150
+ # result = client.list_operations request
151
+ #
152
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
153
+ # # over elements, and API calls will be issued to fetch pages as needed.
154
+ # result.each do |item|
155
+ # # Each element is of type ::Google::Longrunning::Operation.
156
+ # p item
157
+ # end
158
+ #
139
159
  def list_operations request, options = nil
140
160
  raise ::ArgumentError, "request must be provided" if request.nil?
141
161
 
@@ -201,6 +221,29 @@ module Google
201
221
  # @return [::Gapic::Operation]
202
222
  #
203
223
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
224
+ #
225
+ # @example Basic example
226
+ # require "google/longrunning"
227
+ #
228
+ # # Create a client object. The client can be reused for multiple calls.
229
+ # client = Google::Longrunning::Operations::Rest::Client.new
230
+ #
231
+ # # Create a request. To set request fields, pass in keyword arguments.
232
+ # request = Google::Longrunning::GetOperationRequest.new
233
+ #
234
+ # # Call the get_operation method.
235
+ # result = client.get_operation request
236
+ #
237
+ # # The returned object is of type Gapic::Operation. You can use it to
238
+ # # check the status of an operation, cancel it, or wait for results.
239
+ # # Here is how to wait for a response.
240
+ # result.wait_until_done! timeout: 60
241
+ # if result.response?
242
+ # p result.response
243
+ # else
244
+ # puts "No response received."
245
+ # end
246
+ #
204
247
  def get_operation request, options = nil
205
248
  raise ::ArgumentError, "request must be provided" if request.nil?
206
249
 
@@ -267,6 +310,22 @@ module Google
267
310
  # @return [::Google::Protobuf::Empty]
268
311
  #
269
312
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
313
+ #
314
+ # @example Basic example
315
+ # require "google/longrunning"
316
+ #
317
+ # # Create a client object. The client can be reused for multiple calls.
318
+ # client = Google::Longrunning::Operations::Rest::Client.new
319
+ #
320
+ # # Create a request. To set request fields, pass in keyword arguments.
321
+ # request = Google::Longrunning::DeleteOperationRequest.new
322
+ #
323
+ # # Call the delete_operation method.
324
+ # result = client.delete_operation request
325
+ #
326
+ # # The returned object is of type Google::Protobuf::Empty.
327
+ # p result
328
+ #
270
329
  def delete_operation request, options = nil
271
330
  raise ::ArgumentError, "request must be provided" if request.nil?
272
331
 
@@ -338,6 +397,22 @@ module Google
338
397
  # @return [::Google::Protobuf::Empty]
339
398
  #
340
399
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
400
+ #
401
+ # @example Basic example
402
+ # require "google/longrunning"
403
+ #
404
+ # # Create a client object. The client can be reused for multiple calls.
405
+ # client = Google::Longrunning::Operations::Rest::Client.new
406
+ #
407
+ # # Create a request. To set request fields, pass in keyword arguments.
408
+ # request = Google::Longrunning::CancelOperationRequest.new
409
+ #
410
+ # # Call the cancel_operation method.
411
+ # result = client.cancel_operation request
412
+ #
413
+ # # The returned object is of type Google::Protobuf::Empty.
414
+ # p result
415
+ #
341
416
  def cancel_operation request, options = nil
342
417
  raise ::ArgumentError, "request must be provided" if request.nil?
343
418
 
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Vision
23
23
  module V1
24
- VERSION = "0.11.1"
24
+ VERSION = "0.12.0"
25
25
  end
26
26
  end
27
27
  end
@@ -66,6 +66,20 @@ module Google
66
66
  # a non-empty value will be returned. The user will not be aware of what
67
67
  # non-empty value to expect.
68
68
  NON_EMPTY_DEFAULT = 7
69
+
70
+ # Denotes that the field in a resource (a message annotated with
71
+ # google.api.resource) is used in the resource name to uniquely identify the
72
+ # resource. For AIP-compliant APIs, this should only be applied to the
73
+ # `name` field on the resource.
74
+ #
75
+ # This behavior should not be applied to references to other resources within
76
+ # the message.
77
+ #
78
+ # The identifier field of resources often have different field behavior
79
+ # depending on the request it is embedded in (e.g. for Create methods name
80
+ # is optional and unused, while for Update methods it is required). Instead
81
+ # of method-specific annotations, only `IDENTIFIER` is required.
82
+ IDENTIFIER = 8
69
83
  end
70
84
  end
71
85
  end
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.11.1
4
+ version: 0.12.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: 2023-06-06 00:00:00.000000000 Z
11
+ date: 2023-09-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.19.1
19
+ version: 0.20.0
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 0.19.1
29
+ version: 0.20.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -242,7 +242,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
242
242
  - !ruby/object:Gem::Version
243
243
  version: '0'
244
244
  requirements: []
245
- rubygems_version: 3.4.2
245
+ rubygems_version: 3.4.19
246
246
  signing_key:
247
247
  specification_version: 4
248
248
  summary: Integrates Google Vision features, including image labeling, face, logo,