| 1 | package Google::Actions::Sdk::V2::Conversation::Intent::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 'Intent', | ||
| 11 | as InstanceOf['Google::Actions::Sdk::V2::Conversation::Intent::Intent']; | ||
| 12 | |||
| 13 | coerce 'Intent', | ||
| 14 | from HashRef, via { 'Google::Actions::Sdk::V2::Conversation::Intent::Intent'->new($_) }; | ||
| 15 | |||
| 16 | declare 'RepeatedIntent', | ||
| 17 | as ArrayRef[Intent()]; | ||
| 18 | |||
| 19 | coerce 'RepeatedIntent', | ||
| 20 | from ArrayRef[HashRef], via { [ map { 'Google::Actions::Sdk::V2::Conversation::Intent::Intent'->new($_) } @$_ ] }; | ||
| 21 | |||
| 22 | declare 'MapStringIntent', | ||
| 23 | as HashRef[Intent()]; | ||
| 24 | |||
| 25 | declare 'ParamsEntry', | ||
| 26 | as InstanceOf['Google::Actions::Sdk::V2::Conversation::Intent::Intent::ParamsEntry']; | ||
| 27 | |||
| 28 | coerce 'ParamsEntry', | ||
| 29 | from HashRef, via { 'Google::Actions::Sdk::V2::Conversation::Intent::Intent::ParamsEntry'->new($_) }; | ||
| 30 | |||
| 31 | declare 'RepeatedParamsEntry', | ||
| 32 | as ArrayRef[ParamsEntry()]; | ||
| 33 | |||
| 34 | coerce 'RepeatedParamsEntry', | ||
| 35 | from ArrayRef[HashRef], via { [ map { 'Google::Actions::Sdk::V2::Conversation::Intent::Intent::ParamsEntry'->new($_) } @$_ ] }; | ||
| 36 | |||
| 37 | declare 'MapStringParamsEntry', | ||
| 38 | as HashRef[ParamsEntry()]; | ||
| 39 | |||
| 40 | declare 'IntentParameterValue', | ||
| 41 | as InstanceOf['Google::Actions::Sdk::V2::Conversation::Intent::IntentParameterValue']; | ||
| 42 | |||
| 43 | coerce 'IntentParameterValue', | ||
| 44 | from HashRef, via { 'Google::Actions::Sdk::V2::Conversation::Intent::IntentParameterValue'->new($_) }; | ||
| 45 | |||
| 46 | declare 'RepeatedIntentParameterValue', | ||
| 47 | as ArrayRef[IntentParameterValue()]; | ||
| 48 | |||
| 49 | coerce 'RepeatedIntentParameterValue', | ||
| 50 | from ArrayRef[HashRef], via { [ map { 'Google::Actions::Sdk::V2::Conversation::Intent::IntentParameterValue'->new($_) } @$_ ] }; | ||
| 51 | |||
| 52 | declare 'MapStringIntentParameterValue', | ||
| 53 | as HashRef[IntentParameterValue()]; | ||
| 54 | |||
| 55 | 1; | ||
| 56 | |||
| 57 | __END__ |