« Actions/Sdk/V2/Interactionmodel/Prompt/StaticTablePrompt.pm
↑ Summary
Actions/Sdk/V2/Interactionmodel/Prompt/Suggestion.pm »
| 1 | package Google::Actions::Sdk::V2::Interactionmodel::Prompt::StaticTablePrompt::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 'StaticTablePrompt', | ||
| 11 | as InstanceOf['Google::Actions::Sdk::V2::Interactionmodel::Prompt::StaticTablePrompt::StaticTablePrompt']; | ||
| 12 | |||
| 13 | coerce 'StaticTablePrompt', | ||
| 14 | from HashRef, via { 'Google::Actions::Sdk::V2::Interactionmodel::Prompt::StaticTablePrompt::StaticTablePrompt'->new($_) }; | ||
| 15 | |||
| 16 | declare 'RepeatedStaticTablePrompt', | ||
| 17 | as ArrayRef[StaticTablePrompt()]; | ||
| 18 | |||
| 19 | coerce 'RepeatedStaticTablePrompt', | ||
| 20 | from ArrayRef[HashRef], via { [ map { 'Google::Actions::Sdk::V2::Interactionmodel::Prompt::StaticTablePrompt::StaticTablePrompt'->new($_) } @$_ ] }; | ||
| 21 | |||
| 22 | declare 'MapStringStaticTablePrompt', | ||
| 23 | as HashRef[StaticTablePrompt()]; | ||
| 24 | |||
| 25 | declare 'TableColumn', | ||
| 26 | as InstanceOf['Google::Actions::Sdk::V2::Interactionmodel::Prompt::StaticTablePrompt::TableColumn']; | ||
| 27 | |||
| 28 | coerce 'TableColumn', | ||
| 29 | from HashRef, via { 'Google::Actions::Sdk::V2::Interactionmodel::Prompt::StaticTablePrompt::TableColumn'->new($_) }; | ||
| 30 | |||
| 31 | declare 'RepeatedTableColumn', | ||
| 32 | as ArrayRef[TableColumn()]; | ||
| 33 | |||
| 34 | coerce 'RepeatedTableColumn', | ||
| 35 | from ArrayRef[HashRef], via { [ map { 'Google::Actions::Sdk::V2::Interactionmodel::Prompt::StaticTablePrompt::TableColumn'->new($_) } @$_ ] }; | ||
| 36 | |||
| 37 | declare 'MapStringTableColumn', | ||
| 38 | as HashRef[TableColumn()]; | ||
| 39 | |||
| 40 | declare 'HorizontalAlignment', | ||
| 41 | as (Int | Str); | ||
| 42 | |||
| 43 | declare 'TableCell', | ||
| 44 | as InstanceOf['Google::Actions::Sdk::V2::Interactionmodel::Prompt::StaticTablePrompt::TableCell']; | ||
| 45 | |||
| 46 | coerce 'TableCell', | ||
| 47 | from HashRef, via { 'Google::Actions::Sdk::V2::Interactionmodel::Prompt::StaticTablePrompt::TableCell'->new($_) }; | ||
| 48 | |||
| 49 | declare 'RepeatedTableCell', | ||
| 50 | as ArrayRef[TableCell()]; | ||
| 51 | |||
| 52 | coerce 'RepeatedTableCell', | ||
| 53 | from ArrayRef[HashRef], via { [ map { 'Google::Actions::Sdk::V2::Interactionmodel::Prompt::StaticTablePrompt::TableCell'->new($_) } @$_ ] }; | ||
| 54 | |||
| 55 | declare 'MapStringTableCell', | ||
| 56 | as HashRef[TableCell()]; | ||
| 57 | |||
| 58 | declare 'TableRow', | ||
| 59 | as InstanceOf['Google::Actions::Sdk::V2::Interactionmodel::Prompt::StaticTablePrompt::TableRow']; | ||
| 60 | |||
| 61 | coerce 'TableRow', | ||
| 62 | from HashRef, via { 'Google::Actions::Sdk::V2::Interactionmodel::Prompt::StaticTablePrompt::TableRow'->new($_) }; | ||
| 63 | |||
| 64 | declare 'RepeatedTableRow', | ||
| 65 | as ArrayRef[TableRow()]; | ||
| 66 | |||
| 67 | coerce 'RepeatedTableRow', | ||
| 68 | from ArrayRef[HashRef], via { [ map { 'Google::Actions::Sdk::V2::Interactionmodel::Prompt::StaticTablePrompt::TableRow'->new($_) } @$_ ] }; | ||
| 69 | |||
| 70 | declare 'MapStringTableRow', | ||
| 71 | as HashRef[TableRow()]; | ||
| 72 | |||
| 73 | 1; | ||
| 74 | |||
| 75 | __END__ |