| 1 | package Google::Cloud::Vision::V1::ImageAnnotator::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 'Likelihood', | ||
| 11 | as (Int | Str); | ||
| 12 | |||
| 13 | declare 'Feature', | ||
| 14 | as InstanceOf['Google::Cloud::Vision::V1::ImageAnnotator::Feature']; | ||
| 15 | |||
| 16 | coerce 'Feature', | ||
| 17 | from HashRef, via { 'Google::Cloud::Vision::V1::ImageAnnotator::Feature'->new($_) }; | ||
| 18 | |||
| 19 | declare 'RepeatedFeature', | ||
| 20 | as ArrayRef[Feature()]; | ||
| 21 | |||
| 22 | coerce 'RepeatedFeature', | ||
| 23 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Vision::V1::ImageAnnotator::Feature'->new($_) } @$_ ] }; | ||
| 24 | |||
| 25 | declare 'MapStringFeature', | ||
| 26 | as HashRef[Feature()]; | ||
| 27 | |||
| 28 | declare 'Type', | ||
| 29 | as (Int | Str); | ||
| 30 | |||
| 31 | declare 'ImageSource', | ||
| 32 | as InstanceOf['Google::Cloud::Vision::V1::ImageAnnotator::ImageSource']; | ||
| 33 | |||
| 34 | coerce 'ImageSource', | ||
| 35 | from HashRef, via { 'Google::Cloud::Vision::V1::ImageAnnotator::ImageSource'->new($_) }; | ||
| 36 | |||
| 37 | declare 'RepeatedImageSource', | ||
| 38 | as ArrayRef[ImageSource()]; | ||
| 39 | |||
| 40 | coerce 'RepeatedImageSource', | ||
| 41 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Vision::V1::ImageAnnotator::ImageSource'->new($_) } @$_ ] }; | ||
| 42 | |||
| 43 | declare 'MapStringImageSource', | ||
| 44 | as HashRef[ImageSource()]; | ||
| 45 | |||
| 46 | declare 'Image', | ||
| 47 | as InstanceOf['Google::Cloud::Vision::V1::ImageAnnotator::Image']; | ||
| 48 | |||
| 49 | coerce 'Image', | ||
| 50 | from HashRef, via { 'Google::Cloud::Vision::V1::ImageAnnotator::Image'->new($_) }; | ||
| 51 | |||
| 52 | declare 'RepeatedImage', | ||
| 53 | as ArrayRef[Image()]; | ||
| 54 | |||
| 55 | coerce 'RepeatedImage', | ||
| 56 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Vision::V1::ImageAnnotator::Image'->new($_) } @$_ ] }; | ||
| 57 | |||
| 58 | declare 'MapStringImage', | ||
| 59 | as HashRef[Image()]; | ||
| 60 | |||
| 61 | declare 'FaceAnnotation', | ||
| 62 | as InstanceOf['Google::Cloud::Vision::V1::ImageAnnotator::FaceAnnotation']; | ||
| 63 | |||
| 64 | coerce 'FaceAnnotation', | ||
| 65 | from HashRef, via { 'Google::Cloud::Vision::V1::ImageAnnotator::FaceAnnotation'->new($_) }; | ||
| 66 | |||
| 67 | declare 'RepeatedFaceAnnotation', | ||
| 68 | as ArrayRef[FaceAnnotation()]; | ||
| 69 | |||
| 70 | coerce 'RepeatedFaceAnnotation', | ||
| 71 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Vision::V1::ImageAnnotator::FaceAnnotation'->new($_) } @$_ ] }; | ||
| 72 | |||
| 73 | declare 'MapStringFaceAnnotation', | ||
| 74 | as HashRef[FaceAnnotation()]; | ||
| 75 | |||
| 76 | declare 'Landmark', | ||
| 77 | as InstanceOf['Google::Cloud::Vision::V1::ImageAnnotator::FaceAnnotation::Landmark']; | ||
| 78 | |||
| 79 | coerce 'Landmark', | ||
| 80 | from HashRef, via { 'Google::Cloud::Vision::V1::ImageAnnotator::FaceAnnotation::Landmark'->new($_) }; | ||
| 81 | |||
| 82 | declare 'RepeatedLandmark', | ||
| 83 | as ArrayRef[Landmark()]; | ||
| 84 | |||
| 85 | coerce 'RepeatedLandmark', | ||
| 86 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Vision::V1::ImageAnnotator::FaceAnnotation::Landmark'->new($_) } @$_ ] }; | ||
| 87 | |||
| 88 | declare 'MapStringLandmark', | ||
| 89 | as HashRef[Landmark()]; | ||
| 90 | |||
| 91 | declare 'Type', | ||
| 92 | as (Int | Str); | ||
| 93 | |||
| 94 | declare 'LocationInfo', | ||
| 95 | as InstanceOf['Google::Cloud::Vision::V1::ImageAnnotator::LocationInfo']; | ||
| 96 | |||
| 97 | coerce 'LocationInfo', | ||
| 98 | from HashRef, via { 'Google::Cloud::Vision::V1::ImageAnnotator::LocationInfo'->new($_) }; | ||
| 99 | |||
| 100 | declare 'RepeatedLocationInfo', | ||
| 101 | as ArrayRef[LocationInfo()]; | ||
| 102 | |||
| 103 | coerce 'RepeatedLocationInfo', | ||
| 104 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Vision::V1::ImageAnnotator::LocationInfo'->new($_) } @$_ ] }; | ||
| 105 | |||
| 106 | declare 'MapStringLocationInfo', | ||
| 107 | as HashRef[LocationInfo()]; | ||
| 108 | |||
| 109 | declare 'Property', | ||
| 110 | as InstanceOf['Google::Cloud::Vision::V1::ImageAnnotator::Property']; | ||
| 111 | |||
| 112 | coerce 'Property', | ||
| 113 | from HashRef, via { 'Google::Cloud::Vision::V1::ImageAnnotator::Property'->new($_) }; | ||
| 114 | |||
| 115 | declare 'RepeatedProperty', | ||
| 116 | as ArrayRef[Property()]; | ||
| 117 | |||
| 118 | coerce 'RepeatedProperty', | ||
| 119 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Vision::V1::ImageAnnotator::Property'->new($_) } @$_ ] }; | ||
| 120 | |||
| 121 | declare 'MapStringProperty', | ||
| 122 | as HashRef[Property()]; | ||
| 123 | |||
| 124 | declare 'EntityAnnotation', | ||
| 125 | as InstanceOf['Google::Cloud::Vision::V1::ImageAnnotator::EntityAnnotation']; | ||
| 126 | |||
| 127 | coerce 'EntityAnnotation', | ||
| 128 | from HashRef, via { 'Google::Cloud::Vision::V1::ImageAnnotator::EntityAnnotation'->new($_) }; | ||
| 129 | |||
| 130 | declare 'RepeatedEntityAnnotation', | ||
| 131 | as ArrayRef[EntityAnnotation()]; | ||
| 132 | |||
| 133 | coerce 'RepeatedEntityAnnotation', | ||
| 134 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Vision::V1::ImageAnnotator::EntityAnnotation'->new($_) } @$_ ] }; | ||
| 135 | |||
| 136 | declare 'MapStringEntityAnnotation', | ||
| 137 | as HashRef[EntityAnnotation()]; | ||
| 138 | |||
| 139 | declare 'LocalizedObjectAnnotation', | ||
| 140 | as InstanceOf['Google::Cloud::Vision::V1::ImageAnnotator::LocalizedObjectAnnotation']; | ||
| 141 | |||
| 142 | coerce 'LocalizedObjectAnnotation', | ||
| 143 | from HashRef, via { 'Google::Cloud::Vision::V1::ImageAnnotator::LocalizedObjectAnnotation'->new($_) }; | ||
| 144 | |||
| 145 | declare 'RepeatedLocalizedObjectAnnotation', | ||
| 146 | as ArrayRef[LocalizedObjectAnnotation()]; | ||
| 147 | |||
| 148 | coerce 'RepeatedLocalizedObjectAnnotation', | ||
| 149 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Vision::V1::ImageAnnotator::LocalizedObjectAnnotation'->new($_) } @$_ ] }; | ||
| 150 | |||
| 151 | declare 'MapStringLocalizedObjectAnnotation', | ||
| 152 | as HashRef[LocalizedObjectAnnotation()]; | ||
| 153 | |||
| 154 | declare 'SafeSearchAnnotation', | ||
| 155 | as InstanceOf['Google::Cloud::Vision::V1::ImageAnnotator::SafeSearchAnnotation']; | ||
| 156 | |||
| 157 | coerce 'SafeSearchAnnotation', | ||
| 158 | from HashRef, via { 'Google::Cloud::Vision::V1::ImageAnnotator::SafeSearchAnnotation'->new($_) }; | ||
| 159 | |||
| 160 | declare 'RepeatedSafeSearchAnnotation', | ||
| 161 | as ArrayRef[SafeSearchAnnotation()]; | ||
| 162 | |||
| 163 | coerce 'RepeatedSafeSearchAnnotation', | ||
| 164 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Vision::V1::ImageAnnotator::SafeSearchAnnotation'->new($_) } @$_ ] }; | ||
| 165 | |||
| 166 | declare 'MapStringSafeSearchAnnotation', | ||
| 167 | as HashRef[SafeSearchAnnotation()]; | ||
| 168 | |||
| 169 | declare 'LatLongRect', | ||
| 170 | as InstanceOf['Google::Cloud::Vision::V1::ImageAnnotator::LatLongRect']; | ||
| 171 | |||
| 172 | coerce 'LatLongRect', | ||
| 173 | from HashRef, via { 'Google::Cloud::Vision::V1::ImageAnnotator::LatLongRect'->new($_) }; | ||
| 174 | |||
| 175 | declare 'RepeatedLatLongRect', | ||
| 176 | as ArrayRef[LatLongRect()]; | ||
| 177 | |||
| 178 | coerce 'RepeatedLatLongRect', | ||
| 179 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Vision::V1::ImageAnnotator::LatLongRect'->new($_) } @$_ ] }; | ||
| 180 | |||
| 181 | declare 'MapStringLatLongRect', | ||
| 182 | as HashRef[LatLongRect()]; | ||
| 183 | |||
| 184 | declare 'ColorInfo', | ||
| 185 | as InstanceOf['Google::Cloud::Vision::V1::ImageAnnotator::ColorInfo']; | ||
| 186 | |||
| 187 | coerce 'ColorInfo', | ||
| 188 | from HashRef, via { 'Google::Cloud::Vision::V1::ImageAnnotator::ColorInfo'->new($_) }; | ||
| 189 | |||
| 190 | declare 'RepeatedColorInfo', | ||
| 191 | as ArrayRef[ColorInfo()]; | ||
| 192 | |||
| 193 | coerce 'RepeatedColorInfo', | ||
| 194 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Vision::V1::ImageAnnotator::ColorInfo'->new($_) } @$_ ] }; | ||
| 195 | |||
| 196 | declare 'MapStringColorInfo', | ||
| 197 | as HashRef[ColorInfo()]; | ||
| 198 | |||
| 199 | declare 'DominantColorsAnnotation', | ||
| 200 | as InstanceOf['Google::Cloud::Vision::V1::ImageAnnotator::DominantColorsAnnotation']; | ||
| 201 | |||
| 202 | coerce 'DominantColorsAnnotation', | ||
| 203 | from HashRef, via { 'Google::Cloud::Vision::V1::ImageAnnotator::DominantColorsAnnotation'->new($_) }; | ||
| 204 | |||
| 205 | declare 'RepeatedDominantColorsAnnotation', | ||
| 206 | as ArrayRef[DominantColorsAnnotation()]; | ||
| 207 | |||
| 208 | coerce 'RepeatedDominantColorsAnnotation', | ||
| 209 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Vision::V1::ImageAnnotator::DominantColorsAnnotation'->new($_) } @$_ ] }; | ||
| 210 | |||
| 211 | declare 'MapStringDominantColorsAnnotation', | ||
| 212 | as HashRef[DominantColorsAnnotation()]; | ||
| 213 | |||
| 214 | declare 'ImageProperties', | ||
| 215 | as InstanceOf['Google::Cloud::Vision::V1::ImageAnnotator::ImageProperties']; | ||
| 216 | |||
| 217 | coerce 'ImageProperties', | ||
| 218 | from HashRef, via { 'Google::Cloud::Vision::V1::ImageAnnotator::ImageProperties'->new($_) }; | ||
| 219 | |||
| 220 | declare 'RepeatedImageProperties', | ||
| 221 | as ArrayRef[ImageProperties()]; | ||
| 222 | |||
| 223 | coerce 'RepeatedImageProperties', | ||
| 224 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Vision::V1::ImageAnnotator::ImageProperties'->new($_) } @$_ ] }; | ||
| 225 | |||
| 226 | declare 'MapStringImageProperties', | ||
| 227 | as HashRef[ImageProperties()]; | ||
| 228 | |||
| 229 | declare 'CropHint', | ||
| 230 | as InstanceOf['Google::Cloud::Vision::V1::ImageAnnotator::CropHint']; | ||
| 231 | |||
| 232 | coerce 'CropHint', | ||
| 233 | from HashRef, via { 'Google::Cloud::Vision::V1::ImageAnnotator::CropHint'->new($_) }; | ||
| 234 | |||
| 235 | declare 'RepeatedCropHint', | ||
| 236 | as ArrayRef[CropHint()]; | ||
| 237 | |||
| 238 | coerce 'RepeatedCropHint', | ||
| 239 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Vision::V1::ImageAnnotator::CropHint'->new($_) } @$_ ] }; | ||
| 240 | |||
| 241 | declare 'MapStringCropHint', | ||
| 242 | as HashRef[CropHint()]; | ||
| 243 | |||
| 244 | declare 'CropHintsAnnotation', | ||
| 245 | as InstanceOf['Google::Cloud::Vision::V1::ImageAnnotator::CropHintsAnnotation']; | ||
| 246 | |||
| 247 | coerce 'CropHintsAnnotation', | ||
| 248 | from HashRef, via { 'Google::Cloud::Vision::V1::ImageAnnotator::CropHintsAnnotation'->new($_) }; | ||
| 249 | |||
| 250 | declare 'RepeatedCropHintsAnnotation', | ||
| 251 | as ArrayRef[CropHintsAnnotation()]; | ||
| 252 | |||
| 253 | coerce 'RepeatedCropHintsAnnotation', | ||
| 254 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Vision::V1::ImageAnnotator::CropHintsAnnotation'->new($_) } @$_ ] }; | ||
| 255 | |||
| 256 | declare 'MapStringCropHintsAnnotation', | ||
| 257 | as HashRef[CropHintsAnnotation()]; | ||
| 258 | |||
| 259 | declare 'CropHintsParams', | ||
| 260 | as InstanceOf['Google::Cloud::Vision::V1::ImageAnnotator::CropHintsParams']; | ||
| 261 | |||
| 262 | coerce 'CropHintsParams', | ||
| 263 | from HashRef, via { 'Google::Cloud::Vision::V1::ImageAnnotator::CropHintsParams'->new($_) }; | ||
| 264 | |||
| 265 | declare 'RepeatedCropHintsParams', | ||
| 266 | as ArrayRef[CropHintsParams()]; | ||
| 267 | |||
| 268 | coerce 'RepeatedCropHintsParams', | ||
| 269 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Vision::V1::ImageAnnotator::CropHintsParams'->new($_) } @$_ ] }; | ||
| 270 | |||
| 271 | declare 'MapStringCropHintsParams', | ||
| 272 | as HashRef[CropHintsParams()]; | ||
| 273 | |||
| 274 | declare 'WebDetectionParams', | ||
| 275 | as InstanceOf['Google::Cloud::Vision::V1::ImageAnnotator::WebDetectionParams']; | ||
| 276 | |||
| 277 | coerce 'WebDetectionParams', | ||
| 278 | from HashRef, via { 'Google::Cloud::Vision::V1::ImageAnnotator::WebDetectionParams'->new($_) }; | ||
| 279 | |||
| 280 | declare 'RepeatedWebDetectionParams', | ||
| 281 | as ArrayRef[WebDetectionParams()]; | ||
| 282 | |||
| 283 | coerce 'RepeatedWebDetectionParams', | ||
| 284 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Vision::V1::ImageAnnotator::WebDetectionParams'->new($_) } @$_ ] }; | ||
| 285 | |||
| 286 | declare 'MapStringWebDetectionParams', | ||
| 287 | as HashRef[WebDetectionParams()]; | ||
| 288 | |||
| 289 | declare 'TextDetectionParams', | ||
| 290 | as InstanceOf['Google::Cloud::Vision::V1::ImageAnnotator::TextDetectionParams']; | ||
| 291 | |||
| 292 | coerce 'TextDetectionParams', | ||
| 293 | from HashRef, via { 'Google::Cloud::Vision::V1::ImageAnnotator::TextDetectionParams'->new($_) }; | ||
| 294 | |||
| 295 | declare 'RepeatedTextDetectionParams', | ||
| 296 | as ArrayRef[TextDetectionParams()]; | ||
| 297 | |||
| 298 | coerce 'RepeatedTextDetectionParams', | ||
| 299 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Vision::V1::ImageAnnotator::TextDetectionParams'->new($_) } @$_ ] }; | ||
| 300 | |||
| 301 | declare 'MapStringTextDetectionParams', | ||
| 302 | as HashRef[TextDetectionParams()]; | ||
| 303 | |||
| 304 | declare 'ImageContext', | ||
| 305 | as InstanceOf['Google::Cloud::Vision::V1::ImageAnnotator::ImageContext']; | ||
| 306 | |||
| 307 | coerce 'ImageContext', | ||
| 308 | from HashRef, via { 'Google::Cloud::Vision::V1::ImageAnnotator::ImageContext'->new($_) }; | ||
| 309 | |||
| 310 | declare 'RepeatedImageContext', | ||
| 311 | as ArrayRef[ImageContext()]; | ||
| 312 | |||
| 313 | coerce 'RepeatedImageContext', | ||
| 314 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Vision::V1::ImageAnnotator::ImageContext'->new($_) } @$_ ] }; | ||
| 315 | |||
| 316 | declare 'MapStringImageContext', | ||
| 317 | as HashRef[ImageContext()]; | ||
| 318 | |||
| 319 | declare 'AnnotateImageRequest', | ||
| 320 | as InstanceOf['Google::Cloud::Vision::V1::ImageAnnotator::AnnotateImageRequest']; | ||
| 321 | |||
| 322 | coerce 'AnnotateImageRequest', | ||
| 323 | from HashRef, via { 'Google::Cloud::Vision::V1::ImageAnnotator::AnnotateImageRequest'->new($_) }; | ||
| 324 | |||
| 325 | declare 'RepeatedAnnotateImageRequest', | ||
| 326 | as ArrayRef[AnnotateImageRequest()]; | ||
| 327 | |||
| 328 | coerce 'RepeatedAnnotateImageRequest', | ||
| 329 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Vision::V1::ImageAnnotator::AnnotateImageRequest'->new($_) } @$_ ] }; | ||
| 330 | |||
| 331 | declare 'MapStringAnnotateImageRequest', | ||
| 332 | as HashRef[AnnotateImageRequest()]; | ||
| 333 | |||
| 334 | declare 'ImageAnnotationContext', | ||
| 335 | as InstanceOf['Google::Cloud::Vision::V1::ImageAnnotator::ImageAnnotationContext']; | ||
| 336 | |||
| 337 | coerce 'ImageAnnotationContext', | ||
| 338 | from HashRef, via { 'Google::Cloud::Vision::V1::ImageAnnotator::ImageAnnotationContext'->new($_) }; | ||
| 339 | |||
| 340 | declare 'RepeatedImageAnnotationContext', | ||
| 341 | as ArrayRef[ImageAnnotationContext()]; | ||
| 342 | |||
| 343 | coerce 'RepeatedImageAnnotationContext', | ||
| 344 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Vision::V1::ImageAnnotator::ImageAnnotationContext'->new($_) } @$_ ] }; | ||
| 345 | |||
| 346 | declare 'MapStringImageAnnotationContext', | ||
| 347 | as HashRef[ImageAnnotationContext()]; | ||
| 348 | |||
| 349 | declare 'AnnotateImageResponse', | ||
| 350 | as InstanceOf['Google::Cloud::Vision::V1::ImageAnnotator::AnnotateImageResponse']; | ||
| 351 | |||
| 352 | coerce 'AnnotateImageResponse', | ||
| 353 | from HashRef, via { 'Google::Cloud::Vision::V1::ImageAnnotator::AnnotateImageResponse'->new($_) }; | ||
| 354 | |||
| 355 | declare 'RepeatedAnnotateImageResponse', | ||
| 356 | as ArrayRef[AnnotateImageResponse()]; | ||
| 357 | |||
| 358 | coerce 'RepeatedAnnotateImageResponse', | ||
| 359 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Vision::V1::ImageAnnotator::AnnotateImageResponse'->new($_) } @$_ ] }; | ||
| 360 | |||
| 361 | declare 'MapStringAnnotateImageResponse', | ||
| 362 | as HashRef[AnnotateImageResponse()]; | ||
| 363 | |||
| 364 | declare 'BatchAnnotateImagesRequest', | ||
| 365 | as InstanceOf['Google::Cloud::Vision::V1::ImageAnnotator::BatchAnnotateImagesRequest']; | ||
| 366 | |||
| 367 | coerce 'BatchAnnotateImagesRequest', | ||
| 368 | from HashRef, via { 'Google::Cloud::Vision::V1::ImageAnnotator::BatchAnnotateImagesRequest'->new($_) }; | ||
| 369 | |||
| 370 | declare 'RepeatedBatchAnnotateImagesRequest', | ||
| 371 | as ArrayRef[BatchAnnotateImagesRequest()]; | ||
| 372 | |||
| 373 | coerce 'RepeatedBatchAnnotateImagesRequest', | ||
| 374 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Vision::V1::ImageAnnotator::BatchAnnotateImagesRequest'->new($_) } @$_ ] }; | ||
| 375 | |||
| 376 | declare 'MapStringBatchAnnotateImagesRequest', | ||
| 377 | as HashRef[BatchAnnotateImagesRequest()]; | ||
| 378 | |||
| 379 | declare 'LabelsEntry', | ||
| 380 | as InstanceOf['Google::Cloud::Vision::V1::ImageAnnotator::BatchAnnotateImagesRequest::LabelsEntry']; | ||
| 381 | |||
| 382 | coerce 'LabelsEntry', | ||
| 383 | from HashRef, via { 'Google::Cloud::Vision::V1::ImageAnnotator::BatchAnnotateImagesRequest::LabelsEntry'->new($_) }; | ||
| 384 | |||
| 385 | declare 'RepeatedLabelsEntry', | ||
| 386 | as ArrayRef[LabelsEntry()]; | ||
| 387 | |||
| 388 | coerce 'RepeatedLabelsEntry', | ||
| 389 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Vision::V1::ImageAnnotator::BatchAnnotateImagesRequest::LabelsEntry'->new($_) } @$_ ] }; | ||
| 390 | |||
| 391 | declare 'MapStringLabelsEntry', | ||
| 392 | as HashRef[LabelsEntry()]; | ||
| 393 | |||
| 394 | declare 'BatchAnnotateImagesResponse', | ||
| 395 | as InstanceOf['Google::Cloud::Vision::V1::ImageAnnotator::BatchAnnotateImagesResponse']; | ||
| 396 | |||
| 397 | coerce 'BatchAnnotateImagesResponse', | ||
| 398 | from HashRef, via { 'Google::Cloud::Vision::V1::ImageAnnotator::BatchAnnotateImagesResponse'->new($_) }; | ||
| 399 | |||
| 400 | declare 'RepeatedBatchAnnotateImagesResponse', | ||
| 401 | as ArrayRef[BatchAnnotateImagesResponse()]; | ||
| 402 | |||
| 403 | coerce 'RepeatedBatchAnnotateImagesResponse', | ||
| 404 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Vision::V1::ImageAnnotator::BatchAnnotateImagesResponse'->new($_) } @$_ ] }; | ||
| 405 | |||
| 406 | declare 'MapStringBatchAnnotateImagesResponse', | ||
| 407 | as HashRef[BatchAnnotateImagesResponse()]; | ||
| 408 | |||
| 409 | declare 'AnnotateFileRequest', | ||
| 410 | as InstanceOf['Google::Cloud::Vision::V1::ImageAnnotator::AnnotateFileRequest']; | ||
| 411 | |||
| 412 | coerce 'AnnotateFileRequest', | ||
| 413 | from HashRef, via { 'Google::Cloud::Vision::V1::ImageAnnotator::AnnotateFileRequest'->new($_) }; | ||
| 414 | |||
| 415 | declare 'RepeatedAnnotateFileRequest', | ||
| 416 | as ArrayRef[AnnotateFileRequest()]; | ||
| 417 | |||
| 418 | coerce 'RepeatedAnnotateFileRequest', | ||
| 419 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Vision::V1::ImageAnnotator::AnnotateFileRequest'->new($_) } @$_ ] }; | ||
| 420 | |||
| 421 | declare 'MapStringAnnotateFileRequest', | ||
| 422 | as HashRef[AnnotateFileRequest()]; | ||
| 423 | |||
| 424 | declare 'AnnotateFileResponse', | ||
| 425 | as InstanceOf['Google::Cloud::Vision::V1::ImageAnnotator::AnnotateFileResponse']; | ||
| 426 | |||
| 427 | coerce 'AnnotateFileResponse', | ||
| 428 | from HashRef, via { 'Google::Cloud::Vision::V1::ImageAnnotator::AnnotateFileResponse'->new($_) }; | ||
| 429 | |||
| 430 | declare 'RepeatedAnnotateFileResponse', | ||
| 431 | as ArrayRef[AnnotateFileResponse()]; | ||
| 432 | |||
| 433 | coerce 'RepeatedAnnotateFileResponse', | ||
| 434 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Vision::V1::ImageAnnotator::AnnotateFileResponse'->new($_) } @$_ ] }; | ||
| 435 | |||
| 436 | declare 'MapStringAnnotateFileResponse', | ||
| 437 | as HashRef[AnnotateFileResponse()]; | ||
| 438 | |||
| 439 | declare 'BatchAnnotateFilesRequest', | ||
| 440 | as InstanceOf['Google::Cloud::Vision::V1::ImageAnnotator::BatchAnnotateFilesRequest']; | ||
| 441 | |||
| 442 | coerce 'BatchAnnotateFilesRequest', | ||
| 443 | from HashRef, via { 'Google::Cloud::Vision::V1::ImageAnnotator::BatchAnnotateFilesRequest'->new($_) }; | ||
| 444 | |||
| 445 | declare 'RepeatedBatchAnnotateFilesRequest', | ||
| 446 | as ArrayRef[BatchAnnotateFilesRequest()]; | ||
| 447 | |||
| 448 | coerce 'RepeatedBatchAnnotateFilesRequest', | ||
| 449 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Vision::V1::ImageAnnotator::BatchAnnotateFilesRequest'->new($_) } @$_ ] }; | ||
| 450 | |||
| 451 | declare 'MapStringBatchAnnotateFilesRequest', | ||
| 452 | as HashRef[BatchAnnotateFilesRequest()]; | ||
| 453 | |||
| 454 | declare 'LabelsEntry', | ||
| 455 | as InstanceOf['Google::Cloud::Vision::V1::ImageAnnotator::BatchAnnotateFilesRequest::LabelsEntry']; | ||
| 456 | |||
| 457 | coerce 'LabelsEntry', | ||
| 458 | from HashRef, via { 'Google::Cloud::Vision::V1::ImageAnnotator::BatchAnnotateFilesRequest::LabelsEntry'->new($_) }; | ||
| 459 | |||
| 460 | declare 'RepeatedLabelsEntry', | ||
| 461 | as ArrayRef[LabelsEntry()]; | ||
| 462 | |||
| 463 | coerce 'RepeatedLabelsEntry', | ||
| 464 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Vision::V1::ImageAnnotator::BatchAnnotateFilesRequest::LabelsEntry'->new($_) } @$_ ] }; | ||
| 465 | |||
| 466 | declare 'MapStringLabelsEntry', | ||
| 467 | as HashRef[LabelsEntry()]; | ||
| 468 | |||
| 469 | declare 'BatchAnnotateFilesResponse', | ||
| 470 | as InstanceOf['Google::Cloud::Vision::V1::ImageAnnotator::BatchAnnotateFilesResponse']; | ||
| 471 | |||
| 472 | coerce 'BatchAnnotateFilesResponse', | ||
| 473 | from HashRef, via { 'Google::Cloud::Vision::V1::ImageAnnotator::BatchAnnotateFilesResponse'->new($_) }; | ||
| 474 | |||
| 475 | declare 'RepeatedBatchAnnotateFilesResponse', | ||
| 476 | as ArrayRef[BatchAnnotateFilesResponse()]; | ||
| 477 | |||
| 478 | coerce 'RepeatedBatchAnnotateFilesResponse', | ||
| 479 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Vision::V1::ImageAnnotator::BatchAnnotateFilesResponse'->new($_) } @$_ ] }; | ||
| 480 | |||
| 481 | declare 'MapStringBatchAnnotateFilesResponse', | ||
| 482 | as HashRef[BatchAnnotateFilesResponse()]; | ||
| 483 | |||
| 484 | declare 'AsyncAnnotateFileRequest', | ||
| 485 | as InstanceOf['Google::Cloud::Vision::V1::ImageAnnotator::AsyncAnnotateFileRequest']; | ||
| 486 | |||
| 487 | coerce 'AsyncAnnotateFileRequest', | ||
| 488 | from HashRef, via { 'Google::Cloud::Vision::V1::ImageAnnotator::AsyncAnnotateFileRequest'->new($_) }; | ||
| 489 | |||
| 490 | declare 'RepeatedAsyncAnnotateFileRequest', | ||
| 491 | as ArrayRef[AsyncAnnotateFileRequest()]; | ||
| 492 | |||
| 493 | coerce 'RepeatedAsyncAnnotateFileRequest', | ||
| 494 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Vision::V1::ImageAnnotator::AsyncAnnotateFileRequest'->new($_) } @$_ ] }; | ||
| 495 | |||
| 496 | declare 'MapStringAsyncAnnotateFileRequest', | ||
| 497 | as HashRef[AsyncAnnotateFileRequest()]; | ||
| 498 | |||
| 499 | declare 'AsyncAnnotateFileResponse', | ||
| 500 | as InstanceOf['Google::Cloud::Vision::V1::ImageAnnotator::AsyncAnnotateFileResponse']; | ||
| 501 | |||
| 502 | coerce 'AsyncAnnotateFileResponse', | ||
| 503 | from HashRef, via { 'Google::Cloud::Vision::V1::ImageAnnotator::AsyncAnnotateFileResponse'->new($_) }; | ||
| 504 | |||
| 505 | declare 'RepeatedAsyncAnnotateFileResponse', | ||
| 506 | as ArrayRef[AsyncAnnotateFileResponse()]; | ||
| 507 | |||
| 508 | coerce 'RepeatedAsyncAnnotateFileResponse', | ||
| 509 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Vision::V1::ImageAnnotator::AsyncAnnotateFileResponse'->new($_) } @$_ ] }; | ||
| 510 | |||
| 511 | declare 'MapStringAsyncAnnotateFileResponse', | ||
| 512 | as HashRef[AsyncAnnotateFileResponse()]; | ||
| 513 | |||
| 514 | declare 'AsyncBatchAnnotateImagesRequest', | ||
| 515 | as InstanceOf['Google::Cloud::Vision::V1::ImageAnnotator::AsyncBatchAnnotateImagesRequest']; | ||
| 516 | |||
| 517 | coerce 'AsyncBatchAnnotateImagesRequest', | ||
| 518 | from HashRef, via { 'Google::Cloud::Vision::V1::ImageAnnotator::AsyncBatchAnnotateImagesRequest'->new($_) }; | ||
| 519 | |||
| 520 | declare 'RepeatedAsyncBatchAnnotateImagesRequest', | ||
| 521 | as ArrayRef[AsyncBatchAnnotateImagesRequest()]; | ||
| 522 | |||
| 523 | coerce 'RepeatedAsyncBatchAnnotateImagesRequest', | ||
| 524 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Vision::V1::ImageAnnotator::AsyncBatchAnnotateImagesRequest'->new($_) } @$_ ] }; | ||
| 525 | |||
| 526 | declare 'MapStringAsyncBatchAnnotateImagesRequest', | ||
| 527 | as HashRef[AsyncBatchAnnotateImagesRequest()]; | ||
| 528 | |||
| 529 | declare 'LabelsEntry', | ||
| 530 | as InstanceOf['Google::Cloud::Vision::V1::ImageAnnotator::AsyncBatchAnnotateImagesRequest::LabelsEntry']; | ||
| 531 | |||
| 532 | coerce 'LabelsEntry', | ||
| 533 | from HashRef, via { 'Google::Cloud::Vision::V1::ImageAnnotator::AsyncBatchAnnotateImagesRequest::LabelsEntry'->new($_) }; | ||
| 534 | |||
| 535 | declare 'RepeatedLabelsEntry', | ||
| 536 | as ArrayRef[LabelsEntry()]; | ||
| 537 | |||
| 538 | coerce 'RepeatedLabelsEntry', | ||
| 539 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Vision::V1::ImageAnnotator::AsyncBatchAnnotateImagesRequest::LabelsEntry'->new($_) } @$_ ] }; | ||
| 540 | |||
| 541 | declare 'MapStringLabelsEntry', | ||
| 542 | as HashRef[LabelsEntry()]; | ||
| 543 | |||
| 544 | declare 'AsyncBatchAnnotateImagesResponse', | ||
| 545 | as InstanceOf['Google::Cloud::Vision::V1::ImageAnnotator::AsyncBatchAnnotateImagesResponse']; | ||
| 546 | |||
| 547 | coerce 'AsyncBatchAnnotateImagesResponse', | ||
| 548 | from HashRef, via { 'Google::Cloud::Vision::V1::ImageAnnotator::AsyncBatchAnnotateImagesResponse'->new($_) }; | ||
| 549 | |||
| 550 | declare 'RepeatedAsyncBatchAnnotateImagesResponse', | ||
| 551 | as ArrayRef[AsyncBatchAnnotateImagesResponse()]; | ||
| 552 | |||
| 553 | coerce 'RepeatedAsyncBatchAnnotateImagesResponse', | ||
| 554 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Vision::V1::ImageAnnotator::AsyncBatchAnnotateImagesResponse'->new($_) } @$_ ] }; | ||
| 555 | |||
| 556 | declare 'MapStringAsyncBatchAnnotateImagesResponse', | ||
| 557 | as HashRef[AsyncBatchAnnotateImagesResponse()]; | ||
| 558 | |||
| 559 | declare 'AsyncBatchAnnotateFilesRequest', | ||
| 560 | as InstanceOf['Google::Cloud::Vision::V1::ImageAnnotator::AsyncBatchAnnotateFilesRequest']; | ||
| 561 | |||
| 562 | coerce 'AsyncBatchAnnotateFilesRequest', | ||
| 563 | from HashRef, via { 'Google::Cloud::Vision::V1::ImageAnnotator::AsyncBatchAnnotateFilesRequest'->new($_) }; | ||
| 564 | |||
| 565 | declare 'RepeatedAsyncBatchAnnotateFilesRequest', | ||
| 566 | as ArrayRef[AsyncBatchAnnotateFilesRequest()]; | ||
| 567 | |||
| 568 | coerce 'RepeatedAsyncBatchAnnotateFilesRequest', | ||
| 569 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Vision::V1::ImageAnnotator::AsyncBatchAnnotateFilesRequest'->new($_) } @$_ ] }; | ||
| 570 | |||
| 571 | declare 'MapStringAsyncBatchAnnotateFilesRequest', | ||
| 572 | as HashRef[AsyncBatchAnnotateFilesRequest()]; | ||
| 573 | |||
| 574 | declare 'LabelsEntry', | ||
| 575 | as InstanceOf['Google::Cloud::Vision::V1::ImageAnnotator::AsyncBatchAnnotateFilesRequest::LabelsEntry']; | ||
| 576 | |||
| 577 | coerce 'LabelsEntry', | ||
| 578 | from HashRef, via { 'Google::Cloud::Vision::V1::ImageAnnotator::AsyncBatchAnnotateFilesRequest::LabelsEntry'->new($_) }; | ||
| 579 | |||
| 580 | declare 'RepeatedLabelsEntry', | ||
| 581 | as ArrayRef[LabelsEntry()]; | ||
| 582 | |||
| 583 | coerce 'RepeatedLabelsEntry', | ||
| 584 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Vision::V1::ImageAnnotator::AsyncBatchAnnotateFilesRequest::LabelsEntry'->new($_) } @$_ ] }; | ||
| 585 | |||
| 586 | declare 'MapStringLabelsEntry', | ||
| 587 | as HashRef[LabelsEntry()]; | ||
| 588 | |||
| 589 | declare 'AsyncBatchAnnotateFilesResponse', | ||
| 590 | as InstanceOf['Google::Cloud::Vision::V1::ImageAnnotator::AsyncBatchAnnotateFilesResponse']; | ||
| 591 | |||
| 592 | coerce 'AsyncBatchAnnotateFilesResponse', | ||
| 593 | from HashRef, via { 'Google::Cloud::Vision::V1::ImageAnnotator::AsyncBatchAnnotateFilesResponse'->new($_) }; | ||
| 594 | |||
| 595 | declare 'RepeatedAsyncBatchAnnotateFilesResponse', | ||
| 596 | as ArrayRef[AsyncBatchAnnotateFilesResponse()]; | ||
| 597 | |||
| 598 | coerce 'RepeatedAsyncBatchAnnotateFilesResponse', | ||
| 599 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Vision::V1::ImageAnnotator::AsyncBatchAnnotateFilesResponse'->new($_) } @$_ ] }; | ||
| 600 | |||
| 601 | declare 'MapStringAsyncBatchAnnotateFilesResponse', | ||
| 602 | as HashRef[AsyncBatchAnnotateFilesResponse()]; | ||
| 603 | |||
| 604 | declare 'InputConfig', | ||
| 605 | as InstanceOf['Google::Cloud::Vision::V1::ImageAnnotator::InputConfig']; | ||
| 606 | |||
| 607 | coerce 'InputConfig', | ||
| 608 | from HashRef, via { 'Google::Cloud::Vision::V1::ImageAnnotator::InputConfig'->new($_) }; | ||
| 609 | |||
| 610 | declare 'RepeatedInputConfig', | ||
| 611 | as ArrayRef[InputConfig()]; | ||
| 612 | |||
| 613 | coerce 'RepeatedInputConfig', | ||
| 614 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Vision::V1::ImageAnnotator::InputConfig'->new($_) } @$_ ] }; | ||
| 615 | |||
| 616 | declare 'MapStringInputConfig', | ||
| 617 | as HashRef[InputConfig()]; | ||
| 618 | |||
| 619 | declare 'OutputConfig', | ||
| 620 | as InstanceOf['Google::Cloud::Vision::V1::ImageAnnotator::OutputConfig']; | ||
| 621 | |||
| 622 | coerce 'OutputConfig', | ||
| 623 | from HashRef, via { 'Google::Cloud::Vision::V1::ImageAnnotator::OutputConfig'->new($_) }; | ||
| 624 | |||
| 625 | declare 'RepeatedOutputConfig', | ||
| 626 | as ArrayRef[OutputConfig()]; | ||
| 627 | |||
| 628 | coerce 'RepeatedOutputConfig', | ||
| 629 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Vision::V1::ImageAnnotator::OutputConfig'->new($_) } @$_ ] }; | ||
| 630 | |||
| 631 | declare 'MapStringOutputConfig', | ||
| 632 | as HashRef[OutputConfig()]; | ||
| 633 | |||
| 634 | declare 'GcsSource', | ||
| 635 | as InstanceOf['Google::Cloud::Vision::V1::ImageAnnotator::GcsSource']; | ||
| 636 | |||
| 637 | coerce 'GcsSource', | ||
| 638 | from HashRef, via { 'Google::Cloud::Vision::V1::ImageAnnotator::GcsSource'->new($_) }; | ||
| 639 | |||
| 640 | declare 'RepeatedGcsSource', | ||
| 641 | as ArrayRef[GcsSource()]; | ||
| 642 | |||
| 643 | coerce 'RepeatedGcsSource', | ||
| 644 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Vision::V1::ImageAnnotator::GcsSource'->new($_) } @$_ ] }; | ||
| 645 | |||
| 646 | declare 'MapStringGcsSource', | ||
| 647 | as HashRef[GcsSource()]; | ||
| 648 | |||
| 649 | declare 'GcsDestination', | ||
| 650 | as InstanceOf['Google::Cloud::Vision::V1::ImageAnnotator::GcsDestination']; | ||
| 651 | |||
| 652 | coerce 'GcsDestination', | ||
| 653 | from HashRef, via { 'Google::Cloud::Vision::V1::ImageAnnotator::GcsDestination'->new($_) }; | ||
| 654 | |||
| 655 | declare 'RepeatedGcsDestination', | ||
| 656 | as ArrayRef[GcsDestination()]; | ||
| 657 | |||
| 658 | coerce 'RepeatedGcsDestination', | ||
| 659 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Vision::V1::ImageAnnotator::GcsDestination'->new($_) } @$_ ] }; | ||
| 660 | |||
| 661 | declare 'MapStringGcsDestination', | ||
| 662 | as HashRef[GcsDestination()]; | ||
| 663 | |||
| 664 | declare 'OperationMetadata', | ||
| 665 | as InstanceOf['Google::Cloud::Vision::V1::ImageAnnotator::OperationMetadata']; | ||
| 666 | |||
| 667 | coerce 'OperationMetadata', | ||
| 668 | from HashRef, via { 'Google::Cloud::Vision::V1::ImageAnnotator::OperationMetadata'->new($_) }; | ||
| 669 | |||
| 670 | declare 'RepeatedOperationMetadata', | ||
| 671 | as ArrayRef[OperationMetadata()]; | ||
| 672 | |||
| 673 | coerce 'RepeatedOperationMetadata', | ||
| 674 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Vision::V1::ImageAnnotator::OperationMetadata'->new($_) } @$_ ] }; | ||
| 675 | |||
| 676 | declare 'MapStringOperationMetadata', | ||
| 677 | as HashRef[OperationMetadata()]; | ||
| 678 | |||
| 679 | declare 'State', | ||
| 680 | as (Int | Str); | ||
| 681 | |||
| 682 | 1; | ||
| 683 | |||
| 684 | __END__ |