google-cloud-vision-v1p3beta1 0.1.4 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (32) hide show
  1. checksums.yaml +4 -4
  2. data/AUTHENTICATION.md +6 -6
  3. data/README.md +1 -1
  4. data/lib/google/cloud/vision/v1p3beta1.rb +1 -1
  5. data/lib/google/cloud/vision/v1p3beta1/image_annotator.rb +1 -1
  6. data/lib/google/cloud/vision/v1p3beta1/image_annotator/client.rb +70 -70
  7. data/lib/google/cloud/vision/v1p3beta1/image_annotator/credentials.rb +1 -1
  8. data/lib/google/cloud/vision/v1p3beta1/image_annotator/operations.rb +100 -100
  9. data/lib/google/cloud/vision/v1p3beta1/image_annotator/paths.rb +3 -3
  10. data/lib/google/cloud/vision/v1p3beta1/product_search.rb +4 -4
  11. data/lib/google/cloud/vision/v1p3beta1/product_search/client.rb +356 -356
  12. data/lib/google/cloud/vision/v1p3beta1/product_search/credentials.rb +1 -1
  13. data/lib/google/cloud/vision/v1p3beta1/product_search/operations.rb +100 -100
  14. data/lib/google/cloud/vision/v1p3beta1/product_search/paths.rb +12 -12
  15. data/lib/google/cloud/vision/v1p3beta1/version.rb +1 -1
  16. data/proto_docs/google/api/resource.rb +12 -12
  17. data/proto_docs/google/cloud/vision/v1p3beta1/geometry.rb +20 -20
  18. data/proto_docs/google/cloud/vision/v1p3beta1/image_annotator.rb +172 -172
  19. data/proto_docs/google/cloud/vision/v1p3beta1/product_search.rb +29 -29
  20. data/proto_docs/google/cloud/vision/v1p3beta1/product_search_service.rb +133 -133
  21. data/proto_docs/google/cloud/vision/v1p3beta1/text_annotation.rb +49 -49
  22. data/proto_docs/google/cloud/vision/v1p3beta1/web_detection.rb +28 -28
  23. data/proto_docs/google/longrunning/operations.rb +30 -30
  24. data/proto_docs/google/protobuf/any.rb +4 -4
  25. data/proto_docs/google/protobuf/empty.rb +2 -2
  26. data/proto_docs/google/protobuf/field_mask.rb +3 -3
  27. data/proto_docs/google/protobuf/timestamp.rb +4 -4
  28. data/proto_docs/google/protobuf/wrappers.rb +27 -27
  29. data/proto_docs/google/rpc/status.rb +6 -6
  30. data/proto_docs/google/type/color.rb +6 -6
  31. data/proto_docs/google/type/latlng.rb +4 -4
  32. metadata +2 -2
@@ -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 = 10_000
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 = 10_000
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.
@@ -294,8 +294,8 @@ module Google
294
294
  config.endpoint = @config.endpoint
295
295
  end
296
296
 
297
- @product_search_stub = Gapic::ServiceStub.new(
298
- Google::Cloud::Vision::V1p3beta1::ProductSearch::Stub,
297
+ @product_search_stub = ::Gapic::ServiceStub.new(
298
+ ::Google::Cloud::Vision::V1p3beta1::ProductSearch::Stub,
299
299
  credentials: credentials,
300
300
  endpoint: @config.endpoint,
301
301
  channel_args: @config.channel_args,
@@ -306,7 +306,7 @@ module Google
306
306
  ##
307
307
  # Get the associated client for long-running operations.
308
308
  #
309
- # @return [Google::Cloud::Vision::V1p3beta1::ProductSearch::Operations]
309
+ # @return [::Google::Cloud::Vision::V1p3beta1::ProductSearch::Operations]
310
310
  #
311
311
  attr_reader :operations_client
312
312
 
@@ -322,12 +322,12 @@ module Google
322
322
  #
323
323
  # @overload create_product_set(request, options = nil)
324
324
  # Pass arguments to `create_product_set` via a request object, either of type
325
- # {Google::Cloud::Vision::V1p3beta1::CreateProductSetRequest} or an equivalent Hash.
325
+ # {::Google::Cloud::Vision::V1p3beta1::CreateProductSetRequest} or an equivalent Hash.
326
326
  #
327
- # @param request [Google::Cloud::Vision::V1p3beta1::CreateProductSetRequest, Hash]
327
+ # @param request [::Google::Cloud::Vision::V1p3beta1::CreateProductSetRequest, ::Hash]
328
328
  # A request object representing the call parameters. Required. To specify no
329
329
  # parameters, or to keep all the default parameter values, pass an empty Hash.
330
- # @param options [Gapic::CallOptions, Hash]
330
+ # @param options [::Gapic::CallOptions, ::Hash]
331
331
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
332
332
  #
333
333
  # @overload create_product_set(parent: nil, product_set: nil, product_set_id: nil)
@@ -335,39 +335,39 @@ module Google
335
335
  # least one keyword argument is required. To specify no parameters, or to keep all
336
336
  # the default parameter values, pass an empty Hash as a request object (see above).
337
337
  #
338
- # @param parent [String]
338
+ # @param parent [::String]
339
339
  # Required. The project in which the ProductSet should be created.
340
340
  #
341
341
  # Format is `projects/PROJECT_ID/locations/LOC_ID`.
342
- # @param product_set [Google::Cloud::Vision::V1p3beta1::ProductSet, Hash]
342
+ # @param product_set [::Google::Cloud::Vision::V1p3beta1::ProductSet, ::Hash]
343
343
  # Required. The ProductSet to create.
344
- # @param product_set_id [String]
344
+ # @param product_set_id [::String]
345
345
  # A user-supplied resource id for this ProductSet. If set, the server will
346
346
  # attempt to use this value as the resource id. If it is already in use, an
347
347
  # error is returned with code ALREADY_EXISTS. Must be at most 128 characters
348
348
  # long. It cannot contain the character `/`.
349
349
  #
350
350
  # @yield [response, operation] Access the result along with the RPC operation
351
- # @yieldparam response [Google::Cloud::Vision::V1p3beta1::ProductSet]
352
- # @yieldparam operation [GRPC::ActiveCall::Operation]
351
+ # @yieldparam response [::Google::Cloud::Vision::V1p3beta1::ProductSet]
352
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
353
353
  #
354
- # @return [Google::Cloud::Vision::V1p3beta1::ProductSet]
354
+ # @return [::Google::Cloud::Vision::V1p3beta1::ProductSet]
355
355
  #
356
- # @raise [Google::Cloud::Error] if the RPC is aborted.
356
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
357
357
  #
358
358
  def create_product_set request, options = nil
359
- raise ArgumentError, "request must be provided" if request.nil?
359
+ raise ::ArgumentError, "request must be provided" if request.nil?
360
360
 
361
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Vision::V1p3beta1::CreateProductSetRequest
361
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Vision::V1p3beta1::CreateProductSetRequest
362
362
 
363
363
  # Converts hash and nil to an options object
364
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
364
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
365
365
 
366
366
  # Customize the options with defaults
367
367
  metadata = @config.rpcs.create_product_set.metadata.to_h
368
368
 
369
369
  # Set x-goog-api-client and x-goog-user-project headers
370
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
370
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
371
371
  lib_name: @config.lib_name, lib_version: @config.lib_version,
372
372
  gapic_version: ::Google::Cloud::Vision::V1p3beta1::VERSION
373
373
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -388,8 +388,8 @@ module Google
388
388
  yield response, operation if block_given?
389
389
  return response
390
390
  end
391
- rescue GRPC::BadStatus => e
392
- raise Google::Cloud::Error.from_error(e)
391
+ rescue ::GRPC::BadStatus => e
392
+ raise ::Google::Cloud::Error.from_error(e)
393
393
  end
394
394
 
395
395
  ##
@@ -402,12 +402,12 @@ module Google
402
402
  #
403
403
  # @overload list_product_sets(request, options = nil)
404
404
  # Pass arguments to `list_product_sets` via a request object, either of type
405
- # {Google::Cloud::Vision::V1p3beta1::ListProductSetsRequest} or an equivalent Hash.
405
+ # {::Google::Cloud::Vision::V1p3beta1::ListProductSetsRequest} or an equivalent Hash.
406
406
  #
407
- # @param request [Google::Cloud::Vision::V1p3beta1::ListProductSetsRequest, Hash]
407
+ # @param request [::Google::Cloud::Vision::V1p3beta1::ListProductSetsRequest, ::Hash]
408
408
  # A request object representing the call parameters. Required. To specify no
409
409
  # parameters, or to keep all the default parameter values, pass an empty Hash.
410
- # @param options [Gapic::CallOptions, Hash]
410
+ # @param options [::Gapic::CallOptions, ::Hash]
411
411
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
412
412
  #
413
413
  # @overload list_product_sets(parent: nil, page_size: nil, page_token: nil)
@@ -415,36 +415,36 @@ module Google
415
415
  # least one keyword argument is required. To specify no parameters, or to keep all
416
416
  # the default parameter values, pass an empty Hash as a request object (see above).
417
417
  #
418
- # @param parent [String]
418
+ # @param parent [::String]
419
419
  # Required. The project from which ProductSets should be listed.
420
420
  #
421
421
  # Format is `projects/PROJECT_ID/locations/LOC_ID`.
422
- # @param page_size [Integer]
422
+ # @param page_size [::Integer]
423
423
  # The maximum number of items to return. Default 10, maximum 100.
424
- # @param page_token [String]
424
+ # @param page_token [::String]
425
425
  # The next_page_token returned from a previous List request, if any.
426
426
  #
427
427
  # @yield [response, operation] Access the result along with the RPC operation
428
- # @yieldparam response [Gapic::PagedEnumerable<Google::Cloud::Vision::V1p3beta1::ProductSet>]
429
- # @yieldparam operation [GRPC::ActiveCall::Operation]
428
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Vision::V1p3beta1::ProductSet>]
429
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
430
430
  #
431
- # @return [Gapic::PagedEnumerable<Google::Cloud::Vision::V1p3beta1::ProductSet>]
431
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::Vision::V1p3beta1::ProductSet>]
432
432
  #
433
- # @raise [Google::Cloud::Error] if the RPC is aborted.
433
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
434
434
  #
435
435
  def list_product_sets request, options = nil
436
- raise ArgumentError, "request must be provided" if request.nil?
436
+ raise ::ArgumentError, "request must be provided" if request.nil?
437
437
 
438
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Vision::V1p3beta1::ListProductSetsRequest
438
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Vision::V1p3beta1::ListProductSetsRequest
439
439
 
440
440
  # Converts hash and nil to an options object
441
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
441
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
442
442
 
443
443
  # Customize the options with defaults
444
444
  metadata = @config.rpcs.list_product_sets.metadata.to_h
445
445
 
446
446
  # Set x-goog-api-client and x-goog-user-project headers
447
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
447
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
448
448
  lib_name: @config.lib_name, lib_version: @config.lib_version,
449
449
  gapic_version: ::Google::Cloud::Vision::V1p3beta1::VERSION
450
450
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -462,12 +462,12 @@ module Google
462
462
  retry_policy: @config.retry_policy
463
463
 
464
464
  @product_search_stub.call_rpc :list_product_sets, request, options: options do |response, operation|
