| 1 | package Google::Cloud::Videointelligence::V1beta2::VideoIntelligence::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 'Feature', | ||
| 11 | as (Int | Str); | ||
| 12 | |||
| 13 | declare 'LabelDetectionMode', | ||
| 14 | as (Int | Str); | ||
| 15 | |||
| 16 | declare 'Likelihood', | ||
| 17 | as (Int | Str); | ||
| 18 | |||
| 19 | declare 'AnnotateVideoRequest', | ||
| 20 | as InstanceOf['Google::Cloud::Videointelligence::V1beta2::VideoIntelligence::AnnotateVideoRequest']; | ||
| 21 | |||
| 22 | coerce 'AnnotateVideoRequest', | ||
| 23 | from HashRef, via { 'Google::Cloud::Videointelligence::V1beta2::VideoIntelligence::AnnotateVideoRequest'->new($_) }; | ||
| 24 | |||
| 25 | declare 'RepeatedAnnotateVideoRequest', | ||
| 26 | as ArrayRef[AnnotateVideoRequest()]; | ||
| 27 | |||
| 28 | coerce 'RepeatedAnnotateVideoRequest', | ||
| 29 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Videointelligence::V1beta2::VideoIntelligence::AnnotateVideoRequest'->new($_) } @$_ ] }; | ||
| 30 | |||
| 31 | declare 'MapStringAnnotateVideoRequest', | ||
| 32 | as HashRef[AnnotateVideoRequest()]; | ||
| 33 | |||
| 34 | declare 'VideoContext', | ||
| 35 | as InstanceOf['Google::Cloud::Videointelligence::V1beta2::VideoIntelligence::VideoContext']; | ||
| 36 | |||
| 37 | coerce 'VideoContext', | ||
| 38 | from HashRef, via { 'Google::Cloud::Videointelligence::V1beta2::VideoIntelligence::VideoContext'->new($_) }; | ||
| 39 | |||
| 40 | declare 'RepeatedVideoContext', | ||
| 41 | as ArrayRef[VideoContext()]; | ||
| 42 | |||
| 43 | coerce 'RepeatedVideoContext', | ||
| 44 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Videointelligence::V1beta2::VideoIntelligence::VideoContext'->new($_) } @$_ ] }; | ||
| 45 | |||
| 46 | declare 'MapStringVideoContext', | ||
| 47 | as HashRef[VideoContext()]; | ||
| 48 | |||
| 49 | declare 'LabelDetectionConfig', | ||
| 50 | as InstanceOf['Google::Cloud::Videointelligence::V1beta2::VideoIntelligence::LabelDetectionConfig']; | ||
| 51 | |||
| 52 | coerce 'LabelDetectionConfig', | ||
| 53 | from HashRef, via { 'Google::Cloud::Videointelligence::V1beta2::VideoIntelligence::LabelDetectionConfig'->new($_) }; | ||
| 54 | |||
| 55 | declare 'RepeatedLabelDetectionConfig', | ||
| 56 | as ArrayRef[LabelDetectionConfig()]; | ||
| 57 | |||
| 58 | coerce 'RepeatedLabelDetectionConfig', | ||
| 59 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Videointelligence::V1beta2::VideoIntelligence::LabelDetectionConfig'->new($_) } @$_ ] }; | ||
| 60 | |||
| 61 | declare 'MapStringLabelDetectionConfig', | ||
| 62 | as HashRef[LabelDetectionConfig()]; | ||
| 63 | |||
| 64 | declare 'ShotChangeDetectionConfig', | ||
| 65 | as InstanceOf['Google::Cloud::Videointelligence::V1beta2::VideoIntelligence::ShotChangeDetectionConfig']; | ||
| 66 | |||
| 67 | coerce 'ShotChangeDetectionConfig', | ||
| 68 | from HashRef, via { 'Google::Cloud::Videointelligence::V1beta2::VideoIntelligence::ShotChangeDetectionConfig'->new($_) }; | ||
| 69 | |||
| 70 | declare 'RepeatedShotChangeDetectionConfig', | ||
| 71 | as ArrayRef[ShotChangeDetectionConfig()]; | ||
| 72 | |||
| 73 | coerce 'RepeatedShotChangeDetectionConfig', | ||
| 74 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Videointelligence::V1beta2::VideoIntelligence::ShotChangeDetectionConfig'->new($_) } @$_ ] }; | ||
| 75 | |||
| 76 | declare 'MapStringShotChangeDetectionConfig', | ||
| 77 | as HashRef[ShotChangeDetectionConfig()]; | ||
| 78 | |||
| 79 | declare 'ExplicitContentDetectionConfig', | ||
| 80 | as InstanceOf['Google::Cloud::Videointelligence::V1beta2::VideoIntelligence::ExplicitContentDetectionConfig']; | ||
| 81 | |||
| 82 | coerce 'ExplicitContentDetectionConfig', | ||
| 83 | from HashRef, via { 'Google::Cloud::Videointelligence::V1beta2::VideoIntelligence::ExplicitContentDetectionConfig'->new($_) }; | ||
| 84 | |||
| 85 | declare 'RepeatedExplicitContentDetectionConfig', | ||
| 86 | as ArrayRef[ExplicitContentDetectionConfig()]; | ||
| 87 | |||
| 88 | coerce 'RepeatedExplicitContentDetectionConfig', | ||
| 89 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Videointelligence::V1beta2::VideoIntelligence::ExplicitContentDetectionConfig'->new($_) } @$_ ] }; | ||
| 90 | |||
| 91 | declare 'MapStringExplicitContentDetectionConfig', | ||
| 92 | as HashRef[ExplicitContentDetectionConfig()]; | ||
| 93 | |||
| 94 | declare 'FaceDetectionConfig', | ||
| 95 | as InstanceOf['Google::Cloud::Videointelligence::V1beta2::VideoIntelligence::FaceDetectionConfig']; | ||
| 96 | |||
| 97 | coerce 'FaceDetectionConfig', | ||
| 98 | from HashRef, via { 'Google::Cloud::Videointelligence::V1beta2::VideoIntelligence::FaceDetectionConfig'->new($_) }; | ||
| 99 | |||
| 100 | declare 'RepeatedFaceDetectionConfig', | ||
| 101 | as ArrayRef[FaceDetectionConfig()]; | ||
| 102 | |||
| 103 | coerce 'RepeatedFaceDetectionConfig', | ||
| 104 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Videointelligence::V1beta2::VideoIntelligence::FaceDetectionConfig'->new($_) } @$_ ] }; | ||
| 105 | |||
| 106 | declare 'MapStringFaceDetectionConfig', | ||
| 107 | as HashRef[FaceDetectionConfig()]; | ||
| 108 | |||
| 109 | declare 'VideoSegment', | ||
| 110 | as InstanceOf['Google::Cloud::Videointelligence::V1beta2::VideoIntelligence::VideoSegment']; | ||
| 111 | |||
| 112 | coerce 'VideoSegment', | ||
| 113 | from HashRef, via { 'Google::Cloud::Videointelligence::V1beta2::VideoIntelligence::VideoSegment'->new($_) }; | ||
| 114 | |||
| 115 | declare 'RepeatedVideoSegment', | ||
| 116 | as ArrayRef[VideoSegment()]; | ||
| 117 | |||
| 118 | coerce 'RepeatedVideoSegment', | ||
| 119 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Videointelligence::V1beta2::VideoIntelligence::VideoSegment'->new($_) } @$_ ] }; | ||
| 120 | |||
| 121 | declare 'MapStringVideoSegment', | ||
| 122 | as HashRef[VideoSegment()]; | ||
| 123 | |||
| 124 | declare 'LabelSegment', | ||
| 125 | as InstanceOf['Google::Cloud::Videointelligence::V1beta2::VideoIntelligence::LabelSegment']; | ||
| 126 | |||
| 127 | coerce 'LabelSegment', | ||
| 128 | from HashRef, via { 'Google::Cloud::Videointelligence::V1beta2::VideoIntelligence::LabelSegment'->new($_) }; | ||
| 129 | |||
| 130 | declare 'RepeatedLabelSegment', | ||
| 131 | as ArrayRef[LabelSegment()]; | ||
| 132 | |||
| 133 | coerce 'RepeatedLabelSegment', | ||
| 134 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Videointelligence::V1beta2::VideoIntelligence::LabelSegment'->new($_) } @$_ ] }; | ||
| 135 | |||
| 136 | declare 'MapStringLabelSegment', | ||
| 137 | as HashRef[LabelSegment()]; | ||
| 138 | |||
| 139 | declare 'LabelFrame', | ||
| 140 | as InstanceOf['Google::Cloud::Videointelligence::V1beta2::VideoIntelligence::LabelFrame']; | ||
| 141 | |||
| 142 | coerce 'LabelFrame', | ||
| 143 | from HashRef, via { 'Google::Cloud::Videointelligence::V1beta2::VideoIntelligence::LabelFrame'->new($_) }; | ||
| 144 | |||
| 145 | declare 'RepeatedLabelFrame', | ||
| 146 | as ArrayRef[LabelFrame()]; | ||
| 147 | |||
| 148 | coerce 'RepeatedLabelFrame', | ||
| 149 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Videointelligence::V1beta2::VideoIntelligence::LabelFrame'->new($_) } @$_ ] }; | ||
| 150 | |||
| 151 | declare 'MapStringLabelFrame', | ||
| 152 | as HashRef[LabelFrame()]; | ||
| 153 | |||
| 154 | declare 'Entity', | ||
| 155 | as InstanceOf['Google::Cloud::Videointelligence::V1beta2::VideoIntelligence::Entity']; | ||
| 156 | |||
| 157 | coerce 'Entity', | ||
| 158 | from HashRef, via { 'Google::Cloud::Videointelligence::V1beta2::VideoIntelligence::Entity'->new($_) }; | ||
| 159 | |||
| 160 | declare 'RepeatedEntity', | ||
| 161 | as ArrayRef[Entity()]; | ||
| 162 | |||
| 163 | coerce 'RepeatedEntity', | ||
| 164 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Videointelligence::V1beta2::VideoIntelligence::Entity'->new($_) } @$_ ] }; | ||
| 165 | |||
| 166 | declare 'MapStringEntity', | ||
| 167 | as HashRef[Entity()]; | ||
| 168 | |||
| 169 | declare 'LabelAnnotation', | ||
| 170 | as InstanceOf['Google::Cloud::Videointelligence::V1beta2::VideoIntelligence::LabelAnnotation']; | ||
| 171 | |||
| 172 | coerce 'LabelAnnotation', | ||
| 173 | from HashRef, via { 'Google::Cloud::Videointelligence::V1beta2::VideoIntelligence::LabelAnnotation'->new($_) }; | ||
| 174 | |||
| 175 | declare 'RepeatedLabelAnnotation', | ||
| 176 | as ArrayRef[LabelAnnotation()]; | ||
| 177 | |||
| 178 | coerce 'RepeatedLabelAnnotation', | ||
| 179 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Videointelligence::V1beta2::VideoIntelligence::LabelAnnotation'->new($_) } @$_ ] }; | ||
| 180 | |||
| 181 | declare 'MapStringLabelAnnotation', | ||
| 182 | as HashRef[LabelAnnotation()]; | ||
| 183 | |||
| 184 | declare 'ExplicitContentFrame', | ||
| 185 | as InstanceOf['Google::Cloud::Videointelligence::V1beta2::VideoIntelligence::ExplicitContentFrame']; | ||
| 186 | |||
| 187 | coerce 'ExplicitContentFrame', | ||
| 188 | from HashRef, via { 'Google::Cloud::Videointelligence::V1beta2::VideoIntelligence::ExplicitContentFrame'->new($_) }; | ||
| 189 | |||
| 190 | declare 'RepeatedExplicitContentFrame', | ||
| 191 | as ArrayRef[ExplicitContentFrame()]; | ||
| 192 | |||
| 193 | coerce 'RepeatedExplicitContentFrame', | ||
| 194 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Videointelligence::V1beta2::VideoIntelligence::ExplicitContentFrame'->new($_) } @$_ ] }; | ||
| 195 | |||
| 196 | declare 'MapStringExplicitContentFrame', | ||
| 197 | as HashRef[ExplicitContentFrame()]; | ||
| 198 | |||
| 199 | declare 'ExplicitContentAnnotation', | ||
| 200 | as InstanceOf['Google::Cloud::Videointelligence::V1beta2::VideoIntelligence::ExplicitContentAnnotation']; | ||
| 201 | |||
| 202 | coerce 'ExplicitContentAnnotation', | ||
| 203 | from HashRef, via { 'Google::Cloud::Videointelligence::V1beta2::VideoIntelligence::ExplicitContentAnnotation'->new($_) }; | ||
| 204 | |||
| 205 | declare 'RepeatedExplicitContentAnnotation', | ||
| 206 | as ArrayRef[ExplicitContentAnnotation()]; | ||
| 207 | |||
| 208 | coerce 'RepeatedExplicitContentAnnotation', | ||
| 209 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Videointelligence::V1beta2::VideoIntelligence::ExplicitContentAnnotation'->new($_) } @$_ ] }; | ||
| 210 | |||
| 211 | declare 'MapStringExplicitContentAnnotation', | ||
| 212 | as HashRef[ExplicitContentAnnotation()]; | ||
| 213 | |||
| 214 | declare 'NormalizedBoundingBox', | ||
| 215 | as InstanceOf['Google::Cloud::Videointelligence::V1beta2::VideoIntelligence::NormalizedBoundingBox']; | ||
| 216 | |||
| 217 | coerce 'NormalizedBoundingBox', | ||
| 218 | from HashRef, via { 'Google::Cloud::Videointelligence::V1beta2::VideoIntelligence::NormalizedBoundingBox'->new($_) }; | ||
| 219 | |||
| 220 | declare 'RepeatedNormalizedBoundingBox', | ||
| 221 | as ArrayRef[NormalizedBoundingBox()]; | ||
| 222 | |||
| 223 | coerce 'RepeatedNormalizedBoundingBox', | ||
| 224 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Videointelligence::V1beta2::VideoIntelligence::NormalizedBoundingBox'->new($_) } @$_ ] }; | ||
| 225 | |||
| 226 | declare 'MapStringNormalizedBoundingBox', | ||
| 227 | as HashRef[NormalizedBoundingBox()]; | ||
| 228 | |||
| 229 | declare 'FaceSegment', | ||
| 230 | as InstanceOf['Google::Cloud::Videointelligence::V1beta2::VideoIntelligence::FaceSegment']; | ||
| 231 | |||
| 232 | coerce 'FaceSegment', | ||
| 233 | from HashRef, via { 'Google::Cloud::Videointelligence::V1beta2::VideoIntelligence::FaceSegment'->new($_) }; | ||
| 234 | |||
| 235 | declare 'RepeatedFaceSegment', | ||
| 236 | as ArrayRef[FaceSegment()]; | ||
| 237 | |||
| 238 | coerce 'RepeatedFaceSegment', | ||
| 239 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Videointelligence::V1beta2::VideoIntelligence::FaceSegment'->new($_) } @$_ ] }; | ||
| 240 | |||
| 241 | declare 'MapStringFaceSegment', | ||
| 242 | as HashRef[FaceSegment()]; | ||
| 243 | |||
| 244 | declare 'FaceFrame', | ||
| 245 | as InstanceOf['Google::Cloud::Videointelligence::V1beta2::VideoIntelligence::FaceFrame']; | ||
| 246 | |||
| 247 | coerce 'FaceFrame', | ||
| 248 | from HashRef, via { 'Google::Cloud::Videointelligence::V1beta2::VideoIntelligence::FaceFrame'->new($_) }; | ||
| 249 | |||
| 250 | declare 'RepeatedFaceFrame', | ||
| 251 | as ArrayRef[FaceFrame()]; | ||
| 252 | |||
| 253 | coerce 'RepeatedFaceFrame', | ||
| 254 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Videointelligence::V1beta2::VideoIntelligence::FaceFrame'->new($_) } @$_ ] }; | ||
| 255 | |||
| 256 | declare 'MapStringFaceFrame', | ||
| 257 | as HashRef[FaceFrame()]; | ||
| 258 | |||
| 259 | declare 'FaceAnnotation', | ||
| 260 | as InstanceOf['Google::Cloud::Videointelligence::V1beta2::VideoIntelligence::FaceAnnotation']; | ||
| 261 | |||
| 262 | coerce 'FaceAnnotation', | ||
| 263 | from HashRef, via { 'Google::Cloud::Videointelligence::V1beta2::VideoIntelligence::FaceAnnotation'->new($_) }; | ||
| 264 | |||
| 265 | declare 'RepeatedFaceAnnotation', | ||
| 266 | as ArrayRef[FaceAnnotation()]; | ||
| 267 | |||
| 268 | coerce 'RepeatedFaceAnnotation', | ||
| 269 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Videointelligence::V1beta2::VideoIntelligence::FaceAnnotation'->new($_) } @$_ ] }; | ||
| 270 | |||
| 271 | declare 'MapStringFaceAnnotation', | ||
| 272 | as HashRef[FaceAnnotation()]; | ||
| 273 | |||
| 274 | declare 'VideoAnnotationResults', | ||
| 275 | as InstanceOf['Google::Cloud::Videointelligence::V1beta2::VideoIntelligence::VideoAnnotationResults']; | ||
| 276 | |||
| 277 | coerce 'VideoAnnotationResults', | ||
| 278 | from HashRef, via { 'Google::Cloud::Videointelligence::V1beta2::VideoIntelligence::VideoAnnotationResults'->new($_) }; | ||
| 279 | |||
| 280 | declare 'RepeatedVideoAnnotationResults', | ||
| 281 | as ArrayRef[VideoAnnotationResults()]; | ||
| 282 | |||
| 283 | coerce 'RepeatedVideoAnnotationResults', | ||
| 284 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Videointelligence::V1beta2::VideoIntelligence::VideoAnnotationResults'->new($_) } @$_ ] }; | ||
| 285 | |||
| 286 | declare 'MapStringVideoAnnotationResults', | ||
| 287 | as HashRef[VideoAnnotationResults()]; | ||
| 288 | |||
| 289 | declare 'AnnotateVideoResponse', | ||
| 290 | as InstanceOf['Google::Cloud::Videointelligence::V1beta2::VideoIntelligence::AnnotateVideoResponse']; | ||
| 291 | |||
| 292 | coerce 'AnnotateVideoResponse', | ||
| 293 | from HashRef, via { 'Google::Cloud::Videointelligence::V1beta2::VideoIntelligence::AnnotateVideoResponse'->new($_) }; | ||
| 294 | |||
| 295 | declare 'RepeatedAnnotateVideoResponse', | ||
| 296 | as ArrayRef[AnnotateVideoResponse()]; | ||
| 297 | |||
| 298 | coerce 'RepeatedAnnotateVideoResponse', | ||
| 299 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Videointelligence::V1beta2::VideoIntelligence::AnnotateVideoResponse'->new($_) } @$_ ] }; | ||
| 300 | |||
| 301 | declare 'MapStringAnnotateVideoResponse', | ||
| 302 | as HashRef[AnnotateVideoResponse()]; | ||
| 303 | |||
| 304 | declare 'VideoAnnotationProgress', | ||
| 305 | as InstanceOf['Google::Cloud::Videointelligence::V1beta2::VideoIntelligence::VideoAnnotationProgress']; | ||
| 306 | |||
| 307 | coerce 'VideoAnnotationProgress', | ||
| 308 | from HashRef, via { 'Google::Cloud::Videointelligence::V1beta2::VideoIntelligence::VideoAnnotationProgress'->new($_) }; | ||
| 309 | |||
| 310 | declare 'RepeatedVideoAnnotationProgress', | ||
| 311 | as ArrayRef[VideoAnnotationProgress()]; | ||
| 312 | |||
| 313 | coerce 'RepeatedVideoAnnotationProgress', | ||
| 314 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Videointelligence::V1beta2::VideoIntelligence::VideoAnnotationProgress'->new($_) } @$_ ] }; | ||
| 315 | |||
| 316 | declare 'MapStringVideoAnnotationProgress', | ||
| 317 | as HashRef[VideoAnnotationProgress()]; | ||
| 318 | |||
| 319 | declare 'AnnotateVideoProgress', | ||
| 320 | as InstanceOf['Google::Cloud::Videointelligence::V1beta2::VideoIntelligence::AnnotateVideoProgress']; | ||
| 321 | |||
| 322 | coerce 'AnnotateVideoProgress', | ||
| 323 | from HashRef, via { 'Google::Cloud::Videointelligence::V1beta2::VideoIntelligence::AnnotateVideoProgress'->new($_) }; | ||
| 324 | |||
| 325 | declare 'RepeatedAnnotateVideoProgress', | ||
| 326 | as ArrayRef[AnnotateVideoProgress()]; | ||
| 327 | |||
| 328 | coerce 'RepeatedAnnotateVideoProgress', | ||
| 329 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Videointelligence::V1beta2::VideoIntelligence::AnnotateVideoProgress'->new($_) } @$_ ] }; | ||
| 330 | |||
| 331 | declare 'MapStringAnnotateVideoProgress', | ||
| 332 | as HashRef[AnnotateVideoProgress()]; | ||
| 333 | |||
| 334 | 1; | ||
| 335 | |||
| 336 | __END__ |