google-cloud-vision-v1 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/v1.rb +1 -1
  5. data/lib/google/cloud/vision/v1/image_annotator.rb +1 -1
  6. data/lib/google/cloud/vision/v1/image_annotator/client.rb +108 -108
  7. data/lib/google/cloud/vision/v1/image_annotator/credentials.rb +1 -1
  8. data/lib/google/cloud/vision/v1/image_annotator/operations.rb +100 -100
  9. data/lib/google/cloud/vision/v1/image_annotator/paths.rb +3 -3
  10. data/lib/google/cloud/vision/v1/product_search.rb +4 -4
  11. data/lib/google/cloud/vision/v1/product_search/client.rb +377 -377
  12. data/lib/google/cloud/vision/v1/product_search/credentials.rb +1 -1
  13. data/lib/google/cloud/vision/v1/product_search/operations.rb +100 -100
  14. data/lib/google/cloud/vision/v1/product_search/paths.rb +12 -12
  15. data/lib/google/cloud/vision/v1/version.rb +1 -1
  16. data/proto_docs/google/api/resource.rb +12 -12
  17. data/proto_docs/google/cloud/vision/v1/geometry.rb +17 -17
  18. data/proto_docs/google/cloud/vision/v1/image_annotator.rb +204 -204
  19. data/proto_docs/google/cloud/vision/v1/product_search.rb +28 -28
  20. data/proto_docs/google/cloud/vision/v1/product_search_service.rb +144 -144
  21. data/proto_docs/google/cloud/vision/v1/text_annotation.rb +49 -49
  22. data/proto_docs/google/cloud/vision/v1/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::V1::ProductSet ProductSet} resources, named
38
+ # - The API has a collection of {::Google::Cloud::Vision::V1::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::V1::Product Product} resources, named
44
+ # - The API has a collection of {::Google::Cloud::Vision::V1::Product Product} resources, named
45
45
  # `projects/*/locations/*/products/*`
46
46
  #
47
- # - Each {Google::Cloud::Vision::V1::Product Product} has a collection of {Google::Cloud::Vision::V1::ReferenceImage ReferenceImage} resources, named
47
+ # - Each {::Google::Cloud::Vision::V1::Product Product} has a collection of {::Google::Cloud::Vision::V1::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/v1/product_search"
53
- # client = Google::Cloud::Vision::V1::ProductSearch::Client.new
53
+ # client = ::Google::Cloud::Vision::V1::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::V1::ProductSet ProductSet} resources, named
33
+ # - The API has a collection of {::Google::Cloud::Vision::V1::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::V1::Product Product} resources, named
39
+ # - The API has a collection of {::Google::Cloud::Vision::V1::Product Product} resources, named
40
40
  # `projects/*/locations/*/products/*`
41
41
  #
42
- # - Each {Google::Cloud::Vision::V1::Product Product} has a collection of {Google::Cloud::Vision::V1::ReferenceImage ReferenceImage} resources, named
42
+ # - Each {::Google::Cloud::Vision::V1::Product Product} has a collection of {::Google::Cloud::Vision::V1::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::V1::ProductSearch::Client::Configuration}
54
+ # See {::Google::Cloud::Vision::V1::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::V1::ProductSearch::Client.configure do |config|
62
- # config.timeout = 10_000
61
+ # ::Google::Cloud::Vision::V1::ProductSearch::Client.configure do |config|
62
+ # config.timeout = 10.0
63
63
  # end
64
64
  #
65
65
  # @yield [config] Configure the Client client.
@@ -243,7 +243,7 @@ module Google
243
243
  # but structural changes (adding new fields, etc.) are not allowed. Structural changes
244
244
  # should be made on {Client.configure}.
245
245
  #
246
- # See {Google::Cloud::Vision::V1::ProductSearch::Client::Configuration}
246
+ # See {::Google::Cloud::Vision::V1::ProductSearch::Client::Configuration}
247
247
  # for a description of the configuration fields.
248
248
  #
249
249
  # @yield [config] Configure the Client client.
@@ -264,13 +264,13 @@ module Google
264
264
  # To create a new ProductSearch client with the default
265
265
  # configuration:
266
266
  #
267
- # client = Google::Cloud::Vision::V1::ProductSearch::Client.new
267
+ # client = ::Google::Cloud::Vision::V1::ProductSearch::Client.new
268
268
  #
269
269
  # To create a new ProductSearch client with a custom
270
270
  # configuration:
271
271
  #
272
- # client = Google::Cloud::Vision::V1::ProductSearch::Client.new do |config|
273
- # config.timeout = 10_000
272
+ # client = ::Google::Cloud::Vision::V1::ProductSearch::Client.new do |config|
273
+ # config.timeout = 10.0
274
274
  # end
275
275
  #
276
276
  # @yield [config] Configure the ProductSearch client.
@@ -302,8 +302,8 @@ module Google
302
302
  config.endpoint = @config.endpoint
303
303
  end
304
304
 
305
- @product_search_stub = Gapic::ServiceStub.new(
306
- Google::Cloud::Vision::V1::ProductSearch::Stub,
305
+ @product_search_stub = ::Gapic::ServiceStub.new(
306
+ ::Google::Cloud::Vision::V1::ProductSearch::Stub,
307
307
  credentials: credentials,
308
308
  endpoint: @config.endpoint,
309
309
  channel_args: @config.channel_args,
@@ -314,7 +314,7 @@ module Google
314
314
  ##
315
315
  # Get the associated client for long-running operations.
316
316
  #
317
- # @return [Google::Cloud::Vision::V1::ProductSearch::Operations]
317
+ # @return [::Google::Cloud::Vision::V1::ProductSearch::Operations]
318
318
  #
319
319
  attr_reader :operations_client
320
320
 
@@ -330,12 +330,12 @@ module Google
330
330
  #
331
331
  # @overload create_product_set(request, options = nil)
332
332
  # Pass arguments to `create_product_set` via a request object, either of type
333
- # {Google::Cloud::Vision::V1::CreateProductSetRequest} or an equivalent Hash.
333
+ # {::Google::Cloud::Vision::V1::CreateProductSetRequest} or an equivalent Hash.
334
334
  #
335
- # @param request [Google::Cloud::Vision::V1::CreateProductSetRequest, Hash]
335
+ # @param request [::Google::Cloud::Vision::V1::CreateProductSetRequest, ::Hash]
336
336
  # A request object representing the call parameters. Required. To specify no
337
337
  # parameters, or to keep all the default parameter values, pass an empty Hash.
338
- # @param options [Gapic::CallOptions, Hash]
338
+ # @param options [::Gapic::CallOptions, ::Hash]
339
339
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
340
340
  #
341
341
  # @overload create_product_set(parent: nil, product_set: nil, product_set_id: nil)
@@ -343,39 +343,39 @@ module Google
343
343
  # least one keyword argument is required. To specify no parameters, or to keep all
344
344
  # the default parameter values, pass an empty Hash as a request object (see above).
345
345
  #
346
- # @param parent [String]
346
+ # @param parent [::String]
347
347
  # Required. The project in which the ProductSet should be created.
348
348
  #
349
349
  # Format is `projects/PROJECT_ID/locations/LOC_ID`.
350
- # @param product_set [Google::Cloud::Vision::V1::ProductSet, Hash]
350
+ # @param product_set [::Google::Cloud::Vision::V1::ProductSet, ::Hash]
351
351
  # Required. The ProductSet to create.
352
- # @param product_set_id [String]
352
+ # @param product_set_id [::String]
353
353
  # A user-supplied resource id for this ProductSet. If set, the server will
354
354
  # attempt to use this value as the resource id. If it is already in use, an
355
355
  # error is returned with code ALREADY_EXISTS. Must be at most 128 characters
356
356
  # long. It cannot contain the character `/`.
357
357
  #
358
358
  # @yield [response, operation] Access the result along with the RPC operation
359
- # @yieldparam response [Google::Cloud::Vision::V1::ProductSet]
360
- # @yieldparam operation [GRPC::ActiveCall::Operation]
359
+ # @yieldparam response [::Google::Cloud::Vision::V1::ProductSet]
360
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
361
361
  #
362
- # @return [Google::Cloud::Vision::V1::ProductSet]
362
+ # @return [::Google::Cloud::Vision::V1::ProductSet]
363
363
  #
364
- # @raise [Google::Cloud::Error] if the RPC is aborted.
364
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
365
365
  #
366
366
  def create_product_set request, options = nil
367
- raise ArgumentError, "request must be provided" if request.nil?
367
+ raise ::ArgumentError, "request must be provided" if request.nil?
368
368
 
369
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Vision::V1::CreateProductSetRequest
369
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Vision::V1::CreateProductSetRequest
370
370
 
371
371
  # Converts hash and nil to an options object
372
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
372
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
373
373
 
374
374
  # Customize the options with defaults
375
375
  metadata = @config.rpcs.create_product_set.metadata.to_h
376
376
 
377
377
  # Set x-goog-api-client and x-goog-user-project headers
378
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
378
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
379
379
  lib_name: @config.lib_name, lib_version: @config.lib_version,
380
380
  gapic_version: ::Google::Cloud::Vision::V1::VERSION
381
381
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -396,8 +396,8 @@ module Google
396
396
  yield response, operation if block_given?
397
397
  return response
398
398
  end
399
- rescue GRPC::BadStatus => e
400
- raise Google::Cloud::Error.from_error(e)
399
+ rescue ::GRPC::BadStatus => e
400
+ raise ::Google::Cloud::Error.from_error(e)
401
401
  end
402
402
 
403
403
  ##
@@ -410,12 +410,12 @@ module Google
410
410
  #
411
411
  # @overload list_product_sets(request, options = nil)
412
412
  # Pass arguments to `list_product_sets` via a request object, either of type
413
- # {Google::Cloud::Vision::V1::ListProductSetsRequest} or an equivalent Hash.
413
+ # {::Google::Cloud::Vision::V1::ListProductSetsRequest} or an equivalent Hash.
414
414
  #
415
- # @param request [Google::Cloud::Vision::V1::ListProductSetsRequest, Hash]
415
+ # @param request [::Google::Cloud::Vision::V1::ListProductSetsRequest, ::Hash]
416
416
  # A request object representing the call parameters. Required. To specify no
417
417
  # parameters, or to keep all the default parameter values, pass an empty Hash.
418
- # @param options [Gapic::CallOptions, Hash]
418
+ # @param options [::Gapic::CallOptions, ::Hash]
419
419
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
420
420
  #
421
421
  # @overload list_product_sets(parent: nil, page_size: nil, page_token: nil)
@@ -423,36 +423,36 @@ module Google
423
423
  # least one keyword argument is required. To specify no parameters, or to keep all
424
424
  # the default parameter values, pass an empty Hash as a request object (see above).
425
425
  #
426
- # @param parent [String]
426
+ # @param parent [::String]
427
427
  # Required. The project from which ProductSets should be listed.
428
428
  #
429
429
  # Format is `projects/PROJECT_ID/locations/LOC_ID`.
430
- # @param page_size [Integer]
430
+ # @param page_size [::Integer]
431
431
  # The maximum number of items to return. Default 10, maximum 100.
432
- # @param page_token [String]
432
+ # @param page_token [::String]
433
433
  # The next_page_token returned from a previous List request, if any.
434
434
  #
435
435
  # @yield [response, operation] Access the result along with the RPC operation
436
- # @yieldparam response [Gapic::PagedEnumerable<Google::Cloud::Vision::V1::ProductSet>]
437
- # @yieldparam operation [GRPC::ActiveCall::Operation]
436
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Vision::V1::ProductSet>]
437
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
438
438
  #
439
- # @return [Gapic::PagedEnumerable<Google::Cloud::Vision::V1::ProductSet>]
439
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::Vision::V1::ProductSet>]
440
440
  #
441
- # @raise [Google::Cloud::Error] if the RPC is aborted.
441
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
442
442
  #