465
- response = Gapic::PagedEnumerable.new @product_search_stub, :list_product_sets, request, response, operation, options
465
+ response = ::Gapic::PagedEnumerable.new @product_search_stub, :list_product_sets, request, response, operation, options
466
466
  yield response, operation if block_given?
467
467
  return response
468
468
  end
469
- rescue GRPC::BadStatus => e
470
- raise Google::Cloud::Error.from_error(e)
469
+ rescue ::GRPC::BadStatus => e
470
+ raise ::Google::Cloud::Error.from_error(e)
471
471
  end
472
472
 
473
473
  ##
@@ -479,12 +479,12 @@ module Google
479
479
  #
480
480
  # @overload get_product_set(request, options = nil)
481
481
  # Pass arguments to `get_product_set` via a request object, either of type
482
- # {Google::Cloud::Vision::V1p3beta1::GetProductSetRequest} or an equivalent Hash.
482
+ # {::Google::Cloud::Vision::V1p3beta1::GetProductSetRequest} or an equivalent Hash.
483
483
  #
484
- # @param request [Google::Cloud::Vision::V1p3beta1::GetProductSetRequest, Hash]
484
+ # @param request [::Google::Cloud::Vision::V1p3beta1::GetProductSetRequest, ::Hash]
485
485
  # A request object representing the call parameters. Required. To specify no
486
486
  # parameters, or to keep all the default parameter values, pass an empty Hash.
487
- # @param options [Gapic::CallOptions, Hash]
487
+ # @param options [::Gapic::CallOptions, ::Hash]
488
488
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
489
489
  #
490
490
  # @overload get_product_set(name: nil)
@@ -492,33 +492,33 @@ module Google
492
492
  # least one keyword argument is required. To specify no parameters, or to keep all
493
493
  # the default parameter values, pass an empty Hash as a request object (see above).
494
494
  #
495
- # @param name [String]
495
+ # @param name [::String]
496
496
  # Required. Resource name of the ProductSet to get.
497
497
  #
498
498
  # Format is:
499
499
  # `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
500
500
  #
501
501
  # @yield [response, operation] Access the result along with the RPC operation
502
- # @yieldparam response [Google::Cloud::Vision::V1p3beta1::ProductSet]
503
- # @yieldparam operation [GRPC::ActiveCall::Operation]
502
+ # @yieldparam response [::Google::Cloud::Vision::V1p3beta1::ProductSet]
503
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
504
504
  #
505
- # @return [Google::Cloud::Vision::V1p3beta1::ProductSet]
505
+ # @return [::Google::Cloud::Vision::V1p3beta1::ProductSet]
506
506
  #
507
- # @raise [Google::Cloud::Error] if the RPC is aborted.
507
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
508
508
  #
509
509
  def get_product_set request, options = nil
510
- raise ArgumentError, "request must be provided" if request.nil?
510
+ raise ::ArgumentError, "request must be provided" if request.nil?
511
511
 
512
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Vision::V1p3beta1::GetProductSetRequest
512
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Vision::V1p3beta1::GetProductSetRequest
513
513
 
514
514
  # Converts hash and nil to an options object
515
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
515
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
516
516
 
517
517
  # Customize the options with defaults
518
518
  metadata = @config.rpcs.get_product_set.metadata.to_h
519
519
 
520
520
  # Set x-goog-api-client and x-goog-user-project headers
521
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
521
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
522
522
  lib_name: @config.lib_name, lib_version: @config.lib_version,
523
523
  gapic_version: ::Google::Cloud::Vision::V1p3beta1::VERSION
524
524
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -539,8 +539,8 @@ module Google
539
539
  yield response, operation if block_given?
540
540
  return response
541
541
  end
542
- rescue GRPC::BadStatus => e
543
- raise Google::Cloud::Error.from_error(e)
542
+ rescue ::GRPC::BadStatus => e
543
+ raise ::Google::Cloud::Error.from_error(e)
544
544
  end
545
545
 
546
546
  ##
@@ -555,12 +555,12 @@ module Google
555
555
  #
556
556
  # @overload update_product_set(request, options = nil)
557
557
  # Pass arguments to `update_product_set` via a request object, either of type
558
- # {Google::Cloud::Vision::V1p3beta1::UpdateProductSetRequest} or an equivalent Hash.
558
+ # {::Google::Cloud::Vision::V1p3beta1::UpdateProductSetRequest} or an equivalent Hash.
559
559
  #
560
- # @param request [Google::Cloud::Vision::V1p3beta1::UpdateProductSetRequest, Hash]
560
+ # @param request [::Google::Cloud::Vision::V1p3beta1::UpdateProductSetRequest, ::Hash]
561
561
  # A request object representing the call parameters. Required. To specify no
562
562
  # parameters, or to keep all the default parameter values, pass an empty Hash.
563
- # @param options [Gapic::CallOptions, Hash]
563
+ # @param options [::Gapic::CallOptions, ::Hash]
564
564
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
565
565
  #
566
566
  # @overload update_product_set(product_set: nil, update_mask: nil)
@@ -568,35 +568,35 @@ module Google
568
568
  # least one keyword argument is required. To specify no parameters, or to keep all
569
569
  # the default parameter values, pass an empty Hash as a request object (see above).
570
570
  #
571
- # @param product_set [Google::Cloud::Vision::V1p3beta1::ProductSet, Hash]
571
+ # @param product_set [::Google::Cloud::Vision::V1p3beta1::ProductSet, ::Hash]
572
572
  # Required. The ProductSet resource which replaces the one on the server.
573
- # @param update_mask [Google::Protobuf::FieldMask, Hash]
574
- # The {Google::Protobuf::FieldMask FieldMask} that specifies which fields to
573
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
574
+ # The {::Google::Protobuf::FieldMask FieldMask} that specifies which fields to
575
575
  # update.
576
576
  # If update_mask isn't specified, all mutable fields are to be updated.
577
577
  # Valid mask path is `display_name`.
578
578
  #
579
579
  # @yield [response, operation] Access the result along with the RPC operation
580
- # @yieldparam response [Google::Cloud::Vision::V1p3beta1::ProductSet]
581
- # @yieldparam operation [GRPC::ActiveCall::Operation]
580
+ # @yieldparam response [::Google::Cloud::Vision::V1p3beta1::ProductSet]
581
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
582
582
  #
583
- # @return [Google::Cloud::Vision::V1p3beta1::ProductSet]
583
+ # @return [::Google::Cloud::Vision::V1p3beta1::ProductSet]
584
584
  #
585
- # @raise [Google::Cloud::Error] if the RPC is aborted.
585
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
586
586
  #
587
587
  def update_product_set request, options = nil
588
- raise ArgumentError, "request must be provided" if request.nil?
588
+ raise ::ArgumentError, "request must be provided" if request.nil?
589
589
 
590
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Vision::V1p3beta1::UpdateProductSetRequest
590
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Vision::V1p3beta1::UpdateProductSetRequest
591
591
 
592
592
  # Converts hash and nil to an options object
593
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
593
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
594
594
 
595
595
  # Customize the options with defaults
596
596
  metadata = @config.rpcs.update_product_set.metadata.to_h
597
597
 
598
598
  # Set x-goog-api-client and x-goog-user-project headers
599
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
599
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
600
600
  lib_name: @config.lib_name, lib_version: @config.lib_version,
601
601
  gapic_version: ::Google::Cloud::Vision::V1p3beta1::VERSION
602
602
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -617,8 +617,8 @@ module Google
617
617
  yield response, operation if block_given?
618
618
  return response
619
619
  end
620
- rescue GRPC::BadStatus => e
621
- raise Google::Cloud::Error.from_error(e)
620
+ rescue ::GRPC::BadStatus => e
621
+ raise ::Google::Cloud::Error.from_error(e)
622
622
  end
623
623
 
624
624
  ##
@@ -633,12 +633,12 @@ module Google
633
633
  #
634
634
  # @overload delete_product_set(request, options = nil)
635
635
  # Pass arguments to `delete_product_set` via a request object, either of type
636
- # {Google::Cloud::Vision::V1p3beta1::DeleteProductSetRequest} or an equivalent Hash.
636
+ # {::Google::Cloud::Vision::V1p3beta1::DeleteProductSetRequest} or an equivalent Hash.
637
637
  #
638
- # @param request [Google::Cloud::Vision::V1p3beta1::DeleteProductSetRequest, Hash]
638
+ # @param request [::Google::Cloud::Vision::V1p3beta1::DeleteProductSetRequest, ::Hash]
639
639
  # A request object representing the call parameters. Required. To specify no
640
640
  # parameters, or to keep all the default parameter values, pass an empty Hash.
641
- # @param options [Gapic::CallOptions, Hash]
641
+ # @param options [::Gapic::CallOptions, ::Hash]
642
642
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
643
643
  #
644
644
  # @overload delete_product_set(name: nil)
@@ -646,33 +646,33 @@ module Google
646
646
  # least one keyword argument is required. To specify no parameters, or to keep all
647
647
  # the default parameter values, pass an empty Hash as a request object (see above).
648
648
  #
649
- # @param name [String]
649
+ # @param name [::String]
650
650
  # Required. Resource name of the ProductSet to delete.
651
651
  #
652
652
  # Format is:
653
653
  # `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
654
654
  #
655
655
  # @yield [response, operation] Access the result along with the RPC operation
656
- # @yieldparam response [Google::Protobuf::Empty]
657
- # @yieldparam operation [GRPC::ActiveCall::Operation]
656
+ # @yieldparam response [::Google::Protobuf::Empty]
657
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
658
658
  #
659
- # @return [Google::Protobuf::Empty]
659
+ # @return [::Google::Protobuf::Empty]
660
660
  #
661
- # @raise [Google::Cloud::Error] if the RPC is aborted.
661
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
662
662
  #
663
663
  def delete_product_set request, options = nil
664
- raise ArgumentError, "request must be provided" if request.nil?
664
+ raise ::ArgumentError, "request must be provided" if request.nil?
665
665
 
666
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Vision::V1p3beta1::DeleteProductSetRequest
666
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Vision::V1p3beta1::DeleteProductSetRequest
667
667
 
668
668
  # Converts hash and nil to an options object
669
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
669
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
670
670
 
671
671
  # Customize the options with defaults
672
672
  metadata = @config.rpcs.delete_product_set.metadata.to_h
673
673
 
674
674
  # Set x-goog-api-client and x-goog-user-project headers
675
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
675
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
676
676
  lib_name: @config.lib_name, lib_version: @config.lib_version,
677
677
  gapic_version: ::Google::Cloud::Vision::V1p3beta1::VERSION
678
678
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -693,8 +693,8 @@ module Google
693
693
  yield response, operation if block_given?
694
694
  return response
695
695
  end
696
- rescue GRPC::BadStatus => e
697
- raise Google::Cloud::Error.from_error(e)
696
+ rescue ::GRPC::BadStatus => e
697
+ raise ::Google::Cloud::Error.from_error(e)
698
698
  end
699
699
 
700
700
  ##
@@ -709,12 +709,12 @@ module Google
709
709
  #
710
710
  # @overload create_product(request, options = nil)
711
711
  # Pass arguments to `create_product` via a request object, either of type
