| 1 | package Google::Actions::Sdk::V2::ActionsTesting::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 'SendInteractionRequest', | ||
| 11 | as InstanceOf['Google::Actions::Sdk::V2::ActionsTesting::SendInteractionRequest']; | ||
| 12 | |||
| 13 | coerce 'SendInteractionRequest', | ||
| 14 | from HashRef, via { 'Google::Actions::Sdk::V2::ActionsTesting::SendInteractionRequest'->new($_) }; | ||
| 15 | |||
| 16 | declare 'RepeatedSendInteractionRequest', | ||
| 17 | as ArrayRef[SendInteractionRequest()]; | ||
| 18 | |||
| 19 | coerce 'RepeatedSendInteractionRequest', | ||
| 20 | from ArrayRef[HashRef], via { [ map { 'Google::Actions::Sdk::V2::ActionsTesting::SendInteractionRequest'->new($_) } @$_ ] }; | ||
| 21 | |||
| 22 | declare 'MapStringSendInteractionRequest', | ||
| 23 | as HashRef[SendInteractionRequest()]; | ||
| 24 | |||
| 25 | declare 'UserInput', | ||
| 26 | as InstanceOf['Google::Actions::Sdk::V2::ActionsTesting::UserInput']; | ||
| 27 | |||
| 28 | coerce 'UserInput', | ||
| 29 | from HashRef, via { 'Google::Actions::Sdk::V2::ActionsTesting::UserInput'->new($_) }; | ||
| 30 | |||
| 31 | declare 'RepeatedUserInput', | ||
| 32 | as ArrayRef[UserInput()]; | ||
| 33 | |||
| 34 | coerce 'RepeatedUserInput', | ||
| 35 | from ArrayRef[HashRef], via { [ map { 'Google::Actions::Sdk::V2::ActionsTesting::UserInput'->new($_) } @$_ ] }; | ||
| 36 | |||
| 37 | declare 'MapStringUserInput', | ||
| 38 | as HashRef[UserInput()]; | ||
| 39 | |||
| 40 | declare 'InputType', | ||
| 41 | as (Int | Str); | ||
| 42 | |||
| 43 | declare 'DeviceProperties', | ||
| 44 | as InstanceOf['Google::Actions::Sdk::V2::ActionsTesting::DeviceProperties']; | ||
| 45 | |||
| 46 | coerce 'DeviceProperties', | ||
| 47 | from HashRef, via { 'Google::Actions::Sdk::V2::ActionsTesting::DeviceProperties'->new($_) }; | ||
| 48 | |||
| 49 | declare 'RepeatedDeviceProperties', | ||
| 50 | as ArrayRef[DeviceProperties()]; | ||
| 51 | |||
| 52 | coerce 'RepeatedDeviceProperties', | ||
| 53 | from ArrayRef[HashRef], via { [ map { 'Google::Actions::Sdk::V2::ActionsTesting::DeviceProperties'->new($_) } @$_ ] }; | ||
| 54 | |||
| 55 | declare 'MapStringDeviceProperties', | ||
| 56 | as HashRef[DeviceProperties()]; | ||
| 57 | |||
| 58 | declare 'Surface', | ||
| 59 | as (Int | Str); | ||
| 60 | |||
| 61 | declare 'Location', | ||
| 62 | as InstanceOf['Google::Actions::Sdk::V2::ActionsTesting::Location']; | ||
| 63 | |||
| 64 | coerce 'Location', | ||
| 65 | from HashRef, via { 'Google::Actions::Sdk::V2::ActionsTesting::Location'->new($_) }; | ||
| 66 | |||
| 67 | declare 'RepeatedLocation', | ||
| 68 | as ArrayRef[Location()]; | ||
| 69 | |||
| 70 | coerce 'RepeatedLocation', | ||
| 71 | from ArrayRef[HashRef], via { [ map { 'Google::Actions::Sdk::V2::ActionsTesting::Location'->new($_) } @$_ ] }; | ||
| 72 | |||
| 73 | declare 'MapStringLocation', | ||
| 74 | as HashRef[Location()]; | ||
| 75 | |||
| 76 | declare 'SendInteractionResponse', | ||
| 77 | as InstanceOf['Google::Actions::Sdk::V2::ActionsTesting::SendInteractionResponse']; | ||
| 78 | |||
| 79 | coerce 'SendInteractionResponse', | ||
| 80 | from HashRef, via { 'Google::Actions::Sdk::V2::ActionsTesting::SendInteractionResponse'->new($_) }; | ||
| 81 | |||
| 82 | declare 'RepeatedSendInteractionResponse', | ||
| 83 | as ArrayRef[SendInteractionResponse()]; | ||
| 84 | |||
| 85 | coerce 'RepeatedSendInteractionResponse', | ||
| 86 | from ArrayRef[HashRef], via { [ map { 'Google::Actions::Sdk::V2::ActionsTesting::SendInteractionResponse'->new($_) } @$_ ] }; | ||
| 87 | |||
| 88 | declare 'MapStringSendInteractionResponse', | ||
| 89 | as HashRef[SendInteractionResponse()]; | ||
| 90 | |||
| 91 | declare 'Output', | ||
| 92 | as InstanceOf['Google::Actions::Sdk::V2::ActionsTesting::Output']; | ||
| 93 | |||
| 94 | coerce 'Output', | ||
| 95 | from HashRef, via { 'Google::Actions::Sdk::V2::ActionsTesting::Output'->new($_) }; | ||
| 96 | |||
| 97 | declare 'RepeatedOutput', | ||
| 98 | as ArrayRef[Output()]; | ||
| 99 | |||
| 100 | coerce 'RepeatedOutput', | ||
| 101 | from ArrayRef[HashRef], via { [ map { 'Google::Actions::Sdk::V2::ActionsTesting::Output'->new($_) } @$_ ] }; | ||
| 102 | |||
| 103 | declare 'MapStringOutput', | ||
| 104 | as HashRef[Output()]; | ||
| 105 | |||
| 106 | declare 'Diagnostics', | ||
| 107 | as InstanceOf['Google::Actions::Sdk::V2::ActionsTesting::Diagnostics']; | ||
| 108 | |||
| 109 | coerce 'Diagnostics', | ||
| 110 | from HashRef, via { 'Google::Actions::Sdk::V2::ActionsTesting::Diagnostics'->new($_) }; | ||
| 111 | |||
| 112 | declare 'RepeatedDiagnostics', | ||
| 113 | as ArrayRef[Diagnostics()]; | ||
| 114 | |||
| 115 | coerce 'RepeatedDiagnostics', | ||
| 116 | from ArrayRef[HashRef], via { [ map { 'Google::Actions::Sdk::V2::ActionsTesting::Diagnostics'->new($_) } @$_ ] }; | ||
| 117 | |||
| 118 | declare 'MapStringDiagnostics', | ||
| 119 | as HashRef[Diagnostics()]; | ||
| 120 | |||
| 121 | declare 'MatchIntentsRequest', | ||
| 122 | as InstanceOf['Google::Actions::Sdk::V2::ActionsTesting::MatchIntentsRequest']; | ||
| 123 | |||
| 124 | coerce 'MatchIntentsRequest', | ||
| 125 | from HashRef, via { 'Google::Actions::Sdk::V2::ActionsTesting::MatchIntentsRequest'->new($_) }; | ||
| 126 | |||
| 127 | declare 'RepeatedMatchIntentsRequest', | ||
| 128 | as ArrayRef[MatchIntentsRequest()]; | ||
| 129 | |||
| 130 | coerce 'RepeatedMatchIntentsRequest', | ||
| 131 | from ArrayRef[HashRef], via { [ map { 'Google::Actions::Sdk::V2::ActionsTesting::MatchIntentsRequest'->new($_) } @$_ ] }; | ||
| 132 | |||
| 133 | declare 'MapStringMatchIntentsRequest', | ||
| 134 | as HashRef[MatchIntentsRequest()]; | ||
| 135 | |||
| 136 | declare 'MatchIntentsResponse', | ||
| 137 | as InstanceOf['Google::Actions::Sdk::V2::ActionsTesting::MatchIntentsResponse']; | ||
| 138 | |||
| 139 | coerce 'MatchIntentsResponse', | ||
| 140 | from HashRef, via { 'Google::Actions::Sdk::V2::ActionsTesting::MatchIntentsResponse'->new($_) }; | ||
| 141 | |||
| 142 | declare 'RepeatedMatchIntentsResponse', | ||
| 143 | as ArrayRef[MatchIntentsResponse()]; | ||
| 144 | |||
| 145 | coerce 'RepeatedMatchIntentsResponse', | ||
| 146 | from ArrayRef[HashRef], via { [ map { 'Google::Actions::Sdk::V2::ActionsTesting::MatchIntentsResponse'->new($_) } @$_ ] }; | ||
| 147 | |||
| 148 | declare 'MapStringMatchIntentsResponse', | ||
| 149 | as HashRef[MatchIntentsResponse()]; | ||
| 150 | |||
| 151 | declare 'SetWebAndAppActivityControlRequest', | ||
| 152 | as InstanceOf['Google::Actions::Sdk::V2::ActionsTesting::SetWebAndAppActivityControlRequest']; | ||
| 153 | |||
| 154 | coerce 'SetWebAndAppActivityControlRequest', | ||
| 155 | from HashRef, via { 'Google::Actions::Sdk::V2::ActionsTesting::SetWebAndAppActivityControlRequest'->new($_) }; | ||
| 156 | |||
| 157 | declare 'RepeatedSetWebAndAppActivityControlRequest', | ||
| 158 | as ArrayRef[SetWebAndAppActivityControlRequest()]; | ||
| 159 | |||
| 160 | coerce 'RepeatedSetWebAndAppActivityControlRequest', | ||
| 161 | from ArrayRef[HashRef], via { [ map { 'Google::Actions::Sdk::V2::ActionsTesting::SetWebAndAppActivityControlRequest'->new($_) } @$_ ] }; | ||
| 162 | |||
| 163 | declare 'MapStringSetWebAndAppActivityControlRequest', | ||
| 164 | as HashRef[SetWebAndAppActivityControlRequest()]; | ||
| 165 | |||
| 166 | 1; | ||
| 167 | |||
| 168 | __END__ |