| 1 | package Google::Cloud::Documentai::V1beta3::DocumentService::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 'DatasetSplitType', | ||
| 11 | as (Int | Str); | ||
| 12 | |||
| 13 | declare 'DocumentLabelingState', | ||
| 14 | as (Int | Str); | ||
| 15 | |||
| 16 | declare 'UpdateDatasetRequest', | ||
| 17 | as InstanceOf['Google::Cloud::Documentai::V1beta3::DocumentService::UpdateDatasetRequest']; | ||
| 18 | |||
| 19 | coerce 'UpdateDatasetRequest', | ||
| 20 | from HashRef, via { 'Google::Cloud::Documentai::V1beta3::DocumentService::UpdateDatasetRequest'->new($_) }; | ||
| 21 | |||
| 22 | declare 'RepeatedUpdateDatasetRequest', | ||
| 23 | as ArrayRef[UpdateDatasetRequest()]; | ||
| 24 | |||
| 25 | coerce 'RepeatedUpdateDatasetRequest', | ||
| 26 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Documentai::V1beta3::DocumentService::UpdateDatasetRequest'->new($_) } @$_ ] }; | ||
| 27 | |||
| 28 | declare 'MapStringUpdateDatasetRequest', | ||
| 29 | as HashRef[UpdateDatasetRequest()]; | ||
| 30 | |||
| 31 | declare 'UpdateDatasetOperationMetadata', | ||
| 32 | as InstanceOf['Google::Cloud::Documentai::V1beta3::DocumentService::UpdateDatasetOperationMetadata']; | ||
| 33 | |||
| 34 | coerce 'UpdateDatasetOperationMetadata', | ||
| 35 | from HashRef, via { 'Google::Cloud::Documentai::V1beta3::DocumentService::UpdateDatasetOperationMetadata'->new($_) }; | ||
| 36 | |||
| 37 | declare 'RepeatedUpdateDatasetOperationMetadata', | ||
| 38 | as ArrayRef[UpdateDatasetOperationMetadata()]; | ||
| 39 | |||
| 40 | coerce 'RepeatedUpdateDatasetOperationMetadata', | ||
| 41 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Documentai::V1beta3::DocumentService::UpdateDatasetOperationMetadata'->new($_) } @$_ ] }; | ||
| 42 | |||
| 43 | declare 'MapStringUpdateDatasetOperationMetadata', | ||
| 44 | as HashRef[UpdateDatasetOperationMetadata()]; | ||
| 45 | |||
| 46 | declare 'ImportDocumentsRequest', | ||
| 47 | as InstanceOf['Google::Cloud::Documentai::V1beta3::DocumentService::ImportDocumentsRequest']; | ||
| 48 | |||
| 49 | coerce 'ImportDocumentsRequest', | ||
| 50 | from HashRef, via { 'Google::Cloud::Documentai::V1beta3::DocumentService::ImportDocumentsRequest'->new($_) }; | ||
| 51 | |||
| 52 | declare 'RepeatedImportDocumentsRequest', | ||
| 53 | as ArrayRef[ImportDocumentsRequest()]; | ||
| 54 | |||
| 55 | coerce 'RepeatedImportDocumentsRequest', | ||
| 56 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Documentai::V1beta3::DocumentService::ImportDocumentsRequest'->new($_) } @$_ ] }; | ||
| 57 | |||
| 58 | declare 'MapStringImportDocumentsRequest', | ||
| 59 | as HashRef[ImportDocumentsRequest()]; | ||
| 60 | |||
| 61 | declare 'BatchDocumentsImportConfig', | ||
| 62 | as InstanceOf['Google::Cloud::Documentai::V1beta3::DocumentService::ImportDocumentsRequest::BatchDocumentsImportConfig']; | ||
| 63 | |||
| 64 | coerce 'BatchDocumentsImportConfig', | ||
| 65 | from HashRef, via { 'Google::Cloud::Documentai::V1beta3::DocumentService::ImportDocumentsRequest::BatchDocumentsImportConfig'->new($_) }; | ||
| 66 | |||
| 67 | declare 'RepeatedBatchDocumentsImportConfig', | ||
| 68 | as ArrayRef[BatchDocumentsImportConfig()]; | ||
| 69 | |||
| 70 | coerce 'RepeatedBatchDocumentsImportConfig', | ||
| 71 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Documentai::V1beta3::DocumentService::ImportDocumentsRequest::BatchDocumentsImportConfig'->new($_) } @$_ ] }; | ||
| 72 | |||
| 73 | declare 'MapStringBatchDocumentsImportConfig', | ||
| 74 | as HashRef[BatchDocumentsImportConfig()]; | ||
| 75 | |||
| 76 | declare 'AutoSplitConfig', | ||
| 77 | as InstanceOf['Google::Cloud::Documentai::V1beta3::DocumentService::ImportDocumentsRequest::BatchDocumentsImportConfig::AutoSplitConfig']; | ||
| 78 | |||
| 79 | coerce 'AutoSplitConfig', | ||
| 80 | from HashRef, via { 'Google::Cloud::Documentai::V1beta3::DocumentService::ImportDocumentsRequest::BatchDocumentsImportConfig::AutoSplitConfig'->new($_) }; | ||
| 81 | |||
| 82 | declare 'RepeatedAutoSplitConfig', | ||
| 83 | as ArrayRef[AutoSplitConfig()]; | ||
| 84 | |||
| 85 | coerce 'RepeatedAutoSplitConfig', | ||
| 86 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Documentai::V1beta3::DocumentService::ImportDocumentsRequest::BatchDocumentsImportConfig::AutoSplitConfig'->new($_) } @$_ ] }; | ||
| 87 | |||
| 88 | declare 'MapStringAutoSplitConfig', | ||
| 89 | as HashRef[AutoSplitConfig()]; | ||
| 90 | |||
| 91 | declare 'ImportDocumentsResponse', | ||
| 92 | as InstanceOf['Google::Cloud::Documentai::V1beta3::DocumentService::ImportDocumentsResponse']; | ||
| 93 | |||
| 94 | coerce 'ImportDocumentsResponse', | ||
| 95 | from HashRef, via { 'Google::Cloud::Documentai::V1beta3::DocumentService::ImportDocumentsResponse'->new($_) }; | ||
| 96 | |||
| 97 | declare 'RepeatedImportDocumentsResponse', | ||
| 98 | as ArrayRef[ImportDocumentsResponse()]; | ||
| 99 | |||
| 100 | coerce 'RepeatedImportDocumentsResponse', | ||
| 101 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Documentai::V1beta3::DocumentService::ImportDocumentsResponse'->new($_) } @$_ ] }; | ||
| 102 | |||
| 103 | declare 'MapStringImportDocumentsResponse', | ||
| 104 | as HashRef[ImportDocumentsResponse()]; | ||
| 105 | |||
| 106 | declare 'ImportDocumentsMetadata', | ||
| 107 | as InstanceOf['Google::Cloud::Documentai::V1beta3::DocumentService::ImportDocumentsMetadata']; | ||
| 108 | |||
| 109 | coerce 'ImportDocumentsMetadata', | ||
| 110 | from HashRef, via { 'Google::Cloud::Documentai::V1beta3::DocumentService::ImportDocumentsMetadata'->new($_) }; | ||
| 111 | |||
| 112 | declare 'RepeatedImportDocumentsMetadata', | ||
| 113 | as ArrayRef[ImportDocumentsMetadata()]; | ||
| 114 | |||
| 115 | coerce 'RepeatedImportDocumentsMetadata', | ||
| 116 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Documentai::V1beta3::DocumentService::ImportDocumentsMetadata'->new($_) } @$_ ] }; | ||
| 117 | |||
| 118 | declare 'MapStringImportDocumentsMetadata', | ||
| 119 | as HashRef[ImportDocumentsMetadata()]; | ||
| 120 | |||
| 121 | declare 'IndividualImportStatus', | ||
| 122 | as InstanceOf['Google::Cloud::Documentai::V1beta3::DocumentService::ImportDocumentsMetadata::IndividualImportStatus']; | ||
| 123 | |||
| 124 | coerce 'IndividualImportStatus', | ||
| 125 | from HashRef, via { 'Google::Cloud::Documentai::V1beta3::DocumentService::ImportDocumentsMetadata::IndividualImportStatus'->new($_) }; | ||
| 126 | |||
| 127 | declare 'RepeatedIndividualImportStatus', | ||
| 128 | as ArrayRef[IndividualImportStatus()]; | ||
| 129 | |||
| 130 | coerce 'RepeatedIndividualImportStatus', | ||
| 131 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Documentai::V1beta3::DocumentService::ImportDocumentsMetadata::IndividualImportStatus'->new($_) } @$_ ] }; | ||
| 132 | |||
| 133 | declare 'MapStringIndividualImportStatus', | ||
| 134 | as HashRef[IndividualImportStatus()]; | ||
| 135 | |||
| 136 | declare 'ImportConfigValidationResult', | ||
| 137 | as InstanceOf['Google::Cloud::Documentai::V1beta3::DocumentService::ImportDocumentsMetadata::ImportConfigValidationResult']; | ||
| 138 | |||
| 139 | coerce 'ImportConfigValidationResult', | ||
| 140 | from HashRef, via { 'Google::Cloud::Documentai::V1beta3::DocumentService::ImportDocumentsMetadata::ImportConfigValidationResult'->new($_) }; | ||
| 141 | |||
| 142 | declare 'RepeatedImportConfigValidationResult', | ||
| 143 | as ArrayRef[ImportConfigValidationResult()]; | ||
| 144 | |||
| 145 | coerce 'RepeatedImportConfigValidationResult', | ||
| 146 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Documentai::V1beta3::DocumentService::ImportDocumentsMetadata::ImportConfigValidationResult'->new($_) } @$_ ] }; | ||
| 147 | |||
| 148 | declare 'MapStringImportConfigValidationResult', | ||
| 149 | as HashRef[ImportConfigValidationResult()]; | ||
| 150 | |||
| 151 | declare 'GetDocumentRequest', | ||
| 152 | as InstanceOf['Google::Cloud::Documentai::V1beta3::DocumentService::GetDocumentRequest']; | ||
| 153 | |||
| 154 | coerce 'GetDocumentRequest', | ||
| 155 | from HashRef, via { 'Google::Cloud::Documentai::V1beta3::DocumentService::GetDocumentRequest'->new($_) }; | ||
| 156 | |||
| 157 | declare 'RepeatedGetDocumentRequest', | ||
| 158 | as ArrayRef[GetDocumentRequest()]; | ||
| 159 | |||
| 160 | coerce 'RepeatedGetDocumentRequest', | ||
| 161 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Documentai::V1beta3::DocumentService::GetDocumentRequest'->new($_) } @$_ ] }; | ||
| 162 | |||
| 163 | declare 'MapStringGetDocumentRequest', | ||
| 164 | as HashRef[GetDocumentRequest()]; | ||
| 165 | |||
| 166 | declare 'GetDocumentResponse', | ||
| 167 | as InstanceOf['Google::Cloud::Documentai::V1beta3::DocumentService::GetDocumentResponse']; | ||
| 168 | |||
| 169 | coerce 'GetDocumentResponse', | ||
| 170 | from HashRef, via { 'Google::Cloud::Documentai::V1beta3::DocumentService::GetDocumentResponse'->new($_) }; | ||
| 171 | |||
| 172 | declare 'RepeatedGetDocumentResponse', | ||
| 173 | as ArrayRef[GetDocumentResponse()]; | ||
| 174 | |||
| 175 | coerce 'RepeatedGetDocumentResponse', | ||
| 176 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Documentai::V1beta3::DocumentService::GetDocumentResponse'->new($_) } @$_ ] }; | ||
| 177 | |||
| 178 | declare 'MapStringGetDocumentResponse', | ||
| 179 | as HashRef[GetDocumentResponse()]; | ||
| 180 | |||
| 181 | declare 'ListDocumentsRequest', | ||
| 182 | as InstanceOf['Google::Cloud::Documentai::V1beta3::DocumentService::ListDocumentsRequest']; | ||
| 183 | |||
| 184 | coerce 'ListDocumentsRequest', | ||
| 185 | from HashRef, via { 'Google::Cloud::Documentai::V1beta3::DocumentService::ListDocumentsRequest'->new($_) }; | ||
| 186 | |||
| 187 | declare 'RepeatedListDocumentsRequest', | ||
| 188 | as ArrayRef[ListDocumentsRequest()]; | ||
| 189 | |||
| 190 | coerce 'RepeatedListDocumentsRequest', | ||
| 191 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Documentai::V1beta3::DocumentService::ListDocumentsRequest'->new($_) } @$_ ] }; | ||
| 192 | |||
| 193 | declare 'MapStringListDocumentsRequest', | ||
| 194 | as HashRef[ListDocumentsRequest()]; | ||
| 195 | |||
| 196 | declare 'ListDocumentsResponse', | ||
| 197 | as InstanceOf['Google::Cloud::Documentai::V1beta3::DocumentService::ListDocumentsResponse']; | ||
| 198 | |||
| 199 | coerce 'ListDocumentsResponse', | ||
| 200 | from HashRef, via { 'Google::Cloud::Documentai::V1beta3::DocumentService::ListDocumentsResponse'->new($_) }; | ||
| 201 | |||
| 202 | declare 'RepeatedListDocumentsResponse', | ||
| 203 | as ArrayRef[ListDocumentsResponse()]; | ||
| 204 | |||
| 205 | coerce 'RepeatedListDocumentsResponse', | ||
| 206 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Documentai::V1beta3::DocumentService::ListDocumentsResponse'->new($_) } @$_ ] }; | ||
| 207 | |||
| 208 | declare 'MapStringListDocumentsResponse', | ||
| 209 | as HashRef[ListDocumentsResponse()]; | ||
| 210 | |||
| 211 | declare 'BatchDeleteDocumentsRequest', | ||
| 212 | as InstanceOf['Google::Cloud::Documentai::V1beta3::DocumentService::BatchDeleteDocumentsRequest']; | ||
| 213 | |||
| 214 | coerce 'BatchDeleteDocumentsRequest', | ||
| 215 | from HashRef, via { 'Google::Cloud::Documentai::V1beta3::DocumentService::BatchDeleteDocumentsRequest'->new($_) }; | ||
| 216 | |||
| 217 | declare 'RepeatedBatchDeleteDocumentsRequest', | ||
| 218 | as ArrayRef[BatchDeleteDocumentsRequest()]; | ||
| 219 | |||
| 220 | coerce 'RepeatedBatchDeleteDocumentsRequest', | ||
| 221 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Documentai::V1beta3::DocumentService::BatchDeleteDocumentsRequest'->new($_) } @$_ ] }; | ||
| 222 | |||
| 223 | declare 'MapStringBatchDeleteDocumentsRequest', | ||
| 224 | as HashRef[BatchDeleteDocumentsRequest()]; | ||
| 225 | |||
| 226 | declare 'BatchDeleteDocumentsResponse', | ||
| 227 | as InstanceOf['Google::Cloud::Documentai::V1beta3::DocumentService::BatchDeleteDocumentsResponse']; | ||
| 228 | |||
| 229 | coerce 'BatchDeleteDocumentsResponse', | ||
| 230 | from HashRef, via { 'Google::Cloud::Documentai::V1beta3::DocumentService::BatchDeleteDocumentsResponse'->new($_) }; | ||
| 231 | |||
| 232 | declare 'RepeatedBatchDeleteDocumentsResponse', | ||
| 233 | as ArrayRef[BatchDeleteDocumentsResponse()]; | ||
| 234 | |||
| 235 | coerce 'RepeatedBatchDeleteDocumentsResponse', | ||
| 236 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Documentai::V1beta3::DocumentService::BatchDeleteDocumentsResponse'->new($_) } @$_ ] }; | ||
| 237 | |||
| 238 | declare 'MapStringBatchDeleteDocumentsResponse', | ||
| 239 | as HashRef[BatchDeleteDocumentsResponse()]; | ||
| 240 | |||
| 241 | declare 'BatchDeleteDocumentsMetadata', | ||
| 242 | as InstanceOf['Google::Cloud::Documentai::V1beta3::DocumentService::BatchDeleteDocumentsMetadata']; | ||
| 243 | |||
| 244 | coerce 'BatchDeleteDocumentsMetadata', | ||
| 245 | from HashRef, via { 'Google::Cloud::Documentai::V1beta3::DocumentService::BatchDeleteDocumentsMetadata'->new($_) }; | ||
| 246 | |||
| 247 | declare 'RepeatedBatchDeleteDocumentsMetadata', | ||
| 248 | as ArrayRef[BatchDeleteDocumentsMetadata()]; | ||
| 249 | |||
| 250 | coerce 'RepeatedBatchDeleteDocumentsMetadata', | ||
| 251 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Documentai::V1beta3::DocumentService::BatchDeleteDocumentsMetadata'->new($_) } @$_ ] }; | ||
| 252 | |||
| 253 | declare 'MapStringBatchDeleteDocumentsMetadata', | ||
| 254 | as HashRef[BatchDeleteDocumentsMetadata()]; | ||
| 255 | |||
| 256 | declare 'IndividualBatchDeleteStatus', | ||
| 257 | as InstanceOf['Google::Cloud::Documentai::V1beta3::DocumentService::BatchDeleteDocumentsMetadata::IndividualBatchDeleteStatus']; | ||
| 258 | |||
| 259 | coerce 'IndividualBatchDeleteStatus', | ||
| 260 | from HashRef, via { 'Google::Cloud::Documentai::V1beta3::DocumentService::BatchDeleteDocumentsMetadata::IndividualBatchDeleteStatus'->new($_) }; | ||
| 261 | |||
| 262 | declare 'RepeatedIndividualBatchDeleteStatus', | ||
| 263 | as ArrayRef[IndividualBatchDeleteStatus()]; | ||
| 264 | |||
| 265 | coerce 'RepeatedIndividualBatchDeleteStatus', | ||
| 266 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Documentai::V1beta3::DocumentService::BatchDeleteDocumentsMetadata::IndividualBatchDeleteStatus'->new($_) } @$_ ] }; | ||
| 267 | |||
| 268 | declare 'MapStringIndividualBatchDeleteStatus', | ||
| 269 | as HashRef[IndividualBatchDeleteStatus()]; | ||
| 270 | |||
| 271 | declare 'GetDatasetSchemaRequest', | ||
| 272 | as InstanceOf['Google::Cloud::Documentai::V1beta3::DocumentService::GetDatasetSchemaRequest']; | ||
| 273 | |||
| 274 | coerce 'GetDatasetSchemaRequest', | ||
| 275 | from HashRef, via { 'Google::Cloud::Documentai::V1beta3::DocumentService::GetDatasetSchemaRequest'->new($_) }; | ||
| 276 | |||
| 277 | declare 'RepeatedGetDatasetSchemaRequest', | ||
| 278 | as ArrayRef[GetDatasetSchemaRequest()]; | ||
| 279 | |||
| 280 | coerce 'RepeatedGetDatasetSchemaRequest', | ||
| 281 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Documentai::V1beta3::DocumentService::GetDatasetSchemaRequest'->new($_) } @$_ ] }; | ||
| 282 | |||
| 283 | declare 'MapStringGetDatasetSchemaRequest', | ||
| 284 | as HashRef[GetDatasetSchemaRequest()]; | ||
| 285 | |||
| 286 | declare 'UpdateDatasetSchemaRequest', | ||
| 287 | as InstanceOf['Google::Cloud::Documentai::V1beta3::DocumentService::UpdateDatasetSchemaRequest']; | ||
| 288 | |||
| 289 | coerce 'UpdateDatasetSchemaRequest', | ||
| 290 | from HashRef, via { 'Google::Cloud::Documentai::V1beta3::DocumentService::UpdateDatasetSchemaRequest'->new($_) }; | ||
| 291 | |||
| 292 | declare 'RepeatedUpdateDatasetSchemaRequest', | ||
| 293 | as ArrayRef[UpdateDatasetSchemaRequest()]; | ||
| 294 | |||
| 295 | coerce 'RepeatedUpdateDatasetSchemaRequest', | ||
| 296 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Documentai::V1beta3::DocumentService::UpdateDatasetSchemaRequest'->new($_) } @$_ ] }; | ||
| 297 | |||
| 298 | declare 'MapStringUpdateDatasetSchemaRequest', | ||
| 299 | as HashRef[UpdateDatasetSchemaRequest()]; | ||
| 300 | |||
| 301 | declare 'DocumentPageRange', | ||
| 302 | as InstanceOf['Google::Cloud::Documentai::V1beta3::DocumentService::DocumentPageRange']; | ||
| 303 | |||
| 304 | coerce 'DocumentPageRange', | ||
| 305 | from HashRef, via { 'Google::Cloud::Documentai::V1beta3::DocumentService::DocumentPageRange'->new($_) }; | ||
| 306 | |||
| 307 | declare 'RepeatedDocumentPageRange', | ||
| 308 | as ArrayRef[DocumentPageRange()]; | ||
| 309 | |||
| 310 | coerce 'RepeatedDocumentPageRange', | ||
| 311 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Documentai::V1beta3::DocumentService::DocumentPageRange'->new($_) } @$_ ] }; | ||
| 312 | |||
| 313 | declare 'MapStringDocumentPageRange', | ||
| 314 | as HashRef[DocumentPageRange()]; | ||
| 315 | |||
| 316 | declare 'DocumentMetadata', | ||
| 317 | as InstanceOf['Google::Cloud::Documentai::V1beta3::DocumentService::DocumentMetadata']; | ||
| 318 | |||
| 319 | coerce 'DocumentMetadata', | ||
| 320 | from HashRef, via { 'Google::Cloud::Documentai::V1beta3::DocumentService::DocumentMetadata'->new($_) }; | ||
| 321 | |||
| 322 | declare 'RepeatedDocumentMetadata', | ||
| 323 | as ArrayRef[DocumentMetadata()]; | ||
| 324 | |||
| 325 | coerce 'RepeatedDocumentMetadata', | ||
| 326 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Documentai::V1beta3::DocumentService::DocumentMetadata'->new($_) } @$_ ] }; | ||
| 327 | |||
| 328 | declare 'MapStringDocumentMetadata', | ||
| 329 | as HashRef[DocumentMetadata()]; | ||
| 330 | |||
| 331 | 1; | ||
| 332 | |||
| 333 | __END__ |