443
443
  def list_product_sets request, options = nil
444
- raise ArgumentError, "request must be provided" if request.nil?
444
+ raise ::ArgumentError, "request must be provided" if request.nil?
445
445
 
446
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Vision::V1::ListProductSetsRequest
446
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Vision::V1::ListProductSetsRequest
447
447
 
448
448
  # Converts hash and nil to an options object
449
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
449
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
450
450
 
451
451
  # Customize the options with defaults
452
452
  metadata = @config.rpcs.list_product_sets.metadata.to_h
453
453
 
454
454
  # Set x-goog-api-client and x-goog-user-project headers
455
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
455
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
456
456
  lib_name: @config.lib_name, lib_version: @config.lib_version,
457
457
  gapic_version: ::Google::Cloud::Vision::V1::VERSION
458
458
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -470,12 +470,12 @@ module Google
470
470
  retry_policy: @config.retry_policy
471
471
 
472
472
  @product_search_stub.call_rpc :list_product_sets, request, options: options do |response, operation|
473
- response = Gapic::PagedEnumerable.new @product_search_stub, :list_product_sets, request, response, operation, options
473
+ response = ::Gapic::PagedEnumerable.new @product_search_stub, :list_product_sets, request, response, operation, options
474
474
  yield response, operation if block_given?
475
475
  return response
476
476
  end
477
- rescue GRPC::BadStatus => e
478
- raise Google::Cloud::Error.from_error(e)
477
+ rescue ::GRPC::BadStatus => e
478
+ raise ::Google::Cloud::Error.from_error(e)
479
479
  end
480
480
 
481
481
  ##
@@ -487,12 +487,12 @@ module Google
487
487
  #
488
488
  # @overload get_product_set(request, options = nil)
489
489
  # Pass arguments to `get_product_set` via a request object, either of type
490
- # {Google::Cloud::Vision::V1::GetProductSetRequest} or an equivalent Hash.
490
+ # {::Google::Cloud::Vision::V1::GetProductSetRequest} or an equivalent Hash.
491
491
  #
492
- # @param request [Google::Cloud::Vision::V1::GetProductSetRequest, Hash]
492
+ # @param request [::Google::Cloud::Vision::V1::GetProductSetRequest, ::Hash]
493
493
  # A request object representing the call parameters. Required. To specify no
494
494
  # parameters, or to keep all the default parameter values, pass an empty Hash.
495
- # @param options [Gapic::CallOptions, Hash]
495
+ # @param options [::Gapic::CallOptions, ::Hash]
496
496
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
497
497
  #
498
498
  # @overload get_product_set(name: nil)
@@ -500,33 +500,33 @@ module Google
500
500
  # least one keyword argument is required. To specify no parameters, or to keep all
501
501
  # the default parameter values, pass an empty Hash as a request object (see above).
502
502
  #
503
- # @param name [String]
503
+ # @param name [::String]
504
504
  # Required. Resource name of the ProductSet to get.
505
505
  #
506
506
  # Format is:
507
507
  # `projects/PROJECT_ID/locations/LOG_ID/productSets/PRODUCT_SET_ID`
508
508
  #
509
509
  # @yield [response, operation] Access the result along with the RPC operation
510
- # @yieldparam response [Google::Cloud::Vision::V1::ProductSet]
511
- # @yieldparam operation [GRPC::ActiveCall::Operation]
510
+ # @yieldparam response [::Google::Cloud::Vision::V1::ProductSet]
511
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
512
512
  #
513
- # @return [Google::Cloud::Vision::V1::ProductSet]
513
+ # @return [::Google::Cloud::Vision::V1::ProductSet]
514
514
  #
515
- # @raise [Google::Cloud::Error] if the RPC is aborted.
515
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
516
516
  #
517
517
  def get_product_set request, options = nil
518
- raise ArgumentError, "request must be provided" if request.nil?
518
+ raise ::ArgumentError, "request must be provided" if request.nil?
519
519
 
520
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Vision::V1::GetProductSetRequest
520
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Vision::V1::GetProductSetRequest
521
521
 
522
522
  # Converts hash and nil to an options object
523
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
523
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
524
524
 
525
525
  # Customize the options with defaults
526
526
  metadata = @config.rpcs.get_product_set.metadata.to_h
527
527
 
528
528
  # Set x-goog-api-client and x-goog-user-project headers
529
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
529
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
530
530
  lib_name: @config.lib_name, lib_version: @config.lib_version,
531
531
  gapic_version: ::Google::Cloud::Vision::V1::VERSION
532
532
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -547,8 +547,8 @@ module Google
547
547
  yield response, operation if block_given?
548
548
  return response
549
549
  end
550
- rescue GRPC::BadStatus => e
551
- raise Google::Cloud::Error.from_error(e)
550
+ rescue ::GRPC::BadStatus => e
551
+ raise ::Google::Cloud::Error.from_error(e)
552
552
  end
553
553
 
554
554
  ##
@@ -563,12 +563,12 @@ module Google
563
563
  #
564
564
  # @overload update_product_set(request, options = nil)
565
565
  # Pass arguments to `update_product_set` via a request object, either of type
566
- # {Google::Cloud::Vision::V1::UpdateProductSetRequest} or an equivalent Hash.
566
+ # {::Google::Cloud::Vision::V1::UpdateProductSetRequest} or an equivalent Hash.
567
567
  #
568
- # @param request [Google::Cloud::Vision::V1::UpdateProductSetRequest, Hash]
568
+ # @param request [::Google::Cloud::Vision::V1::UpdateProductSetRequest, ::Hash]
569
569
  # A request object representing the call parameters. Required. To specify no
570
570
  # parameters, or to keep all the default parameter values, pass an empty Hash.
571
- # @param options [Gapic::CallOptions, Hash]
571
+ # @param options [::Gapic::CallOptions, ::Hash]
572
572
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
573
573
  #
574
574
  # @overload update_product_set(product_set: nil, update_mask: nil)
@@ -576,35 +576,35 @@ module Google
576
576
  # least one keyword argument is required. To specify no parameters, or to keep all
577
577
  # the default parameter values, pass an empty Hash as a request object (see above).
578
578
  #
579
- # @param product_set [Google::Cloud::Vision::V1::ProductSet, Hash]
579
+ # @param product_set [::Google::Cloud::Vision::V1::ProductSet, ::Hash]
580
580
  # Required. The ProductSet resource which replaces the one on the server.
581
- # @param update_mask [Google::Protobuf::FieldMask, Hash]
582
- # The {Google::Protobuf::FieldMask FieldMask} that specifies which fields to
581
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
582
+ # The {::Google::Protobuf::FieldMask FieldMask} that specifies which fields to
583
583
  # update.
584
584
  # If update_mask isn't specified, all mutable fields are to be updated.
585
585
  # Valid mask path is `display_name`.
586
586
  #
587
587
  # @yield [response, operation] Access the result along with the RPC operation
588
- # @yieldparam response [Google::Cloud::Vision::V1::ProductSet]
589
- # @yieldparam operation [GRPC::ActiveCall::Operation]
588
+ # @yieldparam response [::Google::Cloud::Vision::V1::ProductSet]
589
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
590
590
  #
591
- # @return [Google::Cloud::Vision::V1::ProductSet]
591
+ # @return [::Google::Cloud::Vision::V1::ProductSet]
592
592
  #
593
- # @raise [Google::Cloud::Error] if the RPC is aborted.
593
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
594
594
  #
595
595
  def update_product_set request, options = nil
596
- raise ArgumentError, "request must be provided" if request.nil?
596
+ raise ::ArgumentError, "request must be provided" if request.nil?
597
597
 
598
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Vision::V1::UpdateProductSetRequest
598
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Vision::V1::UpdateProductSetRequest
599
599
 
600
600
  # Converts hash and nil to an options object
601
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
601
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
602
602
 
603
603
  # Customize the options with defaults
604
604
  metadata = @config.rpcs.update_product_set.metadata.to_h
605
605
 
606
606
  # Set x-goog-api-client and x-goog-user-project headers
607
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
607
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
608
608
  lib_name: @config.lib_name, lib_version: @config.lib_version,
609
609
  gapic_version: ::Google::Cloud::Vision::V1::VERSION
610
610
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -625,8 +625,8 @@ module Google
625
625
  yield response, operation if block_given?
626
626
  return response
627
627
  end
628
- rescue GRPC::BadStatus => e
629
- raise Google::Cloud::Error.from_error(e)
628
+ rescue ::GRPC::BadStatus => e
629
+ raise ::Google::Cloud::Error.from_error(e)
630
630
  end
631
631
 
632
632
  ##
@@ -637,12 +637,12 @@ module Google
637
637
  #
638
638
  # @overload delete_product_set(request, options = nil)
639
639
  # Pass arguments to `delete_product_set` via a request object, either of type
640
- # {Google::Cloud::Vision::V1::DeleteProductSetRequest} or an equivalent Hash.
640
+ # {::Google::Cloud::Vision::V1::DeleteProductSetRequest} or an equivalent Hash.
641
641
  #
642
- # @param request [Google::Cloud::Vision::V1::DeleteProductSetRequest, Hash]
642
+ # @param request [::Google::Cloud::Vision::V1::DeleteProductSetRequest, ::Hash]
643
643
  # A request object representing the call parameters. Required. To specify no
644
644
  # parameters, or to keep all the default parameter values, pass an empty Hash.
645
- # @param options [Gapic::CallOptions, Hash]
645
+ # @param options [::Gapic::CallOptions, ::Hash]
646
646
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
647
647
  #
648
648
  # @overload delete_product_set(name: nil)
@@ -650,33 +650,33 @@ module Google
650
650
  # least one keyword argument is required. To specify no parameters, or to keep all
651
651
  # the default parameter values, pass an empty Hash as a request object (see above).
652
652
  #
653
- # @param name [String]
653
+ # @param name [::String]
654
654
  # Required. Resource name of the ProductSet to delete.
655
655
  #
656
656
  # Format is:
657
657
  # `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
658
658
  #
659
659
  # @yield [response, operation] Access the result along with the RPC operation
660
- # @yieldparam response [Google::Protobuf::Empty]
661
- # @yieldparam operation [GRPC::ActiveCall::Operation]
660
+ # @yieldparam response [::Google::Protobuf::Empty]
661
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
662
662
  #
663
- # @return [Google::Protobuf::Empty]
663
+ # @return [::Google::Protobuf::Empty]
664
664
  #
665
- # @raise [Google::Cloud::Error] if the RPC is aborted.
665
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
666
666
  #
667
667
  def delete_product_set request, options = nil
668
- raise ArgumentError, "request must be provided" if request.nil?
668
+ raise ::ArgumentError, "request must be provided" if request.nil?
669
669
 
670
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Vision::V1::DeleteProductSetRequest
670
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Vision::V1::DeleteProductSetRequest
671
671
 
672
672
  # Converts hash and nil to an options object
673
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
673
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
674
674
 
675
675
  # Customize the options with defaults
676
676
  metadata = @config.rpcs.delete_product_set.metadata.to_h
677
677
 
678
678
  # Set x-goog-api-client and x-goog-user-project headers
679
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
679
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
680
680
  lib_name: @config.lib_name, lib_version: @config.lib_version,
681
681
  gapic_version: ::Google::Cloud::Vision::V1::VERSION
682
682
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -697,8 +697,8 @@ module Google
697
697
  yield response, operation if block_given?
698
698
  return response
699
699
  end
700
- rescue GRPC::BadStatus => e
701
- raise Google::Cloud::Error.from_error(e)
700
+ rescue ::GRPC::BadStatus => e
701
+ raise ::Google::Cloud::Error.from_error(e)
702
702
  end
703
703
 
704
704
  ##
@@ -713,12 +713,12 @@ module Google
713
713
  #
714
714
  # @overload create_product(request, options = nil)
