google-cloud-automl-v1 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. checksums.yaml +4 -4
  2. data/AUTHENTICATION.md +6 -6
  3. data/README.md +1 -1
  4. data/lib/google/cloud/automl/v1/automl/client.rb +373 -373
  5. data/lib/google/cloud/automl/v1/automl/credentials.rb +1 -1
  6. data/lib/google/cloud/automl/v1/automl/operations.rb +100 -100
  7. data/lib/google/cloud/automl/v1/automl/paths.rb +16 -16
  8. data/lib/google/cloud/automl/v1/automl.rb +1 -1
  9. data/lib/google/cloud/automl/v1/prediction_service/client.rb +116 -120
  10. data/lib/google/cloud/automl/v1/prediction_service/credentials.rb +1 -1
  11. data/lib/google/cloud/automl/v1/prediction_service/operations.rb +100 -100
  12. data/lib/google/cloud/automl/v1/prediction_service/paths.rb +3 -3
  13. data/lib/google/cloud/automl/v1/prediction_service.rb +1 -1
  14. data/lib/google/cloud/automl/v1/prediction_service_services_pb.rb +30 -34
  15. data/lib/google/cloud/automl/v1/version.rb +1 -1
  16. data/lib/google/cloud/automl/v1.rb +1 -1
  17. data/proto_docs/google/api/resource.rb +12 -12
  18. data/proto_docs/google/cloud/automl/v1/annotation_payload.rb +10 -10
  19. data/proto_docs/google/cloud/automl/v1/annotation_spec.rb +5 -5
  20. data/proto_docs/google/cloud/automl/v1/classification.rb +37 -37
  21. data/proto_docs/google/cloud/automl/v1/data_items.rb +38 -38
  22. data/proto_docs/google/cloud/automl/v1/dataset.rb +19 -19
  23. data/proto_docs/google/cloud/automl/v1/detection.rb +20 -20
  24. data/proto_docs/google/cloud/automl/v1/geometry.rb +7 -7
  25. data/proto_docs/google/cloud/automl/v1/image.rb +38 -38
  26. data/proto_docs/google/cloud/automl/v1/io.rb +46 -46
  27. data/proto_docs/google/cloud/automl/v1/model.rb +20 -20
  28. data/proto_docs/google/cloud/automl/v1/model_evaluation.rb +15 -15
  29. data/proto_docs/google/cloud/automl/v1/operations.rb +49 -49
  30. data/proto_docs/google/cloud/automl/v1/prediction_service.rb +53 -53
  31. data/proto_docs/google/cloud/automl/v1/service.rb +115 -115
  32. data/proto_docs/google/cloud/automl/v1/text.rb +15 -15
  33. data/proto_docs/google/cloud/automl/v1/text_extraction.rb +14 -14
  34. data/proto_docs/google/cloud/automl/v1/text_segment.rb +5 -5
  35. data/proto_docs/google/cloud/automl/v1/text_sentiment.rb +14 -14
  36. data/proto_docs/google/cloud/automl/v1/translation.rb +16 -16
  37. data/proto_docs/google/longrunning/operations.rb +30 -30
  38. data/proto_docs/google/protobuf/any.rb +4 -4
  39. data/proto_docs/google/protobuf/duration.rb +4 -4
  40. data/proto_docs/google/protobuf/empty.rb +2 -2
  41. data/proto_docs/google/protobuf/field_mask.rb +3 -3
  42. data/proto_docs/google/protobuf/struct.rb +18 -18
  43. data/proto_docs/google/protobuf/timestamp.rb +4 -4
  44. data/proto_docs/google/rpc/status.rb +6 -6
  45. metadata +2 -2
@@ -51,15 +51,15 @@ module Google
51
51
  ##
52
52
  # Configure the AutoMl Client class.
53
53
  #
54
- # See {Google::Cloud::AutoML::V1::AutoML::Client::Configuration}
54
+ # See {::Google::Cloud::AutoML::V1::AutoML::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 AutoMl clients:
60
60
  #
61
- # Google::Cloud::AutoML::V1::AutoML::Client.configure do |config|
62
- # config.timeout = 10_000
61
+ # ::Google::Cloud::AutoML::V1::AutoML::Client.configure do |config|
62
+ # config.timeout = 10.0
63
63
  # end
64
64
  #
65
65
  # @yield [config] Configure the Client client.
@@ -181,7 +181,7 @@ module Google
181
181
  # but structural changes (adding new fields, etc.) are not allowed. Structural changes
182
182
  # should be made on {Client.configure}.
183
183
  #
184
- # See {Google::Cloud::AutoML::V1::AutoML::Client::Configuration}
184
+ # See {::Google::Cloud::AutoML::V1::AutoML::Client::Configuration}
185
185
  # for a description of the configuration fields.
186
186
  #
187
187
  # @yield [config] Configure the Client client.
@@ -202,13 +202,13 @@ module Google
202
202
  # To create a new AutoMl client with the default
203
203
  # configuration:
204
204
  #
205
- # client = Google::Cloud::AutoML::V1::AutoML::Client.new
205
+ # client = ::Google::Cloud::AutoML::V1::AutoML::Client.new
206
206
  #
207
207
  # To create a new AutoMl client with a custom
208
208
  # configuration:
209
209
  #
210
- # client = Google::Cloud::AutoML::V1::AutoML::Client.new do |config|
211
- # config.timeout = 10_000
210
+ # client = ::Google::Cloud::AutoML::V1::AutoML::Client.new do |config|
211
+ # config.timeout = 10.0
212
212
  # end
213
213
  #
214
214
  # @yield [config] Configure the AutoMl client.
@@ -240,8 +240,8 @@ module Google
240
240
  config.endpoint = @config.endpoint
241
241
  end
242
242
 
243
- @auto_ml_stub = Gapic::ServiceStub.new(
244
- Google::Cloud::AutoML::V1::AutoMl::Stub,
243
+ @auto_ml_stub = ::Gapic::ServiceStub.new(
244
+ ::Google::Cloud::AutoML::V1::AutoMl::Stub,
245
245
  credentials: credentials,
246
246
  endpoint: @config.endpoint,
247
247
  channel_args: @config.channel_args,
@@ -252,7 +252,7 @@ module Google
252
252
  ##
253
253
  # Get the associated client for long-running operations.
254
254
  #
255
- # @return [Google::Cloud::AutoML::V1::AutoML::Operations]
255
+ # @return [::Google::Cloud::AutoML::V1::AutoML::Operations]
256
256
  #
257
257
  attr_reader :operations_client
258
258
 
@@ -263,12 +263,12 @@ module Google
263
263
  #
264
264
  # @overload create_dataset(request, options = nil)
265
265
  # Pass arguments to `create_dataset` via a request object, either of type
266
- # {Google::Cloud::AutoML::V1::CreateDatasetRequest} or an equivalent Hash.
266
+ # {::Google::Cloud::AutoML::V1::CreateDatasetRequest} or an equivalent Hash.
267
267
  #
268
- # @param request [Google::Cloud::AutoML::V1::CreateDatasetRequest, Hash]
268
+ # @param request [::Google::Cloud::AutoML::V1::CreateDatasetRequest, ::Hash]
269
269
  # A request object representing the call parameters. Required. To specify no
270
270
  # parameters, or to keep all the default parameter values, pass an empty Hash.
271
- # @param options [Gapic::CallOptions, Hash]
271
+ # @param options [::Gapic::CallOptions, ::Hash]
272
272
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
273
273
  #
274
274
  # @overload create_dataset(parent: nil, dataset: nil)
@@ -276,32 +276,32 @@ module Google
276
276
  # least one keyword argument is required. To specify no parameters, or to keep all
277
277
  # the default parameter values, pass an empty Hash as a request object (see above).
278
278
  #
279
- # @param parent [String]
279
+ # @param parent [::String]
280
280
  # Required. The resource name of the project to create the dataset for.
281
- # @param dataset [Google::Cloud::AutoML::V1::Dataset, Hash]
281
+ # @param dataset [::Google::Cloud::AutoML::V1::Dataset, ::Hash]
282
282
  # Required. The dataset to create.
283
283
  #
284
284
  # @yield [response, operation] Access the result along with the RPC operation
285
- # @yieldparam response [Gapic::Operation]
286
- # @yieldparam operation [GRPC::ActiveCall::Operation]
285
+ # @yieldparam response [::Gapic::Operation]
286
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
287
287
  #
288
- # @return [Gapic::Operation]
288
+ # @return [::Gapic::Operation]
289
289
  #
290
- # @raise [Google::Cloud::Error] if the RPC is aborted.
290
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
291
291
  #
292
292
  def create_dataset request, options = nil
293
- raise ArgumentError, "request must be provided" if request.nil?
293
+ raise ::ArgumentError, "request must be provided" if request.nil?
294
294
 
295
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::AutoML::V1::CreateDatasetRequest
295
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AutoML::V1::CreateDatasetRequest
296
296
 
297
297
  # Converts hash and nil to an options object
298
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
298
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
299
299
 
300
300
  # Customize the options with defaults
301
301
  metadata = @config.rpcs.create_dataset.metadata.to_h
302
302
 
303
303
  # Set x-goog-api-client and x-goog-user-project headers
304
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
304
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
305
305
  lib_name: @config.lib_name, lib_version: @config.lib_version,
306
306
  gapic_version: ::Google::Cloud::Automl::V1::VERSION
307
307
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -319,12 +319,12 @@ module Google
319
319
  retry_policy: @config.retry_policy
320
320
 
321
321
  @auto_ml_stub.call_rpc :create_dataset, request, options: options do |response, operation|
322
- response = Gapic::Operation.new response, @operations_client, options: options
322
+ response = ::Gapic::Operation.new response, @operations_client, options: options
323
323
  yield response, operation if block_given?
324
324
  return response
325
325
  end
326
- rescue GRPC::BadStatus => e
327
- raise Google::Cloud::Error.from_error(e)
326
+ rescue ::GRPC::BadStatus => e
327
+ raise ::Google::Cloud::Error.from_error(e)
328
328
  end
329
329
 
330
330
  ##
@@ -332,12 +332,12 @@ module Google
332
332
  #
333
333
  # @overload get_dataset(request, options = nil)
334
334
  # Pass arguments to `get_dataset` via a request object, either of type
335
- # {Google::Cloud::AutoML::V1::GetDatasetRequest} or an equivalent Hash.
335
+ # {::Google::Cloud::AutoML::V1::GetDatasetRequest} or an equivalent Hash.
336
336
  #
337
- # @param request [Google::Cloud::AutoML::V1::GetDatasetRequest, Hash]
337
+ # @param request [::Google::Cloud::AutoML::V1::GetDatasetRequest, ::Hash]
338
338
  # A request object representing the call parameters. Required. To specify no
339
339
  # parameters, or to keep all the default parameter values, pass an empty Hash.
340
- # @param options [Gapic::CallOptions, Hash]
340
+ # @param options [::Gapic::CallOptions, ::Hash]
341
341
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
342
342
  #
343
343
  # @overload get_dataset(name: nil)
@@ -345,30 +345,30 @@ module Google
345
345
  # least one keyword argument is required. To specify no parameters, or to keep all
346
346
  # the default parameter values, pass an empty Hash as a request object (see above).
347
347
  #
348
- # @param name [String]
348
+ # @param name [::String]
349
349
  # Required. The resource name of the dataset to retrieve.
350
350
  #
351
351
  # @yield [response, operation] Access the result along with the RPC operation
352
- # @yieldparam response [Google::Cloud::AutoML::V1::Dataset]
353
- # @yieldparam operation [GRPC::ActiveCall::Operation]
352
+ # @yieldparam response [::Google::Cloud::AutoML::V1::Dataset]
353
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
354
354
  #
355
- # @return [Google::Cloud::AutoML::V1::Dataset]
355
+ # @return [::Google::Cloud::AutoML::V1::Dataset]
356
356
  #
357
- # @raise [Google::Cloud::Error] if the RPC is aborted.
357
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
358
358
  #
359
359
  def get_dataset request, options = nil
360
- raise ArgumentError, "request must be provided" if request.nil?
360
+ raise ::ArgumentError, "request must be provided" if request.nil?
361
361
 
362
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::AutoML::V1::GetDatasetRequest
362
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AutoML::V1::GetDatasetRequest
363
363
 
364
364
  # Converts hash and nil to an options object
365
- 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
366
366
 
367
367
  # Customize the options with defaults
368
368
  metadata = @config.rpcs.get_dataset.metadata.to_h
369
369
 
370
370
  # Set x-goog-api-client and x-goog-user-project headers
371
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
371
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
372
372
  lib_name: @config.lib_name, lib_version: @config.lib_version,
373
373
  gapic_version: ::Google::Cloud::Automl::V1::VERSION
374
374
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -389,8 +389,8 @@ module Google
389
389
  yield response, operation if block_given?
390
390
  return response
391
391
  end
392
- rescue GRPC::BadStatus => e
393
- raise Google::Cloud::Error.from_error(e)
392
+ rescue ::GRPC::BadStatus => e
393
+ raise ::Google::Cloud::Error.from_error(e)
394
394
  end
395
395
 
396
396
  ##
@@ -398,12 +398,12 @@ module Google
398
398
  #
399
399
  # @overload list_datasets(request, options = nil)
400
400
  # Pass arguments to `list_datasets` via a request object, either of type
401
- # {Google::Cloud::AutoML::V1::ListDatasetsRequest} or an equivalent Hash.
401
+ # {::Google::Cloud::AutoML::V1::ListDatasetsRequest} or an equivalent Hash.
402
402
  #
403
- # @param request [Google::Cloud::AutoML::V1::ListDatasetsRequest, Hash]
403
+ # @param request [::Google::Cloud::AutoML::V1::ListDatasetsRequest, ::Hash]
404
404
  # A request object representing the call parameters. Required. To specify no
405
405
  # parameters, or to keep all the default parameter values, pass an empty Hash.
406
- # @param options [Gapic::CallOptions, Hash]
406
+ # @param options [::Gapic::CallOptions, ::Hash]
407
407
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
408
408
  #
409
409
  # @overload list_datasets(parent: nil, filter: nil, page_size: nil, page_token: nil)
@@ -411,9 +411,9 @@ module Google
411
411
  # least one keyword argument is required. To specify no parameters, or to keep all
412
412
  # the default parameter values, pass an empty Hash as a request object (see above).
413
413
  #
414
- # @param parent [String]
414
+ # @param parent [::String]
415
415
  # Required. The resource name of the project from which to list datasets.
416
- # @param filter [String]
416
+ # @param filter [::String]
417
417
  # An expression for filtering the results of the request.
418
418
  #
419
419
  # * `dataset_metadata` - for existence of the case (e.g.
@@ -421,36 +421,36 @@ module Google
421
421
  #
422
422
  # * `translation_dataset_metadata:*` --> The dataset has
423
423
  # translation_dataset_metadata.
424
- # @param page_size [Integer]
424
+ # @param page_size [::Integer]
425
425
  # Requested page size. Server may return fewer results than requested.
426
426
  # If unspecified, server will pick a default size.
427
- # @param page_token [String]
427
+ # @param page_token [::String]
428
428
  # A token identifying a page of results for the server to return
429
429
  # Typically obtained via
430
- # {Google::Cloud::AutoML::V1::ListDatasetsResponse#next_page_token ListDatasetsResponse.next_page_token} of the previous
431
- # {Google::Cloud::AutoML::V1::AutoML::Client#list_datasets AutoMl.ListDatasets} call.
430
+ # {::Google::Cloud::AutoML::V1::ListDatasetsResponse#next_page_token ListDatasetsResponse.next_page_token} of the previous
431
+ # {::Google::Cloud::AutoML::V1::AutoML::Client#list_datasets AutoMl.ListDatasets} call.
432
432
  #
433
433
  # @yield [response, operation] Access the result along with the RPC operation
434
- # @yieldparam response [Gapic::PagedEnumerable<Google::Cloud::AutoML::V1::Dataset>]
435
- # @yieldparam operation [GRPC::ActiveCall::Operation]
434
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::AutoML::V1::Dataset>]
435
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
436
436
  #
437
- # @return [Gapic::PagedEnumerable<Google::Cloud::AutoML::V1::Dataset>]
437
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::AutoML::V1::Dataset>]
438
438
  #
