google-cloud-vision-v1p3beta1 0.5.3 → 0.5.4
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/geometry_pb.rb +1 -1
- data/lib/google/cloud/vision/v1p3beta1/image_annotator/client.rb +37 -0
- data/lib/google/cloud/vision/v1p3beta1/image_annotator/operations.rb +115 -12
- data/lib/google/cloud/vision/v1p3beta1/image_annotator_pb.rb +2 -2
- data/lib/google/cloud/vision/v1p3beta1/image_annotator_services_pb.rb +1 -1
- data/lib/google/cloud/vision/v1p3beta1/product_search/client.rb +391 -54
- data/lib/google/cloud/vision/v1p3beta1/product_search/operations.rb +115 -12
- data/lib/google/cloud/vision/v1p3beta1/product_search_pb.rb +2 -2
- data/lib/google/cloud/vision/v1p3beta1/product_search_service_pb.rb +2 -2
- data/lib/google/cloud/vision/v1p3beta1/product_search_service_services_pb.rb +1 -1
- data/lib/google/cloud/vision/v1p3beta1/text_annotation_pb.rb +2 -2
- data/lib/google/cloud/vision/v1p3beta1/version.rb +1 -1
- data/lib/google/cloud/vision/v1p3beta1/web_detection_pb.rb +1 -1
- 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: 6f25309847ca05f1d772eb8912196dfc1e7df6531bc1efb91008d99a426885f0
|
4
|
+
data.tar.gz: f076f32a5f4e18f27d82d542f816a0fd084423a506630c5f0e7effacb1dc8ca9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8b6dfe0c7bb600ef54d63d7481f065e532e2b3e9a5310667fa992b30cdf86a81e30de7826f5891373d0ff067d1b4e2bff6c7d35c252c2beeeb8cfd8468102f2b
|
7
|
+
data.tar.gz: 301c983dbb9dc650346799573c7aae961d8885589928e32a713ce891f49ce26e7426147083c9e4cc56fa0d660d4a149a546b28a3e3704dd692b56a99d01375d2
|
@@ -1,9 +1,9 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/vision/v1p3beta1/geometry.proto
|
3
3
|
|
4
|
+
require 'google/api/annotations_pb'
|
4
5
|
require 'google/protobuf'
|
5
6
|
|
6
|
-
require 'google/api/annotations_pb'
|
7
7
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
8
8
|
add_file("google/cloud/vision/v1p3beta1/geometry.proto", :syntax => :proto3) do
|
9
9
|
add_message "google.cloud.vision.v1p3beta1.Vertex" do
|
@@ -197,6 +197,21 @@ module Google
|
|
197
197
|
#
|
198
198
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
199
199
|
#
|
200
|
+
# @example Basic example
|
201
|
+
# require "google/cloud/vision/v1p3beta1"
|
202
|
+
#
|
203
|
+
# # Create a client object. The client can be reused for multiple calls.
|
204
|
+
# client = Google::Cloud::Vision::V1p3beta1::ImageAnnotator::Client.new
|
205
|
+
#
|
206
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
207
|
+
# request = Google::Cloud::Vision::V1p3beta1::BatchAnnotateImagesRequest.new
|
208
|
+
#
|
209
|
+
# # Call the batch_annotate_images method.
|
210
|
+
# result = client.batch_annotate_images request
|
211
|
+
#
|
212
|
+
# # The returned object is of type Google::Cloud::Vision::V1p3beta1::BatchAnnotateImagesResponse.
|
213
|
+
# p result
|
214
|
+
#
|
200
215
|
def batch_annotate_images request, options = nil
|
201
216
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
202
217
|
|
@@ -264,6 +279,28 @@ module Google
|
|
264
279
|
#
|
265
280
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
266
281
|
#
|
282
|
+
# @example Basic example
|
283
|
+
# require "google/cloud/vision/v1p3beta1"
|
284
|
+
#
|
285
|
+
# # Create a client object. The client can be reused for multiple calls.
|
286
|
+
# client = Google::Cloud::Vision::V1p3beta1::ImageAnnotator::Client.new
|
287
|
+
#
|
288
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
289
|
+
# request = Google::Cloud::Vision::V1p3beta1::AsyncBatchAnnotateFilesRequest.new
|
290
|
+
#
|
291
|
+
# # Call the async_batch_annotate_files method.
|
292
|
+
# result = client.async_batch_annotate_files request
|
293
|
+
#
|
294
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
295
|
+
# # object to check the status of an operation, cancel it, or wait
|
296
|
+
# # for results. Here is how to block until completion:
|
297
|
+
# result.wait_until_done! timeout: 60
|
298
|
+
# if result.response?
|
299
|
+
# p result.response
|
300
|
+
# else
|
301
|
+
# puts "Error!"
|
302
|
+
# end
|
303
|
+
#
|
267
304
|
def async_batch_annotate_files request, options = nil
|
268
305
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
269
306
|
|
@@ -143,6 +143,27 @@ module Google
|
|
143
143
|
#
|
144
144
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
145
145
|
#
|
146
|
+
# @example Basic example
|
147
|
+
# require "google/longrunning"
|
148
|
+
#
|
149
|
+
# # Create a client object. The client can be reused for multiple calls.
|
150
|
+
# client = Google::Longrunning::Operations::Client.new
|
151
|
+
#
|
152
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
153
|
+
# request = Google::Longrunning::ListOperationsRequest.new
|
154
|
+
#
|
155
|
+
# # Call the list_operations method.
|
156
|
+
# result = client.list_operations request
|
157
|
+
#
|
158
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
159
|
+
# # iterate over all elements by calling #each, and the enumerable
|
160
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
161
|
+
# # methods are also available for managing paging directly.
|
162
|
+
# result.each do |response|
|
163
|
+
# # Each element is of type ::Google::Longrunning::Operation.
|
164
|
+
# p response
|
165
|
+
# end
|
166
|
+
#
|
146
167
|
def list_operations request, options = nil
|
147
168
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
148
169
|
|
@@ -160,9 +181,11 @@ module Google
|
|
160
181
|
gapic_version: ::Google::Cloud::Vision::V1p3beta1::VERSION
|
161
182
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
162
183
|
|
163
|
-
header_params = {
|
164
|
-
|
165
|
-
|
184
|
+
header_params = {}
|
185
|
+
if request.name
|
186
|
+
header_params["name"] = request.name
|
187
|
+
end
|
188
|
+
|
166
189
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
167
190
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
168
191
|
|
@@ -215,6 +238,28 @@ module Google
|
|
215
238
|
#
|
216
239
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
217
240
|
#
|
241
|
+
# @example Basic example
|
242
|
+
# require "google/longrunning"
|
243
|
+
#
|
244
|
+
# # Create a client object. The client can be reused for multiple calls.
|
245
|
+
# client = Google::Longrunning::Operations::Client.new
|
246
|
+
#
|
247
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
248
|
+
# request = Google::Longrunning::GetOperationRequest.new
|
249
|
+
#
|
250
|
+
# # Call the get_operation method.
|
251
|
+
# result = client.get_operation request
|
252
|
+
#
|
253
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
254
|
+
# # object to check the status of an operation, cancel it, or wait
|
255
|
+
# # for results. Here is how to block until completion:
|
256
|
+
# result.wait_until_done! timeout: 60
|
257
|
+
# if result.response?
|
258
|
+
# p result.response
|
259
|
+
# else
|
260
|
+
# puts "Error!"
|
261
|
+
# end
|
262
|
+
#
|
218
263
|
def get_operation request, options = nil
|
219
264
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
220
265
|
|
@@ -232,9 +277,11 @@ module Google
|
|
232
277
|
gapic_version: ::Google::Cloud::Vision::V1p3beta1::VERSION
|
233
278
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
234
279
|
|
235
|
-
header_params = {
|
236
|
-
|
237
|
-
|
280
|
+
header_params = {}
|
281
|
+
if request.name
|
282
|
+
header_params["name"] = request.name
|
283
|
+
end
|
284
|
+
|
238
285
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
239
286
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
240
287
|
|
@@ -287,6 +334,21 @@ module Google
|
|
287
334
|
#
|
288
335
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
289
336
|
#
|
337
|
+
# @example Basic example
|
338
|
+
# require "google/longrunning"
|
339
|
+
#
|
340
|
+
# # Create a client object. The client can be reused for multiple calls.
|
341
|
+
# client = Google::Longrunning::Operations::Client.new
|
342
|
+
#
|
343
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
344
|
+
# request = Google::Longrunning::DeleteOperationRequest.new
|
345
|
+
#
|
346
|
+
# # Call the delete_operation method.
|
347
|
+
# result = client.delete_operation request
|
348
|
+
#
|
349
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
350
|
+
# p result
|
351
|
+
#
|
290
352
|
def delete_operation request, options = nil
|
291
353
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
292
354
|
|
@@ -304,9 +366,11 @@ module Google
|
|
304
366
|
gapic_version: ::Google::Cloud::Vision::V1p3beta1::VERSION
|
305
367
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
306
368
|
|
307
|
-
header_params = {
|
308
|
-
|
309
|
-
|
369
|
+
header_params = {}
|
370
|
+
if request.name
|
371
|
+
header_params["name"] = request.name
|
372
|
+
end
|
373
|
+
|
310
374
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
311
375
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
312
376
|
|
@@ -364,6 +428,21 @@ module Google
|
|
364
428
|
#
|
365
429
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
366
430
|
#
|
431
|
+
# @example Basic example
|
432
|
+
# require "google/longrunning"
|
433
|
+
#
|
434
|
+
# # Create a client object. The client can be reused for multiple calls.
|
435
|
+
# client = Google::Longrunning::Operations::Client.new
|
436
|
+
#
|
437
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
438
|
+
# request = Google::Longrunning::CancelOperationRequest.new
|
439
|
+
#
|
440
|
+
# # Call the cancel_operation method.
|
441
|
+
# result = client.cancel_operation request
|
442
|
+
#
|
443
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
444
|
+
# p result
|
445
|
+
#
|
367
446
|
def cancel_operation request, options = nil
|
368
447
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
369
448
|
|
@@ -381,9 +460,11 @@ module Google
|
|
381
460
|
gapic_version: ::Google::Cloud::Vision::V1p3beta1::VERSION
|
382
461
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
383
462
|
|
384
|
-
header_params = {
|
385
|
-
|
386
|
-
|
463
|
+
header_params = {}
|
464
|
+
if request.name
|
465
|
+
header_params["name"] = request.name
|
466
|
+
end
|
467
|
+
|
387
468
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
388
469
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
389
470
|
|
@@ -444,6 +525,28 @@ module Google
|
|
444
525
|
#
|
445
526
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
446
527
|
#
|
528
|
+
# @example Basic example
|
529
|
+
# require "google/longrunning"
|
530
|
+
#
|
531
|
+
# # Create a client object. The client can be reused for multiple calls.
|
532
|
+
# client = Google::Longrunning::Operations::Client.new
|
533
|
+
#
|
534
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
535
|
+
# request = Google::Longrunning::WaitOperationRequest.new
|
536
|
+
#
|
537
|
+
# # Call the wait_operation method.
|
538
|
+
# result = client.wait_operation request
|
539
|
+
#
|
540
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
541
|
+
# # object to check the status of an operation, cancel it, or wait
|
542
|
+
# # for results. Here is how to block until completion:
|
543
|
+
# result.wait_until_done! timeout: 60
|
544
|
+
# if result.response?
|
545
|
+
# p result.response
|
546
|
+
# else
|
547
|
+
# puts "Error!"
|
548
|
+
# end
|
549
|
+
#
|
447
550
|
def wait_operation request, options = nil
|
448
551
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
449
552
|
|
@@ -1,8 +1,6 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/vision/v1p3beta1/image_annotator.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'google/api/annotations_pb'
|
7
5
|
require 'google/api/client_pb'
|
8
6
|
require 'google/api/field_behavior_pb'
|
@@ -15,6 +13,8 @@ require 'google/protobuf/timestamp_pb'
|
|
15
13
|
require 'google/rpc/status_pb'
|
16
14
|
require 'google/type/color_pb'
|
17
15
|
require 'google/type/latlng_pb'
|
16
|
+
require 'google/protobuf'
|
17
|
+
|
18
18
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
19
19
|
add_file("google/cloud/vision/v1p3beta1/image_annotator.proto", :syntax => :proto3) do
|
20
20
|
add_message "google.cloud.vision.v1p3beta1.Feature" do
|
@@ -302,6 +302,21 @@ module Google
|
|
302
302
|
#
|
303
303
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
304
304
|
#
|
305
|
+
# @example Basic example
|
306
|
+
# require "google/cloud/vision/v1p3beta1"
|
307
|
+
#
|
308
|
+
# # Create a client object. The client can be reused for multiple calls.
|
309
|
+
# client = Google::Cloud::Vision::V1p3beta1::ProductSearch::Client.new
|
310
|
+
#
|
311
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
312
|
+
# request = Google::Cloud::Vision::V1p3beta1::CreateProductSetRequest.new
|
313
|
+
#
|
314
|
+
# # Call the create_product_set method.
|
315
|
+
# result = client.create_product_set request
|
316
|
+
#
|
317
|
+
# # The returned object is of type Google::Cloud::Vision::V1p3beta1::ProductSet.
|
318
|
+
# p result
|
319
|
+
#
|
305
320
|
def create_product_set request, options = nil
|
306
321
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
307
322
|
|
@@ -319,9 +334,11 @@ module Google
|
|
319
334
|
gapic_version: ::Google::Cloud::Vision::V1p3beta1::VERSION
|
320
335
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
321
336
|
|
322
|
-
header_params = {
|
323
|
-
|
324
|
-
|
337
|
+
header_params = {}
|
338
|
+
if request.parent
|
339
|
+
header_params["parent"] = request.parent
|
340
|
+
end
|
341
|
+
|
325
342
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
326
343
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
327
344
|
|
@@ -381,6 +398,27 @@ module Google
|
|
381
398
|
#
|
382
399
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
383
400
|
#
|
401
|
+
# @example Basic example
|
402
|
+
# require "google/cloud/vision/v1p3beta1"
|
403
|
+
#
|
404
|
+
# # Create a client object. The client can be reused for multiple calls.
|
405
|
+
# client = Google::Cloud::Vision::V1p3beta1::ProductSearch::Client.new
|
406
|
+
#
|
407
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
408
|
+
# request = Google::Cloud::Vision::V1p3beta1::ListProductSetsRequest.new
|
409
|
+
#
|
410
|
+
# # Call the list_product_sets method.
|
411
|
+
# result = client.list_product_sets request
|
412
|
+
#
|
413
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
414
|
+
# # iterate over all elements by calling #each, and the enumerable
|
415
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
416
|
+
# # methods are also available for managing paging directly.
|
417
|
+
# result.each do |response|
|
418
|
+
# # Each element is of type ::Google::Cloud::Vision::V1p3beta1::ProductSet.
|
419
|
+
# p response
|
420
|
+
# end
|
421
|
+
#
|
384
422
|
def list_product_sets request, options = nil
|
385
423
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
386
424
|
|
@@ -398,9 +436,11 @@ module Google
|
|
398
436
|
gapic_version: ::Google::Cloud::Vision::V1p3beta1::VERSION
|
399
437
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
400
438
|
|
401
|
-
header_params = {
|
402
|
-
|
403
|
-
|
439
|
+
header_params = {}
|
440
|
+
if request.parent
|
441
|
+
header_params["parent"] = request.parent
|
442
|
+
end
|
443
|
+
|
404
444
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
405
445
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
406
446
|
|
@@ -457,6 +497,21 @@ module Google
|
|
457
497
|
#
|
458
498
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
459
499
|
#
|
500
|
+
# @example Basic example
|
501
|
+
# require "google/cloud/vision/v1p3beta1"
|
502
|
+
#
|
503
|
+
# # Create a client object. The client can be reused for multiple calls.
|
504
|
+
# client = Google::Cloud::Vision::V1p3beta1::ProductSearch::Client.new
|
505
|
+
#
|
506
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
507
|
+
# request = Google::Cloud::Vision::V1p3beta1::GetProductSetRequest.new
|
508
|
+
#
|
509
|
+
# # Call the get_product_set method.
|
510
|
+
# result = client.get_product_set request
|
511
|
+
#
|
512
|
+
# # The returned object is of type Google::Cloud::Vision::V1p3beta1::ProductSet.
|
513
|
+
# p result
|
514
|
+
#
|
460
515
|
def get_product_set request, options = nil
|
461
516
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
462
517
|
|
@@ -474,9 +529,11 @@ module Google
|
|
474
529
|
gapic_version: ::Google::Cloud::Vision::V1p3beta1::VERSION
|
475
530
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
476
531
|
|
477
|
-
header_params = {
|
478
|
-
|
479
|
-
|
532
|
+
header_params = {}
|
533
|
+
if request.name
|
534
|
+
header_params["name"] = request.name
|
535
|
+
end
|
536
|
+
|
480
537
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
481
538
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
482
539
|
|
@@ -537,6 +594,21 @@ module Google
|
|
537
594
|
#
|
538
595
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
539
596
|
#
|
597
|
+
# @example Basic example
|
598
|
+
# require "google/cloud/vision/v1p3beta1"
|
599
|
+
#
|
600
|
+
# # Create a client object. The client can be reused for multiple calls.
|
601
|
+
# client = Google::Cloud::Vision::V1p3beta1::ProductSearch::Client.new
|
602
|
+
#
|
603
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
604
|
+
# request = Google::Cloud::Vision::V1p3beta1::UpdateProductSetRequest.new
|
605
|
+
#
|
606
|
+
# # Call the update_product_set method.
|
607
|
+
# result = client.update_product_set request
|
608
|
+
#
|
609
|
+
# # The returned object is of type Google::Cloud::Vision::V1p3beta1::ProductSet.
|
610
|
+
# p result
|
611
|
+
#
|
540
612
|
def update_product_set request, options = nil
|
541
613
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
542
614
|
|
@@ -554,9 +626,11 @@ module Google
|
|
554
626
|
gapic_version: ::Google::Cloud::Vision::V1p3beta1::VERSION
|
555
627
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
556
628
|
|
557
|
-
header_params = {
|
558
|
-
|
559
|
-
|
629
|
+
header_params = {}
|
630
|
+
if request.product_set&.name
|
631
|
+
header_params["product_set.name"] = request.product_set.name
|
632
|
+
end
|
633
|
+
|
560
634
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
561
635
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
562
636
|
|
@@ -615,6 +689,21 @@ module Google
|
|
615
689
|
#
|
616
690
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
617
691
|
#
|
692
|
+
# @example Basic example
|
693
|
+
# require "google/cloud/vision/v1p3beta1"
|
694
|
+
#
|
695
|
+
# # Create a client object. The client can be reused for multiple calls.
|
696
|
+
# client = Google::Cloud::Vision::V1p3beta1::ProductSearch::Client.new
|
697
|
+
#
|
698
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
699
|
+
# request = Google::Cloud::Vision::V1p3beta1::DeleteProductSetRequest.new
|
700
|
+
#
|
701
|
+
# # Call the delete_product_set method.
|
702
|
+
# result = client.delete_product_set request
|
703
|
+
#
|
704
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
705
|
+
# p result
|
706
|
+
#
|
618
707
|
def delete_product_set request, options = nil
|
619
708
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
620
709
|
|
@@ -632,9 +721,11 @@ module Google
|
|
632
721
|
gapic_version: ::Google::Cloud::Vision::V1p3beta1::VERSION
|
633
722
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
634
723
|
|
635
|
-
header_params = {
|
636
|
-
|
637
|
-
|
724
|
+
header_params = {}
|
725
|
+
if request.name
|
726
|
+
header_params["name"] = request.name
|
727
|
+
end
|
728
|
+
|
638
729
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
639
730
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
640
731
|
|
@@ -700,6 +791,21 @@ module Google
|
|
700
791
|
#
|
701
792
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
702
793
|
#
|
794
|
+
# @example Basic example
|
795
|
+
# require "google/cloud/vision/v1p3beta1"
|
796
|
+
#
|
797
|
+
# # Create a client object. The client can be reused for multiple calls.
|
798
|
+
# client = Google::Cloud::Vision::V1p3beta1::ProductSearch::Client.new
|
799
|
+
#
|
800
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
801
|
+
# request = Google::Cloud::Vision::V1p3beta1::CreateProductRequest.new
|
802
|
+
#
|
803
|
+
# # Call the create_product method.
|
804
|
+
# result = client.create_product request
|
805
|
+
#
|
806
|
+
# # The returned object is of type Google::Cloud::Vision::V1p3beta1::Product.
|
807
|
+
# p result
|
808
|
+
#
|
703
809
|
def create_product request, options = nil
|
704
810
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
705
811
|
|
@@ -717,9 +823,11 @@ module Google
|
|
717
823
|
gapic_version: ::Google::Cloud::Vision::V1p3beta1::VERSION
|
718
824
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
719
825
|
|
720
|
-
header_params = {
|
721
|
-
|
722
|
-
|
826
|
+
header_params = {}
|
827
|
+
if request.parent
|
828
|
+
header_params["parent"] = request.parent
|
829
|
+
end
|
830
|
+
|
723
831
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
724
832
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
725
833
|
|
@@ -779,6 +887,27 @@ module Google
|
|
779
887
|
#
|
780
888
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
781
889
|
#
|
890
|
+
# @example Basic example
|
891
|
+
# require "google/cloud/vision/v1p3beta1"
|
892
|
+
#
|
893
|
+
# # Create a client object. The client can be reused for multiple calls.
|
894
|
+
# client = Google::Cloud::Vision::V1p3beta1::ProductSearch::Client.new
|
895
|
+
#
|
896
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
897
|
+
# request = Google::Cloud::Vision::V1p3beta1::ListProductsRequest.new
|
898
|
+
#
|
899
|
+
# # Call the list_products method.
|
900
|
+
# result = client.list_products request
|
901
|
+
#
|
902
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
903
|
+
# # iterate over all elements by calling #each, and the enumerable
|
904
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
905
|
+
# # methods are also available for managing paging directly.
|
906
|
+
# result.each do |response|
|
907
|
+
# # Each element is of type ::Google::Cloud::Vision::V1p3beta1::Product.
|
908
|
+
# p response
|
909
|
+
# end
|
910
|
+
#
|
782
911
|
def list_products request, options = nil
|
783
912
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
784
913
|
|
@@ -796,9 +925,11 @@ module Google
|
|
796
925
|
gapic_version: ::Google::Cloud::Vision::V1p3beta1::VERSION
|
797
926
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
798
927
|
|
799
|
-
header_params = {
|
800
|
-
|
801
|
-
|
928
|
+
header_params = {}
|
929
|
+
if request.parent
|
930
|
+
header_params["parent"] = request.parent
|
931
|
+
end
|
932
|
+
|
802
933
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
803
934
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
804
935
|
|
@@ -855,6 +986,21 @@ module Google
|
|
855
986
|
#
|
856
987
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
857
988
|
#
|
989
|
+
# @example Basic example
|
990
|
+
# require "google/cloud/vision/v1p3beta1"
|
991
|
+
#
|
992
|
+
# # Create a client object. The client can be reused for multiple calls.
|
993
|
+
# client = Google::Cloud::Vision::V1p3beta1::ProductSearch::Client.new
|
994
|
+
#
|
995
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
996
|
+
# request = Google::Cloud::Vision::V1p3beta1::GetProductRequest.new
|
997
|
+
#
|
998
|
+
# # Call the get_product method.
|
999
|
+
# result = client.get_product request
|
1000
|
+
#
|
1001
|
+
# # The returned object is of type Google::Cloud::Vision::V1p3beta1::Product.
|
1002
|
+
# p result
|
1003
|
+
#
|
858
1004
|
def get_product request, options = nil
|
859
1005
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
860
1006
|
|
@@ -872,9 +1018,11 @@ module Google
|
|
872
1018
|
gapic_version: ::Google::Cloud::Vision::V1p3beta1::VERSION
|
873
1019
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
874
1020
|
|
875
|
-
header_params = {
|
876
|
-
|
877
|
-
|
1021
|
+
header_params = {}
|
1022
|
+
if request.name
|
1023
|
+
header_params["name"] = request.name
|
1024
|
+
end
|
1025
|
+
|
878
1026
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
879
1027
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
880
1028
|
|
@@ -943,6 +1091,21 @@ module Google
|
|
943
1091
|
#
|
944
1092
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
945
1093
|
#
|
1094
|
+
# @example Basic example
|
1095
|
+
# require "google/cloud/vision/v1p3beta1"
|
1096
|
+
#
|
1097
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1098
|
+
# client = Google::Cloud::Vision::V1p3beta1::ProductSearch::Client.new
|
1099
|
+
#
|
1100
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1101
|
+
# request = Google::Cloud::Vision::V1p3beta1::UpdateProductRequest.new
|
1102
|
+
#
|
1103
|
+
# # Call the update_product method.
|
1104
|
+
# result = client.update_product request
|
1105
|
+
#
|
1106
|
+
# # The returned object is of type Google::Cloud::Vision::V1p3beta1::Product.
|
1107
|
+
# p result
|
1108
|
+
#
|
946
1109
|
def update_product request, options = nil
|
947
1110
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
948
1111
|
|
@@ -960,9 +1123,11 @@ module Google
|
|
960
1123
|
gapic_version: ::Google::Cloud::Vision::V1p3beta1::VERSION
|
961
1124
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
962
1125
|
|
963
|
-
header_params = {
|
964
|
-
|
965
|
-
|
1126
|
+
header_params = {}
|
1127
|
+
if request.product&.name
|
1128
|
+
header_params["product.name"] = request.product.name
|
1129
|
+
end
|
1130
|
+
|
966
1131
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
967
1132
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
968
1133
|
|
@@ -1022,6 +1187,21 @@ module Google
|
|
1022
1187
|
#
|
1023
1188
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1024
1189
|
#
|
1190
|
+
# @example Basic example
|
1191
|
+
# require "google/cloud/vision/v1p3beta1"
|
1192
|
+
#
|
1193
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1194
|
+
# client = Google::Cloud::Vision::V1p3beta1::ProductSearch::Client.new
|
1195
|
+
#
|
1196
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1197
|
+
# request = Google::Cloud::Vision::V1p3beta1::DeleteProductRequest.new
|
1198
|
+
#
|
1199
|
+
# # Call the delete_product method.
|
1200
|
+
# result = client.delete_product request
|
1201
|
+
#
|
1202
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
1203
|
+
# p result
|
1204
|
+
#
|
1025
1205
|
def delete_product request, options = nil
|
1026
1206
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1027
1207
|
|
@@ -1039,9 +1219,11 @@ module Google
|
|
1039
1219
|
gapic_version: ::Google::Cloud::Vision::V1p3beta1::VERSION
|
1040
1220
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1041
1221
|
|
1042
|
-
header_params = {
|
1043
|
-
|
1044
|
-
|
1222
|
+
header_params = {}
|
1223
|
+
if request.name
|
1224
|
+
header_params["name"] = request.name
|
1225
|
+
end
|
1226
|
+
|
1045
1227
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1046
1228
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1047
1229
|
|
@@ -1119,6 +1301,21 @@ module Google
|
|
1119
1301
|
#
|
1120
1302
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1121
1303
|
#
|
1304
|
+
# @example Basic example
|
1305
|
+
# require "google/cloud/vision/v1p3beta1"
|
1306
|
+
#
|
1307
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1308
|
+
# client = Google::Cloud::Vision::V1p3beta1::ProductSearch::Client.new
|
1309
|
+
#
|
1310
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1311
|
+
# request = Google::Cloud::Vision::V1p3beta1::CreateReferenceImageRequest.new
|
1312
|
+
#
|
1313
|
+
# # Call the create_reference_image method.
|
1314
|
+
# result = client.create_reference_image request
|
1315
|
+
#
|
1316
|
+
# # The returned object is of type Google::Cloud::Vision::V1p3beta1::ReferenceImage.
|
1317
|
+
# p result
|
1318
|
+
#
|
1122
1319
|
def create_reference_image request, options = nil
|
1123
1320
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1124
1321
|
|
@@ -1136,9 +1333,11 @@ module Google
|
|
1136
1333
|
gapic_version: ::Google::Cloud::Vision::V1p3beta1::VERSION
|
1137
1334
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1138
1335
|
|
1139
|
-
header_params = {
|
1140
|
-
|
1141
|
-
|
1336
|
+
header_params = {}
|
1337
|
+
if request.parent
|
1338
|
+
header_params["parent"] = request.parent
|
1339
|
+
end
|
1340
|
+
|
1142
1341
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1143
1342
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1144
1343
|
|
@@ -1201,6 +1400,21 @@ module Google
|
|
1201
1400
|
#
|
1202
1401
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1203
1402
|
#
|
1403
|
+
# @example Basic example
|
1404
|
+
# require "google/cloud/vision/v1p3beta1"
|
1405
|
+
#
|
1406
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1407
|
+
# client = Google::Cloud::Vision::V1p3beta1::ProductSearch::Client.new
|
1408
|
+
#
|
1409
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1410
|
+
# request = Google::Cloud::Vision::V1p3beta1::DeleteReferenceImageRequest.new
|
1411
|
+
#
|
1412
|
+
# # Call the delete_reference_image method.
|
1413
|
+
# result = client.delete_reference_image request
|
1414
|
+
#
|
1415
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
1416
|
+
# p result
|
1417
|
+
#
|
1204
1418
|
def delete_reference_image request, options = nil
|
1205
1419
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1206
1420
|
|
@@ -1218,9 +1432,11 @@ module Google
|
|
1218
1432
|
gapic_version: ::Google::Cloud::Vision::V1p3beta1::VERSION
|
1219
1433
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1220
1434
|
|
1221
|
-
header_params = {
|
1222
|
-
|
1223
|
-
|
1435
|
+
header_params = {}
|
1436
|
+
if request.name
|
1437
|
+
header_params["name"] = request.name
|
1438
|
+
end
|
1439
|
+
|
1224
1440
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1225
1441
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1226
1442
|
|
@@ -1285,6 +1501,27 @@ module Google
|
|
1285
1501
|
#
|
1286
1502
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1287
1503
|
#
|
1504
|
+
# @example Basic example
|
1505
|
+
# require "google/cloud/vision/v1p3beta1"
|
1506
|
+
#
|
1507
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1508
|
+
# client = Google::Cloud::Vision::V1p3beta1::ProductSearch::Client.new
|
1509
|
+
#
|
1510
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1511
|
+
# request = Google::Cloud::Vision::V1p3beta1::ListReferenceImagesRequest.new
|
1512
|
+
#
|
1513
|
+
# # Call the list_reference_images method.
|
1514
|
+
# result = client.list_reference_images request
|
1515
|
+
#
|
1516
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
1517
|
+
# # iterate over all elements by calling #each, and the enumerable
|
1518
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
1519
|
+
# # methods are also available for managing paging directly.
|
1520
|
+
# result.each do |response|
|
1521
|
+
# # Each element is of type ::Google::Cloud::Vision::V1p3beta1::ReferenceImage.
|
1522
|
+
# p response
|
1523
|
+
# end
|
1524
|
+
#
|
1288
1525
|
def list_reference_images request, options = nil
|
1289
1526
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1290
1527
|
|
@@ -1302,9 +1539,11 @@ module Google
|
|
1302
1539
|
gapic_version: ::Google::Cloud::Vision::V1p3beta1::VERSION
|
1303
1540
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1304
1541
|
|
1305
|
-
header_params = {
|
1306
|
-
|
1307
|
-
|
1542
|
+
header_params = {}
|
1543
|
+
if request.parent
|
1544
|
+
header_params["parent"] = request.parent
|
1545
|
+
end
|
1546
|
+
|
1308
1547
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1309
1548
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1310
1549
|
|
@@ -1362,6 +1601,21 @@ module Google
|
|
1362
1601
|
#
|
1363
1602
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1364
1603
|
#
|
1604
|
+
# @example Basic example
|
1605
|
+
# require "google/cloud/vision/v1p3beta1"
|
1606
|
+
#
|
1607
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1608
|
+
# client = Google::Cloud::Vision::V1p3beta1::ProductSearch::Client.new
|
1609
|
+
#
|
1610
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1611
|
+
# request = Google::Cloud::Vision::V1p3beta1::GetReferenceImageRequest.new
|
1612
|
+
#
|
1613
|
+
# # Call the get_reference_image method.
|
1614
|
+
# result = client.get_reference_image request
|
1615
|
+
#
|
1616
|
+
# # The returned object is of type Google::Cloud::Vision::V1p3beta1::ReferenceImage.
|
1617
|
+
# p result
|
1618
|
+
#
|
1365
1619
|
def get_reference_image request, options = nil
|
1366
1620
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1367
1621
|
|
@@ -1379,9 +1633,11 @@ module Google
|
|
1379
1633
|
gapic_version: ::Google::Cloud::Vision::V1p3beta1::VERSION
|
1380
1634
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1381
1635
|
|
1382
|
-
header_params = {
|
1383
|
-
|
1384
|
-
|
1636
|
+
header_params = {}
|
1637
|
+
if request.name
|
1638
|
+
header_params["name"] = request.name
|
1639
|
+
end
|
1640
|
+
|
1385
1641
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1386
1642
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1387
1643
|
|
@@ -1445,6 +1701,21 @@ module Google
|
|
1445
1701
|
#
|
1446
1702
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1447
1703
|
#
|
1704
|
+
# @example Basic example
|
1705
|
+
# require "google/cloud/vision/v1p3beta1"
|
1706
|
+
#
|
1707
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1708
|
+
# client = Google::Cloud::Vision::V1p3beta1::ProductSearch::Client.new
|
1709
|
+
#
|
1710
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1711
|
+
# request = Google::Cloud::Vision::V1p3beta1::AddProductToProductSetRequest.new
|
1712
|
+
#
|
1713
|
+
# # Call the add_product_to_product_set method.
|
1714
|
+
# result = client.add_product_to_product_set request
|
1715
|
+
#
|
1716
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
1717
|
+
# p result
|
1718
|
+
#
|
1448
1719
|
def add_product_to_product_set request, options = nil
|
1449
1720
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1450
1721
|
|
@@ -1462,9 +1733,11 @@ module Google
|
|
1462
1733
|
gapic_version: ::Google::Cloud::Vision::V1p3beta1::VERSION
|
1463
1734
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1464
1735
|
|
1465
|
-
header_params = {
|
1466
|
-
|
1467
|
-
|
1736
|
+
header_params = {}
|
1737
|
+
if request.name
|
1738
|
+
header_params["name"] = request.name
|
1739
|
+
end
|
1740
|
+
|
1468
1741
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1469
1742
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1470
1743
|
|
@@ -1525,6 +1798,21 @@ module Google
|
|
1525
1798
|
#
|
1526
1799
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1527
1800
|
#
|
1801
|
+
# @example Basic example
|
1802
|
+
# require "google/cloud/vision/v1p3beta1"
|
1803
|
+
#
|
1804
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1805
|
+
# client = Google::Cloud::Vision::V1p3beta1::ProductSearch::Client.new
|
1806
|
+
#
|
1807
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1808
|
+
# request = Google::Cloud::Vision::V1p3beta1::RemoveProductFromProductSetRequest.new
|
1809
|
+
#
|
1810
|
+
# # Call the remove_product_from_product_set method.
|
1811
|
+
# result = client.remove_product_from_product_set request
|
1812
|
+
#
|
1813
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
1814
|
+
# p result
|
1815
|
+
#
|
1528
1816
|
def remove_product_from_product_set request, options = nil
|
1529
1817
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1530
1818
|
|
@@ -1542,9 +1830,11 @@ module Google
|
|
1542
1830
|
gapic_version: ::Google::Cloud::Vision::V1p3beta1::VERSION
|
1543
1831
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1544
1832
|
|
1545
|
-
header_params = {
|
1546
|
-
|
1547
|
-
|
1833
|
+
header_params = {}
|
1834
|
+
if request.name
|
1835
|
+
header_params["name"] = request.name
|
1836
|
+
end
|
1837
|
+
|
1548
1838
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1549
1839
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1550
1840
|
|
@@ -1606,6 +1896,27 @@ module Google
|
|
1606
1896
|
#
|
1607
1897
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1608
1898
|
#
|
1899
|
+
# @example Basic example
|
1900
|
+
# require "google/cloud/vision/v1p3beta1"
|
1901
|
+
#
|
1902
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1903
|
+
# client = Google::Cloud::Vision::V1p3beta1::ProductSearch::Client.new
|
1904
|
+
#
|
1905
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1906
|
+
# request = Google::Cloud::Vision::V1p3beta1::ListProductsInProductSetRequest.new
|
1907
|
+
#
|
1908
|
+
# # Call the list_products_in_product_set method.
|
1909
|
+
# result = client.list_products_in_product_set request
|
1910
|
+
#
|
1911
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
1912
|
+
# # iterate over all elements by calling #each, and the enumerable
|
1913
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
1914
|
+
# # methods are also available for managing paging directly.
|
1915
|
+
# result.each do |response|
|
1916
|
+
# # Each element is of type ::Google::Cloud::Vision::V1p3beta1::Product.
|
1917
|
+
# p response
|
1918
|
+
# end
|
1919
|
+
#
|
1609
1920
|
def list_products_in_product_set request, options = nil
|
1610
1921
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1611
1922
|
|
@@ -1623,9 +1934,11 @@ module Google
|
|
1623
1934
|
gapic_version: ::Google::Cloud::Vision::V1p3beta1::VERSION
|
1624
1935
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1625
1936
|
|
1626
|
-
header_params = {
|
1627
|
-
|
1628
|
-
|
1937
|
+
header_params = {}
|
1938
|
+
if request.name
|
1939
|
+
header_params["name"] = request.name
|
1940
|
+
end
|
1941
|
+
|
1629
1942
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1630
1943
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1631
1944
|
|
@@ -1689,6 +2002,28 @@ module Google
|
|
1689
2002
|
#
|
1690
2003
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1691
2004
|
#
|
2005
|
+
# @example Basic example
|
2006
|
+
# require "google/cloud/vision/v1p3beta1"
|
2007
|
+
#
|
2008
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2009
|
+
# client = Google::Cloud::Vision::V1p3beta1::ProductSearch::Client.new
|
2010
|
+
#
|
2011
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2012
|
+
# request = Google::Cloud::Vision::V1p3beta1::ImportProductSetsRequest.new
|
2013
|
+
#
|
2014
|
+
# # Call the import_product_sets method.
|
2015
|
+
# result = client.import_product_sets request
|
2016
|
+
#
|
2017
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
2018
|
+
# # object to check the status of an operation, cancel it, or wait
|
2019
|
+
# # for results. Here is how to block until completion:
|
2020
|
+
# result.wait_until_done! timeout: 60
|
2021
|
+
# if result.response?
|
2022
|
+
# p result.response
|
2023
|
+
# else
|
2024
|
+
# puts "Error!"
|
2025
|
+
# end
|
2026
|
+
#
|
1692
2027
|
def import_product_sets request, options = nil
|
1693
2028
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1694
2029
|
|
@@ -1706,9 +2041,11 @@ module Google
|
|
1706
2041
|
gapic_version: ::Google::Cloud::Vision::V1p3beta1::VERSION
|
1707
2042
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1708
2043
|
|
1709
|
-
header_params = {
|
1710
|
-
|
1711
|
-
|
2044
|
+
header_params = {}
|
2045
|
+
if request.parent
|
2046
|
+
header_params["parent"] = request.parent
|
2047
|
+
end
|
2048
|
+
|
1712
2049
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1713
2050
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1714
2051
|
|
@@ -143,6 +143,27 @@ module Google
|
|
143
143
|
#
|
144
144
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
145
145
|
#
|
146
|
+
# @example Basic example
|
147
|
+
# require "google/longrunning"
|
148
|
+
#
|
149
|
+
# # Create a client object. The client can be reused for multiple calls.
|
150
|
+
# client = Google::Longrunning::Operations::Client.new
|
151
|
+
#
|
152
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
153
|
+
# request = Google::Longrunning::ListOperationsRequest.new
|
154
|
+
#
|
155
|
+
# # Call the list_operations method.
|
156
|
+
# result = client.list_operations request
|
157
|
+
#
|
158
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
159
|
+
# # iterate over all elements by calling #each, and the enumerable
|
160
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
161
|
+
# # methods are also available for managing paging directly.
|
162
|
+
# result.each do |response|
|
163
|
+
# # Each element is of type ::Google::Longrunning::Operation.
|
164
|
+
# p response
|
165
|
+
# end
|
166
|
+
#
|
146
167
|
def list_operations request, options = nil
|
147
168
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
148
169
|
|
@@ -160,9 +181,11 @@ module Google
|
|
160
181
|
gapic_version: ::Google::Cloud::Vision::V1p3beta1::VERSION
|
161
182
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
162
183
|
|
163
|
-
header_params = {
|
164
|
-
|
165
|
-
|
184
|
+
header_params = {}
|
185
|
+
if request.name
|
186
|
+
header_params["name"] = request.name
|
187
|
+
end
|
188
|
+
|
166
189
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
167
190
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
168
191
|
|
@@ -215,6 +238,28 @@ module Google
|
|
215
238
|
#
|
216
239
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
217
240
|
#
|
241
|
+
# @example Basic example
|
242
|
+
# require "google/longrunning"
|
243
|
+
#
|
244
|
+
# # Create a client object. The client can be reused for multiple calls.
|
245
|
+
# client = Google::Longrunning::Operations::Client.new
|
246
|
+
#
|
247
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
248
|
+
# request = Google::Longrunning::GetOperationRequest.new
|
249
|
+
#
|
250
|
+
# # Call the get_operation method.
|
251
|
+
# result = client.get_operation request
|
252
|
+
#
|
253
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
254
|
+
# # object to check the status of an operation, cancel it, or wait
|
255
|
+
# # for results. Here is how to block until completion:
|
256
|
+
# result.wait_until_done! timeout: 60
|
257
|
+
# if result.response?
|
258
|
+
# p result.response
|
259
|
+
# else
|
260
|
+
# puts "Error!"
|
261
|
+
# end
|
262
|
+
#
|
218
263
|
def get_operation request, options = nil
|
219
264
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
220
265
|
|
@@ -232,9 +277,11 @@ module Google
|
|
232
277
|
gapic_version: ::Google::Cloud::Vision::V1p3beta1::VERSION
|
233
278
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
234
279
|
|
235
|
-
header_params = {
|
236
|
-
|
237
|
-
|
280
|
+
header_params = {}
|
281
|
+
if request.name
|
282
|
+
header_params["name"] = request.name
|
283
|
+
end
|
284
|
+
|
238
285
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
239
286
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
240
287
|
|
@@ -287,6 +334,21 @@ module Google
|
|
287
334
|
#
|
288
335
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
289
336
|
#
|
337
|
+
# @example Basic example
|
338
|
+
# require "google/longrunning"
|
339
|
+
#
|
340
|
+
# # Create a client object. The client can be reused for multiple calls.
|
341
|
+
# client = Google::Longrunning::Operations::Client.new
|
342
|
+
#
|
343
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
344
|
+
# request = Google::Longrunning::DeleteOperationRequest.new
|
345
|
+
#
|
346
|
+
# # Call the delete_operation method.
|
347
|
+
# result = client.delete_operation request
|
348
|
+
#
|
349
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
350
|
+
# p result
|
351
|
+
#
|
290
352
|
def delete_operation request, options = nil
|
291
353
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
292
354
|
|
@@ -304,9 +366,11 @@ module Google
|
|
304
366
|
gapic_version: ::Google::Cloud::Vision::V1p3beta1::VERSION
|
305
367
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
306
368
|
|
307
|
-
header_params = {
|
308
|
-
|
309
|
-
|
369
|
+
header_params = {}
|
370
|
+
if request.name
|
371
|
+
header_params["name"] = request.name
|
372
|
+
end
|
373
|
+
|
310
374
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
311
375
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
312
376
|
|
@@ -364,6 +428,21 @@ module Google
|
|
364
428
|
#
|
365
429
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
366
430
|
#
|
431
|
+
# @example Basic example
|
432
|
+
# require "google/longrunning"
|
433
|
+
#
|
434
|
+
# # Create a client object. The client can be reused for multiple calls.
|
435
|
+
# client = Google::Longrunning::Operations::Client.new
|
436
|
+
#
|
437
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
438
|
+
# request = Google::Longrunning::CancelOperationRequest.new
|
439
|
+
#
|
440
|
+
# # Call the cancel_operation method.
|
441
|
+
# result = client.cancel_operation request
|
442
|
+
#
|
443
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
444
|
+
# p result
|
445
|
+
#
|
367
446
|
def cancel_operation request, options = nil
|
368
447
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
369
448
|
|
@@ -381,9 +460,11 @@ module Google
|
|
381
460
|
gapic_version: ::Google::Cloud::Vision::V1p3beta1::VERSION
|
382
461
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
383
462
|
|
384
|
-
header_params = {
|
385
|
-
|
386
|
-
|
463
|
+
header_params = {}
|
464
|
+
if request.name
|
465
|
+
header_params["name"] = request.name
|
466
|
+
end
|
467
|
+
|
387
468
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
388
469
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
389
470
|
|
@@ -444,6 +525,28 @@ module Google
|
|
444
525
|
#
|
445
526
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
446
527
|
#
|
528
|
+
# @example Basic example
|
529
|
+
# require "google/longrunning"
|
530
|
+
#
|
531
|
+
# # Create a client object. The client can be reused for multiple calls.
|
532
|
+
# client = Google::Longrunning::Operations::Client.new
|
533
|
+
#
|
534
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
535
|
+
# request = Google::Longrunning::WaitOperationRequest.new
|
536
|
+
#
|
537
|
+
# # Call the wait_operation method.
|
538
|
+
# result = client.wait_operation request
|
539
|
+
#
|
540
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
541
|
+
# # object to check the status of an operation, cancel it, or wait
|
542
|
+
# # for results. Here is how to block until completion:
|
543
|
+
# result.wait_until_done! timeout: 60
|
544
|
+
# if result.response?
|
545
|
+
# p result.response
|
546
|
+
# else
|
547
|
+
# puts "Error!"
|
548
|
+
# end
|
549
|
+
#
|
447
550
|
def wait_operation request, options = nil
|
448
551
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
449
552
|
|
@@ -1,13 +1,13 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/vision/v1p3beta1/product_search.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'google/api/annotations_pb'
|
7
5
|
require 'google/api/resource_pb'
|
8
6
|
require 'google/cloud/vision/v1p3beta1/geometry_pb'
|
9
7
|
require 'google/cloud/vision/v1p3beta1/product_search_service_pb'
|
10
8
|
require 'google/protobuf/timestamp_pb'
|
9
|
+
require 'google/protobuf'
|
10
|
+
|
11
11
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
12
12
|
add_file("google/cloud/vision/v1p3beta1/product_search.proto", :syntax => :proto3) do
|
13
13
|
add_message "google.cloud.vision.v1p3beta1.ProductSearchParams" do
|
@@ -1,8 +1,6 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/vision/v1p3beta1/product_search_service.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'google/api/annotations_pb'
|
7
5
|
require 'google/api/client_pb'
|
8
6
|
require 'google/api/field_behavior_pb'
|
@@ -13,6 +11,8 @@ require 'google/protobuf/empty_pb'
|
|
13
11
|
require 'google/protobuf/field_mask_pb'
|
14
12
|
require 'google/protobuf/timestamp_pb'
|
15
13
|
require 'google/rpc/status_pb'
|
14
|
+
require 'google/protobuf'
|
15
|
+
|
16
16
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
17
17
|
add_file("google/cloud/vision/v1p3beta1/product_search_service.proto", :syntax => :proto3) do
|
18
18
|
add_message "google.cloud.vision.v1p3beta1.Product" do
|
@@ -1,10 +1,10 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/vision/v1p3beta1/text_annotation.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'google/api/annotations_pb'
|
7
5
|
require 'google/cloud/vision/v1p3beta1/geometry_pb'
|
6
|
+
require 'google/protobuf'
|
7
|
+
|
8
8
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
9
9
|
add_file("google/cloud/vision/v1p3beta1/text_annotation.proto", :syntax => :proto3) do
|
10
10
|
add_message "google.cloud.vision.v1p3beta1.TextAnnotation" do
|
@@ -1,9 +1,9 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/vision/v1p3beta1/web_detection.proto
|
3
3
|
|
4
|
+
require 'google/api/annotations_pb'
|
4
5
|
require 'google/protobuf'
|
5
6
|
|
6
|
-
require 'google/api/annotations_pb'
|
7
7
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
8
8
|
add_file("google/cloud/vision/v1p3beta1/web_detection.proto", :syntax => :proto3) do
|
9
9
|
add_message "google.cloud.vision.v1p3beta1.WebDetection" do
|
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.5.
|
4
|
+
version: 0.5.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-08
|
11
|
+
date: 2021-11-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|