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