439
- # @raise [Google::Cloud::Error] if the RPC is aborted.
439
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
440
440
  #
441
441
  def list_datasets request, options = nil
442
- raise ArgumentError, "request must be provided" if request.nil?
442
+ raise ::ArgumentError, "request must be provided" if request.nil?
443
443
 
444
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::AutoML::V1::ListDatasetsRequest
444
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AutoML::V1::ListDatasetsRequest
445
445
 
446
446
  # Converts hash and nil to an options object
447
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
447
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
448
448
 
449
449
  # Customize the options with defaults
450
450
  metadata = @config.rpcs.list_datasets.metadata.to_h
451
451
 
452
452
  # Set x-goog-api-client and x-goog-user-project headers
453
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
453
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
454
454
  lib_name: @config.lib_name, lib_version: @config.lib_version,
455
455
  gapic_version: ::Google::Cloud::Automl::V1::VERSION
456
456
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -468,12 +468,12 @@ module Google
468
468
  retry_policy: @config.retry_policy
469
469
 
470
470
  @auto_ml_stub.call_rpc :list_datasets, request, options: options do |response, operation|
471
- response = Gapic::PagedEnumerable.new @auto_ml_stub, :list_datasets, request, response, operation, options
471
+ response = ::Gapic::PagedEnumerable.new @auto_ml_stub, :list_datasets, request, response, operation, options
472
472
  yield response, operation if block_given?
473
473
  return response
474
474
  end
475
- rescue GRPC::BadStatus => e
476
- raise Google::Cloud::Error.from_error(e)
475
+ rescue ::GRPC::BadStatus => e
476
+ raise ::Google::Cloud::Error.from_error(e)
477
477
  end
478
478
 
479
479
  ##
@@ -481,12 +481,12 @@ module Google
481
481
  #
482
482
  # @overload update_dataset(request, options = nil)
483
483
  # Pass arguments to `update_dataset` via a request object, either of type
484
- # {Google::Cloud::AutoML::V1::UpdateDatasetRequest} or an equivalent Hash.
484
+ # {::Google::Cloud::AutoML::V1::UpdateDatasetRequest} or an equivalent Hash.
485
485
  #
486
- # @param request [Google::Cloud::AutoML::V1::UpdateDatasetRequest, Hash]
486
+ # @param request [::Google::Cloud::AutoML::V1::UpdateDatasetRequest, ::Hash]
487
487
  # A request object representing the call parameters. Required. To specify no
488
488
  # parameters, or to keep all the default parameter values, pass an empty Hash.
489
- # @param options [Gapic::CallOptions, Hash]
489
+ # @param options [::Gapic::CallOptions, ::Hash]
490
490
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
491
491
  #
492
492
  # @overload update_dataset(dataset: nil, update_mask: nil)
@@ -494,32 +494,32 @@ module Google
494
494
  # least one keyword argument is required. To specify no parameters, or to keep all
495
495
  # the default parameter values, pass an empty Hash as a request object (see above).
496
496
  #
497
- # @param dataset [Google::Cloud::AutoML::V1::Dataset, Hash]
497
+ # @param dataset [::Google::Cloud::AutoML::V1::Dataset, ::Hash]
498
498
  # Required. The dataset which replaces the resource on the server.
499
- # @param update_mask [Google::Protobuf::FieldMask, Hash]
499
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
500
500
  # Required. The update mask applies to the resource.
501
501
  #
502
502
  # @yield [response, operation] Access the result along with the RPC operation
503
- # @yieldparam response [Google::Cloud::AutoML::V1::Dataset]
504
- # @yieldparam operation [GRPC::ActiveCall::Operation]
503
+ # @yieldparam response [::Google::Cloud::AutoML::V1::Dataset]
504
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
505
505
  #
506
- # @return [Google::Cloud::AutoML::V1::Dataset]
506
+ # @return [::Google::Cloud::AutoML::V1::Dataset]
507
507
  #
508
- # @raise [Google::Cloud::Error] if the RPC is aborted.
508
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
509
509
  #
510
510
  def update_dataset request, options = nil
511
- raise ArgumentError, "request must be provided" if request.nil?
511
+ raise ::ArgumentError, "request must be provided" if request.nil?
512
512
 
513
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::AutoML::V1::UpdateDatasetRequest
513
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AutoML::V1::UpdateDatasetRequest
514
514
 
515
515
  # Converts hash and nil to an options object
516
- 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
517
517
 
518
518
  # Customize the options with defaults
519
519
  metadata = @config.rpcs.update_dataset.metadata.to_h
520
520
 
521
521
  # Set x-goog-api-client and x-goog-user-project headers
522
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
522
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
523
523
  lib_name: @config.lib_name, lib_version: @config.lib_version,
524
524
  gapic_version: ::Google::Cloud::Automl::V1::VERSION
525
525
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -540,25 +540,25 @@ module Google
540
540
  yield response, operation if block_given?
541
541
  return response
542
542
  end
543
- rescue GRPC::BadStatus => e
544
- raise Google::Cloud::Error.from_error(e)
543
+ rescue ::GRPC::BadStatus => e
544
+ raise ::Google::Cloud::Error.from_error(e)
545
545
  end
546
546
 
547
547
  ##
548
548
  # Deletes a dataset and all of its contents.
549
549
  # Returns empty response in the
550
- # {Google::Longrunning::Operation#response response} field when it completes,
550
+ # {::Google::Longrunning::Operation#response response} field when it completes,
551
551
  # and `delete_details` in the
552
- # {Google::Longrunning::Operation#metadata metadata} field.
552
+ # {::Google::Longrunning::Operation#metadata metadata} field.
553
553
  #
554
554
  # @overload delete_dataset(request, options = nil)
555
555
  # Pass arguments to `delete_dataset` via a request object, either of type
556
- # {Google::Cloud::AutoML::V1::DeleteDatasetRequest} or an equivalent Hash.
556
+ # {::Google::Cloud::AutoML::V1::DeleteDatasetRequest} or an equivalent Hash.
557
557
  #
558
- # @param request [Google::Cloud::AutoML::V1::DeleteDatasetRequest, Hash]
558
+ # @param request [::Google::Cloud::AutoML::V1::DeleteDatasetRequest, ::Hash]
559
559
  # A request object representing the call parameters. Required. To specify no
560
560
  # parameters, or to keep all the default parameter values, pass an empty Hash.
561
- # @param options [Gapic::CallOptions, Hash]
561
+ # @param options [::Gapic::CallOptions, ::Hash]
562
562
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
563
563
  #
564
564
  # @overload delete_dataset(name: nil)
@@ -566,30 +566,30 @@ module Google
566
566
  # least one keyword argument is required. To specify no parameters, or to keep all
567
567
  # the default parameter values, pass an empty Hash as a request object (see above).
568
568
  #
569
- # @param name [String]
569
+ # @param name [::String]
570
570
  # Required. The resource name of the dataset to delete.
571
571
  #
