« Actions/Sdk/V2/Interactionmodel/Slot.pm
↑ Summary
Actions/Sdk/V2/Interactionmodel/Type/ClassReference.pm »
| 1 | package Google::Actions::Sdk::V2::Interactionmodel::Slot::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 'Slot', | ||
| 11 | as InstanceOf['Google::Actions::Sdk::V2::Interactionmodel::Slot::Slot']; | ||
| 12 | |||
| 13 | coerce 'Slot', | ||
| 14 | from HashRef, via { 'Google::Actions::Sdk::V2::Interactionmodel::Slot::Slot'->new($_) }; | ||
| 15 | |||
| 16 | declare 'RepeatedSlot', | ||
| 17 | as ArrayRef[Slot()]; | ||
| 18 | |||
| 19 | coerce 'RepeatedSlot', | ||
| 20 | from ArrayRef[HashRef], via { [ map { 'Google::Actions::Sdk::V2::Interactionmodel::Slot::Slot'->new($_) } @$_ ] }; | ||
| 21 | |||
| 22 | declare 'MapStringSlot', | ||
| 23 | as HashRef[Slot()]; | ||
| 24 | |||
| 25 | declare 'PromptSettings', | ||
| 26 | as InstanceOf['Google::Actions::Sdk::V2::Interactionmodel::Slot::Slot::PromptSettings']; | ||
| 27 | |||
| 28 | coerce 'PromptSettings', | ||
| 29 | from HashRef, via { 'Google::Actions::Sdk::V2::Interactionmodel::Slot::Slot::PromptSettings'->new($_) }; | ||
| 30 | |||
| 31 | declare 'RepeatedPromptSettings', | ||
| 32 | as ArrayRef[PromptSettings()]; | ||
| 33 | |||
| 34 | coerce 'RepeatedPromptSettings', | ||
| 35 | from ArrayRef[HashRef], via { [ map { 'Google::Actions::Sdk::V2::Interactionmodel::Slot::Slot::PromptSettings'->new($_) } @$_ ] }; | ||
| 36 | |||
| 37 | declare 'MapStringPromptSettings', | ||
| 38 | as HashRef[PromptSettings()]; | ||
| 39 | |||
| 40 | declare 'CommitBehavior', | ||
| 41 | as InstanceOf['Google::Actions::Sdk::V2::Interactionmodel::Slot::Slot::CommitBehavior']; | ||
| 42 | |||
| 43 | coerce 'CommitBehavior', | ||
| 44 | from HashRef, via { 'Google::Actions::Sdk::V2::Interactionmodel::Slot::Slot::CommitBehavior'->new($_) }; | ||
| 45 | |||
| 46 | declare 'RepeatedCommitBehavior', | ||
| 47 | as ArrayRef[CommitBehavior()]; | ||
| 48 | |||
| 49 | coerce 'RepeatedCommitBehavior', | ||
| 50 | from ArrayRef[HashRef], via { [ map { 'Google::Actions::Sdk::V2::Interactionmodel::Slot::Slot::CommitBehavior'->new($_) } @$_ ] }; | ||
| 51 | |||
| 52 | declare 'MapStringCommitBehavior', | ||
| 53 | as HashRef[CommitBehavior()]; | ||
| 54 | |||
| 55 | declare 'DefaultValue', | ||
| 56 | as InstanceOf['Google::Actions::Sdk::V2::Interactionmodel::Slot::Slot::DefaultValue']; | ||
| 57 | |||
| 58 | coerce 'DefaultValue', | ||
| 59 | from HashRef, via { 'Google::Actions::Sdk::V2::Interactionmodel::Slot::Slot::DefaultValue'->new($_) }; | ||
| 60 | |||
| 61 | declare 'RepeatedDefaultValue', | ||
| 62 | as ArrayRef[DefaultValue()]; | ||
| 63 | |||
| 64 | coerce 'RepeatedDefaultValue', | ||
| 65 | from ArrayRef[HashRef], via { [ map { 'Google::Actions::Sdk::V2::Interactionmodel::Slot::Slot::DefaultValue'->new($_) } @$_ ] }; | ||
| 66 | |||
| 67 | declare 'MapStringDefaultValue', | ||
| 68 | as HashRef[DefaultValue()]; | ||
| 69 | |||
| 70 | 1; | ||
| 71 | |||
| 72 | __END__ |