google-cloud-automl-v1 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.yardopts +12 -0
- data/AUTHENTICATION.md +169 -0
- data/LICENSE.md +203 -0
- data/README.md +71 -0
- data/lib/google/cloud/automl/v1/annotation_payload_pb.rb +37 -0
- data/lib/google/cloud/automl/v1/annotation_spec_pb.rb +26 -0
- data/lib/google/cloud/automl/v1/automl/client.rb +1851 -0
- data/lib/google/cloud/automl/v1/automl/credentials.rb +51 -0
- data/lib/google/cloud/automl/v1/automl/operations.rb +564 -0
- data/lib/google/cloud/automl/v1/automl/paths.rb +130 -0
- data/lib/google/cloud/automl/v1/automl.rb +63 -0
- data/lib/google/cloud/automl/v1/classification_pb.rb +65 -0
- data/lib/google/cloud/automl/v1/data_items_pb.rb +87 -0
- data/lib/google/cloud/automl/v1/dataset_pb.rb +42 -0
- data/lib/google/cloud/automl/v1/detection_pb.rb +45 -0
- data/lib/google/cloud/automl/v1/geometry_pb.rb +28 -0
- data/lib/google/cloud/automl/v1/image_pb.rb +57 -0
- data/lib/google/cloud/automl/v1/io_pb.rb +65 -0
- data/lib/google/cloud/automl/v1/model_evaluation_pb.rb +41 -0
- data/lib/google/cloud/automl/v1/model_pb.rb +49 -0
- data/lib/google/cloud/automl/v1/operations_pb.rb +88 -0
- data/lib/google/cloud/automl/v1/prediction_service/client.rb +634 -0
- data/lib/google/cloud/automl/v1/prediction_service/credentials.rb +51 -0
- data/lib/google/cloud/automl/v1/prediction_service/operations.rb +564 -0
- data/lib/google/cloud/automl/v1/prediction_service/paths.rb +52 -0
- data/lib/google/cloud/automl/v1/prediction_service.rb +53 -0
- data/lib/google/cloud/automl/v1/prediction_service_pb.rb +50 -0
- data/lib/google/cloud/automl/v1/prediction_service_services_pb.rb +103 -0
- data/lib/google/cloud/automl/v1/service_pb.rb +139 -0
- data/lib/google/cloud/automl/v1/service_services_pb.rb +137 -0
- data/lib/google/cloud/automl/v1/text_extraction_pb.rb +39 -0
- data/lib/google/cloud/automl/v1/text_pb.rb +41 -0
- data/lib/google/cloud/automl/v1/text_segment_pb.rb +25 -0
- data/lib/google/cloud/automl/v1/text_sentiment_pb.rb +35 -0
- data/lib/google/cloud/automl/v1/translation_pb.rb +41 -0
- data/lib/google/cloud/automl/v1/version.rb +28 -0
- data/lib/google/cloud/automl/v1.rb +36 -0
- data/lib/google/cloud/common_resources_pb.rb +15 -0
- data/lib/google-cloud-automl-v1.rb +21 -0
- data/proto_docs/README.md +4 -0
- data/proto_docs/google/api/field_behavior.rb +59 -0
- data/proto_docs/google/api/resource.rb +247 -0
- data/proto_docs/google/cloud/automl/v1/annotation_payload.rb +60 -0
- data/proto_docs/google/cloud/automl/v1/annotation_spec.rb +46 -0
- data/proto_docs/google/cloud/automl/v1/classification.rb +191 -0
- data/proto_docs/google/cloud/automl/v1/data_items.rb +197 -0
- data/proto_docs/google/cloud/automl/v1/dataset.rb +94 -0
- data/proto_docs/google/cloud/automl/v1/detection.rb +97 -0
- data/proto_docs/google/cloud/automl/v1/geometry.rb +53 -0
- data/proto_docs/google/cloud/automl/v1/image.rb +217 -0
- data/proto_docs/google/cloud/automl/v1/io.rb +1402 -0
- data/proto_docs/google/cloud/automl/v1/model.rb +109 -0
- data/proto_docs/google/cloud/automl/v1/model_evaluation.rb +94 -0
- data/proto_docs/google/cloud/automl/v1/operations.rb +180 -0
- data/proto_docs/google/cloud/automl/v1/prediction_service.rb +271 -0
- data/proto_docs/google/cloud/automl/v1/service.rb +322 -0
- data/proto_docs/google/cloud/automl/v1/text.rb +76 -0
- data/proto_docs/google/cloud/automl/v1/text_extraction.rb +73 -0
- data/proto_docs/google/cloud/automl/v1/text_segment.rb +44 -0
- data/proto_docs/google/cloud/automl/v1/text_sentiment.rb +82 -0
- data/proto_docs/google/cloud/automl/v1/translation.rb +79 -0
- data/proto_docs/google/longrunning/operations.rb +150 -0
- data/proto_docs/google/protobuf/any.rb +138 -0
- data/proto_docs/google/protobuf/duration.rb +98 -0
- data/proto_docs/google/protobuf/empty.rb +36 -0
- data/proto_docs/google/protobuf/field_mask.rb +229 -0
- data/proto_docs/google/protobuf/struct.rb +96 -0
- data/proto_docs/google/protobuf/timestamp.rb +120 -0
- data/proto_docs/google/rpc/status.rb +46 -0
- metadata +227 -0
@@ -0,0 +1,322 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2020 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Cloud
|
22
|
+
module AutoML
|
23
|
+
module V1
|
24
|
+
# Request message for {Google::Cloud::AutoML::V1::AutoML::Client#create_dataset AutoMl.CreateDataset}.
|
25
|
+
# @!attribute [rw] parent
|
26
|
+
# @return [String]
|
27
|
+
# Required. The resource name of the project to create the dataset for.
|
28
|
+
# @!attribute [rw] dataset
|
29
|
+
# @return [Google::Cloud::AutoML::V1::Dataset]
|
30
|
+
# Required. The dataset to create.
|
31
|
+
class CreateDatasetRequest
|
32
|
+
include Google::Protobuf::MessageExts
|
33
|
+
extend Google::Protobuf::MessageExts::ClassMethods
|
34
|
+
end
|
35
|
+
|
36
|
+
# Request message for {Google::Cloud::AutoML::V1::AutoML::Client#get_dataset AutoMl.GetDataset}.
|
37
|
+
# @!attribute [rw] name
|
38
|
+
# @return [String]
|
39
|
+
# Required. The resource name of the dataset to retrieve.
|
40
|
+
class GetDatasetRequest
|
41
|
+
include Google::Protobuf::MessageExts
|
42
|
+
extend Google::Protobuf::MessageExts::ClassMethods
|
43
|
+
end
|
44
|
+
|
45
|
+
# Request message for {Google::Cloud::AutoML::V1::AutoML::Client#list_datasets AutoMl.ListDatasets}.
|
46
|
+
# @!attribute [rw] parent
|
47
|
+
# @return [String]
|
48
|
+
# Required. The resource name of the project from which to list datasets.
|
49
|
+
# @!attribute [rw] filter
|
50
|
+
# @return [String]
|
51
|
+
# An expression for filtering the results of the request.
|
52
|
+
#
|
53
|
+
# * `dataset_metadata` - for existence of the case (e.g.
|
54
|
+
# image_classification_dataset_metadata:*). Some examples of using the filter are:
|
55
|
+
#
|
56
|
+
# * `translation_dataset_metadata:*` --> The dataset has
|
57
|
+
# translation_dataset_metadata.
|
58
|
+
# @!attribute [rw] page_size
|
59
|
+
# @return [Integer]
|
60
|
+
# Requested page size. Server may return fewer results than requested.
|
61
|
+
# If unspecified, server will pick a default size.
|
62
|
+
# @!attribute [rw] page_token
|
63
|
+
# @return [String]
|
64
|
+
# A token identifying a page of results for the server to return
|
65
|
+
# Typically obtained via
|
66
|
+
# {Google::Cloud::AutoML::V1::ListDatasetsResponse#next_page_token ListDatasetsResponse.next_page_token} of the previous
|
67
|
+
# {Google::Cloud::AutoML::V1::AutoML::Client#list_datasets AutoMl.ListDatasets} call.
|
68
|
+
class ListDatasetsRequest
|
69
|
+
include Google::Protobuf::MessageExts
|
70
|
+
extend Google::Protobuf::MessageExts::ClassMethods
|
71
|
+
end
|
72
|
+
|
73
|
+
# Response message for {Google::Cloud::AutoML::V1::AutoML::Client#list_datasets AutoMl.ListDatasets}.
|
74
|
+
# @!attribute [rw] datasets
|
75
|
+
# @return [Array<Google::Cloud::AutoML::V1::Dataset>]
|
76
|
+
# The datasets read.
|
77
|
+
# @!attribute [rw] next_page_token
|
78
|
+
# @return [String]
|
79
|
+
# A token to retrieve next page of results.
|
80
|
+
# Pass to {Google::Cloud::AutoML::V1::ListDatasetsRequest#page_token ListDatasetsRequest.page_token} to obtain that page.
|
81
|
+
class ListDatasetsResponse
|
82
|
+
include Google::Protobuf::MessageExts
|
83
|
+
extend Google::Protobuf::MessageExts::ClassMethods
|
84
|
+
end
|
85
|
+
|
86
|
+
# Request message for {Google::Cloud::AutoML::V1::AutoML::Client#update_dataset AutoMl.UpdateDataset}
|
87
|
+
# @!attribute [rw] dataset
|
88
|
+
# @return [Google::Cloud::AutoML::V1::Dataset]
|
89
|
+
# Required. The dataset which replaces the resource on the server.
|
90
|
+
# @!attribute [rw] update_mask
|
91
|
+
# @return [Google::Protobuf::FieldMask]
|
92
|
+
# Required. The update mask applies to the resource.
|
93
|
+
class UpdateDatasetRequest
|
94
|
+
include Google::Protobuf::MessageExts
|
95
|
+
extend Google::Protobuf::MessageExts::ClassMethods
|
96
|
+
end
|
97
|
+
|
98
|
+
# Request message for {Google::Cloud::AutoML::V1::AutoML::Client#delete_dataset AutoMl.DeleteDataset}.
|
99
|
+
# @!attribute [rw] name
|
100
|
+
# @return [String]
|
101
|
+
# Required. The resource name of the dataset to delete.
|
102
|
+
class DeleteDatasetRequest
|
103
|
+
include Google::Protobuf::MessageExts
|
104
|
+
extend Google::Protobuf::MessageExts::ClassMethods
|
105
|
+
end
|
106
|
+
|
107
|
+
# Request message for {Google::Cloud::AutoML::V1::AutoML::Client#import_data AutoMl.ImportData}.
|
108
|
+
# @!attribute [rw] name
|
109
|
+
# @return [String]
|
110
|
+
# Required. Dataset name. Dataset must already exist. All imported
|
111
|
+
# annotations and examples will be added.
|
112
|
+
# @!attribute [rw] input_config
|
113
|
+
# @return [Google::Cloud::AutoML::V1::InputConfig]
|
114
|
+
# Required. The desired input location and its domain specific semantics,
|
115
|
+
# if any.
|
116
|
+
class ImportDataRequest
|
117
|
+
include Google::Protobuf::MessageExts
|
118
|
+
extend Google::Protobuf::MessageExts::ClassMethods
|
119
|
+
end
|
120
|
+
|
121
|
+
# Request message for {Google::Cloud::AutoML::V1::AutoML::Client#export_data AutoMl.ExportData}.
|
122
|
+
# @!attribute [rw] name
|
123
|
+
# @return [String]
|
124
|
+
# Required. The resource name of the dataset.
|
125
|
+
# @!attribute [rw] output_config
|
126
|
+
# @return [Google::Cloud::AutoML::V1::OutputConfig]
|
127
|
+
# Required. The desired output location.
|
128
|
+
class ExportDataRequest
|
129
|
+
include Google::Protobuf::MessageExts
|
130
|
+
extend Google::Protobuf::MessageExts::ClassMethods
|
131
|
+
end
|
132
|
+
|
133
|
+
# Request message for {Google::Cloud::AutoML::V1::AutoML::Client#get_annotation_spec AutoMl.GetAnnotationSpec}.
|
134
|
+
# @!attribute [rw] name
|
135
|
+
# @return [String]
|
136
|
+
# Required. The resource name of the annotation spec to retrieve.
|
137
|
+
class GetAnnotationSpecRequest
|
138
|
+
include Google::Protobuf::MessageExts
|
139
|
+
extend Google::Protobuf::MessageExts::ClassMethods
|
140
|
+
end
|
141
|
+
|
142
|
+
# Request message for {Google::Cloud::AutoML::V1::AutoML::Client#create_model AutoMl.CreateModel}.
|
143
|
+
# @!attribute [rw] parent
|
144
|
+
# @return [String]
|
145
|
+
# Required. Resource name of the parent project where the model is being created.
|
146
|
+
# @!attribute [rw] model
|
147
|
+
# @return [Google::Cloud::AutoML::V1::Model]
|
148
|
+
# Required. The model to create.
|
149
|
+
class CreateModelRequest
|
150
|
+
include Google::Protobuf::MessageExts
|
151
|
+
extend Google::Protobuf::MessageExts::ClassMethods
|
152
|
+
end
|
153
|
+
|
154
|
+
# Request message for {Google::Cloud::AutoML::V1::AutoML::Client#get_model AutoMl.GetModel}.
|
155
|
+
# @!attribute [rw] name
|
156
|
+
# @return [String]
|
157
|
+
# Required. Resource name of the model.
|
158
|
+
class GetModelRequest
|
159
|
+
include Google::Protobuf::MessageExts
|
160
|
+
extend Google::Protobuf::MessageExts::ClassMethods
|
161
|
+
end
|
162
|
+
|
163
|
+
# Request message for {Google::Cloud::AutoML::V1::AutoML::Client#list_models AutoMl.ListModels}.
|
164
|
+
# @!attribute [rw] parent
|
165
|
+
# @return [String]
|
166
|
+
# Required. Resource name of the project, from which to list the models.
|
167
|
+
# @!attribute [rw] filter
|
168
|
+
# @return [String]
|
169
|
+
# An expression for filtering the results of the request.
|
170
|
+
#
|
171
|
+
# * `model_metadata` - for existence of the case (e.g.
|
172
|
+
# video_classification_model_metadata:*).
|
173
|
+
# * `dataset_id` - for = or !=. Some examples of using the filter are:
|
174
|
+
#
|
175
|
+
# * `image_classification_model_metadata:*` --> The model has
|
176
|
+
# image_classification_model_metadata.
|
177
|
+
# * `dataset_id=5` --> The model was created from a dataset with ID 5.
|
178
|
+
# @!attribute [rw] page_size
|
179
|
+
# @return [Integer]
|
180
|
+
# Requested page size.
|
181
|
+
# @!attribute [rw] page_token
|
182
|
+
# @return [String]
|
183
|
+
# A token identifying a page of results for the server to return
|
184
|
+
# Typically obtained via
|
185
|
+
# {Google::Cloud::AutoML::V1::ListModelsResponse#next_page_token ListModelsResponse.next_page_token} of the previous
|
186
|
+
# {Google::Cloud::AutoML::V1::AutoML::Client#list_models AutoMl.ListModels} call.
|
187
|
+
class ListModelsRequest
|
188
|
+
include Google::Protobuf::MessageExts
|
189
|
+
extend Google::Protobuf::MessageExts::ClassMethods
|
190
|
+
end
|
191
|
+
|
192
|
+
# Response message for {Google::Cloud::AutoML::V1::AutoML::Client#list_models AutoMl.ListModels}.
|
193
|
+
# @!attribute [rw] model
|
194
|
+
# @return [Array<Google::Cloud::AutoML::V1::Model>]
|
195
|
+
# List of models in the requested page.
|
196
|
+
# @!attribute [rw] next_page_token
|
197
|
+
# @return [String]
|
198
|
+
# A token to retrieve next page of results.
|
199
|
+
# Pass to {Google::Cloud::AutoML::V1::ListModelsRequest#page_token ListModelsRequest.page_token} to obtain that page.
|
200
|
+
class ListModelsResponse
|
201
|
+
include Google::Protobuf::MessageExts
|
202
|
+
extend Google::Protobuf::MessageExts::ClassMethods
|
203
|
+
end
|
204
|
+
|
205
|
+
# Request message for {Google::Cloud::AutoML::V1::AutoML::Client#delete_model AutoMl.DeleteModel}.
|
206
|
+
# @!attribute [rw] name
|
207
|
+
# @return [String]
|
208
|
+
# Required. Resource name of the model being deleted.
|
209
|
+
class DeleteModelRequest
|
210
|
+
include Google::Protobuf::MessageExts
|
211
|
+
extend Google::Protobuf::MessageExts::ClassMethods
|
212
|
+
end
|
213
|
+
|
214
|
+
# Request message for {Google::Cloud::AutoML::V1::AutoML::Client#update_model AutoMl.UpdateModel}
|
215
|
+
# @!attribute [rw] model
|
216
|
+
# @return [Google::Cloud::AutoML::V1::Model]
|
217
|
+
# Required. The model which replaces the resource on the server.
|
218
|
+
# @!attribute [rw] update_mask
|
219
|
+
# @return [Google::Protobuf::FieldMask]
|
220
|
+
# Required. The update mask applies to the resource.
|
221
|
+
class UpdateModelRequest
|
222
|
+
include Google::Protobuf::MessageExts
|
223
|
+
extend Google::Protobuf::MessageExts::ClassMethods
|
224
|
+
end
|
225
|
+
|
226
|
+
# Request message for {Google::Cloud::AutoML::V1::AutoML::Client#deploy_model AutoMl.DeployModel}.
|
227
|
+
# @!attribute [rw] image_object_detection_model_deployment_metadata
|
228
|
+
# @return [Google::Cloud::AutoML::V1::ImageObjectDetectionModelDeploymentMetadata]
|
229
|
+
# Model deployment metadata specific to Image Object Detection.
|
230
|
+
# @!attribute [rw] image_classification_model_deployment_metadata
|
231
|
+
# @return [Google::Cloud::AutoML::V1::ImageClassificationModelDeploymentMetadata]
|
232
|
+
# Model deployment metadata specific to Image Classification.
|
233
|
+
# @!attribute [rw] name
|
234
|
+
# @return [String]
|
235
|
+
# Required. Resource name of the model to deploy.
|
236
|
+
class DeployModelRequest
|
237
|
+
include Google::Protobuf::MessageExts
|
238
|
+
extend Google::Protobuf::MessageExts::ClassMethods
|
239
|
+
end
|
240
|
+
|
241
|
+
# Request message for {Google::Cloud::AutoML::V1::AutoML::Client#undeploy_model AutoMl.UndeployModel}.
|
242
|
+
# @!attribute [rw] name
|
243
|
+
# @return [String]
|
244
|
+
# Required. Resource name of the model to undeploy.
|
245
|
+
class UndeployModelRequest
|
246
|
+
include Google::Protobuf::MessageExts
|
247
|
+
extend Google::Protobuf::MessageExts::ClassMethods
|
248
|
+
end
|
249
|
+
|
250
|
+
# Request message for {Google::Cloud::AutoML::V1::AutoML::Client#export_model AutoMl.ExportModel}.
|
251
|
+
# Models need to be enabled for exporting, otherwise an error code will be
|
252
|
+
# returned.
|
253
|
+
# @!attribute [rw] name
|
254
|
+
# @return [String]
|
255
|
+
# Required. The resource name of the model to export.
|
256
|
+
# @!attribute [rw] output_config
|
257
|
+
# @return [Google::Cloud::AutoML::V1::ModelExportOutputConfig]
|
258
|
+
# Required. The desired output location and configuration.
|
259
|
+
class ExportModelRequest
|
260
|
+
include Google::Protobuf::MessageExts
|
261
|
+
extend Google::Protobuf::MessageExts::ClassMethods
|
262
|
+
end
|
263
|
+
|
264
|
+
# Request message for {Google::Cloud::AutoML::V1::AutoML::Client#get_model_evaluation AutoMl.GetModelEvaluation}.
|
265
|
+
# @!attribute [rw] name
|
266
|
+
# @return [String]
|
267
|
+
# Required. Resource name for the model evaluation.
|
268
|
+
class GetModelEvaluationRequest
|
269
|
+
include Google::Protobuf::MessageExts
|
270
|
+
extend Google::Protobuf::MessageExts::ClassMethods
|
271
|
+
end
|
272
|
+
|
273
|
+
# Request message for {Google::Cloud::AutoML::V1::AutoML::Client#list_model_evaluations AutoMl.ListModelEvaluations}.
|
274
|
+
# @!attribute [rw] parent
|
275
|
+
# @return [String]
|
276
|
+
# Required. Resource name of the model to list the model evaluations for.
|
277
|
+
# If modelId is set as "-", this will list model evaluations from across all
|
278
|
+
# models of the parent location.
|
279
|
+
# @!attribute [rw] filter
|
280
|
+
# @return [String]
|
281
|
+
# Required. An expression for filtering the results of the request.
|
282
|
+
#
|
283
|
+
# * `annotation_spec_id` - for =, != or existence. See example below for
|
284
|
+
# the last.
|
285
|
+
#
|
286
|
+
# Some examples of using the filter are:
|
287
|
+
#
|
288
|
+
# * `annotation_spec_id!=4` --> The model evaluation was done for
|
289
|
+
# annotation spec with ID different than 4.
|
290
|
+
# * `NOT annotation_spec_id:*` --> The model evaluation was done for
|
291
|
+
# aggregate of all annotation specs.
|
292
|
+
# @!attribute [rw] page_size
|
293
|
+
# @return [Integer]
|
294
|
+
# Requested page size.
|
295
|
+
# @!attribute [rw] page_token
|
296
|
+
# @return [String]
|
297
|
+
# A token identifying a page of results for the server to return.
|
298
|
+
# Typically obtained via
|
299
|
+
# {Google::Cloud::AutoML::V1::ListModelEvaluationsResponse#next_page_token ListModelEvaluationsResponse.next_page_token} of the previous
|
300
|
+
# {Google::Cloud::AutoML::V1::AutoML::Client#list_model_evaluations AutoMl.ListModelEvaluations} call.
|
301
|
+
class ListModelEvaluationsRequest
|
302
|
+
include Google::Protobuf::MessageExts
|
303
|
+
extend Google::Protobuf::MessageExts::ClassMethods
|
304
|
+
end
|
305
|
+
|
306
|
+
# Response message for {Google::Cloud::AutoML::V1::AutoML::Client#list_model_evaluations AutoMl.ListModelEvaluations}.
|
307
|
+
# @!attribute [rw] model_evaluation
|
308
|
+
# @return [Array<Google::Cloud::AutoML::V1::ModelEvaluation>]
|
309
|
+
# List of model evaluations in the requested page.
|
310
|
+
# @!attribute [rw] next_page_token
|
311
|
+
# @return [String]
|
312
|
+
# A token to retrieve next page of results.
|
313
|
+
# Pass to the {Google::Cloud::AutoML::V1::ListModelEvaluationsRequest#page_token ListModelEvaluationsRequest.page_token} field of a new
|
314
|
+
# {Google::Cloud::AutoML::V1::AutoML::Client#list_model_evaluations AutoMl.ListModelEvaluations} request to obtain that page.
|
315
|
+
class ListModelEvaluationsResponse
|
316
|
+
include Google::Protobuf::MessageExts
|
317
|
+
extend Google::Protobuf::MessageExts::ClassMethods
|
318
|
+
end
|
319
|
+
end
|
320
|
+
end
|
321
|
+
end
|
322
|
+
end
|
@@ -0,0 +1,76 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2020 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Cloud
|
22
|
+
module AutoML
|
23
|
+
module V1
|
24
|
+
# Dataset metadata for classification.
|
25
|
+
# @!attribute [rw] classification_type
|
26
|
+
# @return [Google::Cloud::AutoML::V1::ClassificationType]
|
27
|
+
# Required. Type of the classification problem.
|
28
|
+
class TextClassificationDatasetMetadata
|
29
|
+
include Google::Protobuf::MessageExts
|
30
|
+
extend Google::Protobuf::MessageExts::ClassMethods
|
31
|
+
end
|
32
|
+
|
33
|
+
# Model metadata that is specific to text classification.
|
34
|
+
# @!attribute [rw] classification_type
|
35
|
+
# @return [Google::Cloud::AutoML::V1::ClassificationType]
|
36
|
+
# Output only. Classification type of the dataset used to train this model.
|
37
|
+
class TextClassificationModelMetadata
|
38
|
+
include Google::Protobuf::MessageExts
|
39
|
+
extend Google::Protobuf::MessageExts::ClassMethods
|
40
|
+
end
|
41
|
+
|
42
|
+
# Dataset metadata that is specific to text extraction
|
43
|
+
class TextExtractionDatasetMetadata
|
44
|
+
include Google::Protobuf::MessageExts
|
45
|
+
extend Google::Protobuf::MessageExts::ClassMethods
|
46
|
+
end
|
47
|
+
|
48
|
+
# Model metadata that is specific to text extraction.
|
49
|
+
class TextExtractionModelMetadata
|
50
|
+
include Google::Protobuf::MessageExts
|
51
|
+
extend Google::Protobuf::MessageExts::ClassMethods
|
52
|
+
end
|
53
|
+
|
54
|
+
# Dataset metadata for text sentiment.
|
55
|
+
# @!attribute [rw] sentiment_max
|
56
|
+
# @return [Integer]
|
57
|
+
# Required. A sentiment is expressed as an integer ordinal, where higher value
|
58
|
+
# means a more positive sentiment. The range of sentiments that will be used
|
59
|
+
# is between 0 and sentiment_max (inclusive on both ends), and all the values
|
60
|
+
# in the range must be represented in the dataset before a model can be
|
61
|
+
# created.
|
62
|
+
# sentiment_max value must be between 1 and 10 (inclusive).
|
63
|
+
class TextSentimentDatasetMetadata
|
64
|
+
include Google::Protobuf::MessageExts
|
65
|
+
extend Google::Protobuf::MessageExts::ClassMethods
|
66
|
+
end
|
67
|
+
|
68
|
+
# Model metadata that is specific to text sentiment.
|
69
|
+
class TextSentimentModelMetadata
|
70
|
+
include Google::Protobuf::MessageExts
|
71
|
+
extend Google::Protobuf::MessageExts::ClassMethods
|
72
|
+
end
|
73
|
+
end
|
74
|
+
end
|
75
|
+
end
|
76
|
+
end
|
@@ -0,0 +1,73 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2020 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Cloud
|
22
|
+
module AutoML
|
23
|
+
module V1
|
24
|
+
# Annotation for identifying spans of text.
|
25
|
+
# @!attribute [rw] text_segment
|
26
|
+
# @return [Google::Cloud::AutoML::V1::TextSegment]
|
27
|
+
# An entity annotation will set this, which is the part of the original
|
28
|
+
# text to which the annotation pertains.
|
29
|
+
# @!attribute [rw] score
|
30
|
+
# @return [Float]
|
31
|
+
# Output only. A confidence estimate between 0.0 and 1.0. A higher value
|
32
|
+
# means greater confidence in correctness of the annotation.
|
33
|
+
class TextExtractionAnnotation
|
34
|
+
include Google::Protobuf::MessageExts
|
35
|
+
extend Google::Protobuf::MessageExts::ClassMethods
|
36
|
+
end
|
37
|
+
|
38
|
+
# Model evaluation metrics for text extraction problems.
|
39
|
+
# @!attribute [rw] au_prc
|
40
|
+
# @return [Float]
|
41
|
+
# Output only. The Area under precision recall curve metric.
|
42
|
+
# @!attribute [rw] confidence_metrics_entries
|
43
|
+
# @return [Array<Google::Cloud::AutoML::V1::TextExtractionEvaluationMetrics::ConfidenceMetricsEntry>]
|
44
|
+
# Output only. Metrics that have confidence thresholds.
|
45
|
+
# Precision-recall curve can be derived from it.
|
46
|
+
class TextExtractionEvaluationMetrics
|
47
|
+
include Google::Protobuf::MessageExts
|
48
|
+
extend Google::Protobuf::MessageExts::ClassMethods
|
49
|
+
|
50
|
+
# Metrics for a single confidence threshold.
|
51
|
+
# @!attribute [rw] confidence_threshold
|
52
|
+
# @return [Float]
|
53
|
+
# Output only. The confidence threshold value used to compute the metrics.
|
54
|
+
# Only annotations with score of at least this threshold are considered to
|
55
|
+
# be ones the model would return.
|
56
|
+
# @!attribute [rw] recall
|
57
|
+
# @return [Float]
|
58
|
+
# Output only. Recall under the given confidence threshold.
|
59
|
+
# @!attribute [rw] precision
|
60
|
+
# @return [Float]
|
61
|
+
# Output only. Precision under the given confidence threshold.
|
62
|
+
# @!attribute [rw] f1_score
|
63
|
+
# @return [Float]
|
64
|
+
# Output only. The harmonic mean of recall and precision.
|
65
|
+
class ConfidenceMetricsEntry
|
66
|
+
include Google::Protobuf::MessageExts
|
67
|
+
extend Google::Protobuf::MessageExts::ClassMethods
|
68
|
+
end
|
69
|
+
end
|
70
|
+
end
|
71
|
+
end
|
72
|
+
end
|
73
|
+
end
|