712
- # {Google::Cloud::Vision::V1p3beta1::CreateProductRequest} or an equivalent Hash.
712
+ # {::Google::Cloud::Vision::V1p3beta1::CreateProductRequest} or an equivalent Hash.
713
713
  #
714
- # @param request [Google::Cloud::Vision::V1p3beta1::CreateProductRequest, Hash]
714
+ # @param request [::Google::Cloud::Vision::V1p3beta1::CreateProductRequest, ::Hash]
715
715
  # A request object representing the call parameters. Required. To specify no
716
716
  # parameters, or to keep all the default parameter values, pass an empty Hash.
717
- # @param options [Gapic::CallOptions, Hash]
717
+ # @param options [::Gapic::CallOptions, ::Hash]
718
718
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
719
719
  #
720
720
  # @overload create_product(parent: nil, product: nil, product_id: nil)
@@ -722,40 +722,40 @@ module Google
722
722
  # least one keyword argument is required. To specify no parameters, or to keep all
723
723
  # the default parameter values, pass an empty Hash as a request object (see above).
724
724
  #
725
- # @param parent [String]
725
+ # @param parent [::String]
726
726
  # Required. The project in which the Product should be created.
727
727
  #
728
728
  # Format is
729
729
  # `projects/PROJECT_ID/locations/LOC_ID`.
730
- # @param product [Google::Cloud::Vision::V1p3beta1::Product, Hash]
730
+ # @param product [::Google::Cloud::Vision::V1p3beta1::Product, ::Hash]
731
731
  # Required. The product to create.
732
- # @param product_id [String]
732
+ # @param product_id [::String]
733
733
  # A user-supplied resource id for this Product. If set, the server will
734
734
  # attempt to use this value as the resource id. If it is already in use, an
735
735
  # error is returned with code ALREADY_EXISTS. Must be at most 128 characters
736
736
  # long. It cannot contain the character `/`.
737
737
  #
738
738
  # @yield [response, operation] Access the result along with the RPC operation
739
- # @yieldparam response [Google::Cloud::Vision::V1p3beta1::Product]
740
- # @yieldparam operation [GRPC::ActiveCall::Operation]
739
+ # @yieldparam response [::Google::Cloud::Vision::V1p3beta1::Product]
740
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
741
741
  #
742
- # @return [Google::Cloud::Vision::V1p3beta1::Product]
742
+ # @return [::Google::Cloud::Vision::V1p3beta1::Product]
743
743
  #
744
- # @raise [Google::Cloud::Error] if the RPC is aborted.
744
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
745
745
  #
746
746
  def create_product request, options = nil
747
- raise ArgumentError, "request must be provided" if request.nil?
747
+ raise ::ArgumentError, "request must be provided" if request.nil?
748
748
 
749
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Vision::V1p3beta1::CreateProductRequest
749
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Vision::V1p3beta1::CreateProductRequest
750
750
 
751
751
  # Converts hash and nil to an options object
752
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
752
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
753
753
 
754
754
  # Customize the options with defaults
755
755
  metadata = @config.rpcs.create_product.metadata.to_h
756
756
 
757
757
  # Set x-goog-api-client and x-goog-user-project headers
758
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
758
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
759
759
  lib_name: @config.lib_name, lib_version: @config.lib_version,
760
760
  gapic_version: ::Google::Cloud::Vision::V1p3beta1::VERSION
761
761
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -776,8 +776,8 @@ module Google
776
776
  yield response, operation if block_given?
777
777
  return response
778
778
  end
779
- rescue GRPC::BadStatus => e
780
- raise Google::Cloud::Error.from_error(e)
779
+ rescue ::GRPC::BadStatus => e
780
+ raise ::Google::Cloud::Error.from_error(e)
781
781
  end
782
782
 
783
783
  ##
@@ -789,12 +789,12 @@ module Google
789
789
  #
790
790
  # @overload list_products(request, options = nil)
791
791
  # Pass arguments to `list_products` via a request object, either of type
792
- # {Google::Cloud::Vision::V1p3beta1::ListProductsRequest} or an equivalent Hash.
792
+ # {::Google::Cloud::Vision::V1p3beta1::ListProductsRequest} or an equivalent Hash.
793
793
  #
794
- # @param request [Google::Cloud::Vision::V1p3beta1::ListProductsRequest, Hash]
794
+ # @param request [::Google::Cloud::Vision::V1p3beta1::ListProductsRequest, ::Hash]
795
795
  # A request object representing the call parameters. Required. To specify no
796
796
  # parameters, or to keep all the default parameter values, pass an empty Hash.
797
- # @param options [Gapic::CallOptions, Hash]
797
+ # @param options [::Gapic::CallOptions, ::Hash]
798
798
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
799
799
  #
800
800
  # @overload list_products(parent: nil, page_size: nil, page_token: nil)
@@ -802,37 +802,37 @@ module Google
802
802
  # least one keyword argument is required. To specify no parameters, or to keep all
803
803
  # the default parameter values, pass an empty Hash as a request object (see above).
804
804
  #
805
- # @param parent [String]
805
+ # @param parent [::String]
806
806
  # Required. The project OR ProductSet from which Products should be listed.
807
807
  #
808
808
  # Format:
809
809
  # `projects/PROJECT_ID/locations/LOC_ID`
810
- # @param page_size [Integer]
810
+ # @param page_size [::Integer]
811
811
  # The maximum number of items to return. Default 10, maximum 100.
812
- # @param page_token [String]
812
+ # @param page_token [::String]
813
813
  # The next_page_token returned from a previous List request, if any.
814
814
  #
815
815
  # @yield [response, operation] Access the result along with the RPC operation
816
- # @yieldparam response [Gapic::PagedEnumerable<Google::Cloud::Vision::V1p3beta1::Product>]
817
- # @yieldparam operation [GRPC::ActiveCall::Operation]
816
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Vision::V1p3beta1::Product>]
817
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
818
818
  #
819
- # @return [Gapic::PagedEnumerable<Google::Cloud::Vision::V1p3beta1::Product>]
819
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::Vision::V1p3beta1::Product>]
820
820
  #
821
- # @raise [Google::Cloud::Error] if the RPC is aborted.
821
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
822
822
  #
823
823
  def list_products request, options = nil
824
- raise ArgumentError, "request must be provided" if request.nil?
824
+ raise ::ArgumentError, "request must be provided" if request.nil?
825
825
 
826
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Vision::V1p3beta1::ListProductsRequest
826
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Vision::V1p3beta1::ListProductsRequest
827
827
 
828
828
  # Converts hash and nil to an options object
829
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
829
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
830
830
 
831
831
  # Customize the options with defaults
832
832
  metadata = @config.rpcs.list_products.metadata.to_h
833
833
 
834
834
  # Set x-goog-api-client and x-goog-user-project headers
835
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
835
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
836
836
  lib_name: @config.lib_name, lib_version: @config.lib_version,
837
837
  gapic_version: ::Google::Cloud::Vision::V1p3beta1::VERSION
838
838
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -850,12 +850,12 @@ module Google
850
850
  retry_policy: @config.retry_policy
851
851
 
852
852
  @product_search_stub.call_rpc :list_products, request, options: options do |response, operation|
853
- response = Gapic::PagedEnumerable.new @product_search_stub, :list_products, request, response, operation, options
853
+ response = ::Gapic::PagedEnumerable.new @product_search_stub, :list_products, request, response, operation, options
854
854
  yield response, operation if block_given?
855
855
  return response
856
856
  end
857
- rescue GRPC::BadStatus => e
858
- raise Google::Cloud::Error.from_error(e)
857
+ rescue ::GRPC::BadStatus => e
858
+ raise ::Google::Cloud::Error.from_error(e)
859
859
  end
860
860
 
861
861
  ##
@@ -867,12 +867,12 @@ module Google
867
867
  #
868
868
  # @overload get_product(request, options = nil)
869
869
  # Pass arguments to `get_product` via a request object, either of type
870
- # {Google::Cloud::Vision::V1p3beta1::GetProductRequest} or an equivalent Hash.
870
+ # {::Google::Cloud::Vision::V1p3beta1::GetProductRequest} or an equivalent Hash.
871
871
  #
872
- # @param request [Google::Cloud::Vision::V1p3beta1::GetProductRequest, Hash]
872
+ # @param request [::Google::Cloud::Vision::V1p3beta1::GetProductRequest, ::Hash]
873
873
  # A request object representing the call parameters. Required. To specify no
874
874
  # parameters, or to keep all the default parameter values, pass an empty Hash.
875
- # @param options [Gapic::CallOptions, Hash]
875
+ # @param options [::Gapic::CallOptions, ::Hash]
876
876
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
877
877
  #
878
878
  # @overload get_product(name: nil)
@@ -880,33 +880,33 @@ module Google
880
880
  # least one keyword argument is required. To specify no parameters, or to keep all
881
881
  # the default parameter values, pass an empty Hash as a request object (see above).
882
882
  #
883
- # @param name [String]
883
+ # @param name [::String]
884
884
  # Required. Resource name of the Product to get.
885
885
  #
886
886
  # Format is:
887
887
  # `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
888
888
  #
889
889
  # @yield [response, operation] Access the result along with the RPC operation
890
- # @yieldparam response [Google::Cloud::Vision::V1p3beta1::Product]
891
- # @yieldparam operation [GRPC::ActiveCall::Operation]
890
+ # @yieldparam response [::Google::Cloud::Vision::V1p3beta1::Product]
891
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
892
892
  #
893
- # @return [Google::Cloud::Vision::V1p3beta1::Product]
893
+ # @return [::Google::Cloud::Vision::V1p3beta1::Product]
894
894
  #
895
- # @raise [Google::Cloud::Error] if the RPC is aborted.
895
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
896
896
  #
897
897
  def get_product request, options = nil
898
- raise ArgumentError, "request must be provided" if request.nil?
898
+ raise ::ArgumentError, "request must be provided" if request.nil?
899
899
 
900
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Vision::V1p3beta1::GetProductRequest
900
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Vision::V1p3beta1::GetProductRequest
901
901
 
902
902
  # Converts hash and nil to an options object
903
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
903
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
904
904
 
905
905
  # Customize the options with defaults
906
906
  metadata = @config.rpcs.get_product.metadata.to_h
907
907
 
908
908
  # Set x-goog-api-client and x-goog-user-project headers
909
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
909
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
910
910
  lib_name: @config.lib_name, lib_version: @config.lib_version,
911
911
  gapic_version: ::Google::Cloud::Vision::V1p3beta1::VERSION
912
912
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -927,8 +927,8 @@ module Google
927
927
  yield response, operation if block_given?
928
928
  return response
929
929
  end
930
- rescue GRPC::BadStatus => e
931
- raise Google::Cloud::Error.from_error(e)
930
+ rescue ::GRPC::BadStatus => e
931
+ raise ::Google::Cloud::Error.from_error(e)
932
932
  end
933
933
 
934
934
  ##
@@ -949,12 +949,12 @@ module Google
949
949
  #
950
950
  # @overload update_product(request, options = nil)
951
951
  # Pass arguments to `update_product` via a request object, either of type
952
- # {Google::Cloud::Vision::V1p3beta1::UpdateProductRequest} or an equivalent Hash.
952
+ # {::Google::Cloud::Vision::V1p3beta1::UpdateProductRequest} or an equivalent Hash.
953
953
  #
