| 1 | package Google::Cloud::Translation::V3::AutomlTranslation::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 'ImportDataRequest', | ||
| 11 | as InstanceOf['Google::Cloud::Translation::V3::AutomlTranslation::ImportDataRequest']; | ||
| 12 | |||
| 13 | coerce 'ImportDataRequest', | ||
| 14 | from HashRef, via { 'Google::Cloud::Translation::V3::AutomlTranslation::ImportDataRequest'->new($_) }; | ||
| 15 | |||
| 16 | declare 'RepeatedImportDataRequest', | ||
| 17 | as ArrayRef[ImportDataRequest()]; | ||
| 18 | |||
| 19 | coerce 'RepeatedImportDataRequest', | ||
| 20 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Translation::V3::AutomlTranslation::ImportDataRequest'->new($_) } @$_ ] }; | ||
| 21 | |||
| 22 | declare 'MapStringImportDataRequest', | ||
| 23 | as HashRef[ImportDataRequest()]; | ||
| 24 | |||
| 25 | declare 'DatasetInputConfig', | ||
| 26 | as InstanceOf['Google::Cloud::Translation::V3::AutomlTranslation::DatasetInputConfig']; | ||
| 27 | |||
| 28 | coerce 'DatasetInputConfig', | ||
| 29 | from HashRef, via { 'Google::Cloud::Translation::V3::AutomlTranslation::DatasetInputConfig'->new($_) }; | ||
| 30 | |||
| 31 | declare 'RepeatedDatasetInputConfig', | ||
| 32 | as ArrayRef[DatasetInputConfig()]; | ||
| 33 | |||
| 34 | coerce 'RepeatedDatasetInputConfig', | ||
| 35 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Translation::V3::AutomlTranslation::DatasetInputConfig'->new($_) } @$_ ] }; | ||
| 36 | |||
| 37 | declare 'MapStringDatasetInputConfig', | ||
| 38 | as HashRef[DatasetInputConfig()]; | ||
| 39 | |||
| 40 | declare 'InputFile', | ||
| 41 | as InstanceOf['Google::Cloud::Translation::V3::AutomlTranslation::DatasetInputConfig::InputFile']; | ||
| 42 | |||
| 43 | coerce 'InputFile', | ||
| 44 | from HashRef, via { 'Google::Cloud::Translation::V3::AutomlTranslation::DatasetInputConfig::InputFile'->new($_) }; | ||
| 45 | |||
| 46 | declare 'RepeatedInputFile', | ||
| 47 | as ArrayRef[InputFile()]; | ||
| 48 | |||
| 49 | coerce 'RepeatedInputFile', | ||
| 50 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Translation::V3::AutomlTranslation::DatasetInputConfig::InputFile'->new($_) } @$_ ] }; | ||
| 51 | |||
| 52 | declare 'MapStringInputFile', | ||
| 53 | as HashRef[InputFile()]; | ||
| 54 | |||
| 55 | declare 'ImportDataMetadata', | ||
| 56 | as InstanceOf['Google::Cloud::Translation::V3::AutomlTranslation::ImportDataMetadata']; | ||
| 57 | |||
| 58 | coerce 'ImportDataMetadata', | ||
| 59 | from HashRef, via { 'Google::Cloud::Translation::V3::AutomlTranslation::ImportDataMetadata'->new($_) }; | ||
| 60 | |||
| 61 | declare 'RepeatedImportDataMetadata', | ||
| 62 | as ArrayRef[ImportDataMetadata()]; | ||
| 63 | |||
| 64 | coerce 'RepeatedImportDataMetadata', | ||
| 65 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Translation::V3::AutomlTranslation::ImportDataMetadata'->new($_) } @$_ ] }; | ||
| 66 | |||
| 67 | declare 'MapStringImportDataMetadata', | ||
| 68 | as HashRef[ImportDataMetadata()]; | ||
| 69 | |||
| 70 | declare 'ExportDataRequest', | ||
| 71 | as InstanceOf['Google::Cloud::Translation::V3::AutomlTranslation::ExportDataRequest']; | ||
| 72 | |||
| 73 | coerce 'ExportDataRequest', | ||
| 74 | from HashRef, via { 'Google::Cloud::Translation::V3::AutomlTranslation::ExportDataRequest'->new($_) }; | ||
| 75 | |||
| 76 | declare 'RepeatedExportDataRequest', | ||
| 77 | as ArrayRef[ExportDataRequest()]; | ||
| 78 | |||
| 79 | coerce 'RepeatedExportDataRequest', | ||
| 80 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Translation::V3::AutomlTranslation::ExportDataRequest'->new($_) } @$_ ] }; | ||
| 81 | |||
| 82 | declare 'MapStringExportDataRequest', | ||
| 83 | as HashRef[ExportDataRequest()]; | ||
| 84 | |||
| 85 | declare 'DatasetOutputConfig', | ||
| 86 | as InstanceOf['Google::Cloud::Translation::V3::AutomlTranslation::DatasetOutputConfig']; | ||
| 87 | |||
| 88 | coerce 'DatasetOutputConfig', | ||
| 89 | from HashRef, via { 'Google::Cloud::Translation::V3::AutomlTranslation::DatasetOutputConfig'->new($_) }; | ||
| 90 | |||
| 91 | declare 'RepeatedDatasetOutputConfig', | ||
| 92 | as ArrayRef[DatasetOutputConfig()]; | ||
| 93 | |||
| 94 | coerce 'RepeatedDatasetOutputConfig', | ||
| 95 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Translation::V3::AutomlTranslation::DatasetOutputConfig'->new($_) } @$_ ] }; | ||
| 96 | |||
| 97 | declare 'MapStringDatasetOutputConfig', | ||
| 98 | as HashRef[DatasetOutputConfig()]; | ||
| 99 | |||
| 100 | declare 'ExportDataMetadata', | ||
| 101 | as InstanceOf['Google::Cloud::Translation::V3::AutomlTranslation::ExportDataMetadata']; | ||
| 102 | |||
| 103 | coerce 'ExportDataMetadata', | ||
| 104 | from HashRef, via { 'Google::Cloud::Translation::V3::AutomlTranslation::ExportDataMetadata'->new($_) }; | ||
| 105 | |||
| 106 | declare 'RepeatedExportDataMetadata', | ||
| 107 | as ArrayRef[ExportDataMetadata()]; | ||
| 108 | |||
| 109 | coerce 'RepeatedExportDataMetadata', | ||
| 110 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Translation::V3::AutomlTranslation::ExportDataMetadata'->new($_) } @$_ ] }; | ||
| 111 | |||
| 112 | declare 'MapStringExportDataMetadata', | ||
| 113 | as HashRef[ExportDataMetadata()]; | ||
| 114 | |||
| 115 | declare 'DeleteDatasetRequest', | ||
| 116 | as InstanceOf['Google::Cloud::Translation::V3::AutomlTranslation::DeleteDatasetRequest']; | ||
| 117 | |||
| 118 | coerce 'DeleteDatasetRequest', | ||
| 119 | from HashRef, via { 'Google::Cloud::Translation::V3::AutomlTranslation::DeleteDatasetRequest'->new($_) }; | ||
| 120 | |||
| 121 | declare 'RepeatedDeleteDatasetRequest', | ||
| 122 | as ArrayRef[DeleteDatasetRequest()]; | ||
| 123 | |||
| 124 | coerce 'RepeatedDeleteDatasetRequest', | ||
| 125 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Translation::V3::AutomlTranslation::DeleteDatasetRequest'->new($_) } @$_ ] }; | ||
| 126 | |||
| 127 | declare 'MapStringDeleteDatasetRequest', | ||
| 128 | as HashRef[DeleteDatasetRequest()]; | ||
| 129 | |||
| 130 | declare 'DeleteDatasetMetadata', | ||
| 131 | as InstanceOf['Google::Cloud::Translation::V3::AutomlTranslation::DeleteDatasetMetadata']; | ||
| 132 | |||
| 133 | coerce 'DeleteDatasetMetadata', | ||
| 134 | from HashRef, via { 'Google::Cloud::Translation::V3::AutomlTranslation::DeleteDatasetMetadata'->new($_) }; | ||
| 135 | |||
| 136 | declare 'RepeatedDeleteDatasetMetadata', | ||
| 137 | as ArrayRef[DeleteDatasetMetadata()]; | ||
| 138 | |||
| 139 | coerce 'RepeatedDeleteDatasetMetadata', | ||
| 140 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Translation::V3::AutomlTranslation::DeleteDatasetMetadata'->new($_) } @$_ ] }; | ||
| 141 | |||
| 142 | declare 'MapStringDeleteDatasetMetadata', | ||
| 143 | as HashRef[DeleteDatasetMetadata()]; | ||
| 144 | |||
| 145 | declare 'GetDatasetRequest', | ||
| 146 | as InstanceOf['Google::Cloud::Translation::V3::AutomlTranslation::GetDatasetRequest']; | ||
| 147 | |||
| 148 | coerce 'GetDatasetRequest', | ||
| 149 | from HashRef, via { 'Google::Cloud::Translation::V3::AutomlTranslation::GetDatasetRequest'->new($_) }; | ||
| 150 | |||
| 151 | declare 'RepeatedGetDatasetRequest', | ||
| 152 | as ArrayRef[GetDatasetRequest()]; | ||
| 153 | |||
| 154 | coerce 'RepeatedGetDatasetRequest', | ||
| 155 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Translation::V3::AutomlTranslation::GetDatasetRequest'->new($_) } @$_ ] }; | ||
| 156 | |||
| 157 | declare 'MapStringGetDatasetRequest', | ||
| 158 | as HashRef[GetDatasetRequest()]; | ||
| 159 | |||
| 160 | declare 'ListDatasetsRequest', | ||
| 161 | as InstanceOf['Google::Cloud::Translation::V3::AutomlTranslation::ListDatasetsRequest']; | ||
| 162 | |||
| 163 | coerce 'ListDatasetsRequest', | ||
| 164 | from HashRef, via { 'Google::Cloud::Translation::V3::AutomlTranslation::ListDatasetsRequest'->new($_) }; | ||
| 165 | |||
| 166 | declare 'RepeatedListDatasetsRequest', | ||
| 167 | as ArrayRef[ListDatasetsRequest()]; | ||
| 168 | |||
| 169 | coerce 'RepeatedListDatasetsRequest', | ||
| 170 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Translation::V3::AutomlTranslation::ListDatasetsRequest'->new($_) } @$_ ] }; | ||
| 171 | |||
| 172 | declare 'MapStringListDatasetsRequest', | ||
| 173 | as HashRef[ListDatasetsRequest()]; | ||
| 174 | |||
| 175 | declare 'ListDatasetsResponse', | ||
| 176 | as InstanceOf['Google::Cloud::Translation::V3::AutomlTranslation::ListDatasetsResponse']; | ||
| 177 | |||
| 178 | coerce 'ListDatasetsResponse', | ||
| 179 | from HashRef, via { 'Google::Cloud::Translation::V3::AutomlTranslation::ListDatasetsResponse'->new($_) }; | ||
| 180 | |||
| 181 | declare 'RepeatedListDatasetsResponse', | ||
| 182 | as ArrayRef[ListDatasetsResponse()]; | ||
| 183 | |||
| 184 | coerce 'RepeatedListDatasetsResponse', | ||
| 185 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Translation::V3::AutomlTranslation::ListDatasetsResponse'->new($_) } @$_ ] }; | ||
| 186 | |||
| 187 | declare 'MapStringListDatasetsResponse', | ||
| 188 | as HashRef[ListDatasetsResponse()]; | ||
| 189 | |||
| 190 | declare 'CreateDatasetRequest', | ||
| 191 | as InstanceOf['Google::Cloud::Translation::V3::AutomlTranslation::CreateDatasetRequest']; | ||
| 192 | |||
| 193 | coerce 'CreateDatasetRequest', | ||
| 194 | from HashRef, via { 'Google::Cloud::Translation::V3::AutomlTranslation::CreateDatasetRequest'->new($_) }; | ||
| 195 | |||
| 196 | declare 'RepeatedCreateDatasetRequest', | ||
| 197 | as ArrayRef[CreateDatasetRequest()]; | ||
| 198 | |||
| 199 | coerce 'RepeatedCreateDatasetRequest', | ||
| 200 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Translation::V3::AutomlTranslation::CreateDatasetRequest'->new($_) } @$_ ] }; | ||
| 201 | |||
| 202 | declare 'MapStringCreateDatasetRequest', | ||
| 203 | as HashRef[CreateDatasetRequest()]; | ||
| 204 | |||
| 205 | declare 'CreateDatasetMetadata', | ||
| 206 | as InstanceOf['Google::Cloud::Translation::V3::AutomlTranslation::CreateDatasetMetadata']; | ||
| 207 | |||
| 208 | coerce 'CreateDatasetMetadata', | ||
| 209 | from HashRef, via { 'Google::Cloud::Translation::V3::AutomlTranslation::CreateDatasetMetadata'->new($_) }; | ||
| 210 | |||
| 211 | declare 'RepeatedCreateDatasetMetadata', | ||
| 212 | as ArrayRef[CreateDatasetMetadata()]; | ||
| 213 | |||
| 214 | coerce 'RepeatedCreateDatasetMetadata', | ||
| 215 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Translation::V3::AutomlTranslation::CreateDatasetMetadata'->new($_) } @$_ ] }; | ||
| 216 | |||
| 217 | declare 'MapStringCreateDatasetMetadata', | ||
| 218 | as HashRef[CreateDatasetMetadata()]; | ||
| 219 | |||
| 220 | declare 'ListExamplesRequest', | ||
| 221 | as InstanceOf['Google::Cloud::Translation::V3::AutomlTranslation::ListExamplesRequest']; | ||
| 222 | |||
| 223 | coerce 'ListExamplesRequest', | ||
| 224 | from HashRef, via { 'Google::Cloud::Translation::V3::AutomlTranslation::ListExamplesRequest'->new($_) }; | ||
| 225 | |||
| 226 | declare 'RepeatedListExamplesRequest', | ||
| 227 | as ArrayRef[ListExamplesRequest()]; | ||
| 228 | |||
| 229 | coerce 'RepeatedListExamplesRequest', | ||
| 230 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Translation::V3::AutomlTranslation::ListExamplesRequest'->new($_) } @$_ ] }; | ||
| 231 | |||
| 232 | declare 'MapStringListExamplesRequest', | ||
| 233 | as HashRef[ListExamplesRequest()]; | ||
| 234 | |||
| 235 | declare 'ListExamplesResponse', | ||
| 236 | as InstanceOf['Google::Cloud::Translation::V3::AutomlTranslation::ListExamplesResponse']; | ||
| 237 | |||
| 238 | coerce 'ListExamplesResponse', | ||
| 239 | from HashRef, via { 'Google::Cloud::Translation::V3::AutomlTranslation::ListExamplesResponse'->new($_) }; | ||
| 240 | |||
| 241 | declare 'RepeatedListExamplesResponse', | ||
| 242 | as ArrayRef[ListExamplesResponse()]; | ||
| 243 | |||
| 244 | coerce 'RepeatedListExamplesResponse', | ||
| 245 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Translation::V3::AutomlTranslation::ListExamplesResponse'->new($_) } @$_ ] }; | ||
| 246 | |||
| 247 | declare 'MapStringListExamplesResponse', | ||
| 248 | as HashRef[ListExamplesResponse()]; | ||
| 249 | |||
| 250 | declare 'Example', | ||
| 251 | as InstanceOf['Google::Cloud::Translation::V3::AutomlTranslation::Example']; | ||
| 252 | |||
| 253 | coerce 'Example', | ||
| 254 | from HashRef, via { 'Google::Cloud::Translation::V3::AutomlTranslation::Example'->new($_) }; | ||
| 255 | |||
| 256 | declare 'RepeatedExample', | ||
| 257 | as ArrayRef[Example()]; | ||
| 258 | |||
| 259 | coerce 'RepeatedExample', | ||
| 260 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Translation::V3::AutomlTranslation::Example'->new($_) } @$_ ] }; | ||
| 261 | |||
| 262 | declare 'MapStringExample', | ||
| 263 | as HashRef[Example()]; | ||
| 264 | |||
| 265 | declare 'BatchTransferResourcesResponse', | ||
| 266 | as InstanceOf['Google::Cloud::Translation::V3::AutomlTranslation::BatchTransferResourcesResponse']; | ||
| 267 | |||
| 268 | coerce 'BatchTransferResourcesResponse', | ||
| 269 | from HashRef, via { 'Google::Cloud::Translation::V3::AutomlTranslation::BatchTransferResourcesResponse'->new($_) }; | ||
| 270 | |||
| 271 | declare 'RepeatedBatchTransferResourcesResponse', | ||
| 272 | as ArrayRef[BatchTransferResourcesResponse()]; | ||
| 273 | |||
| 274 | coerce 'RepeatedBatchTransferResourcesResponse', | ||
| 275 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Translation::V3::AutomlTranslation::BatchTransferResourcesResponse'->new($_) } @$_ ] }; | ||
| 276 | |||
| 277 | declare 'MapStringBatchTransferResourcesResponse', | ||
| 278 | as HashRef[BatchTransferResourcesResponse()]; | ||
| 279 | |||
| 280 | declare 'TransferResourceResponse', | ||
| 281 | as InstanceOf['Google::Cloud::Translation::V3::AutomlTranslation::BatchTransferResourcesResponse::TransferResourceResponse']; | ||
| 282 | |||
| 283 | coerce 'TransferResourceResponse', | ||
| 284 | from HashRef, via { 'Google::Cloud::Translation::V3::AutomlTranslation::BatchTransferResourcesResponse::TransferResourceResponse'->new($_) }; | ||
| 285 | |||
| 286 | declare 'RepeatedTransferResourceResponse', | ||
| 287 | as ArrayRef[TransferResourceResponse()]; | ||
| 288 | |||
| 289 | coerce 'RepeatedTransferResourceResponse', | ||
| 290 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Translation::V3::AutomlTranslation::BatchTransferResourcesResponse::TransferResourceResponse'->new($_) } @$_ ] }; | ||
| 291 | |||
| 292 | declare 'MapStringTransferResourceResponse', | ||
| 293 | as HashRef[TransferResourceResponse()]; | ||
| 294 | |||
| 295 | declare 'Dataset', | ||
| 296 | as InstanceOf['Google::Cloud::Translation::V3::AutomlTranslation::Dataset']; | ||
| 297 | |||
| 298 | coerce 'Dataset', | ||
| 299 | from HashRef, via { 'Google::Cloud::Translation::V3::AutomlTranslation::Dataset'->new($_) }; | ||
| 300 | |||
| 301 | declare 'RepeatedDataset', | ||
| 302 | as ArrayRef[Dataset()]; | ||
| 303 | |||
| 304 | coerce 'RepeatedDataset', | ||
| 305 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Translation::V3::AutomlTranslation::Dataset'->new($_) } @$_ ] }; | ||
| 306 | |||
| 307 | declare 'MapStringDataset', | ||
| 308 | as HashRef[Dataset()]; | ||
| 309 | |||
| 310 | declare 'CreateModelRequest', | ||
| 311 | as InstanceOf['Google::Cloud::Translation::V3::AutomlTranslation::CreateModelRequest']; | ||
| 312 | |||
| 313 | coerce 'CreateModelRequest', | ||
| 314 | from HashRef, via { 'Google::Cloud::Translation::V3::AutomlTranslation::CreateModelRequest'->new($_) }; | ||
| 315 | |||
| 316 | declare 'RepeatedCreateModelRequest', | ||
| 317 | as ArrayRef[CreateModelRequest()]; | ||
| 318 | |||
| 319 | coerce 'RepeatedCreateModelRequest', | ||
| 320 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Translation::V3::AutomlTranslation::CreateModelRequest'->new($_) } @$_ ] }; | ||
| 321 | |||
| 322 | declare 'MapStringCreateModelRequest', | ||
| 323 | as HashRef[CreateModelRequest()]; | ||
| 324 | |||
| 325 | declare 'CreateModelMetadata', | ||
| 326 | as InstanceOf['Google::Cloud::Translation::V3::AutomlTranslation::CreateModelMetadata']; | ||
| 327 | |||
| 328 | coerce 'CreateModelMetadata', | ||
| 329 | from HashRef, via { 'Google::Cloud::Translation::V3::AutomlTranslation::CreateModelMetadata'->new($_) }; | ||
| 330 | |||
| 331 | declare 'RepeatedCreateModelMetadata', | ||
| 332 | as ArrayRef[CreateModelMetadata()]; | ||
| 333 | |||
| 334 | coerce 'RepeatedCreateModelMetadata', | ||
| 335 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Translation::V3::AutomlTranslation::CreateModelMetadata'->new($_) } @$_ ] }; | ||
| 336 | |||
| 337 | declare 'MapStringCreateModelMetadata', | ||
| 338 | as HashRef[CreateModelMetadata()]; | ||
| 339 | |||
| 340 | declare 'ListModelsRequest', | ||
| 341 | as InstanceOf['Google::Cloud::Translation::V3::AutomlTranslation::ListModelsRequest']; | ||
| 342 | |||
| 343 | coerce 'ListModelsRequest', | ||
| 344 | from HashRef, via { 'Google::Cloud::Translation::V3::AutomlTranslation::ListModelsRequest'->new($_) }; | ||
| 345 | |||
| 346 | declare 'RepeatedListModelsRequest', | ||
| 347 | as ArrayRef[ListModelsRequest()]; | ||
| 348 | |||
| 349 | coerce 'RepeatedListModelsRequest', | ||
| 350 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Translation::V3::AutomlTranslation::ListModelsRequest'->new($_) } @$_ ] }; | ||
| 351 | |||
| 352 | declare 'MapStringListModelsRequest', | ||
| 353 | as HashRef[ListModelsRequest()]; | ||
| 354 | |||
| 355 | declare 'ListModelsResponse', | ||
| 356 | as InstanceOf['Google::Cloud::Translation::V3::AutomlTranslation::ListModelsResponse']; | ||
| 357 | |||
| 358 | coerce 'ListModelsResponse', | ||
| 359 | from HashRef, via { 'Google::Cloud::Translation::V3::AutomlTranslation::ListModelsResponse'->new($_) }; | ||
| 360 | |||
| 361 | declare 'RepeatedListModelsResponse', | ||
| 362 | as ArrayRef[ListModelsResponse()]; | ||
| 363 | |||
| 364 | coerce 'RepeatedListModelsResponse', | ||
| 365 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Translation::V3::AutomlTranslation::ListModelsResponse'->new($_) } @$_ ] }; | ||
| 366 | |||
| 367 | declare 'MapStringListModelsResponse', | ||
| 368 | as HashRef[ListModelsResponse()]; | ||
| 369 | |||
| 370 | declare 'GetModelRequest', | ||
| 371 | as InstanceOf['Google::Cloud::Translation::V3::AutomlTranslation::GetModelRequest']; | ||
| 372 | |||
| 373 | coerce 'GetModelRequest', | ||
| 374 | from HashRef, via { 'Google::Cloud::Translation::V3::AutomlTranslation::GetModelRequest'->new($_) }; | ||
| 375 | |||
| 376 | declare 'RepeatedGetModelRequest', | ||
| 377 | as ArrayRef[GetModelRequest()]; | ||
| 378 | |||
| 379 | coerce 'RepeatedGetModelRequest', | ||
| 380 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Translation::V3::AutomlTranslation::GetModelRequest'->new($_) } @$_ ] }; | ||
| 381 | |||
| 382 | declare 'MapStringGetModelRequest', | ||
| 383 | as HashRef[GetModelRequest()]; | ||
| 384 | |||
| 385 | declare 'DeleteModelRequest', | ||
| 386 | as InstanceOf['Google::Cloud::Translation::V3::AutomlTranslation::DeleteModelRequest']; | ||
| 387 | |||
| 388 | coerce 'DeleteModelRequest', | ||
| 389 | from HashRef, via { 'Google::Cloud::Translation::V3::AutomlTranslation::DeleteModelRequest'->new($_) }; | ||
| 390 | |||
| 391 | declare 'RepeatedDeleteModelRequest', | ||
| 392 | as ArrayRef[DeleteModelRequest()]; | ||
| 393 | |||
| 394 | coerce 'RepeatedDeleteModelRequest', | ||
| 395 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Translation::V3::AutomlTranslation::DeleteModelRequest'->new($_) } @$_ ] }; | ||
| 396 | |||
| 397 | declare 'MapStringDeleteModelRequest', | ||
| 398 | as HashRef[DeleteModelRequest()]; | ||
| 399 | |||
| 400 | declare 'DeleteModelMetadata', | ||
| 401 | as InstanceOf['Google::Cloud::Translation::V3::AutomlTranslation::DeleteModelMetadata']; | ||
| 402 | |||
| 403 | coerce 'DeleteModelMetadata', | ||
| 404 | from HashRef, via { 'Google::Cloud::Translation::V3::AutomlTranslation::DeleteModelMetadata'->new($_) }; | ||
| 405 | |||
| 406 | declare 'RepeatedDeleteModelMetadata', | ||
| 407 | as ArrayRef[DeleteModelMetadata()]; | ||
| 408 | |||
| 409 | coerce 'RepeatedDeleteModelMetadata', | ||
| 410 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Translation::V3::AutomlTranslation::DeleteModelMetadata'->new($_) } @$_ ] }; | ||
| 411 | |||
| 412 | declare 'MapStringDeleteModelMetadata', | ||
| 413 | as HashRef[DeleteModelMetadata()]; | ||
| 414 | |||
| 415 | declare 'Model', | ||
| 416 | as InstanceOf['Google::Cloud::Translation::V3::AutomlTranslation::Model']; | ||
| 417 | |||
| 418 | coerce 'Model', | ||
| 419 | from HashRef, via { 'Google::Cloud::Translation::V3::AutomlTranslation::Model'->new($_) }; | ||
| 420 | |||
| 421 | declare 'RepeatedModel', | ||
| 422 | as ArrayRef[Model()]; | ||
| 423 | |||
| 424 | coerce 'RepeatedModel', | ||
| 425 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Translation::V3::AutomlTranslation::Model'->new($_) } @$_ ] }; | ||
| 426 | |||
| 427 | declare 'MapStringModel', | ||
| 428 | as HashRef[Model()]; | ||
| 429 | |||
| 430 | 1; | ||
| 431 | |||
| 432 | __END__ |