google-cloud-automl-v1 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (71) hide show
  1. checksums.yaml +7 -0
  2. data/.yardopts +12 -0
  3. data/AUTHENTICATION.md +169 -0
  4. data/LICENSE.md +203 -0
  5. data/README.md +71 -0
  6. data/lib/google/cloud/automl/v1/annotation_payload_pb.rb +37 -0
  7. data/lib/google/cloud/automl/v1/annotation_spec_pb.rb +26 -0
  8. data/lib/google/cloud/automl/v1/automl/client.rb +1851 -0
  9. data/lib/google/cloud/automl/v1/automl/credentials.rb +51 -0
  10. data/lib/google/cloud/automl/v1/automl/operations.rb +564 -0
  11. data/lib/google/cloud/automl/v1/automl/paths.rb +130 -0
  12. data/lib/google/cloud/automl/v1/automl.rb +63 -0
  13. data/lib/google/cloud/automl/v1/classification_pb.rb +65 -0
  14. data/lib/google/cloud/automl/v1/data_items_pb.rb +87 -0
  15. data/lib/google/cloud/automl/v1/dataset_pb.rb +42 -0
  16. data/lib/google/cloud/automl/v1/detection_pb.rb +45 -0
  17. data/lib/google/cloud/automl/v1/geometry_pb.rb +28 -0
  18. data/lib/google/cloud/automl/v1/image_pb.rb +57 -0
  19. data/lib/google/cloud/automl/v1/io_pb.rb +65 -0
  20. data/lib/google/cloud/automl/v1/model_evaluation_pb.rb +41 -0
  21. data/lib/google/cloud/automl/v1/model_pb.rb +49 -0
  22. data/lib/google/cloud/automl/v1/operations_pb.rb +88 -0
  23. data/lib/google/cloud/automl/v1/prediction_service/client.rb +634 -0
  24. data/lib/google/cloud/automl/v1/prediction_service/credentials.rb +51 -0
  25. data/lib/google/cloud/automl/v1/prediction_service/operations.rb +564 -0
  26. data/lib/google/cloud/automl/v1/prediction_service/paths.rb +52 -0
  27. data/lib/google/cloud/automl/v1/prediction_service.rb +53 -0
  28. data/lib/google/cloud/automl/v1/prediction_service_pb.rb +50 -0
  29. data/lib/google/cloud/automl/v1/prediction_service_services_pb.rb +103 -0
  30. data/lib/google/cloud/automl/v1/service_pb.rb +139 -0
  31. data/lib/google/cloud/automl/v1/service_services_pb.rb +137 -0
  32. data/lib/google/cloud/automl/v1/text_extraction_pb.rb +39 -0
  33. data/lib/google/cloud/automl/v1/text_pb.rb +41 -0
  34. data/lib/google/cloud/automl/v1/text_segment_pb.rb +25 -0
  35. data/lib/google/cloud/automl/v1/text_sentiment_pb.rb +35 -0
  36. data/lib/google/cloud/automl/v1/translation_pb.rb +41 -0
  37. data/lib/google/cloud/automl/v1/version.rb +28 -0
  38. data/lib/google/cloud/automl/v1.rb +36 -0
  39. data/lib/google/cloud/common_resources_pb.rb +15 -0
  40. data/lib/google-cloud-automl-v1.rb +21 -0
  41. data/proto_docs/README.md +4 -0
  42. data/proto_docs/google/api/field_behavior.rb +59 -0
  43. data/proto_docs/google/api/resource.rb +247 -0
  44. data/proto_docs/google/cloud/automl/v1/annotation_payload.rb +60 -0
  45. data/proto_docs/google/cloud/automl/v1/annotation_spec.rb +46 -0
  46. data/proto_docs/google/cloud/automl/v1/classification.rb +191 -0
  47. data/proto_docs/google/cloud/automl/v1/data_items.rb +197 -0
  48. data/proto_docs/google/cloud/automl/v1/dataset.rb +94 -0
  49. data/proto_docs/google/cloud/automl/v1/detection.rb +97 -0
  50. data/proto_docs/google/cloud/automl/v1/geometry.rb +53 -0
  51. data/proto_docs/google/cloud/automl/v1/image.rb +217 -0
  52. data/proto_docs/google/cloud/automl/v1/io.rb +1402 -0
  53. data/proto_docs/google/cloud/automl/v1/model.rb +109 -0
  54. data/proto_docs/google/cloud/automl/v1/model_evaluation.rb +94 -0
  55. data/proto_docs/google/cloud/automl/v1/operations.rb +180 -0
  56. data/proto_docs/google/cloud/automl/v1/prediction_service.rb +271 -0
  57. data/proto_docs/google/cloud/automl/v1/service.rb +322 -0
  58. data/proto_docs/google/cloud/automl/v1/text.rb +76 -0
  59. data/proto_docs/google/cloud/automl/v1/text_extraction.rb +73 -0
  60. data/proto_docs/google/cloud/automl/v1/text_segment.rb +44 -0
  61. data/proto_docs/google/cloud/automl/v1/text_sentiment.rb +82 -0
  62. data/proto_docs/google/cloud/automl/v1/translation.rb +79 -0
  63. data/proto_docs/google/longrunning/operations.rb +150 -0
  64. data/proto_docs/google/protobuf/any.rb +138 -0
  65. data/proto_docs/google/protobuf/duration.rb +98 -0
  66. data/proto_docs/google/protobuf/empty.rb +36 -0
  67. data/proto_docs/google/protobuf/field_mask.rb +229 -0
  68. data/proto_docs/google/protobuf/struct.rb +96 -0
  69. data/proto_docs/google/protobuf/timestamp.rb +120 -0
  70. data/proto_docs/google/rpc/status.rb +46 -0
  71. metadata +227 -0
