google-cloud-automl-v1beta1 0.5.5 → 0.6.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (46) hide show
  1. checksums.yaml +4 -4
  2. data/AUTHENTICATION.md +1 -1
  3. data/README.md +12 -7
  4. data/lib/google/cloud/automl/v1beta1/annotation_payload_pb.rb +2 -3
  5. data/lib/google/cloud/automl/v1beta1/annotation_spec_pb.rb +2 -2
  6. data/lib/google/cloud/automl/v1beta1/automl/client.rb +56 -66
  7. data/lib/google/cloud/automl/v1beta1/automl/operations.rb +23 -14
  8. data/lib/google/cloud/automl/v1beta1/automl.rb +1 -1
  9. data/lib/google/cloud/automl/v1beta1/classification_pb.rb +2 -2
  10. data/lib/google/cloud/automl/v1beta1/column_spec_pb.rb +2 -2
  11. data/lib/google/cloud/automl/v1beta1/data_items_pb.rb +2 -4
  12. data/lib/google/cloud/automl/v1beta1/data_stats_pb.rb +0 -1
  13. data/lib/google/cloud/automl/v1beta1/data_types_pb.rb +0 -1
  14. data/lib/google/cloud/automl/v1beta1/dataset_pb.rb +2 -2
  15. data/lib/google/cloud/automl/v1beta1/detection_pb.rb +2 -2
  16. data/lib/google/cloud/automl/v1beta1/geometry_pb.rb +0 -1
  17. data/lib/google/cloud/automl/v1beta1/image_pb.rb +2 -4
  18. data/lib/google/cloud/automl/v1beta1/io_pb.rb +0 -1
  19. data/lib/google/cloud/automl/v1beta1/model_evaluation_pb.rb +2 -2
  20. data/lib/google/cloud/automl/v1beta1/model_pb.rb +2 -2
  21. data/lib/google/cloud/automl/v1beta1/operations_pb.rb +2 -3
  22. data/lib/google/cloud/automl/v1beta1/prediction_service/client.rb +4 -4
  23. data/lib/google/cloud/automl/v1beta1/prediction_service/operations.rb +23 -14
  24. data/lib/google/cloud/automl/v1beta1/prediction_service.rb +1 -1
  25. data/lib/google/cloud/automl/v1beta1/prediction_service_pb.rb +2 -1
  26. data/lib/google/cloud/automl/v1beta1/ranges_pb.rb +0 -1
  27. data/lib/google/cloud/automl/v1beta1/regression_pb.rb +0 -1
  28. data/lib/google/cloud/automl/v1beta1/service_pb.rb +2 -1
  29. data/lib/google/cloud/automl/v1beta1/table_spec_pb.rb +2 -2
  30. data/lib/google/cloud/automl/v1beta1/tables_pb.rb +2 -2
  31. data/lib/google/cloud/automl/v1beta1/temporal_pb.rb +2 -2
  32. data/lib/google/cloud/automl/v1beta1/text_extraction_pb.rb +2 -2
  33. data/lib/google/cloud/automl/v1beta1/text_pb.rb +2 -2
  34. data/lib/google/cloud/automl/v1beta1/text_segment_pb.rb +0 -1
  35. data/lib/google/cloud/automl/v1beta1/text_sentiment_pb.rb +2 -2
  36. data/lib/google/cloud/automl/v1beta1/translation_pb.rb +2 -2
  37. data/lib/google/cloud/automl/v1beta1/version.rb +1 -1
  38. data/lib/google/cloud/automl/v1beta1/video_pb.rb +2 -2
  39. data/lib/google/cloud/automl/v1beta1.rb +3 -1
  40. data/proto_docs/google/api/client.rb +318 -0
  41. data/proto_docs/google/api/launch_stage.rb +71 -0
  42. data/proto_docs/google/protobuf/any.rb +3 -3
  43. data/proto_docs/google/protobuf/empty.rb +0 -2
  44. data/proto_docs/google/protobuf/struct.rb +2 -2
  45. data/proto_docs/google/rpc/status.rb +4 -2
  46. metadata +14 -12
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a3910f8bd8e3ae6566026b1811121deeafef75f7085b27e30bd81f691571a373
4
- data.tar.gz: cad4d3e1f34f1e5455bf402ee4a1891e7eec25f51cdf506fb38fe2c7e5cd81c8
3
+ metadata.gz: 672772d033d3dd90dd322cb241d1d83bf58fff503c2a76db45d7b1b5aa764df7
4
+ data.tar.gz: 278fa9e402c0589444196ebe47acc2a9b3c07c02ca029ba1f0aa5c423a30be27
5
5
  SHA512:
