google-cloud-automl-v1beta1 0.2.6 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE.md +188 -190
- data/README.md +66 -2
- data/lib/google/cloud/automl/v1beta1.rb +3 -0
- data/lib/google/cloud/automl/v1beta1/_helpers.rb +26 -0
- data/lib/google/cloud/automl/v1beta1/automl/client.rb +95 -89
- data/lib/google/cloud/automl/v1beta1/automl/operations.rb +99 -14
- data/lib/google/cloud/automl/v1beta1/prediction_service/client.rb +15 -9
- data/lib/google/cloud/automl/v1beta1/prediction_service/operations.rb +99 -14
- data/lib/google/cloud/automl/v1beta1/prediction_service_services_pb.rb +2 -2
- data/lib/google/cloud/automl/v1beta1/service_services_pb.rb +24 -24
- data/lib/google/cloud/automl/v1beta1/text_pb.rb +1 -0
- data/lib/google/cloud/automl/v1beta1/version.rb +2 -2
- data/proto_docs/google/api/field_behavior.rb +6 -0
- data/proto_docs/google/api/resource.rb +50 -14
- data/proto_docs/google/cloud/automl/v1beta1/io.rb +26 -0
- data/proto_docs/google/cloud/automl/v1beta1/text.rb +8 -0
- data/proto_docs/google/longrunning/operations.rb +17 -3
- data/proto_docs/google/protobuf/any.rb +5 -2
- data/proto_docs/google/protobuf/timestamp.rb +10 -1
- metadata +10 -7
@@ -55,7 +55,7 @@ module Google
|
|
55
55
|
# [prediction_type][google.cloud.automl.v1beta1.TablesModelMetadata.prediction_type].
|
56
56
|
# * Text Sentiment - TextSnippet, content up 500 characters, UTF-8
|
57
57
|
# encoded.
|
58
|
-
rpc :Predict, Google::Cloud::AutoML::V1beta1::PredictRequest, Google::Cloud::AutoML::V1beta1::PredictResponse
|
58
|
+
rpc :Predict, ::Google::Cloud::AutoML::V1beta1::PredictRequest, ::Google::Cloud::AutoML::V1beta1::PredictResponse
|
59
59
|
# Perform a batch prediction. Unlike the online [Predict][google.cloud.automl.v1beta1.PredictionService.Predict], batch
|
60
60
|
# prediction result won't be immediately available in the response. Instead,
|
61
61
|
# a long running operation object is returned. User can poll the operation
|
@@ -68,7 +68,7 @@ module Google
|
|
68
68
|
# * Video Classification
|
69
69
|
# * Video Object Tracking * Text Extraction
|
70
70
|
# * Tables
|
71
|
-
rpc :BatchPredict, Google::Cloud::AutoML::V1beta1::BatchPredictRequest, Google::Longrunning::Operation
|
71
|
+
rpc :BatchPredict, ::Google::Cloud::AutoML::V1beta1::BatchPredictRequest, ::Google::Longrunning::Operation
|
72
72
|
end
|
73
73
|
|
74
74
|
Stub = Service.rpc_stub_class
|
@@ -47,19 +47,19 @@ module Google
|
|
47
47
|
self.service_name = 'google.cloud.automl.v1beta1.AutoMl'
|
48
48
|
|
49
49
|
# Creates a dataset.
|
50
|
-
rpc :CreateDataset, Google::Cloud::AutoML::V1beta1::CreateDatasetRequest, Google::Cloud::AutoML::V1beta1::Dataset
|
50
|
+
rpc :CreateDataset, ::Google::Cloud::AutoML::V1beta1::CreateDatasetRequest, ::Google::Cloud::AutoML::V1beta1::Dataset
|
51
51
|
# Gets a dataset.
|
52
|
-
rpc :GetDataset, Google::Cloud::AutoML::V1beta1::GetDatasetRequest, Google::Cloud::AutoML::V1beta1::Dataset
|
52
|
+
rpc :GetDataset, ::Google::Cloud::AutoML::V1beta1::GetDatasetRequest, ::Google::Cloud::AutoML::V1beta1::Dataset
|
53
53
|
# Lists datasets in a project.
|
54
|
-
rpc :ListDatasets, Google::Cloud::AutoML::V1beta1::ListDatasetsRequest, Google::Cloud::AutoML::V1beta1::ListDatasetsResponse
|
54
|
+
rpc :ListDatasets, ::Google::Cloud::AutoML::V1beta1::ListDatasetsRequest, ::Google::Cloud::AutoML::V1beta1::ListDatasetsResponse
|
55
55
|
# Updates a dataset.
|
56
|
-
rpc :UpdateDataset, Google::Cloud::AutoML::V1beta1::UpdateDatasetRequest, Google::Cloud::AutoML::V1beta1::Dataset
|
56
|
+
rpc :UpdateDataset, ::Google::Cloud::AutoML::V1beta1::UpdateDatasetRequest, ::Google::Cloud::AutoML::V1beta1::Dataset
|
57
57
|
# Deletes a dataset and all of its contents.
|
58
58
|
# Returns empty response in the
|
59
59
|
# [response][google.longrunning.Operation.response] field when it completes,
|
60
60
|
# and `delete_details` in the
|
61
61
|
# [metadata][google.longrunning.Operation.metadata] field.
|
62
|
-
rpc :DeleteDataset, Google::Cloud::AutoML::V1beta1::DeleteDatasetRequest, Google::Longrunning::Operation
|
62
|
+
rpc :DeleteDataset, ::Google::Cloud::AutoML::V1beta1::DeleteDatasetRequest, ::Google::Longrunning::Operation
|
63
63
|
# Imports data into a dataset.
|
64
64
|
# For Tables this method can only be called on an empty Dataset.
|
65
65
|
#
|
@@ -69,41 +69,41 @@ module Google
|
|
69
69
|
# parameter must be explicitly set.
|
70
70
|
# Returns an empty response in the
|
71
71
|
# [response][google.longrunning.Operation.response] field when it completes.
|
72
|
-
rpc :ImportData, Google::Cloud::AutoML::V1beta1::ImportDataRequest, Google::Longrunning::Operation
|
72
|
+
rpc :ImportData, ::Google::Cloud::AutoML::V1beta1::ImportDataRequest, ::Google::Longrunning::Operation
|
73
73
|
# Exports dataset's data to the provided output location.
|
74
74
|
# Returns an empty response in the
|
75
75
|
# [response][google.longrunning.Operation.response] field when it completes.
|
76
|
-
rpc :ExportData, Google::Cloud::AutoML::V1beta1::ExportDataRequest, Google::Longrunning::Operation
|
76
|
+
rpc :ExportData, ::Google::Cloud::AutoML::V1beta1::ExportDataRequest, ::Google::Longrunning::Operation
|
77
77
|
# Gets an annotation spec.
|
78
|
-
rpc :GetAnnotationSpec, Google::Cloud::AutoML::V1beta1::GetAnnotationSpecRequest, Google::Cloud::AutoML::V1beta1::AnnotationSpec
|
78
|
+
rpc :GetAnnotationSpec, ::Google::Cloud::AutoML::V1beta1::GetAnnotationSpecRequest, ::Google::Cloud::AutoML::V1beta1::AnnotationSpec
|
79
79
|
# Gets a table spec.
|
80
|
-
rpc :GetTableSpec, Google::Cloud::AutoML::V1beta1::GetTableSpecRequest, Google::Cloud::AutoML::V1beta1::TableSpec
|
80
|
+
rpc :GetTableSpec, ::Google::Cloud::AutoML::V1beta1::GetTableSpecRequest, ::Google::Cloud::AutoML::V1beta1::TableSpec
|
81
81
|
# Lists table specs in a dataset.
|
82
|
-
rpc :ListTableSpecs, Google::Cloud::AutoML::V1beta1::ListTableSpecsRequest, Google::Cloud::AutoML::V1beta1::ListTableSpecsResponse
|
82
|
+
rpc :ListTableSpecs, ::Google::Cloud::AutoML::V1beta1::ListTableSpecsRequest, ::Google::Cloud::AutoML::V1beta1::ListTableSpecsResponse
|
83
83
|
# Updates a table spec.
|
84
|
-
rpc :UpdateTableSpec, Google::Cloud::AutoML::V1beta1::UpdateTableSpecRequest, Google::Cloud::AutoML::V1beta1::TableSpec
|
84
|
+
rpc :UpdateTableSpec, ::Google::Cloud::AutoML::V1beta1::UpdateTableSpecRequest, ::Google::Cloud::AutoML::V1beta1::TableSpec
|
85
85
|
# Gets a column spec.
|
86
|
-
rpc :GetColumnSpec, Google::Cloud::AutoML::V1beta1::GetColumnSpecRequest, Google::Cloud::AutoML::V1beta1::ColumnSpec
|
86
|
+
rpc :GetColumnSpec, ::Google::Cloud::AutoML::V1beta1::GetColumnSpecRequest, ::Google::Cloud::AutoML::V1beta1::ColumnSpec
|
87
87
|
# Lists column specs in a table spec.
|
88
|
-
rpc :ListColumnSpecs, Google::Cloud::AutoML::V1beta1::ListColumnSpecsRequest, Google::Cloud::AutoML::V1beta1::ListColumnSpecsResponse
|
88
|
+
rpc :ListColumnSpecs, ::Google::Cloud::AutoML::V1beta1::ListColumnSpecsRequest, ::Google::Cloud::AutoML::V1beta1::ListColumnSpecsResponse
|
89
89
|
# Updates a column spec.
|
90
|
-
rpc :UpdateColumnSpec, Google::Cloud::AutoML::V1beta1::UpdateColumnSpecRequest, Google::Cloud::AutoML::V1beta1::ColumnSpec
|
90
|
+
rpc :UpdateColumnSpec, ::Google::Cloud::AutoML::V1beta1::UpdateColumnSpecRequest, ::Google::Cloud::AutoML::V1beta1::ColumnSpec
|
91
91
|
# Creates a model.
|
92
92
|
# Returns a Model in the [response][google.longrunning.Operation.response]
|
93
93
|
# field when it completes.
|
94
94
|
# When you create a model, several model evaluations are created for it:
|
95
95
|
# a global evaluation, and one evaluation for each annotation spec.
|
96
|
-
rpc :CreateModel, Google::Cloud::AutoML::V1beta1::CreateModelRequest, Google::Longrunning::Operation
|
96
|
+
rpc :CreateModel, ::Google::Cloud::AutoML::V1beta1::CreateModelRequest, ::Google::Longrunning::Operation
|
97
97
|
# Gets a model.
|
98
|
-
rpc :GetModel, Google::Cloud::AutoML::V1beta1::GetModelRequest, Google::Cloud::AutoML::V1beta1::Model
|
98
|
+
rpc :GetModel, ::Google::Cloud::AutoML::V1beta1::GetModelRequest, ::Google::Cloud::AutoML::V1beta1::Model
|
99
99
|
# Lists models.
|
100
|
-
rpc :ListModels, Google::Cloud::AutoML::V1beta1::ListModelsRequest, Google::Cloud::AutoML::V1beta1::ListModelsResponse
|
100
|
+
rpc :ListModels, ::Google::Cloud::AutoML::V1beta1::ListModelsRequest, ::Google::Cloud::AutoML::V1beta1::ListModelsResponse
|
101
101
|
# Deletes a model.
|
102
102
|
# Returns `google.protobuf.Empty` in the
|
103
103
|
# [response][google.longrunning.Operation.response] field when it completes,
|
104
104
|
# and `delete_details` in the
|
105
105
|
# [metadata][google.longrunning.Operation.metadata] field.
|
106
|
-
rpc :DeleteModel, Google::Cloud::AutoML::V1beta1::DeleteModelRequest, Google::Longrunning::Operation
|
106
|
+
rpc :DeleteModel, ::Google::Cloud::AutoML::V1beta1::DeleteModelRequest, ::Google::Longrunning::Operation
|
107
107
|
# Deploys a model. If a model is already deployed, deploying it with the
|
108
108
|
# same parameters has no effect. Deploying with different parametrs
|
109
109
|
# (as e.g. changing
|
@@ -116,7 +116,7 @@ module Google
|
|
116
116
|
#
|
117
117
|
# Returns an empty response in the
|
118
118
|
# [response][google.longrunning.Operation.response] field when it completes.
|
119
|
-
rpc :DeployModel, Google::Cloud::AutoML::V1beta1::DeployModelRequest, Google::Longrunning::Operation
|
119
|
+
rpc :DeployModel, ::Google::Cloud::AutoML::V1beta1::DeployModelRequest, ::Google::Longrunning::Operation
|
120
120
|
# Undeploys a model. If the model is not deployed this method has no effect.
|
121
121
|
#
|
122
122
|
# Only applicable for Text Classification, Image Object Detection and Tables;
|
@@ -124,7 +124,7 @@ module Google
|
|
124
124
|
#
|
125
125
|
# Returns an empty response in the
|
126
126
|
# [response][google.longrunning.Operation.response] field when it completes.
|
127
|
-
rpc :UndeployModel, Google::Cloud::AutoML::V1beta1::UndeployModelRequest, Google::Longrunning::Operation
|
127
|
+
rpc :UndeployModel, ::Google::Cloud::AutoML::V1beta1::UndeployModelRequest, ::Google::Longrunning::Operation
|
128
128
|
# Exports a trained, "export-able", model to a user specified Google Cloud
|
129
129
|
# Storage location. A model is considered export-able if and only if it has
|
130
130
|
# an export format defined for it in
|
@@ -133,7 +133,7 @@ module Google
|
|
133
133
|
#
|
134
134
|
# Returns an empty response in the
|
135
135
|
# [response][google.longrunning.Operation.response] field when it completes.
|
136
|
-
rpc :ExportModel, Google::Cloud::AutoML::V1beta1::ExportModelRequest, Google::Longrunning::Operation
|
136
|
+
rpc :ExportModel, ::Google::Cloud::AutoML::V1beta1::ExportModelRequest, ::Google::Longrunning::Operation
|
137
137
|
# Exports examples on which the model was evaluated (i.e. which were in the
|
138
138
|
# TEST set of the dataset the model was created from), together with their
|
139
139
|
# ground truth annotations and the annotations created (predicted) by the
|
@@ -148,11 +148,11 @@ module Google
|
|
148
148
|
#
|
149
149
|
# Returns an empty response in the
|
150
150
|
# [response][google.longrunning.Operation.response] field when it completes.
|
151
|
-
rpc :ExportEvaluatedExamples, Google::Cloud::AutoML::V1beta1::ExportEvaluatedExamplesRequest, Google::Longrunning::Operation
|
151
|
+
rpc :ExportEvaluatedExamples, ::Google::Cloud::AutoML::V1beta1::ExportEvaluatedExamplesRequest, ::Google::Longrunning::Operation
|
152
152
|
# Gets a model evaluation.
|
153
|
-
rpc :GetModelEvaluation, Google::Cloud::AutoML::V1beta1::GetModelEvaluationRequest, Google::Cloud::AutoML::V1beta1::ModelEvaluation
|
153
|
+
rpc :GetModelEvaluation, ::Google::Cloud::AutoML::V1beta1::GetModelEvaluationRequest, ::Google::Cloud::AutoML::V1beta1::ModelEvaluation
|
154
154
|
# Lists model evaluations.
|
155
|
-
rpc :ListModelEvaluations, Google::Cloud::AutoML::V1beta1::ListModelEvaluationsRequest, Google::Cloud::AutoML::V1beta1::ListModelEvaluationsResponse
|
155
|
+
rpc :ListModelEvaluations, ::Google::Cloud::AutoML::V1beta1::ListModelEvaluationsRequest, ::Google::Cloud::AutoML::V1beta1::ListModelEvaluationsResponse
|
156
156
|
end
|
157
157
|
|
158
158
|
Stub = Service.rpc_stub_class
|
@@ -16,6 +16,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
16
16
|
add_message "google.cloud.automl.v1beta1.TextExtractionDatasetMetadata" do
|
17
17
|
end
|
18
18
|
add_message "google.cloud.automl.v1beta1.TextExtractionModelMetadata" do
|
19
|
+
optional :model_hint, :string, 3
|
19
20
|
end
|
20
21
|
add_message "google.cloud.automl.v1beta1.TextSentimentDatasetMetadata" do
|
21
22
|
optional :sentiment_max, :int32, 1
|
@@ -54,6 +54,12 @@ module Google
|
|
54
54
|
# This indicates that the field may be set once in a request to create a
|
55
55
|
# resource, but may not be changed thereafter.
|
56
56
|
IMMUTABLE = 5
|
57
|
+
|
58
|
+
# Denotes that a (repeated) field is an unordered list.
|
59
|
+
# This indicates that the service may provide the elements of the list
|
60
|
+
# in any arbitrary order, rather than the order the user originally
|
61
|
+
# provided. Additionally, the list's order may or may not be stable.
|
62
|
+
UNORDERED_LIST = 6
|
57
63
|
end
|
58
64
|
end
|
59
65
|
end
|
@@ -43,12 +43,12 @@ module Google
|
|
43
43
|
#
|
44
44
|
# The ResourceDescriptor Yaml config will look like:
|
45
45
|
#
|
46
|
-
#
|
47
|
-
#
|
48
|
-
#
|
49
|
-
#
|
50
|
-
#
|
51
|
-
#
|
46
|
+
# resources:
|
47
|
+
# - type: "pubsub.googleapis.com/Topic"
|
48
|
+
# name_descriptor:
|
49
|
+
# - pattern: "projects/{project}/topics/{topic}"
|
50
|
+
# parent_type: "cloudresourcemanager.googleapis.com/Project"
|
51
|
+
# parent_name_extractor: "projects/{project}"
|
52
52
|
#
|
53
53
|
# Sometimes, resources have multiple patterns, typically because they can
|
54
54
|
# live under multiple parents.
|
@@ -183,15 +183,24 @@ module Google
|
|
183
183
|
# }
|
184
184
|
# @!attribute [rw] plural
|
185
185
|
# @return [::String]
|
186
|
-
# The plural name used in the resource name, such as
|
187
|
-
# the name of 'projects/\\{project}'
|
188
|
-
#
|
186
|
+
# The plural name used in the resource name and permission names, such as
|
187
|
+
# 'projects' for the resource name of 'projects/\\{project}' and the permission
|
188
|
+
# name of 'cloudresourcemanager.googleapis.com/projects.get'. It is the same
|
189
|
+
# concept of the `plural` field in k8s CRD spec
|
189
190
|
# https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/
|
191
|
+
#
|
192
|
+
# Note: The plural form is required even for singleton resources. See
|
193
|
+
# https://aip.dev/156
|
190
194
|
# @!attribute [rw] singular
|
191
195
|
# @return [::String]
|
192
196
|
# The same concept of the `singular` field in k8s CRD spec
|
193
197
|
# https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/
|
194
198
|
# Such as "project" for the `resourcemanager.googleapis.com/Project` type.
|
199
|
+
# @!attribute [rw] style
|
200
|
+
# @return [::Array<::Google::Api::ResourceDescriptor::Style>]
|
201
|
+
# Style flag(s) for this resource.
|
202
|
+
# These indicate that a resource is expected to conform to a given
|
203
|
+
# style. See the specific style flags for additional information.
|
195
204
|
class ResourceDescriptor
|
196
205
|
include ::Google::Protobuf::MessageExts
|
197
206
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -211,6 +220,22 @@ module Google
|
|
211
220
|
# that from being necessary once there are multiple patterns.)
|
212
221
|
FUTURE_MULTI_PATTERN = 2
|
213
222
|
end
|
223
|
+
|
224
|
+
# A flag representing a specific style that a resource claims to conform to.
|
225
|
+
module Style
|
226
|
+
# The unspecified value. Do not use.
|
227
|
+
STYLE_UNSPECIFIED = 0
|
228
|
+
|
229
|
+
# This resource is intended to be "declarative-friendly".
|
230
|
+
#
|
231
|
+
# Declarative-friendly resources must be more strictly consistent, and
|
232
|
+
# setting this to true communicates to tools that this resource should
|
233
|
+
# adhere to declarative-friendly expectations.
|
234
|
+
#
|
235
|
+
# Note: This is used by the API linter (linter.aip.dev) to enable
|
236
|
+
# additional checks.
|
237
|
+
DECLARATIVE_FRIENDLY = 1
|
238
|
+
end
|
214
239
|
end
|
215
240
|
|
216
241
|
# Defines a proto annotation that describes a string field that refers to
|
@@ -226,6 +251,17 @@ module Google
|
|
226
251
|
# type: "pubsub.googleapis.com/Topic"
|
227
252
|
# }];
|
228
253
|
# }
|
254
|
+
#
|
255
|
+
# Occasionally, a field may reference an arbitrary resource. In this case,
|
256
|
+
# APIs use the special value * in their resource reference.
|
257
|
+
#
|
258
|
+
# Example:
|
259
|
+
#
|
260
|
+
# message GetIamPolicyRequest {
|
261
|
+
# string resource = 2 [(google.api.resource_reference) = {
|
262
|
+
# type: "*"
|
263
|
+
# }];
|
264
|
+
# }
|
229
265
|
# @!attribute [rw] child_type
|
230
266
|
# @return [::String]
|
231
267
|
# The resource type of a child collection that the annotated field
|
@@ -234,11 +270,11 @@ module Google
|
|
234
270
|
#
|
235
271
|
# Example:
|
236
272
|
#
|
237
|
-
#
|
238
|
-
#
|
239
|
-
#
|
240
|
-
#
|
241
|
-
#
|
273
|
+
# message ListLogEntriesRequest {
|
274
|
+
# string parent = 1 [(google.api.resource_reference) = {
|
275
|
+
# child_type: "logging.googleapis.com/LogEntry"
|
276
|
+
# };
|
277
|
+
# }
|
242
278
|
class ResourceReference
|
243
279
|
include ::Google::Protobuf::MessageExts
|
244
280
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -1014,6 +1014,32 @@ module Google
|
|
1014
1014
|
# * For Image Classification mobile-core-ml-low-latency-1,
|
1015
1015
|
# mobile-core-ml-versatile-1, mobile-core-ml-high-accuracy-1:
|
1016
1016
|
# "core_ml" (default).
|
1017
|
+
#
|
1018
|
+
# * For Image Object Detection mobile-low-latency-1, mobile-versatile-1,
|
1019
|
+
# mobile-high-accuracy-1:
|
1020
|
+
# "tflite", "tf_saved_model", "tf_js".
|
1021
|
+
#
|
1022
|
+
# * For Video Classification cloud,
|
1023
|
+
# "tf_saved_model".
|
1024
|
+
#
|
1025
|
+
# * For Video Object Tracking cloud,
|
1026
|
+
# "tf_saved_model".
|
1027
|
+
#
|
1028
|
+
# * For Video Object Tracking mobile-versatile-1:
|
1029
|
+
# "tflite", "edgetpu_tflite", "tf_saved_model", "docker".
|
1030
|
+
#
|
1031
|
+
# * For Video Object Tracking mobile-coral-versatile-1:
|
1032
|
+
# "tflite", "edgetpu_tflite", "docker".
|
1033
|
+
#
|
1034
|
+
# * For Video Object Tracking mobile-coral-low-latency-1:
|
1035
|
+
# "tflite", "edgetpu_tflite", "docker".
|
1036
|
+
#
|
1037
|
+
# * For Video Object Tracking mobile-jetson-versatile-1:
|
1038
|
+
# "tf_saved_model", "docker".
|
1039
|
+
#
|
1040
|
+
# * For Tables:
|
1041
|
+
# "docker".
|
1042
|
+
#
|
1017
1043
|
# Formats description:
|
1018
1044
|
#
|
1019
1045
|
# * tflite - Used for Android mobile devices.
|
@@ -46,6 +46,14 @@ module Google
|
|
46
46
|
end
|
47
47
|
|
48
48
|
# Model metadata that is specific to text extraction.
|
49
|
+
# @!attribute [rw] model_hint
|
50
|
+
# @return [::String]
|
51
|
+
# Indicates the scope of model use case.
|
52
|
+
#
|
53
|
+
# * `default`: Use to train a general text extraction model. Default value.
|
54
|
+
#
|
55
|
+
# * `health_care`: Use to train a text extraction model that is tuned for
|
56
|
+
# healthcare applications.
|
49
57
|
class TextExtractionModelMetadata
|
50
58
|
include ::Google::Protobuf::MessageExts
|
51
59
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -25,7 +25,7 @@ module Google
|
|
25
25
|
# @return [::String]
|
26
26
|
# The server-assigned name, which is only unique within the same service that
|
27
27
|
# originally returns it. If you use the default HTTP mapping, the
|
28
|
-
# `name` should
|
28
|
+
# `name` should be a resource name ending with `operations/{unique_id}`.
|
29
29
|
# @!attribute [rw] metadata
|
30
30
|
# @return [::Google::Protobuf::Any]
|
31
31
|
# Service-specific metadata associated with the operation. It typically
|
@@ -35,7 +35,7 @@ module Google
|
|
35
35
|
# @!attribute [rw] done
|
36
36
|
# @return [::Boolean]
|
37
37
|
# If the value is `false`, it means the operation is still in progress.
|
38
|
-
# If true
|
38
|
+
# If `true`, the operation is completed, and either `error` or `response` is
|
39
39
|
# available.
|
40
40
|
# @!attribute [rw] error
|
41
41
|
# @return [::Google::Rpc::Status]
|
@@ -67,7 +67,7 @@ module Google
|
|
67
67
|
# The request message for Operations.ListOperations.
|
68
68
|
# @!attribute [rw] name
|
69
69
|
# @return [::String]
|
70
|
-
# The name of the operation
|
70
|
+
# The name of the operation's parent resource.
|
71
71
|
# @!attribute [rw] filter
|
72
72
|
# @return [::String]
|
73
73
|
# The standard list filter.
|
@@ -112,6 +112,20 @@ module Google
|
|
112
112
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
113
113
|
end
|
114
114
|
|
115
|
+
# The request message for Operations.WaitOperation.
|
116
|
+
# @!attribute [rw] name
|
117
|
+
# @return [::String]
|
118
|
+
# The name of the operation resource to wait on.
|
119
|
+
# @!attribute [rw] timeout
|
120
|
+
# @return [::Google::Protobuf::Duration]
|
121
|
+
# The maximum duration to wait before timing out. If left blank, the wait
|
122
|
+
# will be at most the time permitted by the underlying HTTP/RPC protocol.
|
123
|
+
# If RPC context deadline is also specified, the shorter one will be used.
|
124
|
+
class WaitOperationRequest
|
125
|
+
include ::Google::Protobuf::MessageExts
|
126
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
127
|
+
end
|
128
|
+
|
115
129
|
# A message representing the message types used by a long-running operation.
|
116
130
|
#
|
117
131
|
# Example:
|
@@ -57,10 +57,13 @@ module Google
|
|
57
57
|
# Example 4: Pack and unpack a message in Go
|
58
58
|
#
|
59
59
|
# foo := &pb.Foo{...}
|
60
|
-
# any, err :=
|
60
|
+
# any, err := anypb.New(foo)
|
61
|
+
# if err != nil {
|
62
|
+
# ...
|
63
|
+
# }
|
61
64
|
# ...
|
62
65
|
# foo := &pb.Foo{}
|
63
|
-
# if err :=
|
66
|
+
# if err := any.UnmarshalTo(foo); err != nil {
|
64
67
|
# ...
|
65
68
|
# }
|
66
69
|
#
|
@@ -70,7 +70,16 @@ module Google
|
|
70
70
|
# .setNanos((int) ((millis % 1000) * 1000000)).build();
|
71
71
|
#
|
72
72
|
#
|
73
|
-
# Example 5: Compute Timestamp from
|
73
|
+
# Example 5: Compute Timestamp from Java `Instant.now()`.
|
74
|
+
#
|
75
|
+
# Instant now = Instant.now();
|
76
|
+
#
|
77
|
+
# Timestamp timestamp =
|
78
|
+
# Timestamp.newBuilder().setSeconds(now.getEpochSecond())
|
79
|
+
# .setNanos(now.getNano()).build();
|
80
|
+
#
|
81
|
+
#
|
82
|
+
# Example 6: Compute Timestamp from current time in Python.
|
74
83
|
#
|
75
84
|
# timestamp = Timestamp()
|
76
85
|
# timestamp.GetCurrentTime()
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-automl-v1beta1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-03-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -44,14 +44,14 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 1.
|
47
|
+
version: 1.25.1
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 1.
|
54
|
+
version: 1.25.1
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: minitest
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -154,7 +154,9 @@ description: AutoML makes the power of machine learning available to you even if
|
|
154
154
|
have limited knowledge of machine learning. You can use AutoML to build on Google's
|
155
155
|
machine learning capabilities to create your own custom machine learning models
|
156
156
|
that are tailored to your business needs, and then integrate those models into your
|
157
|
-
applications and web sites.
|
157
|
+
applications and web sites. Note that google-cloud-automl-v1beta1 is a version-specific
|
158
|
+
client library. For most uses, we recommend installing the main client library google-cloud-automl
|
159
|
+
instead. See the readme for more details.
|
158
160
|
email: googleapis-packages@google.com
|
159
161
|
executables: []
|
160
162
|
extensions: []
|
@@ -166,6 +168,7 @@ files:
|
|
166
168
|
- README.md
|
167
169
|
- lib/google-cloud-automl-v1beta1.rb
|
168
170
|
- lib/google/cloud/automl/v1beta1.rb
|
171
|
+
- lib/google/cloud/automl/v1beta1/_helpers.rb
|
169
172
|
- lib/google/cloud/automl/v1beta1/annotation_payload_pb.rb
|
170
173
|
- lib/google/cloud/automl/v1beta1/annotation_spec_pb.rb
|
171
174
|
- lib/google/cloud/automl/v1beta1/automl.rb
|
@@ -258,14 +261,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
258
261
|
requirements:
|
259
262
|
- - ">="
|
260
263
|
- !ruby/object:Gem::Version
|
261
|
-
version: '2.
|
264
|
+
version: '2.5'
|
262
265
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
263
266
|
requirements:
|
264
267
|
- - ">="
|
265
268
|
- !ruby/object:Gem::Version
|
266
269
|
version: '0'
|
267
270
|
requirements: []
|
268
|
-
rubygems_version: 3.
|
271
|
+
rubygems_version: 3.2.13
|
269
272
|
signing_key:
|
270
273
|
specification_version: 4
|
271
274
|
summary: API Client library for the Cloud AutoML V1beta1 API
|