954
- # @param request [Google::Cloud::Vision::V1p3beta1::UpdateProductRequest, Hash]
954
+ # @param request [::Google::Cloud::Vision::V1p3beta1::UpdateProductRequest, ::Hash]
955
955
  # A request object representing the call parameters. Required. To specify no
956
956
  # parameters, or to keep all the default parameter values, pass an empty Hash.
957
- # @param options [Gapic::CallOptions, Hash]
957
+ # @param options [::Gapic::CallOptions, ::Hash]
958
958
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
959
959
  #
960
960
  # @overload update_product(product: nil, update_mask: nil)
@@ -962,37 +962,37 @@ module Google
962
962
  # least one keyword argument is required. To specify no parameters, or to keep all
963
963
  # the default parameter values, pass an empty Hash as a request object (see above).
964
964
  #
965
- # @param product [Google::Cloud::Vision::V1p3beta1::Product, Hash]
965
+ # @param product [::Google::Cloud::Vision::V1p3beta1::Product, ::Hash]
966
966
  # Required. The Product resource which replaces the one on the server.
967
967
  # product.name is immutable.
968
- # @param update_mask [Google::Protobuf::FieldMask, Hash]
969
- # The {Google::Protobuf::FieldMask FieldMask} that specifies which fields
968
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
969
+ # The {::Google::Protobuf::FieldMask FieldMask} that specifies which fields
970
970
  # to update.
971
971
  # If update_mask isn't specified, all mutable fields are to be updated.
972
972
  # Valid mask paths include `product_labels`, `display_name`, and
973
973
  # `description`.
974
974
  #
975
975
  # @yield [response, operation] Access the result along with the RPC operation
976
- # @yieldparam response [Google::Cloud::Vision::V1p3beta1::Product]
977
- # @yieldparam operation [GRPC::ActiveCall::Operation]
976
+ # @yieldparam response [::Google::Cloud::Vision::V1p3beta1::Product]
977
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
978
978
  #
979
- # @return [Google::Cloud::Vision::V1p3beta1::Product]
979
+ # @return [::Google::Cloud::Vision::V1p3beta1::Product]
980
980
  #
981
- # @raise [Google::Cloud::Error] if the RPC is aborted.
981
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
982
982
  #
983
983
  def update_product request, options = nil
984
- raise ArgumentError, "request must be provided" if request.nil?
984
+ raise ::ArgumentError, "request must be provided" if request.nil?
985
985
 
986
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Vision::V1p3beta1::UpdateProductRequest
986
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Vision::V1p3beta1::UpdateProductRequest
987
987
 
988
988
  # Converts hash and nil to an options object
989
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
989
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
990
990
 
991
991
  # Customize the options with defaults
992
992
  metadata = @config.rpcs.update_product.metadata.to_h
993
993
 
994
994
  # Set x-goog-api-client and x-goog-user-project headers
995
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
995
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
996
996
  lib_name: @config.lib_name, lib_version: @config.lib_version,
997
997
  gapic_version: ::Google::Cloud::Vision::V1p3beta1::VERSION
998
998
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -1013,8 +1013,8 @@ module Google
1013
1013
  yield response, operation if block_given?
1014
1014
  return response
1015
1015
  end
1016
- rescue GRPC::BadStatus => e
1017
- raise Google::Cloud::Error.from_error(e)
1016
+ rescue ::GRPC::BadStatus => e
1017
+ raise ::Google::Cloud::Error.from_error(e)
1018
1018
  end
1019
1019
 
1020
1020
  ##
@@ -1030,12 +1030,12 @@ module Google
1030
1030
  #
1031
1031
  # @overload delete_product(request, options = nil)
1032
1032
  # Pass arguments to `delete_product` via a request object, either of type
1033
- # {Google::Cloud::Vision::V1p3beta1::DeleteProductRequest} or an equivalent Hash.
1033
+ # {::Google::Cloud::Vision::V1p3beta1::DeleteProductRequest} or an equivalent Hash.
1034
1034
  #
1035
- # @param request [Google::Cloud::Vision::V1p3beta1::DeleteProductRequest, Hash]
1035
+ # @param request [::Google::Cloud::Vision::V1p3beta1::DeleteProductRequest, ::Hash]
1036
1036
  # A request object representing the call parameters. Required. To specify no
1037
1037
  # parameters, or to keep all the default parameter values, pass an empty Hash.
1038
- # @param options [Gapic::CallOptions, Hash]
1038
+ # @param options [::Gapic::CallOptions, ::Hash]
1039
1039
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1040
1040
  #
1041
1041
  # @overload delete_product(name: nil)
@@ -1043,33 +1043,33 @@ module Google
1043
1043
  # least one keyword argument is required. To specify no parameters, or to keep all
1044
1044
  # the default parameter values, pass an empty Hash as a request object (see above).
1045
1045
  #
1046
- # @param name [String]
1046
+ # @param name [::String]
1047
1047
  # Required. Resource name of product to delete.
1048
1048
  #
1049
1049
  # Format is:
1050
1050
  # `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
1051
1051
  #
1052
1052
  # @yield [response, operation] Access the result along with the RPC operation
1053
- # @yieldparam response [Google::Protobuf::Empty]
1054
- # @yieldparam operation [GRPC::ActiveCall::Operation]
1053
+ # @yieldparam response [::Google::Protobuf::Empty]
1054
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1055
1055
  #
1056
- # @return [Google::Protobuf::Empty]
1056
+ # @return [::Google::Protobuf::Empty]
1057
1057
  #
1058
- # @raise [Google::Cloud::Error] if the RPC is aborted.
1058
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1059
1059
  #
1060
1060
  def delete_product request, options = nil
1061
- raise ArgumentError, "request must be provided" if request.nil?
1061
+ raise ::ArgumentError, "request must be provided" if request.nil?
1062
1062
 
1063
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Vision::V1p3beta1::DeleteProductRequest
1063
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Vision::V1p3beta1::DeleteProductRequest
1064
1064
 
1065
1065
  # Converts hash and nil to an options object
1066
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1066
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1067
1067
 
1068
1068
  # Customize the options with defaults
1069
1069
  metadata = @config.rpcs.delete_product.metadata.to_h
1070
1070
 
1071
1071
  # Set x-goog-api-client and x-goog-user-project headers
1072
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
1072
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1073
1073
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1074
1074
  gapic_version: ::Google::Cloud::Vision::V1p3beta1::VERSION
1075
1075
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -1090,8 +1090,8 @@ module Google
1090
1090
  yield response, operation if block_given?
1091
1091
  return response
1092
1092
  end
1093
- rescue GRPC::BadStatus => e
1094
- raise Google::Cloud::Error.from_error(e)
1093
+ rescue ::GRPC::BadStatus => e
1094
+ raise ::Google::Cloud::Error.from_error(e)
1095
1095
  end
1096
1096
 
1097
1097
  ##
@@ -1117,12 +1117,12 @@ module Google
1117
1117
  #
1118
1118
  # @overload create_reference_image(request, options = nil)
1119
1119
  # Pass arguments to `create_reference_image` via a request object, either of type
1120
- # {Google::Cloud::Vision::V1p3beta1::CreateReferenceImageRequest} or an equivalent Hash.
1120
+ # {::Google::Cloud::Vision::V1p3beta1::CreateReferenceImageRequest} or an equivalent Hash.
1121
1121
  #
1122
- # @param request [Google::Cloud::Vision::V1p3beta1::CreateReferenceImageRequest, Hash]
1122
+ # @param request [::Google::Cloud::Vision::V1p3beta1::CreateReferenceImageRequest, ::Hash]
1123
1123
  # A request object representing the call parameters. Required. To specify no
1124
1124
  # parameters, or to keep all the default parameter values, pass an empty Hash.
1125
- # @param options [Gapic::CallOptions, Hash]
1125
+ # @param options [::Gapic::CallOptions, ::Hash]
1126
1126
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1127
1127
  #
1128
1128
  # @overload create_reference_image(parent: nil, reference_image: nil, reference_image_id: nil)
@@ -1130,41 +1130,41 @@ module Google
1130
1130
  # least one keyword argument is required. To specify no parameters, or to keep all
1131
1131
  # the default parameter values, pass an empty Hash as a request object (see above).
1132
1132
  #
1133
- # @param parent [String]
1133
+ # @param parent [::String]
1134
1134
  # Required. Resource name of the product in which to create the reference image.
1135
1135
  #
1136
1136
  # Format is
1137
1137
  # `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
1138
- # @param reference_image [Google::Cloud::Vision::V1p3beta1::ReferenceImage, Hash]
1138
+ # @param reference_image [::Google::Cloud::Vision::V1p3beta1::ReferenceImage, ::Hash]
1139
1139
  # Required. The reference image to create.
1140
1140
  # If an image ID is specified, it is ignored.
1141
- # @param reference_image_id [String]
1141
+ # @param reference_image_id [::String]
1142
1142
  # A user-supplied resource id for the ReferenceImage to be added. If set,
1143
1143
  # the server will attempt to use this value as the resource id. If it is
1144
1144
  # already in use, an error is returned with code ALREADY_EXISTS. Must be at
1145
1145
  # most 128 characters long. It cannot contain the character `/`.
1146
1146
  #
1147
1147
  # @yield [response, operation] Access the result along with the RPC operation
1148
- # @yieldparam response [Google::Cloud::Vision::V1p3beta1::ReferenceImage]
1149
- # @yieldparam operation [GRPC::ActiveCall::Operation]
1148
+ # @yieldparam response [::Google::Cloud::Vision::V1p3beta1::ReferenceImage]
1149
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1150
1150
  #
1151
- # @return [Google::Cloud::Vision::V1p3beta1::ReferenceImage]
1151
+ # @return [::Google::Cloud::Vision::V1p3beta1::ReferenceImage]
1152
1152
  #
1153
- # @raise [Google::Cloud::Error] if the RPC is aborted.
1153
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1154
1154
  #
1155
1155
  def create_reference_image request, options = nil
1156
- raise ArgumentError, "request must be provided" if request.nil?
1156
+ raise ::ArgumentError, "request must be provided" if request.nil?
1157
1157
 
1158
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Vision::V1p3beta1::CreateReferenceImageRequest
1158
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Vision::V1p3beta1::CreateReferenceImageRequest
1159
1159
 
1160
1160
  # Converts hash and nil to an options object
1161
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1161
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1162
1162
 
1163
1163
  # Customize the options with defaults
1164
1164
  metadata = @config.rpcs.create_reference_image.metadata.to_h
1165
1165
 
1166
1166
  # Set x-goog-api-client and x-goog-user-project headers
1167
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
1167
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1168
1168
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1169
1169
  gapic_version: ::Google::Cloud::Vision::V1p3beta1::VERSION
1170
1170
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -1185,8 +1185,8 @@ module Google
1185
1185
  yield response, operation if block_given?
1186
1186
  return response
1187
1187
  end
1188
- rescue GRPC::BadStatus => e
1189
- raise Google::Cloud::Error.from_error(e)
1188
+ rescue ::GRPC::BadStatus => e
1189
+ raise ::Google::Cloud::Error.from_error(e)
1190
1190
  end
