| 1 | package Google::Cloud::Documentai::V1::DocumentIo::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 'RawDocument', | ||
| 11 | as InstanceOf['Google::Cloud::Documentai::V1::DocumentIo::RawDocument']; | ||
| 12 | |||
| 13 | coerce 'RawDocument', | ||
| 14 | from HashRef, via { 'Google::Cloud::Documentai::V1::DocumentIo::RawDocument'->new($_) }; | ||
| 15 | |||
| 16 | declare 'RepeatedRawDocument', | ||
| 17 | as ArrayRef[RawDocument()]; | ||
| 18 | |||
| 19 | coerce 'RepeatedRawDocument', | ||
| 20 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Documentai::V1::DocumentIo::RawDocument'->new($_) } @$_ ] }; | ||
| 21 | |||
| 22 | declare 'MapStringRawDocument', | ||
| 23 | as HashRef[RawDocument()]; | ||
| 24 | |||
| 25 | declare 'GcsDocument', | ||
| 26 | as InstanceOf['Google::Cloud::Documentai::V1::DocumentIo::GcsDocument']; | ||
| 27 | |||
| 28 | coerce 'GcsDocument', | ||
| 29 | from HashRef, via { 'Google::Cloud::Documentai::V1::DocumentIo::GcsDocument'->new($_) }; | ||
| 30 | |||
| 31 | declare 'RepeatedGcsDocument', | ||
| 32 | as ArrayRef[GcsDocument()]; | ||
| 33 | |||
| 34 | coerce 'RepeatedGcsDocument', | ||
| 35 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Documentai::V1::DocumentIo::GcsDocument'->new($_) } @$_ ] }; | ||
| 36 | |||
| 37 | declare 'MapStringGcsDocument', | ||
| 38 | as HashRef[GcsDocument()]; | ||
| 39 | |||
| 40 | declare 'GcsDocuments', | ||
| 41 | as InstanceOf['Google::Cloud::Documentai::V1::DocumentIo::GcsDocuments']; | ||
| 42 | |||
| 43 | coerce 'GcsDocuments', | ||
| 44 | from HashRef, via { 'Google::Cloud::Documentai::V1::DocumentIo::GcsDocuments'->new($_) }; | ||
| 45 | |||
| 46 | declare 'RepeatedGcsDocuments', | ||
| 47 | as ArrayRef[GcsDocuments()]; | ||
| 48 | |||
| 49 | coerce 'RepeatedGcsDocuments', | ||
| 50 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Documentai::V1::DocumentIo::GcsDocuments'->new($_) } @$_ ] }; | ||
| 51 | |||
| 52 | declare 'MapStringGcsDocuments', | ||
| 53 | as HashRef[GcsDocuments()]; | ||
| 54 | |||
| 55 | declare 'GcsPrefix', | ||
| 56 | as InstanceOf['Google::Cloud::Documentai::V1::DocumentIo::GcsPrefix']; | ||
| 57 | |||
| 58 | coerce 'GcsPrefix', | ||
| 59 | from HashRef, via { 'Google::Cloud::Documentai::V1::DocumentIo::GcsPrefix'->new($_) }; | ||
| 60 | |||
| 61 | declare 'RepeatedGcsPrefix', | ||
| 62 | as ArrayRef[GcsPrefix()]; | ||
| 63 | |||
| 64 | coerce 'RepeatedGcsPrefix', | ||
| 65 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Documentai::V1::DocumentIo::GcsPrefix'->new($_) } @$_ ] }; | ||
| 66 | |||
| 67 | declare 'MapStringGcsPrefix', | ||
| 68 | as HashRef[GcsPrefix()]; | ||
| 69 | |||
| 70 | declare 'BatchDocumentsInputConfig', | ||
| 71 | as InstanceOf['Google::Cloud::Documentai::V1::DocumentIo::BatchDocumentsInputConfig']; | ||
| 72 | |||
| 73 | coerce 'BatchDocumentsInputConfig', | ||
| 74 | from HashRef, via { 'Google::Cloud::Documentai::V1::DocumentIo::BatchDocumentsInputConfig'->new($_) }; | ||
| 75 | |||
| 76 | declare 'RepeatedBatchDocumentsInputConfig', | ||
| 77 | as ArrayRef[BatchDocumentsInputConfig()]; | ||
| 78 | |||
| 79 | coerce 'RepeatedBatchDocumentsInputConfig', | ||
| 80 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Documentai::V1::DocumentIo::BatchDocumentsInputConfig'->new($_) } @$_ ] }; | ||
| 81 | |||
| 82 | declare 'MapStringBatchDocumentsInputConfig', | ||
| 83 | as HashRef[BatchDocumentsInputConfig()]; | ||
| 84 | |||
| 85 | declare 'DocumentOutputConfig', | ||
| 86 | as InstanceOf['Google::Cloud::Documentai::V1::DocumentIo::DocumentOutputConfig']; | ||
| 87 | |||
| 88 | coerce 'DocumentOutputConfig', | ||
| 89 | from HashRef, via { 'Google::Cloud::Documentai::V1::DocumentIo::DocumentOutputConfig'->new($_) }; | ||
| 90 | |||
| 91 | declare 'RepeatedDocumentOutputConfig', | ||
| 92 | as ArrayRef[DocumentOutputConfig()]; | ||
| 93 | |||
| 94 | coerce 'RepeatedDocumentOutputConfig', | ||
| 95 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Documentai::V1::DocumentIo::DocumentOutputConfig'->new($_) } @$_ ] }; | ||
| 96 | |||
| 97 | declare 'MapStringDocumentOutputConfig', | ||
| 98 | as HashRef[DocumentOutputConfig()]; | ||
| 99 | |||
| 100 | declare 'GcsOutputConfig', | ||
| 101 | as InstanceOf['Google::Cloud::Documentai::V1::DocumentIo::DocumentOutputConfig::GcsOutputConfig']; | ||
| 102 | |||
| 103 | coerce 'GcsOutputConfig', | ||
| 104 | from HashRef, via { 'Google::Cloud::Documentai::V1::DocumentIo::DocumentOutputConfig::GcsOutputConfig'->new($_) }; | ||
| 105 | |||
| 106 | declare 'RepeatedGcsOutputConfig', | ||
| 107 | as ArrayRef[GcsOutputConfig()]; | ||
| 108 | |||
| 109 | coerce 'RepeatedGcsOutputConfig', | ||
| 110 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Documentai::V1::DocumentIo::DocumentOutputConfig::GcsOutputConfig'->new($_) } @$_ ] }; | ||
| 111 | |||
| 112 | declare 'MapStringGcsOutputConfig', | ||
| 113 | as HashRef[GcsOutputConfig()]; | ||
| 114 | |||
| 115 | declare 'ShardingConfig', | ||
| 116 | as InstanceOf['Google::Cloud::Documentai::V1::DocumentIo::DocumentOutputConfig::GcsOutputConfig::ShardingConfig']; | ||
| 117 | |||
| 118 | coerce 'ShardingConfig', | ||
| 119 | from HashRef, via { 'Google::Cloud::Documentai::V1::DocumentIo::DocumentOutputConfig::GcsOutputConfig::ShardingConfig'->new($_) }; | ||
| 120 | |||
| 121 | declare 'RepeatedShardingConfig', | ||
| 122 | as ArrayRef[ShardingConfig()]; | ||
| 123 | |||
| 124 | coerce 'RepeatedShardingConfig', | ||
| 125 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Documentai::V1::DocumentIo::DocumentOutputConfig::GcsOutputConfig::ShardingConfig'->new($_) } @$_ ] }; | ||
| 126 | |||
| 127 | declare 'MapStringShardingConfig', | ||
| 128 | as HashRef[ShardingConfig()]; | ||
| 129 | |||
| 130 | declare 'OcrConfig', | ||
| 131 | as InstanceOf['Google::Cloud::Documentai::V1::DocumentIo::OcrConfig']; | ||
| 132 | |||
| 133 | coerce 'OcrConfig', | ||
| 134 | from HashRef, via { 'Google::Cloud::Documentai::V1::DocumentIo::OcrConfig'->new($_) }; | ||
| 135 | |||
| 136 | declare 'RepeatedOcrConfig', | ||
| 137 | as ArrayRef[OcrConfig()]; | ||
| 138 | |||
| 139 | coerce 'RepeatedOcrConfig', | ||
| 140 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Documentai::V1::DocumentIo::OcrConfig'->new($_) } @$_ ] }; | ||
| 141 | |||
| 142 | declare 'MapStringOcrConfig', | ||
| 143 | as HashRef[OcrConfig()]; | ||
| 144 | |||
| 145 | declare 'Hints', | ||
| 146 | as InstanceOf['Google::Cloud::Documentai::V1::DocumentIo::OcrConfig::Hints']; | ||
| 147 | |||
| 148 | coerce 'Hints', | ||
| 149 | from HashRef, via { 'Google::Cloud::Documentai::V1::DocumentIo::OcrConfig::Hints'->new($_) }; | ||
| 150 | |||
| 151 | declare 'RepeatedHints', | ||
| 152 | as ArrayRef[Hints()]; | ||
| 153 | |||
| 154 | coerce 'RepeatedHints', | ||
| 155 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Documentai::V1::DocumentIo::OcrConfig::Hints'->new($_) } @$_ ] }; | ||
| 156 | |||
| 157 | declare 'MapStringHints', | ||
| 158 | as HashRef[Hints()]; | ||
| 159 | |||
| 160 | declare 'PremiumFeatures', | ||
| 161 | as InstanceOf['Google::Cloud::Documentai::V1::DocumentIo::OcrConfig::PremiumFeatures']; | ||
| 162 | |||
| 163 | coerce 'PremiumFeatures', | ||
| 164 | from HashRef, via { 'Google::Cloud::Documentai::V1::DocumentIo::OcrConfig::PremiumFeatures'->new($_) }; | ||
| 165 | |||
| 166 | declare 'RepeatedPremiumFeatures', | ||
| 167 | as ArrayRef[PremiumFeatures()]; | ||
| 168 | |||
| 169 | coerce 'RepeatedPremiumFeatures', | ||
| 170 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Documentai::V1::DocumentIo::OcrConfig::PremiumFeatures'->new($_) } @$_ ] }; | ||
| 171 | |||
| 172 | declare 'MapStringPremiumFeatures', | ||
| 173 | as HashRef[PremiumFeatures()]; | ||
| 174 | |||
| 175 | 1; | ||
| 176 | |||
| 177 | __END__ |