572
572
  # @yield [response, operation] Access the result along with the RPC operation
573
- # @yieldparam response [Gapic::Operation]
574
- # @yieldparam operation [GRPC::ActiveCall::Operation]
573
+ # @yieldparam response [::Gapic::Operation]
574
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
575
575
  #
576
- # @return [Gapic::Operation]
576
+ # @return [::Gapic::Operation]
577
577
  #
578
- # @raise [Google::Cloud::Error] if the RPC is aborted.
578
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
579
579
  #
580
580
  def delete_dataset request, options = nil
581
- raise ArgumentError, "request must be provided" if request.nil?
581
+ raise ::ArgumentError, "request must be provided" if request.nil?
582
582
 
583
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::AutoML::V1::DeleteDatasetRequest
583
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AutoML::V1::DeleteDatasetRequest
584
584
 
585
585
  # Converts hash and nil to an options object
586
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
586
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
587
587
 
588
588
  # Customize the options with defaults
589
589
  metadata = @config.rpcs.delete_dataset.metadata.to_h
590
590
 
591
591
  # Set x-goog-api-client and x-goog-user-project headers
592
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
592
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
593
593
  lib_name: @config.lib_name, lib_version: @config.lib_version,
594
594
  gapic_version: ::Google::Cloud::Automl::V1::VERSION
595
595
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -607,12 +607,12 @@ module Google
607
607
  retry_policy: @config.retry_policy
608
608
 
609
609
  @auto_ml_stub.call_rpc :delete_dataset, request, options: options do |response, operation|
610
- response = Gapic::Operation.new response, @operations_client, options: options
610
+ response = ::Gapic::Operation.new response, @operations_client, options: options
611
611
  yield response, operation if block_given?
612
612
  return response
613
613
  end
614
- rescue GRPC::BadStatus => e
615
- raise Google::Cloud::Error.from_error(e)
614
+ rescue ::GRPC::BadStatus => e
615
+ raise ::Google::Cloud::Error.from_error(e)
616
616
  end
617
617
 
618
618
  ##
@@ -621,19 +621,19 @@ module Google
621
621
  #
622
622
  # For Tables:
623
623
  # * A
624
- # {Google::Cloud::AutoML::V1::InputConfig#params schema_inference_version}
624
+ # {::Google::Cloud::AutoML::V1::InputConfig#params schema_inference_version}
625
625
  # parameter must be explicitly set.
626
626
  # Returns an empty response in the
627
- # {Google::Longrunning::Operation#response response} field when it completes.
627
+ # {::Google::Longrunning::Operation#response response} field when it completes.
628
628
  #
629
629
  # @overload import_data(request, options = nil)
630
630
  # Pass arguments to `import_data` via a request object, either of type
631
- # {Google::Cloud::AutoML::V1::ImportDataRequest} or an equivalent Hash.
631
+ # {::Google::Cloud::AutoML::V1::ImportDataRequest} or an equivalent Hash.
632
632
  #
633
- # @param request [Google::Cloud::AutoML::V1::ImportDataRequest, Hash]
633
+ # @param request [::Google::Cloud::AutoML::V1::ImportDataRequest, ::Hash]
634
634
  # A request object representing the call parameters. Required. To specify no
635
635
  # parameters, or to keep all the default parameter values, pass an empty Hash.
636
- # @param options [Gapic::CallOptions, Hash]
636
+ # @param options [::Gapic::CallOptions, ::Hash]
637
637
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
638
638
  #
639
639
  # @overload import_data(name: nil, input_config: nil)
@@ -641,34 +641,34 @@ module Google
641
641
  # least one keyword argument is required. To specify no parameters, or to keep all
642
642
  # the default parameter values, pass an empty Hash as a request object (see above).
643
643
  #
644
- # @param name [String]
644
+ # @param name [::String]
645
645
  # Required. Dataset name. Dataset must already exist. All imported
646
646
  # annotations and examples will be added.
647
- # @param input_config [Google::Cloud::AutoML::V1::InputConfig, Hash]
647
+ # @param input_config [::Google::Cloud::AutoML::V1::InputConfig, ::Hash]
648
648
  # Required. The desired input location and its domain specific semantics,
649
649
  # if any.
650
650
  #
651
651
  # @yield [response, operation] Access the result along with the RPC operation
652
- # @yieldparam response [Gapic::Operation]
653
- # @yieldparam operation [GRPC::ActiveCall::Operation]
652
+ # @yieldparam response [::Gapic::Operation]
653
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
654
654
  #
655
- # @return [Gapic::Operation]
655
+ # @return [::Gapic::Operation]
656
656
  #
657
- # @raise [Google::Cloud::Error] if the RPC is aborted.
657
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
658
658
  #
659
659
  def import_data request, options = nil
660
- raise ArgumentError, "request must be provided" if request.nil?
660
+ raise ::ArgumentError, "request must be provided" if request.nil?
661
661
 
662
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::AutoML::V1::ImportDataRequest
662
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AutoML::V1::ImportDataRequest
663
663
 
664
664
  # Converts hash and nil to an options object
665
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
665
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
666
666
 
667
667
  # Customize the options with defaults
668
668
  metadata = @config.rpcs.import_data.metadata.to_h
669
669
 
670
670
  # Set x-goog-api-client and x-goog-user-project headers
671
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
671
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
672
672
  lib_name: @config.lib_name, lib_version: @config.lib_version,
673
673
  gapic_version: ::Google::Cloud::Automl::V1::VERSION
674
674
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -686,27 +686,27 @@ module Google
686
686
  retry_policy: @config.retry_policy
687
687
 
688
688
  @auto_ml_stub.call_rpc :import_data, request, options: options do |response, operation|
689
- response = Gapic::Operation.new response, @operations_client, options: options
689
+ response = ::Gapic::Operation.new response, @operations_client, options: options
690
690
  yield response, operation if block_given?
691
691
  return response
692
692
  end
693
- rescue GRPC::BadStatus => e
694
- raise Google::Cloud::Error.from_error(e)
693
+ rescue ::GRPC::BadStatus => e
694
+ raise ::Google::Cloud::Error.from_error(e)
695
695
  end
696
696
 
697
697
  ##
698
698
  # Exports dataset's data to the provided output location.
699
699
  # Returns an empty response in the
700
- # {Google::Longrunning::Operation#response response} field when it completes.
700
+ # {::Google::Longrunning::Operation#response response} field when it completes.
701
701
  #
702
702
  # @overload export_data(request, options = nil)
703
703
  # Pass arguments to `export_data` via a request object, either of type
704
- # {Google::Cloud::AutoML::V1::ExportDataRequest} or an equivalent Hash.
704
+ # {::Google::Cloud::AutoML::V1::ExportDataRequest} or an equivalent Hash.
705
705
  #
706
- # @param request [Google::Cloud::AutoML::V1::ExportDataRequest, Hash]
706
+ # @param request [::Google::Cloud::AutoML::V1::ExportDataRequest, ::Hash]
707
707
  # A request object representing the call parameters. Required. To specify no
708
708
  # parameters, or to keep all the default parameter values, pass an empty Hash.
709
- # @param options [Gapic::CallOptions, Hash]
709
+ # @param options [::Gapic::CallOptions, ::Hash]
710
710
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
711
711
  #
712
712
  # @overload export_data(name: nil, output_config: nil)
@@ -714,32 +714,32 @@ module Google
714
714
  # least one keyword argument is required. To specify no parameters, or to keep all
715
715
  # the default parameter values, pass an empty Hash as a request object (see above).
716
716
  #
717
- # @param name [String]
717
+ # @param name [::String]
718
718
  # Required. The resource name of the dataset.
719
- # @param output_config [Google::Cloud::AutoML::V1::OutputConfig, Hash]
719
+ # @param output_config [::Google::Cloud::AutoML::V1::OutputConfig, ::Hash]
720
720
  # Required. The desired output location.
721
721
  #
722
722
  # @yield [response, operation] Access the result along with the RPC operation
723
- # @yieldparam response [Gapic::Operation]
724
- # @yieldparam operation [GRPC::ActiveCall::Operation]
723
+ # @yieldparam response [::Gapic::Operation]
724
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
725
725
  #
726
- # @return [Gapic::Operation]
726
+ # @return [::Gapic::Operation]
727
727
  #
728
- # @raise [Google::Cloud::Error] if the RPC is aborted.
728
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
729
729
  #
730
730
  def export_data request, options = nil
731
- raise ArgumentError, "request must be provided" if request.nil?
731
+ raise ::ArgumentError, "request must be provided" if request.nil?
732
732
 
733
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::AutoML::V1::ExportDataRequest
733
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AutoML::V1::ExportDataRequest
734
734
 
735
735
  # Converts hash and nil to an options object
736
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
736
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
737
737
 
738
738
  # Customize the options with defaults
739
739
  metadata = @config.rpcs.export_data.metadata.to_h
740
740
 
741
741
  # Set x-goog-api-client and x-goog-user-project headers
742
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
742
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
743
743
  lib_name: @config.lib_name, lib_version: @config.lib_version,
744
744
  gapic_version: ::Google::Cloud::Automl::V1::VERSION
745
745
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -757,12 +757,12 @@ module Google
757
757
  retry_policy: @config.retry_policy
758
758
 
759
759
  @auto_ml_stub.call_rpc :export_data, request, options: options do |response, operation|
760
- response = Gapic::Operation.new response, @operations_client, options: options
760
+ response = ::Gapic::Operation.new response, @operations_client, options: options
761
761
  yield response, operation if block_given?
762
762
  return response
763
763
  end
764
- rescue GRPC::BadStatus => e
765
- raise Google::Cloud::Error.from_error(e)
764
+ rescue ::GRPC::BadStatus => e
765
+ raise ::Google::Cloud::Error.from_error(e)
766
766
  end
767
767
 
768
768
  ##
@@ -770,12 +770,12 @@ module Google
770
770
  #
771
771
  # @overload get_annotation_spec(request, options = nil)
772
772
  # Pass arguments to `get_annotation_spec` via a request object, either of type
773
- # {Google::Cloud::AutoML::V1::GetAnnotationSpecRequest} or an equivalent Hash.
773
+ # {::Google::Cloud::AutoML::V1::GetAnnotationSpecRequest} or an equivalent Hash.
774
774
  #
775
- # @param request [Google::Cloud::AutoML::V1::GetAnnotationSpecRequest, Hash]
775
+ # @param request [::Google::Cloud::AutoML::V1::GetAnnotationSpecRequest, ::Hash]
776
776
  # A request object representing the call parameters. Required. To specify no
777
777
  # parameters, or to keep all the default parameter values, pass an empty Hash.
778
- # @param options [Gapic::CallOptions, Hash]
778
+ # @param options [::Gapic::CallOptions, ::Hash]
779
779
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
780
780
  #
781
781
  # @overload get_annotation_spec(name: nil)
@@ -783,30 +783,30 @@ module Google
783
783
  # least one keyword argument is required. To specify no parameters, or to keep all
784
784
  # the default parameter values, pass an empty Hash as a request object (see above).
785
785
  #
786
- # @param name [String]
786
+ # @param name [::String]
787
787
  # Required. The resource name of the annotation spec to retrieve.
788
788
  #
789
789
  # @yield [response, operation] Access the result along with the RPC operation
790
- # @yieldparam response [Google::Cloud::AutoML::V1::AnnotationSpec]
791
- # @yieldparam operation [GRPC::ActiveCall::Operation]
790
+ # @yieldparam response [::Google::Cloud::AutoML::V1::AnnotationSpec]
791
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
792
792
  #
