google-cloud-vision-v1p3beta1 0.10.1 → 0.11.0
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/v1p3beta1/image_annotator/client.rb +10 -1
- data/lib/google/cloud/vision/v1p3beta1/image_annotator/operations.rb +10 -1
- data/lib/google/cloud/vision/v1p3beta1/image_annotator/rest/client.rb +39 -0
- data/lib/google/cloud/vision/v1p3beta1/image_annotator/rest/operations.rb +75 -0
- data/lib/google/cloud/vision/v1p3beta1/product_search/client.rb +10 -1
- data/lib/google/cloud/vision/v1p3beta1/product_search/operations.rb +10 -1
- data/lib/google/cloud/vision/v1p3beta1/product_search/rest/client.rb +311 -0
- data/lib/google/cloud/vision/v1p3beta1/product_search/rest/operations.rb +75 -0
- data/lib/google/cloud/vision/v1p3beta1/version.rb +1 -1
- data/proto_docs/google/api/field_behavior.rb +14 -0
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5b304dc267a69f8d6cd0e3e17874bffe58aa3e5ab5cecd43fa384e207d0d9f87
|
4
|
+
data.tar.gz: 3399f8206d58222d179e6edc7dcb6fb1a0dded2a3e67cfbc25258e2491ac8b55
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 242049e5335938c0ee0194c775af6a8dc2ef79dcc033ba671dcce2dab4b94dc1a0cb738cdf0846ce0d89014fb6e0a87d04236460d665fa363939a4d44744bca9
|
7
|
+
data.tar.gz: 911b7147cbaf82899aa920ca7d2ba2493d0383abaffe2b144728f6b8ac95ecb38f3107ed37171dd019c2212000c1c742025c2aef062913e46964321d516c58a6
|
@@ -156,7 +156,8 @@ module Google
|
|
156
156
|
credentials: credentials,
|
157
157
|
endpoint: @config.endpoint,
|
158
158
|
channel_args: @config.channel_args,
|
159
|
-
interceptors: @config.interceptors
|
159
|
+
interceptors: @config.interceptors,
|
160
|
+
channel_pool_config: @config.channel_pool
|
160
161
|
)
|
161
162
|
end
|
162
163
|
|
@@ -455,6 +456,14 @@ module Google
|
|
455
456
|
end
|
456
457
|
end
|
457
458
|
|
459
|
+
##
|
460
|
+
# Configuration for the channel pool
|
461
|
+
# @return [::Gapic::ServiceStub::ChannelPool::Configuration]
|
462
|
+
#
|
463
|
+
def channel_pool
|
464
|
+
@channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
|
465
|
+
end
|
466
|
+
|
458
467
|
##
|
459
468
|
# Configuration RPC class for the ImageAnnotator API.
|
460
469
|
#
|
@@ -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
|
#
|
@@ -187,6 +187,22 @@ module Google
|
|
187
187
|
# @return [::Google::Cloud::Vision::V1p3beta1::BatchAnnotateImagesResponse]
|
188
188
|
#
|
189
189
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
190
|
+
#
|
191
|
+
# @example Basic example
|
192
|
+
# require "google/cloud/vision/v1p3beta1"
|
193
|
+
#
|
194
|
+
# # Create a client object. The client can be reused for multiple calls.
|
195
|
+
# client = Google::Cloud::Vision::V1p3beta1::ImageAnnotator::Rest::Client.new
|
196
|
+
#
|
197
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
198
|
+
# request = Google::Cloud::Vision::V1p3beta1::BatchAnnotateImagesRequest.new
|
199
|
+
#
|
200
|
+
# # Call the batch_annotate_images method.
|
201
|
+
# result = client.batch_annotate_images request
|
202
|
+
#
|
203
|
+
# # The returned object is of type Google::Cloud::Vision::V1p3beta1::BatchAnnotateImagesResponse.
|
204
|
+
# p result
|
205
|
+
#
|
190
206
|
def batch_annotate_images request, options = nil
|
191
207
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
192
208
|
|
@@ -254,6 +270,29 @@ module Google
|
|
254
270
|
# @return [::Gapic::Operation]
|
255
271
|
#
|
256
272
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
273
|
+
#
|
274
|
+
# @example Basic example
|
275
|
+
# require "google/cloud/vision/v1p3beta1"
|
276
|
+
#
|
277
|
+
# # Create a client object. The client can be reused for multiple calls.
|
278
|
+
# client = Google::Cloud::Vision::V1p3beta1::ImageAnnotator::Rest::Client.new
|
279
|
+
#
|
280
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
281
|
+
# request = Google::Cloud::Vision::V1p3beta1::AsyncBatchAnnotateFilesRequest.new
|
282
|
+
#
|
283
|
+
# # Call the async_batch_annotate_files method.
|
284
|
+
# result = client.async_batch_annotate_files request
|
285
|
+
#
|
286
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
287
|
+
# # check the status of an operation, cancel it, or wait for results.
|
288
|
+
# # Here is how to wait for a response.
|
289
|
+
# result.wait_until_done! timeout: 60
|
290
|
+
# if result.response?
|
291
|
+
# p result.response
|
292
|
+
# else
|
293
|
+
# puts "No response received."
|
294
|
+
# end
|
295
|
+
#
|
257
296
|
def async_batch_annotate_files request, options = nil
|
258
297
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
259
298
|
|
@@ -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
|
|
@@ -247,7 +247,8 @@ module Google
|
|
247
247
|
credentials: credentials,
|
248
248
|
endpoint: @config.endpoint,
|
249
249
|
channel_args: @config.channel_args,
|
250
|
-
interceptors: @config.interceptors
|
250
|
+
interceptors: @config.interceptors,
|
251
|
+
channel_pool_config: @config.channel_pool
|
251
252
|
)
|
252
253
|
end
|
253
254
|
|
@@ -2178,6 +2179,14 @@ module Google
|
|
2178
2179
|
end
|
2179
2180
|
end
|
2180
2181
|
|
2182
|
+
##
|
2183
|
+
# Configuration for the channel pool
|
2184
|
+
# @return [::Gapic::ServiceStub::ChannelPool::Configuration]
|
2185
|
+
#
|
2186
|
+
def channel_pool
|
2187
|
+
@channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
|
2188
|
+
end
|
2189
|
+
|
2181
2190
|
##
|
2182
2191
|
# Configuration RPC class for the ProductSearch API.
|
2183
2192
|
#
|
@@ -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
|
#
|
@@ -292,6 +292,22 @@ module Google
|
|
292
292
|
# @return [::Google::Cloud::Vision::V1p3beta1::ProductSet]
|
293
293
|
#
|
294
294
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
295
|
+
#
|
296
|
+
# @example Basic example
|
297
|
+
# require "google/cloud/vision/v1p3beta1"
|
298
|
+
#
|
299
|
+
# # Create a client object. The client can be reused for multiple calls.
|
300
|
+
# client = Google::Cloud::Vision::V1p3beta1::ProductSearch::Rest::Client.new
|
301
|
+
#
|
302
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
303
|
+
# request = Google::Cloud::Vision::V1p3beta1::CreateProductSetRequest.new
|
304
|
+
#
|
305
|
+
# # Call the create_product_set method.
|
306
|
+
# result = client.create_product_set request
|
307
|
+
#
|
308
|
+
# # The returned object is of type Google::Cloud::Vision::V1p3beta1::ProductSet.
|
309
|
+
# p result
|
310
|
+
#
|
295
311
|
def create_product_set request, options = nil
|
296
312
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
297
313
|
|
@@ -365,6 +381,26 @@ module Google
|
|
365
381
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Vision::V1p3beta1::ProductSet>]
|
366
382
|
#
|
367
383
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
384
|
+
#
|
385
|
+
# @example Basic example
|
386
|
+
# require "google/cloud/vision/v1p3beta1"
|
387
|
+
#
|
388
|
+
# # Create a client object. The client can be reused for multiple calls.
|
389
|
+
# client = Google::Cloud::Vision::V1p3beta1::ProductSearch::Rest::Client.new
|
390
|
+
#
|
391
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
392
|
+
# request = Google::Cloud::Vision::V1p3beta1::ListProductSetsRequest.new
|
393
|
+
#
|
394
|
+
# # Call the list_product_sets method.
|
395
|
+
# result = client.list_product_sets request
|
396
|
+
#
|
397
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
398
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
399
|
+
# result.each do |item|
|
400
|
+
# # Each element is of type ::Google::Cloud::Vision::V1p3beta1::ProductSet.
|
401
|
+
# p item
|
402
|
+
# end
|
403
|
+
#
|
368
404
|
def list_product_sets request, options = nil
|
369
405
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
370
406
|
|
@@ -435,6 +471,22 @@ module Google
|
|
435
471
|
# @return [::Google::Cloud::Vision::V1p3beta1::ProductSet]
|
436
472
|
#
|
437
473
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
474
|
+
#
|
475
|
+
# @example Basic example
|
476
|
+
# require "google/cloud/vision/v1p3beta1"
|
477
|
+
#
|
478
|
+
# # Create a client object. The client can be reused for multiple calls.
|
479
|
+
# client = Google::Cloud::Vision::V1p3beta1::ProductSearch::Rest::Client.new
|
480
|
+
#
|
481
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
482
|
+
# request = Google::Cloud::Vision::V1p3beta1::GetProductSetRequest.new
|
483
|
+
#
|
484
|
+
# # Call the get_product_set method.
|
485
|
+
# result = client.get_product_set request
|
486
|
+
#
|
487
|
+
# # The returned object is of type Google::Cloud::Vision::V1p3beta1::ProductSet.
|
488
|
+
# p result
|
489
|
+
#
|
438
490
|
def get_product_set request, options = nil
|
439
491
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
440
492
|
|
@@ -509,6 +561,22 @@ module Google
|
|
509
561
|
# @return [::Google::Cloud::Vision::V1p3beta1::ProductSet]
|
510
562
|
#
|
511
563
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
564
|
+
#
|
565
|
+
# @example Basic example
|
566
|
+
# require "google/cloud/vision/v1p3beta1"
|
567
|
+
#
|
568
|
+
# # Create a client object. The client can be reused for multiple calls.
|
569
|
+
# client = Google::Cloud::Vision::V1p3beta1::ProductSearch::Rest::Client.new
|
570
|
+
#
|
571
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
572
|
+
# request = Google::Cloud::Vision::V1p3beta1::UpdateProductSetRequest.new
|
573
|
+
#
|
574
|
+
# # Call the update_product_set method.
|
575
|
+
# result = client.update_product_set request
|
576
|
+
#
|
577
|
+
# # The returned object is of type Google::Cloud::Vision::V1p3beta1::ProductSet.
|
578
|
+
# p result
|
579
|
+
#
|
512
580
|
def update_product_set request, options = nil
|
513
581
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
514
582
|
|
@@ -581,6 +649,22 @@ module Google
|
|
581
649
|
# @return [::Google::Protobuf::Empty]
|
582
650
|
#
|
583
651
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
652
|
+
#
|
653
|
+
# @example Basic example
|
654
|
+
# require "google/cloud/vision/v1p3beta1"
|
655
|
+
#
|
656
|
+
# # Create a client object. The client can be reused for multiple calls.
|
657
|
+
# client = Google::Cloud::Vision::V1p3beta1::ProductSearch::Rest::Client.new
|
658
|
+
#
|
659
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
660
|
+
# request = Google::Cloud::Vision::V1p3beta1::DeleteProductSetRequest.new
|
661
|
+
#
|
662
|
+
# # Call the delete_product_set method.
|
663
|
+
# result = client.delete_product_set request
|
664
|
+
#
|
665
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
666
|
+
# p result
|
667
|
+
#
|
584
668
|
def delete_product_set request, options = nil
|
585
669
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
586
670
|
|
@@ -660,6 +744,22 @@ module Google
|
|
660
744
|
# @return [::Google::Cloud::Vision::V1p3beta1::Product]
|
661
745
|
#
|
662
746
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
747
|
+
#
|
748
|
+
# @example Basic example
|
749
|
+
# require "google/cloud/vision/v1p3beta1"
|
750
|
+
#
|
751
|
+
# # Create a client object. The client can be reused for multiple calls.
|
752
|
+
# client = Google::Cloud::Vision::V1p3beta1::ProductSearch::Rest::Client.new
|
753
|
+
#
|
754
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
755
|
+
# request = Google::Cloud::Vision::V1p3beta1::CreateProductRequest.new
|
756
|
+
#
|
757
|
+
# # Call the create_product method.
|
758
|
+
# result = client.create_product request
|
759
|
+
#
|
760
|
+
# # The returned object is of type Google::Cloud::Vision::V1p3beta1::Product.
|
761
|
+
# p result
|
762
|
+
#
|
663
763
|
def create_product request, options = nil
|
664
764
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
665
765
|
|
@@ -733,6 +833,26 @@ module Google
|
|
733
833
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Vision::V1p3beta1::Product>]
|
734
834
|
#
|
735
835
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
836
|
+
#
|
837
|
+
# @example Basic example
|
838
|
+
# require "google/cloud/vision/v1p3beta1"
|
839
|
+
#
|
840
|
+
# # Create a client object. The client can be reused for multiple calls.
|
841
|
+
# client = Google::Cloud::Vision::V1p3beta1::ProductSearch::Rest::Client.new
|
842
|
+
#
|
843
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
844
|
+
# request = Google::Cloud::Vision::V1p3beta1::ListProductsRequest.new
|
845
|
+
#
|
846
|
+
# # Call the list_products method.
|
847
|
+
# result = client.list_products request
|
848
|
+
#
|
849
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
850
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
851
|
+
# result.each do |item|
|
852
|
+
# # Each element is of type ::Google::Cloud::Vision::V1p3beta1::Product.
|
853
|
+
# p item
|
854
|
+
# end
|
855
|
+
#
|
736
856
|
def list_products request, options = nil
|
737
857
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
738
858
|
|
@@ -803,6 +923,22 @@ module Google
|
|
803
923
|
# @return [::Google::Cloud::Vision::V1p3beta1::Product]
|
804
924
|
#
|
805
925
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
926
|
+
#
|
927
|
+
# @example Basic example
|
928
|
+
# require "google/cloud/vision/v1p3beta1"
|
929
|
+
#
|
930
|
+
# # Create a client object. The client can be reused for multiple calls.
|
931
|
+
# client = Google::Cloud::Vision::V1p3beta1::ProductSearch::Rest::Client.new
|
932
|
+
#
|
933
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
934
|
+
# request = Google::Cloud::Vision::V1p3beta1::GetProductRequest.new
|
935
|
+
#
|
936
|
+
# # Call the get_product method.
|
937
|
+
# result = client.get_product request
|
938
|
+
#
|
939
|
+
# # The returned object is of type Google::Cloud::Vision::V1p3beta1::Product.
|
940
|
+
# p result
|
941
|
+
#
|
806
942
|
def get_product request, options = nil
|
807
943
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
808
944
|
|
@@ -885,6 +1021,22 @@ module Google
|
|
885
1021
|
# @return [::Google::Cloud::Vision::V1p3beta1::Product]
|
886
1022
|
#
|
887
1023
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1024
|
+
#
|
1025
|
+
# @example Basic example
|
1026
|
+
# require "google/cloud/vision/v1p3beta1"
|
1027
|
+
#
|
1028
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1029
|
+
# client = Google::Cloud::Vision::V1p3beta1::ProductSearch::Rest::Client.new
|
1030
|
+
#
|
1031
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1032
|
+
# request = Google::Cloud::Vision::V1p3beta1::UpdateProductRequest.new
|
1033
|
+
#
|
1034
|
+
# # Call the update_product method.
|
1035
|
+
# result = client.update_product request
|
1036
|
+
#
|
1037
|
+
# # The returned object is of type Google::Cloud::Vision::V1p3beta1::Product.
|
1038
|
+
# p result
|
1039
|
+
#
|
888
1040
|
def update_product request, options = nil
|
889
1041
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
890
1042
|
|
@@ -958,6 +1110,22 @@ module Google
|
|
958
1110
|
# @return [::Google::Protobuf::Empty]
|
959
1111
|
#
|
960
1112
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1113
|
+
#
|
1114
|
+
# @example Basic example
|
1115
|
+
# require "google/cloud/vision/v1p3beta1"
|
1116
|
+
#
|
1117
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1118
|
+
# client = Google::Cloud::Vision::V1p3beta1::ProductSearch::Rest::Client.new
|
1119
|
+
#
|
1120
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1121
|
+
# request = Google::Cloud::Vision::V1p3beta1::DeleteProductRequest.new
|
1122
|
+
#
|
1123
|
+
# # Call the delete_product method.
|
1124
|
+
# result = client.delete_product request
|
1125
|
+
#
|
1126
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
1127
|
+
# p result
|
1128
|
+
#
|
961
1129
|
def delete_product request, options = nil
|
962
1130
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
963
1131
|
|
@@ -1049,6 +1217,22 @@ module Google
|
|
1049
1217
|
# @return [::Google::Cloud::Vision::V1p3beta1::ReferenceImage]
|
1050
1218
|
#
|
1051
1219
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1220
|
+
#
|
1221
|
+
# @example Basic example
|
1222
|
+
# require "google/cloud/vision/v1p3beta1"
|
1223
|
+
#
|
1224
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1225
|
+
# client = Google::Cloud::Vision::V1p3beta1::ProductSearch::Rest::Client.new
|
1226
|
+
#
|
1227
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1228
|
+
# request = Google::Cloud::Vision::V1p3beta1::CreateReferenceImageRequest.new
|
1229
|
+
#
|
1230
|
+
# # Call the create_reference_image method.
|
1231
|
+
# result = client.create_reference_image request
|
1232
|
+
#
|
1233
|
+
# # The returned object is of type Google::Cloud::Vision::V1p3beta1::ReferenceImage.
|
1234
|
+
# p result
|
1235
|
+
#
|
1052
1236
|
def create_reference_image request, options = nil
|
1053
1237
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1054
1238
|
|
@@ -1125,6 +1309,22 @@ module Google
|
|
1125
1309
|
# @return [::Google::Protobuf::Empty]
|
1126
1310
|
#
|
1127
1311
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1312
|
+
#
|
1313
|
+
# @example Basic example
|
1314
|
+
# require "google/cloud/vision/v1p3beta1"
|
1315
|
+
#
|
1316
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1317
|
+
# client = Google::Cloud::Vision::V1p3beta1::ProductSearch::Rest::Client.new
|
1318
|
+
#
|
1319
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1320
|
+
# request = Google::Cloud::Vision::V1p3beta1::DeleteReferenceImageRequest.new
|
1321
|
+
#
|
1322
|
+
# # Call the delete_reference_image method.
|
1323
|
+
# result = client.delete_reference_image request
|
1324
|
+
#
|
1325
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
1326
|
+
# p result
|
1327
|
+
#
|
1128
1328
|
def delete_reference_image request, options = nil
|
1129
1329
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1130
1330
|
|
@@ -1203,6 +1403,26 @@ module Google
|
|
1203
1403
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Vision::V1p3beta1::ReferenceImage>]
|
1204
1404
|
#
|
1205
1405
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1406
|
+
#
|
1407
|
+
# @example Basic example
|
1408
|
+
# require "google/cloud/vision/v1p3beta1"
|
1409
|
+
#
|
1410
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1411
|
+
# client = Google::Cloud::Vision::V1p3beta1::ProductSearch::Rest::Client.new
|
1412
|
+
#
|
1413
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1414
|
+
# request = Google::Cloud::Vision::V1p3beta1::ListReferenceImagesRequest.new
|
1415
|
+
#
|
1416
|
+
# # Call the list_reference_images method.
|
1417
|
+
# result = client.list_reference_images request
|
1418
|
+
#
|
1419
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
1420
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
1421
|
+
# result.each do |item|
|
1422
|
+
# # Each element is of type ::Google::Cloud::Vision::V1p3beta1::ReferenceImage.
|
1423
|
+
# p item
|
1424
|
+
# end
|
1425
|
+
#
|
1206
1426
|
def list_reference_images request, options = nil
|
1207
1427
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1208
1428
|
|
@@ -1274,6 +1494,22 @@ module Google
|
|
1274
1494
|
# @return [::Google::Cloud::Vision::V1p3beta1::ReferenceImage]
|
1275
1495
|
#
|
1276
1496
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1497
|
+
#
|
1498
|
+
# @example Basic example
|
1499
|
+
# require "google/cloud/vision/v1p3beta1"
|
1500
|
+
#
|
1501
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1502
|
+
# client = Google::Cloud::Vision::V1p3beta1::ProductSearch::Rest::Client.new
|
1503
|
+
#
|
1504
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1505
|
+
# request = Google::Cloud::Vision::V1p3beta1::GetReferenceImageRequest.new
|
1506
|
+
#
|
1507
|
+
# # Call the get_reference_image method.
|
1508
|
+
# result = client.get_reference_image request
|
1509
|
+
#
|
1510
|
+
# # The returned object is of type Google::Cloud::Vision::V1p3beta1::ReferenceImage.
|
1511
|
+
# p result
|
1512
|
+
#
|
1277
1513
|
def get_reference_image request, options = nil
|
1278
1514
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1279
1515
|
|
@@ -1351,6 +1587,22 @@ module Google
|
|
1351
1587
|
# @return [::Google::Protobuf::Empty]
|
1352
1588
|
#
|
1353
1589
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1590
|
+
#
|
1591
|
+
# @example Basic example
|
1592
|
+
# require "google/cloud/vision/v1p3beta1"
|
1593
|
+
#
|
1594
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1595
|
+
# client = Google::Cloud::Vision::V1p3beta1::ProductSearch::Rest::Client.new
|
1596
|
+
#
|
1597
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1598
|
+
# request = Google::Cloud::Vision::V1p3beta1::AddProductToProductSetRequest.new
|
1599
|
+
#
|
1600
|
+
# # Call the add_product_to_product_set method.
|
1601
|
+
# result = client.add_product_to_product_set request
|
1602
|
+
#
|
1603
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
1604
|
+
# p result
|
1605
|
+
#
|
1354
1606
|
def add_product_to_product_set request, options = nil
|
1355
1607
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1356
1608
|
|
@@ -1425,6 +1677,22 @@ module Google
|
|
1425
1677
|
# @return [::Google::Protobuf::Empty]
|
1426
1678
|
#
|
1427
1679
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1680
|
+
#
|
1681
|
+
# @example Basic example
|
1682
|
+
# require "google/cloud/vision/v1p3beta1"
|
1683
|
+
#
|
1684
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1685
|
+
# client = Google::Cloud::Vision::V1p3beta1::ProductSearch::Rest::Client.new
|
1686
|
+
#
|
1687
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1688
|
+
# request = Google::Cloud::Vision::V1p3beta1::RemoveProductFromProductSetRequest.new
|
1689
|
+
#
|
1690
|
+
# # Call the remove_product_from_product_set method.
|
1691
|
+
# result = client.remove_product_from_product_set request
|
1692
|
+
#
|
1693
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
1694
|
+
# p result
|
1695
|
+
#
|
1428
1696
|
def remove_product_from_product_set request, options = nil
|
1429
1697
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1430
1698
|
|
@@ -1500,6 +1768,26 @@ module Google
|
|
1500
1768
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Vision::V1p3beta1::Product>]
|
1501
1769
|
#
|
1502
1770
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1771
|
+
#
|
1772
|
+
# @example Basic example
|
1773
|
+
# require "google/cloud/vision/v1p3beta1"
|
1774
|
+
#
|
1775
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1776
|
+
# client = Google::Cloud::Vision::V1p3beta1::ProductSearch::Rest::Client.new
|
1777
|
+
#
|
1778
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1779
|
+
# request = Google::Cloud::Vision::V1p3beta1::ListProductsInProductSetRequest.new
|
1780
|
+
#
|
1781
|
+
# # Call the list_products_in_product_set method.
|
1782
|
+
# result = client.list_products_in_product_set request
|
1783
|
+
#
|
1784
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
1785
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
1786
|
+
# result.each do |item|
|
1787
|
+
# # Each element is of type ::Google::Cloud::Vision::V1p3beta1::Product.
|
1788
|
+
# p item
|
1789
|
+
# end
|
1790
|
+
#
|
1503
1791
|
def list_products_in_product_set request, options = nil
|
1504
1792
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1505
1793
|
|
@@ -1577,6 +1865,29 @@ module Google
|
|
1577
1865
|
# @return [::Gapic::Operation]
|
1578
1866
|
#
|
1579
1867
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1868
|
+
#
|
1869
|
+
# @example Basic example
|
1870
|
+
# require "google/cloud/vision/v1p3beta1"
|
1871
|
+
#
|
1872
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1873
|
+
# client = Google::Cloud::Vision::V1p3beta1::ProductSearch::Rest::Client.new
|
1874
|
+
#
|
1875
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1876
|
+
# request = Google::Cloud::Vision::V1p3beta1::ImportProductSetsRequest.new
|
1877
|
+
#
|
1878
|
+
# # Call the import_product_sets method.
|
1879
|
+
# result = client.import_product_sets request
|
1880
|
+
#
|
1881
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1882
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1883
|
+
# # Here is how to wait for a response.
|
1884
|
+
# result.wait_until_done! timeout: 60
|
1885
|
+
# if result.response?
|
1886
|
+
# p result.response
|
1887
|
+
# else
|
1888
|
+
# puts "No response received."
|
1889
|
+
# end
|
1890
|
+
#
|
1580
1891
|
def import_product_sets request, options = nil
|
1581
1892
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1582
1893
|
|
@@ -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
|
|
@@ -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-v1p3beta1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.11.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-
|
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
|
+
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.
|
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.
|
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,
|