| 1 | package Google::Cloud::Documentai::V1::Document::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 'Document', | ||
| 11 | as InstanceOf['Google::Cloud::Documentai::V1::Document::Document']; | ||
| 12 | |||
| 13 | coerce 'Document', | ||
| 14 | from HashRef, via { 'Google::Cloud::Documentai::V1::Document::Document'->new($_) }; | ||
| 15 | |||
| 16 | declare 'RepeatedDocument', | ||
| 17 | as ArrayRef[Document()]; | ||
| 18 | |||
| 19 | coerce 'RepeatedDocument', | ||
| 20 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Documentai::V1::Document::Document'->new($_) } @$_ ] }; | ||
| 21 | |||
| 22 | declare 'MapStringDocument', | ||
| 23 | as HashRef[Document()]; | ||
| 24 | |||
| 25 | declare 'ShardInfo', | ||
| 26 | as InstanceOf['Google::Cloud::Documentai::V1::Document::Document::ShardInfo']; | ||
| 27 | |||
| 28 | coerce 'ShardInfo', | ||
| 29 | from HashRef, via { 'Google::Cloud::Documentai::V1::Document::Document::ShardInfo'->new($_) }; | ||
| 30 | |||
| 31 | declare 'RepeatedShardInfo', | ||
| 32 | as ArrayRef[ShardInfo()]; | ||
| 33 | |||
| 34 | coerce 'RepeatedShardInfo', | ||
| 35 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Documentai::V1::Document::Document::ShardInfo'->new($_) } @$_ ] }; | ||
| 36 | |||
| 37 | declare 'MapStringShardInfo', | ||
| 38 | as HashRef[ShardInfo()]; | ||
| 39 | |||
| 40 | declare 'Style', | ||
| 41 | as InstanceOf['Google::Cloud::Documentai::V1::Document::Document::Style']; | ||
| 42 | |||
| 43 | coerce 'Style', | ||
| 44 | from HashRef, via { 'Google::Cloud::Documentai::V1::Document::Document::Style'->new($_) }; | ||
| 45 | |||
| 46 | declare 'RepeatedStyle', | ||
| 47 | as ArrayRef[Style()]; | ||
| 48 | |||
| 49 | coerce 'RepeatedStyle', | ||
| 50 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Documentai::V1::Document::Document::Style'->new($_) } @$_ ] }; | ||
| 51 | |||
| 52 | declare 'MapStringStyle', | ||
| 53 | as HashRef[Style()]; | ||
| 54 | |||
| 55 | declare 'FontSize', | ||
| 56 | as InstanceOf['Google::Cloud::Documentai::V1::Document::Document::Style::FontSize']; | ||
| 57 | |||
| 58 | coerce 'FontSize', | ||
| 59 | from HashRef, via { 'Google::Cloud::Documentai::V1::Document::Document::Style::FontSize'->new($_) }; | ||
| 60 | |||
| 61 | declare 'RepeatedFontSize', | ||
| 62 | as ArrayRef[FontSize()]; | ||
| 63 | |||
| 64 | coerce 'RepeatedFontSize', | ||
| 65 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Documentai::V1::Document::Document::Style::FontSize'->new($_) } @$_ ] }; | ||
| 66 | |||
| 67 | declare 'MapStringFontSize', | ||
| 68 | as HashRef[FontSize()]; | ||
| 69 | |||
| 70 | declare 'Page', | ||
| 71 | as InstanceOf['Google::Cloud::Documentai::V1::Document::Document::Page']; | ||
| 72 | |||
| 73 | coerce 'Page', | ||
| 74 | from HashRef, via { 'Google::Cloud::Documentai::V1::Document::Document::Page'->new($_) }; | ||
| 75 | |||
| 76 | declare 'RepeatedPage', | ||
| 77 | as ArrayRef[Page()]; | ||
| 78 | |||
| 79 | coerce 'RepeatedPage', | ||
| 80 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Documentai::V1::Document::Document::Page'->new($_) } @$_ ] }; | ||
| 81 | |||
| 82 | declare 'MapStringPage', | ||
| 83 | as HashRef[Page()]; | ||
| 84 | |||
| 85 | declare 'Dimension', | ||
| 86 | as InstanceOf['Google::Cloud::Documentai::V1::Document::Document::Page::Dimension']; | ||
| 87 | |||
| 88 | coerce 'Dimension', | ||
| 89 | from HashRef, via { 'Google::Cloud::Documentai::V1::Document::Document::Page::Dimension'->new($_) }; | ||
| 90 | |||
| 91 | declare 'RepeatedDimension', | ||
| 92 | as ArrayRef[Dimension()]; | ||
| 93 | |||
| 94 | coerce 'RepeatedDimension', | ||
| 95 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Documentai::V1::Document::Document::Page::Dimension'->new($_) } @$_ ] }; | ||
| 96 | |||
| 97 | declare 'MapStringDimension', | ||
| 98 | as HashRef[Dimension()]; | ||
| 99 | |||
| 100 | declare 'Image', | ||
| 101 | as InstanceOf['Google::Cloud::Documentai::V1::Document::Document::Page::Image']; | ||
| 102 | |||
| 103 | coerce 'Image', | ||
| 104 | from HashRef, via { 'Google::Cloud::Documentai::V1::Document::Document::Page::Image'->new($_) }; | ||
| 105 | |||
| 106 | declare 'RepeatedImage', | ||
| 107 | as ArrayRef[Image()]; | ||
| 108 | |||
| 109 | coerce 'RepeatedImage', | ||
| 110 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Documentai::V1::Document::Document::Page::Image'->new($_) } @$_ ] }; | ||
| 111 | |||
| 112 | declare 'MapStringImage', | ||
| 113 | as HashRef[Image()]; | ||
| 114 | |||
| 115 | declare 'Matrix', | ||
| 116 | as InstanceOf['Google::Cloud::Documentai::V1::Document::Document::Page::Matrix']; | ||
| 117 | |||
| 118 | coerce 'Matrix', | ||
| 119 | from HashRef, via { 'Google::Cloud::Documentai::V1::Document::Document::Page::Matrix'->new($_) }; | ||
| 120 | |||
| 121 | declare 'RepeatedMatrix', | ||
| 122 | as ArrayRef[Matrix()]; | ||
| 123 | |||
| 124 | coerce 'RepeatedMatrix', | ||
| 125 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Documentai::V1::Document::Document::Page::Matrix'->new($_) } @$_ ] }; | ||
| 126 | |||
| 127 | declare 'MapStringMatrix', | ||
| 128 | as HashRef[Matrix()]; | ||
| 129 | |||
| 130 | declare 'Layout', | ||
| 131 | as InstanceOf['Google::Cloud::Documentai::V1::Document::Document::Page::Layout']; | ||
| 132 | |||
| 133 | coerce 'Layout', | ||
| 134 | from HashRef, via { 'Google::Cloud::Documentai::V1::Document::Document::Page::Layout'->new($_) }; | ||
| 135 | |||
| 136 | declare 'RepeatedLayout', | ||
| 137 | as ArrayRef[Layout()]; | ||
| 138 | |||
| 139 | coerce 'RepeatedLayout', | ||
| 140 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Documentai::V1::Document::Document::Page::Layout'->new($_) } @$_ ] }; | ||
| 141 | |||
| 142 | declare 'MapStringLayout', | ||
| 143 | as HashRef[Layout()]; | ||
| 144 | |||
| 145 | declare 'Orientation', | ||
| 146 | as (Int | Str); | ||
| 147 | |||
| 148 | declare 'Block', | ||
| 149 | as InstanceOf['Google::Cloud::Documentai::V1::Document::Document::Page::Block']; | ||
| 150 | |||
| 151 | coerce 'Block', | ||
| 152 | from HashRef, via { 'Google::Cloud::Documentai::V1::Document::Document::Page::Block'->new($_) }; | ||
| 153 | |||
| 154 | declare 'RepeatedBlock', | ||
| 155 | as ArrayRef[Block()]; | ||
| 156 | |||
| 157 | coerce 'RepeatedBlock', | ||
| 158 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Documentai::V1::Document::Document::Page::Block'->new($_) } @$_ ] }; | ||
| 159 | |||
| 160 | declare 'MapStringBlock', | ||
| 161 | as HashRef[Block()]; | ||
| 162 | |||
| 163 | declare 'Paragraph', | ||
| 164 | as InstanceOf['Google::Cloud::Documentai::V1::Document::Document::Page::Paragraph']; | ||
| 165 | |||
| 166 | coerce 'Paragraph', | ||
| 167 | from HashRef, via { 'Google::Cloud::Documentai::V1::Document::Document::Page::Paragraph'->new($_) }; | ||
| 168 | |||
| 169 | declare 'RepeatedParagraph', | ||
| 170 | as ArrayRef[Paragraph()]; | ||
| 171 | |||
| 172 | coerce 'RepeatedParagraph', | ||
| 173 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Documentai::V1::Document::Document::Page::Paragraph'->new($_) } @$_ ] }; | ||
| 174 | |||
| 175 | declare 'MapStringParagraph', | ||
| 176 | as HashRef[Paragraph()]; | ||
| 177 | |||
| 178 | declare 'Line', | ||
| 179 | as InstanceOf['Google::Cloud::Documentai::V1::Document::Document::Page::Line']; | ||
| 180 | |||
| 181 | coerce 'Line', | ||
| 182 | from HashRef, via { 'Google::Cloud::Documentai::V1::Document::Document::Page::Line'->new($_) }; | ||
| 183 | |||
| 184 | declare 'RepeatedLine', | ||
| 185 | as ArrayRef[Line()]; | ||
| 186 | |||
| 187 | coerce 'RepeatedLine', | ||
| 188 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Documentai::V1::Document::Document::Page::Line'->new($_) } @$_ ] }; | ||
| 189 | |||
| 190 | declare 'MapStringLine', | ||
| 191 | as HashRef[Line()]; | ||
| 192 | |||
| 193 | declare 'Token', | ||
| 194 | as InstanceOf['Google::Cloud::Documentai::V1::Document::Document::Page::Token']; | ||
| 195 | |||
| 196 | coerce 'Token', | ||
| 197 | from HashRef, via { 'Google::Cloud::Documentai::V1::Document::Document::Page::Token'->new($_) }; | ||
| 198 | |||
| 199 | declare 'RepeatedToken', | ||
| 200 | as ArrayRef[Token()]; | ||
| 201 | |||
| 202 | coerce 'RepeatedToken', | ||
| 203 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Documentai::V1::Document::Document::Page::Token'->new($_) } @$_ ] }; | ||
| 204 | |||
| 205 | declare 'MapStringToken', | ||
| 206 | as HashRef[Token()]; | ||
| 207 | |||
| 208 | declare 'DetectedBreak', | ||
| 209 | as InstanceOf['Google::Cloud::Documentai::V1::Document::Document::Page::Token::DetectedBreak']; | ||
| 210 | |||
| 211 | coerce 'DetectedBreak', | ||
| 212 | from HashRef, via { 'Google::Cloud::Documentai::V1::Document::Document::Page::Token::DetectedBreak'->new($_) }; | ||
| 213 | |||
| 214 | declare 'RepeatedDetectedBreak', | ||
| 215 | as ArrayRef[DetectedBreak()]; | ||
| 216 | |||
| 217 | coerce 'RepeatedDetectedBreak', | ||
| 218 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Documentai::V1::Document::Document::Page::Token::DetectedBreak'->new($_) } @$_ ] }; | ||
| 219 | |||
| 220 | declare 'MapStringDetectedBreak', | ||
| 221 | as HashRef[DetectedBreak()]; | ||
| 222 | |||
| 223 | declare 'Type', | ||
| 224 | as (Int | Str); | ||
| 225 | |||
| 226 | declare 'StyleInfo', | ||
| 227 | as InstanceOf['Google::Cloud::Documentai::V1::Document::Document::Page::Token::StyleInfo']; | ||
| 228 | |||
| 229 | coerce 'StyleInfo', | ||
| 230 | from HashRef, via { 'Google::Cloud::Documentai::V1::Document::Document::Page::Token::StyleInfo'->new($_) }; | ||
| 231 | |||
| 232 | declare 'RepeatedStyleInfo', | ||
| 233 | as ArrayRef[StyleInfo()]; | ||
| 234 | |||
| 235 | coerce 'RepeatedStyleInfo', | ||
| 236 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Documentai::V1::Document::Document::Page::Token::StyleInfo'->new($_) } @$_ ] }; | ||
| 237 | |||
| 238 | declare 'MapStringStyleInfo', | ||
| 239 | as HashRef[StyleInfo()]; | ||
| 240 | |||
| 241 | declare 'Symbol', | ||
| 242 | as InstanceOf['Google::Cloud::Documentai::V1::Document::Document::Page::Symbol']; | ||
| 243 | |||
| 244 | coerce 'Symbol', | ||
| 245 | from HashRef, via { 'Google::Cloud::Documentai::V1::Document::Document::Page::Symbol'->new($_) }; | ||
| 246 | |||
| 247 | declare 'RepeatedSymbol', | ||
| 248 | as ArrayRef[Symbol()]; | ||
| 249 | |||
| 250 | coerce 'RepeatedSymbol', | ||
| 251 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Documentai::V1::Document::Document::Page::Symbol'->new($_) } @$_ ] }; | ||
| 252 | |||
| 253 | declare 'MapStringSymbol', | ||
| 254 | as HashRef[Symbol()]; | ||
| 255 | |||
| 256 | declare 'VisualElement', | ||
| 257 | as InstanceOf['Google::Cloud::Documentai::V1::Document::Document::Page::VisualElement']; | ||
| 258 | |||
| 259 | coerce 'VisualElement', | ||
| 260 | from HashRef, via { 'Google::Cloud::Documentai::V1::Document::Document::Page::VisualElement'->new($_) }; | ||
| 261 | |||
| 262 | declare 'RepeatedVisualElement', | ||
| 263 | as ArrayRef[VisualElement()]; | ||
| 264 | |||
| 265 | coerce 'RepeatedVisualElement', | ||
| 266 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Documentai::V1::Document::Document::Page::VisualElement'->new($_) } @$_ ] }; | ||
| 267 | |||
| 268 | declare 'MapStringVisualElement', | ||
| 269 | as HashRef[VisualElement()]; | ||
| 270 | |||
| 271 | declare 'Table', | ||
| 272 | as InstanceOf['Google::Cloud::Documentai::V1::Document::Document::Page::Table']; | ||
| 273 | |||
| 274 | coerce 'Table', | ||
| 275 | from HashRef, via { 'Google::Cloud::Documentai::V1::Document::Document::Page::Table'->new($_) }; | ||
| 276 | |||
| 277 | declare 'RepeatedTable', | ||
| 278 | as ArrayRef[Table()]; | ||
| 279 | |||
| 280 | coerce 'RepeatedTable', | ||
| 281 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Documentai::V1::Document::Document::Page::Table'->new($_) } @$_ ] }; | ||
| 282 | |||
| 283 | declare 'MapStringTable', | ||
| 284 | as HashRef[Table()]; | ||
| 285 | |||
| 286 | declare 'TableRow', | ||
| 287 | as InstanceOf['Google::Cloud::Documentai::V1::Document::Document::Page::Table::TableRow']; | ||
| 288 | |||
| 289 | coerce 'TableRow', | ||
| 290 | from HashRef, via { 'Google::Cloud::Documentai::V1::Document::Document::Page::Table::TableRow'->new($_) }; | ||
| 291 | |||
| 292 | declare 'RepeatedTableRow', | ||
| 293 | as ArrayRef[TableRow()]; | ||
| 294 | |||
| 295 | coerce 'RepeatedTableRow', | ||
| 296 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Documentai::V1::Document::Document::Page::Table::TableRow'->new($_) } @$_ ] }; | ||
| 297 | |||
| 298 | declare 'MapStringTableRow', | ||
| 299 | as HashRef[TableRow()]; | ||
| 300 | |||
| 301 | declare 'TableCell', | ||
| 302 | as InstanceOf['Google::Cloud::Documentai::V1::Document::Document::Page::Table::TableCell']; | ||
| 303 | |||
| 304 | coerce 'TableCell', | ||
| 305 | from HashRef, via { 'Google::Cloud::Documentai::V1::Document::Document::Page::Table::TableCell'->new($_) }; | ||
| 306 | |||
| 307 | declare 'RepeatedTableCell', | ||
| 308 | as ArrayRef[TableCell()]; | ||
| 309 | |||
| 310 | coerce 'RepeatedTableCell', | ||
| 311 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Documentai::V1::Document::Document::Page::Table::TableCell'->new($_) } @$_ ] }; | ||
| 312 | |||
| 313 | declare 'MapStringTableCell', | ||
| 314 | as HashRef[TableCell()]; | ||
| 315 | |||
| 316 | declare 'FormField', | ||
| 317 | as InstanceOf['Google::Cloud::Documentai::V1::Document::Document::Page::FormField']; | ||
| 318 | |||
| 319 | coerce 'FormField', | ||
| 320 | from HashRef, via { 'Google::Cloud::Documentai::V1::Document::Document::Page::FormField'->new($_) }; | ||
| 321 | |||
| 322 | declare 'RepeatedFormField', | ||
| 323 | as ArrayRef[FormField()]; | ||
| 324 | |||
| 325 | coerce 'RepeatedFormField', | ||
| 326 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Documentai::V1::Document::Document::Page::FormField'->new($_) } @$_ ] }; | ||
| 327 | |||
| 328 | declare 'MapStringFormField', | ||
| 329 | as HashRef[FormField()]; | ||
| 330 | |||
| 331 | declare 'DetectedBarcode', | ||
| 332 | as InstanceOf['Google::Cloud::Documentai::V1::Document::Document::Page::DetectedBarcode']; | ||
| 333 | |||
| 334 | coerce 'DetectedBarcode', | ||
| 335 | from HashRef, via { 'Google::Cloud::Documentai::V1::Document::Document::Page::DetectedBarcode'->new($_) }; | ||
| 336 | |||
| 337 | declare 'RepeatedDetectedBarcode', | ||
| 338 | as ArrayRef[DetectedBarcode()]; | ||
| 339 | |||
| 340 | coerce 'RepeatedDetectedBarcode', | ||
| 341 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Documentai::V1::Document::Document::Page::DetectedBarcode'->new($_) } @$_ ] }; | ||
| 342 | |||
| 343 | declare 'MapStringDetectedBarcode', | ||
| 344 | as HashRef[DetectedBarcode()]; | ||
| 345 | |||
| 346 | declare 'DetectedLanguage', | ||
| 347 | as InstanceOf['Google::Cloud::Documentai::V1::Document::Document::Page::DetectedLanguage']; | ||
| 348 | |||
| 349 | coerce 'DetectedLanguage', | ||
| 350 | from HashRef, via { 'Google::Cloud::Documentai::V1::Document::Document::Page::DetectedLanguage'->new($_) }; | ||
| 351 | |||
| 352 | declare 'RepeatedDetectedLanguage', | ||
| 353 | as ArrayRef[DetectedLanguage()]; | ||
| 354 | |||
| 355 | coerce 'RepeatedDetectedLanguage', | ||
| 356 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Documentai::V1::Document::Document::Page::DetectedLanguage'->new($_) } @$_ ] }; | ||
| 357 | |||
| 358 | declare 'MapStringDetectedLanguage', | ||
| 359 | as HashRef[DetectedLanguage()]; | ||
| 360 | |||
| 361 | declare 'ImageQualityScores', | ||
| 362 | as InstanceOf['Google::Cloud::Documentai::V1::Document::Document::Page::ImageQualityScores']; | ||
| 363 | |||
| 364 | coerce 'ImageQualityScores', | ||
| 365 | from HashRef, via { 'Google::Cloud::Documentai::V1::Document::Document::Page::ImageQualityScores'->new($_) }; | ||
| 366 | |||
| 367 | declare 'RepeatedImageQualityScores', | ||
| 368 | as ArrayRef[ImageQualityScores()]; | ||
| 369 | |||
| 370 | coerce 'RepeatedImageQualityScores', | ||
| 371 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Documentai::V1::Document::Document::Page::ImageQualityScores'->new($_) } @$_ ] }; | ||
| 372 | |||
| 373 | declare 'MapStringImageQualityScores', | ||
| 374 | as HashRef[ImageQualityScores()]; | ||
| 375 | |||
| 376 | declare 'DetectedDefect', | ||
| 377 | as InstanceOf['Google::Cloud::Documentai::V1::Document::Document::Page::ImageQualityScores::DetectedDefect']; | ||
| 378 | |||
| 379 | coerce 'DetectedDefect', | ||
| 380 | from HashRef, via { 'Google::Cloud::Documentai::V1::Document::Document::Page::ImageQualityScores::DetectedDefect'->new($_) }; | ||
| 381 | |||
| 382 | declare 'RepeatedDetectedDefect', | ||
| 383 | as ArrayRef[DetectedDefect()]; | ||
| 384 | |||
| 385 | coerce 'RepeatedDetectedDefect', | ||
| 386 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Documentai::V1::Document::Document::Page::ImageQualityScores::DetectedDefect'->new($_) } @$_ ] }; | ||
| 387 | |||
| 388 | declare 'MapStringDetectedDefect', | ||
| 389 | as HashRef[DetectedDefect()]; | ||
| 390 | |||
| 391 | declare 'Entity', | ||
| 392 | as InstanceOf['Google::Cloud::Documentai::V1::Document::Document::Entity']; | ||
| 393 | |||
| 394 | coerce 'Entity', | ||
| 395 | from HashRef, via { 'Google::Cloud::Documentai::V1::Document::Document::Entity'->new($_) }; | ||
| 396 | |||
| 397 | declare 'RepeatedEntity', | ||
| 398 | as ArrayRef[Entity()]; | ||
| 399 | |||
| 400 | coerce 'RepeatedEntity', | ||
| 401 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Documentai::V1::Document::Document::Entity'->new($_) } @$_ ] }; | ||
| 402 | |||
| 403 | declare 'MapStringEntity', | ||
| 404 | as HashRef[Entity()]; | ||
| 405 | |||
| 406 | declare 'Method', | ||
| 407 | as (Int | Str); | ||
| 408 | |||
| 409 | declare 'NormalizedValue', | ||
| 410 | as InstanceOf['Google::Cloud::Documentai::V1::Document::Document::Entity::NormalizedValue']; | ||
| 411 | |||
| 412 | coerce 'NormalizedValue', | ||
| 413 | from HashRef, via { 'Google::Cloud::Documentai::V1::Document::Document::Entity::NormalizedValue'->new($_) }; | ||
| 414 | |||
| 415 | declare 'RepeatedNormalizedValue', | ||
| 416 | as ArrayRef[NormalizedValue()]; | ||
| 417 | |||
| 418 | coerce 'RepeatedNormalizedValue', | ||
| 419 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Documentai::V1::Document::Document::Entity::NormalizedValue'->new($_) } @$_ ] }; | ||
| 420 | |||
| 421 | declare 'MapStringNormalizedValue', | ||
| 422 | as HashRef[NormalizedValue()]; | ||
| 423 | |||
| 424 | declare 'EntityRelation', | ||
| 425 | as InstanceOf['Google::Cloud::Documentai::V1::Document::Document::EntityRelation']; | ||
| 426 | |||
| 427 | coerce 'EntityRelation', | ||
| 428 | from HashRef, via { 'Google::Cloud::Documentai::V1::Document::Document::EntityRelation'->new($_) }; | ||
| 429 | |||
| 430 | declare 'RepeatedEntityRelation', | ||
| 431 | as ArrayRef[EntityRelation()]; | ||
| 432 | |||
| 433 | coerce 'RepeatedEntityRelation', | ||
| 434 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Documentai::V1::Document::Document::EntityRelation'->new($_) } @$_ ] }; | ||
| 435 | |||
| 436 | declare 'MapStringEntityRelation', | ||
| 437 | as HashRef[EntityRelation()]; | ||
| 438 | |||
| 439 | declare 'TextAnchor', | ||
| 440 | as InstanceOf['Google::Cloud::Documentai::V1::Document::Document::TextAnchor']; | ||
| 441 | |||
| 442 | coerce 'TextAnchor', | ||
| 443 | from HashRef, via { 'Google::Cloud::Documentai::V1::Document::Document::TextAnchor'->new($_) }; | ||
| 444 | |||
| 445 | declare 'RepeatedTextAnchor', | ||
| 446 | as ArrayRef[TextAnchor()]; | ||
| 447 | |||
| 448 | coerce 'RepeatedTextAnchor', | ||
| 449 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Documentai::V1::Document::Document::TextAnchor'->new($_) } @$_ ] }; | ||
| 450 | |||
| 451 | declare 'MapStringTextAnchor', | ||
| 452 | as HashRef[TextAnchor()]; | ||
| 453 | |||
| 454 | declare 'TextSegment', | ||
| 455 | as InstanceOf['Google::Cloud::Documentai::V1::Document::Document::TextAnchor::TextSegment']; | ||
| 456 | |||
| 457 | coerce 'TextSegment', | ||
| 458 | from HashRef, via { 'Google::Cloud::Documentai::V1::Document::Document::TextAnchor::TextSegment'->new($_) }; | ||
| 459 | |||
| 460 | declare 'RepeatedTextSegment', | ||
| 461 | as ArrayRef[TextSegment()]; | ||
| 462 | |||
| 463 | coerce 'RepeatedTextSegment', | ||
| 464 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Documentai::V1::Document::Document::TextAnchor::TextSegment'->new($_) } @$_ ] }; | ||
| 465 | |||
| 466 | declare 'MapStringTextSegment', | ||
| 467 | as HashRef[TextSegment()]; | ||
| 468 | |||
| 469 | declare 'PageAnchor', | ||
| 470 | as InstanceOf['Google::Cloud::Documentai::V1::Document::Document::PageAnchor']; | ||
| 471 | |||
| 472 | coerce 'PageAnchor', | ||
| 473 | from HashRef, via { 'Google::Cloud::Documentai::V1::Document::Document::PageAnchor'->new($_) }; | ||
| 474 | |||
| 475 | declare 'RepeatedPageAnchor', | ||
| 476 | as ArrayRef[PageAnchor()]; | ||
| 477 | |||
| 478 | coerce 'RepeatedPageAnchor', | ||
| 479 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Documentai::V1::Document::Document::PageAnchor'->new($_) } @$_ ] }; | ||
| 480 | |||
| 481 | declare 'MapStringPageAnchor', | ||
| 482 | as HashRef[PageAnchor()]; | ||
| 483 | |||
| 484 | declare 'PageRef', | ||
| 485 | as InstanceOf['Google::Cloud::Documentai::V1::Document::Document::PageAnchor::PageRef']; | ||
| 486 | |||
| 487 | coerce 'PageRef', | ||
| 488 | from HashRef, via { 'Google::Cloud::Documentai::V1::Document::Document::PageAnchor::PageRef'->new($_) }; | ||
| 489 | |||
| 490 | declare 'RepeatedPageRef', | ||
| 491 | as ArrayRef[PageRef()]; | ||
| 492 | |||
| 493 | coerce 'RepeatedPageRef', | ||
| 494 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Documentai::V1::Document::Document::PageAnchor::PageRef'->new($_) } @$_ ] }; | ||
| 495 | |||
| 496 | declare 'MapStringPageRef', | ||
| 497 | as HashRef[PageRef()]; | ||
| 498 | |||
| 499 | declare 'LayoutType', | ||
| 500 | as (Int | Str); | ||
| 501 | |||
| 502 | declare 'Provenance', | ||
| 503 | as InstanceOf['Google::Cloud::Documentai::V1::Document::Document::Provenance']; | ||
| 504 | |||
| 505 | coerce 'Provenance', | ||
| 506 | from HashRef, via { 'Google::Cloud::Documentai::V1::Document::Document::Provenance'->new($_) }; | ||
| 507 | |||
| 508 | declare 'RepeatedProvenance', | ||
| 509 | as ArrayRef[Provenance()]; | ||
| 510 | |||
| 511 | coerce 'RepeatedProvenance', | ||
| 512 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Documentai::V1::Document::Document::Provenance'->new($_) } @$_ ] }; | ||
| 513 | |||
| 514 | declare 'MapStringProvenance', | ||
| 515 | as HashRef[Provenance()]; | ||
| 516 | |||
| 517 | declare 'OperationType', | ||
| 518 | as (Int | Str); | ||
| 519 | |||
| 520 | declare 'Parent', | ||
| 521 | as InstanceOf['Google::Cloud::Documentai::V1::Document::Document::Provenance::Parent']; | ||
| 522 | |||
| 523 | coerce 'Parent', | ||
| 524 | from HashRef, via { 'Google::Cloud::Documentai::V1::Document::Document::Provenance::Parent'->new($_) }; | ||
| 525 | |||
| 526 | declare 'RepeatedParent', | ||
| 527 | as ArrayRef[Parent()]; | ||
| 528 | |||
| 529 | coerce 'RepeatedParent', | ||
| 530 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Documentai::V1::Document::Document::Provenance::Parent'->new($_) } @$_ ] }; | ||
| 531 | |||
| 532 | declare 'MapStringParent', | ||
| 533 | as HashRef[Parent()]; | ||
| 534 | |||
| 535 | declare 'Revision', | ||
| 536 | as InstanceOf['Google::Cloud::Documentai::V1::Document::Document::Revision']; | ||
| 537 | |||
| 538 | coerce 'Revision', | ||
| 539 | from HashRef, via { 'Google::Cloud::Documentai::V1::Document::Document::Revision'->new($_) }; | ||
| 540 | |||
| 541 | declare 'RepeatedRevision', | ||
| 542 | as ArrayRef[Revision()]; | ||
| 543 | |||
| 544 | coerce 'RepeatedRevision', | ||
| 545 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Documentai::V1::Document::Document::Revision'->new($_) } @$_ ] }; | ||
| 546 | |||
| 547 | declare 'MapStringRevision', | ||
| 548 | as HashRef[Revision()]; | ||
| 549 | |||
| 550 | declare 'HumanReview', | ||
| 551 | as InstanceOf['Google::Cloud::Documentai::V1::Document::Document::Revision::HumanReview']; | ||
| 552 | |||
| 553 | coerce 'HumanReview', | ||
| 554 | from HashRef, via { 'Google::Cloud::Documentai::V1::Document::Document::Revision::HumanReview'->new($_) }; | ||
| 555 | |||
| 556 | declare 'RepeatedHumanReview', | ||
| 557 | as ArrayRef[HumanReview()]; | ||
| 558 | |||
| 559 | coerce 'RepeatedHumanReview', | ||
| 560 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Documentai::V1::Document::Document::Revision::HumanReview'->new($_) } @$_ ] }; | ||
| 561 | |||
| 562 | declare 'MapStringHumanReview', | ||
| 563 | as HashRef[HumanReview()]; | ||
| 564 | |||
| 565 | declare 'TextChange', | ||
| 566 | as InstanceOf['Google::Cloud::Documentai::V1::Document::Document::TextChange']; | ||
| 567 | |||
| 568 | coerce 'TextChange', | ||
| 569 | from HashRef, via { 'Google::Cloud::Documentai::V1::Document::Document::TextChange'->new($_) }; | ||
| 570 | |||
| 571 | declare 'RepeatedTextChange', | ||
| 572 | as ArrayRef[TextChange()]; | ||
| 573 | |||
| 574 | coerce 'RepeatedTextChange', | ||
| 575 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Documentai::V1::Document::Document::TextChange'->new($_) } @$_ ] }; | ||
| 576 | |||
| 577 | declare 'MapStringTextChange', | ||
| 578 | as HashRef[TextChange()]; | ||
| 579 | |||
| 580 | declare 'Annotations', | ||
| 581 | as InstanceOf['Google::Cloud::Documentai::V1::Document::Document::Annotations']; | ||
| 582 | |||
| 583 | coerce 'Annotations', | ||
| 584 | from HashRef, via { 'Google::Cloud::Documentai::V1::Document::Document::Annotations'->new($_) }; | ||
| 585 | |||
| 586 | declare 'RepeatedAnnotations', | ||
| 587 | as ArrayRef[Annotations()]; | ||
| 588 | |||
| 589 | coerce 'RepeatedAnnotations', | ||
| 590 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Documentai::V1::Document::Document::Annotations'->new($_) } @$_ ] }; | ||
| 591 | |||
| 592 | declare 'MapStringAnnotations', | ||
| 593 | as HashRef[Annotations()]; | ||
| 594 | |||
| 595 | declare 'DocumentLayout', | ||
| 596 | as InstanceOf['Google::Cloud::Documentai::V1::Document::Document::DocumentLayout']; | ||
| 597 | |||
| 598 | coerce 'DocumentLayout', | ||
| 599 | from HashRef, via { 'Google::Cloud::Documentai::V1::Document::Document::DocumentLayout'->new($_) }; | ||
| 600 | |||
| 601 | declare 'RepeatedDocumentLayout', | ||
| 602 | as ArrayRef[DocumentLayout()]; | ||
| 603 | |||
| 604 | coerce 'RepeatedDocumentLayout', | ||
| 605 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Documentai::V1::Document::Document::DocumentLayout'->new($_) } @$_ ] }; | ||
| 606 | |||
| 607 | declare 'MapStringDocumentLayout', | ||
| 608 | as HashRef[DocumentLayout()]; | ||
| 609 | |||
| 610 | declare 'DocumentLayoutBlock', | ||
| 611 | as InstanceOf['Google::Cloud::Documentai::V1::Document::Document::DocumentLayout::DocumentLayoutBlock']; | ||
| 612 | |||
| 613 | coerce 'DocumentLayoutBlock', | ||
| 614 | from HashRef, via { 'Google::Cloud::Documentai::V1::Document::Document::DocumentLayout::DocumentLayoutBlock'->new($_) }; | ||
| 615 | |||
| 616 | declare 'RepeatedDocumentLayoutBlock', | ||
| 617 | as ArrayRef[DocumentLayoutBlock()]; | ||
| 618 | |||
| 619 | coerce 'RepeatedDocumentLayoutBlock', | ||
| 620 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Documentai::V1::Document::Document::DocumentLayout::DocumentLayoutBlock'->new($_) } @$_ ] }; | ||
| 621 | |||
| 622 | declare 'MapStringDocumentLayoutBlock', | ||
| 623 | as HashRef[DocumentLayoutBlock()]; | ||
| 624 | |||
| 625 | declare 'LayoutPageSpan', | ||
| 626 | as InstanceOf['Google::Cloud::Documentai::V1::Document::Document::DocumentLayout::DocumentLayoutBlock::LayoutPageSpan']; | ||
| 627 | |||
| 628 | coerce 'LayoutPageSpan', | ||
| 629 | from HashRef, via { 'Google::Cloud::Documentai::V1::Document::Document::DocumentLayout::DocumentLayoutBlock::LayoutPageSpan'->new($_) }; | ||
| 630 | |||
| 631 | declare 'RepeatedLayoutPageSpan', | ||
| 632 | as ArrayRef[LayoutPageSpan()]; | ||
| 633 | |||
| 634 | coerce 'RepeatedLayoutPageSpan', | ||
| 635 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Documentai::V1::Document::Document::DocumentLayout::DocumentLayoutBlock::LayoutPageSpan'->new($_) } @$_ ] }; | ||
| 636 | |||
| 637 | declare 'MapStringLayoutPageSpan', | ||
| 638 | as HashRef[LayoutPageSpan()]; | ||
| 639 | |||
| 640 | declare 'LayoutTextBlock', | ||
| 641 | as InstanceOf['Google::Cloud::Documentai::V1::Document::Document::DocumentLayout::DocumentLayoutBlock::LayoutTextBlock']; | ||
| 642 | |||
| 643 | coerce 'LayoutTextBlock', | ||
| 644 | from HashRef, via { 'Google::Cloud::Documentai::V1::Document::Document::DocumentLayout::DocumentLayoutBlock::LayoutTextBlock'->new($_) }; | ||
| 645 | |||
| 646 | declare 'RepeatedLayoutTextBlock', | ||
| 647 | as ArrayRef[LayoutTextBlock()]; | ||
| 648 | |||
| 649 | coerce 'RepeatedLayoutTextBlock', | ||
| 650 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Documentai::V1::Document::Document::DocumentLayout::DocumentLayoutBlock::LayoutTextBlock'->new($_) } @$_ ] }; | ||
| 651 | |||
| 652 | declare 'MapStringLayoutTextBlock', | ||
| 653 | as HashRef[LayoutTextBlock()]; | ||
| 654 | |||
| 655 | declare 'LayoutTableBlock', | ||
| 656 | as InstanceOf['Google::Cloud::Documentai::V1::Document::Document::DocumentLayout::DocumentLayoutBlock::LayoutTableBlock']; | ||
| 657 | |||
| 658 | coerce 'LayoutTableBlock', | ||
| 659 | from HashRef, via { 'Google::Cloud::Documentai::V1::Document::Document::DocumentLayout::DocumentLayoutBlock::LayoutTableBlock'->new($_) }; | ||
| 660 | |||
| 661 | declare 'RepeatedLayoutTableBlock', | ||
| 662 | as ArrayRef[LayoutTableBlock()]; | ||
| 663 | |||
| 664 | coerce 'RepeatedLayoutTableBlock', | ||
| 665 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Documentai::V1::Document::Document::DocumentLayout::DocumentLayoutBlock::LayoutTableBlock'->new($_) } @$_ ] }; | ||
| 666 | |||
| 667 | declare 'MapStringLayoutTableBlock', | ||
| 668 | as HashRef[LayoutTableBlock()]; | ||
| 669 | |||
| 670 | declare 'LayoutTableRow', | ||
| 671 | as InstanceOf['Google::Cloud::Documentai::V1::Document::Document::DocumentLayout::DocumentLayoutBlock::LayoutTableRow']; | ||
| 672 | |||
| 673 | coerce 'LayoutTableRow', | ||
| 674 | from HashRef, via { 'Google::Cloud::Documentai::V1::Document::Document::DocumentLayout::DocumentLayoutBlock::LayoutTableRow'->new($_) }; | ||
| 675 | |||
| 676 | declare 'RepeatedLayoutTableRow', | ||
| 677 | as ArrayRef[LayoutTableRow()]; | ||
| 678 | |||
| 679 | coerce 'RepeatedLayoutTableRow', | ||
| 680 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Documentai::V1::Document::Document::DocumentLayout::DocumentLayoutBlock::LayoutTableRow'->new($_) } @$_ ] }; | ||
| 681 | |||
| 682 | declare 'MapStringLayoutTableRow', | ||
| 683 | as HashRef[LayoutTableRow()]; | ||
| 684 | |||
| 685 | declare 'LayoutTableCell', | ||
| 686 | as InstanceOf['Google::Cloud::Documentai::V1::Document::Document::DocumentLayout::DocumentLayoutBlock::LayoutTableCell']; | ||
| 687 | |||
| 688 | coerce 'LayoutTableCell', | ||
| 689 | from HashRef, via { 'Google::Cloud::Documentai::V1::Document::Document::DocumentLayout::DocumentLayoutBlock::LayoutTableCell'->new($_) }; | ||
| 690 | |||
| 691 | declare 'RepeatedLayoutTableCell', | ||
| 692 | as ArrayRef[LayoutTableCell()]; | ||
| 693 | |||
| 694 | coerce 'RepeatedLayoutTableCell', | ||
| 695 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Documentai::V1::Document::Document::DocumentLayout::DocumentLayoutBlock::LayoutTableCell'->new($_) } @$_ ] }; | ||
| 696 | |||
| 697 | declare 'MapStringLayoutTableCell', | ||
| 698 | as HashRef[LayoutTableCell()]; | ||
| 699 | |||
| 700 | declare 'LayoutListBlock', | ||
| 701 | as InstanceOf['Google::Cloud::Documentai::V1::Document::Document::DocumentLayout::DocumentLayoutBlock::LayoutListBlock']; | ||
| 702 | |||
| 703 | coerce 'LayoutListBlock', | ||
| 704 | from HashRef, via { 'Google::Cloud::Documentai::V1::Document::Document::DocumentLayout::DocumentLayoutBlock::LayoutListBlock'->new($_) }; | ||
| 705 | |||
| 706 | declare 'RepeatedLayoutListBlock', | ||
| 707 | as ArrayRef[LayoutListBlock()]; | ||
| 708 | |||
| 709 | coerce 'RepeatedLayoutListBlock', | ||
| 710 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Documentai::V1::Document::Document::DocumentLayout::DocumentLayoutBlock::LayoutListBlock'->new($_) } @$_ ] }; | ||
| 711 | |||
| 712 | declare 'MapStringLayoutListBlock', | ||
| 713 | as HashRef[LayoutListBlock()]; | ||
| 714 | |||
| 715 | declare 'LayoutListEntry', | ||
| 716 | as InstanceOf['Google::Cloud::Documentai::V1::Document::Document::DocumentLayout::DocumentLayoutBlock::LayoutListEntry']; | ||
| 717 | |||
| 718 | coerce 'LayoutListEntry', | ||
| 719 | from HashRef, via { 'Google::Cloud::Documentai::V1::Document::Document::DocumentLayout::DocumentLayoutBlock::LayoutListEntry'->new($_) }; | ||
| 720 | |||
| 721 | declare 'RepeatedLayoutListEntry', | ||
| 722 | as ArrayRef[LayoutListEntry()]; | ||
| 723 | |||
| 724 | coerce 'RepeatedLayoutListEntry', | ||
| 725 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Documentai::V1::Document::Document::DocumentLayout::DocumentLayoutBlock::LayoutListEntry'->new($_) } @$_ ] }; | ||
| 726 | |||
| 727 | declare 'MapStringLayoutListEntry', | ||
| 728 | as HashRef[LayoutListEntry()]; | ||
| 729 | |||
| 730 | declare 'LayoutImageBlock', | ||
| 731 | as InstanceOf['Google::Cloud::Documentai::V1::Document::Document::DocumentLayout::DocumentLayoutBlock::LayoutImageBlock']; | ||
| 732 | |||
| 733 | coerce 'LayoutImageBlock', | ||
| 734 | from HashRef, via { 'Google::Cloud::Documentai::V1::Document::Document::DocumentLayout::DocumentLayoutBlock::LayoutImageBlock'->new($_) }; | ||
| 735 | |||
| 736 | declare 'RepeatedLayoutImageBlock', | ||
| 737 | as ArrayRef[LayoutImageBlock()]; | ||
| 738 | |||
| 739 | coerce 'RepeatedLayoutImageBlock', | ||
| 740 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Documentai::V1::Document::Document::DocumentLayout::DocumentLayoutBlock::LayoutImageBlock'->new($_) } @$_ ] }; | ||
| 741 | |||
| 742 | declare 'MapStringLayoutImageBlock', | ||
| 743 | as HashRef[LayoutImageBlock()]; | ||
| 744 | |||
| 745 | declare 'ChunkedDocument', | ||
| 746 | as InstanceOf['Google::Cloud::Documentai::V1::Document::Document::ChunkedDocument']; | ||
| 747 | |||
| 748 | coerce 'ChunkedDocument', | ||
| 749 | from HashRef, via { 'Google::Cloud::Documentai::V1::Document::Document::ChunkedDocument'->new($_) }; | ||
| 750 | |||
| 751 | declare 'RepeatedChunkedDocument', | ||
| 752 | as ArrayRef[ChunkedDocument()]; | ||
| 753 | |||
| 754 | coerce 'RepeatedChunkedDocument', | ||
| 755 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Documentai::V1::Document::Document::ChunkedDocument'->new($_) } @$_ ] }; | ||
| 756 | |||
| 757 | declare 'MapStringChunkedDocument', | ||
| 758 | as HashRef[ChunkedDocument()]; | ||
| 759 | |||
| 760 | declare 'Chunk', | ||
| 761 | as InstanceOf['Google::Cloud::Documentai::V1::Document::Document::ChunkedDocument::Chunk']; | ||
| 762 | |||
| 763 | coerce 'Chunk', | ||
| 764 | from HashRef, via { 'Google::Cloud::Documentai::V1::Document::Document::ChunkedDocument::Chunk'->new($_) }; | ||
| 765 | |||
| 766 | declare 'RepeatedChunk', | ||
| 767 | as ArrayRef[Chunk()]; | ||
| 768 | |||
| 769 | coerce 'RepeatedChunk', | ||
| 770 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Documentai::V1::Document::Document::ChunkedDocument::Chunk'->new($_) } @$_ ] }; | ||
| 771 | |||
| 772 | declare 'MapStringChunk', | ||
| 773 | as HashRef[Chunk()]; | ||
| 774 | |||
| 775 | declare 'ChunkPageSpan', | ||
| 776 | as InstanceOf['Google::Cloud::Documentai::V1::Document::Document::ChunkedDocument::Chunk::ChunkPageSpan']; | ||
| 777 | |||
| 778 | coerce 'ChunkPageSpan', | ||
| 779 | from HashRef, via { 'Google::Cloud::Documentai::V1::Document::Document::ChunkedDocument::Chunk::ChunkPageSpan'->new($_) }; | ||
| 780 | |||
| 781 | declare 'RepeatedChunkPageSpan', | ||
| 782 | as ArrayRef[ChunkPageSpan()]; | ||
| 783 | |||
| 784 | coerce 'RepeatedChunkPageSpan', | ||
| 785 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Documentai::V1::Document::Document::ChunkedDocument::Chunk::ChunkPageSpan'->new($_) } @$_ ] }; | ||
| 786 | |||
| 787 | declare 'MapStringChunkPageSpan', | ||
| 788 | as HashRef[ChunkPageSpan()]; | ||
| 789 | |||
| 790 | declare 'ChunkPageHeader', | ||
| 791 | as InstanceOf['Google::Cloud::Documentai::V1::Document::Document::ChunkedDocument::Chunk::ChunkPageHeader']; | ||
| 792 | |||
| 793 | coerce 'ChunkPageHeader', | ||
| 794 | from HashRef, via { 'Google::Cloud::Documentai::V1::Document::Document::ChunkedDocument::Chunk::ChunkPageHeader'->new($_) }; | ||
| 795 | |||
| 796 | declare 'RepeatedChunkPageHeader', | ||
| 797 | as ArrayRef[ChunkPageHeader()]; | ||
| 798 | |||
| 799 | coerce 'RepeatedChunkPageHeader', | ||
| 800 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Documentai::V1::Document::Document::ChunkedDocument::Chunk::ChunkPageHeader'->new($_) } @$_ ] }; | ||
| 801 | |||
| 802 | declare 'MapStringChunkPageHeader', | ||
| 803 | as HashRef[ChunkPageHeader()]; | ||
| 804 | |||
| 805 | declare 'ChunkPageFooter', | ||
| 806 | as InstanceOf['Google::Cloud::Documentai::V1::Document::Document::ChunkedDocument::Chunk::ChunkPageFooter']; | ||
| 807 | |||
| 808 | coerce 'ChunkPageFooter', | ||
| 809 | from HashRef, via { 'Google::Cloud::Documentai::V1::Document::Document::ChunkedDocument::Chunk::ChunkPageFooter'->new($_) }; | ||
| 810 | |||
| 811 | declare 'RepeatedChunkPageFooter', | ||
| 812 | as ArrayRef[ChunkPageFooter()]; | ||
| 813 | |||
| 814 | coerce 'RepeatedChunkPageFooter', | ||
| 815 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Documentai::V1::Document::Document::ChunkedDocument::Chunk::ChunkPageFooter'->new($_) } @$_ ] }; | ||
| 816 | |||
| 817 | declare 'MapStringChunkPageFooter', | ||
| 818 | as HashRef[ChunkPageFooter()]; | ||
| 819 | |||
| 820 | declare 'ImageChunkField', | ||
| 821 | as InstanceOf['Google::Cloud::Documentai::V1::Document::Document::ChunkedDocument::Chunk::ImageChunkField']; | ||
| 822 | |||
| 823 | coerce 'ImageChunkField', | ||
| 824 | from HashRef, via { 'Google::Cloud::Documentai::V1::Document::Document::ChunkedDocument::Chunk::ImageChunkField'->new($_) }; | ||
| 825 | |||
| 826 | declare 'RepeatedImageChunkField', | ||
| 827 | as ArrayRef[ImageChunkField()]; | ||
| 828 | |||
| 829 | coerce 'RepeatedImageChunkField', | ||
| 830 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Documentai::V1::Document::Document::ChunkedDocument::Chunk::ImageChunkField'->new($_) } @$_ ] }; | ||
| 831 | |||
| 832 | declare 'MapStringImageChunkField', | ||
| 833 | as HashRef[ImageChunkField()]; | ||
| 834 | |||
| 835 | declare 'TableChunkField', | ||
| 836 | as InstanceOf['Google::Cloud::Documentai::V1::Document::Document::ChunkedDocument::Chunk::TableChunkField']; | ||
| 837 | |||
| 838 | coerce 'TableChunkField', | ||
| 839 | from HashRef, via { 'Google::Cloud::Documentai::V1::Document::Document::ChunkedDocument::Chunk::TableChunkField'->new($_) }; | ||
| 840 | |||
| 841 | declare 'RepeatedTableChunkField', | ||
| 842 | as ArrayRef[TableChunkField()]; | ||
| 843 | |||
| 844 | coerce 'RepeatedTableChunkField', | ||
| 845 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Documentai::V1::Document::Document::ChunkedDocument::Chunk::TableChunkField'->new($_) } @$_ ] }; | ||
| 846 | |||
| 847 | declare 'MapStringTableChunkField', | ||
| 848 | as HashRef[TableChunkField()]; | ||
| 849 | |||
| 850 | declare 'ChunkField', | ||
| 851 | as InstanceOf['Google::Cloud::Documentai::V1::Document::Document::ChunkedDocument::Chunk::ChunkField']; | ||
| 852 | |||
| 853 | coerce 'ChunkField', | ||
| 854 | from HashRef, via { 'Google::Cloud::Documentai::V1::Document::Document::ChunkedDocument::Chunk::ChunkField'->new($_) }; | ||
| 855 | |||
| 856 | declare 'RepeatedChunkField', | ||
| 857 | as ArrayRef[ChunkField()]; | ||
| 858 | |||
| 859 | coerce 'RepeatedChunkField', | ||
| 860 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Documentai::V1::Document::Document::ChunkedDocument::Chunk::ChunkField'->new($_) } @$_ ] }; | ||
| 861 | |||
| 862 | declare 'MapStringChunkField', | ||
| 863 | as HashRef[ChunkField()]; | ||
| 864 | |||
| 865 | declare 'BlobAsset', | ||
| 866 | as InstanceOf['Google::Cloud::Documentai::V1::Document::Document::BlobAsset']; | ||
| 867 | |||
| 868 | coerce 'BlobAsset', | ||
| 869 | from HashRef, via { 'Google::Cloud::Documentai::V1::Document::Document::BlobAsset'->new($_) }; | ||
| 870 | |||
| 871 | declare 'RepeatedBlobAsset', | ||
| 872 | as ArrayRef[BlobAsset()]; | ||
| 873 | |||
| 874 | coerce 'RepeatedBlobAsset', | ||
| 875 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Documentai::V1::Document::Document::BlobAsset'->new($_) } @$_ ] }; | ||
| 876 | |||
| 877 | declare 'MapStringBlobAsset', | ||
| 878 | as HashRef[BlobAsset()]; | ||
| 879 | |||
| 880 | declare 'EntityValidationOutput', | ||
| 881 | as InstanceOf['Google::Cloud::Documentai::V1::Document::Document::EntityValidationOutput']; | ||
| 882 | |||
| 883 | coerce 'EntityValidationOutput', | ||
| 884 | from HashRef, via { 'Google::Cloud::Documentai::V1::Document::Document::EntityValidationOutput'->new($_) }; | ||
| 885 | |||
| 886 | declare 'RepeatedEntityValidationOutput', | ||
| 887 | as ArrayRef[EntityValidationOutput()]; | ||
| 888 | |||
| 889 | coerce 'RepeatedEntityValidationOutput', | ||
| 890 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Documentai::V1::Document::Document::EntityValidationOutput'->new($_) } @$_ ] }; | ||
| 891 | |||
| 892 | declare 'MapStringEntityValidationOutput', | ||
| 893 | as HashRef[EntityValidationOutput()]; | ||
| 894 | |||
| 895 | declare 'ValidationResult', | ||
| 896 | as InstanceOf['Google::Cloud::Documentai::V1::Document::Document::EntityValidationOutput::ValidationResult']; | ||
| 897 | |||
| 898 | coerce 'ValidationResult', | ||
| 899 | from HashRef, via { 'Google::Cloud::Documentai::V1::Document::Document::EntityValidationOutput::ValidationResult'->new($_) }; | ||
| 900 | |||
| 901 | declare 'RepeatedValidationResult', | ||
| 902 | as ArrayRef[ValidationResult()]; | ||
| 903 | |||
| 904 | coerce 'RepeatedValidationResult', | ||
| 905 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Documentai::V1::Document::Document::EntityValidationOutput::ValidationResult'->new($_) } @$_ ] }; | ||
| 906 | |||
| 907 | declare 'MapStringValidationResult', | ||
| 908 | as HashRef[ValidationResult()]; | ||
| 909 | |||
| 910 | declare 'ValidationResultType', | ||
| 911 | as (Int | Str); | ||
| 912 | |||
| 913 | declare 'EntitiesRevision', | ||
| 914 | as InstanceOf['Google::Cloud::Documentai::V1::Document::Document::EntitiesRevision']; | ||
| 915 | |||
| 916 | coerce 'EntitiesRevision', | ||
| 917 | from HashRef, via { 'Google::Cloud::Documentai::V1::Document::Document::EntitiesRevision'->new($_) }; | ||
| 918 | |||
| 919 | declare 'RepeatedEntitiesRevision', | ||
| 920 | as ArrayRef[EntitiesRevision()]; | ||
| 921 | |||
| 922 | coerce 'RepeatedEntitiesRevision', | ||
| 923 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Documentai::V1::Document::Document::EntitiesRevision'->new($_) } @$_ ] }; | ||
| 924 | |||
| 925 | declare 'MapStringEntitiesRevision', | ||
| 926 | as HashRef[EntitiesRevision()]; | ||
| 927 | |||
| 928 | 1; | ||
| 929 | |||
| 930 | __END__ |