793
- # @return [Google::Cloud::AutoML::V1::AnnotationSpec]
793
+ # @return [::Google::Cloud::AutoML::V1::AnnotationSpec]
794
794
  #
795
- # @raise [Google::Cloud::Error] if the RPC is aborted.
795
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
796
796
  #
797
797
  def get_annotation_spec request, options = nil
798
- raise ArgumentError, "request must be provided" if request.nil?
798
+ raise ::ArgumentError, "request must be provided" if request.nil?
799
799
 
800
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::AutoML::V1::GetAnnotationSpecRequest
800
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AutoML::V1::GetAnnotationSpecRequest
801
801
 
802
802
  # Converts hash and nil to an options object
803
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
803
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
804
804
 
805
805
  # Customize the options with defaults
806
806
  metadata = @config.rpcs.get_annotation_spec.metadata.to_h
807
807
 
808
808
  # Set x-goog-api-client and x-goog-user-project headers
809
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
809
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
810
810
  lib_name: @config.lib_name, lib_version: @config.lib_version,
811
811
  gapic_version: ::Google::Cloud::Automl::V1::VERSION
812
812
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -827,25 +827,25 @@ module Google
827
827
  yield response, operation if block_given?
828
828
  return response
829
829
  end
830
- rescue GRPC::BadStatus => e
831
- raise Google::Cloud::Error.from_error(e)
830
+ rescue ::GRPC::BadStatus => e
831
+ raise ::Google::Cloud::Error.from_error(e)
832
832
  end
833
833
 
834
834
  ##
835
835
  # Creates a model.
836
- # Returns a Model in the {Google::Longrunning::Operation#response response}
836
+ # Returns a Model in the {::Google::Longrunning::Operation#response response}
837
837
  # field when it completes.
838
838
  # When you create a model, several model evaluations are created for it:
839
839
  # a global evaluation, and one evaluation for each annotation spec.
840
840
  #
841
841
  # @overload create_model(request, options = nil)
842
842
  # Pass arguments to `create_model` via a request object, either of type
843
- # {Google::Cloud::AutoML::V1::CreateModelRequest} or an equivalent Hash.
843
+ # {::Google::Cloud::AutoML::V1::CreateModelRequest} or an equivalent Hash.
844
844
  #
845
- # @param request [Google::Cloud::AutoML::V1::CreateModelRequest, Hash]
845
+ # @param request [::Google::Cloud::AutoML::V1::CreateModelRequest, ::Hash]
846
846
  # A request object representing the call parameters. Required. To specify no
847
847
  # parameters, or to keep all the default parameter values, pass an empty Hash.
848
- # @param options [Gapic::CallOptions, Hash]
848
+ # @param options [::Gapic::CallOptions, ::Hash]
849
849
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
850
850
  #
851
851
  # @overload create_model(parent: nil, model: nil)
@@ -853,32 +853,32 @@ module Google
853
853
  # least one keyword argument is required. To specify no parameters, or to keep all
854
854
  # the default parameter values, pass an empty Hash as a request object (see above).
855
855
  #
856
- # @param parent [String]
856
+ # @param parent [::String]
857
857
  # Required. Resource name of the parent project where the model is being created.
858
- # @param model [Google::Cloud::AutoML::V1::Model, Hash]
858
+ # @param model [::Google::Cloud::AutoML::V1::Model, ::Hash]
859
859
  # Required. The model to create.
860
860
  #
861
861
  # @yield [response, operation] Access the result along with the RPC operation
862
- # @yieldparam response [Gapic::Operation]
863
- # @yieldparam operation [GRPC::ActiveCall::Operation]
862
+ # @yieldparam response [::Gapic::Operation]
863
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
864
864
  #
865
- # @return [Gapic::Operation]
865
+ # @return [::Gapic::Operation]
866
866
  #
867
- # @raise [Google::Cloud::Error] if the RPC is aborted.
867
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
868
868
  #
869
869
  def create_model request, options = nil
870
- raise ArgumentError, "request must be provided" if request.nil?
870
+ raise ::ArgumentError, "request must be provided" if request.nil?
871
871
 
872
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::AutoML::V1::CreateModelRequest
872
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AutoML::V1::CreateModelRequest
873
873
 
874
874
  # Converts hash and nil to an options object
875
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
875
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
876
876
 
877
877
  # Customize the options with defaults
878
878
  metadata = @config.rpcs.create_model.metadata.to_h
879
879
 
880
880
  # Set x-goog-api-client and x-goog-user-project headers
881
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
881
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
882
882
  lib_name: @config.lib_name, lib_version: @config.lib_version,
883
883
  gapic_version: ::Google::Cloud::Automl::V1::VERSION
884
884
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -896,12 +896,12 @@ module Google
896
896
  retry_policy: @config.retry_policy
897
897
 
898
898
  @auto_ml_stub.call_rpc :create_model, request, options: options do |response, operation|
899
- response = Gapic::Operation.new response, @operations_client, options: options
899
+ response = ::Gapic::Operation.new response, @operations_client, options: options
900
900
  yield response, operation if block_given?
901
901
  return response
902
902
  end
903
- rescue GRPC::BadStatus => e
904
- raise Google::Cloud::Error.from_error(e)
903
+ rescue ::GRPC::BadStatus => e
904
+ raise ::Google::Cloud::Error.from_error(e)
905
905
  end
906
906
 
907
907
  ##
@@ -909,12 +909,12 @@ module Google
909
909
  #
910
910
  # @overload get_model(request, options = nil)
911
911
  # Pass arguments to `get_model` via a request object, either of type
912
- # {Google::Cloud::AutoML::V1::GetModelRequest} or an equivalent Hash.
912
+ # {::Google::Cloud::AutoML::V1::GetModelRequest} or an equivalent Hash.
913
913
  #
914
- # @param request [Google::Cloud::AutoML::V1::GetModelRequest, Hash]
914
+ # @param request [::Google::Cloud::AutoML::V1::GetModelRequest, ::Hash]
915
915
  # A request object representing the call parameters. Required. To specify no
916
916
  # parameters, or to keep all the default parameter values, pass an empty Hash.
917
- # @param options [Gapic::CallOptions, Hash]
917
+ # @param options [::Gapic::CallOptions, ::Hash]
918
918
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
919
919
  #
920
920
  # @overload get_model(name: nil)
@@ -922,30 +922,30 @@ module Google
922
922
  # least one keyword argument is required. To specify no parameters, or to keep all
923
923
  # the default parameter values, pass an empty Hash as a request object (see above).
924
924
  #
925
- # @param name [String]
925
+ # @param name [::String]
926
926
  # Required. Resource name of the model.
927
927
  #
928
928
  # @yield [response, operation] Access the result along with the RPC operation
929
- # @yieldparam response [Google::Cloud::AutoML::V1::Model]
930
- # @yieldparam operation [GRPC::ActiveCall::Operation]
929
+ # @yieldparam response [::Google::Cloud::AutoML::V1::Model]
930
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
931
931
  #
932
- # @return [Google::Cloud::AutoML::V1::Model]
932
+ # @return [::Google::Cloud::AutoML::V1::Model]
933
933
  #
934
- # @raise [Google::Cloud::Error] if the RPC is aborted.
934
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
935
935
  #
936
936
  def get_model request, options = nil
937
- raise ArgumentError, "request must be provided" if request.nil?
937
+ raise ::ArgumentError, "request must be provided" if request.nil?
938
938
 
939
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::AutoML::V1::GetModelRequest
939
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AutoML::V1::GetModelRequest
940
940
 
941
941
  # Converts hash and nil to an options object
942
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
942
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
943
943
 
944
944
  # Customize the options with defaults
945
945
  metadata = @config.rpcs.get_model.metadata.to_h
946
946
 
947
947
  # Set x-goog-api-client and x-goog-user-project headers
948
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
948
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
949
949
  lib_name: @config.lib_name, lib_version: @config.lib_version,
950
950
  gapic_version: ::Google::Cloud::Automl::V1::VERSION
951
951
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -966,8 +966,8 @@ module Google
966
966
  yield response, operation if block_given?
967
967
  return response
968
968
  end
969
- rescue GRPC::BadStatus => e
970
- raise Google::Cloud::Error.from_error(e)
969
+ rescue ::GRPC::BadStatus => e
970
+ raise ::Google::Cloud::Error.from_error(e)
971
971
  end
972
972
 
973
973
  ##
@@ -975,12 +975,12 @@ module Google
975
975
  #
976
976
  # @overload list_models(request, options = nil)
977
977
  # Pass arguments to `list_models` via a request object, either of type
978
- # {Google::Cloud::AutoML::V1::ListModelsRequest} or an equivalent Hash.
978
+ # {::Google::Cloud::AutoML::V1::ListModelsRequest} or an equivalent Hash.
979
979
  #
980
- # @param request [Google::Cloud::AutoML::V1::ListModelsRequest, Hash]
980
+ # @param request [::Google::Cloud::AutoML::V1::ListModelsRequest, ::Hash]
981
981
  # A request object representing the call parameters. Required. To specify no
982
982
  # parameters, or to keep all the default parameter values, pass an empty Hash.
983
- # @param options [Gapic::CallOptions, Hash]
983
+ # @param options [::Gapic::CallOptions, ::Hash]
984
984
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
985
985
  #
986
986
  # @overload list_models(parent: nil, filter: nil, page_size: nil, page_token: nil)
@@ -988,9 +988,9 @@ module Google
988
988
  # least one keyword argument is required. To specify no parameters, or to keep all
989
989
  # the default parameter values, pass an empty Hash as a request object (see above).
990
990
  #
991
- # @param parent [String]
991
+ # @param parent [::String]
992
992
  # Required. Resource name of the project, from which to list the models.
993
- # @param filter [String]
993
+ # @param filter [::String]
994
994
  # An expression for filtering the results of the request.
995
995
  #
996
996
  # * `model_metadata` - for existence of the case (e.g.
@@ -1000,35 +1000,35 @@ module Google
1000
1000
  # * `image_classification_model_metadata:*` --> The model has
1001
1001
  # image_classification_model_metadata.
1002
1002
  # * `dataset_id=5` --> The model was created from a dataset with ID 5.
1003
- # @param page_size [Integer]
1003
+ # @param page_size [::Integer]
1004
1004
  # Requested page size.
1005
- # @param page_token [String]
1005
+ # @param page_token [::String]
1006
1006
  # A token identifying a page of results for the server to return
1007
1007
  # Typically obtained via
1008
- # {Google::Cloud::AutoML::V1::ListModelsResponse#next_page_token ListModelsResponse.next_page_token} of the previous
1009
- # {Google::Cloud::AutoML::V1::AutoML::Client#list_models AutoMl.ListModels} call.
1008
+ # {::Google::Cloud::AutoML::V1::ListModelsResponse#next_page_token ListModelsResponse.next_page_token} of the previous
1009
+ # {::Google::Cloud::AutoML::V1::AutoML::Client#list_models AutoMl.ListModels} call.
1010
1010
  #
1011
1011
  # @yield [response, operation] Access the result along with the RPC operation
1012
- # @yieldparam response [Gapic::PagedEnumerable<Google::Cloud::AutoML::V1::Model>]
1013
- # @yieldparam operation [GRPC::ActiveCall::Operation]
1012
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::AutoML::V1::Model>]
1013
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1014
1014
  #
1015
- # @return [Gapic::PagedEnumerable<Google::Cloud::AutoML::V1::Model>]
1015
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::AutoML::V1::Model>]
1016
1016
  #
1017
- # @raise [Google::Cloud::Error] if the RPC is aborted.
1017
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1018
1018
  #
1019
1019
  def list_models request, options = nil