1191
1191
 
1192
1192
  ##
@@ -1204,12 +1204,12 @@ module Google
1204
1204
  #
1205
1205
  # @overload delete_reference_image(request, options = nil)
1206
1206
  # Pass arguments to `delete_reference_image` via a request object, either of type
1207
- # {Google::Cloud::Vision::V1p3beta1::DeleteReferenceImageRequest} or an equivalent Hash.
1207
+ # {::Google::Cloud::Vision::V1p3beta1::DeleteReferenceImageRequest} or an equivalent Hash.
1208
1208
  #
1209
- # @param request [Google::Cloud::Vision::V1p3beta1::DeleteReferenceImageRequest, Hash]
1209
+ # @param request [::Google::Cloud::Vision::V1p3beta1::DeleteReferenceImageRequest, ::Hash]
1210
1210
  # A request object representing the call parameters. Required. To specify no
1211
1211
  # parameters, or to keep all the default parameter values, pass an empty Hash.
1212
- # @param options [Gapic::CallOptions, Hash]
1212
+ # @param options [::Gapic::CallOptions, ::Hash]
1213
1213
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1214
1214
  #
1215
1215
  # @overload delete_reference_image(name: nil)
@@ -1217,7 +1217,7 @@ module Google
1217
1217
  # least one keyword argument is required. To specify no parameters, or to keep all
1218
1218
  # the default parameter values, pass an empty Hash as a request object (see above).
1219
1219
  #
1220
- # @param name [String]
1220
+ # @param name [::String]
1221
1221
  # Required. The resource name of the reference image to delete.
1222
1222
  #
1223
1223
  # Format is:
@@ -1225,26 +1225,26 @@ module Google
1225
1225
  # `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`
1226
1226
  #
1227
1227
  # @yield [response, operation] Access the result along with the RPC operation
1228
- # @yieldparam response [Google::Protobuf::Empty]
1229
- # @yieldparam operation [GRPC::ActiveCall::Operation]
1228
+ # @yieldparam response [::Google::Protobuf::Empty]
1229
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1230
1230
  #
1231
- # @return [Google::Protobuf::Empty]
1231
+ # @return [::Google::Protobuf::Empty]
1232
1232
  #
1233
- # @raise [Google::Cloud::Error] if the RPC is aborted.
1233
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1234
1234
  #
1235
1235
  def delete_reference_image request, options = nil
1236
- raise ArgumentError, "request must be provided" if request.nil?
1236
+ raise ::ArgumentError, "request must be provided" if request.nil?
1237
1237
 
1238
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Vision::V1p3beta1::DeleteReferenceImageRequest
1238
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Vision::V1p3beta1::DeleteReferenceImageRequest
1239
1239
 
1240
1240
  # Converts hash and nil to an options object
1241
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1241
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1242
1242
 
1243
1243
  # Customize the options with defaults
1244
1244
  metadata = @config.rpcs.delete_reference_image.metadata.to_h
1245
1245
 
1246
1246
  # Set x-goog-api-client and x-goog-user-project headers
1247
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
1247
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1248
1248
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1249
1249
  gapic_version: ::Google::Cloud::Vision::V1p3beta1::VERSION
1250
1250
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -1265,8 +1265,8 @@ module Google
1265
1265
  yield response, operation if block_given?
1266
1266
  return response
1267
1267
  end
1268
- rescue GRPC::BadStatus => e
1269
- raise Google::Cloud::Error.from_error(e)
1268
+ rescue ::GRPC::BadStatus => e
1269
+ raise ::Google::Cloud::Error.from_error(e)
1270
1270
  end
1271
1271
 
1272
1272
  ##
@@ -1280,12 +1280,12 @@ module Google
1280
1280
  #
1281
1281
  # @overload list_reference_images(request, options = nil)
1282
1282
  # Pass arguments to `list_reference_images` via a request object, either of type
1283
- # {Google::Cloud::Vision::V1p3beta1::ListReferenceImagesRequest} or an equivalent Hash.
1283
+ # {::Google::Cloud::Vision::V1p3beta1::ListReferenceImagesRequest} or an equivalent Hash.
1284
1284
  #
1285
- # @param request [Google::Cloud::Vision::V1p3beta1::ListReferenceImagesRequest, Hash]
1285
+ # @param request [::Google::Cloud::Vision::V1p3beta1::ListReferenceImagesRequest, ::Hash]
1286
1286
  # A request object representing the call parameters. Required. To specify no
1287
1287
  # parameters, or to keep all the default parameter values, pass an empty Hash.
1288
- # @param options [Gapic::CallOptions, Hash]
1288
+ # @param options [::Gapic::CallOptions, ::Hash]
1289
1289
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1290
1290
  #
1291
1291
  # @overload list_reference_images(parent: nil, page_size: nil, page_token: nil)
@@ -1293,40 +1293,40 @@ module Google
1293
1293
  # least one keyword argument is required. To specify no parameters, or to keep all
1294
1294
  # the default parameter values, pass an empty Hash as a request object (see above).
1295
1295
  #
1296
- # @param parent [String]
1296
+ # @param parent [::String]
1297
1297
  # Required. Resource name of the product containing the reference images.
1298
1298
  #
1299
1299
  # Format is
1300
1300
  # `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
1301
- # @param page_size [Integer]
1301
+ # @param page_size [::Integer]
1302
1302
  # The maximum number of items to return. Default 10, maximum 100.
1303
- # @param page_token [String]
1303
+ # @param page_token [::String]
1304
1304
  # A token identifying a page of results to be returned. This is the value
1305
1305
  # of `nextPageToken` returned in a previous reference image list request.
1306
1306
  #
1307
1307
  # Defaults to the first page if not specified.
1308
1308
  #
1309
1309
  # @yield [response, operation] Access the result along with the RPC operation
1310
- # @yieldparam response [Gapic::PagedEnumerable<Google::Cloud::Vision::V1p3beta1::ReferenceImage>]
1311
- # @yieldparam operation [GRPC::ActiveCall::Operation]
1310
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Vision::V1p3beta1::ReferenceImage>]
1311
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1312
1312
  #
1313
- # @return [Gapic::PagedEnumerable<Google::Cloud::Vision::V1p3beta1::ReferenceImage>]
1313
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::Vision::V1p3beta1::ReferenceImage>]
1314
1314
  #
1315
- # @raise [Google::Cloud::Error] if the RPC is aborted.
1315
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1316
1316
  #
1317
1317
  def list_reference_images request, options = nil
1318
- raise ArgumentError, "request must be provided" if request.nil?
1318
+ raise ::ArgumentError, "request must be provided" if request.nil?
1319
1319
 
1320
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Vision::V1p3beta1::ListReferenceImagesRequest
1320
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Vision::V1p3beta1::ListReferenceImagesRequest
1321
1321
 
1322
1322
  # Converts hash and nil to an options object
1323
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1323
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1324
1324
 
1325
1325
  # Customize the options with defaults
1326
1326
  metadata = @config.rpcs.list_reference_images.metadata.to_h
1327
1327
 
1328
1328
  # Set x-goog-api-client and x-goog-user-project headers
1329
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
1329
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1330
1330
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1331
1331
  gapic_version: ::Google::Cloud::Vision::V1p3beta1::VERSION
1332
1332
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -1344,12 +1344,12 @@ module Google
1344
1344
  retry_policy: @config.retry_policy
1345
1345
 
1346
1346
  @product_search_stub.call_rpc :list_reference_images, request, options: options do |response, operation|
1347
- response = Gapic::PagedEnumerable.new @product_search_stub, :list_reference_images, request, response, operation, options
1347
+ response = ::Gapic::PagedEnumerable.new @product_search_stub, :list_reference_images, request, response, operation, options
1348
1348
  yield response, operation if block_given?
1349
1349
  return response
1350
1350
  end
1351
- rescue GRPC::BadStatus => e
1352
- raise Google::Cloud::Error.from_error(e)
1351
+ rescue ::GRPC::BadStatus => e
1352
+ raise ::Google::Cloud::Error.from_error(e)
1353
1353
  end
1354
1354
 
1355
1355
  ##
@@ -1361,12 +1361,12 @@ module Google
1361
1361
  #
1362
1362
  # @overload get_reference_image(request, options = nil)
1363
1363
  # Pass arguments to `get_reference_image` via a request object, either of type
1364
- # {Google::Cloud::Vision::V1p3beta1::GetReferenceImageRequest} or an equivalent Hash.
1364
+ # {::Google::Cloud::Vision::V1p3beta1::GetReferenceImageRequest} or an equivalent Hash.
1365
1365
  #
1366
- # @param request [Google::Cloud::Vision::V1p3beta1::GetReferenceImageRequest, Hash]
1366
+ # @param request [::Google::Cloud::Vision::V1p3beta1::GetReferenceImageRequest, ::Hash]
1367
1367
  # A request object representing the call parameters. Required. To specify no
1368
1368
  # parameters, or to keep all the default parameter values, pass an empty Hash.
1369
- # @param options [Gapic::CallOptions, Hash]
1369
+ # @param options [::Gapic::CallOptions, ::Hash]
1370
1370
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1371
1371
  #
1372
1372
  # @overload get_reference_image(name: nil)
@@ -1374,7 +1374,7 @@ module Google
1374
1374
  # least one keyword argument is required. To specify no parameters, or to keep all
1375
1375
  # the default parameter values, pass an empty Hash as a request object (see above).
1376
1376
  #
1377
- # @param name [String]
1377
+ # @param name [::String]
1378
1378
  # Required. The resource name of the ReferenceImage to get.
1379
1379
  #
1380
1380
  # Format is:
@@ -1382,26 +1382,26 @@ module Google
1382
1382
  # `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`.
1383
1383
  #
1384
1384
  # @yield [response, operation] Access the result along with the RPC operation
1385
- # @yieldparam response [Google::Cloud::Vision::V1p3beta1::ReferenceImage]
1386
- # @yieldparam operation [GRPC::ActiveCall::Operation]
1385
+ # @yieldparam response [::Google::Cloud::Vision::V1p3beta1::ReferenceImage]
1386
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1387
1387
  #
1388
- # @return [Google::Cloud::Vision::V1p3beta1::ReferenceImage]
1388
+ # @return [::Google::Cloud::Vision::V1p3beta1::ReferenceImage]
1389
1389
  #
1390
- # @raise [Google::Cloud::Error] if the RPC is aborted.
1390
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1391
1391
  #
1392
1392
  def get_reference_image request, options = nil
1393
- raise ArgumentError, "request must be provided" if request.nil?
1393
+ raise ::ArgumentError, "request must be provided" if request.nil?
1394
1394
 
1395
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Vision::V1p3beta1::GetReferenceImageRequest
1395
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Vision::V1p3beta1::GetReferenceImageRequest
1396
1396
 
1397
1397
  # Converts hash and nil to an options object
1398
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1398
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1399
1399
 
1400
1400
  # Customize the options with defaults
1401
1401
  metadata = @config.rpcs.get_reference_image.metadata.to_h
1402
1402
 
1403
1403
  # Set x-goog-api-client and x-goog-user-project headers
1404
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
1404
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1405
1405
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1406
1406
  gapic_version: ::Google::Cloud::Vision::V1p3beta1::VERSION
