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