715
715
  # Pass arguments to `create_product` via a request object, either of type
716
- # {Google::Cloud::Vision::V1::CreateProductRequest} or an equivalent Hash.
716
+ # {::Google::Cloud::Vision::V1::CreateProductRequest} or an equivalent Hash.
717
717
  #
718
- # @param request [Google::Cloud::Vision::V1::CreateProductRequest, Hash]
718
+ # @param request [::Google::Cloud::Vision::V1::CreateProductRequest, ::Hash]
719
719
  # A request object representing the call parameters. Required. To specify no
720
720
  # parameters, or to keep all the default parameter values, pass an empty Hash.
721
- # @param options [Gapic::CallOptions, Hash]
721
+ # @param options [::Gapic::CallOptions, ::Hash]
722
722
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
723
723
  #
724
724
  # @overload create_product(parent: nil, product: nil, product_id: nil)
@@ -726,40 +726,40 @@ module Google
726
726
  # least one keyword argument is required. To specify no parameters, or to keep all
727
727
  # the default parameter values, pass an empty Hash as a request object (see above).
728
728
  #
729
- # @param parent [String]
729
+ # @param parent [::String]
730
730
  # Required. The project in which the Product should be created.
731
731
  #
732
732
  # Format is
733
733
  # `projects/PROJECT_ID/locations/LOC_ID`.
734
- # @param product [Google::Cloud::Vision::V1::Product, Hash]
734
+ # @param product [::Google::Cloud::Vision::V1::Product, ::Hash]
735
735
  # Required. The product to create.
736
- # @param product_id [String]
736
+ # @param product_id [::String]
737
737
  # A user-supplied resource id for this Product. If set, the server will
738
738
  # attempt to use this value as the resource id. If it is already in use, an
739
739
  # error is returned with code ALREADY_EXISTS. Must be at most 128 characters
740
740
  # long. It cannot contain the character `/`.
741
741
  #
742
742
  # @yield [response, operation] Access the result along with the RPC operation
743
- # @yieldparam response [Google::Cloud::Vision::V1::Product]
744
- # @yieldparam operation [GRPC::ActiveCall::Operation]
743
+ # @yieldparam response [::Google::Cloud::Vision::V1::Product]
744
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
745
745
  #
746
- # @return [Google::Cloud::Vision::V1::Product]
746
+ # @return [::Google::Cloud::Vision::V1::Product]
747
747
  #
748
- # @raise [Google::Cloud::Error] if the RPC is aborted.
748
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
749
749
  #
750
750
  def create_product request, options = nil
751
- raise ArgumentError, "request must be provided" if request.nil?
751
+ raise ::ArgumentError, "request must be provided" if request.nil?
752
752
 
753
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Vision::V1::CreateProductRequest
753
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Vision::V1::CreateProductRequest
754
754
 
755
755
  # Converts hash and nil to an options object
756
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
756
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
757
757
 
758
758
  # Customize the options with defaults
759
759
  metadata = @config.rpcs.create_product.metadata.to_h
760
760
 
761
761
  # Set x-goog-api-client and x-goog-user-project headers
762
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
762
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
763
763
  lib_name: @config.lib_name, lib_version: @config.lib_version,
764
764
  gapic_version: ::Google::Cloud::Vision::V1::VERSION
765
765
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -780,8 +780,8 @@ module Google
780
780
  yield response, operation if block_given?
781
781
  return response
782
782
  end
783
- rescue GRPC::BadStatus => e
784
- raise Google::Cloud::Error.from_error(e)
783
+ rescue ::GRPC::BadStatus => e
784
+ raise ::Google::Cloud::Error.from_error(e)
785
785
  end
786
786
 
787
787
  ##
@@ -793,12 +793,12 @@ module Google
793
793
  #
794
794
  # @overload list_products(request, options = nil)
795
795
  # Pass arguments to `list_products` via a request object, either of type
796
- # {Google::Cloud::Vision::V1::ListProductsRequest} or an equivalent Hash.
796
+ # {::Google::Cloud::Vision::V1::ListProductsRequest} or an equivalent Hash.
797
797
  #
798
- # @param request [Google::Cloud::Vision::V1::ListProductsRequest, Hash]
798
+ # @param request [::Google::Cloud::Vision::V1::ListProductsRequest, ::Hash]
799
799
  # A request object representing the call parameters. Required. To specify no
800
800
  # parameters, or to keep all the default parameter values, pass an empty Hash.
801
- # @param options [Gapic::CallOptions, Hash]
801
+ # @param options [::Gapic::CallOptions, ::Hash]
802
802
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
803
803
  #
804
804
  # @overload list_products(parent: nil, page_size: nil, page_token: nil)
@@ -806,37 +806,37 @@ module Google
806
806
  # least one keyword argument is required. To specify no parameters, or to keep all
807
807
  # the default parameter values, pass an empty Hash as a request object (see above).
808
808
  #
809
- # @param parent [String]
809
+ # @param parent [::String]
810
810
  # Required. The project OR ProductSet from which Products should be listed.
811
811
  #
812
812
  # Format:
813
813
  # `projects/PROJECT_ID/locations/LOC_ID`
814
- # @param page_size [Integer]
814
+ # @param page_size [::Integer]
815
815
  # The maximum number of items to return. Default 10, maximum 100.
816
- # @param page_token [String]
816
+ # @param page_token [::String]
817
817
  # The next_page_token returned from a previous List request, if any.
818
818
  #
819
819
  # @yield [response, operation] Access the result along with the RPC operation
820
- # @yieldparam response [Gapic::PagedEnumerable<Google::Cloud::Vision::V1::Product>]
821
- # @yieldparam operation [GRPC::ActiveCall::Operation]
820
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Vision::V1::Product>]
821
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
822
822
  #
823
- # @return [Gapic::PagedEnumerable<Google::Cloud::Vision::V1::Product>]
823
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::Vision::V1::Product>]
824
824
  #
825
- # @raise [Google::Cloud::Error] if the RPC is aborted.
825
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
826
826
  #
827
827
  def list_products request, options = nil
828
- raise ArgumentError, "request must be provided" if request.nil?
828
+ raise ::ArgumentError, "request must be provided" if request.nil?
829
829
 
830
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Vision::V1::ListProductsRequest
830
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Vision::V1::ListProductsRequest
831
831
 
832
832
  # Converts hash and nil to an options object
833
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
833
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
834
834
 
835
835
  # Customize the options with defaults
836
836
  metadata = @config.rpcs.list_products.metadata.to_h
837
837
 
838
838
  # Set x-goog-api-client and x-goog-user-project headers
839
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
839
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
840
840
  lib_name: @config.lib_name, lib_version: @config.lib_version,
841
841
  gapic_version: ::Google::Cloud::Vision::V1::VERSION
842
842
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -854,12 +854,12 @@ module Google
854
854
  retry_policy: @config.retry_policy
855
855
 
856
856
  @product_search_stub.call_rpc :list_products, request, options: options do |response, operation|
857
- response = Gapic::PagedEnumerable.new @product_search_stub, :list_products, request, response, operation, options
857
+ response = ::Gapic::PagedEnumerable.new @product_search_stub, :list_products, request, response, operation, options
858
858
  yield response, operation if block_given?
859
859
  return response
860
860
  end
861
- rescue GRPC::BadStatus => e
862
- raise Google::Cloud::Error.from_error(e)
861
+ rescue ::GRPC::BadStatus => e
862
+ raise ::Google::Cloud::Error.from_error(e)
863
863
  end
864
864
 
865
865
  ##
@@ -871,12 +871,12 @@ module Google
871
871
  #
872
872
  # @overload get_product(request, options = nil)
873
873
  # Pass arguments to `get_product` via a request object, either of type
874
- # {Google::Cloud::Vision::V1::GetProductRequest} or an equivalent Hash.
874
+ # {::Google::Cloud::Vision::V1::GetProductRequest} or an equivalent Hash.
875
875
  #
876
- # @param request [Google::Cloud::Vision::V1::GetProductRequest, Hash]
876
+ # @param request [::Google::Cloud::Vision::V1::GetProductRequest, ::Hash]
877
877
  # A request object representing the call parameters. Required. To specify no
878
878
  # parameters, or to keep all the default parameter values, pass an empty Hash.
879
- # @param options [Gapic::CallOptions, Hash]
879
+ # @param options [::Gapic::CallOptions, ::Hash]
880
880
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
881
881
  #
882
882
  # @overload get_product(name: nil)
@@ -884,33 +884,33 @@ module Google
884
884
  # least one keyword argument is required. To specify no parameters, or to keep all
885
885
  # the default parameter values, pass an empty Hash as a request object (see above).
886
886
  #
887
- # @param name [String]
887
+ # @param name [::String]
888
888
  # Required. Resource name of the Product to get.
889
889
  #
890
890
  # Format is:
891
891
  # `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
892
892
  #
893
893
  # @yield [response, operation] Access the result along with the RPC operation
894
- # @yieldparam response [Google::Cloud::Vision::V1::Product]
895
- # @yieldparam operation [GRPC::ActiveCall::Operation]
894
+ # @yieldparam response [::Google::Cloud::Vision::V1::Product]
895
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
896
896
  #
897
- # @return [Google::Cloud::Vision::V1::Product]
897
+ # @return [::Google::Cloud::Vision::V1::Product]
898
898
  #
899
- # @raise [Google::Cloud::Error] if the RPC is aborted.
899
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
900
900
  #
901
901
  def get_product request, options = nil
902
- raise ArgumentError, "request must be provided" if request.nil?
902
+ raise ::ArgumentError, "request must be provided" if request.nil?
903
903
 
904
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Vision::V1::GetProductRequest
904
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Vision::V1::GetProductRequest
905
905
 
906
906
  # Converts hash and nil to an options object
907
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
907
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
908
908
 
909
909
  # Customize the options with defaults
910
910
  metadata = @config.rpcs.get_product.metadata.to_h
911
911
 
912
912
  # Set x-goog-api-client and x-goog-user-project headers
913
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
913
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
914
914
  lib_name: @config.lib_name, lib_version: @config.lib_version,
915
915
  gapic_version: ::Google::Cloud::Vision::V1::VERSION
916
916
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -931,8 +931,8 @@ module Google
931
931
  yield response, operation if block_given?
932
932
  return response
933
933
  end
934
- rescue GRPC::BadStatus => e
935
- raise Google::Cloud::Error.from_error(e)
934
+ rescue ::GRPC::BadStatus => e
935
+ raise ::Google::Cloud::Error.from_error(e)
936
936
  end
937
937
 
938
938
  ##
@@ -954,12 +954,12 @@ module Google
954
954
  #
955
955
  # @overload update_product(request, options = nil)
956
956
  # Pass arguments to `update_product` via a request object, either of type
957
- # {Google::Cloud::Vision::V1::UpdateProductRequest} or an equivalent Hash.
957
+ # {::Google::Cloud::Vision::V1::UpdateProductRequest} or an equivalent Hash.
958
958
  #
959
- # @param request [Google::Cloud::Vision::V1::UpdateProductRequest, Hash]
959
+ # @param request [::Google::Cloud::Vision::V1::UpdateProductRequest, ::Hash]
960
960
  # A request object representing the call parameters. Required. To specify no
961
961
  # parameters, or to keep all the default parameter values, pass an empty Hash.
962
- # @param options [Gapic::CallOptions, Hash]
962
+ # @param options [::Gapic::CallOptions, ::Hash]
963
963
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
964
964
  #
965
965
  # @overload update_product(product: nil, update_mask: nil)
@@ -967,37 +967,37 @@ module Google
967
967
  # least one keyword argument is required. To specify no parameters, or to keep all
968
968
  # the default parameter values, pass an empty Hash as a request object (see above).
969
969
  #
970
- # @param product [Google::Cloud::Vision::V1::Product, Hash]
970
+ # @param product [::Google::Cloud::Vision::V1::Product, ::Hash]
971
971
  # Required. The Product resource which replaces the one on the server.