1020
- raise ArgumentError, "request must be provided" if request.nil?
1020
+ raise ::ArgumentError, "request must be provided" if request.nil?
1021
1021
 
1022
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::AutoML::V1::ListModelsRequest
1022
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AutoML::V1::ListModelsRequest
1023
1023
 
1024
1024
  # Converts hash and nil to an options object
1025
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1025
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1026
1026
 
1027
1027
  # Customize the options with defaults
1028
1028
  metadata = @config.rpcs.list_models.metadata.to_h
1029
1029
 
1030
1030
  # Set x-goog-api-client and x-goog-user-project headers
1031
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
1031
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1032
1032
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1033
1033
  gapic_version: ::Google::Cloud::Automl::V1::VERSION
1034
1034
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -1046,29 +1046,29 @@ module Google
1046
1046
  retry_policy: @config.retry_policy
1047
1047
 
1048
1048
  @auto_ml_stub.call_rpc :list_models, request, options: options do |response, operation|
1049
- response = Gapic::PagedEnumerable.new @auto_ml_stub, :list_models, request, response, operation, options
1049
+ response = ::Gapic::PagedEnumerable.new @auto_ml_stub, :list_models, request, response, operation, options
1050
1050
  yield response, operation if block_given?
1051
1051
  return response
1052
1052
  end
1053
- rescue GRPC::BadStatus => e
1054
- raise Google::Cloud::Error.from_error(e)
1053
+ rescue ::GRPC::BadStatus => e
1054
+ raise ::Google::Cloud::Error.from_error(e)
1055
1055
  end
1056
1056
 
1057
1057
  ##
1058
1058
  # Deletes a model.
1059
1059
  # Returns `google.protobuf.Empty` in the
1060
- # {Google::Longrunning::Operation#response response} field when it completes,
1060
+ # {::Google::Longrunning::Operation#response response} field when it completes,
1061
1061
  # and `delete_details` in the
1062
- # {Google::Longrunning::Operation#metadata metadata} field.
1062
+ # {::Google::Longrunning::Operation#metadata metadata} field.
1063
1063
  #
1064
1064
  # @overload delete_model(request, options = nil)
1065
1065
  # Pass arguments to `delete_model` via a request object, either of type
1066
- # {Google::Cloud::AutoML::V1::DeleteModelRequest} or an equivalent Hash.
1066
+ # {::Google::Cloud::AutoML::V1::DeleteModelRequest} or an equivalent Hash.
1067
1067
  #
1068
- # @param request [Google::Cloud::AutoML::V1::DeleteModelRequest, Hash]
1068
+ # @param request [::Google::Cloud::AutoML::V1::DeleteModelRequest, ::Hash]
1069
1069
  # A request object representing the call parameters. Required. To specify no
1070
1070
  # parameters, or to keep all the default parameter values, pass an empty Hash.
1071
- # @param options [Gapic::CallOptions, Hash]
1071
+ # @param options [::Gapic::CallOptions, ::Hash]
1072
1072
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1073
1073
  #
1074
1074
  # @overload delete_model(name: nil)
@@ -1076,30 +1076,30 @@ module Google
1076
1076
  # least one keyword argument is required. To specify no parameters, or to keep all
1077
1077
  # the default parameter values, pass an empty Hash as a request object (see above).
1078
1078
  #
1079
- # @param name [String]
1079
+ # @param name [::String]
1080
1080
  # Required. Resource name of the model being deleted.
1081
1081
  #
1082
1082
  # @yield [response, operation] Access the result along with the RPC operation
1083
- # @yieldparam response [Gapic::Operation]
1084
- # @yieldparam operation [GRPC::ActiveCall::Operation]
1083
+ # @yieldparam response [::Gapic::Operation]
1084
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1085
1085
  #
1086
- # @return [Gapic::Operation]
1086
+ # @return [::Gapic::Operation]
1087
1087
  #
1088
- # @raise [Google::Cloud::Error] if the RPC is aborted.
1088
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1089
1089
  #
1090
1090
  def delete_model request, options = nil
1091
- raise ArgumentError, "request must be provided" if request.nil?
1091
+ raise ::ArgumentError, "request must be provided" if request.nil?
1092
1092
 
1093
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::AutoML::V1::DeleteModelRequest
1093
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AutoML::V1::DeleteModelRequest
1094
1094
 
1095
1095
  # Converts hash and nil to an options object
1096
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1096
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1097
1097
 
1098
1098
  # Customize the options with defaults
1099
1099
  metadata = @config.rpcs.delete_model.metadata.to_h
1100
1100
 
1101
1101
  # Set x-goog-api-client and x-goog-user-project headers
1102
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
1102
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1103
1103
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1104
1104
  gapic_version: ::Google::Cloud::Automl::V1::VERSION
1105
1105
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -1117,12 +1117,12 @@ module Google
1117
1117
  retry_policy: @config.retry_policy
1118
1118
 
1119
1119
  @auto_ml_stub.call_rpc :delete_model, request, options: options do |response, operation|
1120
- response = Gapic::Operation.new response, @operations_client, options: options
1120
+ response = ::Gapic::Operation.new response, @operations_client, options: options
1121
1121
  yield response, operation if block_given?
1122
1122
  return response
1123
1123
  end
1124
- rescue GRPC::BadStatus => e
1125
- raise Google::Cloud::Error.from_error(e)
1124
+ rescue ::GRPC::BadStatus => e
1125
+ raise ::Google::Cloud::Error.from_error(e)
1126
1126
  end
1127
1127
 
1128
1128
  ##
@@ -1130,12 +1130,12 @@ module Google
1130
1130
  #
1131
1131
  # @overload update_model(request, options = nil)
1132
1132
  # Pass arguments to `update_model` via a request object, either of type
1133
- # {Google::Cloud::AutoML::V1::UpdateModelRequest} or an equivalent Hash.
1133
+ # {::Google::Cloud::AutoML::V1::UpdateModelRequest} or an equivalent Hash.
1134
1134
  #
1135
- # @param request [Google::Cloud::AutoML::V1::UpdateModelRequest, Hash]
1135
+ # @param request [::Google::Cloud::AutoML::V1::UpdateModelRequest, ::Hash]
1136
1136
  # A request object representing the call parameters. Required. To specify no
1137
1137
  # parameters, or to keep all the default parameter values, pass an empty Hash.
1138
- # @param options [Gapic::CallOptions, Hash]
1138
+ # @param options [::Gapic::CallOptions, ::Hash]
1139
1139
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1140
1140
  #
1141
1141
  # @overload update_model(model: nil, update_mask: nil)
@@ -1143,32 +1143,32 @@ module Google
1143
1143
  # least one keyword argument is required. To specify no parameters, or to keep all
1144
1144
  # the default parameter values, pass an empty Hash as a request object (see above).
1145
1145
  #
1146
- # @param model [Google::Cloud::AutoML::V1::Model, Hash]
1146
+ # @param model [::Google::Cloud::AutoML::V1::Model, ::Hash]
1147
1147
  # Required. The model which replaces the resource on the server.
1148
- # @param update_mask [Google::Protobuf::FieldMask, Hash]
1148
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
1149
1149
  # Required. The update mask applies to the resource.
1150
1150
  #
1151
1151
  # @yield [response, operation] Access the result along with the RPC operation
1152
- # @yieldparam response [Google::Cloud::AutoML::V1::Model]
1153
- # @yieldparam operation [GRPC::ActiveCall::Operation]
1152
+ # @yieldparam response [::Google::Cloud::AutoML::V1::Model]
1153
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1154
1154
  #
1155
- # @return [Google::Cloud::AutoML::V1::Model]
1155
+ # @return [::Google::Cloud::AutoML::V1::Model]
1156
1156
  #
1157
- # @raise [Google::Cloud::Error] if the RPC is aborted.
1157
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1158
1158
  #
1159
1159
  def update_model request, options = nil
1160
- raise ArgumentError, "request must be provided" if request.nil?
1160
+ raise ::ArgumentError, "request must be provided" if request.nil?
1161
1161
 
1162
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::AutoML::V1::UpdateModelRequest
1162
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AutoML::V1::UpdateModelRequest
1163
1163
 
1164
1164
  # Converts hash and nil to an options object
1165
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1165
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1166
1166
 
1167
1167
  # Customize the options with defaults
1168
1168
  metadata = @config.rpcs.update_model.metadata.to_h
1169
1169
 
1170
1170
  # Set x-goog-api-client and x-goog-user-project headers
1171
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
1171
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1172
1172
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1173
1173
  gapic_version: ::Google::Cloud::Automl::V1::VERSION
1174
1174
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -1189,8 +1189,8 @@ module Google
1189
1189
  yield response, operation if block_given?
1190
1190
  return response
1191
1191
  end
1192
- rescue GRPC::BadStatus => e
1193
- raise Google::Cloud::Error.from_error(e)
1192
+ rescue ::GRPC::BadStatus => e
1193
+ raise ::Google::Cloud::Error.from_error(e)
1194
1194
  end
1195
1195
 
1196
1196
  ##
@@ -1205,16 +1205,16 @@ module Google
1205
1205
  # deployment automatically.
1206
1206
  #
1207
1207
  # Returns an empty response in the
1208
- # {Google::Longrunning::Operation#response response} field when it completes.
1208
+ # {::Google::Longrunning::Operation#response response} field when it completes.
1209
1209
  #
1210
1210
  # @overload deploy_model(request, options = nil)
1211
1211
  # Pass arguments to `deploy_model` via a request object, either of type
1212
- # {Google::Cloud::AutoML::V1::DeployModelRequest} or an equivalent Hash.
1212
+ # {::Google::Cloud::AutoML::V1::DeployModelRequest} or an equivalent Hash.
1213
1213
  #
1214
- # @param request [Google::Cloud::AutoML::V1::DeployModelRequest, Hash]
1214
+ # @param request [::Google::Cloud::AutoML::V1::DeployModelRequest, ::Hash]
1215
1215
  # A request object representing the call parameters. Required. To specify no
1216
1216
  # parameters, or to keep all the default parameter values, pass an empty Hash.
1217
- # @param options [Gapic::CallOptions, Hash]
1217
+ # @param options [::Gapic::CallOptions, ::Hash]
1218
1218
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1219
1219
  #
1220
1220
  # @overload deploy_model(image_object_detection_model_deployment_metadata: nil, image_classification_model_deployment_metadata: nil, name: nil)
@@ -1222,34 +1222,34 @@ module Google
1222
1222
  # least one keyword argument is required. To specify no parameters, or to keep all
1223
1223
  # the default parameter values, pass an empty Hash as a request object (see above).
1224
1224
  #
1225
- # @param image_object_detection_model_deployment_metadata [Google::Cloud::AutoML::V1::ImageObjectDetectionModelDeploymentMetadata, Hash]
1225
+ # @param image_object_detection_model_deployment_metadata [::Google::Cloud::AutoML::V1::ImageObjectDetectionModelDeploymentMetadata, ::Hash]
1226
1226
  # Model deployment metadata specific to Image Object Detection.
1227
- # @param image_classification_model_deployment_metadata [Google::Cloud::AutoML::V1::ImageClassificationModelDeploymentMetadata, Hash]
1227
+ # @param image_classification_model_deployment_metadata [::Google::Cloud::AutoML::V1::ImageClassificationModelDeploymentMetadata, ::Hash]
1228
1228
  # Model deployment metadata specific to Image Classification.
1229
- # @param name [String]
1229
+ # @param name [::String]
1230
1230
  # Required. Resource name of the model to deploy.
1231
1231
  #
1232
1232
  # @yield [response, operation] Access the result along with the RPC operation
