« Actions/Sdk/V2/Interactionmodel/Type/RegularExpressionType.pm
↑ Summary
Actions/Sdk/V2/Interactionmodel/Type/SynonymType.pm »
| 1 | package Google::Actions::Sdk::V2::Interactionmodel::Type::RegularExpressionType::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 'RegularExpressionType', | ||
| 11 | as InstanceOf['Google::Actions::Sdk::V2::Interactionmodel::Type::RegularExpressionType::RegularExpressionType']; | ||
| 12 | |||
| 13 | coerce 'RegularExpressionType', | ||
| 14 | from HashRef, via { 'Google::Actions::Sdk::V2::Interactionmodel::Type::RegularExpressionType::RegularExpressionType'->new($_) }; | ||
| 15 | |||
| 16 | declare 'RepeatedRegularExpressionType', | ||
| 17 | as ArrayRef[RegularExpressionType()]; | ||
| 18 | |||
| 19 | coerce 'RepeatedRegularExpressionType', | ||
| 20 | from ArrayRef[HashRef], via { [ map { 'Google::Actions::Sdk::V2::Interactionmodel::Type::RegularExpressionType::RegularExpressionType'->new($_) } @$_ ] }; | ||
| 21 | |||
| 22 | declare 'MapStringRegularExpressionType', | ||
| 23 | as HashRef[RegularExpressionType()]; | ||
| 24 | |||
| 25 | declare 'Entity', | ||
| 26 | as InstanceOf['Google::Actions::Sdk::V2::Interactionmodel::Type::RegularExpressionType::RegularExpressionType::Entity']; | ||
| 27 | |||
| 28 | coerce 'Entity', | ||
| 29 | from HashRef, via { 'Google::Actions::Sdk::V2::Interactionmodel::Type::RegularExpressionType::RegularExpressionType::Entity'->new($_) }; | ||
| 30 | |||
| 31 | declare 'RepeatedEntity', | ||
| 32 | as ArrayRef[Entity()]; | ||
| 33 | |||
| 34 | coerce 'RepeatedEntity', | ||
| 35 | from ArrayRef[HashRef], via { [ map { 'Google::Actions::Sdk::V2::Interactionmodel::Type::RegularExpressionType::RegularExpressionType::Entity'->new($_) } @$_ ] }; | ||
| 36 | |||
| 37 | declare 'MapStringEntity', | ||
| 38 | as HashRef[Entity()]; | ||
| 39 | |||
| 40 | declare 'EntitiesEntry', | ||
| 41 | as InstanceOf['Google::Actions::Sdk::V2::Interactionmodel::Type::RegularExpressionType::RegularExpressionType::EntitiesEntry']; | ||
| 42 | |||
| 43 | coerce 'EntitiesEntry', | ||
| 44 | from HashRef, via { 'Google::Actions::Sdk::V2::Interactionmodel::Type::RegularExpressionType::RegularExpressionType::EntitiesEntry'->new($_) }; | ||
| 45 | |||
| 46 | declare 'RepeatedEntitiesEntry', | ||
| 47 | as ArrayRef[EntitiesEntry()]; | ||
| 48 | |||
| 49 | coerce 'RepeatedEntitiesEntry', | ||
| 50 | from ArrayRef[HashRef], via { [ map { 'Google::Actions::Sdk::V2::Interactionmodel::Type::RegularExpressionType::RegularExpressionType::EntitiesEntry'->new($_) } @$_ ] }; | ||
| 51 | |||
| 52 | declare 'MapStringEntitiesEntry', | ||
| 53 | as HashRef[EntitiesEntry()]; | ||
| 54 | |||
| 55 | 1; | ||
| 56 | |||
| 57 | __END__ |