972
972
  # product.name is immutable.
973
- # @param update_mask [Google::Protobuf::FieldMask, Hash]
974
- # The {Google::Protobuf::FieldMask FieldMask} that specifies which fields
973
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
974
+ # The {::Google::Protobuf::FieldMask FieldMask} that specifies which fields
975
975
  # to update.
976
976
  # If update_mask isn't specified, all mutable fields are to be updated.
977
977
  # Valid mask paths include `product_labels`, `display_name`, and
978
978
  # `description`.
979
979
  #
980
980
  # @yield [response, operation] Access the result along with the RPC operation
981
- # @yieldparam response [Google::Cloud::Vision::V1::Product]
982
- # @yieldparam operation [GRPC::ActiveCall::Operation]
981
+ # @yieldparam response [::Google::Cloud::Vision::V1::Product]
982
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
983
983
  #
984
- # @return [Google::Cloud::Vision::V1::Product]
984
+ # @return [::Google::Cloud::Vision::V1::Product]
985
985
  #
986
- # @raise [Google::Cloud::Error] if the RPC is aborted.
986
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
987
987
  #
988
988
  def update_product request, options = nil
989
- raise ArgumentError, "request must be provided" if request.nil?
989
+ raise ::ArgumentError, "request must be provided" if request.nil?
990
990
 
991
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Vision::V1::UpdateProductRequest
991
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Vision::V1::UpdateProductRequest
992
992
 
993
993
  # Converts hash and nil to an options object
994
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
994
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
995
995
 
996
996
  # Customize the options with defaults
997
997
  metadata = @config.rpcs.update_product.metadata.to_h
998
998
 
999
999
  # Set x-goog-api-client and x-goog-user-project headers
1000
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
1000
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1001
1001
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1002
1002
  gapic_version: ::Google::Cloud::Vision::V1::VERSION
1003
1003
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -1018,8 +1018,8 @@ module Google
1018
1018
  yield response, operation if block_given?
1019
1019
  return response
1020
1020
  end
1021
- rescue GRPC::BadStatus => e
1022
- raise Google::Cloud::Error.from_error(e)
1021
+ rescue ::GRPC::BadStatus => e
1022
+ raise ::Google::Cloud::Error.from_error(e)
1023
1023
  end
1024
1024
 
1025
1025
  ##
@@ -1031,12 +1031,12 @@ module Google
1031
1031
  #
1032
1032
  # @overload delete_product(request, options = nil)
1033
1033
  # Pass arguments to `delete_product` via a request object, either of type
1034
- # {Google::Cloud::Vision::V1::DeleteProductRequest} or an equivalent Hash.
1034
+ # {::Google::Cloud::Vision::V1::DeleteProductRequest} or an equivalent Hash.
1035
1035
  #
1036
- # @param request [Google::Cloud::Vision::V1::DeleteProductRequest, Hash]
1036
+ # @param request [::Google::Cloud::Vision::V1::DeleteProductRequest, ::Hash]
1037
1037
  # A request object representing the call parameters. Required. To specify no
1038
1038
  # parameters, or to keep all the default parameter values, pass an empty Hash.
1039
- # @param options [Gapic::CallOptions, Hash]
1039
+ # @param options [::Gapic::CallOptions, ::Hash]
1040
1040
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1041
1041
  #
1042
1042
  # @overload delete_product(name: nil)
@@ -1044,33 +1044,33 @@ module Google
1044
1044
  # least one keyword argument is required. To specify no parameters, or to keep all
1045
1045
  # the default parameter values, pass an empty Hash as a request object (see above).
1046
1046
  #
1047
- # @param name [String]
1047
+ # @param name [::String]
1048
1048
  # Required. Resource name of product to delete.
1049
1049
  #
1050
1050
  # Format is:
1051
1051
  # `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
1052
1052
  #
1053
1053
  # @yield [response, operation] Access the result along with the RPC operation
1054
- # @yieldparam response [Google::Protobuf::Empty]
1055
- # @yieldparam operation [GRPC::ActiveCall::Operation]
1054
+ # @yieldparam response [::Google::Protobuf::Empty]
1055
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1056
1056
  #
1057
- # @return [Google::Protobuf::Empty]
1057
+ # @return [::Google::Protobuf::Empty]
1058
1058
  #
1059
- # @raise [Google::Cloud::Error] if the RPC is aborted.
1059
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1060
1060
  #
1061
1061
  def delete_product request, options = nil
1062
- raise ArgumentError, "request must be provided" if request.nil?
1062
+ raise ::ArgumentError, "request must be provided" if request.nil?
1063
1063
 
1064
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Vision::V1::DeleteProductRequest
1064
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Vision::V1::DeleteProductRequest
1065
1065
 
1066
1066
  # Converts hash and nil to an options object
1067
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1067
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1068
1068
 
1069
1069
  # Customize the options with defaults
1070
1070
  metadata = @config.rpcs.delete_product.metadata.to_h
1071
1071
 
1072
1072
  # Set x-goog-api-client and x-goog-user-project headers
1073
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
1073
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1074
1074
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1075
1075
  gapic_version: ::Google::Cloud::Vision::V1::VERSION
1076
1076
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -1091,8 +1091,8 @@ module Google
1091
1091
  yield response, operation if block_given?
1092
1092
  return response
1093
1093
  end
1094
- rescue GRPC::BadStatus => e
1095
- raise Google::Cloud::Error.from_error(e)
1094
+ rescue ::GRPC::BadStatus => e
1095
+ raise ::Google::Cloud::Error.from_error(e)
1096
1096
  end
1097
1097
 
1098
1098
  ##
@@ -1118,12 +1118,12 @@ module Google
1118
1118
  #
1119
1119
  # @overload create_reference_image(request, options = nil)
1120
1120
  # Pass arguments to `create_reference_image` via a request object, either of type
1121
- # {Google::Cloud::Vision::V1::CreateReferenceImageRequest} or an equivalent Hash.
1121
+ # {::Google::Cloud::Vision::V1::CreateReferenceImageRequest} or an equivalent Hash.
1122
1122
  #
1123
- # @param request [Google::Cloud::Vision::V1::CreateReferenceImageRequest, Hash]
1123
+ # @param request [::Google::Cloud::Vision::V1::CreateReferenceImageRequest, ::Hash]
1124
1124
  # A request object representing the call parameters. Required. To specify no
1125
1125
  # parameters, or to keep all the default parameter values, pass an empty Hash.
1126
- # @param options [Gapic::CallOptions, Hash]
1126
+ # @param options [::Gapic::CallOptions, ::Hash]
1127
1127
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1128
1128
  #
1129
1129
  # @overload create_reference_image(parent: nil, reference_image: nil, reference_image_id: nil)
@@ -1131,41 +1131,41 @@ module Google
1131
1131
  # least one keyword argument is required. To specify no parameters, or to keep all
1132
1132
  # the default parameter values, pass an empty Hash as a request object (see above).
1133
1133
  #
1134
- # @param parent [String]
1134
+ # @param parent [::String]
1135
1135
  # Required. Resource name of the product in which to create the reference image.
1136
1136
  #
1137
1137
  # Format is
1138
1138
  # `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
1139
- # @param reference_image [Google::Cloud::Vision::V1::ReferenceImage, Hash]
1139
+ # @param reference_image [::Google::Cloud::Vision::V1::ReferenceImage, ::Hash]
1140
1140
  # Required. The reference image to create.
1141
1141
  # If an image ID is specified, it is ignored.
1142
- # @param reference_image_id [String]
1142
+ # @param reference_image_id [::String]
1143
1143
  # A user-supplied resource id for the ReferenceImage to be added. If set,
1144
1144
  # the server will attempt to use this value as the resource id. If it is
1145
1145
  # already in use, an error is returned with code ALREADY_EXISTS. Must be at
1146
1146
  # most 128 characters long. It cannot contain the character `/`.
1147
1147
  #
1148
1148
  # @yield [response, operation] Access the result along with the RPC operation
1149
- # @yieldparam response [Google::Cloud::Vision::V1::ReferenceImage]
1150
- # @yieldparam operation [GRPC::ActiveCall::Operation]
1149
+ # @yieldparam response [::Google::Cloud::Vision::V1::ReferenceImage]
1150
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1151
1151
  #
1152
- # @return [Google::Cloud::Vision::V1::ReferenceImage]
1152
+ # @return [::Google::Cloud::Vision::V1::ReferenceImage]
1153
1153
  #
1154
- # @raise [Google::Cloud::Error] if the RPC is aborted.
1154
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1155
1155
  #
1156
1156
  def create_reference_image request, options = nil
1157
- raise ArgumentError, "request must be provided" if request.nil?
1157
+ raise ::ArgumentError, "request must be provided" if request.nil?
1158
1158
 
1159
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Vision::V1::CreateReferenceImageRequest
1159
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Vision::V1::CreateReferenceImageRequest
1160
1160
 
1161
1161
  # Converts hash and nil to an options object
1162
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1162
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1163
1163
 
1164
1164
  # Customize the options with defaults
1165
1165
  metadata = @config.rpcs.create_reference_image.metadata.to_h
1166
1166
 
1167
1167
  # Set x-goog-api-client and x-goog-user-project headers
1168
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
1168
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1169
1169
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1170
1170
  gapic_version: ::Google::Cloud::Vision::V1::VERSION
1171
1171
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -1186,8 +1186,8 @@ module Google
1186
1186
  yield response, operation if block_given?
1187
1187
  return response
1188
1188
  end
1189
- rescue GRPC::BadStatus => e
1190
- raise Google::Cloud::Error.from_error(e)
1189
+ rescue ::GRPC::BadStatus => e
1190
+ raise ::Google::Cloud::Error.from_error(e)
1191
1191
  end
1192
1192
 
1193
1193
  ##
@@ -1201,12 +1201,12 @@ module Google
1201
1201
  #
1202
1202
  # @overload delete_reference_image(request, options = nil)
1203
1203
  # Pass arguments to `delete_reference_image` via a request object, either of type
1204
- # {Google::Cloud::Vision::V1::DeleteReferenceImageRequest} or an equivalent Hash.
1204
+ # {::Google::Cloud::Vision::V1::DeleteReferenceImageRequest} or an equivalent Hash.
1205
1205
  #
1206
- # @param request [Google::Cloud::Vision::V1::DeleteReferenceImageRequest, Hash]
1206
+ # @param request [::Google::Cloud::Vision::V1::DeleteReferenceImageRequest, ::Hash]
1207
1207
  # A request object representing the call parameters. Required. To specify no
1208
1208
  # parameters, or to keep all the default parameter values, pass an empty Hash.
1209
- # @param options [Gapic::CallOptions, Hash]
1209
+ # @param options [::Gapic::CallOptions, ::Hash]
1210
1210
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1211
1211
  #
1212
1212
  # @overload delete_reference_image(name: nil)
@@ -1214,7 +1214,7 @@ module Google
1214
1214
  # least one keyword argument is required. To specify no parameters, or to keep all
1215
1215
  # the default parameter values, pass an empty Hash as a request object (see above).
1216
1216
  #
1217
- # @param name [String]
1217
+ # @param name [::String]
1218
1218
  # Required. The resource name of the reference image to delete.
1219
1219
  #
1220
1220
  # Format is:
@@ -1222,26 +1222,26 @@ module Google
1222
1222
  # `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`
1223
1223
  #
1224
1224
  # @yield [response, operation] Access the result along with the RPC operation
1225
- # @yieldparam response [Google::Protobuf::Empty]
1226
- # @yieldparam operation [GRPC::ActiveCall::Operation]
1225
+ # @yieldparam response [::Google::Protobuf::Empty]
1226
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1227
1227
  #
1228
- # @return [Google::Protobuf::Empty]
1228
+ # @return [::Google::Protobuf::Empty]
1229
1229
  #