1407
1407
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -1422,8 +1422,8 @@ module Google
1422
1422
  yield response, operation if block_given?
1423
1423
  return response
1424
1424
  end
1425
- rescue GRPC::BadStatus => e
1426
- raise Google::Cloud::Error.from_error(e)
1425
+ rescue ::GRPC::BadStatus => e
1426
+ raise ::Google::Cloud::Error.from_error(e)
1427
1427
  end
1428
1428
 
1429
1429
  ##
@@ -1438,12 +1438,12 @@ module Google
1438
1438
  #
1439
1439
  # @overload add_product_to_product_set(request, options = nil)
1440
1440
  # Pass arguments to `add_product_to_product_set` via a request object, either of type
1441
- # {Google::Cloud::Vision::V1p3beta1::AddProductToProductSetRequest} or an equivalent Hash.
1441
+ # {::Google::Cloud::Vision::V1p3beta1::AddProductToProductSetRequest} or an equivalent Hash.
1442
1442
  #
1443
- # @param request [Google::Cloud::Vision::V1p3beta1::AddProductToProductSetRequest, Hash]
1443
+ # @param request [::Google::Cloud::Vision::V1p3beta1::AddProductToProductSetRequest, ::Hash]
1444
1444
  # A request object representing the call parameters. Required. To specify no
1445
1445
  # parameters, or to keep all the default parameter values, pass an empty Hash.
1446
- # @param options [Gapic::CallOptions, Hash]
1446
+ # @param options [::Gapic::CallOptions, ::Hash]
1447
1447
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1448
1448
  #
1449
1449
  # @overload add_product_to_product_set(name: nil, product: nil)
@@ -1451,38 +1451,38 @@ module Google
1451
1451
  # least one keyword argument is required. To specify no parameters, or to keep all
1452
1452
  # the default parameter values, pass an empty Hash as a request object (see above).
1453
1453
  #
1454
- # @param name [String]
1454
+ # @param name [::String]
1455
1455
  # Required. The resource name for the ProductSet to modify.
1456
1456
  #
1457
1457
  # Format is:
1458
1458
  # `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
1459
- # @param product [String]
1459
+ # @param product [::String]
1460
1460
  # Required. The resource name for the Product to be added to this ProductSet.
1461
1461
  #
1462
1462
  # Format is:
1463
1463
  # `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
1464
1464
  #
1465
1465
  # @yield [response, operation] Access the result along with the RPC operation
1466
- # @yieldparam response [Google::Protobuf::Empty]
1467
- # @yieldparam operation [GRPC::ActiveCall::Operation]
1466
+ # @yieldparam response [::Google::Protobuf::Empty]
1467
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1468
1468
  #
1469
- # @return [Google::Protobuf::Empty]
1469
+ # @return [::Google::Protobuf::Empty]
1470
1470
  #
1471
- # @raise [Google::Cloud::Error] if the RPC is aborted.
1471
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1472
1472
  #
1473
1473
  def add_product_to_product_set request, options = nil
1474
- raise ArgumentError, "request must be provided" if request.nil?
1474
+ raise ::ArgumentError, "request must be provided" if request.nil?
1475
1475
 
1476
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Vision::V1p3beta1::AddProductToProductSetRequest
1476
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Vision::V1p3beta1::AddProductToProductSetRequest
1477
1477
 
1478
1478
  # Converts hash and nil to an options object
1479
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1479
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1480
1480
 
1481
1481
  # Customize the options with defaults
1482
1482
  metadata = @config.rpcs.add_product_to_product_set.metadata.to_h
1483
1483
 
1484
1484
  # Set x-goog-api-client and x-goog-user-project headers
1485
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
1485
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1486
1486
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1487
1487
  gapic_version: ::Google::Cloud::Vision::V1p3beta1::VERSION
1488
1488
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -1503,8 +1503,8 @@ module Google
1503
1503
  yield response, operation if block_given?
1504
1504
  return response
1505
1505
  end
1506
- rescue GRPC::BadStatus => e
1507
- raise Google::Cloud::Error.from_error(e)
1506
+ rescue ::GRPC::BadStatus => e
1507
+ raise ::Google::Cloud::Error.from_error(e)
1508
1508
  end
1509
1509
 
1510
1510
  ##
@@ -1516,12 +1516,12 @@ module Google
1516
1516
  #
1517
1517
  # @overload remove_product_from_product_set(request, options = nil)
1518
1518
  # Pass arguments to `remove_product_from_product_set` via a request object, either of type
1519
- # {Google::Cloud::Vision::V1p3beta1::RemoveProductFromProductSetRequest} or an equivalent Hash.
1519
+ # {::Google::Cloud::Vision::V1p3beta1::RemoveProductFromProductSetRequest} or an equivalent Hash.
1520
1520
  #
1521
- # @param request [Google::Cloud::Vision::V1p3beta1::RemoveProductFromProductSetRequest, Hash]
1521
+ # @param request [::Google::Cloud::Vision::V1p3beta1::RemoveProductFromProductSetRequest, ::Hash]
1522
1522
  # A request object representing the call parameters. Required. To specify no
1523
1523
  # parameters, or to keep all the default parameter values, pass an empty Hash.
1524
- # @param options [Gapic::CallOptions, Hash]
1524
+ # @param options [::Gapic::CallOptions, ::Hash]
1525
1525
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1526
1526
  #
1527
1527
  # @overload remove_product_from_product_set(name: nil, product: nil)
@@ -1529,38 +1529,38 @@ module Google
1529
1529
  # least one keyword argument is required. To specify no parameters, or to keep all
1530
1530
  # the default parameter values, pass an empty Hash as a request object (see above).
1531
1531
  #
1532
- # @param name [String]
1532
+ # @param name [::String]
1533
1533
  # Required. The resource name for the ProductSet to modify.
1534
1534
  #
1535
1535
  # Format is:
1536
1536
  # `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
1537
- # @param product [String]
1537
+ # @param product [::String]
1538
1538
  # Required. The resource name for the Product to be removed from this ProductSet.
1539
1539
  #
1540
1540
  # Format is:
1541
1541
  # `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
1542
1542
  #
1543
1543
  # @yield [response, operation] Access the result along with the RPC operation
1544
- # @yieldparam response [Google::Protobuf::Empty]
1545
- # @yieldparam operation [GRPC::ActiveCall::Operation]
1544
+ # @yieldparam response [::Google::Protobuf::Empty]
1545
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1546
1546
  #
1547
- # @return [Google::Protobuf::Empty]
1547
+ # @return [::Google::Protobuf::Empty]
1548
1548
  #
1549
- # @raise [Google::Cloud::Error] if the RPC is aborted.
1549
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1550
1550
  #
1551
1551
  def remove_product_from_product_set request, options = nil
1552
- raise ArgumentError, "request must be provided" if request.nil?
1552
+ raise ::ArgumentError, "request must be provided" if request.nil?
1553
1553
 
1554
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Vision::V1p3beta1::RemoveProductFromProductSetRequest
1554
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Vision::V1p3beta1::RemoveProductFromProductSetRequest
1555
1555
 
1556
1556
  # Converts hash and nil to an options object
1557
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1557
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1558
1558
 
1559
1559
  # Customize the options with defaults
1560
1560
  metadata = @config.rpcs.remove_product_from_product_set.metadata.to_h
1561
1561
 
1562
1562
  # Set x-goog-api-client and x-goog-user-project headers
1563
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
1563
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1564
1564
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1565
1565
  gapic_version: ::Google::Cloud::Vision::V1p3beta1::VERSION
1566
1566
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -1581,8 +1581,8 @@ module Google
1581
1581
  yield response, operation if block_given?
1582
1582
  return response
1583
1583
  end
1584
- rescue GRPC::BadStatus => e
1585
- raise Google::Cloud::Error.from_error(e)
1584
+ rescue ::GRPC::BadStatus => e
1585
+ raise ::Google::Cloud::Error.from_error(e)
1586
1586
  end
1587
1587
 
1588
1588
  ##
@@ -1596,12 +1596,12 @@ module Google
1596
1596
  #
1597
1597
  # @overload list_products_in_product_set(request, options = nil)
1598
1598
  # Pass arguments to `list_products_in_product_set` via a request object, either of type
1599
- # {Google::Cloud::Vision::V1p3beta1::ListProductsInProductSetRequest} or an equivalent Hash.
1599
+ # {::Google::Cloud::Vision::V1p3beta1::ListProductsInProductSetRequest} or an equivalent Hash.
1600
1600
  #
1601
- # @param request [Google::Cloud::Vision::V1p3beta1::ListProductsInProductSetRequest, Hash]
1601
+ # @param request [::Google::Cloud::Vision::V1p3beta1::ListProductsInProductSetRequest, ::Hash]
1602
1602
  # A request object representing the call parameters. Required. To specify no
1603
1603
  # parameters, or to keep all the default parameter values, pass an empty Hash.
1604
- # @param options [Gapic::CallOptions, Hash]
1604
+ # @param options [::Gapic::CallOptions, ::Hash]
1605
1605
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1606
1606
  #
1607
1607
  # @overload list_products_in_product_set(name: nil, page_size: nil, page_token: nil)
@@ -1609,37 +1609,37 @@ module Google
1609
1609
  # least one keyword argument is required. To specify no parameters, or to keep all
1610
1610
  # the default parameter values, pass an empty Hash as a request object (see above).
1611
1611
  #
1612
- # @param name [String]
1612
+ # @param name [::String]
1613
1613
  # Required. The ProductSet resource for which to retrieve Products.
1614
1614
  #
1615
1615
  # Format is:
1616
1616
  # `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
1617
- # @param page_size [Integer]
1617
+ # @param page_size [::Integer]
1618
1618
  # The maximum number of items to return. Default 10, maximum 100.
1619
- # @param page_token [String]
1619
+ # @param page_token [::String]
1620
1620
  # The next_page_token returned from a previous List request, if any.
1621
1621
  #
1622
1622
  # @yield [response, operation] Access the result along with the RPC operation
1623
- # @yieldparam response [Gapic::PagedEnumerable<Google::Cloud::Vision::V1p3beta1::Product>]
1624
- # @yieldparam operation [GRPC::ActiveCall::Operation]
1623
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Vision::V1p3beta1::Product>]
1624
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1625
1625
  #
1626
- # @return [Gapic::PagedEnumerable<Google::Cloud::Vision::V1p3beta1::Product>]
1626
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::Vision::V1p3beta1::Product>]
1627
1627
  #
1628
- # @raise [Google::Cloud::Error] if the RPC is aborted.
1628
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1629
1629
  #
1630
1630
  def list_products_in_product_set request, options = nil
1631
- raise ArgumentError, "request must be provided" if request.nil?
1631
+ raise ::ArgumentError, "request must be provided" if request.nil?
1632
1632
 
1633
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Vision::V1p3beta1::ListProductsInProductSetRequest
1633
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Vision::V1p3beta1::ListProductsInProductSetRequest
1634
1634
 
1635
1635
  # Converts hash and nil to an options object
1636
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1636
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1637
1637
 
1638
1638
  # Customize the options with defaults
1639
1639
  metadata = @config.rpcs.list_products_in_product_set.metadata.to_h
1640
1640
 