6
- metadata.gz: 491b334b855e1095b7c214923cf4f8725f55b7a79fa8417858db65a45d2f41f46598e2fa574ecac9dc2502187b8b094c8ea3c3e7279b9b2e7e5784405c44f160
7
- data.tar.gz: 8ea5f2f8cda4028c61c51e98e86acc99ca1f05406a238fc97292a2dcc4b724e1a9ac34bec9236bf0a546ce2bf6d6bde2fc36c30a72ca1d20cbb01e7f4c8a25d7
6
+ metadata.gz: 24cbffdb0fe2ced7b4b0d9adc37bee9ae191d4316c277067a8564ad4af779b061d62ab1935f200a62e32e73d0774dc9c7634515c4509d4718fe53aea61e28047
7
+ data.tar.gz: 53720a53abf296a7a6a29fc3eb4ee1864a953c943042280d8165017682e096ecc7494c82552e7a6de0b8d25825f746d680c3de322abbfc9befe9c0ebfd2de674
data/AUTHENTICATION.md CHANGED
@@ -114,7 +114,7 @@ credentials are discovered.
114
114
  To configure your system for this, simply:
115
115
 
116
116
  1. [Download and install the Cloud SDK](https://cloud.google.com/sdk)
117
- 2. Authenticate using OAuth 2.0 `$ gcloud auth login`
117
+ 2. Authenticate using OAuth 2.0 `$ gcloud auth application-default login`
118
118
  3. Write code as if already authenticated.
119
119
 
120
120
  **NOTE:** This is _not_ recommended for running in production. The Cloud SDK
data/README.md CHANGED
@@ -37,7 +37,7 @@ request = ::Google::Cloud::AutoML::V1beta1::PredictRequest.new # (request fields
37
37
  response = client.predict request
38
38
  ```
39
39
 
40
- View the [Client Library Documentation](https://googleapis.dev/ruby/google-cloud-automl-v1beta1/latest)
40
+ View the [Client Library Documentation](https://cloud.google.com/ruby/docs/reference/google-cloud-automl-v1beta1/latest)
41
41
  for class and method documentation.
42
42
 
43
43
  See also the [Product Documentation](https://cloud.google.com/automl)
@@ -46,7 +46,7 @@ for general usage information.
46
46
  ## Enabling Logging
47
47
 
48
48
  To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
49
- The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/stdlib/libdoc/logger/rdoc/Logger.html) as shown below,
49
+ The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/current/stdlibs/logger/Logger.html) as shown below,
50
50
  or a [`Google::Cloud::Logging::Logger`](https://googleapis.dev/ruby/google-cloud-logging/latest)
51
51
  that will write logs to [Cloud Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
52
52
  and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
@@ -69,16 +69,21 @@ module GRPC
69
69
  end
70
70
  ```
71
71
 
72
+
73
+ ## Google Cloud Samples
74
+
75
+ To browse ready to use code samples check [Google Cloud Samples](https://cloud.google.com/docs/samples).
76
+
72
77
  ## Supported Ruby Versions
73
78
 
74
- This library is supported on Ruby 2.5+.
79
+ This library is supported on Ruby 2.6+.
75
80
 
76
81
  Google provides official support for Ruby versions that are actively supported
77
82
  by Ruby Core—that is, Ruby versions that are either in normal maintenance or
78
- in security maintenance, and not end of life. Currently, this means Ruby 2.5
79
- and later. Older versions of Ruby _may_ still work, but are unsupported and not
80
- recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details
81
- about the Ruby support schedule.
83
+ in security maintenance, and not end of life. Older versions of Ruby _may_
84
+ still work, but are unsupported and not recommended. See
85
+ https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby
86
+ support schedule.
82
87
 
83
88
  ## Which client should I use?
84
89
 
@@ -1,15 +1,14 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/automl/v1beta1/annotation_payload.proto
3
3
 
4
+ require 'google/protobuf'
5
+
4
6
  require 'google/cloud/automl/v1beta1/classification_pb'
5
7
  require 'google/cloud/automl/v1beta1/detection_pb'
6
8
  require 'google/cloud/automl/v1beta1/tables_pb'
7
9
  require 'google/cloud/automl/v1beta1/text_extraction_pb'
8
10
  require 'google/cloud/automl/v1beta1/text_sentiment_pb'
9
11
  require 'google/cloud/automl/v1beta1/translation_pb'
10
- require 'google/protobuf/any_pb'
11
- require 'google/api/annotations_pb'
12
- require 'google/protobuf'
13
12
 
14
13
  Google::Protobuf::DescriptorPool.generated_pool.build do
15
14
  add_file("google/cloud/automl/v1beta1/annotation_payload.proto", :syntax => :proto3) do
@@ -1,10 +1,10 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/automl/v1beta1/annotation_spec.proto
3
3
 
4
- require 'google/api/resource_pb'
5
- require 'google/api/annotations_pb'
6
4
  require 'google/protobuf'
7
5
 
6
+ require 'google/api/resource_pb'
7
+
8
8
  Google::Protobuf::DescriptorPool.generated_pool.build do
9
9
  add_file("google/cloud/automl/v1beta1/annotation_spec.proto", :syntax => :proto3) do
10
10
  add_message "google.cloud.automl.v1beta1.AnnotationSpec" do
@@ -484,13 +484,11 @@ module Google
484
484
  # # Call the list_datasets method.
485
485
  # result = client.list_datasets request
486
486
  #
487
- # # The returned object is of type Gapic::PagedEnumerable. You can
488
- # # iterate over all elements by calling #each, and the enumerable
489
- # # will lazily make API calls to fetch subsequent pages. Other
490
- # # methods are also available for managing paging directly.
491
- # result.each do |response|
487
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
488
+ # # over elements, and API calls will be issued to fetch pages as needed.
489
+ # result.each do |item|
492
490
  # # Each element is of type ::Google::Cloud::AutoML::V1beta1::Dataset.
493
- # p response
491
+ # p item
494
492
  # end
495
493
  #
496
494
  def list_datasets request, options = nil
@@ -667,14 +665,14 @@ module Google
667
665
  # # Call the delete_dataset method.
668
666
  # result = client.delete_dataset request
669
667
  #
670
- # # The returned object is of type Gapic::Operation. You can use this
671
- # # object to check the status of an operation, cancel it, or wait
672
- # # for results. Here is how to block until completion:
668
+ # # The returned object is of type Gapic::Operation. You can use it to
669
+ # # check the status of an operation, cancel it, or wait for results.
670
+ # # Here is how to wait for a response.
673
671
  # result.wait_until_done! timeout: 60
674
672
  # if result.response?
675
673
  # p result.response
676
674
  # else
677
- # puts "Error!"
675
+ # puts "No response received."
678
676
  # end
679
677
  #
680
678
  def delete_dataset request, options = nil
@@ -772,14 +770,14 @@ module Google
772
770
  # # Call the import_data method.
773
771
  # result = client.import_data request
774
772
  #
775
- # # The returned object is of type Gapic::Operation. You can use this
776
- # # object to check the status of an operation, cancel it, or wait
777
- # # for results. Here is how to block until completion:
773
+ # # The returned object is of type Gapic::Operation. You can use it to
774
+ # # check the status of an operation, cancel it, or wait for results.
775
+ # # Here is how to wait for a response.
778
776
  # result.wait_until_done! timeout: 60
779
777
  # if result.response?
780
778
  # p result.response
781
779
  # else
782
- # puts "Error!"
780
+ # puts "No response received."
783
781
  # end
784
782
  #
785
783
  def import_data request, options = nil
@@ -869,14 +867,14 @@ module Google
869
867
  # # Call the export_data method.
870
868
  # result = client.export_data request
871
869
  #
872
- # # The returned object is of type Gapic::Operation. You can use this
873
- # # object to check the status of an operation, cancel it, or wait
874
- # # for results. Here is how to block until completion:
870
+ # # The returned object is of type Gapic::Operation. You can use it to
871
+ # # check the status of an operation, cancel it, or wait for results.
872
+ # # Here is how to wait for a response.
875
873
  # result.wait_until_done! timeout: 60
876
874
  # if result.response?
877
875
  # p result.response
878
876
  # else
879
- # puts "Error!"
877
+ # puts "No response received."
880
878
  # end
881
879
  #
882
880
  def export_data request, options = nil
@@ -1146,13 +1144,11 @@ module Google
1146
1144
  # # Call the list_table_specs method.
1147
1145
  # result = client.list_table_specs request
1148
1146
  #
1149
- # # The returned object is of type Gapic::PagedEnumerable. You can
1150
- # # iterate over all elements by calling #each, and the enumerable
1151
- # # will lazily make API calls to fetch subsequent pages. Other
1152
- # # methods are also available for managing paging directly.
1153
- # result.each do |response|
1147
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
1148
+ # # over elements, and API calls will be issued to fetch pages as needed.
1149
+ # result.each do |item|
1154
1150
  # # Each element is of type ::Google::Cloud::AutoML::V1beta1::TableSpec.
1155
- # p response
1151
+ # p item
1156
1152
  # end
1157
1153
  #
1158
1154
  def list_table_specs request, options = nil
@@ -1424,13 +1420,11 @@ module Google
1424
1420
  # # Call the list_column_specs method.
1425
1421
  # result = client.list_column_specs request
1426
1422
  #
1427
- # # The returned object is of type Gapic::PagedEnumerable. You can
1428
- # # iterate over all elements by calling #each, and the enumerable
1429
- # # will lazily make API calls to fetch subsequent pages. Other
1430
- # # methods are also available for managing paging directly.
1431
- # result.each do |response|
1423
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
1424
+ # # over elements, and API calls will be issued to fetch pages as needed.
1425
+ # result.each do |item|
1432
1426
  # # Each element is of type ::Google::Cloud::AutoML::V1beta1::ColumnSpec.
1433
- # p response
1427
+ # p item
1434
1428
  # end
1435
1429
  #
1436
1430
  def list_column_specs request, options = nil
@@ -1609,14 +1603,14 @@ module Google
1609
1603
  # # Call the create_model method.
1610
1604
  # result = client.create_model request
1611
1605
  #
1612
- # # The returned object is of type Gapic::Operation. You can use this
1613
- # # object to check the status of an operation, cancel it, or wait
1614
- # # for results. Here is how to block until completion:
1606
+ # # The returned object is of type Gapic::Operation. You can use it to
1607
+ # # check the status of an operation, cancel it, or wait for results.
1608
+ # # Here is how to wait for a response.
1615
1609
  # result.wait_until_done! timeout: 60
1616
1610
  # if result.response?
1617
1611
  # p result.response
1618
1612
  # else
1619
- # puts "Error!"
1613
+ # puts "No response received."
1620
1614
  # end
1621
1615
  #
1622
1616
  def create_model request, options = nil
@@ -1804,13 +1798,11 @@ module Google
1804
1798
  # # Call the list_models method.
1805
1799
  # result = client.list_models request
1806
1800
  #
1807
- # # The returned object is of type Gapic::PagedEnumerable. You can
1808
- # # iterate over all elements by calling #each, and the enumerable
1809
- # # will lazily make API calls to fetch subsequent pages. Other
1810
- # # methods are also available for managing paging directly.
1811
- # result.each do |response|
1801
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
1802
+ # # over elements, and API calls will be issued to fetch pages as needed.
1803
+ # result.each do |item|
1812
1804
  # # Each element is of type ::Google::Cloud::AutoML::V1beta1::Model.
1813
- # p response
1805
+ # p item
1814
1806
  # end
1815
1807
  #
1816
1808
  def list_models request, options = nil
@@ -1900,14 +1892,14 @@ module Google
1900
1892
  # # Call the delete_model method.
1901
1893
  # result = client.delete_model request
1902
1894
  #
1903
- # # The returned object is of type Gapic::Operation. You can use this
1904
- # # object to check the status of an operation, cancel it, or wait
1905
- # # for results. Here is how to block until completion:
1895
+ # # The returned object is of type Gapic::Operation. You can use it to
1896
+ # # check the status of an operation, cancel it, or wait for results.
1897
+ # # Here is how to wait for a response.
1906
1898
  # result.wait_until_done! timeout: 60
1907
1899
  # if result.response?
1908
1900
  # p result.response
1909
1901
  # else
1910
- # puts "Error!"
1902
+ # puts "No response received."
1911
1903
  # end
1912
1904
  #
1913
1905
  def delete_model request, options = nil
@@ -2008,14 +2000,14 @@ module Google
2008
2000
  # # Call the deploy_model method.
2009
2001
  # result = client.deploy_model request
2010
2002
  #
2011
- # # The returned object is of type Gapic::Operation. You can use this
2012
- # # object to check the status of an operation, cancel it, or wait
2013
- # # for results. Here is how to block until completion:
2003
+ # # The returned object is of type Gapic::Operation. You can use it to
2004
+ # # check the status of an operation, cancel it, or wait for results.
2005
+ # # Here is how to wait for a response.
2014
2006
  # result.wait_until_done! timeout: 60
2015
2007
  # if result.response?
2016
2008
  # p result.response
2017
2009
  # else
2018
- # puts "Error!"
2010
+ # puts "No response received."
2019
2011
  # end
2020
2012
  #
2021
2013
  def deploy_model request, options = nil
@@ -2107,14 +2099,14 @@ module Google
2107
2099
  # # Call the undeploy_model method.
2108
2100
  # result = client.undeploy_model request
2109
2101
  #
2110
- # # The returned object is of type Gapic::Operation. You can use this
2111
- # # object to check the status of an operation, cancel it, or wait
2112
- # # for results. Here is how to block until completion:
2102
+ # # The returned object is of type Gapic::Operation. You can use it to
2103
+ # # check the status of an operation, cancel it, or wait for results.
2104
+ # # Here is how to wait for a response.
2113
2105
  # result.wait_until_done! timeout: 60
2114
2106
  # if result.response?
2115
2107
  # p result.response
2116
2108
  # else
2117
- # puts "Error!"
2109
+ # puts "No response received."
2118
2110
  # end
2119
2111
  #
2120
2112
  def undeploy_model request, options = nil
@@ -2209,14 +2201,14 @@ module Google
2209
2201
  # # Call the export_model method.
2210
2202
  # result = client.export_model request
2211
2203
  #
2212
- # # The returned object is of type Gapic::Operation. You can use this
2213
- # # object to check the status of an operation, cancel it, or wait
2214
- # # for results. Here is how to block until completion:
2204
+ # # The returned object is of type Gapic::Operation. You can use it to
2205
+ # # check the status of an operation, cancel it, or wait for results.
2206
+ # # Here is how to wait for a response.
2215
2207
  # result.wait_until_done! timeout: 60
2216
2208
  # if result.response?
2217
2209
  # p result.response
2218
2210
  # else
2219
- # puts "Error!"
2211
+ # puts "No response received."
2220
2212
  # end
2221
2213
  #
2222
2214
  def export_model request, options = nil
@@ -2318,14 +2310,14 @@ module Google
2318
2310
  # # Call the export_evaluated_examples method.
2319
2311
  # result = client.export_evaluated_examples request
2320
2312
  #
2321
- # # The returned object is of type Gapic::Operation. You can use this
2322
- # # object to check the status of an operation, cancel it, or wait
2323
- # # for results. Here is how to block until completion:
2313
+ # # The returned object is of type Gapic::Operation. You can use it to
2314
+ # # check the status of an operation, cancel it, or wait for results.
2315
+ # # Here is how to wait for a response.
2324
2316
  # result.wait_until_done! timeout: 60
2325
2317
  # if result.response?
2326
2318
  # p result.response
2327
2319
  # else
2328
- # puts "Error!"
2320
+ # puts "No response received."
2329
2321
  # end
2330
2322
  #
2331
2323
  def export_evaluated_examples request, options = nil
@@ -2517,13 +2509,11 @@ module Google
2517
2509
  # # Call the list_model_evaluations method.
2518
2510
  # result = client.list_model_evaluations request
2519
2511
  #
2520
- # # The returned object is of type Gapic::PagedEnumerable. You can
2521
- # # iterate over all elements by calling #each, and the enumerable
2522
- # # will lazily make API calls to fetch subsequent pages. Other
2523
- # # methods are also available for managing paging directly.
2524
- # result.each do |response|
2512
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
2513
+ # # over elements, and API calls will be issued to fetch pages as needed.
2514
+ # result.each do |item|
2525
2515
  # # Each element is of type ::Google::Cloud::AutoML::V1beta1::ModelEvaluation.
2526
- # p response
2516
+ # p item
2527
2517
  # end
2528
2518
  #
2529
2519
  def list_model_evaluations request, options = nil
@@ -95,6 +95,9 @@ module Google
95
95
  channel_args: @config.channel_args,
96
96
  interceptors: @config.interceptors
97
97
  )
98
+
99
+ # Used by an LRO wrapper for some methods of this service
100
+ @operations_client = self
98
101
  end
99
102
 
100
103
  # Service calls
@@ -155,13 +158,11 @@ module Google
155
158
  # # Call the list_operations method.
156
159
  # result = client.list_operations request
157
160
  #
158
- # # The returned object is of type Gapic::PagedEnumerable. You can
159
- # # iterate over all elements by calling #each, and the enumerable
160
- # # will lazily make API calls to fetch subsequent pages. Other
161
- # # methods are also available for managing paging directly.
162
- # result.each do |response|
161
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
162
+ # # over elements, and API calls will be issued to fetch pages as needed.
163
+ # result.each do |item|
163
164
  # # Each element is of type ::Google::Longrunning::Operation.
164
- # p response
165
+ # p item
165
166
  # end
166
167
  #
167
168
  def list_operations request, options = nil
@@ -250,14 +251,14 @@ module Google
250
251
  # # Call the get_operation method.
251
252
  # result = client.get_operation request
252
253
  #
253
- # # The returned object is of type Gapic::Operation. You can use this
254
- # # object to check the status of an operation, cancel it, or wait
255
- # # for results. Here is how to block until completion:
254
+ # # The returned object is of type Gapic::Operation. You can use it to
255
+ # # check the status of an operation, cancel it, or wait for results.
256
+ # # Here is how to wait for a response.
256
257
  # result.wait_until_done! timeout: 60
257
258
  # if result.response?
258
259
  # p result.response
259
260
  # else
260
- # puts "Error!"
261
+ # puts "No response received."
261
262
  # end
262
263
  #
263
264
  def get_operation request, options = nil
@@ -537,14 +538,14 @@ module Google
537
538
  # # Call the wait_operation method.
538
539
  # result = client.wait_operation request
539
540
  #
540
- # # The returned object is of type Gapic::Operation. You can use this
541
- # # object to check the status of an operation, cancel it, or wait
542
- # # for results. Here is how to block until completion:
541
+ # # The returned object is of type Gapic::Operation. You can use it to
542
+ # # check the status of an operation, cancel it, or wait for results.
543
+ # # Here is how to wait for a response.
543
544
  # result.wait_until_done! timeout: 60
544
545
  # if result.response?
545
546
  # p result.response
546
547
  # else
547
- # puts "Error!"
548
+ # puts "No response received."
548
549
  # end
549
550
  #
550
551
  def wait_operation request, options = nil
@@ -564,6 +565,14 @@ module Google
564
565
  gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION
565
566
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
566
567
 
568
+ header_params = {}
569
+ if request.name
570
+ header_params["name"] = request.name
571
+ end
572
+
573
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
574
+ metadata[:"x-goog-request-params"] ||= request_params_header
575
+
567
576
  options.apply_defaults timeout: @config.rpcs.wait_operation.timeout,
568
577
  metadata: metadata,
569
578
  retry_policy: @config.rpcs.wait_operation.retry_policy
@@ -47,7 +47,7 @@ module Google
47
47
  # On any input that is documented to expect a string parameter in
48
48
  # snake_case or kebab-case, either of those cases is accepted.
49
49
  #
50
- # To load this service and instantiate a client:
50
+ # @example Load this service and instantiate a gRPC client
51
51
  #
52
52
  # require "google/cloud/automl/v1beta1/automl"
53
53
  # client = ::Google::Cloud::AutoML::V1beta1::AutoML::Client.new
@@ -1,10 +1,10 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/automl/v1beta1/classification.proto
3
3
 
4
- require 'google/cloud/automl/v1beta1/temporal_pb'
5
- require 'google/api/annotations_pb'
6
4
  require 'google/protobuf'
7
5
 
6
+ require 'google/cloud/automl/v1beta1/temporal_pb'
7
+
8
8
  Google::Protobuf::DescriptorPool.generated_pool.build do
9
9
  add_file("google/cloud/automl/v1beta1/classification.proto", :syntax => :proto3) do
10
10
  add_message "google.cloud.automl.v1beta1.ClassificationAnnotation" do
@@ -1,11 +1,11 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/automl/v1beta1/column_spec.proto
3
3
 
4
+ require 'google/protobuf'
5
+
4
6
  require 'google/api/resource_pb'
5
7
  require 'google/cloud/automl/v1beta1/data_stats_pb'
6
8
  require 'google/cloud/automl/v1beta1/data_types_pb'
7
- require 'google/api/annotations_pb'
8
- require 'google/protobuf'
9
9
 
10
10
  Google::Protobuf::DescriptorPool.generated_pool.build do
11
11
  add_file("google/cloud/automl/v1beta1/column_spec.proto", :syntax => :proto3) do
@@ -1,15 +1,13 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/automl/v1beta1/data_items.proto
3
3
 
4
+ require 'google/protobuf'
5
+
4
6
  require 'google/cloud/automl/v1beta1/geometry_pb'
5
7
  require 'google/cloud/automl/v1beta1/io_pb'
6
8
  require 'google/cloud/automl/v1beta1/temporal_pb'
7
9
  require 'google/cloud/automl/v1beta1/text_segment_pb'
8
- require 'google/protobuf/any_pb'
9
- require 'google/protobuf/duration_pb'
10
10
  require 'google/protobuf/struct_pb'
11
- require 'google/api/annotations_pb'
12
- require 'google/protobuf'
13
11
 
14
12
  Google::Protobuf::DescriptorPool.generated_pool.build do
15
13
  add_file("google/cloud/automl/v1beta1/data_items.proto", :syntax => :proto3) do
@@ -1,7 +1,6 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/automl/v1beta1/data_stats.proto
3
3
 
4
- require 'google/api/annotations_pb'
5
4
  require 'google/protobuf'
6
5
 
7
6
  Google::Protobuf::DescriptorPool.generated_pool.build do
@@ -1,7 +1,6 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/automl/v1beta1/data_types.proto
3
3
 
4
- require 'google/api/annotations_pb'
5
4
  require 'google/protobuf'
6
5
 
7
6
  Google::Protobuf::DescriptorPool.generated_pool.build do
@@ -1,6 +1,8 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/automl/v1beta1/dataset.proto
3
3
 
4
+ require 'google/protobuf'
5
+
4
6
  require 'google/api/resource_pb'
5
7
  require 'google/cloud/automl/v1beta1/image_pb'
6
8
  require 'google/cloud/automl/v1beta1/tables_pb'
@@ -8,8 +10,6 @@ require 'google/cloud/automl/v1beta1/text_pb'
8
10
  require 'google/cloud/automl/v1beta1/translation_pb'
9
11
  require 'google/cloud/automl/v1beta1/video_pb'
10
12
  require 'google/protobuf/timestamp_pb'
11
- require 'google/api/annotations_pb'
12
- require 'google/protobuf'
13
13
 
14
14
  Google::Protobuf::DescriptorPool.generated_pool.build do
15
15
  add_file("google/cloud/automl/v1beta1/dataset.proto", :syntax => :proto3) do
@@ -1,10 +1,10 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/automl/v1beta1/detection.proto
3
3
 
4
+ require 'google/protobuf'
5
+
4
6
  require 'google/cloud/automl/v1beta1/geometry_pb'
5
7
  require 'google/protobuf/duration_pb'
6
- require 'google/api/annotations_pb'
7
- require 'google/protobuf'
8
8
 
9
9
  Google::Protobuf::DescriptorPool.generated_pool.build do
10
10
  add_file("google/cloud/automl/v1beta1/detection.proto", :syntax => :proto3) do
@@ -1,7 +1,6 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/automl/v1beta1/geometry.proto
3
3
 
4
- require 'google/api/annotations_pb'
5
4
  require 'google/protobuf'
6
5
 
7
6
  Google::Protobuf::DescriptorPool.generated_pool.build do
@@ -1,12 +1,10 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/automl/v1beta1/image.proto
3
3
 
4
- require 'google/api/resource_pb'
4
+ require 'google/protobuf'
5
+
5
6
  require 'google/cloud/automl/v1beta1/annotation_spec_pb'
6
7
  require 'google/cloud/automl/v1beta1/classification_pb'
7
- require 'google/protobuf/timestamp_pb'
8
- require 'google/api/annotations_pb'
9
- require 'google/protobuf'
10
8
 
11
9
  Google::Protobuf::DescriptorPool.generated_pool.build do
12
10
  add_file("google/cloud/automl/v1beta1/image.proto", :syntax => :proto3) do
@@ -1,7 +1,6 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/automl/v1beta1/io.proto
3
3
 
4
- require 'google/api/annotations_pb'
5
4
  require 'google/protobuf'
6
5
 
7
6
  Google::Protobuf::DescriptorPool.generated_pool.build do
@@ -1,6 +1,8 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/automl/v1beta1/model_evaluation.proto
3
3
 
4
+ require 'google/protobuf'
5
+
4
6
  require 'google/api/resource_pb'
5
7
  require 'google/cloud/automl/v1beta1/classification_pb'
6
8
  require 'google/cloud/automl/v1beta1/detection_pb'
@@ -10,8 +12,6 @@ require 'google/cloud/automl/v1beta1/text_extraction_pb'
10
12
  require 'google/cloud/automl/v1beta1/text_sentiment_pb'
11
13
  require 'google/cloud/automl/v1beta1/translation_pb'
12
14
  require 'google/protobuf/timestamp_pb'
13
- require 'google/api/annotations_pb'
14
- require 'google/protobuf'
15
15
 
16
16
  Google::Protobuf::DescriptorPool.generated_pool.build do
17
17
  add_file("google/cloud/automl/v1beta1/model_evaluation.proto", :syntax => :proto3) do
@@ -1,6 +1,8 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/automl/v1beta1/model.proto
3
3
 
4
+ require 'google/protobuf'
5
+
4
6
  require 'google/api/resource_pb'
5
7
  require 'google/cloud/automl/v1beta1/image_pb'
6
8
  require 'google/cloud/automl/v1beta1/tables_pb'
@@ -8,8 +10,6 @@ require 'google/cloud/automl/v1beta1/text_pb'
8
10
  require 'google/cloud/automl/v1beta1/translation_pb'
9
11
  require 'google/cloud/automl/v1beta1/video_pb'
10
12
  require 'google/protobuf/timestamp_pb'
11
- require 'google/api/annotations_pb'
12
- require 'google/protobuf'
13
13
 
14
14
  Google::Protobuf::DescriptorPool.generated_pool.build do
15
15
  add_file("google/cloud/automl/v1beta1/model.proto", :syntax => :proto3) do
@@ -1,14 +1,13 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/automl/v1beta1/operations.proto
3
3
 
4
+ require 'google/protobuf'
5
+
4
6
  require 'google/cloud/automl/v1beta1/io_pb'
5
7
  require 'google/cloud/automl/v1beta1/model_pb'
6
8
  require 'google/cloud/automl/v1beta1/model_evaluation_pb'
7
- require 'google/protobuf/empty_pb'
8
9
  require 'google/protobuf/timestamp_pb'
9
10
  require 'google/rpc/status_pb'
10
- require 'google/api/annotations_pb'
11
- require 'google/protobuf'
12
11
 
13
12
  Google::Protobuf::DescriptorPool.generated_pool.build do
14
13
  add_file("google/cloud/automl/v1beta1/operations.proto", :syntax => :proto3) do