1233
- # @yieldparam response [Gapic::Operation]
1234
- # @yieldparam operation [GRPC::ActiveCall::Operation]
1233
+ # @yieldparam response [::Gapic::Operation]
1234
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1235
1235
  #
1236
- # @return [Gapic::Operation]
1236
+ # @return [::Gapic::Operation]
1237
1237
  #
1238
- # @raise [Google::Cloud::Error] if the RPC is aborted.
1238
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1239
1239
  #
1240
1240
  def deploy_model request, options = nil
1241
- raise ArgumentError, "request must be provided" if request.nil?
1241
+ raise ::ArgumentError, "request must be provided" if request.nil?
1242
1242
 
1243
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::AutoML::V1::DeployModelRequest
1243
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AutoML::V1::DeployModelRequest
1244
1244
 
1245
1245
  # Converts hash and nil to an options object
1246
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1246
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1247
1247
 
1248
1248
  # Customize the options with defaults
1249
1249
  metadata = @config.rpcs.deploy_model.metadata.to_h
1250
1250
 
1251
1251
  # Set x-goog-api-client and x-goog-user-project headers
1252
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
1252
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1253
1253
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1254
1254
  gapic_version: ::Google::Cloud::Automl::V1::VERSION
1255
1255
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -1267,12 +1267,12 @@ module Google
1267
1267
  retry_policy: @config.retry_policy
1268
1268
 
1269
1269
  @auto_ml_stub.call_rpc :deploy_model, request, options: options do |response, operation|
1270
- response = Gapic::Operation.new response, @operations_client, options: options
1270
+ response = ::Gapic::Operation.new response, @operations_client, options: options
1271
1271
  yield response, operation if block_given?
1272
1272
  return response
1273
1273
  end
1274
- rescue GRPC::BadStatus => e
1275
- raise Google::Cloud::Error.from_error(e)
1274
+ rescue ::GRPC::BadStatus => e
1275
+ raise ::Google::Cloud::Error.from_error(e)
1276
1276
  end
1277
1277
 
1278
1278
  ##
@@ -1282,16 +1282,16 @@ module Google
1282
1282
  # all other domains manage deployment automatically.
1283
1283
  #
1284
1284
  # Returns an empty response in the
1285
- # {Google::Longrunning::Operation#response response} field when it completes.
1285
+ # {::Google::Longrunning::Operation#response response} field when it completes.
1286
1286
  #
1287
1287
  # @overload undeploy_model(request, options = nil)
1288
1288
  # Pass arguments to `undeploy_model` via a request object, either of type
1289
- # {Google::Cloud::AutoML::V1::UndeployModelRequest} or an equivalent Hash.
1289
+ # {::Google::Cloud::AutoML::V1::UndeployModelRequest} or an equivalent Hash.
1290
1290
  #
1291
- # @param request [Google::Cloud::AutoML::V1::UndeployModelRequest, Hash]
1291
+ # @param request [::Google::Cloud::AutoML::V1::UndeployModelRequest, ::Hash]
1292
1292
  # A request object representing the call parameters. Required. To specify no
1293
1293
  # parameters, or to keep all the default parameter values, pass an empty Hash.
1294
- # @param options [Gapic::CallOptions, Hash]
1294
+ # @param options [::Gapic::CallOptions, ::Hash]
1295
1295
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1296
1296
  #
1297
1297
  # @overload undeploy_model(name: nil)
@@ -1299,30 +1299,30 @@ module Google
1299
1299
  # least one keyword argument is required. To specify no parameters, or to keep all
1300
1300
  # the default parameter values, pass an empty Hash as a request object (see above).
1301
1301
  #
1302
- # @param name [String]
1302
+ # @param name [::String]
1303
1303
  # Required. Resource name of the model to undeploy.
1304
1304
  #
1305
1305
  # @yield [response, operation] Access the result along with the RPC operation
1306
- # @yieldparam response [Gapic::Operation]
1307
- # @yieldparam operation [GRPC::ActiveCall::Operation]
1306
+ # @yieldparam response [::Gapic::Operation]
1307
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1308
1308
  #
1309
- # @return [Gapic::Operation]
1309
+ # @return [::Gapic::Operation]
1310
1310
  #
1311
- # @raise [Google::Cloud::Error] if the RPC is aborted.
1311
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1312
1312
  #
1313
1313
  def undeploy_model request, options = nil
1314
- raise ArgumentError, "request must be provided" if request.nil?
1314
+ raise ::ArgumentError, "request must be provided" if request.nil?
1315
1315
 
1316
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::AutoML::V1::UndeployModelRequest
1316
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AutoML::V1::UndeployModelRequest
1317
1317
 
1318
1318
  # Converts hash and nil to an options object
1319
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1319
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1320
1320
 
1321
1321
  # Customize the options with defaults
1322
1322
  metadata = @config.rpcs.undeploy_model.metadata.to_h
1323
1323
 
1324
1324
  # Set x-goog-api-client and x-goog-user-project headers
1325
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
1325
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1326
1326
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1327
1327
  gapic_version: ::Google::Cloud::Automl::V1::VERSION
1328
1328
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -1340,31 +1340,31 @@ module Google
1340
1340
  retry_policy: @config.retry_policy
1341
1341
 
1342
1342
  @auto_ml_stub.call_rpc :undeploy_model, request, options: options do |response, operation|
1343
- response = Gapic::Operation.new response, @operations_client, options: options
1343
+ response = ::Gapic::Operation.new response, @operations_client, options: options
1344
1344
  yield response, operation if block_given?
1345
1345
  return response
1346
1346
  end
1347
- rescue GRPC::BadStatus => e
1348
- raise Google::Cloud::Error.from_error(e)
1347
+ rescue ::GRPC::BadStatus => e
1348
+ raise ::Google::Cloud::Error.from_error(e)
1349
1349
  end
1350
1350
 
1351
1351
  ##
1352
1352
  # Exports a trained, "export-able", model to a user specified Google Cloud
1353
1353
  # Storage location. A model is considered export-able if and only if it has
1354
1354
  # an export format defined for it in
1355
- # {Google::Cloud::AutoML::V1::ModelExportOutputConfig ModelExportOutputConfig}.
1355
+ # {::Google::Cloud::AutoML::V1::ModelExportOutputConfig ModelExportOutputConfig}.
1356
1356
  #
1357
1357
  # Returns an empty response in the
1358
- # {Google::Longrunning::Operation#response response} field when it completes.
1358
+ # {::Google::Longrunning::Operation#response response} field when it completes.
1359
1359
  #
1360
1360
  # @overload export_model(request, options = nil)
1361
1361
  # Pass arguments to `export_model` via a request object, either of type
1362
- # {Google::Cloud::AutoML::V1::ExportModelRequest} or an equivalent Hash.
1362
+ # {::Google::Cloud::AutoML::V1::ExportModelRequest} or an equivalent Hash.
1363
1363
  #
1364
- # @param request [Google::Cloud::AutoML::V1::ExportModelRequest, Hash]
1364
+ # @param request [::Google::Cloud::AutoML::V1::ExportModelRequest, ::Hash]
1365
1365
  # A request object representing the call parameters. Required. To specify no
1366
1366
  # parameters, or to keep all the default parameter values, pass an empty Hash.
1367
- # @param options [Gapic::CallOptions, Hash]
1367
+ # @param options [::Gapic::CallOptions, ::Hash]
1368
1368
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1369
1369
  #
1370
1370
  # @overload export_model(name: nil, output_config: nil)
@@ -1372,32 +1372,32 @@ module Google
1372
1372
  # least one keyword argument is required. To specify no parameters, or to keep all
1373
1373
  # the default parameter values, pass an empty Hash as a request object (see above).
1374
1374
  #
1375
- # @param name [String]
1375
+ # @param name [::String]
1376
1376
  # Required. The resource name of the model to export.
1377
- # @param output_config [Google::Cloud::AutoML::V1::ModelExportOutputConfig, Hash]
1377
+ # @param output_config [::Google::Cloud::AutoML::V1::ModelExportOutputConfig, ::Hash]
1378
1378
  # Required. The desired output location and configuration.
1379
1379
  #
1380
1380
  # @yield [response, operation] Access the result along with the RPC operation
1381
- # @yieldparam response [Gapic::Operation]
1382
- # @yieldparam operation [GRPC::ActiveCall::Operation]
1381
+ # @yieldparam response [::Gapic::Operation]
1382
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1383
1383
  #
1384
- # @return [Gapic::Operation]
1384
+ # @return [::Gapic::Operation]
1385
1385
  #
1386
- # @raise [Google::Cloud::Error] if the RPC is aborted.
1386
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1387
1387
  #
1388
1388
  def export_model request, options = nil
1389
- raise ArgumentError, "request must be provided" if request.nil?
1389
+ raise ::ArgumentError, "request must be provided" if request.nil?
1390
1390
 
1391
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::AutoML::V1::ExportModelRequest
1391
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AutoML::V1::ExportModelRequest
1392
1392
 
1393
1393
  # Converts hash and nil to an options object
1394
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1394
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1395
1395
 
1396
1396
  # Customize the options with defaults
1397
1397
  metadata = @config.rpcs.export_model.metadata.to_h
1398
1398
 
1399
1399
  # Set x-goog-api-client and x-goog-user-project headers
1400
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
1400
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1401
1401
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1402
1402
  gapic_version: ::Google::Cloud::Automl::V1::VERSION
1403
1403
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -1415,12 +1415,12 @@ module Google
1415
1415
  retry_policy: @config.retry_policy
1416
1416
 
1417
1417
  @auto_ml_stub.call_rpc :export_model, request, options: options do |response, operation|
1418
- response = Gapic::Operation.new response, @operations_client, options: options
1418
+ response = ::Gapic::Operation.new response, @operations_client, options: options
1419
1419
  yield response, operation if block_given?
1420
1420
  return response
1421
1421
  end
1422
- rescue GRPC::BadStatus => e
1423
- raise Google::Cloud::Error.from_error(e)
1422
+ rescue ::GRPC::BadStatus => e
1423
+ raise ::Google::Cloud::Error.from_error(e)
1424
1424
  end
1425
1425
 
1426
1426
  ##
@@ -1428,12 +1428,12 @@ module Google
1428
1428
  #
1429
1429
  # @overload get_model_evaluation(request, options = nil)
1430
1430
  # Pass arguments to `get_model_evaluation` via a request object, either of type
1431
- # {Google::Cloud::AutoML::V1::GetModelEvaluationRequest} or an equivalent Hash.
1431
+ # {::Google::Cloud::AutoML::V1::GetModelEvaluationRequest} or an equivalent Hash.
1432
1432
  #
1433
- # @param request [Google::Cloud::AutoML::V1::GetModelEvaluationRequest, Hash]
1433
+ # @param request [::Google::Cloud::AutoML::V1::GetModelEvaluationRequest, ::Hash]
1434
1434
  # A request object representing the call parameters. Required. To specify no
1435
1435
  # parameters, or to keep all the default parameter values, pass an empty Hash.
1436
- # @param options [Gapic::CallOptions, Hash]
1436
+ # @param options [::Gapic::CallOptions, ::Hash]
1437
1437
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1438
1438
  #
1439
1439
  # @overload get_model_evaluation(name: nil)
@@ -1441,30 +1441,30 @@ module Google
1441
1441
  # least one keyword argument is required. To specify no parameters, or to keep all
1442
1442
  # the default parameter values, pass an empty Hash as a request object (see above).
1443
1443
  #
1444
- # @param name [String]
1444
+ # @param name [::String]
1445
1445
  # Required. Resource name for the model evaluation.
1446
1446
  #
1447
1447
  # @yield [response, operation] Access the result along with the RPC operation