1230
- # @raise [Google::Cloud::Error] if the RPC is aborted.
1230
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1231
1231
  #
1232
1232
  def delete_reference_image request, options = nil
1233
- raise ArgumentError, "request must be provided" if request.nil?
1233
+ raise ::ArgumentError, "request must be provided" if request.nil?
1234
1234
 
1235
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Vision::V1::DeleteReferenceImageRequest
1235
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Vision::V1::DeleteReferenceImageRequest
1236
1236
 
1237
1237
  # Converts hash and nil to an options object
1238
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1238
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1239
1239
 
1240
1240
  # Customize the options with defaults
1241
1241
  metadata = @config.rpcs.delete_reference_image.metadata.to_h
1242
1242
 
1243
1243
  # Set x-goog-api-client and x-goog-user-project headers
1244
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
1244
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1245
1245
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1246
1246
  gapic_version: ::Google::Cloud::Vision::V1::VERSION
1247
1247
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -1262,8 +1262,8 @@ module Google
1262
1262
  yield response, operation if block_given?
1263
1263
  return response
1264
1264
  end
1265
- rescue GRPC::BadStatus => e
1266
- raise Google::Cloud::Error.from_error(e)
1265
+ rescue ::GRPC::BadStatus => e
1266
+ raise ::Google::Cloud::Error.from_error(e)
1267
1267
  end
1268
1268
 
1269
1269
  ##
@@ -1277,12 +1277,12 @@ module Google
1277
1277
  #
1278
1278
  # @overload list_reference_images(request, options = nil)
1279
1279
  # Pass arguments to `list_reference_images` via a request object, either of type
1280
- # {Google::Cloud::Vision::V1::ListReferenceImagesRequest} or an equivalent Hash.
1280
+ # {::Google::Cloud::Vision::V1::ListReferenceImagesRequest} or an equivalent Hash.
1281
1281
  #
1282
- # @param request [Google::Cloud::Vision::V1::ListReferenceImagesRequest, Hash]
1282
+ # @param request [::Google::Cloud::Vision::V1::ListReferenceImagesRequest, ::Hash]
1283
1283
  # A request object representing the call parameters. Required. To specify no
1284
1284
  # parameters, or to keep all the default parameter values, pass an empty Hash.
1285
- # @param options [Gapic::CallOptions, Hash]
1285
+ # @param options [::Gapic::CallOptions, ::Hash]
1286
1286
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1287
1287
  #
1288
1288
  # @overload list_reference_images(parent: nil, page_size: nil, page_token: nil)
@@ -1290,40 +1290,40 @@ module Google
1290
1290
  # least one keyword argument is required. To specify no parameters, or to keep all
1291
1291
  # the default parameter values, pass an empty Hash as a request object (see above).
1292
1292
  #
1293
- # @param parent [String]
1293
+ # @param parent [::String]
1294
1294
  # Required. Resource name of the product containing the reference images.
1295
1295
  #
1296
1296
  # Format is
1297
1297
  # `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
1298
- # @param page_size [Integer]
1298
+ # @param page_size [::Integer]
1299
1299
  # The maximum number of items to return. Default 10, maximum 100.
1300
- # @param page_token [String]
1300
+ # @param page_token [::String]
1301
1301
  # A token identifying a page of results to be returned. This is the value
1302
1302
  # of `nextPageToken` returned in a previous reference image list request.
1303
1303
  #
1304
1304
  # Defaults to the first page if not specified.
1305
1305
  #
1306
1306
  # @yield [response, operation] Access the result along with the RPC operation
1307
- # @yieldparam response [Gapic::PagedEnumerable<Google::Cloud::Vision::V1::ReferenceImage>]
1308
- # @yieldparam operation [GRPC::ActiveCall::Operation]
1307
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Vision::V1::ReferenceImage>]
1308
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1309
1309
  #
1310
- # @return [Gapic::PagedEnumerable<Google::Cloud::Vision::V1::ReferenceImage>]
1310
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::Vision::V1::ReferenceImage>]
1311
1311
  #
1312
- # @raise [Google::Cloud::Error] if the RPC is aborted.
1312
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1313
1313
  #
1314
1314
  def list_reference_images request, options = nil
1315
- raise ArgumentError, "request must be provided" if request.nil?
1315
+ raise ::ArgumentError, "request must be provided" if request.nil?
1316
1316
 
1317
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Vision::V1::ListReferenceImagesRequest
1317
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Vision::V1::ListReferenceImagesRequest
1318
1318
 
1319
1319
  # Converts hash and nil to an options object
1320
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1320
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1321
1321
 
1322
1322
  # Customize the options with defaults
1323
1323
  metadata = @config.rpcs.list_reference_images.metadata.to_h
1324
1324
 
1325
1325
  # Set x-goog-api-client and x-goog-user-project headers
1326
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
1326
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1327
1327
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1328
1328
  gapic_version: ::Google::Cloud::Vision::V1::VERSION
1329
1329
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -1341,12 +1341,12 @@ module Google
1341
1341
  retry_policy: @config.retry_policy
1342
1342
 
1343
1343
  @product_search_stub.call_rpc :list_reference_images, request, options: options do |response, operation|
1344
- response = Gapic::PagedEnumerable.new @product_search_stub, :list_reference_images, request, response, operation, options
1344
+ response = ::Gapic::PagedEnumerable.new @product_search_stub, :list_reference_images, request, response, operation, options
1345
1345
  yield response, operation if block_given?
1346
1346
  return response
1347
1347
  end
1348
- rescue GRPC::BadStatus => e
1349
- raise Google::Cloud::Error.from_error(e)
1348
+ rescue ::GRPC::BadStatus => e
1349
+ raise ::Google::Cloud::Error.from_error(e)
1350
1350
  end
1351
1351
 
1352
1352
  ##
@@ -1358,12 +1358,12 @@ module Google
1358
1358
  #
1359
1359
  # @overload get_reference_image(request, options = nil)
1360
1360
  # Pass arguments to `get_reference_image` via a request object, either of type
1361
- # {Google::Cloud::Vision::V1::GetReferenceImageRequest} or an equivalent Hash.
1361
+ # {::Google::Cloud::Vision::V1::GetReferenceImageRequest} or an equivalent Hash.
1362
1362
  #
1363
- # @param request [Google::Cloud::Vision::V1::GetReferenceImageRequest, Hash]
1363
+ # @param request [::Google::Cloud::Vision::V1::GetReferenceImageRequest, ::Hash]
1364
1364
  # A request object representing the call parameters. Required. To specify no
1365
1365
  # parameters, or to keep all the default parameter values, pass an empty Hash.
1366
- # @param options [Gapic::CallOptions, Hash]
1366
+ # @param options [::Gapic::CallOptions, ::Hash]
1367
1367
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1368
1368
  #
1369
1369
  # @overload get_reference_image(name: nil)
@@ -1371,7 +1371,7 @@ module Google
1371
1371
  # least one keyword argument is required. To specify no parameters, or to keep all
1372
1372
  # the default parameter values, pass an empty Hash as a request object (see above).
1373
1373
  #
1374
- # @param name [String]
1374
+ # @param name [::String]
1375
1375
  # Required. The resource name of the ReferenceImage to get.
1376
1376
  #
1377
1377
  # Format is:
@@ -1379,26 +1379,26 @@ module Google
1379
1379
  # `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`.
1380
1380
  #
1381
1381
  # @yield [response, operation] Access the result along with the RPC operation
1382
- # @yieldparam response [Google::Cloud::Vision::V1::ReferenceImage]
1383
- # @yieldparam operation [GRPC::ActiveCall::Operation]
1382
+ # @yieldparam response [::Google::Cloud::Vision::V1::ReferenceImage]
1383
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1384
1384
  #
1385
- # @return [Google::Cloud::Vision::V1::ReferenceImage]
1385
+ # @return [::Google::Cloud::Vision::V1::ReferenceImage]
1386
1386
  #
1387
- # @raise [Google::Cloud::Error] if the RPC is aborted.
1387
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1388
1388
  #
1389
1389
  def get_reference_image request, options = nil
1390
- raise ArgumentError, "request must be provided" if request.nil?
1390
+ raise ::ArgumentError, "request must be provided" if request.nil?
1391
1391
 
1392
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Vision::V1::GetReferenceImageRequest
1392
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Vision::V1::GetReferenceImageRequest
1393
1393
 
1394
1394
  # Converts hash and nil to an options object
1395
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1395
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1396
1396
 
1397
1397
  # Customize the options with defaults
1398
1398
  metadata = @config.rpcs.get_reference_image.metadata.to_h
1399
1399
 
1400
1400
  # Set x-goog-api-client and x-goog-user-project headers
1401
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
1401
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1402
1402
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1403
1403
  gapic_version: ::Google::Cloud::Vision::V1::VERSION
1404
1404
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -1419,8 +1419,8 @@ module Google
1419
1419
  yield response, operation if block_given?
1420
1420
  return response
1421
1421
  end
1422
- rescue GRPC::BadStatus => e
1423
- raise Google::Cloud::Error.from_error(e)
1422
+ rescue ::GRPC::BadStatus => e
1423
+ raise ::Google::Cloud::Error.from_error(e)
1424
1424
  end
1425
1425
 
1426
1426
  ##
@@ -1435,12 +1435,12 @@ module Google
1435
1435
  #
1436
1436
  # @overload add_product_to_product_set(request, options = nil)
1437
1437
  # Pass arguments to `add_product_to_product_set` via a request object, either of type
1438
- # {Google::Cloud::Vision::V1::AddProductToProductSetRequest} or an equivalent Hash.
1438
+ # {::Google::Cloud::Vision::V1::AddProductToProductSetRequest} or an equivalent Hash.
1439
1439
  #
1440
- # @param request [Google::Cloud::Vision::V1::AddProductToProductSetRequest, Hash]
1440
+ # @param request [::Google::Cloud::Vision::V1::AddProductToProductSetRequest, ::Hash]
1441
1441
  # A request object representing the call parameters. Required. To specify no
1442
1442
  # parameters, or to keep all the default parameter values, pass an empty Hash.
1443
- # @param options [Gapic::CallOptions, Hash]
1443
+ # @param options [::Gapic::CallOptions, ::Hash]
1444
1444
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1445
1445
  #
1446
1446
  # @overload add_product_to_product_set(name: nil, product: nil)
@@ -1448,38 +1448,38 @@ module Google
1448
1448
  # least one keyword argument is required. To specify no parameters, or to keep all
1449
1449
  # the default parameter values, pass an empty Hash as a request object (see above).
1450
1450
  #
1451
- # @param name [String]
1451
+ # @param name [::String]
1452
1452
  # Required. The resource name for the ProductSet to modify.
1453
1453
  #
1454
1454
  # Format is:
1455
1455
  # `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
1456
- # @param product [String]
1456
+ # @param product [::String]
1457
1457
  # Required. The resource name for the Product to be added to this ProductSet.
1458
1458
  #
1459
1459
  # Format is:
1460
1460
  # `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
1461
1461
  #
1462
1462
  # @yield [response, operation] Access the result along with the RPC operation
1463
- # @yieldparam response [Google::Protobuf::Empty]
1464
- # @yieldparam operation [GRPC::ActiveCall::Operation]
1463
+ # @yieldparam response [::Google::Protobuf::Empty]
1464
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1465
1465
  #
1466
- # @return [Google::Protobuf::Empty]
1466
+ # @return [::Google::Protobuf::Empty]
1467
1467
  #
1468
- # @raise [Google::Cloud::Error] if the RPC is aborted.
1468
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1469
1469
  #
1470
1470
  def add_product_to_product_set request, options = nil
1471
- raise ArgumentError, "request must be provided" if request.nil?
1471
+ raise ::ArgumentError, "request must be provided" if request.nil?
1472
1472
 
