| 1 | package Google::Cloud::Ces::V1::WidgetTool::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 'WidgetTool', | ||
| 11 | as InstanceOf['Google::Cloud::Ces::V1::WidgetTool::WidgetTool']; | ||
| 12 | |||
| 13 | coerce 'WidgetTool', | ||
| 14 | from HashRef, via { 'Google::Cloud::Ces::V1::WidgetTool::WidgetTool'->new($_) }; | ||
| 15 | |||
| 16 | declare 'RepeatedWidgetTool', | ||
| 17 | as ArrayRef[WidgetTool()]; | ||
| 18 | |||
| 19 | coerce 'RepeatedWidgetTool', | ||
| 20 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Ces::V1::WidgetTool::WidgetTool'->new($_) } @$_ ] }; | ||
| 21 | |||
| 22 | declare 'MapStringWidgetTool', | ||
| 23 | as HashRef[WidgetTool()]; | ||
| 24 | |||
| 25 | declare 'WidgetType', | ||
| 26 | as (Int | Str); | ||
| 27 | |||
| 28 | declare 'TextResponseConfig', | ||
| 29 | as InstanceOf['Google::Cloud::Ces::V1::WidgetTool::WidgetTool::TextResponseConfig']; | ||
| 30 | |||
| 31 | coerce 'TextResponseConfig', | ||
| 32 | from HashRef, via { 'Google::Cloud::Ces::V1::WidgetTool::WidgetTool::TextResponseConfig'->new($_) }; | ||
| 33 | |||
| 34 | declare 'RepeatedTextResponseConfig', | ||
| 35 | as ArrayRef[TextResponseConfig()]; | ||
| 36 | |||
| 37 | coerce 'RepeatedTextResponseConfig', | ||
| 38 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Ces::V1::WidgetTool::WidgetTool::TextResponseConfig'->new($_) } @$_ ] }; | ||
| 39 | |||
| 40 | declare 'MapStringTextResponseConfig', | ||
| 41 | as HashRef[TextResponseConfig()]; | ||
| 42 | |||
| 43 | declare 'Type', | ||
| 44 | as (Int | Str); | ||
| 45 | |||
| 46 | declare 'DataMapping', | ||
| 47 | as InstanceOf['Google::Cloud::Ces::V1::WidgetTool::WidgetTool::DataMapping']; | ||
| 48 | |||
| 49 | coerce 'DataMapping', | ||
| 50 | from HashRef, via { 'Google::Cloud::Ces::V1::WidgetTool::WidgetTool::DataMapping'->new($_) }; | ||
| 51 | |||
| 52 | declare 'RepeatedDataMapping', | ||
| 53 | as ArrayRef[DataMapping()]; | ||
| 54 | |||
| 55 | coerce 'RepeatedDataMapping', | ||
| 56 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Ces::V1::WidgetTool::WidgetTool::DataMapping'->new($_) } @$_ ] }; | ||
| 57 | |||
| 58 | declare 'MapStringDataMapping', | ||
| 59 | as HashRef[DataMapping()]; | ||
| 60 | |||
| 61 | declare 'Mode', | ||
| 62 | as (Int | Str); | ||
| 63 | |||
| 64 | declare 'FieldMappingsEntry', | ||
| 65 | as InstanceOf['Google::Cloud::Ces::V1::WidgetTool::WidgetTool::DataMapping::FieldMappingsEntry']; | ||
| 66 | |||
| 67 | coerce 'FieldMappingsEntry', | ||
| 68 | from HashRef, via { 'Google::Cloud::Ces::V1::WidgetTool::WidgetTool::DataMapping::FieldMappingsEntry'->new($_) }; | ||
| 69 | |||
| 70 | declare 'RepeatedFieldMappingsEntry', | ||
| 71 | as ArrayRef[FieldMappingsEntry()]; | ||
| 72 | |||
| 73 | coerce 'RepeatedFieldMappingsEntry', | ||
| 74 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Ces::V1::WidgetTool::WidgetTool::DataMapping::FieldMappingsEntry'->new($_) } @$_ ] }; | ||
| 75 | |||
| 76 | declare 'MapStringFieldMappingsEntry', | ||
| 77 | as HashRef[FieldMappingsEntry()]; | ||
| 78 | |||
| 79 | 1; | ||
| 80 | |||
| 81 | __END__ |