| 1 | package Google::Cloud::Contentwarehouse::V1::Synonymset::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 'SynonymSet', | ||
| 11 | as InstanceOf['Google::Cloud::Contentwarehouse::V1::Synonymset::SynonymSet']; | ||
| 12 | |||
| 13 | coerce 'SynonymSet', | ||
| 14 | from HashRef, via { 'Google::Cloud::Contentwarehouse::V1::Synonymset::SynonymSet'->new($_) }; | ||
| 15 | |||
| 16 | declare 'RepeatedSynonymSet', | ||
| 17 | as ArrayRef[SynonymSet()]; | ||
| 18 | |||
| 19 | coerce 'RepeatedSynonymSet', | ||
| 20 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Contentwarehouse::V1::Synonymset::SynonymSet'->new($_) } @$_ ] }; | ||
| 21 | |||
| 22 | declare 'MapStringSynonymSet', | ||
| 23 | as HashRef[SynonymSet()]; | ||
| 24 | |||
| 25 | declare 'Synonym', | ||
| 26 | as InstanceOf['Google::Cloud::Contentwarehouse::V1::Synonymset::SynonymSet::Synonym']; | ||
| 27 | |||
| 28 | coerce 'Synonym', | ||
| 29 | from HashRef, via { 'Google::Cloud::Contentwarehouse::V1::Synonymset::SynonymSet::Synonym'->new($_) }; | ||
| 30 | |||
| 31 | declare 'RepeatedSynonym', | ||
| 32 | as ArrayRef[Synonym()]; | ||
| 33 | |||
| 34 | coerce 'RepeatedSynonym', | ||
| 35 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Contentwarehouse::V1::Synonymset::SynonymSet::Synonym'->new($_) } @$_ ] }; | ||
| 36 | |||
| 37 | declare 'MapStringSynonym', | ||
| 38 | as HashRef[Synonym()]; | ||
| 39 | |||
| 40 | 1; | ||
| 41 | |||
| 42 | __END__ |