1641
1641
  # Set x-goog-api-client and x-goog-user-project headers
1642
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
1642
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1643
1643
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1644
1644
  gapic_version: ::Google::Cloud::Vision::V1p3beta1::VERSION
1645
1645
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -1657,35 +1657,35 @@ module Google
1657
1657
  retry_policy: @config.retry_policy
1658
1658
 
1659
1659
  @product_search_stub.call_rpc :list_products_in_product_set, request, options: options do |response, operation|
1660
- response = Gapic::PagedEnumerable.new @product_search_stub, :list_products_in_product_set, request, response, operation, options
1660
+ response = ::Gapic::PagedEnumerable.new @product_search_stub, :list_products_in_product_set, request, response, operation, options
1661
1661
  yield response, operation if block_given?
1662
1662
  return response
1663
1663
  end
1664
- rescue GRPC::BadStatus => e
1665
- raise Google::Cloud::Error.from_error(e)
1664
+ rescue ::GRPC::BadStatus => e
1665
+ raise ::Google::Cloud::Error.from_error(e)
1666
1666
  end
1667
1667
 
1668
1668
  ##
1669
1669
  # Asynchronous API that imports a list of reference images to specified
1670
1670
  # product sets based on a list of image information.
1671
1671
  #
1672
- # The {Google::Longrunning::Operation google.longrunning.Operation} API can be
1672
+ # The {::Google::Longrunning::Operation google.longrunning.Operation} API can be
1673
1673
  # used to keep track of the progress and results of the request.
1674
1674
  # `Operation.metadata` contains `BatchOperationMetadata`. (progress)
1675
1675
  # `Operation.response` contains `ImportProductSetsResponse`. (results)
1676
1676
  #
1677
1677
  # The input source of this method is a csv file on Google Cloud Storage.
1678
1678
  # For the format of the csv file please see
1679
- # {Google::Cloud::Vision::V1p3beta1::ImportProductSetsGcsSource#csv_file_uri ImportProductSetsGcsSource.csv_file_uri}.
1679
+ # {::Google::Cloud::Vision::V1p3beta1::ImportProductSetsGcsSource#csv_file_uri ImportProductSetsGcsSource.csv_file_uri}.
1680
1680
  #
1681
1681
  # @overload import_product_sets(request, options = nil)
1682
1682
  # Pass arguments to `import_product_sets` via a request object, either of type
1683
- # {Google::Cloud::Vision::V1p3beta1::ImportProductSetsRequest} or an equivalent Hash.
1683
+ # {::Google::Cloud::Vision::V1p3beta1::ImportProductSetsRequest} or an equivalent Hash.
1684
1684
  #
1685
- # @param request [Google::Cloud::Vision::V1p3beta1::ImportProductSetsRequest, Hash]
1685
+ # @param request [::Google::Cloud::Vision::V1p3beta1::ImportProductSetsRequest, ::Hash]
1686
1686
  # A request object representing the call parameters. Required. To specify no
1687
1687
  # parameters, or to keep all the default parameter values, pass an empty Hash.
1688
- # @param options [Gapic::CallOptions, Hash]
1688
+ # @param options [::Gapic::CallOptions, ::Hash]
1689
1689
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1690
1690
  #
1691
1691
  # @overload import_product_sets(parent: nil, input_config: nil)
@@ -1693,34 +1693,34 @@ module Google
1693
1693
  # least one keyword argument is required. To specify no parameters, or to keep all
1694
1694
  # the default parameter values, pass an empty Hash as a request object (see above).
1695
1695
  #
1696
- # @param parent [String]
1696
+ # @param parent [::String]
1697
1697
  # Required. The project in which the ProductSets should be imported.
1698
1698
  #
1699
1699
  # Format is `projects/PROJECT_ID/locations/LOC_ID`.
1700
- # @param input_config [Google::Cloud::Vision::V1p3beta1::ImportProductSetsInputConfig, Hash]
1700
+ # @param input_config [::Google::Cloud::Vision::V1p3beta1::ImportProductSetsInputConfig, ::Hash]
1701
1701
  # Required. The input content for the list of requests.
1702
1702
  #
1703
1703
  # @yield [response, operation] Access the result along with the RPC operation
1704
- # @yieldparam response [Gapic::Operation]
1705
- # @yieldparam operation [GRPC::ActiveCall::Operation]
1704
+ # @yieldparam response [::Gapic::Operation]
1705
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1706
1706
  #
1707
- # @return [Gapic::Operation]
1707
+ # @return [::Gapic::Operation]
1708
1708
  #
1709
- # @raise [Google::Cloud::Error] if the RPC is aborted.
1709
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1710
1710
  #
1711
1711
  def import_product_sets request, options = nil
1712
- raise ArgumentError, "request must be provided" if request.nil?
1712
+ raise ::ArgumentError, "request must be provided" if request.nil?
1713
1713
 
1714
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Vision::V1p3beta1::ImportProductSetsRequest
1714
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Vision::V1p3beta1::ImportProductSetsRequest
1715
1715
 
1716
1716
  # Converts hash and nil to an options object
1717
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1717
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1718
1718
 
1719
1719
  # Customize the options with defaults
1720
1720
  metadata = @config.rpcs.import_product_sets.metadata.to_h
1721
1721
 
1722
1722
  # Set x-goog-api-client and x-goog-user-project headers
1723
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
1723
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1724
1724
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1725
1725
  gapic_version: ::Google::Cloud::Vision::V1p3beta1::VERSION
1726
1726
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -1738,12 +1738,12 @@ module Google
1738
1738
  retry_policy: @config.retry_policy
1739
1739
 
1740
1740
  @product_search_stub.call_rpc :import_product_sets, request, options: options do |response, operation|
1741
- response = Gapic::Operation.new response, @operations_client, options: options
1741
+ response = ::Gapic::Operation.new response, @operations_client, options: options
1742
1742
  yield response, operation if block_given?
1743
1743
  return response
1744
1744
  end
1745
- rescue GRPC::BadStatus => e
1746
- raise Google::Cloud::Error.from_error(e)
1745
+ rescue ::GRPC::BadStatus => e
1746
+ raise ::Google::Cloud::Error.from_error(e)
1747
1747
  end
1748
1748
 
1749
1749
  ##
@@ -1753,7 +1753,7 @@ module Google
1753
1753
  # providing control over timeouts, retry behavior, logging, transport
1754
1754
  # parameters, and other low-level controls. Certain parameters can also be
1755
1755
  # applied individually to specific RPCs. See
1756
- # {Google::Cloud::Vision::V1p3beta1::ProductSearch::Client::Configuration::Rpcs}
1756
+ # {::Google::Cloud::Vision::V1p3beta1::ProductSearch::Client::Configuration::Rpcs}
1757
1757
  # for a list of RPCs that can be configured independently.
1758
1758
  #
1759
1759
  # Configuration can be applied globally to all clients, or to a single client
@@ -1764,22 +1764,22 @@ module Google
1764
1764
  # To modify the global config, setting the timeout for create_product_set
1765
1765
  # to 20 seconds, and all remaining timeouts to 10 seconds:
1766
1766
  #
1767
- # Google::Cloud::Vision::V1p3beta1::ProductSearch::Client.configure do |config|
1768
- # config.timeout = 10_000
1769
- # config.rpcs.create_product_set.timeout = 20_000
1767
+ # ::Google::Cloud::Vision::V1p3beta1::ProductSearch::Client.configure do |config|
1768
+ # config.timeout = 10.0
1769
+ # config.rpcs.create_product_set.timeout = 20.0
1770
1770
  # end
1771
1771
  #
1772
1772
  # To apply the above configuration only to a new client:
1773
1773
  #
1774
- # client = Google::Cloud::Vision::V1p3beta1::ProductSearch::Client.new do |config|
1775
- # config.timeout = 10_000
1776
- # config.rpcs.create_product_set.timeout = 20_000
1774
+ # client = ::Google::Cloud::Vision::V1p3beta1::ProductSearch::Client.new do |config|
1775
+ # config.timeout = 10.0
1776
+ # config.rpcs.create_product_set.timeout = 20.0
1777
1777
  # end
1778
1778
  #
1779
1779
  # @!attribute [rw] endpoint
1780
1780
  # The hostname or hostname:port of the service endpoint.
1781
1781
  # Defaults to `"vision.googleapis.com"`.
1782
- # @return [String]
1782
+ # @return [::String]
1783
1783
  # @!attribute [rw] credentials
1784
1784
  # Credentials to send with calls. You may provide any of the following types:
1785
1785
  # * (`String`) The path to a service account key file in JSON format
@@ -1791,29 +1791,29 @@ module Google
1791
1791
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
1792
1792
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
1793
1793
  # * (`nil`) indicating no credentials
1794
- # @return [Object]
1794
+ # @return [::Object]
1795
1795
  # @!attribute [rw] scope
1796
1796
  # The OAuth scopes
1797
- # @return [Array<String>]
1797
+ # @return [::Array<::String>]
1798
1798
  # @!attribute [rw] lib_name
1799
1799
  # The library name as recorded in instrumentation and logging
1800
- # @return [String]
1800
+ # @return [::String]
1801
1801
  # @!attribute [rw] lib_version
1802
1802
  # The library version as recorded in instrumentation and logging
1803
- # @return [String]
1803
+ # @return [::String]
1804
1804
  # @!attribute [rw] channel_args
1805
1805
  # Extra parameters passed to the gRPC channel. Note: this is ignored if a
1806
1806
  # `GRPC::Core::Channel` object is provided as the credential.
1807
- # @return [Hash]
1807
+ # @return [::Hash]
1808
1808
  # @!attribute [rw] interceptors
1809
1809
  # An array of interceptors that are run before calls are executed.
1810
- # @return [Array<GRPC::ClientInterceptor>]
1810
+ # @return [::Array<::GRPC::ClientInterceptor>]
1811
1811
  # @!attribute [rw] timeout
1812
- # The call timeout in milliseconds.
1813
- # @return [Numeric]
1812
+ # The call timeout in seconds.
1813
+ # @return [::Numeric]
1814
1814
  # @!attribute [rw] metadata
1815
1815
  # Additional gRPC headers to be sent with the call.
1816
- # @return [Hash{Symbol=>String}]
1816
+ # @return [::Hash{::Symbol=>::String}]
1817
1817
  # @!attribute [rw] retry_policy
1818
1818
  # The retry policy. The value is a hash with the following keys:
1819
1819
  # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
@@ -1821,10 +1821,10 @@ module Google
1821
1821
  # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
1822
1822
  # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
1823
1823
  # trigger a retry.
1824
- # @return [Hash]
1824
+ # @return [::Hash]
1825
1825
  #
1826
1826
  class Configuration
1827
- extend Gapic::Config
1827
+ extend ::Gapic::Config
1828
1828
 
1829
1829
  config_attr :endpoint, "vision.googleapis.com", String
1830
1830
  config_attr :credentials, nil do |value|
@@ -1832,14 +1832,14 @@ module Google
1832
1832
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
1833
1833
  allowed.any? { |klass| klass === value }
1834
1834
  end