@@ -0,0 +1,94 @@
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
+ # A workspace for solving a single, particular machine learning (ML) problem.
25
+ # A workspace contains examples that may be annotated.
26
+ # @!attribute [rw] translation_dataset_metadata
27
+ # @return [Google::Cloud::AutoML::V1::TranslationDatasetMetadata]
28
+ # Metadata for a dataset used for translation.
29
+ # @!attribute [rw] image_classification_dataset_metadata
30
+ # @return [Google::Cloud::AutoML::V1::ImageClassificationDatasetMetadata]
31
+ # Metadata for a dataset used for image classification.
32
+ # @!attribute [rw] text_classification_dataset_metadata
33
+ # @return [Google::Cloud::AutoML::V1::TextClassificationDatasetMetadata]
34
+ # Metadata for a dataset used for text classification.
35
+ # @!attribute [rw] image_object_detection_dataset_metadata
36
+ # @return [Google::Cloud::AutoML::V1::ImageObjectDetectionDatasetMetadata]
37
+ # Metadata for a dataset used for image object detection.
38
+ # @!attribute [rw] text_extraction_dataset_metadata
39
+ # @return [Google::Cloud::AutoML::V1::TextExtractionDatasetMetadata]
40
+ # Metadata for a dataset used for text extraction.
41
+ # @!attribute [rw] text_sentiment_dataset_metadata
42
+ # @return [Google::Cloud::AutoML::V1::TextSentimentDatasetMetadata]
43
+ # Metadata for a dataset used for text sentiment.
44
+ # @!attribute [rw] name
45
+ # @return [String]
46
+ # Output only. The resource name of the dataset.
47
+ # Form: `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}`
48
+ # @!attribute [rw] display_name
49
+ # @return [String]
50
+ # Required. The name of the dataset to show in the interface. The name can be
51
+ # up to 32 characters long and can consist only of ASCII Latin letters A-Z
52
+ # and a-z, underscores
53
+ # (_), and ASCII digits 0-9.
54
+ # @!attribute [rw] description
55
+ # @return [String]
56
+ # User-provided description of the dataset. The description can be up to
57
+ # 25000 characters long.
58
+ # @!attribute [rw] example_count
59
+ # @return [Integer]
60
+ # Output only. The number of examples in the dataset.
61
+ # @!attribute [rw] create_time
62
+ # @return [Google::Protobuf::Timestamp]
63
+ # Output only. Timestamp when this dataset was created.
64
+ # @!attribute [rw] etag
65
+ # @return [String]
66
+ # Used to perform consistent read-modify-write updates. If not set, a blind
67
+ # "overwrite" update happens.
68
+ # @!attribute [rw] labels
69
+ # @return [Google::Protobuf::Map{String => String}]
70
+ # Optional. The labels with user-defined metadata to organize your dataset.
71
+ #
72
+ # Label keys and values can be no longer than 64 characters
73
+ # (Unicode codepoints), can only contain lowercase letters, numeric
74
+ # characters, underscores and dashes. International characters are allowed.
75
+ # Label values are optional. Label keys must start with a letter.
76
+ #
77
+ # See https://goo.gl/xmQnxf for more information on and examples of labels.
78
+ class Dataset
79
+ include Google::Protobuf::MessageExts
80
+ extend Google::Protobuf::MessageExts::ClassMethods
81
+
82
+ # @!attribute [rw] key
83
+ # @return [String]
84
+ # @!attribute [rw] value
85
+ # @return [String]
86
+ class LabelsEntry
87
+ include Google::Protobuf::MessageExts
88
+ extend Google::Protobuf::MessageExts::ClassMethods
89
+ end
90
+ end
91
+ end
92
+ end
93
+ end
94
+ end
@@ -0,0 +1,97 @@
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 details for image object detection.
25
+ # @!attribute [rw] bounding_box
26
+ # @return [Google::Cloud::AutoML::V1::BoundingPoly]
27
+ # Output only. The rectangle representing the object location.
28
+ # @!attribute [rw] score
29
+ # @return [Float]
30
+ # Output only. The confidence that this annotation is positive for the parent example,
31
+ # value in [0, 1], higher means higher positivity confidence.
32
+ class ImageObjectDetectionAnnotation
33
+ include Google::Protobuf::MessageExts
34
+ extend Google::Protobuf::MessageExts::ClassMethods
35
+ end
36
+
37
+ # Bounding box matching model metrics for a single intersection-over-union
38
+ # threshold and multiple label match confidence thresholds.
39
+ # @!attribute [rw] iou_threshold
40
+ # @return [Float]
41
+ # Output only. The intersection-over-union threshold value used to compute
42
+ # this metrics entry.
43
+ # @!attribute [rw] mean_average_precision
44
+ # @return [Float]
45
+ # Output only. The mean average precision, most often close to au_prc.
46
+ # @!attribute [rw] confidence_metrics_entries
47
+ # @return [Array<Google::Cloud::AutoML::V1::BoundingBoxMetricsEntry::ConfidenceMetricsEntry>]
48
+ # Output only. Metrics for each label-match confidence_threshold from
49
+ # 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99. Precision-recall curve is
50
+ # derived from them.
51
+ class BoundingBoxMetricsEntry
52
+ include Google::Protobuf::MessageExts
53
+ extend Google::Protobuf::MessageExts::ClassMethods
54
+
55
+ # Metrics for a single confidence threshold.
56
+ # @!attribute [rw] confidence_threshold
57
+ # @return [Float]
58
+ # Output only. The confidence threshold value used to compute the metrics.
59
+ # @!attribute [rw] recall
60
+ # @return [Float]
61
+ # Output only. Recall under the given confidence threshold.
62
+ # @!attribute [rw] precision
63
+ # @return [Float]
64
+ # Output only. Precision under the given confidence threshold.
65
+ # @!attribute [rw] f1_score
66
+ # @return [Float]
67
+ # Output only. The harmonic mean of recall and precision.
68
+ class ConfidenceMetricsEntry
69
+ include Google::Protobuf::MessageExts
70
+ extend Google::Protobuf::MessageExts::ClassMethods
71
+ end
72
+ end
73
+
74
+ # Model evaluation metrics for image object detection problems.
75
+ # Evaluates prediction quality of labeled bounding boxes.
76
+ # @!attribute [rw] evaluated_bounding_box_count
77
+ # @return [Integer]
78
+ # Output only. The total number of bounding boxes (i.e. summed over all
79
+ # images) the ground truth used to create this evaluation had.
80
+ # @!attribute [rw] bounding_box_metrics_entries
81
+ # @return [Array<Google::Cloud::AutoML::V1::BoundingBoxMetricsEntry>]
82
+ # Output only. The bounding boxes match metrics for each
83
+ # Intersection-over-union threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99
84
+ # and each label confidence threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99
85
+ # pair.
86
+ # @!attribute [rw] bounding_box_mean_average_precision
87
+ # @return [Float]
88
+ # Output only. The single metric for bounding boxes evaluation:
89
+ # the mean_average_precision averaged over all bounding_box_metrics_entries.
90
+ class ImageObjectDetectionEvaluationMetrics
91
+ include Google::Protobuf::MessageExts
92
+ extend Google::Protobuf::MessageExts::ClassMethods
93
+ end
94
+ end
95
+ end
96
+ end
97
+ end
@@ -0,0 +1,53 @@
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
+ # A vertex represents a 2D point in the image.
25
+ # The normalized vertex coordinates are between 0 to 1 fractions relative to
26
+ # the original plane (image, video). E.g. if the plane (e.g. whole image) would
27
+ # have size 10 x 20 then a point with normalized coordinates (0.1, 0.3) would
28
+ # be at the position (1, 6) on that plane.
29
+ # @!attribute [rw] x
30
+ # @return [Float]
31
+ # Required. Horizontal coordinate.
32
+ # @!attribute [rw] y
33
+ # @return [Float]
34
+ # Required. Vertical coordinate.
35
+ class NormalizedVertex
36
+ include Google::Protobuf::MessageExts
37
+ extend Google::Protobuf::MessageExts::ClassMethods
38
+ end
39
+
40
+ # A bounding polygon of a detected object on a plane.
41
+ # On output both vertices and normalized_vertices are provided.
42
+ # The polygon is formed by connecting vertices in the order they are listed.
43
+ # @!attribute [rw] normalized_vertices
44
+ # @return [Array<Google::Cloud::AutoML::V1::NormalizedVertex>]
45
+ # Output only . The bounding polygon normalized vertices.
46
+ class BoundingPoly
47
+ include Google::Protobuf::MessageExts
48
+ extend Google::Protobuf::MessageExts::ClassMethods
49
+ end
50
+ end
51
+ end
52
+ end
53
+ end
@@ -0,0 +1,217 @@
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 that is specific to image classification.
25
+ # @!attribute [rw] classification_type
26
+ # @return [Google::Cloud::AutoML::V1::ClassificationType]
27
+ # Required. Type of the classification problem.
28
+ class ImageClassificationDatasetMetadata
29
+ include Google::Protobuf::MessageExts
30
+ extend Google::Protobuf::MessageExts::ClassMethods
31
+ end
32
+
33
+ # Dataset metadata specific to image object detection.
34
+ class ImageObjectDetectionDatasetMetadata
35
+ include Google::Protobuf::MessageExts
36
+ extend Google::Protobuf::MessageExts::ClassMethods
37
+ end
38
+
39
+ # Model metadata for image classification.
40
+ # @!attribute [rw] base_model_id
41
+ # @return [String]
42
+ # Optional. The ID of the `base` model. If it is specified, the new model
43
+ # will be created based on the `base` model. Otherwise, the new model will be
44
+ # created from scratch. The `base` model must be in the same
45
+ # `project` and `location` as the new model to create, and have the same
46
+ # `model_type`.
47
+ # @!attribute [rw] train_budget_milli_node_hours
48
+ # @return [Integer]
49
+ # The train budget of creating this model, expressed in milli node
50
+ # hours i.e. 1,000 value in this field means 1 node hour. The actual
51
+ # `train_cost` will be equal or less than this value. If further model
52
+ # training ceases to provide any improvements, it will stop without using
53
+ # full budget and the stop_reason will be `MODEL_CONVERGED`.
54
+ # Note, node_hour = actual_hour * number_of_nodes_invovled.
55
+ # For model type `cloud`(default), the train budget must be between 8,000
56
+ # and 800,000 milli node hours, inclusive. The default value is 192, 000
57
+ # which represents one day in wall time. For model type
58
+ # `mobile-low-latency-1`, `mobile-versatile-1`, `mobile-high-accuracy-1`,
59
+ # `mobile-core-ml-low-latency-1`, `mobile-core-ml-versatile-1`,
60
+ # `mobile-core-ml-high-accuracy-1`, the train budget must be between 1,000
61
+ # and 100,000 milli node hours, inclusive. The default value is 24, 000 which
62
+ # represents one day in wall time.
63
+ # @!attribute [rw] train_cost_milli_node_hours
64
+ # @return [Integer]
65
+ # Output only. The actual train cost of creating this model, expressed in
66
+ # milli node hours, i.e. 1,000 value in this field means 1 node hour.
67
+ # Guaranteed to not exceed the train budget.
68
+ # @!attribute [rw] stop_reason
69
+ # @return [String]
70
+ # Output only. The reason that this create model operation stopped,
71
+ # e.g. `BUDGET_REACHED`, `MODEL_CONVERGED`.
72
+ # @!attribute [rw] model_type
73
+ # @return [String]
74
+ # Optional. Type of the model. The available values are:
75
+ # * `cloud` - Model to be used via prediction calls to AutoML API.
76
+ # This is the default value.
77
+ # * `mobile-low-latency-1` - A model that, in addition to providing
78
+ # prediction via AutoML API, can also be exported (see
79
+ # {Google::Cloud::AutoML::V1::AutoML::Client#export_model AutoMl.ExportModel}) and used on a mobile or edge device
80
+ # with TensorFlow afterwards. Expected to have low latency, but
81
+ # may have lower prediction quality than other models.
82
+ # * `mobile-versatile-1` - A model that, in addition to providing
83
+ # prediction via AutoML API, can also be exported (see
84
+ # {Google::Cloud::AutoML::V1::AutoML::Client#export_model AutoMl.ExportModel}) and used on a mobile or edge device
85
+ # with TensorFlow afterwards.
86
+ # * `mobile-high-accuracy-1` - A model that, in addition to providing
87
+ # prediction via AutoML API, can also be exported (see
88
+ # {Google::Cloud::AutoML::V1::AutoML::Client#export_model AutoMl.ExportModel}) and used on a mobile or edge device
89
+ # with TensorFlow afterwards. Expected to have a higher
90
+ # latency, but should also have a higher prediction quality
91
+ # than other models.
92
+ # * `mobile-core-ml-low-latency-1` - A model that, in addition to providing
93
+ # prediction via AutoML API, can also be exported (see
94
+ # {Google::Cloud::AutoML::V1::AutoML::Client#export_model AutoMl.ExportModel}) and used on a mobile device with Core
95
+ # ML afterwards. Expected to have low latency, but may have
96
+ # lower prediction quality than other models.
97
+ # * `mobile-core-ml-versatile-1` - A model that, in addition to providing
98
+ # prediction via AutoML API, can also be exported (see
99
+ # {Google::Cloud::AutoML::V1::AutoML::Client#export_model AutoMl.ExportModel}) and used on a mobile device with Core
100
+ # ML afterwards.
101
+ # * `mobile-core-ml-high-accuracy-1` - A model that, in addition to
102
+ # providing prediction via AutoML API, can also be exported
103
+ # (see {Google::Cloud::AutoML::V1::AutoML::Client#export_model AutoMl.ExportModel}) and used on a mobile device with
104
+ # Core ML afterwards. Expected to have a higher latency, but
105
+ # should also have a higher prediction quality than other
106
+ # models.
107
+ # @!attribute [rw] node_qps
108
+ # @return [Float]
109
+ # Output only. An approximate number of online prediction QPS that can
110
+ # be supported by this model per each node on which it is deployed.
111
+ # @!attribute [rw] node_count
112
+ # @return [Integer]
113
+ # Output only. The number of nodes this model is deployed on. A node is an
114
+ # abstraction of a machine resource, which can handle online prediction QPS
115
+ # as given in the node_qps field.
116
+ class ImageClassificationModelMetadata
117
+ include Google::Protobuf::MessageExts
118
+ extend Google::Protobuf::MessageExts::ClassMethods
119
+ end
120
+
121
+ # Model metadata specific to image object detection.
122
+ # @!attribute [rw] model_type
123
+ # @return [String]
124
+ # Optional. Type of the model. The available values are:
125
+ # * `cloud-high-accuracy-1` - (default) A model to be used via prediction
126
+ # calls to AutoML API. Expected to have a higher latency, but
127
+ # should also have a higher prediction quality than other
128
+ # models.
129
+ # * `cloud-low-latency-1` - A model to be used via prediction
130
+ # calls to AutoML API. Expected to have low latency, but may
131
+ # have lower prediction quality than other models.
132
+ # * `mobile-low-latency-1` - A model that, in addition to providing
133
+ # prediction via AutoML API, can also be exported (see
134
+ # {Google::Cloud::AutoML::V1::AutoML::Client#export_model AutoMl.ExportModel}) and used on a mobile or edge device
135
+ # with TensorFlow afterwards. Expected to have low latency, but
136
+ # may have lower prediction quality than other models.
137
+ # * `mobile-versatile-1` - A model that, in addition to providing
138
+ # prediction via AutoML API, can also be exported (see
139
+ # {Google::Cloud::AutoML::V1::AutoML::Client#export_model AutoMl.ExportModel}) and used on a mobile or edge device
140
+ # with TensorFlow afterwards.
141
+ # * `mobile-high-accuracy-1` - A model that, in addition to providing
142
+ # prediction via AutoML API, can also be exported (see
143
+ # {Google::Cloud::AutoML::V1::AutoML::Client#export_model AutoMl.ExportModel}) and used on a mobile or edge device
144
+ # with TensorFlow afterwards. Expected to have a higher
145
+ # latency, but should also have a higher prediction quality
146
+ # than other models.
147
+ # @!attribute [rw] node_count
148
+ # @return [Integer]
149
+ # Output only. The number of nodes this model is deployed on. A node is an
150
+ # abstraction of a machine resource, which can handle online prediction QPS
151
+ # as given in the qps_per_node field.
152
+ # @!attribute [rw] node_qps
153
+ # @return [Float]
154
+ # Output only. An approximate number of online prediction QPS that can
155
+ # be supported by this model per each node on which it is deployed.
156
+ # @!attribute [rw] stop_reason
157
+ # @return [String]
158
+ # Output only. The reason that this create model operation stopped,
159
+ # e.g. `BUDGET_REACHED`, `MODEL_CONVERGED`.
160
+ # @!attribute [rw] train_budget_milli_node_hours
161
+ # @return [Integer]
162
+ # The train budget of creating this model, expressed in milli node
163
+ # hours i.e. 1,000 value in this field means 1 node hour. The actual
164
+ # `train_cost` will be equal or less than this value. If further model
165
+ # training ceases to provide any improvements, it will stop without using
166
+ # full budget and the stop_reason will be `MODEL_CONVERGED`.
167
+ # Note, node_hour = actual_hour * number_of_nodes_invovled.
168
+ # For model type `cloud-high-accuracy-1`(default) and `cloud-low-latency-1`,
169
+ # the train budget must be between 20,000 and 900,000 milli node hours,
170
+ # inclusive. The default value is 216, 000 which represents one day in
171
+ # wall time.
172
+ # For model type `mobile-low-latency-1`, `mobile-versatile-1`,
173
+ # `mobile-high-accuracy-1`, `mobile-core-ml-low-latency-1`,
174
+ # `mobile-core-ml-versatile-1`, `mobile-core-ml-high-accuracy-1`, the train
175
+ # budget must be between 1,000 and 100,000 milli node hours, inclusive.
176
+ # The default value is 24, 000 which represents one day in wall time.
177
+ # @!attribute [rw] train_cost_milli_node_hours
178
+ # @return [Integer]
179
+ # Output only. The actual train cost of creating this model, expressed in
180
+ # milli node hours, i.e. 1,000 value in this field means 1 node hour.
181
+ # Guaranteed to not exceed the train budget.
182
+ class ImageObjectDetectionModelMetadata
183
+ include Google::Protobuf::MessageExts
184
+ extend Google::Protobuf::MessageExts::ClassMethods
185
+ end
186
+
187
+ # Model deployment metadata specific to Image Classification.
188
+ # @!attribute [rw] node_count
189
+ # @return [Integer]
190
+ # Input only. The number of nodes to deploy the model on. A node is an
191
+ # abstraction of a machine resource, which can handle online prediction QPS
192
+ # as given in the model's
193
+ #
194
+ # {Google::Cloud::AutoML::V1::ImageClassificationModelMetadata#node_qps node_qps}.
195
+ # Must be between 1 and 100, inclusive on both ends.
196
+ class ImageClassificationModelDeploymentMetadata
197
+ include Google::Protobuf::MessageExts
198
+ extend Google::Protobuf::MessageExts::ClassMethods
199
+ end
200
+
201
+ # Model deployment metadata specific to Image Object Detection.
202
+ # @!attribute [rw] node_count
203
+ # @return [Integer]
204
+ # Input only. The number of nodes to deploy the model on. A node is an
205
+ # abstraction of a machine resource, which can handle online prediction QPS
206
+ # as given in the model's
207
+ #
208
+ # [qps_per_node][google.cloud.automl.v1.ImageObjectDetectionModelMetadata.qps_per_node].
209
+ # Must be between 1 and 100, inclusive on both ends.
210
+ class ImageObjectDetectionModelDeploymentMetadata
211
+ include Google::Protobuf::MessageExts
212
+ extend Google::Protobuf::MessageExts::ClassMethods
213
+ end
214
+ end
215
+ end
216
+ end
217
+ end