1448
- # @yieldparam response [Google::Cloud::AutoML::V1::ModelEvaluation]
1449
- # @yieldparam operation [GRPC::ActiveCall::Operation]
1448
+ # @yieldparam response [::Google::Cloud::AutoML::V1::ModelEvaluation]
1449
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1450
1450
  #
1451
- # @return [Google::Cloud::AutoML::V1::ModelEvaluation]
1451
+ # @return [::Google::Cloud::AutoML::V1::ModelEvaluation]
1452
1452
  #
1453
- # @raise [Google::Cloud::Error] if the RPC is aborted.
1453
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1454
1454
  #
1455
1455
  def get_model_evaluation request, options = nil
1456
- raise ArgumentError, "request must be provided" if request.nil?
1456
+ raise ::ArgumentError, "request must be provided" if request.nil?
1457
1457
 
1458
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::AutoML::V1::GetModelEvaluationRequest
1458
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AutoML::V1::GetModelEvaluationRequest
1459
1459
 
1460
1460
  # Converts hash and nil to an options object
1461
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1461
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1462
1462
 
1463
1463
  # Customize the options with defaults
1464
1464
  metadata = @config.rpcs.get_model_evaluation.metadata.to_h
1465
1465
 
1466
1466
  # Set x-goog-api-client and x-goog-user-project headers
1467
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
1467
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1468
1468
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1469
1469
  gapic_version: ::Google::Cloud::Automl::V1::VERSION
1470
1470
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -1485,8 +1485,8 @@ module Google
1485
1485
  yield response, operation if block_given?
1486
1486
  return response
1487
1487
  end
1488
- rescue GRPC::BadStatus => e
1489
- raise Google::Cloud::Error.from_error(e)
1488
+ rescue ::GRPC::BadStatus => e
1489
+ raise ::Google::Cloud::Error.from_error(e)
1490
1490
  end
1491
1491
 
1492
1492
  ##
@@ -1494,12 +1494,12 @@ module Google
1494
1494
  #
1495
1495
  # @overload list_model_evaluations(request, options = nil)
1496
1496
  # Pass arguments to `list_model_evaluations` via a request object, either of type
1497
- # {Google::Cloud::AutoML::V1::ListModelEvaluationsRequest} or an equivalent Hash.
1497
+ # {::Google::Cloud::AutoML::V1::ListModelEvaluationsRequest} or an equivalent Hash.
1498
1498
  #
1499
- # @param request [Google::Cloud::AutoML::V1::ListModelEvaluationsRequest, Hash]
1499
+ # @param request [::Google::Cloud::AutoML::V1::ListModelEvaluationsRequest, ::Hash]
1500
1500
  # A request object representing the call parameters. Required. To specify no
1501
1501
  # parameters, or to keep all the default parameter values, pass an empty Hash.
1502
- # @param options [Gapic::CallOptions, Hash]
1502
+ # @param options [::Gapic::CallOptions, ::Hash]
1503
1503
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1504
1504
  #
1505
1505
  # @overload list_model_evaluations(parent: nil, filter: nil, page_size: nil, page_token: nil)
@@ -1507,11 +1507,11 @@ module Google
1507
1507
  # least one keyword argument is required. To specify no parameters, or to keep all
1508
1508
  # the default parameter values, pass an empty Hash as a request object (see above).
1509
1509
  #
1510
- # @param parent [String]
1510
+ # @param parent [::String]
1511
1511
  # Required. Resource name of the model to list the model evaluations for.
1512
1512
  # If modelId is set as "-", this will list model evaluations from across all
1513
1513
  # models of the parent location.
1514
- # @param filter [String]
1514
+ # @param filter [::String]
1515
1515
  # Required. An expression for filtering the results of the request.
1516
1516
  #
1517
1517
  # * `annotation_spec_id` - for =, != or existence. See example below for
@@ -1523,35 +1523,35 @@ module Google
1523
1523
  # annotation spec with ID different than 4.
1524
1524
  # * `NOT annotation_spec_id:*` --> The model evaluation was done for
1525
1525
  # aggregate of all annotation specs.
1526
- # @param page_size [Integer]
1526
+ # @param page_size [::Integer]
1527
1527
  # Requested page size.
1528
- # @param page_token [String]
1528
+ # @param page_token [::String]
1529
1529
  # A token identifying a page of results for the server to return.
1530
1530
  # Typically obtained via
1531
- # {Google::Cloud::AutoML::V1::ListModelEvaluationsResponse#next_page_token ListModelEvaluationsResponse.next_page_token} of the previous
1532
- # {Google::Cloud::AutoML::V1::AutoML::Client#list_model_evaluations AutoMl.ListModelEvaluations} call.
1531
+ # {::Google::Cloud::AutoML::V1::ListModelEvaluationsResponse#next_page_token ListModelEvaluationsResponse.next_page_token} of the previous
1532
+ # {::Google::Cloud::AutoML::V1::AutoML::Client#list_model_evaluations AutoMl.ListModelEvaluations} call.
1533
1533
  #
1534
1534
  # @yield [response, operation] Access the result along with the RPC operation
1535
- # @yieldparam response [Gapic::PagedEnumerable<Google::Cloud::AutoML::V1::ModelEvaluation>]
1536
- # @yieldparam operation [GRPC::ActiveCall::Operation]
1535
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::AutoML::V1::ModelEvaluation>]
1536
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1537
1537
  #
1538
- # @return [Gapic::PagedEnumerable<Google::Cloud::AutoML::V1::ModelEvaluation>]
1538
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::AutoML::V1::ModelEvaluation>]
1539
1539
  #
1540
- # @raise [Google::Cloud::Error] if the RPC is aborted.
1540
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1541
1541
  #
1542
1542
  def list_model_evaluations request, options = nil
1543
- raise ArgumentError, "request must be provided" if request.nil?
1543
+ raise ::ArgumentError, "request must be provided" if request.nil?
1544
1544
 
1545
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::AutoML::V1::ListModelEvaluationsRequest
1545
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AutoML::V1::ListModelEvaluationsRequest
1546
1546
 
1547
1547
  # Converts hash and nil to an options object
1548
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1548
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1549
1549
 
1550
1550
  # Customize the options with defaults
1551
1551
  metadata = @config.rpcs.list_model_evaluations.metadata.to_h
1552
1552
 
1553
1553
  # Set x-goog-api-client and x-goog-user-project headers
1554
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
1554
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1555
1555
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1556
1556
  gapic_version: ::Google::Cloud::Automl::V1::VERSION
1557
1557
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -1569,12 +1569,12 @@ module Google
1569
1569
  retry_policy: @config.retry_policy
1570
1570
 
1571
1571
  @auto_ml_stub.call_rpc :list_model_evaluations, request, options: options do |response, operation|
1572
- response = Gapic::PagedEnumerable.new @auto_ml_stub, :list_model_evaluations, request, response, operation, options
1572
+ response = ::Gapic::PagedEnumerable.new @auto_ml_stub, :list_model_evaluations, request, response, operation, options
1573
1573
  yield response, operation if block_given?
1574
1574
  return response
1575
1575
  end
1576
- rescue GRPC::BadStatus => e
1577
- raise Google::Cloud::Error.from_error(e)
1576
+ rescue ::GRPC::BadStatus => e
1577
+ raise ::Google::Cloud::Error.from_error(e)
1578
1578
  end
1579
1579
 
1580
1580
  ##
@@ -1584,7 +1584,7 @@ module Google
1584
1584
  # providing control over timeouts, retry behavior, logging, transport
1585
1585
  # parameters, and other low-level controls. Certain parameters can also be
1586
1586
  # applied individually to specific RPCs. See
1587
- # {Google::Cloud::AutoML::V1::AutoML::Client::Configuration::Rpcs}
1587
+ # {::Google::Cloud::AutoML::V1::AutoML::Client::Configuration::Rpcs}
1588
1588
  # for a list of RPCs that can be configured independently.
1589
1589
  #
1590
1590
  # Configuration can be applied globally to all clients, or to a single client
@@ -1595,22 +1595,22 @@ module Google
1595
1595
  # To modify the global config, setting the timeout for create_dataset
1596
1596
  # to 20 seconds, and all remaining timeouts to 10 seconds:
1597
1597
  #
1598
- # Google::Cloud::AutoML::V1::AutoML::Client.configure do |config|
1599
- # config.timeout = 10_000
1600
- # config.rpcs.create_dataset.timeout = 20_000
1598
+ # ::Google::Cloud::AutoML::V1::AutoML::Client.configure do |config|
1599
+ # config.timeout = 10.0
1600
+ # config.rpcs.create_dataset.timeout = 20.0
1601
1601
  # end
1602
1602
  #
1603
1603
  # To apply the above configuration only to a new client:
1604
1604
  #
1605
- # client = Google::Cloud::AutoML::V1::AutoML::Client.new do |config|
1606
- # config.timeout = 10_000
1607
- # config.rpcs.create_dataset.timeout = 20_000
1605
+ # client = ::Google::Cloud::AutoML::V1::AutoML::Client.new do |config|
1606
+ # config.timeout = 10.0
1607
+ # config.rpcs.create_dataset.timeout = 20.0
1608
1608
  # end
1609
1609
  #
1610
1610
  # @!attribute [rw] endpoint
1611
1611
  # The hostname or hostname:port of the service endpoint.
1612
1612
  # Defaults to `"automl.googleapis.com"`.
1613
- # @return [String]
1613
+ # @return [::String]
1614
1614
  # @!attribute [rw] credentials
1615
1615
  # Credentials to send with calls. You may provide any of the following types:
1616
1616
  # * (`String`) The path to a service account key file in JSON format
@@ -1622,29 +1622,29 @@ module Google
1622
1622
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
1623
1623
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
1624
1624
  # * (`nil`) indicating no credentials
1625
- # @return [Object]
1625
+ # @return [::Object]
1626
1626
  # @!attribute [rw] scope
1627
1627
  # The OAuth scopes
1628
- # @return [Array<String>]
1628
+ # @return [::Array<::String>]
1629
1629
  # @!attribute [rw] lib_name
1630
1630
  # The library name as recorded in instrumentation and logging
1631
- # @return [String]
1631
+ # @return [::String]
1632
1632
  # @!attribute [rw] lib_version
1633
1633
  # The library version as recorded in instrumentation and logging
1634
- # @return [String]
1634
+ # @return [::String]
1635
1635
  # @!attribute [rw] channel_args
1636
1636
  # Extra parameters passed to the gRPC channel. Note: this is ignored if a
1637
1637
  # `GRPC::Core::Channel` object is provided as the credential.
1638
- # @return [Hash]
1638
+ # @return [::Hash]
1639
1639
  # @!attribute [rw] interceptors
1640
1640
  # An array of interceptors that are run before calls are executed.
1641
- # @return [Array<GRPC::ClientInterceptor>]
1641
+ # @return [::Array<::GRPC::ClientInterceptor>]
1642
1642
  # @!attribute [rw] timeout
1643
- # The call timeout in milliseconds.
1644
- # @return [Numeric]
1643
+ # The call timeout in seconds.
1644
+ # @return [::Numeric]
1645
1645
  # @!attribute [rw] metadata
1646
1646
  # Additional gRPC headers to be sent with the call.
1647
- # @return [Hash{Symbol=>String}]
1647
+ # @return [::Hash{::Symbol=>::String}]
1648
1648
  # @!attribute [rw] retry_policy
1649
1649
  # The retry policy. The value is a hash with the following keys:
1650
1650
  # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
@@ -1652,10 +1652,10 @@ module Google
1652
1652
  # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
1653
1653
  # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
