V1beta1/Annotation/Types.pm untested

filter: Statementstmt 0.0% 0 / 318 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 5 Podpod n/a totaltotal 0.0% 0 / 323 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 package Google::Cloud::Datalabeling::V1beta1::Annotation::Types;
2  
3 use strict;
4 use warnings;
5  
6 use Type::Library -base;
7 use Type::Utils -all;
8 use Types::Standard -types;
9  
10 declare 'AnnotationSource',
11 as (Int | Str);
12  
13 declare 'AnnotationSentiment',
14 as (Int | Str);
15  
16 declare 'AnnotationType',
17 as (Int | Str);
18  
19 declare 'Annotation',
20 as InstanceOf['Google::Cloud::Datalabeling::V1beta1::Annotation::Annotation'];
21  
22 coerce 'Annotation',
23 from HashRef, via { 'Google::Cloud::Datalabeling::V1beta1::Annotation::Annotation'->new($_) };
24  
25 declare 'RepeatedAnnotation',
26 as ArrayRef[Annotation()];
27  
28 coerce 'RepeatedAnnotation',
29 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Datalabeling::V1beta1::Annotation::Annotation'->new($_) } @$_ ] };
30  
31 declare 'MapStringAnnotation',
32 as HashRef[Annotation()];
33  
34 declare 'AnnotationValue',
35 as InstanceOf['Google::Cloud::Datalabeling::V1beta1::Annotation::AnnotationValue'];
36  
37 coerce 'AnnotationValue',
38 from HashRef, via { 'Google::Cloud::Datalabeling::V1beta1::Annotation::AnnotationValue'->new($_) };
39  
40 declare 'RepeatedAnnotationValue',
41 as ArrayRef[AnnotationValue()];
42  
43 coerce 'RepeatedAnnotationValue',
44 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Datalabeling::V1beta1::Annotation::AnnotationValue'->new($_) } @$_ ] };
45  
46 declare 'MapStringAnnotationValue',
47 as HashRef[AnnotationValue()];
48  
49 declare 'ImageClassificationAnnotation',
50 as InstanceOf['Google::Cloud::Datalabeling::V1beta1::Annotation::ImageClassificationAnnotation'];
51  
52 coerce 'ImageClassificationAnnotation',
53 from HashRef, via { 'Google::Cloud::Datalabeling::V1beta1::Annotation::ImageClassificationAnnotation'->new($_) };
54  
55 declare 'RepeatedImageClassificationAnnotation',
56 as ArrayRef[ImageClassificationAnnotation()];
57  
58 coerce 'RepeatedImageClassificationAnnotation',
59 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Datalabeling::V1beta1::Annotation::ImageClassificationAnnotation'->new($_) } @$_ ] };
60  
61 declare 'MapStringImageClassificationAnnotation',
62 as HashRef[ImageClassificationAnnotation()];
63  
64 declare 'Vertex',
65 as InstanceOf['Google::Cloud::Datalabeling::V1beta1::Annotation::Vertex'];
66  
67 coerce 'Vertex',
68 from HashRef, via { 'Google::Cloud::Datalabeling::V1beta1::Annotation::Vertex'->new($_) };
69  
70 declare 'RepeatedVertex',
71 as ArrayRef[Vertex()];
72  
73 coerce 'RepeatedVertex',
74 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Datalabeling::V1beta1::Annotation::Vertex'->new($_) } @$_ ] };
75  
76 declare 'MapStringVertex',
77 as HashRef[Vertex()];
78  
79 declare 'NormalizedVertex',
80 as InstanceOf['Google::Cloud::Datalabeling::V1beta1::Annotation::NormalizedVertex'];
81  
82 coerce 'NormalizedVertex',
83 from HashRef, via { 'Google::Cloud::Datalabeling::V1beta1::Annotation::NormalizedVertex'->new($_) };
84  
85 declare 'RepeatedNormalizedVertex',
86 as ArrayRef[NormalizedVertex()];
87  
88 coerce 'RepeatedNormalizedVertex',
89 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Datalabeling::V1beta1::Annotation::NormalizedVertex'->new($_) } @$_ ] };
90  
91 declare 'MapStringNormalizedVertex',
92 as HashRef[NormalizedVertex()];
93  
94 declare 'BoundingPoly',
95 as InstanceOf['Google::Cloud::Datalabeling::V1beta1::Annotation::BoundingPoly'];
96  
97 coerce 'BoundingPoly',
98 from HashRef, via { 'Google::Cloud::Datalabeling::V1beta1::Annotation::BoundingPoly'->new($_) };
99  
100 declare 'RepeatedBoundingPoly',
101 as ArrayRef[BoundingPoly()];
102  
103 coerce 'RepeatedBoundingPoly',
104 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Datalabeling::V1beta1::Annotation::BoundingPoly'->new($_) } @$_ ] };
105  
106 declare 'MapStringBoundingPoly',
107 as HashRef[BoundingPoly()];
108  
109 declare 'NormalizedBoundingPoly',
110 as InstanceOf['Google::Cloud::Datalabeling::V1beta1::Annotation::NormalizedBoundingPoly'];
111  
112 coerce 'NormalizedBoundingPoly',
113 from HashRef, via { 'Google::Cloud::Datalabeling::V1beta1::Annotation::NormalizedBoundingPoly'->new($_) };
114  
115 declare 'RepeatedNormalizedBoundingPoly',
116 as ArrayRef[NormalizedBoundingPoly()];
117  
118 coerce 'RepeatedNormalizedBoundingPoly',
119 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Datalabeling::V1beta1::Annotation::NormalizedBoundingPoly'->new($_) } @$_ ] };
120  
121 declare 'MapStringNormalizedBoundingPoly',
122 as HashRef[NormalizedBoundingPoly()];
123  
124 declare 'ImageBoundingPolyAnnotation',
125 as InstanceOf['Google::Cloud::Datalabeling::V1beta1::Annotation::ImageBoundingPolyAnnotation'];
126  
127 coerce 'ImageBoundingPolyAnnotation',
128 from HashRef, via { 'Google::Cloud::Datalabeling::V1beta1::Annotation::ImageBoundingPolyAnnotation'->new($_) };
129  
130 declare 'RepeatedImageBoundingPolyAnnotation',
131 as ArrayRef[ImageBoundingPolyAnnotation()];
132  
133 coerce 'RepeatedImageBoundingPolyAnnotation',
134 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Datalabeling::V1beta1::Annotation::ImageBoundingPolyAnnotation'->new($_) } @$_ ] };
135  
136 declare 'MapStringImageBoundingPolyAnnotation',
137 as HashRef[ImageBoundingPolyAnnotation()];
138  
139 declare 'Polyline',
140 as InstanceOf['Google::Cloud::Datalabeling::V1beta1::Annotation::Polyline'];
141  
142 coerce 'Polyline',
143 from HashRef, via { 'Google::Cloud::Datalabeling::V1beta1::Annotation::Polyline'->new($_) };
144  
145 declare 'RepeatedPolyline',
146 as ArrayRef[Polyline()];
147  
148 coerce 'RepeatedPolyline',
149 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Datalabeling::V1beta1::Annotation::Polyline'->new($_) } @$_ ] };
150  
151 declare 'MapStringPolyline',
152 as HashRef[Polyline()];
153  
154 declare 'NormalizedPolyline',
155 as InstanceOf['Google::Cloud::Datalabeling::V1beta1::Annotation::NormalizedPolyline'];
156  
157 coerce 'NormalizedPolyline',
158 from HashRef, via { 'Google::Cloud::Datalabeling::V1beta1::Annotation::NormalizedPolyline'->new($_) };
159  
160 declare 'RepeatedNormalizedPolyline',
161 as ArrayRef[NormalizedPolyline()];
162  
163 coerce 'RepeatedNormalizedPolyline',
164 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Datalabeling::V1beta1::Annotation::NormalizedPolyline'->new($_) } @$_ ] };
165  
166 declare 'MapStringNormalizedPolyline',
167 as HashRef[NormalizedPolyline()];
168  
169 declare 'ImagePolylineAnnotation',
170 as InstanceOf['Google::Cloud::Datalabeling::V1beta1::Annotation::ImagePolylineAnnotation'];
171  
172 coerce 'ImagePolylineAnnotation',
173 from HashRef, via { 'Google::Cloud::Datalabeling::V1beta1::Annotation::ImagePolylineAnnotation'->new($_) };
174  
175 declare 'RepeatedImagePolylineAnnotation',
176 as ArrayRef[ImagePolylineAnnotation()];
177  
178 coerce 'RepeatedImagePolylineAnnotation',
179 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Datalabeling::V1beta1::Annotation::ImagePolylineAnnotation'->new($_) } @$_ ] };
180  
181 declare 'MapStringImagePolylineAnnotation',
182 as HashRef[ImagePolylineAnnotation()];
183  
184 declare 'ImageSegmentationAnnotation',
185 as InstanceOf['Google::Cloud::Datalabeling::V1beta1::Annotation::ImageSegmentationAnnotation'];
186  
187 coerce 'ImageSegmentationAnnotation',
188 from HashRef, via { 'Google::Cloud::Datalabeling::V1beta1::Annotation::ImageSegmentationAnnotation'->new($_) };
189  
190 declare 'RepeatedImageSegmentationAnnotation',
191 as ArrayRef[ImageSegmentationAnnotation()];
192  
193 coerce 'RepeatedImageSegmentationAnnotation',
194 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Datalabeling::V1beta1::Annotation::ImageSegmentationAnnotation'->new($_) } @$_ ] };
195  
196 declare 'MapStringImageSegmentationAnnotation',
197 as HashRef[ImageSegmentationAnnotation()];
198  
199 declare 'AnnotationColorsEntry',
200 as InstanceOf['Google::Cloud::Datalabeling::V1beta1::Annotation::ImageSegmentationAnnotation::AnnotationColorsEntry'];
201  
202 coerce 'AnnotationColorsEntry',
203 from HashRef, via { 'Google::Cloud::Datalabeling::V1beta1::Annotation::ImageSegmentationAnnotation::AnnotationColorsEntry'->new($_) };
204  
205 declare 'RepeatedAnnotationColorsEntry',
206 as ArrayRef[AnnotationColorsEntry()];
207  
208 coerce 'RepeatedAnnotationColorsEntry',
209 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Datalabeling::V1beta1::Annotation::ImageSegmentationAnnotation::AnnotationColorsEntry'->new($_) } @$_ ] };
210  
211 declare 'MapStringAnnotationColorsEntry',
212 as HashRef[AnnotationColorsEntry()];
213  
214 declare 'TextClassificationAnnotation',
215 as InstanceOf['Google::Cloud::Datalabeling::V1beta1::Annotation::TextClassificationAnnotation'];
216  
217 coerce 'TextClassificationAnnotation',
218 from HashRef, via { 'Google::Cloud::Datalabeling::V1beta1::Annotation::TextClassificationAnnotation'->new($_) };
219  
220 declare 'RepeatedTextClassificationAnnotation',
221 as ArrayRef[TextClassificationAnnotation()];
222  
223 coerce 'RepeatedTextClassificationAnnotation',
224 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Datalabeling::V1beta1::Annotation::TextClassificationAnnotation'->new($_) } @$_ ] };
225  
226 declare 'MapStringTextClassificationAnnotation',
227 as HashRef[TextClassificationAnnotation()];
228  
229 declare 'TextEntityExtractionAnnotation',
230 as InstanceOf['Google::Cloud::Datalabeling::V1beta1::Annotation::TextEntityExtractionAnnotation'];
231  
232 coerce 'TextEntityExtractionAnnotation',
233 from HashRef, via { 'Google::Cloud::Datalabeling::V1beta1::Annotation::TextEntityExtractionAnnotation'->new($_) };
234  
235 declare 'RepeatedTextEntityExtractionAnnotation',
236 as ArrayRef[TextEntityExtractionAnnotation()];
237  
238 coerce 'RepeatedTextEntityExtractionAnnotation',
239 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Datalabeling::V1beta1::Annotation::TextEntityExtractionAnnotation'->new($_) } @$_ ] };
240  
241 declare 'MapStringTextEntityExtractionAnnotation',
242 as HashRef[TextEntityExtractionAnnotation()];
243  
244 declare 'SequentialSegment',
245 as InstanceOf['Google::Cloud::Datalabeling::V1beta1::Annotation::SequentialSegment'];
246  
247 coerce 'SequentialSegment',
248 from HashRef, via { 'Google::Cloud::Datalabeling::V1beta1::Annotation::SequentialSegment'->new($_) };
249  
250 declare 'RepeatedSequentialSegment',
251 as ArrayRef[SequentialSegment()];
252  
253 coerce 'RepeatedSequentialSegment',
254 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Datalabeling::V1beta1::Annotation::SequentialSegment'->new($_) } @$_ ] };
255  
256 declare 'MapStringSequentialSegment',
257 as HashRef[SequentialSegment()];
258  
259 declare 'TimeSegment',
260 as InstanceOf['Google::Cloud::Datalabeling::V1beta1::Annotation::TimeSegment'];
261  
262 coerce 'TimeSegment',
263 from HashRef, via { 'Google::Cloud::Datalabeling::V1beta1::Annotation::TimeSegment'->new($_) };
264  
265 declare 'RepeatedTimeSegment',
266 as ArrayRef[TimeSegment()];
267  
268 coerce 'RepeatedTimeSegment',
269 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Datalabeling::V1beta1::Annotation::TimeSegment'->new($_) } @$_ ] };
270  
271 declare 'MapStringTimeSegment',
272 as HashRef[TimeSegment()];
273  
274 declare 'VideoClassificationAnnotation',
275 as InstanceOf['Google::Cloud::Datalabeling::V1beta1::Annotation::VideoClassificationAnnotation'];
276  
277 coerce 'VideoClassificationAnnotation',
278 from HashRef, via { 'Google::Cloud::Datalabeling::V1beta1::Annotation::VideoClassificationAnnotation'->new($_) };
279  
280 declare 'RepeatedVideoClassificationAnnotation',
281 as ArrayRef[VideoClassificationAnnotation()];
282  
283 coerce 'RepeatedVideoClassificationAnnotation',
284 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Datalabeling::V1beta1::Annotation::VideoClassificationAnnotation'->new($_) } @$_ ] };
285  
286 declare 'MapStringVideoClassificationAnnotation',
287 as HashRef[VideoClassificationAnnotation()];
288  
289 declare 'ObjectTrackingFrame',
290 as InstanceOf['Google::Cloud::Datalabeling::V1beta1::Annotation::ObjectTrackingFrame'];
291  
292 coerce 'ObjectTrackingFrame',
293 from HashRef, via { 'Google::Cloud::Datalabeling::V1beta1::Annotation::ObjectTrackingFrame'->new($_) };
294  
295 declare 'RepeatedObjectTrackingFrame',
296 as ArrayRef[ObjectTrackingFrame()];
297  
298 coerce 'RepeatedObjectTrackingFrame',
299 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Datalabeling::V1beta1::Annotation::ObjectTrackingFrame'->new($_) } @$_ ] };
300  
301 declare 'MapStringObjectTrackingFrame',
302 as HashRef[ObjectTrackingFrame()];
303  
304 declare 'VideoObjectTrackingAnnotation',
305 as InstanceOf['Google::Cloud::Datalabeling::V1beta1::Annotation::VideoObjectTrackingAnnotation'];
306  
307 coerce 'VideoObjectTrackingAnnotation',
308 from HashRef, via { 'Google::Cloud::Datalabeling::V1beta1::Annotation::VideoObjectTrackingAnnotation'->new($_) };
309  
310 declare 'RepeatedVideoObjectTrackingAnnotation',
311 as ArrayRef[VideoObjectTrackingAnnotation()];
312  
313 coerce 'RepeatedVideoObjectTrackingAnnotation',
314 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Datalabeling::V1beta1::Annotation::VideoObjectTrackingAnnotation'->new($_) } @$_ ] };
315  
316 declare 'MapStringVideoObjectTrackingAnnotation',
317 as HashRef[VideoObjectTrackingAnnotation()];
318  
319 declare 'VideoEventAnnotation',
320 as InstanceOf['Google::Cloud::Datalabeling::V1beta1::Annotation::VideoEventAnnotation'];
321  
322 coerce 'VideoEventAnnotation',
323 from HashRef, via { 'Google::Cloud::Datalabeling::V1beta1::Annotation::VideoEventAnnotation'->new($_) };
324  
325 declare 'RepeatedVideoEventAnnotation',
326 as ArrayRef[VideoEventAnnotation()];
327  
328 coerce 'RepeatedVideoEventAnnotation',
329 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Datalabeling::V1beta1::Annotation::VideoEventAnnotation'->new($_) } @$_ ] };
330  
331 declare 'MapStringVideoEventAnnotation',
332 as HashRef[VideoEventAnnotation()];
333  
334 declare 'AnnotationMetadata',
335 as InstanceOf['Google::Cloud::Datalabeling::V1beta1::Annotation::AnnotationMetadata'];
336  
337 coerce 'AnnotationMetadata',
338 from HashRef, via { 'Google::Cloud::Datalabeling::V1beta1::Annotation::AnnotationMetadata'->new($_) };
339  
340 declare 'RepeatedAnnotationMetadata',
341 as ArrayRef[AnnotationMetadata()];
342  
343 coerce 'RepeatedAnnotationMetadata',
344 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Datalabeling::V1beta1::Annotation::AnnotationMetadata'->new($_) } @$_ ] };
345  
346 declare 'MapStringAnnotationMetadata',
347 as HashRef[AnnotationMetadata()];
348  
349 declare 'OperatorMetadata',
350 as InstanceOf['Google::Cloud::Datalabeling::V1beta1::Annotation::OperatorMetadata'];
351  
352 coerce 'OperatorMetadata',
353 from HashRef, via { 'Google::Cloud::Datalabeling::V1beta1::Annotation::OperatorMetadata'->new($_) };
354  
355 declare 'RepeatedOperatorMetadata',
356 as ArrayRef[OperatorMetadata()];
357  
358 coerce 'RepeatedOperatorMetadata',
359 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Datalabeling::V1beta1::Annotation::OperatorMetadata'->new($_) } @$_ ] };
360  
361 declare 'MapStringOperatorMetadata',
362 as HashRef[OperatorMetadata()];
363  
364 1;
365  
366 __END__