| 1 | package Google::Cloud::Automl::V1::Translation::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 'TranslationDatasetMetadata', | ||
| 11 | as InstanceOf['Google::Cloud::Automl::V1::Translation::TranslationDatasetMetadata']; | ||
| 12 | |||
| 13 | coerce 'TranslationDatasetMetadata', | ||
| 14 | from HashRef, via { 'Google::Cloud::Automl::V1::Translation::TranslationDatasetMetadata'->new($_) }; | ||
| 15 | |||
| 16 | declare 'RepeatedTranslationDatasetMetadata', | ||
| 17 | as ArrayRef[TranslationDatasetMetadata()]; | ||
| 18 | |||
| 19 | coerce 'RepeatedTranslationDatasetMetadata', | ||
| 20 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Automl::V1::Translation::TranslationDatasetMetadata'->new($_) } @$_ ] }; | ||
| 21 | |||
| 22 | declare 'MapStringTranslationDatasetMetadata', | ||
| 23 | as HashRef[TranslationDatasetMetadata()]; | ||
| 24 | |||
| 25 | declare 'TranslationEvaluationMetrics', | ||
| 26 | as InstanceOf['Google::Cloud::Automl::V1::Translation::TranslationEvaluationMetrics']; | ||
| 27 | |||
| 28 | coerce 'TranslationEvaluationMetrics', | ||
| 29 | from HashRef, via { 'Google::Cloud::Automl::V1::Translation::TranslationEvaluationMetrics'->new($_) }; | ||
| 30 | |||
| 31 | declare 'RepeatedTranslationEvaluationMetrics', | ||
| 32 | as ArrayRef[TranslationEvaluationMetrics()]; | ||
| 33 | |||
| 34 | coerce 'RepeatedTranslationEvaluationMetrics', | ||
| 35 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Automl::V1::Translation::TranslationEvaluationMetrics'->new($_) } @$_ ] }; | ||
| 36 | |||
| 37 | declare 'MapStringTranslationEvaluationMetrics', | ||
| 38 | as HashRef[TranslationEvaluationMetrics()]; | ||
| 39 | |||
| 40 | declare 'TranslationModelMetadata', | ||
| 41 | as InstanceOf['Google::Cloud::Automl::V1::Translation::TranslationModelMetadata']; | ||
| 42 | |||
| 43 | coerce 'TranslationModelMetadata', | ||
| 44 | from HashRef, via { 'Google::Cloud::Automl::V1::Translation::TranslationModelMetadata'->new($_) }; | ||
| 45 | |||
| 46 | declare 'RepeatedTranslationModelMetadata', | ||
| 47 | as ArrayRef[TranslationModelMetadata()]; | ||
| 48 | |||
| 49 | coerce 'RepeatedTranslationModelMetadata', | ||
| 50 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Automl::V1::Translation::TranslationModelMetadata'->new($_) } @$_ ] }; | ||
| 51 | |||
| 52 | declare 'MapStringTranslationModelMetadata', | ||
| 53 | as HashRef[TranslationModelMetadata()]; | ||
| 54 | |||
| 55 | declare 'TranslationAnnotation', | ||
| 56 | as InstanceOf['Google::Cloud::Automl::V1::Translation::TranslationAnnotation']; | ||
| 57 | |||
| 58 | coerce 'TranslationAnnotation', | ||
| 59 | from HashRef, via { 'Google::Cloud::Automl::V1::Translation::TranslationAnnotation'->new($_) }; | ||
| 60 | |||
| 61 | declare 'RepeatedTranslationAnnotation', | ||
| 62 | as ArrayRef[TranslationAnnotation()]; | ||
| 63 | |||
| 64 | coerce 'RepeatedTranslationAnnotation', | ||
| 65 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Automl::V1::Translation::TranslationAnnotation'->new($_) } @$_ ] }; | ||
| 66 | |||
| 67 | declare 'MapStringTranslationAnnotation', | ||
| 68 | as HashRef[TranslationAnnotation()]; | ||
| 69 | |||
| 70 | 1; | ||
| 71 | |||
| 72 | __END__ |