1654
1654
  # trigger a retry.
1655
- # @return [Hash]
1655
+ # @return [::Hash]
1656
1656
  #
1657
1657
  class Configuration
1658
- extend Gapic::Config
1658
+ extend ::Gapic::Config
1659
1659
 
1660
1660
  config_attr :endpoint, "automl.googleapis.com", String
1661
1661
  config_attr :credentials, nil do |value|
@@ -1663,14 +1663,14 @@ module Google
1663
1663
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
1664
1664
  allowed.any? { |klass| klass === value }
1665
1665
  end
1666
- config_attr :scope, nil, String, Array, nil
1667
- config_attr :lib_name, nil, String, nil
1668
- config_attr :lib_version, nil, String, nil
1669
- config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, Hash, nil)
1670
- config_attr :interceptors, nil, Array, nil
1671
- config_attr :timeout, nil, Numeric, nil
1672
- config_attr :metadata, nil, Hash, nil
1673
- config_attr :retry_policy, nil, Hash, Proc, nil
1666
+ config_attr :scope, nil, ::String, ::Array, nil
1667
+ config_attr :lib_name, nil, ::String, nil
1668
+ config_attr :lib_version, nil, ::String, nil
1669
+ config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
1670
+ config_attr :interceptors, nil, ::Array, nil
1671
+ config_attr :timeout, nil, ::Numeric, nil
1672
+ config_attr :metadata, nil, ::Hash, nil
1673
+ config_attr :retry_policy, nil, ::Hash, Proc, nil
1674
1674
 
1675
1675
  # @private
1676
1676
  def initialize parent_config = nil
@@ -1711,133 +1711,133 @@ module Google
1711
1711
  class Rpcs
1712
1712
  ##
1713
1713
  # RPC-specific configuration for `create_dataset`
1714
- # @return [Gapic::Config::Method]
1714
+ # @return [::Gapic::Config::Method]
1715
1715
  #
1716
1716
  attr_reader :create_dataset
1717
1717
  ##
1718
1718
  # RPC-specific configuration for `get_dataset`
1719
- # @return [Gapic::Config::Method]
1719
+ # @return [::Gapic::Config::Method]
1720
1720
  #
1721
1721
  attr_reader :get_dataset
1722
1722
  ##
1723
1723
  # RPC-specific configuration for `list_datasets`
1724
- # @return [Gapic::Config::Method]
1724
+ # @return [::Gapic::Config::Method]
1725
1725
  #
1726
1726
  attr_reader :list_datasets
1727
1727
  ##
1728
1728
  # RPC-specific configuration for `update_dataset`
1729
- # @return [Gapic::Config::Method]
1729
+ # @return [::Gapic::Config::Method]
1730
1730
  #
1731
1731
  attr_reader :update_dataset
1732
1732
  ##
1733
1733
  # RPC-specific configuration for `delete_dataset`
1734
- # @return [Gapic::Config::Method]
1734
+ # @return [::Gapic::Config::Method]
1735
1735
  #
1736
1736
  attr_reader :delete_dataset
1737
1737
  ##
1738
1738
  # RPC-specific configuration for `import_data`
1739
- # @return [Gapic::Config::Method]
1739
+ # @return [::Gapic::Config::Method]
1740
1740
  #
1741
1741
  attr_reader :import_data
1742
1742
  ##
1743
1743
  # RPC-specific configuration for `export_data`
1744
- # @return [Gapic::Config::Method]
1744
+ # @return [::Gapic::Config::Method]
1745
1745
  #
1746
1746
  attr_reader :export_data
1747
1747
  ##
1748
1748
  # RPC-specific configuration for `get_annotation_spec`
1749
- # @return [Gapic::Config::Method]
1749
+ # @return [::Gapic::Config::Method]
1750
1750
  #
1751
1751
  attr_reader :get_annotation_spec
1752
1752
  ##
1753
1753
  # RPC-specific configuration for `create_model`
1754
- # @return [Gapic::Config::Method]
1754
+ # @return [::Gapic::Config::Method]
1755
1755
  #
1756
1756
  attr_reader :create_model
1757
1757
  ##
1758
1758
  # RPC-specific configuration for `get_model`
1759
- # @return [Gapic::Config::Method]
1759
+ # @return [::Gapic::Config::Method]
1760
1760
  #
1761
1761
  attr_reader :get_model
1762
1762
  ##
1763
1763
  # RPC-specific configuration for `list_models`
1764
- # @return [Gapic::Config::Method]
1764
+ # @return [::Gapic::Config::Method]
1765
1765
  #
1766
1766
  attr_reader :list_models
1767
1767
  ##
1768
1768
  # RPC-specific configuration for `delete_model`
1769
- # @return [Gapic::Config::Method]
1769
+ # @return [::Gapic::Config::Method]
1770
1770
  #
1771
1771
  attr_reader :delete_model
1772
1772
  ##
1773
1773
  # RPC-specific configuration for `update_model`
1774
- # @return [Gapic::Config::Method]
1774
+ # @return [::Gapic::Config::Method]
1775
1775
  #
1776
1776
  attr_reader :update_model
1777
1777
  ##
1778
1778
  # RPC-specific configuration for `deploy_model`
1779
- # @return [Gapic::Config::Method]
1779
+ # @return [::Gapic::Config::Method]
1780
1780
  #
1781
1781
  attr_reader :deploy_model
1782
1782
  ##
1783
1783
  # RPC-specific configuration for `undeploy_model`
1784
- # @return [Gapic::Config::Method]
1784
+ # @return [::Gapic::Config::Method]
1785
1785
  #
1786
1786
  attr_reader :undeploy_model
1787
1787
  ##
1788
1788
  # RPC-specific configuration for `export_model`
1789
- # @return [Gapic::Config::Method]
1789
+ # @return [::Gapic::Config::Method]
1790
1790
  #
1791
1791
  attr_reader :export_model
1792
1792
  ##
1793
1793
  # RPC-specific configuration for `get_model_evaluation`
1794
- # @return [Gapic::Config::Method]
1794
+ # @return [::Gapic::Config::Method]
1795
1795
  #
1796
1796
  attr_reader :get_model_evaluation
1797
1797
  ##
1798
1798
  # RPC-specific configuration for `list_model_evaluations`
1799
- # @return [Gapic::Config::Method]
1799
+ # @return [::Gapic::Config::Method]
1800
1800
  #
1801
1801
  attr_reader :list_model_evaluations
1802
1802
 
1803
1803
  # @private
1804
1804
  def initialize parent_rpcs = nil
1805
1805
  create_dataset_config = parent_rpcs&.create_dataset if parent_rpcs&.respond_to? :create_dataset
1806
- @create_dataset = Gapic::Config::Method.new create_dataset_config
1806
+ @create_dataset = ::Gapic::Config::Method.new create_dataset_config
1807
1807
  get_dataset_config = parent_rpcs&.get_dataset if parent_rpcs&.respond_to? :get_dataset
1808
- @get_dataset = Gapic::Config::Method.new get_dataset_config
1808
+ @get_dataset = ::Gapic::Config::Method.new get_dataset_config
1809
1809
  list_datasets_config = parent_rpcs&.list_datasets if parent_rpcs&.respond_to? :list_datasets
1810
- @list_datasets = Gapic::Config::Method.new list_datasets_config
1810
+ @list_datasets = ::Gapic::Config::Method.new list_datasets_config
1811
1811
  update_dataset_config = parent_rpcs&.update_dataset if parent_rpcs&.respond_to? :update_dataset
1812
- @update_dataset = Gapic::Config::Method.new update_dataset_config
1812
+ @update_dataset = ::Gapic::Config::Method.new update_dataset_config
1813
1813
  delete_dataset_config = parent_rpcs&.delete_dataset if parent_rpcs&.respond_to? :delete_dataset
1814
- @delete_dataset = Gapic::Config::Method.new delete_dataset_config
1814
+ @delete_dataset = ::Gapic::Config::Method.new delete_dataset_config
1815
1815
  import_data_config = parent_rpcs&.import_data if parent_rpcs&.respond_to? :import_data
1816
- @import_data = Gapic::Config::Method.new import_data_config
1816
+ @import_data = ::Gapic::Config::Method.new import_data_config
1817
1817
  export_data_config = parent_rpcs&.export_data if parent_rpcs&.respond_to? :export_data
1818
- @export_data = Gapic::Config::Method.new export_data_config
1818
+ @export_data = ::Gapic::Config::Method.new export_data_config
1819
1819
  get_annotation_spec_config = parent_rpcs&.get_annotation_spec if parent_rpcs&.respond_to? :get_annotation_spec
1820
- @get_annotation_spec = Gapic::Config::Method.new get_annotation_spec_config
1820
+ @get_annotation_spec = ::Gapic::Config::Method.new get_annotation_spec_config
1821
1821
  create_model_config = parent_rpcs&.create_model if parent_rpcs&.respond_to? :create_model
1822
- @create_model = Gapic::Config::Method.new create_model_config
1822
+ @create_model = ::Gapic::Config::Method.new create_model_config
1823
1823
  get_model_config = parent_rpcs&.get_model if parent_rpcs&.respond_to? :get_model
1824
- @get_model = Gapic::Config::Method.new get_model_config
1824
+ @get_model = ::Gapic::Config::Method.new get_model_config
1825
1825
  list_models_config = parent_rpcs&.list_models if parent_rpcs&.respond_to? :list_models
1826
- @list_models = Gapic::Config::Method.new list_models_config
1826
+ @list_models = ::Gapic::Config::Method.new list_models_config
1827
1827
  delete_model_config = parent_rpcs&.delete_model if parent_rpcs&.respond_to? :delete_model
1828
- @delete_model = Gapic::Config::Method.new delete_model_config
1828
+ @delete_model = ::Gapic::Config::Method.new delete_model_config
1829
1829
  update_model_config = parent_rpcs&.update_model if parent_rpcs&.respond_to? :update_model
1830
- @update_model = Gapic::Config::Method.new update_model_config
1830
+ @update_model = ::Gapic::Config::Method.new update_model_config
1831
1831
  deploy_model_config = parent_rpcs&.deploy_model if parent_rpcs&.respond_to? :deploy_model
1832
- @deploy_model = Gapic::Config::Method.new deploy_model_config
1832
+ @deploy_model = ::Gapic::Config::Method.new deploy_model_config
1833
1833
  undeploy_model_config = parent_rpcs&.undeploy_model if parent_rpcs&.respond_to? :undeploy_model
1834
- @undeploy_model = Gapic::Config::Method.new undeploy_model_config
1834
+ @undeploy_model = ::Gapic::Config::Method.new undeploy_model_config
1835
1835
  export_model_config = parent_rpcs&.export_model if parent_rpcs&.respond_to? :export_model
1836
- @export_model = Gapic::Config::Method.new export_model_config
1836
+ @export_model = ::Gapic::Config::Method.new export_model_config
1837
1837
  get_model_evaluation_config = parent_rpcs&.get_model_evaluation if parent_rpcs&.respond_to? :get_model_evaluation
1838
- @get_model_evaluation = Gapic::Config::Method.new get_model_evaluation_config
1838
+ @get_model_evaluation = ::Gapic::Config::Method.new get_model_evaluation_config
1839
1839
  list_model_evaluations_config = parent_rpcs&.list_model_evaluations if parent_rpcs&.respond_to? :list_model_evaluations
1840
- @list_model_evaluations = Gapic::Config::Method.new list_model_evaluations_config
1840
+ @list_model_evaluations = ::Gapic::Config::Method.new list_model_evaluations_config
1841
1841
 
1842
1842
  yield self if block_given?
1843
1843
  end