1835
- config_attr :scope, nil, String, Array, nil
1836
- config_attr :lib_name, nil, String, nil
1837
- config_attr :lib_version, nil, String, nil
1838
- config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, Hash, nil)
1839
- config_attr :interceptors, nil, Array, nil
1840
- config_attr :timeout, nil, Numeric, nil
1841
- config_attr :metadata, nil, Hash, nil
1842
- config_attr :retry_policy, nil, Hash, Proc, nil
1835
+ config_attr :scope, nil, ::String, ::Array, nil
1836
+ config_attr :lib_name, nil, ::String, nil
1837
+ config_attr :lib_version, nil, ::String, nil
1838
+ config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
1839
+ config_attr :interceptors, nil, ::Array, nil
1840
+ config_attr :timeout, nil, ::Numeric, nil
1841
+ config_attr :metadata, nil, ::Hash, nil
1842
+ config_attr :retry_policy, nil, ::Hash, Proc, nil
1843
1843
 
1844
1844
  # @private
1845
1845
  def initialize parent_config = nil
@@ -1880,133 +1880,133 @@ module Google
1880
1880
  class Rpcs
1881
1881
  ##
1882
1882
  # RPC-specific configuration for `create_product_set`
1883
- # @return [Gapic::Config::Method]
1883
+ # @return [::Gapic::Config::Method]
1884
1884
  #
1885
1885
  attr_reader :create_product_set
1886
1886
  ##
1887
1887
  # RPC-specific configuration for `list_product_sets`
1888
- # @return [Gapic::Config::Method]
1888
+ # @return [::Gapic::Config::Method]
1889
1889
  #
1890
1890
  attr_reader :list_product_sets
1891
1891
  ##
1892
1892
  # RPC-specific configuration for `get_product_set`
1893
- # @return [Gapic::Config::Method]
1893
+ # @return [::Gapic::Config::Method]
1894
1894
  #
1895
1895
  attr_reader :get_product_set
1896
1896
  ##
1897
1897
  # RPC-specific configuration for `update_product_set`
1898
- # @return [Gapic::Config::Method]
1898
+ # @return [::Gapic::Config::Method]
1899
1899
  #
1900
1900
  attr_reader :update_product_set
1901
1901
  ##
1902
1902
  # RPC-specific configuration for `delete_product_set`
1903
- # @return [Gapic::Config::Method]
1903
+ # @return [::Gapic::Config::Method]
1904
1904
  #
1905
1905
  attr_reader :delete_product_set
1906
1906
  ##
1907
1907
  # RPC-specific configuration for `create_product`
1908
- # @return [Gapic::Config::Method]
1908
+ # @return [::Gapic::Config::Method]
1909
1909
  #
1910
1910
  attr_reader :create_product
1911
1911
  ##
1912
1912
  # RPC-specific configuration for `list_products`
1913
- # @return [Gapic::Config::Method]
1913
+ # @return [::Gapic::Config::Method]
1914
1914
  #
1915
1915
  attr_reader :list_products
1916
1916
  ##
1917
1917
  # RPC-specific configuration for `get_product`
1918
- # @return [Gapic::Config::Method]
1918
+ # @return [::Gapic::Config::Method]
1919
1919
  #
1920
1920
  attr_reader :get_product
1921
1921
  ##
1922
1922
  # RPC-specific configuration for `update_product`
1923
- # @return [Gapic::Config::Method]
1923
+ # @return [::Gapic::Config::Method]
1924
1924
  #
1925
1925
  attr_reader :update_product
1926
1926
  ##
1927
1927
  # RPC-specific configuration for `delete_product`
1928
- # @return [Gapic::Config::Method]
1928
+ # @return [::Gapic::Config::Method]
1929
1929
  #
1930
1930
  attr_reader :delete_product
1931
1931
  ##
1932
1932
  # RPC-specific configuration for `create_reference_image`
1933
- # @return [Gapic::Config::Method]
1933
+ # @return [::Gapic::Config::Method]
1934
1934
  #
1935
1935
  attr_reader :create_reference_image
1936
1936
  ##
1937
1937
  # RPC-specific configuration for `delete_reference_image`
1938
- # @return [Gapic::Config::Method]
1938
+ # @return [::Gapic::Config::Method]
1939
1939
  #
1940
1940
  attr_reader :delete_reference_image
1941
1941
  ##
1942
1942
  # RPC-specific configuration for `list_reference_images`
1943
- # @return [Gapic::Config::Method]
1943
+ # @return [::Gapic::Config::Method]
1944
1944
  #
1945
1945
  attr_reader :list_reference_images
1946
1946
  ##
1947
1947
  # RPC-specific configuration for `get_reference_image`
1948
- # @return [Gapic::Config::Method]
1948
+ # @return [::Gapic::Config::Method]
1949
1949
  #
1950
1950
  attr_reader :get_reference_image
1951
1951
  ##
1952
1952
  # RPC-specific configuration for `add_product_to_product_set`
1953
- # @return [Gapic::Config::Method]
1953
+ # @return [::Gapic::Config::Method]
1954
1954
  #
1955
1955
  attr_reader :add_product_to_product_set
1956
1956
  ##
1957
1957
  # RPC-specific configuration for `remove_product_from_product_set`
1958
- # @return [Gapic::Config::Method]
1958
+ # @return [::Gapic::Config::Method]
1959
1959
  #
1960
1960
  attr_reader :remove_product_from_product_set
1961
1961
  ##
1962
1962
  # RPC-specific configuration for `list_products_in_product_set`
1963
- # @return [Gapic::Config::Method]
1963
+ # @return [::Gapic::Config::Method]
1964
1964
  #
1965
1965
  attr_reader :list_products_in_product_set
1966
1966
  ##
1967
1967
  # RPC-specific configuration for `import_product_sets`
1968
- # @return [Gapic::Config::Method]
1968
+ # @return [::Gapic::Config::Method]
1969
1969
  #
1970
1970
  attr_reader :import_product_sets
1971
1971
 
1972
1972
  # @private
1973
1973
  def initialize parent_rpcs = nil
1974
1974
  create_product_set_config = parent_rpcs&.create_product_set if parent_rpcs&.respond_to? :create_product_set
1975
- @create_product_set = Gapic::Config::Method.new create_product_set_config
1975
+ @create_product_set = ::Gapic::Config::Method.new create_product_set_config
1976
1976
  list_product_sets_config = parent_rpcs&.list_product_sets if parent_rpcs&.respond_to? :list_product_sets
1977
- @list_product_sets = Gapic::Config::Method.new list_product_sets_config
1977
+ @list_product_sets = ::Gapic::Config::Method.new list_product_sets_config
1978
1978
  get_product_set_config = parent_rpcs&.get_product_set if parent_rpcs&.respond_to? :get_product_set
1979
- @get_product_set = Gapic::Config::Method.new get_product_set_config
1979
+ @get_product_set = ::Gapic::Config::Method.new get_product_set_config
1980
1980
  update_product_set_config = parent_rpcs&.update_product_set if parent_rpcs&.respond_to? :update_product_set
1981
- @update_product_set = Gapic::Config::Method.new update_product_set_config
1981
+ @update_product_set = ::Gapic::Config::Method.new update_product_set_config
1982
1982
  delete_product_set_config = parent_rpcs&.delete_product_set if parent_rpcs&.respond_to? :delete_product_set
1983
- @delete_product_set = Gapic::Config::Method.new delete_product_set_config
1983
+ @delete_product_set = ::Gapic::Config::Method.new delete_product_set_config
1984
1984
  create_product_config = parent_rpcs&.create_product if parent_rpcs&.respond_to? :create_product
1985
- @create_product = Gapic::Config::Method.new create_product_config
1985
+ @create_product = ::Gapic::Config::Method.new create_product_config
1986
1986
  list_products_config = parent_rpcs&.list_products if parent_rpcs&.respond_to? :list_products
1987
- @list_products = Gapic::Config::Method.new list_products_config
1987
+ @list_products = ::Gapic::Config::Method.new list_products_config
1988
1988
  get_product_config = parent_rpcs&.get_product if parent_rpcs&.respond_to? :get_product
1989
- @get_product = Gapic::Config::Method.new get_product_config
1989
+ @get_product = ::Gapic::Config::Method.new get_product_config
1990
1990
  update_product_config = parent_rpcs&.update_product if parent_rpcs&.respond_to? :update_product
1991
- @update_product = Gapic::Config::Method.new update_product_config
1991
+ @update_product = ::Gapic::Config::Method.new update_product_config
1992
1992
  delete_product_config = parent_rpcs&.delete_product if parent_rpcs&.respond_to? :delete_product
1993
- @delete_product = Gapic::Config::Method.new delete_product_config
1993
+ @delete_product = ::Gapic::Config::Method.new delete_product_config
1994
1994
  create_reference_image_config = parent_rpcs&.create_reference_image if parent_rpcs&.respond_to? :create_reference_image
1995
- @create_reference_image = Gapic::Config::Method.new create_reference_image_config
1995
+ @create_reference_image = ::Gapic::Config::Method.new create_reference_image_config
1996
1996
  delete_reference_image_config = parent_rpcs&.delete_reference_image if parent_rpcs&.respond_to? :delete_reference_image
1997
- @delete_reference_image = Gapic::Config::Method.new delete_reference_image_config
1997
+ @delete_reference_image = ::Gapic::Config::Method.new delete_reference_image_config
1998
1998
  list_reference_images_config = parent_rpcs&.list_reference_images if parent_rpcs&.respond_to? :list_reference_images
1999
- @list_reference_images = Gapic::Config::Method.new list_reference_images_config
1999
+ @list_reference_images = ::Gapic::Config::Method.new list_reference_images_config
2000
2000
  get_reference_image_config = parent_rpcs&.get_reference_image if parent_rpcs&.respond_to? :get_reference_image
2001
- @get_reference_image = Gapic::Config::Method.new get_reference_image_config
2001
+ @get_reference_image = ::Gapic::Config::Method.new get_reference_image_config
2002
2002
  add_product_to_product_set_config = parent_rpcs&.add_product_to_product_set if parent_rpcs&.respond_to? :add_product_to_product_set
2003
- @add_product_to_product_set = Gapic::Config::Method.new add_product_to_product_set_config
2003
+ @add_product_to_product_set = ::Gapic::Config::Method.new add_product_to_product_set_config
2004
2004
  remove_product_from_product_set_config = parent_rpcs&.remove_product_from_product_set if parent_rpcs&.respond_to? :remove_product_from_product_set
2005
- @remove_product_from_product_set = Gapic::Config::Method.new remove_product_from_product_set_config
2005
+ @remove_product_from_product_set = ::Gapic::Config::Method.new remove_product_from_product_set_config
2006
2006
  list_products_in_product_set_config = parent_rpcs&.list_products_in_product_set if parent_rpcs&.respond_to? :list_products_in_product_set
2007
- @list_products_in_product_set = Gapic::Config::Method.new list_products_in_product_set_config
2007
+ @list_products_in_product_set = ::Gapic::Config::Method.new list_products_in_product_set_config
2008
2008
  import_product_sets_config = parent_rpcs&.import_product_sets if parent_rpcs&.respond_to? :import_product_sets
2009
- @import_product_sets = Gapic::Config::Method.new import_product_sets_config
2009
+ @import_product_sets = ::Gapic::Config::Method.new import_product_sets_config
2010
2010
 
2011
2011
  yield self if block_given?
2012
2012
  end