google-cloud-automl-v1beta1 0.5.5 → 0.6.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.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +1 -1
- data/README.md +12 -7
- data/lib/google/cloud/automl/v1beta1/annotation_payload_pb.rb +2 -3
- data/lib/google/cloud/automl/v1beta1/annotation_spec_pb.rb +2 -2
- data/lib/google/cloud/automl/v1beta1/automl/client.rb +56 -66
- data/lib/google/cloud/automl/v1beta1/automl/operations.rb +23 -14
- data/lib/google/cloud/automl/v1beta1/automl.rb +1 -1
- data/lib/google/cloud/automl/v1beta1/classification_pb.rb +2 -2
- data/lib/google/cloud/automl/v1beta1/column_spec_pb.rb +2 -2
- data/lib/google/cloud/automl/v1beta1/data_items_pb.rb +2 -4
- data/lib/google/cloud/automl/v1beta1/data_stats_pb.rb +0 -1
- data/lib/google/cloud/automl/v1beta1/data_types_pb.rb +0 -1
- data/lib/google/cloud/automl/v1beta1/dataset_pb.rb +2 -2
- data/lib/google/cloud/automl/v1beta1/detection_pb.rb +2 -2
- data/lib/google/cloud/automl/v1beta1/geometry_pb.rb +0 -1
- data/lib/google/cloud/automl/v1beta1/image_pb.rb +2 -4
- data/lib/google/cloud/automl/v1beta1/io_pb.rb +0 -1
- data/lib/google/cloud/automl/v1beta1/model_evaluation_pb.rb +2 -2
- data/lib/google/cloud/automl/v1beta1/model_pb.rb +2 -2
- data/lib/google/cloud/automl/v1beta1/operations_pb.rb +2 -3
- data/lib/google/cloud/automl/v1beta1/prediction_service/client.rb +4 -4
- data/lib/google/cloud/automl/v1beta1/prediction_service/operations.rb +23 -14
- data/lib/google/cloud/automl/v1beta1/prediction_service.rb +1 -1
- data/lib/google/cloud/automl/v1beta1/prediction_service_pb.rb +2 -1
- data/lib/google/cloud/automl/v1beta1/ranges_pb.rb +0 -1
- data/lib/google/cloud/automl/v1beta1/regression_pb.rb +0 -1
- data/lib/google/cloud/automl/v1beta1/service_pb.rb +2 -1
- data/lib/google/cloud/automl/v1beta1/table_spec_pb.rb +2 -2
- data/lib/google/cloud/automl/v1beta1/tables_pb.rb +2 -2
- data/lib/google/cloud/automl/v1beta1/temporal_pb.rb +2 -2
- data/lib/google/cloud/automl/v1beta1/text_extraction_pb.rb +2 -2
- data/lib/google/cloud/automl/v1beta1/text_pb.rb +2 -2
- data/lib/google/cloud/automl/v1beta1/text_segment_pb.rb +0 -1
- data/lib/google/cloud/automl/v1beta1/text_sentiment_pb.rb +2 -2
- data/lib/google/cloud/automl/v1beta1/translation_pb.rb +2 -2
- data/lib/google/cloud/automl/v1beta1/version.rb +1 -1
- data/lib/google/cloud/automl/v1beta1/video_pb.rb +2 -2
- data/lib/google/cloud/automl/v1beta1.rb +3 -1
- data/proto_docs/google/api/client.rb +318 -0
- data/proto_docs/google/api/launch_stage.rb +71 -0
- data/proto_docs/google/protobuf/any.rb +3 -3
- data/proto_docs/google/protobuf/empty.rb +0 -2
- data/proto_docs/google/protobuf/struct.rb +2 -2
- data/proto_docs/google/rpc/status.rb +4 -2
- metadata +14 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 672772d033d3dd90dd322cb241d1d83bf58fff503c2a76db45d7b1b5aa764df7
|
4
|
+
data.tar.gz: 278fa9e402c0589444196ebe47acc2a9b3c07c02ca029ba1f0aa5c423a30be27
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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://
|
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/
|
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.
|
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.
|
79
|
-
|
80
|
-
|
81
|
-
|
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
|
-
# #
|
489
|
-
#
|
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
|
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
|
671
|
-
# #
|
672
|
-
# #
|
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 "
|
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
|
776
|
-
# #
|
777
|
-
# #
|
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 "
|
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
|
873
|
-
# #
|
874
|
-
# #
|
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 "
|
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
|
-
# #
|
1151
|
-
#
|
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
|
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
|
-
# #
|
1429
|
-
#
|
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
|
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
|
1613
|
-
# #
|
1614
|
-
# #
|
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 "
|
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
|
-
# #
|
1809
|
-
#
|
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
|
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
|
1904
|
-
# #
|
1905
|
-
# #
|
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 "
|
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
|
2012
|
-
# #
|
2013
|
-
# #
|
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 "
|
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
|
2111
|
-
# #
|
2112
|
-
# #
|
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 "
|
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
|
2213
|
-
# #
|
2214
|
-
# #
|
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 "
|
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
|
2322
|
-
# #
|
2323
|
-
# #
|
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 "
|
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
|
-
# #
|
2522
|
-
#
|
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
|
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
|
-
# #
|
160
|
-
#
|
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
|
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
|
254
|
-
# #
|
255
|
-
# #
|
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 "
|
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
|
541
|
-
# #
|
542
|
-
# #
|
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 "
|
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
|
-
#
|
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,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,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/
|
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,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
|