google-cloud-vision-v1p3beta1 0.1.3 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +6 -6
- data/README.md +1 -1
- data/lib/google/cloud/vision/v1p3beta1.rb +1 -1
- data/lib/google/cloud/vision/v1p3beta1/image_annotator.rb +1 -1
- data/lib/google/cloud/vision/v1p3beta1/image_annotator/client.rb +86 -73
- data/lib/google/cloud/vision/v1p3beta1/image_annotator/credentials.rb +1 -1
- data/lib/google/cloud/vision/v1p3beta1/image_annotator/operations.rb +109 -103
- data/lib/google/cloud/vision/v1p3beta1/image_annotator/paths.rb +3 -3
- data/lib/google/cloud/vision/v1p3beta1/product_search.rb +4 -4
- data/lib/google/cloud/vision/v1p3beta1/product_search/client.rb +372 -359
- data/lib/google/cloud/vision/v1p3beta1/product_search/credentials.rb +1 -1
- data/lib/google/cloud/vision/v1p3beta1/product_search/operations.rb +109 -103
- data/lib/google/cloud/vision/v1p3beta1/product_search/paths.rb +12 -12
- data/lib/google/cloud/vision/v1p3beta1/version.rb +1 -1
- data/proto_docs/google/api/resource.rb +12 -12
- data/proto_docs/google/cloud/vision/v1p3beta1/geometry.rb +20 -20
- data/proto_docs/google/cloud/vision/v1p3beta1/image_annotator.rb +172 -172
- data/proto_docs/google/cloud/vision/v1p3beta1/product_search.rb +29 -29
- data/proto_docs/google/cloud/vision/v1p3beta1/product_search_service.rb +133 -133
- data/proto_docs/google/cloud/vision/v1p3beta1/text_annotation.rb +49 -49
- data/proto_docs/google/cloud/vision/v1p3beta1/web_detection.rb +28 -28
- data/proto_docs/google/longrunning/operations.rb +30 -30
- data/proto_docs/google/protobuf/any.rb +4 -4
- data/proto_docs/google/protobuf/empty.rb +2 -2
- data/proto_docs/google/protobuf/field_mask.rb +3 -3
- data/proto_docs/google/protobuf/timestamp.rb +4 -4
- data/proto_docs/google/protobuf/wrappers.rb +27 -27
- data/proto_docs/google/rpc/status.rb +6 -6
- data/proto_docs/google/type/color.rb +6 -6
- data/proto_docs/google/type/latlng.rb +4 -4
- metadata +33 -6
- data/lib/google/cloud/common_resources_pb.rb +0 -15
@@ -35,10 +35,10 @@ module Google
|
|
35
35
|
# @param location [String]
|
36
36
|
# @param product_set [String]
|
37
37
|
#
|
38
|
-
# @return [String]
|
38
|
+
# @return [::String]
|
39
39
|
def product_set_path project:, location:, product_set:
|
40
|
-
raise ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
41
|
-
raise ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
40
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
41
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
42
42
|
|
43
43
|
"projects/#{project}/locations/#{location}/productSets/#{product_set}"
|
44
44
|
end
|
@@ -35,22 +35,22 @@ module Google
|
|
35
35
|
# Manages Products and ProductSets of reference images for use in product
|
36
36
|
# search. It uses the following resource model:
|
37
37
|
#
|
38
|
-
# - The API has a collection of {Google::Cloud::Vision::V1p3beta1::ProductSet ProductSet} resources, named
|
38
|
+
# - The API has a collection of {::Google::Cloud::Vision::V1p3beta1::ProductSet ProductSet} resources, named
|
39
39
|
# `projects/*/locations/*/productSets/*`, which acts as a way to put different
|
40
40
|
# products into groups to limit identification.
|
41
41
|
#
|
42
42
|
# In parallel,
|
43
43
|
#
|
44
|
-
# - The API has a collection of {Google::Cloud::Vision::V1p3beta1::Product Product} resources, named
|
44
|
+
# - The API has a collection of {::Google::Cloud::Vision::V1p3beta1::Product Product} resources, named
|
45
45
|
# `projects/*/locations/*/products/*`
|
46
46
|
#
|
47
|
-
# - Each {Google::Cloud::Vision::V1p3beta1::Product Product} has a collection of {Google::Cloud::Vision::V1p3beta1::ReferenceImage ReferenceImage} resources, named
|
47
|
+
# - Each {::Google::Cloud::Vision::V1p3beta1::Product Product} has a collection of {::Google::Cloud::Vision::V1p3beta1::ReferenceImage ReferenceImage} resources, named
|
48
48
|
# `projects/*/locations/*/products/*/referenceImages/*`
|
49
49
|
#
|
50
50
|
# To load this service and instantiate a client:
|
51
51
|
#
|
52
52
|
# require "google/cloud/vision/v1p3beta1/product_search"
|
53
|
-
# client = Google::Cloud::Vision::V1p3beta1::ProductSearch::Client.new
|
53
|
+
# client = ::Google::Cloud::Vision::V1p3beta1::ProductSearch::Client.new
|
54
54
|
#
|
55
55
|
module ProductSearch
|
56
56
|
end
|
@@ -30,16 +30,16 @@ module Google
|
|
30
30
|
# Manages Products and ProductSets of reference images for use in product
|
31
31
|
# search. It uses the following resource model:
|
32
32
|
#
|
33
|
-
# - The API has a collection of {Google::Cloud::Vision::V1p3beta1::ProductSet ProductSet} resources, named
|
33
|
+
# - The API has a collection of {::Google::Cloud::Vision::V1p3beta1::ProductSet ProductSet} resources, named
|
34
34
|
# `projects/*/locations/*/productSets/*`, which acts as a way to put different
|
35
35
|
# products into groups to limit identification.
|
36
36
|
#
|
37
37
|
# In parallel,
|
38
38
|
#
|
39
|
-
# - The API has a collection of {Google::Cloud::Vision::V1p3beta1::Product Product} resources, named
|
39
|
+
# - The API has a collection of {::Google::Cloud::Vision::V1p3beta1::Product Product} resources, named
|
40
40
|
# `projects/*/locations/*/products/*`
|
41
41
|
#
|
42
|
-
# - Each {Google::Cloud::Vision::V1p3beta1::Product Product} has a collection of {Google::Cloud::Vision::V1p3beta1::ReferenceImage ReferenceImage} resources, named
|
42
|
+
# - Each {::Google::Cloud::Vision::V1p3beta1::Product Product} has a collection of {::Google::Cloud::Vision::V1p3beta1::ReferenceImage ReferenceImage} resources, named
|
43
43
|
# `projects/*/locations/*/products/*/referenceImages/*`
|
44
44
|
#
|
45
45
|
class Client
|
@@ -51,15 +51,15 @@ module Google
|
|
51
51
|
##
|
52
52
|
# Configure the ProductSearch Client class.
|
53
53
|
#
|
54
|
-
# See {Google::Cloud::Vision::V1p3beta1::ProductSearch::Client::Configuration}
|
54
|
+
# See {::Google::Cloud::Vision::V1p3beta1::ProductSearch::Client::Configuration}
|
55
55
|
# for a description of the configuration fields.
|
56
56
|
#
|
57
57
|
# ## Example
|
58
58
|
#
|
59
59
|
# To modify the configuration for all ProductSearch clients:
|
60
60
|
#
|
61
|
-
# Google::Cloud::Vision::V1p3beta1::ProductSearch::Client.configure do |config|
|
62
|
-
# config.timeout =
|
61
|
+
# ::Google::Cloud::Vision::V1p3beta1::ProductSearch::Client.configure do |config|
|
62
|
+
# config.timeout = 10.0
|
63
63
|
# end
|
64
64
|
#
|
65
65
|
# @yield [config] Configure the Client client.
|
@@ -235,7 +235,7 @@ module Google
|
|
235
235
|
# but structural changes (adding new fields, etc.) are not allowed. Structural changes
|
236
236
|
# should be made on {Client.configure}.
|
237
237
|
#
|
238
|
-
# See {Google::Cloud::Vision::V1p3beta1::ProductSearch::Client::Configuration}
|
238
|
+
# See {::Google::Cloud::Vision::V1p3beta1::ProductSearch::Client::Configuration}
|
239
239
|
# for a description of the configuration fields.
|
240
240
|
#
|
241
241
|
# @yield [config] Configure the Client client.
|
@@ -256,13 +256,13 @@ module Google
|
|
256
256
|
# To create a new ProductSearch client with the default
|
257
257
|
# configuration:
|
258
258
|
#
|
259
|
-
# client = Google::Cloud::Vision::V1p3beta1::ProductSearch::Client.new
|
259
|
+
# client = ::Google::Cloud::Vision::V1p3beta1::ProductSearch::Client.new
|
260
260
|
#
|
261
261
|
# To create a new ProductSearch client with a custom
|
262
262
|
# configuration:
|
263
263
|
#
|
264
|
-
# client = Google::Cloud::Vision::V1p3beta1::ProductSearch::Client.new do |config|
|
265
|
-
# config.timeout =
|
264
|
+
# client = ::Google::Cloud::Vision::V1p3beta1::ProductSearch::Client.new do |config|
|
265
|
+
# config.timeout = 10.0
|
266
266
|
# end
|
267
267
|
#
|
268
268
|
# @yield [config] Configure the ProductSearch client.
|
@@ -287,14 +287,16 @@ module Google
|
|
287
287
|
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
288
288
|
credentials = Credentials.new credentials, scope: @config.scope
|
289
289
|
end
|
290
|
-
@quota_project_id =
|
290
|
+
@quota_project_id = @config.quota_project
|
291
|
+
@quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
|
291
292
|
|
292
293
|
@operations_client = Operations.new do |config|
|
293
294
|
config.credentials = credentials
|
295
|
+
config.endpoint = @config.endpoint
|
294
296
|
end
|
295
297
|
|
296
|
-
@product_search_stub = Gapic::ServiceStub.new(
|
297
|
-
Google::Cloud::Vision::V1p3beta1::ProductSearch::Stub,
|
298
|
+
@product_search_stub = ::Gapic::ServiceStub.new(
|
299
|
+
::Google::Cloud::Vision::V1p3beta1::ProductSearch::Stub,
|
298
300
|
credentials: credentials,
|
299
301
|
endpoint: @config.endpoint,
|
300
302
|
channel_args: @config.channel_args,
|
@@ -302,6 +304,13 @@ module Google
|
|
302
304
|
)
|
303
305
|
end
|
304
306
|
|
307
|
+
##
|
308
|
+
# Get the associated client for long-running operations.
|
309
|
+
#
|
310
|
+
# @return [::Google::Cloud::Vision::V1p3beta1::ProductSearch::Operations]
|
311
|
+
#
|
312
|
+
attr_reader :operations_client
|
313
|
+
|
305
314
|
# Service calls
|
306
315
|
|
307
316
|
##
|
@@ -314,12 +323,12 @@ module Google
|
|
314
323
|
#
|
315
324
|
# @overload create_product_set(request, options = nil)
|
316
325
|
# Pass arguments to `create_product_set` via a request object, either of type
|
317
|
-
# {Google::Cloud::Vision::V1p3beta1::CreateProductSetRequest} or an equivalent Hash.
|
326
|
+
# {::Google::Cloud::Vision::V1p3beta1::CreateProductSetRequest} or an equivalent Hash.
|
318
327
|
#
|
319
|
-
# @param request [Google::Cloud::Vision::V1p3beta1::CreateProductSetRequest, Hash]
|
328
|
+
# @param request [::Google::Cloud::Vision::V1p3beta1::CreateProductSetRequest, ::Hash]
|
320
329
|
# A request object representing the call parameters. Required. To specify no
|
321
330
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
322
|
-
# @param options [Gapic::CallOptions, Hash]
|
331
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
323
332
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
324
333
|
#
|
325
334
|
# @overload create_product_set(parent: nil, product_set: nil, product_set_id: nil)
|
@@ -327,39 +336,39 @@ module Google
|
|
327
336
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
328
337
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
329
338
|
#
|
330
|
-
# @param parent [String]
|
339
|
+
# @param parent [::String]
|
331
340
|
# Required. The project in which the ProductSet should be created.
|
332
341
|
#
|
333
342
|
# Format is `projects/PROJECT_ID/locations/LOC_ID`.
|
334
|
-
# @param product_set [Google::Cloud::Vision::V1p3beta1::ProductSet, Hash]
|
343
|
+
# @param product_set [::Google::Cloud::Vision::V1p3beta1::ProductSet, ::Hash]
|
335
344
|
# Required. The ProductSet to create.
|
336
|
-
# @param product_set_id [String]
|
345
|
+
# @param product_set_id [::String]
|
337
346
|
# A user-supplied resource id for this ProductSet. If set, the server will
|
338
347
|
# attempt to use this value as the resource id. If it is already in use, an
|
339
348
|
# error is returned with code ALREADY_EXISTS. Must be at most 128 characters
|
340
349
|
# long. It cannot contain the character `/`.
|
341
350
|
#
|
342
351
|
# @yield [response, operation] Access the result along with the RPC operation
|
343
|
-
# @yieldparam response [Google::Cloud::Vision::V1p3beta1::ProductSet]
|
344
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
352
|
+
# @yieldparam response [::Google::Cloud::Vision::V1p3beta1::ProductSet]
|
353
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
345
354
|
#
|
346
|
-
# @return [Google::Cloud::Vision::V1p3beta1::ProductSet]
|
355
|
+
# @return [::Google::Cloud::Vision::V1p3beta1::ProductSet]
|
347
356
|
#
|
348
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
357
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
349
358
|
#
|
350
359
|
def create_product_set request, options = nil
|
351
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
360
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
352
361
|
|
353
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::Vision::V1p3beta1::CreateProductSetRequest
|
362
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Vision::V1p3beta1::CreateProductSetRequest
|
354
363
|
|
355
364
|
# Converts hash and nil to an options object
|
356
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
365
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
357
366
|
|
358
367
|
# Customize the options with defaults
|
359
368
|
metadata = @config.rpcs.create_product_set.metadata.to_h
|
360
369
|
|
361
370
|
# Set x-goog-api-client and x-goog-user-project headers
|
362
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
371
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
363
372
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
364
373
|
gapic_version: ::Google::Cloud::Vision::V1p3beta1::VERSION
|
365
374
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -380,8 +389,8 @@ module Google
|
|
380
389
|
yield response, operation if block_given?
|
381
390
|
return response
|
382
391
|
end
|
383
|
-
rescue GRPC::BadStatus => e
|
384
|
-
raise Google::Cloud::Error.from_error(e)
|
392
|
+
rescue ::GRPC::BadStatus => e
|
393
|
+
raise ::Google::Cloud::Error.from_error(e)
|
385
394
|
end
|
386
395
|
|
387
396
|
##
|
@@ -394,12 +403,12 @@ module Google
|
|
394
403
|
#
|
395
404
|
# @overload list_product_sets(request, options = nil)
|
396
405
|
# Pass arguments to `list_product_sets` via a request object, either of type
|
397
|
-
# {Google::Cloud::Vision::V1p3beta1::ListProductSetsRequest} or an equivalent Hash.
|
406
|
+
# {::Google::Cloud::Vision::V1p3beta1::ListProductSetsRequest} or an equivalent Hash.
|
398
407
|
#
|
399
|
-
# @param request [Google::Cloud::Vision::V1p3beta1::ListProductSetsRequest, Hash]
|
408
|
+
# @param request [::Google::Cloud::Vision::V1p3beta1::ListProductSetsRequest, ::Hash]
|
400
409
|
# A request object representing the call parameters. Required. To specify no
|
401
410
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
402
|
-
# @param options [Gapic::CallOptions, Hash]
|
411
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
403
412
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
404
413
|
#
|
405
414
|
# @overload list_product_sets(parent: nil, page_size: nil, page_token: nil)
|
@@ -407,36 +416,36 @@ module Google
|
|
407
416
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
408
417
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
409
418
|
#
|
410
|
-
# @param parent [String]
|
419
|
+
# @param parent [::String]
|
411
420
|
# Required. The project from which ProductSets should be listed.
|
412
421
|
#
|
413
422
|
# Format is `projects/PROJECT_ID/locations/LOC_ID`.
|
414
|
-
# @param page_size [Integer]
|
423
|
+
# @param page_size [::Integer]
|
415
424
|
# The maximum number of items to return. Default 10, maximum 100.
|
416
|
-
# @param page_token [String]
|
425
|
+
# @param page_token [::String]
|
417
426
|
# The next_page_token returned from a previous List request, if any.
|
418
427
|
#
|
419
428
|
# @yield [response, operation] Access the result along with the RPC operation
|
420
|
-
# @yieldparam response [Gapic::PagedEnumerable
|
421
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
429
|
+
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Vision::V1p3beta1::ProductSet>]
|
430
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
422
431
|
#
|
423
|
-
# @return [Gapic::PagedEnumerable
|
432
|
+
# @return [::Gapic::PagedEnumerable<::Google::Cloud::Vision::V1p3beta1::ProductSet>]
|
424
433
|
#
|
425
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
434
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
426
435
|
#
|
427
436
|
def list_product_sets request, options = nil
|
428
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
437
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
429
438
|
|
430
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::Vision::V1p3beta1::ListProductSetsRequest
|
439
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Vision::V1p3beta1::ListProductSetsRequest
|
431
440
|
|
432
441
|
# Converts hash and nil to an options object
|
433
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
442
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
434
443
|
|
435
444
|
# Customize the options with defaults
|
436
445
|
metadata = @config.rpcs.list_product_sets.metadata.to_h
|
437
446
|
|
438
447
|
# Set x-goog-api-client and x-goog-user-project headers
|
439
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
448
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
440
449
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
441
450
|
gapic_version: ::Google::Cloud::Vision::V1p3beta1::VERSION
|
442
451
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -454,12 +463,12 @@ module Google
|
|
454
463
|
retry_policy: @config.retry_policy
|
455
464
|
|
456
465
|
@product_search_stub.call_rpc :list_product_sets, request, options: options do |response, operation|
|
457
|
-
response = Gapic::PagedEnumerable.new @product_search_stub, :list_product_sets, request, response, operation, options
|
466
|
+
response = ::Gapic::PagedEnumerable.new @product_search_stub, :list_product_sets, request, response, operation, options
|
458
467
|
yield response, operation if block_given?
|
459
468
|
return response
|
460
469
|
end
|
461
|
-
rescue GRPC::BadStatus => e
|
462
|
-
raise Google::Cloud::Error.from_error(e)
|
470
|
+
rescue ::GRPC::BadStatus => e
|
471
|
+
raise ::Google::Cloud::Error.from_error(e)
|
463
472
|
end
|
464
473
|
|
465
474
|
##
|
@@ -471,12 +480,12 @@ module Google
|
|
471
480
|
#
|
472
481
|
# @overload get_product_set(request, options = nil)
|
473
482
|
# Pass arguments to `get_product_set` via a request object, either of type
|
474
|
-
# {Google::Cloud::Vision::V1p3beta1::GetProductSetRequest} or an equivalent Hash.
|
483
|
+
# {::Google::Cloud::Vision::V1p3beta1::GetProductSetRequest} or an equivalent Hash.
|
475
484
|
#
|
476
|
-
# @param request [Google::Cloud::Vision::V1p3beta1::GetProductSetRequest, Hash]
|
485
|
+
# @param request [::Google::Cloud::Vision::V1p3beta1::GetProductSetRequest, ::Hash]
|
477
486
|
# A request object representing the call parameters. Required. To specify no
|
478
487
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
479
|
-
# @param options [Gapic::CallOptions, Hash]
|
488
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
480
489
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
481
490
|
#
|
482
491
|
# @overload get_product_set(name: nil)
|
@@ -484,33 +493,33 @@ module Google
|
|
484
493
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
485
494
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
486
495
|
#
|
487
|
-
# @param name [String]
|
496
|
+
# @param name [::String]
|
488
497
|
# Required. Resource name of the ProductSet to get.
|
489
498
|
#
|
490
499
|
# Format is:
|
491
500
|
# `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
|
492
501
|
#
|
493
502
|
# @yield [response, operation] Access the result along with the RPC operation
|
494
|
-
# @yieldparam response [Google::Cloud::Vision::V1p3beta1::ProductSet]
|
495
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
503
|
+
# @yieldparam response [::Google::Cloud::Vision::V1p3beta1::ProductSet]
|
504
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
496
505
|
#
|
497
|
-
# @return [Google::Cloud::Vision::V1p3beta1::ProductSet]
|
506
|
+
# @return [::Google::Cloud::Vision::V1p3beta1::ProductSet]
|
498
507
|
#
|
499
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
508
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
500
509
|
#
|
501
510
|
def get_product_set request, options = nil
|
502
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
511
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
503
512
|
|
504
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::Vision::V1p3beta1::GetProductSetRequest
|
513
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Vision::V1p3beta1::GetProductSetRequest
|
505
514
|
|
506
515
|
# Converts hash and nil to an options object
|
507
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
516
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
508
517
|
|
509
518
|
# Customize the options with defaults
|
510
519
|
metadata = @config.rpcs.get_product_set.metadata.to_h
|
511
520
|
|
512
521
|
# Set x-goog-api-client and x-goog-user-project headers
|
513
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
522
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
514
523
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
515
524
|
gapic_version: ::Google::Cloud::Vision::V1p3beta1::VERSION
|
516
525
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -531,8 +540,8 @@ module Google
|
|
531
540
|
yield response, operation if block_given?
|
532
541
|
return response
|
533
542
|
end
|
534
|
-
rescue GRPC::BadStatus => e
|
535
|
-
raise Google::Cloud::Error.from_error(e)
|
543
|
+
rescue ::GRPC::BadStatus => e
|
544
|
+
raise ::Google::Cloud::Error.from_error(e)
|
536
545
|
end
|
537
546
|
|
538
547
|
##
|
@@ -547,12 +556,12 @@ module Google
|
|
547
556
|
#
|
548
557
|
# @overload update_product_set(request, options = nil)
|
549
558
|
# Pass arguments to `update_product_set` via a request object, either of type
|
550
|
-
# {Google::Cloud::Vision::V1p3beta1::UpdateProductSetRequest} or an equivalent Hash.
|
559
|
+
# {::Google::Cloud::Vision::V1p3beta1::UpdateProductSetRequest} or an equivalent Hash.
|
551
560
|
#
|
552
|
-
# @param request [Google::Cloud::Vision::V1p3beta1::UpdateProductSetRequest, Hash]
|
561
|
+
# @param request [::Google::Cloud::Vision::V1p3beta1::UpdateProductSetRequest, ::Hash]
|
553
562
|
# A request object representing the call parameters. Required. To specify no
|
554
563
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
555
|
-
# @param options [Gapic::CallOptions, Hash]
|
564
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
556
565
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
557
566
|
#
|
558
567
|
# @overload update_product_set(product_set: nil, update_mask: nil)
|
@@ -560,35 +569,35 @@ module Google
|
|
560
569
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
561
570
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
562
571
|
#
|
563
|
-
# @param product_set [Google::Cloud::Vision::V1p3beta1::ProductSet, Hash]
|
572
|
+
# @param product_set [::Google::Cloud::Vision::V1p3beta1::ProductSet, ::Hash]
|
564
573
|
# Required. The ProductSet resource which replaces the one on the server.
|
565
|
-
# @param update_mask [Google::Protobuf::FieldMask, Hash]
|
566
|
-
# The {Google::Protobuf::FieldMask FieldMask} that specifies which fields to
|
574
|
+
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
575
|
+
# The {::Google::Protobuf::FieldMask FieldMask} that specifies which fields to
|
567
576
|
# update.
|
568
577
|
# If update_mask isn't specified, all mutable fields are to be updated.
|
569
578
|
# Valid mask path is `display_name`.
|
570
579
|
#
|
571
580
|
# @yield [response, operation] Access the result along with the RPC operation
|
572
|
-
# @yieldparam response [Google::Cloud::Vision::V1p3beta1::ProductSet]
|
573
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
581
|
+
# @yieldparam response [::Google::Cloud::Vision::V1p3beta1::ProductSet]
|
582
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
574
583
|
#
|
575
|
-
# @return [Google::Cloud::Vision::V1p3beta1::ProductSet]
|
584
|
+
# @return [::Google::Cloud::Vision::V1p3beta1::ProductSet]
|
576
585
|
#
|
577
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
586
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
578
587
|
#
|
579
588
|
def update_product_set request, options = nil
|
580
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
589
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
581
590
|
|
582
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::Vision::V1p3beta1::UpdateProductSetRequest
|
591
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Vision::V1p3beta1::UpdateProductSetRequest
|
583
592
|
|
584
593
|
# Converts hash and nil to an options object
|
585
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
594
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
586
595
|
|
587
596
|
# Customize the options with defaults
|
588
597
|
metadata = @config.rpcs.update_product_set.metadata.to_h
|
589
598
|
|
590
599
|
# Set x-goog-api-client and x-goog-user-project headers
|
591
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
600
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
592
601
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
593
602
|
gapic_version: ::Google::Cloud::Vision::V1p3beta1::VERSION
|
594
603
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -609,8 +618,8 @@ module Google
|
|
609
618
|
yield response, operation if block_given?
|
610
619
|
return response
|
611
620
|
end
|
612
|
-
rescue GRPC::BadStatus => e
|
613
|
-
raise Google::Cloud::Error.from_error(e)
|
621
|
+
rescue ::GRPC::BadStatus => e
|
622
|
+
raise ::Google::Cloud::Error.from_error(e)
|
614
623
|
end
|
615
624
|
|
616
625
|
##
|
@@ -625,12 +634,12 @@ module Google
|
|
625
634
|
#
|
626
635
|
# @overload delete_product_set(request, options = nil)
|
627
636
|
# Pass arguments to `delete_product_set` via a request object, either of type
|
628
|
-
# {Google::Cloud::Vision::V1p3beta1::DeleteProductSetRequest} or an equivalent Hash.
|
637
|
+
# {::Google::Cloud::Vision::V1p3beta1::DeleteProductSetRequest} or an equivalent Hash.
|
629
638
|
#
|
630
|
-
# @param request [Google::Cloud::Vision::V1p3beta1::DeleteProductSetRequest, Hash]
|
639
|
+
# @param request [::Google::Cloud::Vision::V1p3beta1::DeleteProductSetRequest, ::Hash]
|
631
640
|
# A request object representing the call parameters. Required. To specify no
|
632
641
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
633
|
-
# @param options [Gapic::CallOptions, Hash]
|
642
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
634
643
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
635
644
|
#
|
636
645
|
# @overload delete_product_set(name: nil)
|
@@ -638,33 +647,33 @@ module Google
|
|
638
647
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
639
648
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
640
649
|
#
|
641
|
-
# @param name [String]
|
650
|
+
# @param name [::String]
|
642
651
|
# Required. Resource name of the ProductSet to delete.
|
643
652
|
#
|
644
653
|
# Format is:
|
645
654
|
# `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
|
646
655
|
#
|
647
656
|
# @yield [response, operation] Access the result along with the RPC operation
|
648
|
-
# @yieldparam response [Google::Protobuf::Empty]
|
649
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
657
|
+
# @yieldparam response [::Google::Protobuf::Empty]
|
658
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
650
659
|
#
|
651
|
-
# @return [Google::Protobuf::Empty]
|
660
|
+
# @return [::Google::Protobuf::Empty]
|
652
661
|
#
|
653
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
662
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
654
663
|
#
|
655
664
|
def delete_product_set request, options = nil
|
656
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
665
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
657
666
|
|
658
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::Vision::V1p3beta1::DeleteProductSetRequest
|
667
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Vision::V1p3beta1::DeleteProductSetRequest
|
659
668
|
|
660
669
|
# Converts hash and nil to an options object
|
661
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
670
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
662
671
|
|
663
672
|
# Customize the options with defaults
|
664
673
|
metadata = @config.rpcs.delete_product_set.metadata.to_h
|
665
674
|
|
666
675
|
# Set x-goog-api-client and x-goog-user-project headers
|
667
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
676
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
668
677
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
669
678
|
gapic_version: ::Google::Cloud::Vision::V1p3beta1::VERSION
|
670
679
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -685,8 +694,8 @@ module Google
|
|
685
694
|
yield response, operation if block_given?
|
686
695
|
return response
|
687
696
|
end
|
688
|
-
rescue GRPC::BadStatus => e
|
689
|
-
raise Google::Cloud::Error.from_error(e)
|
697
|
+
rescue ::GRPC::BadStatus => e
|
698
|
+
raise ::Google::Cloud::Error.from_error(e)
|
690
699
|
end
|
691
700
|
|
692
701
|
##
|
@@ -701,12 +710,12 @@ module Google
|
|
701
710
|
#
|
702
711
|
# @overload create_product(request, options = nil)
|
703
712
|
# Pass arguments to `create_product` via a request object, either of type
|
704
|
-
# {Google::Cloud::Vision::V1p3beta1::CreateProductRequest} or an equivalent Hash.
|
713
|
+
# {::Google::Cloud::Vision::V1p3beta1::CreateProductRequest} or an equivalent Hash.
|
705
714
|
#
|
706
|
-
# @param request [Google::Cloud::Vision::V1p3beta1::CreateProductRequest, Hash]
|
715
|
+
# @param request [::Google::Cloud::Vision::V1p3beta1::CreateProductRequest, ::Hash]
|
707
716
|
# A request object representing the call parameters. Required. To specify no
|
708
717
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
709
|
-
# @param options [Gapic::CallOptions, Hash]
|
718
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
710
719
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
711
720
|
#
|
712
721
|
# @overload create_product(parent: nil, product: nil, product_id: nil)
|
@@ -714,40 +723,40 @@ module Google
|
|
714
723
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
715
724
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
716
725
|
#
|
717
|
-
# @param parent [String]
|
726
|
+
# @param parent [::String]
|
718
727
|
# Required. The project in which the Product should be created.
|
719
728
|
#
|
720
729
|
# Format is
|
721
730
|
# `projects/PROJECT_ID/locations/LOC_ID`.
|
722
|
-
# @param product [Google::Cloud::Vision::V1p3beta1::Product, Hash]
|
731
|
+
# @param product [::Google::Cloud::Vision::V1p3beta1::Product, ::Hash]
|
723
732
|
# Required. The product to create.
|
724
|
-
# @param product_id [String]
|
733
|
+
# @param product_id [::String]
|
725
734
|
# A user-supplied resource id for this Product. If set, the server will
|
726
735
|
# attempt to use this value as the resource id. If it is already in use, an
|
727
736
|
# error is returned with code ALREADY_EXISTS. Must be at most 128 characters
|
728
737
|
# long. It cannot contain the character `/`.
|
729
738
|
#
|
730
739
|
# @yield [response, operation] Access the result along with the RPC operation
|
731
|
-
# @yieldparam response [Google::Cloud::Vision::V1p3beta1::Product]
|
732
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
740
|
+
# @yieldparam response [::Google::Cloud::Vision::V1p3beta1::Product]
|
741
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
733
742
|
#
|
734
|
-
# @return [Google::Cloud::Vision::V1p3beta1::Product]
|
743
|
+
# @return [::Google::Cloud::Vision::V1p3beta1::Product]
|
735
744
|
#
|
736
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
745
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
737
746
|
#
|
738
747
|
def create_product request, options = nil
|
739
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
748
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
740
749
|
|
741
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::Vision::V1p3beta1::CreateProductRequest
|
750
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Vision::V1p3beta1::CreateProductRequest
|
742
751
|
|
743
752
|
# Converts hash and nil to an options object
|
744
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
753
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
745
754
|
|
746
755
|
# Customize the options with defaults
|
747
756
|
metadata = @config.rpcs.create_product.metadata.to_h
|
748
757
|
|
749
758
|
# Set x-goog-api-client and x-goog-user-project headers
|
750
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
759
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
751
760
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
752
761
|
gapic_version: ::Google::Cloud::Vision::V1p3beta1::VERSION
|
753
762
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -768,8 +777,8 @@ module Google
|
|
768
777
|
yield response, operation if block_given?
|
769
778
|
return response
|
770
779
|
end
|
771
|
-
rescue GRPC::BadStatus => e
|
772
|
-
raise Google::Cloud::Error.from_error(e)
|
780
|
+
rescue ::GRPC::BadStatus => e
|
781
|
+
raise ::Google::Cloud::Error.from_error(e)
|
773
782
|
end
|
774
783
|
|
775
784
|
##
|
@@ -781,12 +790,12 @@ module Google
|
|
781
790
|
#
|
782
791
|
# @overload list_products(request, options = nil)
|
783
792
|
# Pass arguments to `list_products` via a request object, either of type
|
784
|
-
# {Google::Cloud::Vision::V1p3beta1::ListProductsRequest} or an equivalent Hash.
|
793
|
+
# {::Google::Cloud::Vision::V1p3beta1::ListProductsRequest} or an equivalent Hash.
|
785
794
|
#
|
786
|
-
# @param request [Google::Cloud::Vision::V1p3beta1::ListProductsRequest, Hash]
|
795
|
+
# @param request [::Google::Cloud::Vision::V1p3beta1::ListProductsRequest, ::Hash]
|
787
796
|
# A request object representing the call parameters. Required. To specify no
|
788
797
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
789
|
-
# @param options [Gapic::CallOptions, Hash]
|
798
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
790
799
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
791
800
|
#
|
792
801
|
# @overload list_products(parent: nil, page_size: nil, page_token: nil)
|
@@ -794,37 +803,37 @@ module Google
|
|
794
803
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
795
804
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
796
805
|
#
|
797
|
-
# @param parent [String]
|
806
|
+
# @param parent [::String]
|
798
807
|
# Required. The project OR ProductSet from which Products should be listed.
|
799
808
|
#
|
800
809
|
# Format:
|
801
810
|
# `projects/PROJECT_ID/locations/LOC_ID`
|
802
|
-
# @param page_size [Integer]
|
811
|
+
# @param page_size [::Integer]
|
803
812
|
# The maximum number of items to return. Default 10, maximum 100.
|
804
|
-
# @param page_token [String]
|
813
|
+
# @param page_token [::String]
|
805
814
|
# The next_page_token returned from a previous List request, if any.
|
806
815
|
#
|
807
816
|
# @yield [response, operation] Access the result along with the RPC operation
|
808
|
-
# @yieldparam response [Gapic::PagedEnumerable
|
809
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
817
|
+
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Vision::V1p3beta1::Product>]
|
818
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
810
819
|
#
|
811
|
-
# @return [Gapic::PagedEnumerable
|
820
|
+
# @return [::Gapic::PagedEnumerable<::Google::Cloud::Vision::V1p3beta1::Product>]
|
812
821
|
#
|
813
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
822
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
814
823
|
#
|
815
824
|
def list_products request, options = nil
|
816
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
825
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
817
826
|
|
818
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::Vision::V1p3beta1::ListProductsRequest
|
827
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Vision::V1p3beta1::ListProductsRequest
|
819
828
|
|
820
829
|
# Converts hash and nil to an options object
|
821
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
830
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
822
831
|
|
823
832
|
# Customize the options with defaults
|
824
833
|
metadata = @config.rpcs.list_products.metadata.to_h
|
825
834
|
|
826
835
|
# Set x-goog-api-client and x-goog-user-project headers
|
827
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
836
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
828
837
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
829
838
|
gapic_version: ::Google::Cloud::Vision::V1p3beta1::VERSION
|
830
839
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -842,12 +851,12 @@ module Google
|
|
842
851
|
retry_policy: @config.retry_policy
|
843
852
|
|
844
853
|
@product_search_stub.call_rpc :list_products, request, options: options do |response, operation|
|
845
|
-
response = Gapic::PagedEnumerable.new @product_search_stub, :list_products, request, response, operation, options
|
854
|
+
response = ::Gapic::PagedEnumerable.new @product_search_stub, :list_products, request, response, operation, options
|
846
855
|
yield response, operation if block_given?
|
847
856
|
return response
|
848
857
|
end
|
849
|
-
rescue GRPC::BadStatus => e
|
850
|
-
raise Google::Cloud::Error.from_error(e)
|
858
|
+
rescue ::GRPC::BadStatus => e
|
859
|
+
raise ::Google::Cloud::Error.from_error(e)
|
851
860
|
end
|
852
861
|
|
853
862
|
##
|
@@ -859,12 +868,12 @@ module Google
|
|
859
868
|
#
|
860
869
|
# @overload get_product(request, options = nil)
|
861
870
|
# Pass arguments to `get_product` via a request object, either of type
|
862
|
-
# {Google::Cloud::Vision::V1p3beta1::GetProductRequest} or an equivalent Hash.
|
871
|
+
# {::Google::Cloud::Vision::V1p3beta1::GetProductRequest} or an equivalent Hash.
|
863
872
|
#
|
864
|
-
# @param request [Google::Cloud::Vision::V1p3beta1::GetProductRequest, Hash]
|
873
|
+
# @param request [::Google::Cloud::Vision::V1p3beta1::GetProductRequest, ::Hash]
|
865
874
|
# A request object representing the call parameters. Required. To specify no
|
866
875
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
867
|
-
# @param options [Gapic::CallOptions, Hash]
|
876
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
868
877
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
869
878
|
#
|
870
879
|
# @overload get_product(name: nil)
|
@@ -872,33 +881,33 @@ module Google
|
|
872
881
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
873
882
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
874
883
|
#
|
875
|
-
# @param name [String]
|
884
|
+
# @param name [::String]
|
876
885
|
# Required. Resource name of the Product to get.
|
877
886
|
#
|
878
887
|
# Format is:
|
879
888
|
# `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
|
880
889
|
#
|
881
890
|
# @yield [response, operation] Access the result along with the RPC operation
|
882
|
-
# @yieldparam response [Google::Cloud::Vision::V1p3beta1::Product]
|
883
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
891
|
+
# @yieldparam response [::Google::Cloud::Vision::V1p3beta1::Product]
|
892
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
884
893
|
#
|
885
|
-
# @return [Google::Cloud::Vision::V1p3beta1::Product]
|
894
|
+
# @return [::Google::Cloud::Vision::V1p3beta1::Product]
|
886
895
|
#
|
887
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
896
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
888
897
|
#
|
889
898
|
def get_product request, options = nil
|
890
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
899
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
891
900
|
|
892
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::Vision::V1p3beta1::GetProductRequest
|
901
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Vision::V1p3beta1::GetProductRequest
|
893
902
|
|
894
903
|
# Converts hash and nil to an options object
|
895
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
904
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
896
905
|
|
897
906
|
# Customize the options with defaults
|
898
907
|
metadata = @config.rpcs.get_product.metadata.to_h
|
899
908
|
|
900
909
|
# Set x-goog-api-client and x-goog-user-project headers
|
901
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
910
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
902
911
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
903
912
|
gapic_version: ::Google::Cloud::Vision::V1p3beta1::VERSION
|
904
913
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -919,8 +928,8 @@ module Google
|
|
919
928
|
yield response, operation if block_given?
|
920
929
|
return response
|
921
930
|
end
|
922
|
-
rescue GRPC::BadStatus => e
|
923
|
-
raise Google::Cloud::Error.from_error(e)
|
931
|
+
rescue ::GRPC::BadStatus => e
|
932
|
+
raise ::Google::Cloud::Error.from_error(e)
|
924
933
|
end
|
925
934
|
|
926
935
|
##
|
@@ -941,12 +950,12 @@ module Google
|
|
941
950
|
#
|
942
951
|
# @overload update_product(request, options = nil)
|
943
952
|
# Pass arguments to `update_product` via a request object, either of type
|
944
|
-
# {Google::Cloud::Vision::V1p3beta1::UpdateProductRequest} or an equivalent Hash.
|
953
|
+
# {::Google::Cloud::Vision::V1p3beta1::UpdateProductRequest} or an equivalent Hash.
|
945
954
|
#
|
946
|
-
# @param request [Google::Cloud::Vision::V1p3beta1::UpdateProductRequest, Hash]
|
955
|
+
# @param request [::Google::Cloud::Vision::V1p3beta1::UpdateProductRequest, ::Hash]
|
947
956
|
# A request object representing the call parameters. Required. To specify no
|
948
957
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
949
|
-
# @param options [Gapic::CallOptions, Hash]
|
958
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
950
959
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
951
960
|
#
|
952
961
|
# @overload update_product(product: nil, update_mask: nil)
|
@@ -954,37 +963,37 @@ module Google
|
|
954
963
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
955
964
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
956
965
|
#
|
957
|
-
# @param product [Google::Cloud::Vision::V1p3beta1::Product, Hash]
|
966
|
+
# @param product [::Google::Cloud::Vision::V1p3beta1::Product, ::Hash]
|
958
967
|
# Required. The Product resource which replaces the one on the server.
|
959
968
|
# product.name is immutable.
|
960
|
-
# @param update_mask [Google::Protobuf::FieldMask, Hash]
|
961
|
-
# The {Google::Protobuf::FieldMask FieldMask} that specifies which fields
|
969
|
+
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
970
|
+
# The {::Google::Protobuf::FieldMask FieldMask} that specifies which fields
|
962
971
|
# to update.
|
963
972
|
# If update_mask isn't specified, all mutable fields are to be updated.
|
964
973
|
# Valid mask paths include `product_labels`, `display_name`, and
|
965
974
|
# `description`.
|
966
975
|
#
|
967
976
|
# @yield [response, operation] Access the result along with the RPC operation
|
968
|
-
# @yieldparam response [Google::Cloud::Vision::V1p3beta1::Product]
|
969
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
977
|
+
# @yieldparam response [::Google::Cloud::Vision::V1p3beta1::Product]
|
978
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
970
979
|
#
|
971
|
-
# @return [Google::Cloud::Vision::V1p3beta1::Product]
|
980
|
+
# @return [::Google::Cloud::Vision::V1p3beta1::Product]
|
972
981
|
#
|
973
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
982
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
974
983
|
#
|
975
984
|
def update_product request, options = nil
|
976
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
985
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
977
986
|
|
978
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::Vision::V1p3beta1::UpdateProductRequest
|
987
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Vision::V1p3beta1::UpdateProductRequest
|
979
988
|
|
980
989
|
# Converts hash and nil to an options object
|
981
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
990
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
982
991
|
|
983
992
|
# Customize the options with defaults
|
984
993
|
metadata = @config.rpcs.update_product.metadata.to_h
|
985
994
|
|
986
995
|
# Set x-goog-api-client and x-goog-user-project headers
|
987
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
996
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
988
997
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
989
998
|
gapic_version: ::Google::Cloud::Vision::V1p3beta1::VERSION
|
990
999
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -1005,8 +1014,8 @@ module Google
|
|
1005
1014
|
yield response, operation if block_given?
|
1006
1015
|
return response
|
1007
1016
|
end
|
1008
|
-
rescue GRPC::BadStatus => e
|
1009
|
-
raise Google::Cloud::Error.from_error(e)
|
1017
|
+
rescue ::GRPC::BadStatus => e
|
1018
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1010
1019
|
end
|
1011
1020
|
|
1012
1021
|
##
|
@@ -1022,12 +1031,12 @@ module Google
|
|
1022
1031
|
#
|
1023
1032
|
# @overload delete_product(request, options = nil)
|
1024
1033
|
# Pass arguments to `delete_product` via a request object, either of type
|
1025
|
-
# {Google::Cloud::Vision::V1p3beta1::DeleteProductRequest} or an equivalent Hash.
|
1034
|
+
# {::Google::Cloud::Vision::V1p3beta1::DeleteProductRequest} or an equivalent Hash.
|
1026
1035
|
#
|
1027
|
-
# @param request [Google::Cloud::Vision::V1p3beta1::DeleteProductRequest, Hash]
|
1036
|
+
# @param request [::Google::Cloud::Vision::V1p3beta1::DeleteProductRequest, ::Hash]
|
1028
1037
|
# A request object representing the call parameters. Required. To specify no
|
1029
1038
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1030
|
-
# @param options [Gapic::CallOptions, Hash]
|
1039
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1031
1040
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
1032
1041
|
#
|
1033
1042
|
# @overload delete_product(name: nil)
|
@@ -1035,33 +1044,33 @@ module Google
|
|
1035
1044
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
1036
1045
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
1037
1046
|
#
|
1038
|
-
# @param name [String]
|
1047
|
+
# @param name [::String]
|
1039
1048
|
# Required. Resource name of product to delete.
|
1040
1049
|
#
|
1041
1050
|
# Format is:
|
1042
1051
|
# `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
|
1043
1052
|
#
|
1044
1053
|
# @yield [response, operation] Access the result along with the RPC operation
|
1045
|
-
# @yieldparam response [Google::Protobuf::Empty]
|
1046
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
1054
|
+
# @yieldparam response [::Google::Protobuf::Empty]
|
1055
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
1047
1056
|
#
|
1048
|
-
# @return [Google::Protobuf::Empty]
|
1057
|
+
# @return [::Google::Protobuf::Empty]
|
1049
1058
|
#
|
1050
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
1059
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1051
1060
|
#
|
1052
1061
|
def delete_product request, options = nil
|
1053
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
1062
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1054
1063
|
|
1055
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::Vision::V1p3beta1::DeleteProductRequest
|
1064
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Vision::V1p3beta1::DeleteProductRequest
|
1056
1065
|
|
1057
1066
|
# Converts hash and nil to an options object
|
1058
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1067
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1059
1068
|
|
1060
1069
|
# Customize the options with defaults
|
1061
1070
|
metadata = @config.rpcs.delete_product.metadata.to_h
|
1062
1071
|
|
1063
1072
|
# Set x-goog-api-client and x-goog-user-project headers
|
1064
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
1073
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1065
1074
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1066
1075
|
gapic_version: ::Google::Cloud::Vision::V1p3beta1::VERSION
|
1067
1076
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -1082,8 +1091,8 @@ module Google
|
|
1082
1091
|
yield response, operation if block_given?
|
1083
1092
|
return response
|
1084
1093
|
end
|
1085
|
-
rescue GRPC::BadStatus => e
|
1086
|
-
raise Google::Cloud::Error.from_error(e)
|
1094
|
+
rescue ::GRPC::BadStatus => e
|
1095
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1087
1096
|
end
|
1088
1097
|
|
1089
1098
|
##
|
@@ -1109,12 +1118,12 @@ module Google
|
|
1109
1118
|
#
|
1110
1119
|
# @overload create_reference_image(request, options = nil)
|
1111
1120
|
# Pass arguments to `create_reference_image` via a request object, either of type
|
1112
|
-
# {Google::Cloud::Vision::V1p3beta1::CreateReferenceImageRequest} or an equivalent Hash.
|
1121
|
+
# {::Google::Cloud::Vision::V1p3beta1::CreateReferenceImageRequest} or an equivalent Hash.
|
1113
1122
|
#
|
1114
|
-
# @param request [Google::Cloud::Vision::V1p3beta1::CreateReferenceImageRequest, Hash]
|
1123
|
+
# @param request [::Google::Cloud::Vision::V1p3beta1::CreateReferenceImageRequest, ::Hash]
|
1115
1124
|
# A request object representing the call parameters. Required. To specify no
|
1116
1125
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1117
|
-
# @param options [Gapic::CallOptions, Hash]
|
1126
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1118
1127
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
1119
1128
|
#
|
1120
1129
|
# @overload create_reference_image(parent: nil, reference_image: nil, reference_image_id: nil)
|
@@ -1122,41 +1131,41 @@ module Google
|
|
1122
1131
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
1123
1132
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
1124
1133
|
#
|
1125
|
-
# @param parent [String]
|
1134
|
+
# @param parent [::String]
|
1126
1135
|
# Required. Resource name of the product in which to create the reference image.
|
1127
1136
|
#
|
1128
1137
|
# Format is
|
1129
1138
|
# `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
|
1130
|
-
# @param reference_image [Google::Cloud::Vision::V1p3beta1::ReferenceImage, Hash]
|
1139
|
+
# @param reference_image [::Google::Cloud::Vision::V1p3beta1::ReferenceImage, ::Hash]
|
1131
1140
|
# Required. The reference image to create.
|
1132
1141
|
# If an image ID is specified, it is ignored.
|
1133
|
-
# @param reference_image_id [String]
|
1142
|
+
# @param reference_image_id [::String]
|
1134
1143
|
# A user-supplied resource id for the ReferenceImage to be added. If set,
|
1135
1144
|
# the server will attempt to use this value as the resource id. If it is
|
1136
1145
|
# already in use, an error is returned with code ALREADY_EXISTS. Must be at
|
1137
1146
|
# most 128 characters long. It cannot contain the character `/`.
|
1138
1147
|
#
|
1139
1148
|
# @yield [response, operation] Access the result along with the RPC operation
|
1140
|
-
# @yieldparam response [Google::Cloud::Vision::V1p3beta1::ReferenceImage]
|
1141
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
1149
|
+
# @yieldparam response [::Google::Cloud::Vision::V1p3beta1::ReferenceImage]
|
1150
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
1142
1151
|
#
|
1143
|
-
# @return [Google::Cloud::Vision::V1p3beta1::ReferenceImage]
|
1152
|
+
# @return [::Google::Cloud::Vision::V1p3beta1::ReferenceImage]
|
1144
1153
|
#
|
1145
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
1154
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1146
1155
|
#
|
1147
1156
|
def create_reference_image request, options = nil
|
1148
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
1157
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1149
1158
|
|
1150
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::Vision::V1p3beta1::CreateReferenceImageRequest
|
1159
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Vision::V1p3beta1::CreateReferenceImageRequest
|
1151
1160
|
|
1152
1161
|
# Converts hash and nil to an options object
|
1153
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1162
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1154
1163
|
|
1155
1164
|
# Customize the options with defaults
|
1156
1165
|
metadata = @config.rpcs.create_reference_image.metadata.to_h
|
1157
1166
|
|
1158
1167
|
# Set x-goog-api-client and x-goog-user-project headers
|
1159
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
1168
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1160
1169
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1161
1170
|
gapic_version: ::Google::Cloud::Vision::V1p3beta1::VERSION
|
1162
1171
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -1177,8 +1186,8 @@ module Google
|
|
1177
1186
|
yield response, operation if block_given?
|
1178
1187
|
return response
|
1179
1188
|
end
|
1180
|
-
rescue GRPC::BadStatus => e
|
1181
|
-
raise Google::Cloud::Error.from_error(e)
|
1189
|
+
rescue ::GRPC::BadStatus => e
|
1190
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1182
1191
|
end
|
1183
1192
|
|
1184
1193
|
##
|
@@ -1196,12 +1205,12 @@ module Google
|
|
1196
1205
|
#
|
1197
1206
|
# @overload delete_reference_image(request, options = nil)
|
1198
1207
|
# Pass arguments to `delete_reference_image` via a request object, either of type
|
1199
|
-
# {Google::Cloud::Vision::V1p3beta1::DeleteReferenceImageRequest} or an equivalent Hash.
|
1208
|
+
# {::Google::Cloud::Vision::V1p3beta1::DeleteReferenceImageRequest} or an equivalent Hash.
|
1200
1209
|
#
|
1201
|
-
# @param request [Google::Cloud::Vision::V1p3beta1::DeleteReferenceImageRequest, Hash]
|
1210
|
+
# @param request [::Google::Cloud::Vision::V1p3beta1::DeleteReferenceImageRequest, ::Hash]
|
1202
1211
|
# A request object representing the call parameters. Required. To specify no
|
1203
1212
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1204
|
-
# @param options [Gapic::CallOptions, Hash]
|
1213
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1205
1214
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
1206
1215
|
#
|
1207
1216
|
# @overload delete_reference_image(name: nil)
|
@@ -1209,7 +1218,7 @@ module Google
|
|
1209
1218
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
1210
1219
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
1211
1220
|
#
|
1212
|
-
# @param name [String]
|
1221
|
+
# @param name [::String]
|
1213
1222
|
# Required. The resource name of the reference image to delete.
|
1214
1223
|
#
|
1215
1224
|
# Format is:
|
@@ -1217,26 +1226,26 @@ module Google
|
|
1217
1226
|
# `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`
|
1218
1227
|
#
|
1219
1228
|
# @yield [response, operation] Access the result along with the RPC operation
|
1220
|
-
# @yieldparam response [Google::Protobuf::Empty]
|
1221
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
1229
|
+
# @yieldparam response [::Google::Protobuf::Empty]
|
1230
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
1222
1231
|
#
|
1223
|
-
# @return [Google::Protobuf::Empty]
|
1232
|
+
# @return [::Google::Protobuf::Empty]
|
1224
1233
|
#
|
1225
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
1234
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1226
1235
|
#
|
1227
1236
|
def delete_reference_image request, options = nil
|
1228
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
1237
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1229
1238
|
|
1230
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::Vision::V1p3beta1::DeleteReferenceImageRequest
|
1239
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Vision::V1p3beta1::DeleteReferenceImageRequest
|
1231
1240
|
|
1232
1241
|
# Converts hash and nil to an options object
|
1233
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1242
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1234
1243
|
|
1235
1244
|
# Customize the options with defaults
|
1236
1245
|
metadata = @config.rpcs.delete_reference_image.metadata.to_h
|
1237
1246
|
|
1238
1247
|
# Set x-goog-api-client and x-goog-user-project headers
|
1239
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
1248
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1240
1249
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1241
1250
|
gapic_version: ::Google::Cloud::Vision::V1p3beta1::VERSION
|
1242
1251
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -1257,8 +1266,8 @@ module Google
|
|
1257
1266
|
yield response, operation if block_given?
|
1258
1267
|
return response
|
1259
1268
|
end
|
1260
|
-
rescue GRPC::BadStatus => e
|
1261
|
-
raise Google::Cloud::Error.from_error(e)
|
1269
|
+
rescue ::GRPC::BadStatus => e
|
1270
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1262
1271
|
end
|
1263
1272
|
|
1264
1273
|
##
|
@@ -1272,12 +1281,12 @@ module Google
|
|
1272
1281
|
#
|
1273
1282
|
# @overload list_reference_images(request, options = nil)
|
1274
1283
|
# Pass arguments to `list_reference_images` via a request object, either of type
|
1275
|
-
# {Google::Cloud::Vision::V1p3beta1::ListReferenceImagesRequest} or an equivalent Hash.
|
1284
|
+
# {::Google::Cloud::Vision::V1p3beta1::ListReferenceImagesRequest} or an equivalent Hash.
|
1276
1285
|
#
|
1277
|
-
# @param request [Google::Cloud::Vision::V1p3beta1::ListReferenceImagesRequest, Hash]
|
1286
|
+
# @param request [::Google::Cloud::Vision::V1p3beta1::ListReferenceImagesRequest, ::Hash]
|
1278
1287
|
# A request object representing the call parameters. Required. To specify no
|
1279
1288
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1280
|
-
# @param options [Gapic::CallOptions, Hash]
|
1289
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1281
1290
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
1282
1291
|
#
|
1283
1292
|
# @overload list_reference_images(parent: nil, page_size: nil, page_token: nil)
|
@@ -1285,40 +1294,40 @@ module Google
|
|
1285
1294
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
1286
1295
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
1287
1296
|
#
|
1288
|
-
# @param parent [String]
|
1297
|
+
# @param parent [::String]
|
1289
1298
|
# Required. Resource name of the product containing the reference images.
|
1290
1299
|
#
|
1291
1300
|
# Format is
|
1292
1301
|
# `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
|
1293
|
-
# @param page_size [Integer]
|
1302
|
+
# @param page_size [::Integer]
|
1294
1303
|
# The maximum number of items to return. Default 10, maximum 100.
|
1295
|
-
# @param page_token [String]
|
1304
|
+
# @param page_token [::String]
|
1296
1305
|
# A token identifying a page of results to be returned. This is the value
|
1297
1306
|
# of `nextPageToken` returned in a previous reference image list request.
|
1298
1307
|
#
|
1299
1308
|
# Defaults to the first page if not specified.
|
1300
1309
|
#
|
1301
1310
|
# @yield [response, operation] Access the result along with the RPC operation
|
1302
|
-
# @yieldparam response [Gapic::PagedEnumerable
|
1303
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
1311
|
+
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Vision::V1p3beta1::ReferenceImage>]
|
1312
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
1304
1313
|
#
|
1305
|
-
# @return [Gapic::PagedEnumerable
|
1314
|
+
# @return [::Gapic::PagedEnumerable<::Google::Cloud::Vision::V1p3beta1::ReferenceImage>]
|
1306
1315
|
#
|
1307
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
1316
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1308
1317
|
#
|
1309
1318
|
def list_reference_images request, options = nil
|
1310
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
1319
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1311
1320
|
|
1312
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::Vision::V1p3beta1::ListReferenceImagesRequest
|
1321
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Vision::V1p3beta1::ListReferenceImagesRequest
|
1313
1322
|
|
1314
1323
|
# Converts hash and nil to an options object
|
1315
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1324
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1316
1325
|
|
1317
1326
|
# Customize the options with defaults
|
1318
1327
|
metadata = @config.rpcs.list_reference_images.metadata.to_h
|
1319
1328
|
|
1320
1329
|
# Set x-goog-api-client and x-goog-user-project headers
|
1321
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
1330
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1322
1331
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1323
1332
|
gapic_version: ::Google::Cloud::Vision::V1p3beta1::VERSION
|
1324
1333
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -1336,12 +1345,12 @@ module Google
|
|
1336
1345
|
retry_policy: @config.retry_policy
|
1337
1346
|
|
1338
1347
|
@product_search_stub.call_rpc :list_reference_images, request, options: options do |response, operation|
|
1339
|
-
response = Gapic::PagedEnumerable.new @product_search_stub, :list_reference_images, request, response, operation, options
|
1348
|
+
response = ::Gapic::PagedEnumerable.new @product_search_stub, :list_reference_images, request, response, operation, options
|
1340
1349
|
yield response, operation if block_given?
|
1341
1350
|
return response
|
1342
1351
|
end
|
1343
|
-
rescue GRPC::BadStatus => e
|
1344
|
-
raise Google::Cloud::Error.from_error(e)
|
1352
|
+
rescue ::GRPC::BadStatus => e
|
1353
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1345
1354
|
end
|
1346
1355
|
|
1347
1356
|
##
|
@@ -1353,12 +1362,12 @@ module Google
|
|
1353
1362
|
#
|
1354
1363
|
# @overload get_reference_image(request, options = nil)
|
1355
1364
|
# Pass arguments to `get_reference_image` via a request object, either of type
|
1356
|
-
# {Google::Cloud::Vision::V1p3beta1::GetReferenceImageRequest} or an equivalent Hash.
|
1365
|
+
# {::Google::Cloud::Vision::V1p3beta1::GetReferenceImageRequest} or an equivalent Hash.
|
1357
1366
|
#
|
1358
|
-
# @param request [Google::Cloud::Vision::V1p3beta1::GetReferenceImageRequest, Hash]
|
1367
|
+
# @param request [::Google::Cloud::Vision::V1p3beta1::GetReferenceImageRequest, ::Hash]
|
1359
1368
|
# A request object representing the call parameters. Required. To specify no
|
1360
1369
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1361
|
-
# @param options [Gapic::CallOptions, Hash]
|
1370
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1362
1371
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
1363
1372
|
#
|
1364
1373
|
# @overload get_reference_image(name: nil)
|
@@ -1366,7 +1375,7 @@ module Google
|
|
1366
1375
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
1367
1376
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
1368
1377
|
#
|
1369
|
-
# @param name [String]
|
1378
|
+
# @param name [::String]
|
1370
1379
|
# Required. The resource name of the ReferenceImage to get.
|
1371
1380
|
#
|
1372
1381
|
# Format is:
|
@@ -1374,26 +1383,26 @@ module Google
|
|
1374
1383
|
# `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`.
|
1375
1384
|
#
|
1376
1385
|
# @yield [response, operation] Access the result along with the RPC operation
|
1377
|
-
# @yieldparam response [Google::Cloud::Vision::V1p3beta1::ReferenceImage]
|
1378
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
1386
|
+
# @yieldparam response [::Google::Cloud::Vision::V1p3beta1::ReferenceImage]
|
1387
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
1379
1388
|
#
|
1380
|
-
# @return [Google::Cloud::Vision::V1p3beta1::ReferenceImage]
|
1389
|
+
# @return [::Google::Cloud::Vision::V1p3beta1::ReferenceImage]
|
1381
1390
|
#
|
1382
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
1391
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1383
1392
|
#
|
1384
1393
|
def get_reference_image request, options = nil
|
1385
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
1394
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1386
1395
|
|
1387
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::Vision::V1p3beta1::GetReferenceImageRequest
|
1396
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Vision::V1p3beta1::GetReferenceImageRequest
|
1388
1397
|
|
1389
1398
|
# Converts hash and nil to an options object
|
1390
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1399
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1391
1400
|
|
1392
1401
|
# Customize the options with defaults
|
1393
1402
|
metadata = @config.rpcs.get_reference_image.metadata.to_h
|
1394
1403
|
|
1395
1404
|
# Set x-goog-api-client and x-goog-user-project headers
|
1396
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
1405
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1397
1406
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1398
1407
|
gapic_version: ::Google::Cloud::Vision::V1p3beta1::VERSION
|
1399
1408
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -1414,8 +1423,8 @@ module Google
|
|
1414
1423
|
yield response, operation if block_given?
|
1415
1424
|
return response
|
1416
1425
|
end
|
1417
|
-
rescue GRPC::BadStatus => e
|
1418
|
-
raise Google::Cloud::Error.from_error(e)
|
1426
|
+
rescue ::GRPC::BadStatus => e
|
1427
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1419
1428
|
end
|
1420
1429
|
|
1421
1430
|
##
|
@@ -1430,12 +1439,12 @@ module Google
|
|
1430
1439
|
#
|
1431
1440
|
# @overload add_product_to_product_set(request, options = nil)
|
1432
1441
|
# Pass arguments to `add_product_to_product_set` via a request object, either of type
|
1433
|
-
# {Google::Cloud::Vision::V1p3beta1::AddProductToProductSetRequest} or an equivalent Hash.
|
1442
|
+
# {::Google::Cloud::Vision::V1p3beta1::AddProductToProductSetRequest} or an equivalent Hash.
|
1434
1443
|
#
|
1435
|
-
# @param request [Google::Cloud::Vision::V1p3beta1::AddProductToProductSetRequest, Hash]
|
1444
|
+
# @param request [::Google::Cloud::Vision::V1p3beta1::AddProductToProductSetRequest, ::Hash]
|
1436
1445
|
# A request object representing the call parameters. Required. To specify no
|
1437
1446
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1438
|
-
# @param options [Gapic::CallOptions, Hash]
|
1447
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1439
1448
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
1440
1449
|
#
|
1441
1450
|
# @overload add_product_to_product_set(name: nil, product: nil)
|
@@ -1443,38 +1452,38 @@ module Google
|
|
1443
1452
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
1444
1453
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
1445
1454
|
#
|
1446
|
-
# @param name [String]
|
1455
|
+
# @param name [::String]
|
1447
1456
|
# Required. The resource name for the ProductSet to modify.
|
1448
1457
|
#
|
1449
1458
|
# Format is:
|
1450
1459
|
# `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
|
1451
|
-
# @param product [String]
|
1460
|
+
# @param product [::String]
|
1452
1461
|
# Required. The resource name for the Product to be added to this ProductSet.
|
1453
1462
|
#
|
1454
1463
|
# Format is:
|
1455
1464
|
# `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
|
1456
1465
|
#
|
1457
1466
|
# @yield [response, operation] Access the result along with the RPC operation
|
1458
|
-
# @yieldparam response [Google::Protobuf::Empty]
|
1459
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
1467
|
+
# @yieldparam response [::Google::Protobuf::Empty]
|
1468
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
1460
1469
|
#
|
1461
|
-
# @return [Google::Protobuf::Empty]
|
1470
|
+
# @return [::Google::Protobuf::Empty]
|
1462
1471
|
#
|
1463
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
1472
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1464
1473
|
#
|
1465
1474
|
def add_product_to_product_set request, options = nil
|
1466
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
1475
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1467
1476
|
|
1468
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::Vision::V1p3beta1::AddProductToProductSetRequest
|
1477
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Vision::V1p3beta1::AddProductToProductSetRequest
|
1469
1478
|
|
1470
1479
|
# Converts hash and nil to an options object
|
1471
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1480
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1472
1481
|
|
1473
1482
|
# Customize the options with defaults
|
1474
1483
|
metadata = @config.rpcs.add_product_to_product_set.metadata.to_h
|
1475
1484
|
|
1476
1485
|
# Set x-goog-api-client and x-goog-user-project headers
|
1477
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
1486
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1478
1487
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1479
1488
|
gapic_version: ::Google::Cloud::Vision::V1p3beta1::VERSION
|
1480
1489
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -1495,8 +1504,8 @@ module Google
|
|
1495
1504
|
yield response, operation if block_given?
|
1496
1505
|
return response
|
1497
1506
|
end
|
1498
|
-
rescue GRPC::BadStatus => e
|
1499
|
-
raise Google::Cloud::Error.from_error(e)
|
1507
|
+
rescue ::GRPC::BadStatus => e
|
1508
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1500
1509
|
end
|
1501
1510
|
|
1502
1511
|
##
|
@@ -1508,12 +1517,12 @@ module Google
|
|
1508
1517
|
#
|
1509
1518
|
# @overload remove_product_from_product_set(request, options = nil)
|
1510
1519
|
# Pass arguments to `remove_product_from_product_set` via a request object, either of type
|
1511
|
-
# {Google::Cloud::Vision::V1p3beta1::RemoveProductFromProductSetRequest} or an equivalent Hash.
|
1520
|
+
# {::Google::Cloud::Vision::V1p3beta1::RemoveProductFromProductSetRequest} or an equivalent Hash.
|
1512
1521
|
#
|
1513
|
-
# @param request [Google::Cloud::Vision::V1p3beta1::RemoveProductFromProductSetRequest, Hash]
|
1522
|
+
# @param request [::Google::Cloud::Vision::V1p3beta1::RemoveProductFromProductSetRequest, ::Hash]
|
1514
1523
|
# A request object representing the call parameters. Required. To specify no
|
1515
1524
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1516
|
-
# @param options [Gapic::CallOptions, Hash]
|
1525
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1517
1526
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
1518
1527
|
#
|
1519
1528
|
# @overload remove_product_from_product_set(name: nil, product: nil)
|
@@ -1521,38 +1530,38 @@ module Google
|
|
1521
1530
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
1522
1531
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
1523
1532
|
#
|
1524
|
-
# @param name [String]
|
1533
|
+
# @param name [::String]
|
1525
1534
|
# Required. The resource name for the ProductSet to modify.
|
1526
1535
|
#
|
1527
1536
|
# Format is:
|
1528
1537
|
# `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
|
1529
|
-
# @param product [String]
|
1538
|
+
# @param product [::String]
|
1530
1539
|
# Required. The resource name for the Product to be removed from this ProductSet.
|
1531
1540
|
#
|
1532
1541
|
# Format is:
|
1533
1542
|
# `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
|
1534
1543
|
#
|
1535
1544
|
# @yield [response, operation] Access the result along with the RPC operation
|
1536
|
-
# @yieldparam response [Google::Protobuf::Empty]
|
1537
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
1545
|
+
# @yieldparam response [::Google::Protobuf::Empty]
|
1546
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
1538
1547
|
#
|
1539
|
-
# @return [Google::Protobuf::Empty]
|
1548
|
+
# @return [::Google::Protobuf::Empty]
|
1540
1549
|
#
|
1541
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
1550
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1542
1551
|
#
|
1543
1552
|
def remove_product_from_product_set request, options = nil
|
1544
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
1553
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1545
1554
|
|
1546
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::Vision::V1p3beta1::RemoveProductFromProductSetRequest
|
1555
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Vision::V1p3beta1::RemoveProductFromProductSetRequest
|
1547
1556
|
|
1548
1557
|
# Converts hash and nil to an options object
|
1549
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1558
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1550
1559
|
|
1551
1560
|
# Customize the options with defaults
|
1552
1561
|
metadata = @config.rpcs.remove_product_from_product_set.metadata.to_h
|
1553
1562
|
|
1554
1563
|
# Set x-goog-api-client and x-goog-user-project headers
|
1555
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
1564
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1556
1565
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1557
1566
|
gapic_version: ::Google::Cloud::Vision::V1p3beta1::VERSION
|
1558
1567
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -1573,8 +1582,8 @@ module Google
|
|
1573
1582
|
yield response, operation if block_given?
|
1574
1583
|
return response
|
1575
1584
|
end
|
1576
|
-
rescue GRPC::BadStatus => e
|
1577
|
-
raise Google::Cloud::Error.from_error(e)
|
1585
|
+
rescue ::GRPC::BadStatus => e
|
1586
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1578
1587
|
end
|
1579
1588
|
|
1580
1589
|
##
|
@@ -1588,12 +1597,12 @@ module Google
|
|
1588
1597
|
#
|
1589
1598
|
# @overload list_products_in_product_set(request, options = nil)
|
1590
1599
|
# Pass arguments to `list_products_in_product_set` via a request object, either of type
|
1591
|
-
# {Google::Cloud::Vision::V1p3beta1::ListProductsInProductSetRequest} or an equivalent Hash.
|
1600
|
+
# {::Google::Cloud::Vision::V1p3beta1::ListProductsInProductSetRequest} or an equivalent Hash.
|
1592
1601
|
#
|
1593
|
-
# @param request [Google::Cloud::Vision::V1p3beta1::ListProductsInProductSetRequest, Hash]
|
1602
|
+
# @param request [::Google::Cloud::Vision::V1p3beta1::ListProductsInProductSetRequest, ::Hash]
|
1594
1603
|
# A request object representing the call parameters. Required. To specify no
|
1595
1604
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1596
|
-
# @param options [Gapic::CallOptions, Hash]
|
1605
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1597
1606
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
1598
1607
|
#
|
1599
1608
|
# @overload list_products_in_product_set(name: nil, page_size: nil, page_token: nil)
|
@@ -1601,37 +1610,37 @@ module Google
|
|
1601
1610
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
1602
1611
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
1603
1612
|
#
|
1604
|
-
# @param name [String]
|
1613
|
+
# @param name [::String]
|
1605
1614
|
# Required. The ProductSet resource for which to retrieve Products.
|
1606
1615
|
#
|
1607
1616
|
# Format is:
|
1608
1617
|
# `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
|
1609
|
-
# @param page_size [Integer]
|
1618
|
+
# @param page_size [::Integer]
|
1610
1619
|
# The maximum number of items to return. Default 10, maximum 100.
|
1611
|
-
# @param page_token [String]
|
1620
|
+
# @param page_token [::String]
|
1612
1621
|
# The next_page_token returned from a previous List request, if any.
|
1613
1622
|
#
|
1614
1623
|
# @yield [response, operation] Access the result along with the RPC operation
|
1615
|
-
# @yieldparam response [Gapic::PagedEnumerable
|
1616
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
1624
|
+
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Vision::V1p3beta1::Product>]
|
1625
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
1617
1626
|
#
|
1618
|
-
# @return [Gapic::PagedEnumerable
|
1627
|
+
# @return [::Gapic::PagedEnumerable<::Google::Cloud::Vision::V1p3beta1::Product>]
|
1619
1628
|
#
|
1620
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
1629
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1621
1630
|
#
|
1622
1631
|
def list_products_in_product_set request, options = nil
|
1623
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
1632
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1624
1633
|
|
1625
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::Vision::V1p3beta1::ListProductsInProductSetRequest
|
1634
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Vision::V1p3beta1::ListProductsInProductSetRequest
|
1626
1635
|
|
1627
1636
|
# Converts hash and nil to an options object
|
1628
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1637
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1629
1638
|
|
1630
1639
|
# Customize the options with defaults
|
1631
1640
|
metadata = @config.rpcs.list_products_in_product_set.metadata.to_h
|
1632
1641
|
|
1633
1642
|
# Set x-goog-api-client and x-goog-user-project headers
|
1634
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
1643
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1635
1644
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1636
1645
|
gapic_version: ::Google::Cloud::Vision::V1p3beta1::VERSION
|
1637
1646
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -1649,35 +1658,35 @@ module Google
|
|
1649
1658
|
retry_policy: @config.retry_policy
|
1650
1659
|
|
1651
1660
|
@product_search_stub.call_rpc :list_products_in_product_set, request, options: options do |response, operation|
|
1652
|
-
response = Gapic::PagedEnumerable.new @product_search_stub, :list_products_in_product_set, request, response, operation, options
|
1661
|
+
response = ::Gapic::PagedEnumerable.new @product_search_stub, :list_products_in_product_set, request, response, operation, options
|
1653
1662
|
yield response, operation if block_given?
|
1654
1663
|
return response
|
1655
1664
|
end
|
1656
|
-
rescue GRPC::BadStatus => e
|
1657
|
-
raise Google::Cloud::Error.from_error(e)
|
1665
|
+
rescue ::GRPC::BadStatus => e
|
1666
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1658
1667
|
end
|
1659
1668
|
|
1660
1669
|
##
|
1661
1670
|
# Asynchronous API that imports a list of reference images to specified
|
1662
1671
|
# product sets based on a list of image information.
|
1663
1672
|
#
|
1664
|
-
# The {Google::Longrunning::Operation google.longrunning.Operation} API can be
|
1673
|
+
# The {::Google::Longrunning::Operation google.longrunning.Operation} API can be
|
1665
1674
|
# used to keep track of the progress and results of the request.
|
1666
1675
|
# `Operation.metadata` contains `BatchOperationMetadata`. (progress)
|
1667
1676
|
# `Operation.response` contains `ImportProductSetsResponse`. (results)
|
1668
1677
|
#
|
1669
1678
|
# The input source of this method is a csv file on Google Cloud Storage.
|
1670
1679
|
# For the format of the csv file please see
|
1671
|
-
# {Google::Cloud::Vision::V1p3beta1::ImportProductSetsGcsSource#csv_file_uri ImportProductSetsGcsSource.csv_file_uri}.
|
1680
|
+
# {::Google::Cloud::Vision::V1p3beta1::ImportProductSetsGcsSource#csv_file_uri ImportProductSetsGcsSource.csv_file_uri}.
|
1672
1681
|
#
|
1673
1682
|
# @overload import_product_sets(request, options = nil)
|
1674
1683
|
# Pass arguments to `import_product_sets` via a request object, either of type
|
1675
|
-
# {Google::Cloud::Vision::V1p3beta1::ImportProductSetsRequest} or an equivalent Hash.
|
1684
|
+
# {::Google::Cloud::Vision::V1p3beta1::ImportProductSetsRequest} or an equivalent Hash.
|
1676
1685
|
#
|
1677
|
-
# @param request [Google::Cloud::Vision::V1p3beta1::ImportProductSetsRequest, Hash]
|
1686
|
+
# @param request [::Google::Cloud::Vision::V1p3beta1::ImportProductSetsRequest, ::Hash]
|
1678
1687
|
# A request object representing the call parameters. Required. To specify no
|
1679
1688
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1680
|
-
# @param options [Gapic::CallOptions, Hash]
|
1689
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1681
1690
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
1682
1691
|
#
|
1683
1692
|
# @overload import_product_sets(parent: nil, input_config: nil)
|
@@ -1685,34 +1694,34 @@ module Google
|
|
1685
1694
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
1686
1695
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
1687
1696
|
#
|
1688
|
-
# @param parent [String]
|
1697
|
+
# @param parent [::String]
|
1689
1698
|
# Required. The project in which the ProductSets should be imported.
|
1690
1699
|
#
|
1691
1700
|
# Format is `projects/PROJECT_ID/locations/LOC_ID`.
|
1692
|
-
# @param input_config [Google::Cloud::Vision::V1p3beta1::ImportProductSetsInputConfig, Hash]
|
1701
|
+
# @param input_config [::Google::Cloud::Vision::V1p3beta1::ImportProductSetsInputConfig, ::Hash]
|
1693
1702
|
# Required. The input content for the list of requests.
|
1694
1703
|
#
|
1695
1704
|
# @yield [response, operation] Access the result along with the RPC operation
|
1696
|
-
# @yieldparam response [Gapic::Operation]
|
1697
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
1705
|
+
# @yieldparam response [::Gapic::Operation]
|
1706
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
1698
1707
|
#
|
1699
|
-
# @return [Gapic::Operation]
|
1708
|
+
# @return [::Gapic::Operation]
|
1700
1709
|
#
|
1701
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
1710
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1702
1711
|
#
|
1703
1712
|
def import_product_sets request, options = nil
|
1704
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
1713
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1705
1714
|
|
1706
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::Vision::V1p3beta1::ImportProductSetsRequest
|
1715
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Vision::V1p3beta1::ImportProductSetsRequest
|
1707
1716
|
|
1708
1717
|
# Converts hash and nil to an options object
|
1709
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1718
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1710
1719
|
|
1711
1720
|
# Customize the options with defaults
|
1712
1721
|
metadata = @config.rpcs.import_product_sets.metadata.to_h
|
1713
1722
|
|
1714
1723
|
# Set x-goog-api-client and x-goog-user-project headers
|
1715
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
1724
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1716
1725
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1717
1726
|
gapic_version: ::Google::Cloud::Vision::V1p3beta1::VERSION
|
1718
1727
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -1730,12 +1739,12 @@ module Google
|
|
1730
1739
|
retry_policy: @config.retry_policy
|
1731
1740
|
|
1732
1741
|
@product_search_stub.call_rpc :import_product_sets, request, options: options do |response, operation|
|
1733
|
-
response = Gapic::Operation.new response, @operations_client, options: options
|
1742
|
+
response = ::Gapic::Operation.new response, @operations_client, options: options
|
1734
1743
|
yield response, operation if block_given?
|
1735
1744
|
return response
|
1736
1745
|
end
|
1737
|
-
rescue GRPC::BadStatus => e
|
1738
|
-
raise Google::Cloud::Error.from_error(e)
|
1746
|
+
rescue ::GRPC::BadStatus => e
|
1747
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1739
1748
|
end
|
1740
1749
|
|
1741
1750
|
##
|
@@ -1745,7 +1754,7 @@ module Google
|
|
1745
1754
|
# providing control over timeouts, retry behavior, logging, transport
|
1746
1755
|
# parameters, and other low-level controls. Certain parameters can also be
|
1747
1756
|
# applied individually to specific RPCs. See
|
1748
|
-
# {Google::Cloud::Vision::V1p3beta1::ProductSearch::Client::Configuration::Rpcs}
|
1757
|
+
# {::Google::Cloud::Vision::V1p3beta1::ProductSearch::Client::Configuration::Rpcs}
|
1749
1758
|
# for a list of RPCs that can be configured independently.
|
1750
1759
|
#
|
1751
1760
|
# Configuration can be applied globally to all clients, or to a single client
|
@@ -1756,22 +1765,22 @@ module Google
|
|
1756
1765
|
# To modify the global config, setting the timeout for create_product_set
|
1757
1766
|
# to 20 seconds, and all remaining timeouts to 10 seconds:
|
1758
1767
|
#
|
1759
|
-
# Google::Cloud::Vision::V1p3beta1::ProductSearch::Client.configure do |config|
|
1760
|
-
# config.timeout =
|
1761
|
-
# config.rpcs.create_product_set.timeout =
|
1768
|
+
# ::Google::Cloud::Vision::V1p3beta1::ProductSearch::Client.configure do |config|
|
1769
|
+
# config.timeout = 10.0
|
1770
|
+
# config.rpcs.create_product_set.timeout = 20.0
|
1762
1771
|
# end
|
1763
1772
|
#
|
1764
1773
|
# To apply the above configuration only to a new client:
|
1765
1774
|
#
|
1766
|
-
# client = Google::Cloud::Vision::V1p3beta1::ProductSearch::Client.new do |config|
|
1767
|
-
# config.timeout =
|
1768
|
-
# config.rpcs.create_product_set.timeout =
|
1775
|
+
# client = ::Google::Cloud::Vision::V1p3beta1::ProductSearch::Client.new do |config|
|
1776
|
+
# config.timeout = 10.0
|
1777
|
+
# config.rpcs.create_product_set.timeout = 20.0
|
1769
1778
|
# end
|
1770
1779
|
#
|
1771
1780
|
# @!attribute [rw] endpoint
|
1772
1781
|
# The hostname or hostname:port of the service endpoint.
|
1773
1782
|
# Defaults to `"vision.googleapis.com"`.
|
1774
|
-
# @return [String]
|
1783
|
+
# @return [::String]
|
1775
1784
|
# @!attribute [rw] credentials
|
1776
1785
|
# Credentials to send with calls. You may provide any of the following types:
|
1777
1786
|
# * (`String`) The path to a service account key file in JSON format
|
@@ -1783,29 +1792,29 @@ module Google
|
|
1783
1792
|
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
1784
1793
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
1785
1794
|
# * (`nil`) indicating no credentials
|
1786
|
-
# @return [Object]
|
1795
|
+
# @return [::Object]
|
1787
1796
|
# @!attribute [rw] scope
|
1788
1797
|
# The OAuth scopes
|
1789
|
-
# @return [Array
|
1798
|
+
# @return [::Array<::String>]
|
1790
1799
|
# @!attribute [rw] lib_name
|
1791
1800
|
# The library name as recorded in instrumentation and logging
|
1792
|
-
# @return [String]
|
1801
|
+
# @return [::String]
|
1793
1802
|
# @!attribute [rw] lib_version
|
1794
1803
|
# The library version as recorded in instrumentation and logging
|
1795
|
-
# @return [String]
|
1804
|
+
# @return [::String]
|
1796
1805
|
# @!attribute [rw] channel_args
|
1797
1806
|
# Extra parameters passed to the gRPC channel. Note: this is ignored if a
|
1798
1807
|
# `GRPC::Core::Channel` object is provided as the credential.
|
1799
|
-
# @return [Hash]
|
1808
|
+
# @return [::Hash]
|
1800
1809
|
# @!attribute [rw] interceptors
|
1801
1810
|
# An array of interceptors that are run before calls are executed.
|
1802
|
-
# @return [Array
|
1811
|
+
# @return [::Array<::GRPC::ClientInterceptor>]
|
1803
1812
|
# @!attribute [rw] timeout
|
1804
|
-
# The call timeout in
|
1805
|
-
# @return [Numeric]
|
1813
|
+
# The call timeout in seconds.
|
1814
|
+
# @return [::Numeric]
|
1806
1815
|
# @!attribute [rw] metadata
|
1807
1816
|
# Additional gRPC headers to be sent with the call.
|
1808
|
-
# @return [Hash{Symbol
|
1817
|
+
# @return [::Hash{::Symbol=>::String}]
|
1809
1818
|
# @!attribute [rw] retry_policy
|
1810
1819
|
# The retry policy. The value is a hash with the following keys:
|
1811
1820
|
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
@@ -1813,25 +1822,29 @@ module Google
|
|
1813
1822
|
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
1814
1823
|
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
1815
1824
|
# trigger a retry.
|
1816
|
-
# @return [Hash]
|
1825
|
+
# @return [::Hash]
|
1826
|
+
# @!attribute [rw] quota_project
|
1827
|
+
# A separate project against which to charge quota.
|
1828
|
+
# @return [::String]
|
1817
1829
|
#
|
1818
1830
|
class Configuration
|
1819
|
-
extend Gapic::Config
|
1831
|
+
extend ::Gapic::Config
|
1820
1832
|
|
1821
|
-
config_attr :endpoint,
|
1822
|
-
config_attr :credentials,
|
1833
|
+
config_attr :endpoint, "vision.googleapis.com", ::String
|
1834
|
+
config_attr :credentials, nil do |value|
|
1823
1835
|
allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
1824
1836
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
1825
1837
|
allowed.any? { |klass| klass === value }
|
1826
1838
|
end
|
1827
|
-
config_attr :scope,
|
1828
|
-
config_attr :lib_name,
|
1829
|
-
config_attr :lib_version,
|
1830
|
-
config_attr(:channel_args,
|
1831
|
-
config_attr :interceptors,
|
1832
|
-
config_attr :timeout,
|
1833
|
-
config_attr :metadata,
|
1834
|
-
config_attr :retry_policy,
|
1839
|
+
config_attr :scope, nil, ::String, ::Array, nil
|
1840
|
+
config_attr :lib_name, nil, ::String, nil
|
1841
|
+
config_attr :lib_version, nil, ::String, nil
|
1842
|
+
config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
|
1843
|
+
config_attr :interceptors, nil, ::Array, nil
|
1844
|
+
config_attr :timeout, nil, ::Numeric, nil
|
1845
|
+
config_attr :metadata, nil, ::Hash, nil
|
1846
|
+
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
1847
|
+
config_attr :quota_project, nil, ::String, nil
|
1835
1848
|
|
1836
1849
|
# @private
|
1837
1850
|
def initialize parent_config = nil
|
@@ -1847,7 +1860,7 @@ module Google
|
|
1847
1860
|
def rpcs
|
1848
1861
|
@rpcs ||= begin
|
1849
1862
|
parent_rpcs = nil
|
1850
|
-
parent_rpcs = @parent_config.rpcs if @parent_config&.respond_to?
|
1863
|
+
parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config&.respond_to?(:rpcs)
|
1851
1864
|
Rpcs.new parent_rpcs
|
1852
1865
|
end
|
1853
1866
|
end
|
@@ -1872,133 +1885,133 @@ module Google
|
|
1872
1885
|
class Rpcs
|
1873
1886
|
##
|
1874
1887
|
# RPC-specific configuration for `create_product_set`
|
1875
|
-
# @return [Gapic::Config::Method]
|
1888
|
+
# @return [::Gapic::Config::Method]
|
1876
1889
|
#
|
1877
1890
|
attr_reader :create_product_set
|
1878
1891
|
##
|
1879
1892
|
# RPC-specific configuration for `list_product_sets`
|
1880
|
-
# @return [Gapic::Config::Method]
|
1893
|
+
# @return [::Gapic::Config::Method]
|
1881
1894
|
#
|
1882
1895
|
attr_reader :list_product_sets
|
1883
1896
|
##
|
1884
1897
|
# RPC-specific configuration for `get_product_set`
|
1885
|
-
# @return [Gapic::Config::Method]
|
1898
|
+
# @return [::Gapic::Config::Method]
|
1886
1899
|
#
|
1887
1900
|
attr_reader :get_product_set
|
1888
1901
|
##
|
1889
1902
|
# RPC-specific configuration for `update_product_set`
|
1890
|
-
# @return [Gapic::Config::Method]
|
1903
|
+
# @return [::Gapic::Config::Method]
|
1891
1904
|
#
|
1892
1905
|
attr_reader :update_product_set
|
1893
1906
|
##
|
1894
1907
|
# RPC-specific configuration for `delete_product_set`
|
1895
|
-
# @return [Gapic::Config::Method]
|
1908
|
+
# @return [::Gapic::Config::Method]
|
1896
1909
|
#
|
1897
1910
|
attr_reader :delete_product_set
|
1898
1911
|
##
|
1899
1912
|
# RPC-specific configuration for `create_product`
|
1900
|
-
# @return [Gapic::Config::Method]
|
1913
|
+
# @return [::Gapic::Config::Method]
|
1901
1914
|
#
|
1902
1915
|
attr_reader :create_product
|
1903
1916
|
##
|
1904
1917
|
# RPC-specific configuration for `list_products`
|
1905
|
-
# @return [Gapic::Config::Method]
|
1918
|
+
# @return [::Gapic::Config::Method]
|
1906
1919
|
#
|
1907
1920
|
attr_reader :list_products
|
1908
1921
|
##
|
1909
1922
|
# RPC-specific configuration for `get_product`
|
1910
|
-
# @return [Gapic::Config::Method]
|
1923
|
+
# @return [::Gapic::Config::Method]
|
1911
1924
|
#
|
1912
1925
|
attr_reader :get_product
|
1913
1926
|
##
|
1914
1927
|
# RPC-specific configuration for `update_product`
|
1915
|
-
# @return [Gapic::Config::Method]
|
1928
|
+
# @return [::Gapic::Config::Method]
|
1916
1929
|
#
|
1917
1930
|
attr_reader :update_product
|
1918
1931
|
##
|
1919
1932
|
# RPC-specific configuration for `delete_product`
|
1920
|
-
# @return [Gapic::Config::Method]
|
1933
|
+
# @return [::Gapic::Config::Method]
|
1921
1934
|
#
|
1922
1935
|
attr_reader :delete_product
|
1923
1936
|
##
|
1924
1937
|
# RPC-specific configuration for `create_reference_image`
|
1925
|
-
# @return [Gapic::Config::Method]
|
1938
|
+
# @return [::Gapic::Config::Method]
|
1926
1939
|
#
|
1927
1940
|
attr_reader :create_reference_image
|
1928
1941
|
##
|
1929
1942
|
# RPC-specific configuration for `delete_reference_image`
|
1930
|
-
# @return [Gapic::Config::Method]
|
1943
|
+
# @return [::Gapic::Config::Method]
|
1931
1944
|
#
|
1932
1945
|
attr_reader :delete_reference_image
|
1933
1946
|
##
|
1934
1947
|
# RPC-specific configuration for `list_reference_images`
|
1935
|
-
# @return [Gapic::Config::Method]
|
1948
|
+
# @return [::Gapic::Config::Method]
|
1936
1949
|
#
|
1937
1950
|
attr_reader :list_reference_images
|
1938
1951
|
##
|
1939
1952
|
# RPC-specific configuration for `get_reference_image`
|
1940
|
-
# @return [Gapic::Config::Method]
|
1953
|
+
# @return [::Gapic::Config::Method]
|
1941
1954
|
#
|
1942
1955
|
attr_reader :get_reference_image
|
1943
1956
|
##
|
1944
1957
|
# RPC-specific configuration for `add_product_to_product_set`
|
1945
|
-
# @return [Gapic::Config::Method]
|
1958
|
+
# @return [::Gapic::Config::Method]
|
1946
1959
|
#
|
1947
1960
|
attr_reader :add_product_to_product_set
|
1948
1961
|
##
|
1949
1962
|
# RPC-specific configuration for `remove_product_from_product_set`
|
1950
|
-
# @return [Gapic::Config::Method]
|
1963
|
+
# @return [::Gapic::Config::Method]
|
1951
1964
|
#
|
1952
1965
|
attr_reader :remove_product_from_product_set
|
1953
1966
|
##
|
1954
1967
|
# RPC-specific configuration for `list_products_in_product_set`
|
1955
|
-
# @return [Gapic::Config::Method]
|
1968
|
+
# @return [::Gapic::Config::Method]
|
1956
1969
|
#
|
1957
1970
|
attr_reader :list_products_in_product_set
|
1958
1971
|
##
|
1959
1972
|
# RPC-specific configuration for `import_product_sets`
|
1960
|
-
# @return [Gapic::Config::Method]
|
1973
|
+
# @return [::Gapic::Config::Method]
|
1961
1974
|
#
|
1962
1975
|
attr_reader :import_product_sets
|
1963
1976
|
|
1964
1977
|
# @private
|
1965
1978
|
def initialize parent_rpcs = nil
|
1966
1979
|
create_product_set_config = parent_rpcs&.create_product_set if parent_rpcs&.respond_to? :create_product_set
|
1967
|
-
@create_product_set = Gapic::Config::Method.new create_product_set_config
|
1980
|
+
@create_product_set = ::Gapic::Config::Method.new create_product_set_config
|
1968
1981
|
list_product_sets_config = parent_rpcs&.list_product_sets if parent_rpcs&.respond_to? :list_product_sets
|
1969
|
-
@list_product_sets = Gapic::Config::Method.new list_product_sets_config
|
1982
|
+
@list_product_sets = ::Gapic::Config::Method.new list_product_sets_config
|
1970
1983
|
get_product_set_config = parent_rpcs&.get_product_set if parent_rpcs&.respond_to? :get_product_set
|
1971
|
-
@get_product_set = Gapic::Config::Method.new get_product_set_config
|
1984
|
+
@get_product_set = ::Gapic::Config::Method.new get_product_set_config
|
1972
1985
|
update_product_set_config = parent_rpcs&.update_product_set if parent_rpcs&.respond_to? :update_product_set
|
1973
|
-
@update_product_set = Gapic::Config::Method.new update_product_set_config
|
1986
|
+
@update_product_set = ::Gapic::Config::Method.new update_product_set_config
|
1974
1987
|
delete_product_set_config = parent_rpcs&.delete_product_set if parent_rpcs&.respond_to? :delete_product_set
|
1975
|
-
@delete_product_set = Gapic::Config::Method.new delete_product_set_config
|
1988
|
+
@delete_product_set = ::Gapic::Config::Method.new delete_product_set_config
|
1976
1989
|
create_product_config = parent_rpcs&.create_product if parent_rpcs&.respond_to? :create_product
|
1977
|
-
@create_product = Gapic::Config::Method.new create_product_config
|
1990
|
+
@create_product = ::Gapic::Config::Method.new create_product_config
|
1978
1991
|
list_products_config = parent_rpcs&.list_products if parent_rpcs&.respond_to? :list_products
|
1979
|
-
@list_products = Gapic::Config::Method.new list_products_config
|
1992
|
+
@list_products = ::Gapic::Config::Method.new list_products_config
|
1980
1993
|
get_product_config = parent_rpcs&.get_product if parent_rpcs&.respond_to? :get_product
|
1981
|
-
@get_product = Gapic::Config::Method.new get_product_config
|
1994
|
+
@get_product = ::Gapic::Config::Method.new get_product_config
|
1982
1995
|
update_product_config = parent_rpcs&.update_product if parent_rpcs&.respond_to? :update_product
|
1983
|
-
@update_product = Gapic::Config::Method.new update_product_config
|
1996
|
+
@update_product = ::Gapic::Config::Method.new update_product_config
|
1984
1997
|
delete_product_config = parent_rpcs&.delete_product if parent_rpcs&.respond_to? :delete_product
|
1985
|
-
@delete_product = Gapic::Config::Method.new delete_product_config
|
1998
|
+
@delete_product = ::Gapic::Config::Method.new delete_product_config
|
1986
1999
|
create_reference_image_config = parent_rpcs&.create_reference_image if parent_rpcs&.respond_to? :create_reference_image
|
1987
|
-
@create_reference_image = Gapic::Config::Method.new create_reference_image_config
|
2000
|
+
@create_reference_image = ::Gapic::Config::Method.new create_reference_image_config
|
1988
2001
|
delete_reference_image_config = parent_rpcs&.delete_reference_image if parent_rpcs&.respond_to? :delete_reference_image
|
1989
|
-
@delete_reference_image = Gapic::Config::Method.new delete_reference_image_config
|
2002
|
+
@delete_reference_image = ::Gapic::Config::Method.new delete_reference_image_config
|
1990
2003
|
list_reference_images_config = parent_rpcs&.list_reference_images if parent_rpcs&.respond_to? :list_reference_images
|
1991
|
-
@list_reference_images = Gapic::Config::Method.new list_reference_images_config
|
2004
|
+
@list_reference_images = ::Gapic::Config::Method.new list_reference_images_config
|
1992
2005
|
get_reference_image_config = parent_rpcs&.get_reference_image if parent_rpcs&.respond_to? :get_reference_image
|
1993
|
-
@get_reference_image = Gapic::Config::Method.new get_reference_image_config
|
2006
|
+
@get_reference_image = ::Gapic::Config::Method.new get_reference_image_config
|
1994
2007
|
add_product_to_product_set_config = parent_rpcs&.add_product_to_product_set if parent_rpcs&.respond_to? :add_product_to_product_set
|
1995
|
-
@add_product_to_product_set = Gapic::Config::Method.new add_product_to_product_set_config
|
2008
|
+
@add_product_to_product_set = ::Gapic::Config::Method.new add_product_to_product_set_config
|
1996
2009
|
remove_product_from_product_set_config = parent_rpcs&.remove_product_from_product_set if parent_rpcs&.respond_to? :remove_product_from_product_set
|
1997
|
-
@remove_product_from_product_set = Gapic::Config::Method.new remove_product_from_product_set_config
|
2010
|
+
@remove_product_from_product_set = ::Gapic::Config::Method.new remove_product_from_product_set_config
|
1998
2011
|
list_products_in_product_set_config = parent_rpcs&.list_products_in_product_set if parent_rpcs&.respond_to? :list_products_in_product_set
|
1999
|
-
@list_products_in_product_set = Gapic::Config::Method.new list_products_in_product_set_config
|
2012
|
+
@list_products_in_product_set = ::Gapic::Config::Method.new list_products_in_product_set_config
|
2000
2013
|
import_product_sets_config = parent_rpcs&.import_product_sets if parent_rpcs&.respond_to? :import_product_sets
|
2001
|
-
@import_product_sets = Gapic::Config::Method.new import_product_sets_config
|
2014
|
+
@import_product_sets = ::Gapic::Config::Method.new import_product_sets_config
|
2002
2015
|
|
2003
2016
|
yield self if block_given?
|
2004
2017
|
end
|