1473
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Vision::V1::AddProductToProductSetRequest
1473
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Vision::V1::AddProductToProductSetRequest
1474
1474
 
1475
1475
  # Converts hash and nil to an options object
1476
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1476
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1477
1477
 
1478
1478
  # Customize the options with defaults
1479
1479
  metadata = @config.rpcs.add_product_to_product_set.metadata.to_h
1480
1480
 
1481
1481
  # Set x-goog-api-client and x-goog-user-project headers
1482
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
1482
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1483
1483
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1484
1484
  gapic_version: ::Google::Cloud::Vision::V1::VERSION
1485
1485
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -1500,8 +1500,8 @@ module Google
1500
1500
  yield response, operation if block_given?
1501
1501
  return response
1502
1502
  end
1503
- rescue GRPC::BadStatus => e
1504
- raise Google::Cloud::Error.from_error(e)
1503
+ rescue ::GRPC::BadStatus => e
1504
+ raise ::Google::Cloud::Error.from_error(e)
1505
1505
  end
1506
1506
 
1507
1507
  ##
@@ -1509,12 +1509,12 @@ module Google
1509
1509
  #
1510
1510
  # @overload remove_product_from_product_set(request, options = nil)
1511
1511
  # Pass arguments to `remove_product_from_product_set` via a request object, either of type
1512
- # {Google::Cloud::Vision::V1::RemoveProductFromProductSetRequest} or an equivalent Hash.
1512
+ # {::Google::Cloud::Vision::V1::RemoveProductFromProductSetRequest} or an equivalent Hash.
1513
1513
  #
1514
- # @param request [Google::Cloud::Vision::V1::RemoveProductFromProductSetRequest, Hash]
1514
+ # @param request [::Google::Cloud::Vision::V1::RemoveProductFromProductSetRequest, ::Hash]
1515
1515
  # A request object representing the call parameters. Required. To specify no
1516
1516
  # parameters, or to keep all the default parameter values, pass an empty Hash.
1517
- # @param options [Gapic::CallOptions, Hash]
1517
+ # @param options [::Gapic::CallOptions, ::Hash]
1518
1518
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1519
1519
  #
1520
1520
  # @overload remove_product_from_product_set(name: nil, product: nil)
@@ -1522,38 +1522,38 @@ module Google
1522
1522
  # least one keyword argument is required. To specify no parameters, or to keep all
1523
1523
  # the default parameter values, pass an empty Hash as a request object (see above).
1524
1524
  #
1525
- # @param name [String]
1525
+ # @param name [::String]
1526
1526
  # Required. The resource name for the ProductSet to modify.
1527
1527
  #
1528
1528
  # Format is:
1529
1529
  # `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
1530
- # @param product [String]
1530
+ # @param product [::String]
1531
1531
  # Required. The resource name for the Product to be removed from this ProductSet.
1532
1532
  #
1533
1533
  # Format is:
1534
1534
  # `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
1535
1535
  #
1536
1536
  # @yield [response, operation] Access the result along with the RPC operation
1537
- # @yieldparam response [Google::Protobuf::Empty]
1538
- # @yieldparam operation [GRPC::ActiveCall::Operation]
1537
+ # @yieldparam response [::Google::Protobuf::Empty]
1538
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1539
1539
  #
1540
- # @return [Google::Protobuf::Empty]
1540
+ # @return [::Google::Protobuf::Empty]
1541
1541
  #
1542
- # @raise [Google::Cloud::Error] if the RPC is aborted.
1542
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1543
1543
  #
1544
1544
  def remove_product_from_product_set request, options = nil
1545
- raise ArgumentError, "request must be provided" if request.nil?
1545
+ raise ::ArgumentError, "request must be provided" if request.nil?
1546
1546
 
1547
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Vision::V1::RemoveProductFromProductSetRequest
1547
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Vision::V1::RemoveProductFromProductSetRequest
1548
1548
 
1549
1549
  # Converts hash and nil to an options object
1550
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1550
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1551
1551
 
1552
1552
  # Customize the options with defaults
1553
1553
  metadata = @config.rpcs.remove_product_from_product_set.metadata.to_h
1554
1554
 
1555
1555
  # Set x-goog-api-client and x-goog-user-project headers
1556
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
1556
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1557
1557
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1558
1558
  gapic_version: ::Google::Cloud::Vision::V1::VERSION
1559
1559
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -1574,8 +1574,8 @@ module Google
1574
1574
  yield response, operation if block_given?
1575
1575
  return response
1576
1576
  end
1577
- rescue GRPC::BadStatus => e
1578
- raise Google::Cloud::Error.from_error(e)
1577
+ rescue ::GRPC::BadStatus => e
1578
+ raise ::Google::Cloud::Error.from_error(e)
1579
1579
  end
1580
1580
 
1581
1581
  ##
@@ -1589,12 +1589,12 @@ module Google
1589
1589
  #
1590
1590
  # @overload list_products_in_product_set(request, options = nil)
1591
1591
  # Pass arguments to `list_products_in_product_set` via a request object, either of type
1592
- # {Google::Cloud::Vision::V1::ListProductsInProductSetRequest} or an equivalent Hash.
1592
+ # {::Google::Cloud::Vision::V1::ListProductsInProductSetRequest} or an equivalent Hash.
1593
1593
  #
1594
- # @param request [Google::Cloud::Vision::V1::ListProductsInProductSetRequest, Hash]
1594
+ # @param request [::Google::Cloud::Vision::V1::ListProductsInProductSetRequest, ::Hash]
1595
1595
  # A request object representing the call parameters. Required. To specify no
1596
1596
  # parameters, or to keep all the default parameter values, pass an empty Hash.
1597
- # @param options [Gapic::CallOptions, Hash]
1597
+ # @param options [::Gapic::CallOptions, ::Hash]
1598
1598
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1599
1599
  #
1600
1600
  # @overload list_products_in_product_set(name: nil, page_size: nil, page_token: nil)
@@ -1602,37 +1602,37 @@ module Google
1602
1602
  # least one keyword argument is required. To specify no parameters, or to keep all
1603
1603
  # the default parameter values, pass an empty Hash as a request object (see above).
1604
1604
  #
1605
- # @param name [String]
1605
+ # @param name [::String]
1606
1606
  # Required. The ProductSet resource for which to retrieve Products.
1607
1607
  #
1608
1608
  # Format is:
1609
1609
  # `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
1610
- # @param page_size [Integer]
1610
+ # @param page_size [::Integer]
1611
1611
  # The maximum number of items to return. Default 10, maximum 100.
1612
- # @param page_token [String]
1612
+ # @param page_token [::String]
1613
1613
  # The next_page_token returned from a previous List request, if any.
1614
1614
  #
1615
1615
  # @yield [response, operation] Access the result along with the RPC operation
1616
- # @yieldparam response [Gapic::PagedEnumerable<Google::Cloud::Vision::V1::Product>]
1617
- # @yieldparam operation [GRPC::ActiveCall::Operation]
1616
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Vision::V1::Product>]
1617
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1618
1618
  #
1619
- # @return [Gapic::PagedEnumerable<Google::Cloud::Vision::V1::Product>]
1619
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::Vision::V1::Product>]
1620
1620
  #
1621
- # @raise [Google::Cloud::Error] if the RPC is aborted.
1621
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1622
1622
  #
1623
1623
  def list_products_in_product_set request, options = nil
1624
- raise ArgumentError, "request must be provided" if request.nil?
1624
+ raise ::ArgumentError, "request must be provided" if request.nil?
1625
1625
 
1626
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Vision::V1::ListProductsInProductSetRequest
1626
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Vision::V1::ListProductsInProductSetRequest
1627
1627
 
1628
1628
  # Converts hash and nil to an options object
1629
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1629
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1630
1630
 
1631
1631
  # Customize the options with defaults
1632
1632
  metadata = @config.rpcs.list_products_in_product_set.metadata.to_h
1633
1633
 
1634
1634
  # Set x-goog-api-client and x-goog-user-project headers
1635
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
1635
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1636
1636
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1637
1637
  gapic_version: ::Google::Cloud::Vision::V1::VERSION
1638
1638
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -1650,35 +1650,35 @@ module Google
1650
1650
  retry_policy: @config.retry_policy
1651
1651
 
1652
1652
  @product_search_stub.call_rpc :list_products_in_product_set, request, options: options do |response, operation|
1653
- response = Gapic::PagedEnumerable.new @product_search_stub, :list_products_in_product_set, request, response, operation, options
1653
+ response = ::Gapic::PagedEnumerable.new @product_search_stub, :list_products_in_product_set, request, response, operation, options
1654
1654
  yield response, operation if block_given?
1655
1655
  return response
1656
1656
  end
1657
- rescue GRPC::BadStatus => e
1658
- raise Google::Cloud::Error.from_error(e)
1657
+ rescue ::GRPC::BadStatus => e
1658
+ raise ::Google::Cloud::Error.from_error(e)
1659
1659
  end
1660
1660
 
1661
1661
  ##
1662
1662
  # Asynchronous API that imports a list of reference images to specified
1663
1663
  # product sets based on a list of image information.
1664
1664
  #
1665
- # The {Google::Longrunning::Operation google.longrunning.Operation} API can be used to keep track of the
1665
+ # The {::Google::Longrunning::Operation google.longrunning.Operation} API can be used to keep track of the
1666
1666
  # progress and results of the request.
1667
1667
  # `Operation.metadata` contains `BatchOperationMetadata`. (progress)
1668
1668
  # `Operation.response` contains `ImportProductSetsResponse`. (results)
1669
1669
  #
1670
1670
  # The input source of this method is a csv file on Google Cloud Storage.
1671
1671
  # For the format of the csv file please see
1672
- # {Google::Cloud::Vision::V1::ImportProductSetsGcsSource#csv_file_uri ImportProductSetsGcsSource.csv_file_uri}.
1672
+ # {::Google::Cloud::Vision::V1::ImportProductSetsGcsSource#csv_file_uri ImportProductSetsGcsSource.csv_file_uri}.
1673
1673
  #
1674
1674
  # @overload import_product_sets(request, options = nil)
1675
1675
  # Pass arguments to `import_product_sets` via a request object, either of type
1676
- # {Google::Cloud::Vision::V1::ImportProductSetsRequest} or an equivalent Hash.
1676
+ # {::Google::Cloud::Vision::V1::ImportProductSetsRequest} or an equivalent Hash.
1677
1677
  #
1678
- # @param request [Google::Cloud::Vision::V1::ImportProductSetsRequest, Hash]
1678
+ # @param request [::Google::Cloud::Vision::V1::ImportProductSetsRequest, ::Hash]
1679
1679
  # A request object representing the call parameters. Required. To specify no
1680
1680
  # parameters, or to keep all the default parameter values, pass an empty Hash.
1681
- # @param options [Gapic::CallOptions, Hash]
1681
+ # @param options [::Gapic::CallOptions, ::Hash]
1682
1682
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1683
1683
  #
1684
1684
  # @overload import_product_sets(parent: nil, input_config: nil)
@@ -1686,34 +1686,34 @@ module Google
1686
1686
  # least one keyword argument is required. To specify no parameters, or to keep all
1687
1687
  # the default parameter values, pass an empty Hash as a request object (see above).
1688
1688
  #
1689
- # @param parent [String]
1689
+ # @param parent [::String]
1690
1690
  # Required. The project in which the ProductSets should be imported.
1691
1691
  #
1692
1692
  # Format is `projects/PROJECT_ID/locations/LOC_ID`.
1693
- # @param input_config [Google::Cloud::Vision::V1::ImportProductSetsInputConfig, Hash]
1693
+ # @param input_config [::Google::Cloud::Vision::V1::ImportProductSetsInputConfig, ::Hash]
1694
1694
  # Required. The input content for the list of requests.
1695
1695
  #
1696
1696
  # @yield [response, operation] Access the result along with the RPC operation
