google-cloud-automl-v1 0.1.0 → 0.1.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 +6 -6
- data/README.md +1 -1
- data/lib/google/cloud/automl/v1/automl/client.rb +373 -373
- data/lib/google/cloud/automl/v1/automl/credentials.rb +1 -1
- data/lib/google/cloud/automl/v1/automl/operations.rb +100 -100
- data/lib/google/cloud/automl/v1/automl/paths.rb +16 -16
- data/lib/google/cloud/automl/v1/automl.rb +1 -1
- data/lib/google/cloud/automl/v1/prediction_service/client.rb +116 -120
- data/lib/google/cloud/automl/v1/prediction_service/credentials.rb +1 -1
- data/lib/google/cloud/automl/v1/prediction_service/operations.rb +100 -100
- data/lib/google/cloud/automl/v1/prediction_service/paths.rb +3 -3
- data/lib/google/cloud/automl/v1/prediction_service.rb +1 -1
- data/lib/google/cloud/automl/v1/prediction_service_services_pb.rb +30 -34
- data/lib/google/cloud/automl/v1/version.rb +1 -1
- data/lib/google/cloud/automl/v1.rb +1 -1
- data/proto_docs/google/api/resource.rb +12 -12
- data/proto_docs/google/cloud/automl/v1/annotation_payload.rb +10 -10
- data/proto_docs/google/cloud/automl/v1/annotation_spec.rb +5 -5
- data/proto_docs/google/cloud/automl/v1/classification.rb +37 -37
- data/proto_docs/google/cloud/automl/v1/data_items.rb +38 -38
- data/proto_docs/google/cloud/automl/v1/dataset.rb +19 -19
- data/proto_docs/google/cloud/automl/v1/detection.rb +20 -20
- data/proto_docs/google/cloud/automl/v1/geometry.rb +7 -7
- data/proto_docs/google/cloud/automl/v1/image.rb +38 -38
- data/proto_docs/google/cloud/automl/v1/io.rb +46 -46
- data/proto_docs/google/cloud/automl/v1/model.rb +20 -20
- data/proto_docs/google/cloud/automl/v1/model_evaluation.rb +15 -15
- data/proto_docs/google/cloud/automl/v1/operations.rb +49 -49
- data/proto_docs/google/cloud/automl/v1/prediction_service.rb +53 -53
- data/proto_docs/google/cloud/automl/v1/service.rb +115 -115
- data/proto_docs/google/cloud/automl/v1/text.rb +15 -15
- data/proto_docs/google/cloud/automl/v1/text_extraction.rb +14 -14
- data/proto_docs/google/cloud/automl/v1/text_segment.rb +5 -5
- data/proto_docs/google/cloud/automl/v1/text_sentiment.rb +14 -14
- data/proto_docs/google/cloud/automl/v1/translation.rb +16 -16
- data/proto_docs/google/longrunning/operations.rb +30 -30
- data/proto_docs/google/protobuf/any.rb +4 -4
- data/proto_docs/google/protobuf/duration.rb +4 -4
- data/proto_docs/google/protobuf/empty.rb +2 -2
- data/proto_docs/google/protobuf/field_mask.rb +3 -3
- data/proto_docs/google/protobuf/struct.rb +18 -18
- data/proto_docs/google/protobuf/timestamp.rb +4 -4
- data/proto_docs/google/rpc/status.rb +6 -6
- metadata +2 -2
@@ -128,7 +128,7 @@ module Google
|
|
128
128
|
# - pattern: "shelves/{shelf}"
|
129
129
|
# parent_type: "cloudresourcemanager.googleapis.com/Folder"
|
130
130
|
# @!attribute [rw] type
|
131
|
-
# @return [String]
|
131
|
+
# @return [::String]
|
132
132
|
# The resource type. It must be in the format of
|
133
133
|
# \\{service_name}/\\{resource_type_kind}. The `resource_type_kind` must be
|
134
134
|
# singular and must not include version numbers.
|
@@ -140,7 +140,7 @@ module Google
|
|
140
140
|
# should use PascalCase (UpperCamelCase). The maximum number of
|
141
141
|
# characters allowed for the `resource_type_kind` is 100.
|
142
142
|
# @!attribute [rw] pattern
|
143
|
-
# @return [Array
|
143
|
+
# @return [::Array<::String>]
|
144
144
|
# Optional. The relative resource name pattern associated with this resource
|
145
145
|
# type. The DNS prefix of the full resource name shouldn't be specified here.
|
146
146
|
#
|
@@ -161,11 +161,11 @@ module Google
|
|
161
161
|
# the same component name (e.g. "project") refers to IDs of the same
|
162
162
|
# type of resource.
|
163
163
|
# @!attribute [rw] name_field
|
164
|
-
# @return [String]
|
164
|
+
# @return [::String]
|
165
165
|
# Optional. The field on the resource that designates the resource name
|
166
166
|
# field. If omitted, this is assumed to be "name".
|
167
167
|
# @!attribute [rw] history
|
168
|
-
# @return [Google::Api::ResourceDescriptor::History]
|
168
|
+
# @return [::Google::Api::ResourceDescriptor::History]
|
169
169
|
# Optional. The historical or future-looking state of the resource pattern.
|
170
170
|
#
|
171
171
|
# Example:
|
@@ -182,19 +182,19 @@ module Google
|
|
182
182
|
# };
|
183
183
|
# }
|
184
184
|
# @!attribute [rw] plural
|
185
|
-
# @return [String]
|
185
|
+
# @return [::String]
|
186
186
|
# The plural name used in the resource name, such as 'projects' for
|
187
187
|
# the name of 'projects/\\{project}'. It is the same concept of the `plural`
|
188
188
|
# field in k8s CRD spec
|
189
189
|
# https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/
|
190
190
|
# @!attribute [rw] singular
|
191
|
-
# @return [String]
|
191
|
+
# @return [::String]
|
192
192
|
# The same concept of the `singular` field in k8s CRD spec
|
193
193
|
# https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/
|
194
194
|
# Such as "project" for the `resourcemanager.googleapis.com/Project` type.
|
195
195
|
class ResourceDescriptor
|
196
|
-
include Google::Protobuf::MessageExts
|
197
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
196
|
+
include ::Google::Protobuf::MessageExts
|
197
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
198
198
|
|
199
199
|
# A description of the historical or future-looking state of the
|
200
200
|
# resource pattern.
|
@@ -216,7 +216,7 @@ module Google
|
|
216
216
|
# Defines a proto annotation that describes a string field that refers to
|
217
217
|
# an API resource.
|
218
218
|
# @!attribute [rw] type
|
219
|
-
# @return [String]
|
219
|
+
# @return [::String]
|
220
220
|
# The resource type that the annotated field references.
|
221
221
|
#
|
222
222
|
# Example:
|
@@ -227,7 +227,7 @@ module Google
|
|
227
227
|
# }];
|
228
228
|
# }
|
229
229
|
# @!attribute [rw] child_type
|
230
|
-
# @return [String]
|
230
|
+
# @return [::String]
|
231
231
|
# The resource type of a child collection that the annotated field
|
232
232
|
# references. This is useful for annotating the `parent` field that
|
233
233
|
# doesn't have a fixed resource type.
|
@@ -240,8 +240,8 @@ module Google
|
|
240
240
|
# };
|
241
241
|
# }
|
242
242
|
class ResourceReference
|
243
|
-
include Google::Protobuf::MessageExts
|
244
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
243
|
+
include ::Google::Protobuf::MessageExts
|
244
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
245
245
|
end
|
246
246
|
end
|
247
247
|
end
|
@@ -23,36 +23,36 @@ module Google
|
|
23
23
|
module V1
|
24
24
|
# Contains annotation information that is relevant to AutoML.
|
25
25
|
# @!attribute [rw] translation
|
26
|
-
# @return [Google::Cloud::AutoML::V1::TranslationAnnotation]
|
26
|
+
# @return [::Google::Cloud::AutoML::V1::TranslationAnnotation]
|
27
27
|
# Annotation details for translation.
|
28
28
|
# @!attribute [rw] classification
|
29
|
-
# @return [Google::Cloud::AutoML::V1::ClassificationAnnotation]
|
29
|
+
# @return [::Google::Cloud::AutoML::V1::ClassificationAnnotation]
|
30
30
|
# Annotation details for content or image classification.
|
31
31
|
# @!attribute [rw] image_object_detection
|
32
|
-
# @return [Google::Cloud::AutoML::V1::ImageObjectDetectionAnnotation]
|
32
|
+
# @return [::Google::Cloud::AutoML::V1::ImageObjectDetectionAnnotation]
|
33
33
|
# Annotation details for image object detection.
|
34
34
|
# @!attribute [rw] text_extraction
|
35
|
-
# @return [Google::Cloud::AutoML::V1::TextExtractionAnnotation]
|
35
|
+
# @return [::Google::Cloud::AutoML::V1::TextExtractionAnnotation]
|
36
36
|
# Annotation details for text extraction.
|
37
37
|
# @!attribute [rw] text_sentiment
|
38
|
-
# @return [Google::Cloud::AutoML::V1::TextSentimentAnnotation]
|
38
|
+
# @return [::Google::Cloud::AutoML::V1::TextSentimentAnnotation]
|
39
39
|
# Annotation details for text sentiment.
|
40
40
|
# @!attribute [rw] annotation_spec_id
|
41
|
-
# @return [String]
|
41
|
+
# @return [::String]
|
42
42
|
# Output only . The resource ID of the annotation spec that
|
43
43
|
# this annotation pertains to. The annotation spec comes from either an
|
44
44
|
# ancestor dataset, or the dataset that was used to train the model in use.
|
45
45
|
# @!attribute [rw] display_name
|
46
|
-
# @return [String]
|
46
|
+
# @return [::String]
|
47
47
|
# Output only. The value of
|
48
|
-
# {Google::Cloud::AutoML::V1::AnnotationSpec#display_name display_name}
|
48
|
+
# {::Google::Cloud::AutoML::V1::AnnotationSpec#display_name display_name}
|
49
49
|
# when the model was trained. Because this field returns a value at model
|
50
50
|
# training time, for different models trained using the same dataset, the
|
51
51
|
# returned value could be different as model owner could update the
|
52
52
|
# `display_name` between any two model training.
|
53
53
|
class AnnotationPayload
|
54
|
-
include Google::Protobuf::MessageExts
|
55
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
54
|
+
include ::Google::Protobuf::MessageExts
|
55
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
56
56
|
end
|
57
57
|
end
|
58
58
|
end
|
@@ -23,22 +23,22 @@ module Google
|
|
23
23
|
module V1
|
24
24
|
# A definition of an annotation spec.
|
25
25
|
# @!attribute [rw] name
|
26
|
-
# @return [String]
|
26
|
+
# @return [::String]
|
27
27
|
# Output only. Resource name of the annotation spec.
|
28
28
|
# Form:
|
29
29
|
#
|
30
30
|
# 'projects/\\{project_id}/locations/\\{location_id}/datasets/\\{dataset_id}/annotationSpecs/\\{annotation_spec_id}'
|
31
31
|
# @!attribute [rw] display_name
|
32
|
-
# @return [String]
|
32
|
+
# @return [::String]
|
33
33
|
# Required. The name of the annotation spec to show in the interface. The name can be
|
34
34
|
# up to 32 characters long and must match the regexp `[a-zA-Z0-9_]+`.
|
35
35
|
# @!attribute [rw] example_count
|
36
|
-
# @return [Integer]
|
36
|
+
# @return [::Integer]
|
37
37
|
# Output only. The number of examples in the parent dataset
|
38
38
|
# labeled by the annotation spec.
|
39
39
|
class AnnotationSpec
|
40
|
-
include Google::Protobuf::MessageExts
|
41
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
40
|
+
include ::Google::Protobuf::MessageExts
|
41
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
42
42
|
end
|
43
43
|
end
|
44
44
|
end
|
@@ -23,33 +23,33 @@ module Google
|
|
23
23
|
module V1
|
24
24
|
# Contains annotation details specific to classification.
|
25
25
|
# @!attribute [rw] score
|
26
|
-
# @return [Float]
|
26
|
+
# @return [::Float]
|
27
27
|
# Output only. A confidence estimate between 0.0 and 1.0. A higher value
|
28
28
|
# means greater confidence that the annotation is positive. If a user
|
29
29
|
# approves an annotation as negative or positive, the score value remains
|
30
30
|
# unchanged. If a user creates an annotation, the score is 0 for negative or
|
31
31
|
# 1 for positive.
|
32
32
|
class ClassificationAnnotation
|
33
|
-
include Google::Protobuf::MessageExts
|
34
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
33
|
+
include ::Google::Protobuf::MessageExts
|
34
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
35
35
|
end
|
36
36
|
|
37
37
|
# Model evaluation metrics for classification problems.
|
38
38
|
# Note: For Video Classification this metrics only describe quality of the
|
39
39
|
# Video Classification predictions of "segment_classification" type.
|
40
40
|
# @!attribute [rw] au_prc
|
41
|
-
# @return [Float]
|
41
|
+
# @return [::Float]
|
42
42
|
# Output only. The Area Under Precision-Recall Curve metric. Micro-averaged
|
43
43
|
# for the overall evaluation.
|
44
44
|
# @!attribute [rw] au_roc
|
45
|
-
# @return [Float]
|
45
|
+
# @return [::Float]
|
46
46
|
# Output only. The Area Under Receiver Operating Characteristic curve metric.
|
47
47
|
# Micro-averaged for the overall evaluation.
|
48
48
|
# @!attribute [rw] log_loss
|
49
|
-
# @return [Float]
|
49
|
+
# @return [::Float]
|
50
50
|
# Output only. The Log Loss metric.
|
51
51
|
# @!attribute [rw] confidence_metrics_entry
|
52
|
-
# @return [Array
|
52
|
+
# @return [::Array<::Google::Cloud::AutoML::V1::ClassificationEvaluationMetrics::ConfidenceMetricsEntry>]
|
53
53
|
# Output only. Metrics for each confidence_threshold in
|
54
54
|
# 0.00,0.05,0.10,...,0.95,0.96,0.97,0.98,0.99 and
|
55
55
|
# position_threshold = INT32_MAX_VALUE.
|
@@ -58,90 +58,90 @@ module Google
|
|
58
58
|
# additional values of position_threshold, but from these no aggregated
|
59
59
|
# metrics are computed.
|
60
60
|
# @!attribute [rw] confusion_matrix
|
61
|
-
# @return [Google::Cloud::AutoML::V1::ClassificationEvaluationMetrics::ConfusionMatrix]
|
61
|
+
# @return [::Google::Cloud::AutoML::V1::ClassificationEvaluationMetrics::ConfusionMatrix]
|
62
62
|
# Output only. Confusion matrix of the evaluation.
|
63
63
|
# Only set for MULTICLASS classification problems where number
|
64
64
|
# of labels is no more than 10.
|
65
65
|
# Only set for model level evaluation, not for evaluation per label.
|
66
66
|
# @!attribute [rw] annotation_spec_id
|
67
|
-
# @return [Array
|
67
|
+
# @return [::Array<::String>]
|
68
68
|
# Output only. The annotation spec ids used for this evaluation.
|
69
69
|
class ClassificationEvaluationMetrics
|
70
|
-
include Google::Protobuf::MessageExts
|
71
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
70
|
+
include ::Google::Protobuf::MessageExts
|
71
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
72
72
|
|
73
73
|
# Metrics for a single confidence threshold.
|
74
74
|
# @!attribute [rw] confidence_threshold
|
75
|
-
# @return [Float]
|
75
|
+
# @return [::Float]
|
76
76
|
# Output only. Metrics are computed with an assumption that the model
|
77
77
|
# never returns predictions with score lower than this value.
|
78
78
|
# @!attribute [rw] position_threshold
|
79
|
-
# @return [Integer]
|
79
|
+
# @return [::Integer]
|
80
80
|
# Output only. Metrics are computed with an assumption that the model
|
81
81
|
# always returns at most this many predictions (ordered by their score,
|
82
82
|
# descendingly), but they all still need to meet the confidence_threshold.
|
83
83
|
# @!attribute [rw] recall
|
84
|
-
# @return [Float]
|
84
|
+
# @return [::Float]
|
85
85
|
# Output only. Recall (True Positive Rate) for the given confidence
|
86
86
|
# threshold.
|
87
87
|
# @!attribute [rw] precision
|
88
|
-
# @return [Float]
|
88
|
+
# @return [::Float]
|
89
89
|
# Output only. Precision for the given confidence threshold.
|
90
90
|
# @!attribute [rw] false_positive_rate
|
91
|
-
# @return [Float]
|
91
|
+
# @return [::Float]
|
92
92
|
# Output only. False Positive Rate for the given confidence threshold.
|
93
93
|
# @!attribute [rw] f1_score
|
94
|
-
# @return [Float]
|
94
|
+
# @return [::Float]
|
95
95
|
# Output only. The harmonic mean of recall and precision.
|
96
96
|
# @!attribute [rw] recall_at1
|
97
|
-
# @return [Float]
|
97
|
+
# @return [::Float]
|
98
98
|
# Output only. The Recall (True Positive Rate) when only considering the
|
99
99
|
# label that has the highest prediction score and not below the confidence
|
100
100
|
# threshold for each example.
|
101
101
|
# @!attribute [rw] precision_at1
|
102
|
-
# @return [Float]
|
102
|
+
# @return [::Float]
|
103
103
|
# Output only. The precision when only considering the label that has the
|
104
104
|
# highest prediction score and not below the confidence threshold for each
|
105
105
|
# example.
|
106
106
|
# @!attribute [rw] false_positive_rate_at1
|
107
|
-
# @return [Float]
|
107
|
+
# @return [::Float]
|
108
108
|
# Output only. The False Positive Rate when only considering the label that
|
109
109
|
# has the highest prediction score and not below the confidence threshold
|
110
110
|
# for each example.
|
111
111
|
# @!attribute [rw] f1_score_at1
|
112
|
-
# @return [Float]
|
113
|
-
# Output only. The harmonic mean of {Google::Cloud::AutoML::V1::ClassificationEvaluationMetrics::ConfidenceMetricsEntry#recall_at1 recall_at1} and {Google::Cloud::AutoML::V1::ClassificationEvaluationMetrics::ConfidenceMetricsEntry#precision_at1 precision_at1}.
|
112
|
+
# @return [::Float]
|
113
|
+
# Output only. The harmonic mean of {::Google::Cloud::AutoML::V1::ClassificationEvaluationMetrics::ConfidenceMetricsEntry#recall_at1 recall_at1} and {::Google::Cloud::AutoML::V1::ClassificationEvaluationMetrics::ConfidenceMetricsEntry#precision_at1 precision_at1}.
|
114
114
|
# @!attribute [rw] true_positive_count
|
115
|
-
# @return [Integer]
|
115
|
+
# @return [::Integer]
|
116
116
|
# Output only. The number of model created labels that match a ground truth
|
117
117
|
# label.
|
118
118
|
# @!attribute [rw] false_positive_count
|
119
|
-
# @return [Integer]
|
119
|
+
# @return [::Integer]
|
120
120
|
# Output only. The number of model created labels that do not match a
|
121
121
|
# ground truth label.
|
122
122
|
# @!attribute [rw] false_negative_count
|
123
|
-
# @return [Integer]
|
123
|
+
# @return [::Integer]
|
124
124
|
# Output only. The number of ground truth labels that are not matched
|
125
125
|
# by a model created label.
|
126
126
|
# @!attribute [rw] true_negative_count
|
127
|
-
# @return [Integer]
|
127
|
+
# @return [::Integer]
|
128
128
|
# Output only. The number of labels that were not created by the model,
|
129
129
|
# but if they would, they would not match a ground truth label.
|
130
130
|
class ConfidenceMetricsEntry
|
131
|
-
include Google::Protobuf::MessageExts
|
132
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
131
|
+
include ::Google::Protobuf::MessageExts
|
132
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
133
133
|
end
|
134
134
|
|
135
135
|
# Confusion matrix of the model running the classification.
|
136
136
|
# @!attribute [rw] annotation_spec_id
|
137
|
-
# @return [Array
|
137
|
+
# @return [::Array<::String>]
|
138
138
|
# Output only. IDs of the annotation specs used in the confusion matrix.
|
139
139
|
# For Tables CLASSIFICATION
|
140
140
|
#
|
141
141
|
# [prediction_type][google.cloud.automl.v1p1beta.TablesModelMetadata.prediction_type]
|
142
142
|
# only list of [annotation_spec_display_name-s][] is populated.
|
143
143
|
# @!attribute [rw] display_name
|
144
|
-
# @return [Array
|
144
|
+
# @return [::Array<::String>]
|
145
145
|
# Output only. Display name of the annotation specs used in the confusion
|
146
146
|
# matrix, as they were at the moment of the evaluation. For Tables
|
147
147
|
# CLASSIFICATION
|
@@ -150,26 +150,26 @@ module Google
|
|
150
150
|
# distinct values of the target column at the moment of the model
|
151
151
|
# evaluation are populated here.
|
152
152
|
# @!attribute [rw] row
|
153
|
-
# @return [Array
|
153
|
+
# @return [::Array<::Google::Cloud::AutoML::V1::ClassificationEvaluationMetrics::ConfusionMatrix::Row>]
|
154
154
|
# Output only. Rows in the confusion matrix. The number of rows is equal to
|
155
155
|
# the size of `annotation_spec_id`.
|
156
156
|
# `row[i].example_count[j]` is the number of examples that have ground
|
157
157
|
# truth of the `annotation_spec_id[i]` and are predicted as
|
158
158
|
# `annotation_spec_id[j]` by the model being evaluated.
|
159
159
|
class ConfusionMatrix
|
160
|
-
include Google::Protobuf::MessageExts
|
161
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
160
|
+
include ::Google::Protobuf::MessageExts
|
161
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
162
162
|
|
163
163
|
# Output only. A row in the confusion matrix.
|
164
164
|
# @!attribute [rw] example_count
|
165
|
-
# @return [Array
|
165
|
+
# @return [::Array<::Integer>]
|
166
166
|
# Output only. Value of the specific cell in the confusion matrix.
|
167
167
|
# The number of values each row has (i.e. the length of the row) is equal
|
168
168
|
# to the length of the `annotation_spec_id` field or, if that one is not
|
169
|
-
# populated, length of the {Google::Cloud::AutoML::V1::ClassificationEvaluationMetrics::ConfusionMatrix#display_name display_name} field.
|
169
|
+
# populated, length of the {::Google::Cloud::AutoML::V1::ClassificationEvaluationMetrics::ConfusionMatrix#display_name display_name} field.
|
170
170
|
class Row
|
171
|
-
include Google::Protobuf::MessageExts
|
172
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
171
|
+
include ::Google::Protobuf::MessageExts
|
172
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
173
173
|
end
|
174
174
|
end
|
175
175
|
end
|
@@ -24,49 +24,49 @@ module Google
|
|
24
24
|
# A representation of an image.
|
25
25
|
# Only images up to 30MB in size are supported.
|
26
26
|
# @!attribute [rw] image_bytes
|
27
|
-
# @return [String]
|
27
|
+
# @return [::String]
|
28
28
|
# Image content represented as a stream of bytes.
|
29
29
|
# Note: As with all `bytes` fields, protobuffers use a pure binary
|
30
30
|
# representation, whereas JSON representations use base64.
|
31
31
|
# @!attribute [rw] thumbnail_uri
|
32
|
-
# @return [String]
|
32
|
+
# @return [::String]
|
33
33
|
# Output only. HTTP URI to the thumbnail image.
|
34
34
|
class Image
|
35
|
-
include Google::Protobuf::MessageExts
|
36
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
35
|
+
include ::Google::Protobuf::MessageExts
|
36
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
37
37
|
end
|
38
38
|
|
39
39
|
# A representation of a text snippet.
|
40
40
|
# @!attribute [rw] content
|
41
|
-
# @return [String]
|
41
|
+
# @return [::String]
|
42
42
|
# Required. The content of the text snippet as a string. Up to 250000
|
43
43
|
# characters long.
|
44
44
|
# @!attribute [rw] mime_type
|
45
|
-
# @return [String]
|
46
|
-
# Optional. The format of {Google::Cloud::AutoML::V1::TextSnippet#content content}. Currently the only two allowed
|
45
|
+
# @return [::String]
|
46
|
+
# Optional. The format of {::Google::Cloud::AutoML::V1::TextSnippet#content content}. Currently the only two allowed
|
47
47
|
# values are "text/html" and "text/plain". If left blank, the format is
|
48
|
-
# automatically determined from the type of the uploaded {Google::Cloud::AutoML::V1::TextSnippet#content content}.
|
48
|
+
# automatically determined from the type of the uploaded {::Google::Cloud::AutoML::V1::TextSnippet#content content}.
|
49
49
|
# @!attribute [rw] content_uri
|
50
|
-
# @return [String]
|
50
|
+
# @return [::String]
|
51
51
|
# Output only. HTTP URI where you can download the content.
|
52
52
|
class TextSnippet
|
53
|
-
include Google::Protobuf::MessageExts
|
54
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
53
|
+
include ::Google::Protobuf::MessageExts
|
54
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
55
55
|
end
|
56
56
|
|
57
57
|
# Message that describes dimension of a document.
|
58
58
|
# @!attribute [rw] unit
|
59
|
-
# @return [Google::Cloud::AutoML::V1::DocumentDimensions::DocumentDimensionUnit]
|
59
|
+
# @return [::Google::Cloud::AutoML::V1::DocumentDimensions::DocumentDimensionUnit]
|
60
60
|
# Unit of the dimension.
|
61
61
|
# @!attribute [rw] width
|
62
|
-
# @return [Float]
|
62
|
+
# @return [::Float]
|
63
63
|
# Width value of the document, works together with the unit.
|
64
64
|
# @!attribute [rw] height
|
65
|
-
# @return [Float]
|
65
|
+
# @return [::Float]
|
66
66
|
# Height value of the document, works together with the unit.
|
67
67
|
class DocumentDimensions
|
68
|
-
include Google::Protobuf::MessageExts
|
69
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
68
|
+
include ::Google::Protobuf::MessageExts
|
69
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
70
70
|
|
71
71
|
# Unit of the document dimension.
|
72
72
|
module DocumentDimensionUnit
|
@@ -86,37 +86,37 @@ module Google
|
|
86
86
|
|
87
87
|
# A structured text document e.g. a PDF.
|
88
88
|
# @!attribute [rw] input_config
|
89
|
-
# @return [Google::Cloud::AutoML::V1::DocumentInputConfig]
|
89
|
+
# @return [::Google::Cloud::AutoML::V1::DocumentInputConfig]
|
90
90
|
# An input config specifying the content of the document.
|
91
91
|
# @!attribute [rw] document_text
|
92
|
-
# @return [Google::Cloud::AutoML::V1::TextSnippet]
|
92
|
+
# @return [::Google::Cloud::AutoML::V1::TextSnippet]
|
93
93
|
# The plain text version of this document.
|
94
94
|
# @!attribute [rw] layout
|
95
|
-
# @return [Array
|
95
|
+
# @return [::Array<::Google::Cloud::AutoML::V1::Document::Layout>]
|
96
96
|
# Describes the layout of the document.
|
97
97
|
# Sorted by [page_number][].
|
98
98
|
# @!attribute [rw] document_dimensions
|
99
|
-
# @return [Google::Cloud::AutoML::V1::DocumentDimensions]
|
99
|
+
# @return [::Google::Cloud::AutoML::V1::DocumentDimensions]
|
100
100
|
# The dimensions of the page in the document.
|
101
101
|
# @!attribute [rw] page_count
|
102
|
-
# @return [Integer]
|
102
|
+
# @return [::Integer]
|
103
103
|
# Number of pages in the document.
|
104
104
|
class Document
|
105
|
-
include Google::Protobuf::MessageExts
|
106
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
105
|
+
include ::Google::Protobuf::MessageExts
|
106
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
107
107
|
|
108
|
-
# Describes the layout information of a {Google::Cloud::AutoML::V1::Document::Layout#text_segment text_segment} in the document.
|
108
|
+
# Describes the layout information of a {::Google::Cloud::AutoML::V1::Document::Layout#text_segment text_segment} in the document.
|
109
109
|
# @!attribute [rw] text_segment
|
110
|
-
# @return [Google::Cloud::AutoML::V1::TextSegment]
|
110
|
+
# @return [::Google::Cloud::AutoML::V1::TextSegment]
|
111
111
|
# Text Segment that represents a segment in
|
112
112
|
# [document_text][google.cloud.automl.v1p1beta.Document.document_text].
|
113
113
|
# @!attribute [rw] page_number
|
114
|
-
# @return [Integer]
|
115
|
-
# Page number of the {Google::Cloud::AutoML::V1::Document::Layout#text_segment text_segment} in the original document, starts
|
114
|
+
# @return [::Integer]
|
115
|
+
# Page number of the {::Google::Cloud::AutoML::V1::Document::Layout#text_segment text_segment} in the original document, starts
|
116
116
|
# from 1.
|
117
117
|
# @!attribute [rw] bounding_poly
|
118
|
-
# @return [Google::Cloud::AutoML::V1::BoundingPoly]
|
119
|
-
# The position of the {Google::Cloud::AutoML::V1::Document::Layout#text_segment text_segment} in the page.
|
118
|
+
# @return [::Google::Cloud::AutoML::V1::BoundingPoly]
|
119
|
+
# The position of the {::Google::Cloud::AutoML::V1::Document::Layout#text_segment text_segment} in the page.
|
120
120
|
# Contains exactly 4
|
121
121
|
#
|
122
122
|
# [normalized_vertices][google.cloud.automl.v1p1beta.BoundingPoly.normalized_vertices]
|
@@ -126,11 +126,11 @@ module Google
|
|
126
126
|
# relative to the page.
|
127
127
|
# Coordinates are based on top-left as point (0,0).
|
128
128
|
# @!attribute [rw] text_segment_type
|
129
|
-
# @return [Google::Cloud::AutoML::V1::Document::Layout::TextSegmentType]
|
130
|
-
# The type of the {Google::Cloud::AutoML::V1::Document::Layout#text_segment text_segment} in document.
|
129
|
+
# @return [::Google::Cloud::AutoML::V1::Document::Layout::TextSegmentType]
|
130
|
+
# The type of the {::Google::Cloud::AutoML::V1::Document::Layout#text_segment text_segment} in document.
|
131
131
|
class Layout
|
132
|
-
include Google::Protobuf::MessageExts
|
133
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
132
|
+
include ::Google::Protobuf::MessageExts
|
133
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
134
134
|
|
135
135
|
# The type of TextSegment in the context of the original document.
|
136
136
|
module TextSegmentType
|
@@ -179,17 +179,17 @@ module Google
|
|
179
179
|
|
180
180
|
# Example data used for training or prediction.
|
181
181
|
# @!attribute [rw] image
|
182
|
-
# @return [Google::Cloud::AutoML::V1::Image]
|
182
|
+
# @return [::Google::Cloud::AutoML::V1::Image]
|
183
183
|
# Example image.
|
184
184
|
# @!attribute [rw] text_snippet
|
185
|
-
# @return [Google::Cloud::AutoML::V1::TextSnippet]
|
185
|
+
# @return [::Google::Cloud::AutoML::V1::TextSnippet]
|
186
186
|
# Example text.
|
187
187
|
# @!attribute [rw] document
|
188
|
-
# @return [Google::Cloud::AutoML::V1::Document]
|
188
|
+
# @return [::Google::Cloud::AutoML::V1::Document]
|
189
189
|
# Example document.
|
190
190
|
class ExamplePayload
|
191
|
-
include Google::Protobuf::MessageExts
|
192
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
191
|
+
include ::Google::Protobuf::MessageExts
|
192
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
193
193
|
end
|
194
194
|
end
|
195
195
|
end
|
@@ -24,49 +24,49 @@ module Google
|
|
24
24
|
# A workspace for solving a single, particular machine learning (ML) problem.
|
25
25
|
# A workspace contains examples that may be annotated.
|
26
26
|
# @!attribute [rw] translation_dataset_metadata
|
27
|
-
# @return [Google::Cloud::AutoML::V1::TranslationDatasetMetadata]
|
27
|
+
# @return [::Google::Cloud::AutoML::V1::TranslationDatasetMetadata]
|
28
28
|
# Metadata for a dataset used for translation.
|
29
29
|
# @!attribute [rw] image_classification_dataset_metadata
|
30
|
-
# @return [Google::Cloud::AutoML::V1::ImageClassificationDatasetMetadata]
|
30
|
+
# @return [::Google::Cloud::AutoML::V1::ImageClassificationDatasetMetadata]
|
31
31
|
# Metadata for a dataset used for image classification.
|
32
32
|
# @!attribute [rw] text_classification_dataset_metadata
|
33
|
-
# @return [Google::Cloud::AutoML::V1::TextClassificationDatasetMetadata]
|
33
|
+
# @return [::Google::Cloud::AutoML::V1::TextClassificationDatasetMetadata]
|
34
34
|
# Metadata for a dataset used for text classification.
|
35
35
|
# @!attribute [rw] image_object_detection_dataset_metadata
|
36
|
-
# @return [Google::Cloud::AutoML::V1::ImageObjectDetectionDatasetMetadata]
|
36
|
+
# @return [::Google::Cloud::AutoML::V1::ImageObjectDetectionDatasetMetadata]
|
37
37
|
# Metadata for a dataset used for image object detection.
|
38
38
|
# @!attribute [rw] text_extraction_dataset_metadata
|
39
|
-
# @return [Google::Cloud::AutoML::V1::TextExtractionDatasetMetadata]
|
39
|
+
# @return [::Google::Cloud::AutoML::V1::TextExtractionDatasetMetadata]
|
40
40
|
# Metadata for a dataset used for text extraction.
|
41
41
|
# @!attribute [rw] text_sentiment_dataset_metadata
|
42
|
-
# @return [Google::Cloud::AutoML::V1::TextSentimentDatasetMetadata]
|
42
|
+
# @return [::Google::Cloud::AutoML::V1::TextSentimentDatasetMetadata]
|
43
43
|
# Metadata for a dataset used for text sentiment.
|
44
44
|
# @!attribute [rw] name
|
45
|
-
# @return [String]
|
45
|
+
# @return [::String]
|
46
46
|
# Output only. The resource name of the dataset.
|
47
47
|
# Form: `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}`
|
48
48
|
# @!attribute [rw] display_name
|
49
|
-
# @return [String]
|
49
|
+
# @return [::String]
|
50
50
|
# Required. The name of the dataset to show in the interface. The name can be
|
51
51
|
# up to 32 characters long and can consist only of ASCII Latin letters A-Z
|
52
52
|
# and a-z, underscores
|
53
53
|
# (_), and ASCII digits 0-9.
|
54
54
|
# @!attribute [rw] description
|
55
|
-
# @return [String]
|
55
|
+
# @return [::String]
|
56
56
|
# User-provided description of the dataset. The description can be up to
|
57
57
|
# 25000 characters long.
|
58
58
|
# @!attribute [rw] example_count
|
59
|
-
# @return [Integer]
|
59
|
+
# @return [::Integer]
|
60
60
|
# Output only. The number of examples in the dataset.
|
61
61
|
# @!attribute [rw] create_time
|
62
|
-
# @return [Google::Protobuf::Timestamp]
|
62
|
+
# @return [::Google::Protobuf::Timestamp]
|
63
63
|
# Output only. Timestamp when this dataset was created.
|
64
64
|
# @!attribute [rw] etag
|
65
|
-
# @return [String]
|
65
|
+
# @return [::String]
|
66
66
|
# Used to perform consistent read-modify-write updates. If not set, a blind
|
67
67
|
# "overwrite" update happens.
|
68
68
|
# @!attribute [rw] labels
|
69
|
-
# @return [Google::Protobuf::Map{String => String}]
|
69
|
+
# @return [::Google::Protobuf::Map{::String => ::String}]
|
70
70
|
# Optional. The labels with user-defined metadata to organize your dataset.
|
71
71
|
#
|
72
72
|
# Label keys and values can be no longer than 64 characters
|
@@ -76,16 +76,16 @@ module Google
|
|
76
76
|
#
|
77
77
|
# See https://goo.gl/xmQnxf for more information on and examples of labels.
|
78
78
|
class Dataset
|
79
|
-
include Google::Protobuf::MessageExts
|
80
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
79
|
+
include ::Google::Protobuf::MessageExts
|
80
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
81
81
|
|
82
82
|
# @!attribute [rw] key
|
83
|
-
# @return [String]
|
83
|
+
# @return [::String]
|
84
84
|
# @!attribute [rw] value
|
85
|
-
# @return [String]
|
85
|
+
# @return [::String]
|
86
86
|
class LabelsEntry
|
87
|
-
include Google::Protobuf::MessageExts
|
88
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
87
|
+
include ::Google::Protobuf::MessageExts
|
88
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
89
89
|
end
|
90
90
|
end
|
91
91
|
end
|