google-cloud-data_labeling-v1beta1 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 +75 -0
- data/lib/google-cloud-data_labeling-v1beta1.rb +21 -0
- data/lib/google/cloud/data_labeling/v1beta1.rb +35 -0
- data/lib/google/cloud/data_labeling/v1beta1/data_labeling_service.rb +50 -0
- data/lib/google/cloud/data_labeling/v1beta1/data_labeling_service/client.rb +3294 -0
- data/lib/google/cloud/data_labeling/v1beta1/data_labeling_service/credentials.rb +51 -0
- data/lib/google/cloud/data_labeling/v1beta1/data_labeling_service/operations.rb +570 -0
- data/lib/google/cloud/data_labeling/v1beta1/data_labeling_service/paths.rb +193 -0
- data/lib/google/cloud/data_labeling/v1beta1/version.rb +28 -0
- data/lib/google/cloud/datalabeling/v1beta1/annotation_pb.rb +178 -0
- data/lib/google/cloud/datalabeling/v1beta1/annotation_spec_set_pb.rb +33 -0
- data/lib/google/cloud/datalabeling/v1beta1/data_labeling_service_pb.rb +301 -0
- data/lib/google/cloud/datalabeling/v1beta1/data_labeling_service_services_pb.rb +132 -0
- data/lib/google/cloud/datalabeling/v1beta1/data_payloads_pb.rb +45 -0
- data/lib/google/cloud/datalabeling/v1beta1/dataset_pb.rb +142 -0
- data/lib/google/cloud/datalabeling/v1beta1/evaluation_job_pb.rb +71 -0
- data/lib/google/cloud/datalabeling/v1beta1/evaluation_pb.rb +93 -0
- data/lib/google/cloud/datalabeling/v1beta1/human_annotation_config_pb.rb +98 -0
- data/lib/google/cloud/datalabeling/v1beta1/instruction_pb.rb +42 -0
- data/lib/google/cloud/datalabeling/v1beta1/operations_pb.rb +124 -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 +283 -0
- data/proto_docs/google/cloud/datalabeling/v1beta1/annotation.rb +407 -0
- data/proto_docs/google/cloud/datalabeling/v1beta1/annotation_spec_set.rb +71 -0
- data/proto_docs/google/cloud/datalabeling/v1beta1/data_labeling_service.rb +839 -0
- data/proto_docs/google/cloud/datalabeling/v1beta1/data_payloads.rb +87 -0
- data/proto_docs/google/cloud/datalabeling/v1beta1/dataset.rb +354 -0
- data/proto_docs/google/cloud/datalabeling/v1beta1/evaluation.rb +225 -0
- data/proto_docs/google/cloud/datalabeling/v1beta1/evaluation_job.rb +280 -0
- data/proto_docs/google/cloud/datalabeling/v1beta1/human_annotation_config.rb +248 -0
- data/proto_docs/google/cloud/datalabeling/v1beta1/instruction.rb +88 -0
- data/proto_docs/google/cloud/datalabeling/v1beta1/operations.rb +279 -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/timestamp.rb +120 -0
- data/proto_docs/google/rpc/status.rb +46 -0
- metadata +227 -0
@@ -0,0 +1,407 @@
|
|
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 DataLabeling
|
23
|
+
module V1beta1
|
24
|
+
# Annotation for Example. Each example may have one or more annotations. For
|
25
|
+
# example in image classification problem, each image might have one or more
|
26
|
+
# labels. We call labels binded with this image an Annotation.
|
27
|
+
# @!attribute [rw] name
|
28
|
+
# @return [::String]
|
29
|
+
# Output only. Unique name of this annotation, format is:
|
30
|
+
#
|
31
|
+
# projects/\\{project_id}/datasets/\\{dataset_id}/annotatedDatasets/\\{annotated_dataset}/examples/\\{example_id}/annotations/\\{annotation_id}
|
32
|
+
# @!attribute [rw] annotation_source
|
33
|
+
# @return [::Google::Cloud::DataLabeling::V1beta1::AnnotationSource]
|
34
|
+
# Output only. The source of the annotation.
|
35
|
+
# @!attribute [rw] annotation_value
|
36
|
+
# @return [::Google::Cloud::DataLabeling::V1beta1::AnnotationValue]
|
37
|
+
# Output only. This is the actual annotation value, e.g classification,
|
38
|
+
# bounding box values are stored here.
|
39
|
+
# @!attribute [rw] annotation_metadata
|
40
|
+
# @return [::Google::Cloud::DataLabeling::V1beta1::AnnotationMetadata]
|
41
|
+
# Output only. Annotation metadata, including information like votes
|
42
|
+
# for labels.
|
43
|
+
# @!attribute [rw] annotation_sentiment
|
44
|
+
# @return [::Google::Cloud::DataLabeling::V1beta1::AnnotationSentiment]
|
45
|
+
# Output only. Sentiment for this annotation.
|
46
|
+
class Annotation
|
47
|
+
include ::Google::Protobuf::MessageExts
|
48
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
49
|
+
end
|
50
|
+
|
51
|
+
# Annotation value for an example.
|
52
|
+
# @!attribute [rw] image_classification_annotation
|
53
|
+
# @return [::Google::Cloud::DataLabeling::V1beta1::ImageClassificationAnnotation]
|
54
|
+
# Annotation value for image classification case.
|
55
|
+
# @!attribute [rw] image_bounding_poly_annotation
|
56
|
+
# @return [::Google::Cloud::DataLabeling::V1beta1::ImageBoundingPolyAnnotation]
|
57
|
+
# Annotation value for image bounding box, oriented bounding box
|
58
|
+
# and polygon cases.
|
59
|
+
# @!attribute [rw] image_polyline_annotation
|
60
|
+
# @return [::Google::Cloud::DataLabeling::V1beta1::ImagePolylineAnnotation]
|
61
|
+
# Annotation value for image polyline cases.
|
62
|
+
# Polyline here is different from BoundingPoly. It is formed by
|
63
|
+
# line segments connected to each other but not closed form(Bounding Poly).
|
64
|
+
# The line segments can cross each other.
|
65
|
+
# @!attribute [rw] image_segmentation_annotation
|
66
|
+
# @return [::Google::Cloud::DataLabeling::V1beta1::ImageSegmentationAnnotation]
|
67
|
+
# Annotation value for image segmentation.
|
68
|
+
# @!attribute [rw] text_classification_annotation
|
69
|
+
# @return [::Google::Cloud::DataLabeling::V1beta1::TextClassificationAnnotation]
|
70
|
+
# Annotation value for text classification case.
|
71
|
+
# @!attribute [rw] text_entity_extraction_annotation
|
72
|
+
# @return [::Google::Cloud::DataLabeling::V1beta1::TextEntityExtractionAnnotation]
|
73
|
+
# Annotation value for text entity extraction case.
|
74
|
+
# @!attribute [rw] video_classification_annotation
|
75
|
+
# @return [::Google::Cloud::DataLabeling::V1beta1::VideoClassificationAnnotation]
|
76
|
+
# Annotation value for video classification case.
|
77
|
+
# @!attribute [rw] video_object_tracking_annotation
|
78
|
+
# @return [::Google::Cloud::DataLabeling::V1beta1::VideoObjectTrackingAnnotation]
|
79
|
+
# Annotation value for video object detection and tracking case.
|
80
|
+
# @!attribute [rw] video_event_annotation
|
81
|
+
# @return [::Google::Cloud::DataLabeling::V1beta1::VideoEventAnnotation]
|
82
|
+
# Annotation value for video event case.
|
83
|
+
class AnnotationValue
|
84
|
+
include ::Google::Protobuf::MessageExts
|
85
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
86
|
+
end
|
87
|
+
|
88
|
+
# Image classification annotation definition.
|
89
|
+
# @!attribute [rw] annotation_spec
|
90
|
+
# @return [::Google::Cloud::DataLabeling::V1beta1::AnnotationSpec]
|
91
|
+
# Label of image.
|
92
|
+
class ImageClassificationAnnotation
|
93
|
+
include ::Google::Protobuf::MessageExts
|
94
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
95
|
+
end
|
96
|
+
|
97
|
+
# A vertex represents a 2D point in the image.
|
98
|
+
# NOTE: the vertex coordinates are in the same scale as the original image.
|
99
|
+
# @!attribute [rw] x
|
100
|
+
# @return [::Integer]
|
101
|
+
# X coordinate.
|
102
|
+
# @!attribute [rw] y
|
103
|
+
# @return [::Integer]
|
104
|
+
# Y coordinate.
|
105
|
+
class Vertex
|
106
|
+
include ::Google::Protobuf::MessageExts
|
107
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
108
|
+
end
|
109
|
+
|
110
|
+
# A vertex represents a 2D point in the image.
|
111
|
+
# NOTE: the normalized vertex coordinates are relative to the original image
|
112
|
+
# and range from 0 to 1.
|
113
|
+
# @!attribute [rw] x
|
114
|
+
# @return [::Float]
|
115
|
+
# X coordinate.
|
116
|
+
# @!attribute [rw] y
|
117
|
+
# @return [::Float]
|
118
|
+
# Y coordinate.
|
119
|
+
class NormalizedVertex
|
120
|
+
include ::Google::Protobuf::MessageExts
|
121
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
122
|
+
end
|
123
|
+
|
124
|
+
# A bounding polygon in the image.
|
125
|
+
# @!attribute [rw] vertices
|
126
|
+
# @return [::Array<::Google::Cloud::DataLabeling::V1beta1::Vertex>]
|
127
|
+
# The bounding polygon vertices.
|
128
|
+
class BoundingPoly
|
129
|
+
include ::Google::Protobuf::MessageExts
|
130
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
131
|
+
end
|
132
|
+
|
133
|
+
# Normalized bounding polygon.
|
134
|
+
# @!attribute [rw] normalized_vertices
|
135
|
+
# @return [::Array<::Google::Cloud::DataLabeling::V1beta1::NormalizedVertex>]
|
136
|
+
# The bounding polygon normalized vertices.
|
137
|
+
class NormalizedBoundingPoly
|
138
|
+
include ::Google::Protobuf::MessageExts
|
139
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
140
|
+
end
|
141
|
+
|
142
|
+
# Image bounding poly annotation. It represents a polygon including
|
143
|
+
# bounding box in the image.
|
144
|
+
# @!attribute [rw] bounding_poly
|
145
|
+
# @return [::Google::Cloud::DataLabeling::V1beta1::BoundingPoly]
|
146
|
+
# @!attribute [rw] normalized_bounding_poly
|
147
|
+
# @return [::Google::Cloud::DataLabeling::V1beta1::NormalizedBoundingPoly]
|
148
|
+
# @!attribute [rw] annotation_spec
|
149
|
+
# @return [::Google::Cloud::DataLabeling::V1beta1::AnnotationSpec]
|
150
|
+
# Label of object in this bounding polygon.
|
151
|
+
class ImageBoundingPolyAnnotation
|
152
|
+
include ::Google::Protobuf::MessageExts
|
153
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
154
|
+
end
|
155
|
+
|
156
|
+
# A line with multiple line segments.
|
157
|
+
# @!attribute [rw] vertices
|
158
|
+
# @return [::Array<::Google::Cloud::DataLabeling::V1beta1::Vertex>]
|
159
|
+
# The polyline vertices.
|
160
|
+
class Polyline
|
161
|
+
include ::Google::Protobuf::MessageExts
|
162
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
163
|
+
end
|
164
|
+
|
165
|
+
# Normalized polyline.
|
166
|
+
# @!attribute [rw] normalized_vertices
|
167
|
+
# @return [::Array<::Google::Cloud::DataLabeling::V1beta1::NormalizedVertex>]
|
168
|
+
# The normalized polyline vertices.
|
169
|
+
class NormalizedPolyline
|
170
|
+
include ::Google::Protobuf::MessageExts
|
171
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
172
|
+
end
|
173
|
+
|
174
|
+
# A polyline for the image annotation.
|
175
|
+
# @!attribute [rw] polyline
|
176
|
+
# @return [::Google::Cloud::DataLabeling::V1beta1::Polyline]
|
177
|
+
# @!attribute [rw] normalized_polyline
|
178
|
+
# @return [::Google::Cloud::DataLabeling::V1beta1::NormalizedPolyline]
|
179
|
+
# @!attribute [rw] annotation_spec
|
180
|
+
# @return [::Google::Cloud::DataLabeling::V1beta1::AnnotationSpec]
|
181
|
+
# Label of this polyline.
|
182
|
+
class ImagePolylineAnnotation
|
183
|
+
include ::Google::Protobuf::MessageExts
|
184
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
185
|
+
end
|
186
|
+
|
187
|
+
# Image segmentation annotation.
|
188
|
+
# @!attribute [rw] annotation_colors
|
189
|
+
# @return [::Google::Protobuf::Map{::String => ::Google::Cloud::DataLabeling::V1beta1::AnnotationSpec}]
|
190
|
+
# The mapping between rgb color and annotation spec. The key is the rgb
|
191
|
+
# color represented in format of rgb(0, 0, 0). The value is the
|
192
|
+
# AnnotationSpec.
|
193
|
+
# @!attribute [rw] mime_type
|
194
|
+
# @return [::String]
|
195
|
+
# Image format.
|
196
|
+
# @!attribute [rw] image_bytes
|
197
|
+
# @return [::String]
|
198
|
+
# A byte string of a full image's color map.
|
199
|
+
class ImageSegmentationAnnotation
|
200
|
+
include ::Google::Protobuf::MessageExts
|
201
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
202
|
+
|
203
|
+
# @!attribute [rw] key
|
204
|
+
# @return [::String]
|
205
|
+
# @!attribute [rw] value
|
206
|
+
# @return [::Google::Cloud::DataLabeling::V1beta1::AnnotationSpec]
|
207
|
+
class AnnotationColorsEntry
|
208
|
+
include ::Google::Protobuf::MessageExts
|
209
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
210
|
+
end
|
211
|
+
end
|
212
|
+
|
213
|
+
# Text classification annotation.
|
214
|
+
# @!attribute [rw] annotation_spec
|
215
|
+
# @return [::Google::Cloud::DataLabeling::V1beta1::AnnotationSpec]
|
216
|
+
# Label of the text.
|
217
|
+
class TextClassificationAnnotation
|
218
|
+
include ::Google::Protobuf::MessageExts
|
219
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
220
|
+
end
|
221
|
+
|
222
|
+
# Text entity extraction annotation.
|
223
|
+
# @!attribute [rw] annotation_spec
|
224
|
+
# @return [::Google::Cloud::DataLabeling::V1beta1::AnnotationSpec]
|
225
|
+
# Label of the text entities.
|
226
|
+
# @!attribute [rw] sequential_segment
|
227
|
+
# @return [::Google::Cloud::DataLabeling::V1beta1::SequentialSegment]
|
228
|
+
# Position of the entity.
|
229
|
+
class TextEntityExtractionAnnotation
|
230
|
+
include ::Google::Protobuf::MessageExts
|
231
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
232
|
+
end
|
233
|
+
|
234
|
+
# Start and end position in a sequence (e.g. text segment).
|
235
|
+
# @!attribute [rw] start
|
236
|
+
# @return [::Integer]
|
237
|
+
# Start position (inclusive).
|
238
|
+
# @!attribute [rw] end
|
239
|
+
# @return [::Integer]
|
240
|
+
# End position (exclusive).
|
241
|
+
class SequentialSegment
|
242
|
+
include ::Google::Protobuf::MessageExts
|
243
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
244
|
+
end
|
245
|
+
|
246
|
+
# A time period inside of an example that has a time dimension (e.g. video).
|
247
|
+
# @!attribute [rw] start_time_offset
|
248
|
+
# @return [::Google::Protobuf::Duration]
|
249
|
+
# Start of the time segment (inclusive), represented as the duration since
|
250
|
+
# the example start.
|
251
|
+
# @!attribute [rw] end_time_offset
|
252
|
+
# @return [::Google::Protobuf::Duration]
|
253
|
+
# End of the time segment (exclusive), represented as the duration since the
|
254
|
+
# example start.
|
255
|
+
class TimeSegment
|
256
|
+
include ::Google::Protobuf::MessageExts
|
257
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
258
|
+
end
|
259
|
+
|
260
|
+
# Video classification annotation.
|
261
|
+
# @!attribute [rw] time_segment
|
262
|
+
# @return [::Google::Cloud::DataLabeling::V1beta1::TimeSegment]
|
263
|
+
# The time segment of the video to which the annotation applies.
|
264
|
+
# @!attribute [rw] annotation_spec
|
265
|
+
# @return [::Google::Cloud::DataLabeling::V1beta1::AnnotationSpec]
|
266
|
+
# Label of the segment specified by time_segment.
|
267
|
+
class VideoClassificationAnnotation
|
268
|
+
include ::Google::Protobuf::MessageExts
|
269
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
270
|
+
end
|
271
|
+
|
272
|
+
# Video frame level annotation for object detection and tracking.
|
273
|
+
# @!attribute [rw] bounding_poly
|
274
|
+
# @return [::Google::Cloud::DataLabeling::V1beta1::BoundingPoly]
|
275
|
+
# @!attribute [rw] normalized_bounding_poly
|
276
|
+
# @return [::Google::Cloud::DataLabeling::V1beta1::NormalizedBoundingPoly]
|
277
|
+
# @!attribute [rw] time_offset
|
278
|
+
# @return [::Google::Protobuf::Duration]
|
279
|
+
# The time offset of this frame relative to the beginning of the video.
|
280
|
+
class ObjectTrackingFrame
|
281
|
+
include ::Google::Protobuf::MessageExts
|
282
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
283
|
+
end
|
284
|
+
|
285
|
+
# Video object tracking annotation.
|
286
|
+
# @!attribute [rw] annotation_spec
|
287
|
+
# @return [::Google::Cloud::DataLabeling::V1beta1::AnnotationSpec]
|
288
|
+
# Label of the object tracked in this annotation.
|
289
|
+
# @!attribute [rw] time_segment
|
290
|
+
# @return [::Google::Cloud::DataLabeling::V1beta1::TimeSegment]
|
291
|
+
# The time segment of the video to which object tracking applies.
|
292
|
+
# @!attribute [rw] object_tracking_frames
|
293
|
+
# @return [::Array<::Google::Cloud::DataLabeling::V1beta1::ObjectTrackingFrame>]
|
294
|
+
# The list of frames where this object track appears.
|
295
|
+
class VideoObjectTrackingAnnotation
|
296
|
+
include ::Google::Protobuf::MessageExts
|
297
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
298
|
+
end
|
299
|
+
|
300
|
+
# Video event annotation.
|
301
|
+
# @!attribute [rw] annotation_spec
|
302
|
+
# @return [::Google::Cloud::DataLabeling::V1beta1::AnnotationSpec]
|
303
|
+
# Label of the event in this annotation.
|
304
|
+
# @!attribute [rw] time_segment
|
305
|
+
# @return [::Google::Cloud::DataLabeling::V1beta1::TimeSegment]
|
306
|
+
# The time segment of the video to which the annotation applies.
|
307
|
+
class VideoEventAnnotation
|
308
|
+
include ::Google::Protobuf::MessageExts
|
309
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
310
|
+
end
|
311
|
+
|
312
|
+
# Additional information associated with the annotation.
|
313
|
+
# @!attribute [rw] operator_metadata
|
314
|
+
# @return [::Google::Cloud::DataLabeling::V1beta1::OperatorMetadata]
|
315
|
+
# Metadata related to human labeling.
|
316
|
+
class AnnotationMetadata
|
317
|
+
include ::Google::Protobuf::MessageExts
|
318
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
319
|
+
end
|
320
|
+
|
321
|
+
# General information useful for labels coming from contributors.
|
322
|
+
# @!attribute [rw] score
|
323
|
+
# @return [::Float]
|
324
|
+
# Confidence score corresponding to a label. For examle, if 3 contributors
|
325
|
+
# have answered the question and 2 of them agree on the final label, the
|
326
|
+
# confidence score will be 0.67 (2/3).
|
327
|
+
# @!attribute [rw] total_votes
|
328
|
+
# @return [::Integer]
|
329
|
+
# The total number of contributors that answer this question.
|
330
|
+
# @!attribute [rw] label_votes
|
331
|
+
# @return [::Integer]
|
332
|
+
# The total number of contributors that choose this label.
|
333
|
+
# @!attribute [rw] comments
|
334
|
+
# @return [::Array<::String>]
|
335
|
+
# Comments from contributors.
|
336
|
+
class OperatorMetadata
|
337
|
+
include ::Google::Protobuf::MessageExts
|
338
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
339
|
+
end
|
340
|
+
|
341
|
+
# Specifies where the annotation comes from (whether it was provided by a
|
342
|
+
# human labeler or a different source).
|
343
|
+
module AnnotationSource
|
344
|
+
ANNOTATION_SOURCE_UNSPECIFIED = 0
|
345
|
+
|
346
|
+
# Answer is provided by a human contributor.
|
347
|
+
OPERATOR = 3
|
348
|
+
end
|
349
|
+
|
350
|
+
module AnnotationSentiment
|
351
|
+
ANNOTATION_SENTIMENT_UNSPECIFIED = 0
|
352
|
+
|
353
|
+
# This annotation describes negatively about the data.
|
354
|
+
NEGATIVE = 1
|
355
|
+
|
356
|
+
# This label describes positively about the data.
|
357
|
+
POSITIVE = 2
|
358
|
+
end
|
359
|
+
|
360
|
+
module AnnotationType
|
361
|
+
ANNOTATION_TYPE_UNSPECIFIED = 0
|
362
|
+
|
363
|
+
# Classification annotations in an image. Allowed for continuous evaluation.
|
364
|
+
IMAGE_CLASSIFICATION_ANNOTATION = 1
|
365
|
+
|
366
|
+
# Bounding box annotations in an image. A form of image object detection.
|
367
|
+
# Allowed for continuous evaluation.
|
368
|
+
IMAGE_BOUNDING_BOX_ANNOTATION = 2
|
369
|
+
|
370
|
+
# Oriented bounding box. The box does not have to be parallel to horizontal
|
371
|
+
# line.
|
372
|
+
IMAGE_ORIENTED_BOUNDING_BOX_ANNOTATION = 13
|
373
|
+
|
374
|
+
# Bounding poly annotations in an image.
|
375
|
+
IMAGE_BOUNDING_POLY_ANNOTATION = 10
|
376
|
+
|
377
|
+
# Polyline annotations in an image.
|
378
|
+
IMAGE_POLYLINE_ANNOTATION = 11
|
379
|
+
|
380
|
+
# Segmentation annotations in an image.
|
381
|
+
IMAGE_SEGMENTATION_ANNOTATION = 12
|
382
|
+
|
383
|
+
# Classification annotations in video shots.
|
384
|
+
VIDEO_SHOTS_CLASSIFICATION_ANNOTATION = 3
|
385
|
+
|
386
|
+
# Video object tracking annotation.
|
387
|
+
VIDEO_OBJECT_TRACKING_ANNOTATION = 4
|
388
|
+
|
389
|
+
# Video object detection annotation.
|
390
|
+
VIDEO_OBJECT_DETECTION_ANNOTATION = 5
|
391
|
+
|
392
|
+
# Video event annotation.
|
393
|
+
VIDEO_EVENT_ANNOTATION = 6
|
394
|
+
|
395
|
+
# Classification for text. Allowed for continuous evaluation.
|
396
|
+
TEXT_CLASSIFICATION_ANNOTATION = 8
|
397
|
+
|
398
|
+
# Entity extraction for text.
|
399
|
+
TEXT_ENTITY_EXTRACTION_ANNOTATION = 9
|
400
|
+
|
401
|
+
# General classification. Allowed for continuous evaluation.
|
402
|
+
GENERAL_CLASSIFICATION_ANNOTATION = 14
|
403
|
+
end
|
404
|
+
end
|
405
|
+
end
|
406
|
+
end
|
407
|
+
end
|
@@ -0,0 +1,71 @@
|
|
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 DataLabeling
|
23
|
+
module V1beta1
|
24
|
+
# An AnnotationSpecSet is a collection of label definitions. For example, in
|
25
|
+
# image classification tasks, you define a set of possible labels for images as
|
26
|
+
# an AnnotationSpecSet. An AnnotationSpecSet is immutable upon creation.
|
27
|
+
# @!attribute [rw] name
|
28
|
+
# @return [::String]
|
29
|
+
# Output only. The AnnotationSpecSet resource name in the following format:
|
30
|
+
#
|
31
|
+
# "projects/<var>\\{project_id}</var>/annotationSpecSets/<var>\\{annotation_spec_set_id}</var>"
|
32
|
+
# @!attribute [rw] display_name
|
33
|
+
# @return [::String]
|
34
|
+
# Required. The display name for AnnotationSpecSet that you define when you
|
35
|
+
# create it. Maximum of 64 characters.
|
36
|
+
# @!attribute [rw] description
|
37
|
+
# @return [::String]
|
38
|
+
# Optional. User-provided description of the annotation specification set.
|
39
|
+
# The description can be up to 10,000 characters long.
|
40
|
+
# @!attribute [rw] annotation_specs
|
41
|
+
# @return [::Array<::Google::Cloud::DataLabeling::V1beta1::AnnotationSpec>]
|
42
|
+
# Required. The array of AnnotationSpecs that you define when you create the
|
43
|
+
# AnnotationSpecSet. These are the possible labels for the labeling task.
|
44
|
+
# @!attribute [rw] blocking_resources
|
45
|
+
# @return [::Array<::String>]
|
46
|
+
# Output only. The names of any related resources that are blocking changes
|
47
|
+
# to the annotation spec set.
|
48
|
+
class AnnotationSpecSet
|
49
|
+
include ::Google::Protobuf::MessageExts
|
50
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
51
|
+
end
|
52
|
+
|
53
|
+
# Container of information related to one possible annotation that can be used
|
54
|
+
# in a labeling task. For example, an image classification task where images
|
55
|
+
# are labeled as `dog` or `cat` must reference an AnnotationSpec for `dog` and
|
56
|
+
# an AnnotationSpec for `cat`.
|
57
|
+
# @!attribute [rw] display_name
|
58
|
+
# @return [::String]
|
59
|
+
# Required. The display name of the AnnotationSpec. Maximum of 64 characters.
|
60
|
+
# @!attribute [rw] description
|
61
|
+
# @return [::String]
|
62
|
+
# Optional. User-provided description of the annotation specification.
|
63
|
+
# The description can be up to 10,000 characters long.
|
64
|
+
class AnnotationSpec
|
65
|
+
include ::Google::Protobuf::MessageExts
|
66
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
67
|
+
end
|
68
|
+
end
|
69
|
+
end
|
70
|
+
end
|
71
|
+
end
|