1697
- # @yieldparam response [Gapic::Operation]
1698
- # @yieldparam operation [GRPC::ActiveCall::Operation]
1697
+ # @yieldparam response [::Gapic::Operation]
1698
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1699
1699
  #
1700
- # @return [Gapic::Operation]
1700
+ # @return [::Gapic::Operation]
1701
1701
  #
1702
- # @raise [Google::Cloud::Error] if the RPC is aborted.
1702
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1703
1703
  #
1704
1704
  def import_product_sets request, options = nil
1705
- raise ArgumentError, "request must be provided" if request.nil?
1705
+ raise ::ArgumentError, "request must be provided" if request.nil?
1706
1706
 
1707
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Vision::V1::ImportProductSetsRequest
1707
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Vision::V1::ImportProductSetsRequest
1708
1708
 
1709
1709
  # Converts hash and nil to an options object
1710
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1710
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1711
1711
 
1712
1712
  # Customize the options with defaults
1713
1713
  metadata = @config.rpcs.import_product_sets.metadata.to_h
1714
1714
 
1715
1715
  # Set x-goog-api-client and x-goog-user-project headers
1716
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
1716
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1717
1717
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1718
1718
  gapic_version: ::Google::Cloud::Vision::V1::VERSION
1719
1719
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -1731,12 +1731,12 @@ module Google
1731
1731
  retry_policy: @config.retry_policy
1732
1732
 
1733
1733
  @product_search_stub.call_rpc :import_product_sets, request, options: options do |response, operation|
1734
- response = Gapic::Operation.new response, @operations_client, options: options
1734
+ response = ::Gapic::Operation.new response, @operations_client, options: options
1735
1735
  yield response, operation if block_given?
1736
1736
  return response
1737
1737
  end
1738
- rescue GRPC::BadStatus => e
1739
- raise Google::Cloud::Error.from_error(e)
1738
+ rescue ::GRPC::BadStatus => e
1739
+ raise ::Google::Cloud::Error.from_error(e)
1740
1740
  end
1741
1741
 
1742
1742
  ##
@@ -1761,18 +1761,18 @@ module Google
1761
1761
  # ProductSet, you must wait until the PurgeProducts operation has finished
1762
1762
  # for that ProductSet.
1763
1763
  #
1764
- # The {Google::Longrunning::Operation google.longrunning.Operation} API can be used to keep track of the
1764
+ # The {::Google::Longrunning::Operation google.longrunning.Operation} API can be used to keep track of the
1765
1765
  # progress and results of the request.
1766
1766
  # `Operation.metadata` contains `BatchOperationMetadata`. (progress)
1767
1767
  #
1768
1768
  # @overload purge_products(request, options = nil)
1769
1769
  # Pass arguments to `purge_products` via a request object, either of type
1770
- # {Google::Cloud::Vision::V1::PurgeProductsRequest} or an equivalent Hash.
1770
+ # {::Google::Cloud::Vision::V1::PurgeProductsRequest} or an equivalent Hash.
1771
1771
  #
1772
- # @param request [Google::Cloud::Vision::V1::PurgeProductsRequest, Hash]
1772
+ # @param request [::Google::Cloud::Vision::V1::PurgeProductsRequest, ::Hash]
1773
1773
  # A request object representing the call parameters. Required. To specify no
1774
1774
  # parameters, or to keep all the default parameter values, pass an empty Hash.
1775
- # @param options [Gapic::CallOptions, Hash]
1775
+ # @param options [::Gapic::CallOptions, ::Hash]
1776
1776
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1777
1777
  #
1778
1778
  # @overload purge_products(product_set_purge_config: nil, delete_orphan_products: nil, parent: nil, force: nil)
@@ -1780,40 +1780,40 @@ module Google
1780
1780
  # least one keyword argument is required. To specify no parameters, or to keep all
1781
1781
  # the default parameter values, pass an empty Hash as a request object (see above).
1782
1782
  #
1783
- # @param product_set_purge_config [Google::Cloud::Vision::V1::ProductSetPurgeConfig, Hash]
1783
+ # @param product_set_purge_config [::Google::Cloud::Vision::V1::ProductSetPurgeConfig, ::Hash]
1784
1784
  # Specify which ProductSet contains the Products to be deleted.
1785
- # @param delete_orphan_products [Boolean]
1785
+ # @param delete_orphan_products [::Boolean]
1786
1786
  # If delete_orphan_products is true, all Products that are not in any
1787
1787
  # ProductSet will be deleted.
1788
- # @param parent [String]
1788
+ # @param parent [::String]
1789
1789
  # Required. The project and location in which the Products should be deleted.
1790
1790
  #
1791
1791
  # Format is `projects/PROJECT_ID/locations/LOC_ID`.
1792
- # @param force [Boolean]
1792
+ # @param force [::Boolean]
1793
1793
  # The default value is false. Override this value to true to actually perform
1794
1794
  # the purge.
1795
1795
  #
1796
1796
  # @yield [response, operation] Access the result along with the RPC operation
1797
- # @yieldparam response [Gapic::Operation]
1798
- # @yieldparam operation [GRPC::ActiveCall::Operation]
1797
+ # @yieldparam response [::Gapic::Operation]
1798
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1799
1799
  #
1800
- # @return [Gapic::Operation]
1800
+ # @return [::Gapic::Operation]
1801
1801
  #
1802
- # @raise [Google::Cloud::Error] if the RPC is aborted.
1802
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1803
1803
  #
1804
1804
  def purge_products request, options = nil
1805
- raise ArgumentError, "request must be provided" if request.nil?
1805
+ raise ::ArgumentError, "request must be provided" if request.nil?
1806
1806
 
1807
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Vision::V1::PurgeProductsRequest
1807
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Vision::V1::PurgeProductsRequest
1808
1808
 
1809
1809
  # Converts hash and nil to an options object
1810
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1810
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1811
1811
 
1812
1812
  # Customize the options with defaults
1813
1813
  metadata = @config.rpcs.purge_products.metadata.to_h
1814
1814
 
1815
1815
  # Set x-goog-api-client and x-goog-user-project headers
1816
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
1816
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1817
1817
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1818
1818
  gapic_version: ::Google::Cloud::Vision::V1::VERSION
1819
1819
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -1831,12 +1831,12 @@ module Google
1831
1831
  retry_policy: @config.retry_policy
1832
1832
 
1833
1833
  @product_search_stub.call_rpc :purge_products, request, options: options do |response, operation|
1834
- response = Gapic::Operation.new response, @operations_client, options: options
1834
+ response = ::Gapic::Operation.new response, @operations_client, options: options
1835
1835
  yield response, operation if block_given?
1836
1836
  return response
1837
1837
  end
1838
- rescue GRPC::BadStatus => e
1839
- raise Google::Cloud::Error.from_error(e)
1838
+ rescue ::GRPC::BadStatus => e
1839
+ raise ::Google::Cloud::Error.from_error(e)
1840
1840
  end
1841
1841
 
1842
1842
  ##
@@ -1846,7 +1846,7 @@ module Google
1846
1846
  # providing control over timeouts, retry behavior, logging, transport
1847
1847
  # parameters, and other low-level controls. Certain parameters can also be
1848
1848
  # applied individually to specific RPCs. See
1849
- # {Google::Cloud::Vision::V1::ProductSearch::Client::Configuration::Rpcs}
1849
+ # {::Google::Cloud::Vision::V1::ProductSearch::Client::Configuration::Rpcs}
1850
1850
  # for a list of RPCs that can be configured independently.
1851
1851
  #
1852
1852
  # Configuration can be applied globally to all clients, or to a single client
@@ -1857,22 +1857,22 @@ module Google
1857
1857
  # To modify the global config, setting the timeout for create_product_set
1858
1858
  # to 20 seconds, and all remaining timeouts to 10 seconds:
1859
1859
  #
1860
- # Google::Cloud::Vision::V1::ProductSearch::Client.configure do |config|
1861
- # config.timeout = 10_000
1862
- # config.rpcs.create_product_set.timeout = 20_000
1860
+ # ::Google::Cloud::Vision::V1::ProductSearch::Client.configure do |config|
1861
+ # config.timeout = 10.0
1862
+ # config.rpcs.create_product_set.timeout = 20.0
1863
1863
  # end
1864
1864
  #
1865
1865
  # To apply the above configuration only to a new client:
1866
1866
  #
1867
- # client = Google::Cloud::Vision::V1::ProductSearch::Client.new do |config|
1868
- # config.timeout = 10_000
1869
- # config.rpcs.create_product_set.timeout = 20_000
1867
+ # client = ::Google::Cloud::Vision::V1::ProductSearch::Client.new do |config|
1868
+ # config.timeout = 10.0
1869
+ # config.rpcs.create_product_set.timeout = 20.0
1870
1870
  # end
1871
1871
  #
1872
1872
  # @!attribute [rw] endpoint
1873
1873
  # The hostname or hostname:port of the service endpoint.
1874
1874
  # Defaults to `"vision.googleapis.com"`.
1875
- # @return [String]
1875
+ # @return [::String]
1876
1876
  # @!attribute [rw] credentials
1877
1877
  # Credentials to send with calls. You may provide any of the following types:
1878
1878
  # * (`String`) The path to a service account key file in JSON format
@@ -1884,29 +1884,29 @@ module Google
1884
1884
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
1885
1885
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
1886
1886
  # * (`nil`) indicating no credentials
1887
- # @return [Object]
1887
+ # @return [::Object]
1888
1888
  # @!attribute [rw] scope
1889
1889
  # The OAuth scopes
1890
- # @return [Array<String>]
1890
+ # @return [::Array<::String>]
1891
1891
  # @!attribute [rw] lib_name
1892
1892
  # The library name as recorded in instrumentation and logging
1893
- # @return [String]
1893
+ # @return [::String]
1894
1894
  # @!attribute [rw] lib_version
1895
1895
  # The library version as recorded in instrumentation and logging
1896
- # @return [String]
1896
+ # @return [::String]
1897
1897
  # @!attribute [rw] channel_args
1898
1898
  # Extra parameters passed to the gRPC channel. Note: this is ignored if a
1899
1899
  # `GRPC::Core::Channel` object is provided as the credential.
1900
- # @return [Hash]
1900
+ # @return [::Hash]
1901
1901
  # @!attribute [rw] interceptors
1902
1902
  # An array of interceptors that are run before calls are executed.
1903
- # @return [Array<GRPC::ClientInterceptor>]
1903
+ # @return [::Array<::GRPC::ClientInterceptor>]
1904
1904
  # @!attribute [rw] timeout
1905
- # The call timeout in milliseconds.
1906
- # @return [Numeric]
1905
+ # The call timeout in seconds.
1906
+ # @return [::Numeric]
1907
1907
  # @!attribute [rw] metadata
1908
1908
  # Additional gRPC headers to be sent with the call.
1909
- # @return [Hash{Symbol=>String}]
1909
+ # @return [::Hash{::Symbol=>::String}]
1910
1910
  # @!attribute [rw] retry_policy
1911
1911
  # The retry policy. The value is a hash with the following keys:
1912
1912
  # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
@@ -1914,10 +1914,10 @@ module Google
1914
1914
  # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
1915
1915
  # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
1916
1916
  # trigger a retry.
1917
- # @return [Hash]
1917
+ # @return [::Hash]
1918
1918
  #
1919
1919
  class Configuration
1920
- extend Gapic::Config
1920
+ extend ::Gapic::Config
1921
1921
 
1922
1922
  config_attr :endpoint, "vision.googleapis.com", String
1923
1923
  config_attr :credentials, nil do |value|
@@ -1925,14 +1925,14 @@ module Google
1925
1925
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
1926
1926
  allowed.any? { |klass| klass === value }
1927
1927
  end
1928
- config_attr :scope, nil, String, Array, nil
1929
- config_attr :lib_name, nil, String, nil
1930
- config_attr :lib_version, nil, String, nil
1931
- config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, Hash, nil)
1932
- config_attr :interceptors, nil, Array, nil
1933
- config_attr :timeout, nil, Numeric, nil
1934
- config_attr :metadata, nil, Hash, nil
1935
- config_attr :retry_policy, nil, Hash, Proc, nil
1928
+ config_attr :scope, nil, ::String, ::Array, nil
1929
+ config_attr :lib_name, nil, ::String, nil
1930
+ config_attr :lib_version, nil, ::String, nil
1931
+ config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
1932
+ config_attr :interceptors, nil, ::Array, nil
1933
+ config_attr :timeout, nil, ::Numeric, nil
1934
+ config_attr :metadata, nil, ::Hash, nil
1935
+ config_attr :retry_policy, nil, ::Hash, Proc, nil
1936
1936
 
1937
1937
  # @private
1938
1938
  def initialize parent_config = nil
@@ -1973,140 +1973,140 @@ module Google
1973
1973
  class Rpcs
1974
1974
  ##
1975
1975
  # RPC-specific configuration for `create_product_set`
1976
- # @return [Gapic::Config::Method]
1976
+ # @return [::Gapic::Config::Method]
1977
1977
  #
1978
1978
  attr_reader :create_product_set
1979
1979
  ##
1980
1980
  # RPC-specific configuration for `list_product_sets`
1981
- # @return [Gapic::Config::Method]
1981
+ # @return [::Gapic::Config::Method]
1982
1982
  #
1983
1983
  attr_reader :list_product_sets
1984
1984
  ##
1985
1985
  # RPC-specific configuration for `get_product_set`
1986
- # @return [Gapic::Config::Method]
1986
+ # @return [::Gapic::Config::Method]
1987
1987
  #
1988
1988
  attr_reader :get_product_set
1989
1989
  ##
1990
1990
  # RPC-specific configuration for `update_product_set`
1991
- # @return [Gapic::Config::Method]
1991
+ # @return [::Gapic::Config::Method]
1992
1992
  #
1993
1993
  attr_reader :update_product_set
1994
1994
  ##
1995
1995
  # RPC-specific configuration for `delete_product_set`
1996
- # @return [Gapic::Config::Method]
1996
+ # @return [::Gapic::Config::Method]
1997
1997
  #
1998
1998
  attr_reader :delete_product_set
1999
1999
  ##
2000
2000
  # RPC-specific configuration for `create_product`
2001
- # @return [Gapic::Config::Method]
2001
+ # @return [::Gapic::Config::Method]
2002
2002
  #
2003
2003
  attr_reader :create_product
2004
2004
  ##
2005
2005
  # RPC-specific configuration for `list_products`
2006
- # @return [Gapic::Config::Method]
2006
+ # @return [::Gapic::Config::Method]
2007
2007
  #
2008
2008
  attr_reader :list_products
2009
2009
  ##
2010
2010
  # RPC-specific configuration for `get_product`
2011
- # @return [Gapic::Config::Method]
2011
+ # @return [::Gapic::Config::Method]
2012
2012
  #
2013
2013
  attr_reader :get_product
2014
2014
  ##
2015
2015
  # RPC-specific configuration for `update_product`
2016
- # @return [Gapic::Config::Method]
2016
+ # @return [::Gapic::Config::Method]
2017
2017
  #
2018
2018
  attr_reader :update_product
2019
2019
  ##
2020
2020
  # RPC-specific configuration for `delete_product`
2021
- # @return [Gapic::Config::Method]
2021
+ # @return [::Gapic::Config::Method]
2022
2022
  #
2023
2023
  attr_reader :delete_product
2024
2024
  ##
2025
2025
  # RPC-specific configuration for `create_reference_image`
2026
- # @return [Gapic::Config::Method]
2026
+ # @return [::Gapic::Config::Method]
2027
2027
  #
2028
2028
  attr_reader :create_reference_image
2029
2029
  ##
2030
2030
  # RPC-specific configuration for `delete_reference_image`
2031
- # @return [Gapic::Config::Method]
2031
+ # @return [::Gapic::Config::Method]
2032
2032
  #
2033
2033
  attr_reader :delete_reference_image
2034
2034
  ##
2035
2035
  # RPC-specific configuration for `list_reference_images`
2036
- # @return [Gapic::Config::Method]
2036
+ # @return [::Gapic::Config::Method]
2037
2037
  #
2038
2038
  attr_reader :list_reference_images
2039
2039
  ##
2040
2040
  # RPC-specific configuration for `get_reference_image`
2041
- # @return [Gapic::Config::Method]
2041
+ # @return [::Gapic::Config::Method]
2042
2042
  #
2043
2043
  attr_reader :get_reference_image
2044
2044
  ##
2045
2045
  # RPC-specific configuration for `add_product_to_product_set`
2046
- # @return [Gapic::Config::Method]
2046
+ # @return [::Gapic::Config::Method]
2047
2047
  #
2048
2048
  attr_reader :add_product_to_product_set
2049
2049
  ##
2050
2050
  # RPC-specific configuration for `remove_product_from_product_set`
2051
- # @return [Gapic::Config::Method]
2051
+ # @return [::Gapic::Config::Method]
2052
2052
  #
2053
2053
  attr_reader :remove_product_from_product_set
2054
2054
  ##
2055
2055
  # RPC-specific configuration for `list_products_in_product_set`
2056
- # @return [Gapic::Config::Method]
2056
+ # @return [::Gapic::Config::Method]
2057
2057
  #
2058
2058
  attr_reader :list_products_in_product_set
2059
2059
  ##
2060
2060
  # RPC-specific configuration for `import_product_sets`
2061
- # @return [Gapic::Config::Method]
2061
+ # @return [::Gapic::Config::Method]
2062
2062
  #
2063
2063
  attr_reader :import_product_sets
2064
2064
  ##
2065
2065
  # RPC-specific configuration for `purge_products`
2066
- # @return [Gapic::Config::Method]
2066
+ # @return [::Gapic::Config::Method]
2067
2067
  #
2068
2068
  attr_reader :purge_products
2069
2069
 
2070
2070
  # @private
2071
2071
  def initialize parent_rpcs = nil
2072
2072
  create_product_set_config = parent_rpcs&.create_product_set if parent_rpcs&.respond_to? :create_product_set
2073
- @create_product_set = Gapic::Config::Method.new create_product_set_config
2073
+ @create_product_set = ::Gapic::Config::Method.new create_product_set_config
2074
2074
  list_product_sets_config = parent_rpcs&.list_product_sets if parent_rpcs&.respond_to? :list_product_sets
2075
- @list_product_sets = Gapic::Config::Method.new list_product_sets_config
2075
+ @list_product_sets = ::Gapic::Config::Method.new list_product_sets_config
2076
2076
  get_product_set_config = parent_rpcs&.get_product_set if parent_rpcs&.respond_to? :get_product_set
2077
- @get_product_set = Gapic::Config::Method.new get_product_set_config
2077
+ @get_product_set = ::Gapic::Config::Method.new get_product_set_config
2078
2078
  update_product_set_config = parent_rpcs&.update_product_set if parent_rpcs&.respond_to? :update_product_set
2079
- @update_product_set = Gapic::Config::Method.new update_product_set_config
2079
+ @update_product_set = ::Gapic::Config::Method.new update_product_set_config
2080
2080
  delete_product_set_config = parent_rpcs&.delete_product_set if parent_rpcs&.respond_to? :delete_product_set
2081
- @delete_product_set = Gapic::Config::Method.new delete_product_set_config
2081
+ @delete_product_set = ::Gapic::Config::Method.new delete_product_set_config
2082
2082
  create_product_config = parent_rpcs&.create_product if parent_rpcs&.respond_to? :create_product
2083
- @create_product = Gapic::Config::Method.new create_product_config
2083
+ @create_product = ::Gapic::Config::Method.new create_product_config
2084
2084
  list_products_config = parent_rpcs&.list_products if parent_rpcs&.respond_to? :list_products
2085
- @list_products = Gapic::Config::Method.new list_products_config
2085
+ @list_products = ::Gapic::Config::Method.new list_products_config
2086
2086
  get_product_config = parent_rpcs&.get_product if parent_rpcs&.respond_to? :get_product
2087
- @get_product = Gapic::Config::Method.new get_product_config
2087
+ @get_product = ::Gapic::Config::Method.new get_product_config
2088
2088
  update_product_config = parent_rpcs&.update_product if parent_rpcs&.respond_to? :update_product
2089
- @update_product = Gapic::Config::Method.new update_product_config
2089
+ @update_product = ::Gapic::Config::Method.new update_product_config
2090
2090
  delete_product_config = parent_rpcs&.delete_product if parent_rpcs&.respond_to? :delete_product
2091
- @delete_product = Gapic::Config::Method.new delete_product_config
2091
+ @delete_product = ::Gapic::Config::Method.new delete_product_config
2092
2092
  create_reference_image_config = parent_rpcs&.create_reference_image if parent_rpcs&.respond_to? :create_reference_image
2093
- @create_reference_image = Gapic::Config::Method.new create_reference_image_config
2093
+ @create_reference_image = ::Gapic::Config::Method.new create_reference_image_config
2094
2094
  delete_reference_image_config = parent_rpcs&.delete_reference_image if parent_rpcs&.respond_to? :delete_reference_image
2095
- @delete_reference_image = Gapic::Config::Method.new delete_reference_image_config
2095
+ @delete_reference_image = ::Gapic::Config::Method.new delete_reference_image_config
2096
2096
  list_reference_images_config = parent_rpcs&.list_reference_images if parent_rpcs&.respond_to? :list_reference_images
2097
- @list_reference_images = Gapic::Config::Method.new list_reference_images_config
2097
+ @list_reference_images = ::Gapic::Config::Method.new list_reference_images_config
2098
2098
  get_reference_image_config = parent_rpcs&.get_reference_image if parent_rpcs&.respond_to? :get_reference_image
2099
- @get_reference_image = Gapic::Config::Method.new get_reference_image_config
2099
+ @get_reference_image = ::Gapic::Config::Method.new get_reference_image_config
2100
2100
  add_product_to_product_set_config = parent_rpcs&.add_product_to_product_set if parent_rpcs&.respond_to? :add_product_to_product_set
2101
- @add_product_to_product_set = Gapic::Config::Method.new add_product_to_product_set_config
2101
+ @add_product_to_product_set = ::Gapic::Config::Method.new add_product_to_product_set_config
2102
2102
  remove_product_from_product_set_config = parent_rpcs&.remove_product_from_product_set if parent_rpcs&.respond_to? :remove_product_from_product_set
2103
- @remove_product_from_product_set = Gapic::Config::Method.new remove_product_from_product_set_config
2103
+ @remove_product_from_product_set = ::Gapic::Config::Method.new remove_product_from_product_set_config
2104
2104
  list_products_in_product_set_config = parent_rpcs&.list_products_in_product_set if parent_rpcs&.respond_to? :list_products_in_product_set
2105
- @list_products_in_product_set = Gapic::Config::Method.new list_products_in_product_set_config
2105
+ @list_products_in_product_set = ::Gapic::Config::Method.new list_products_in_product_set_config
2106
2106
  import_product_sets_config = parent_rpcs&.import_product_sets if parent_rpcs&.respond_to? :import_product_sets
2107
- @import_product_sets = Gapic::Config::Method.new import_product_sets_config
2107
+ @import_product_sets = ::Gapic::Config::Method.new import_product_sets_config
2108
2108
  purge_products_config = parent_rpcs&.purge_products if parent_rpcs&.respond_to? :purge_products
2109
- @purge_products = Gapic::Config::Method.new purge_products_config
2109
+ @purge_products = ::Gapic::Config::Method.new purge_products_config
2110
2110
 
2111
2111
  yield self if block_given?
2112
2112
  end