| 1 | package Google::Assistant::Embedded::V1alpha2::EmbeddedAssistant::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 'AssistRequest', | ||
| 11 | as InstanceOf['Google::Assistant::Embedded::V1alpha2::EmbeddedAssistant::AssistRequest']; | ||
| 12 | |||
| 13 | coerce 'AssistRequest', | ||
| 14 | from HashRef, via { 'Google::Assistant::Embedded::V1alpha2::EmbeddedAssistant::AssistRequest'->new($_) }; | ||
| 15 | |||
| 16 | declare 'RepeatedAssistRequest', | ||
| 17 | as ArrayRef[AssistRequest()]; | ||
| 18 | |||
| 19 | coerce 'RepeatedAssistRequest', | ||
| 20 | from ArrayRef[HashRef], via { [ map { 'Google::Assistant::Embedded::V1alpha2::EmbeddedAssistant::AssistRequest'->new($_) } @$_ ] }; | ||
| 21 | |||
| 22 | declare 'MapStringAssistRequest', | ||
| 23 | as HashRef[AssistRequest()]; | ||
| 24 | |||
| 25 | declare 'AssistResponse', | ||
| 26 | as InstanceOf['Google::Assistant::Embedded::V1alpha2::EmbeddedAssistant::AssistResponse']; | ||
| 27 | |||
| 28 | coerce 'AssistResponse', | ||
| 29 | from HashRef, via { 'Google::Assistant::Embedded::V1alpha2::EmbeddedAssistant::AssistResponse'->new($_) }; | ||
| 30 | |||
| 31 | declare 'RepeatedAssistResponse', | ||
| 32 | as ArrayRef[AssistResponse()]; | ||
| 33 | |||
| 34 | coerce 'RepeatedAssistResponse', | ||
| 35 | from ArrayRef[HashRef], via { [ map { 'Google::Assistant::Embedded::V1alpha2::EmbeddedAssistant::AssistResponse'->new($_) } @$_ ] }; | ||
| 36 | |||
| 37 | declare 'MapStringAssistResponse', | ||
| 38 | as HashRef[AssistResponse()]; | ||
| 39 | |||
| 40 | declare 'EventType', | ||
| 41 | as (Int | Str); | ||
| 42 | |||
| 43 | declare 'DebugInfo', | ||
| 44 | as InstanceOf['Google::Assistant::Embedded::V1alpha2::EmbeddedAssistant::DebugInfo']; | ||
| 45 | |||
| 46 | coerce 'DebugInfo', | ||
| 47 | from HashRef, via { 'Google::Assistant::Embedded::V1alpha2::EmbeddedAssistant::DebugInfo'->new($_) }; | ||
| 48 | |||
| 49 | declare 'RepeatedDebugInfo', | ||
| 50 | as ArrayRef[DebugInfo()]; | ||
| 51 | |||
| 52 | coerce 'RepeatedDebugInfo', | ||
| 53 | from ArrayRef[HashRef], via { [ map { 'Google::Assistant::Embedded::V1alpha2::EmbeddedAssistant::DebugInfo'->new($_) } @$_ ] }; | ||
| 54 | |||
| 55 | declare 'MapStringDebugInfo', | ||
| 56 | as HashRef[DebugInfo()]; | ||
| 57 | |||
| 58 | declare 'AssistConfig', | ||
| 59 | as InstanceOf['Google::Assistant::Embedded::V1alpha2::EmbeddedAssistant::AssistConfig']; | ||
| 60 | |||
| 61 | coerce 'AssistConfig', | ||
| 62 | from HashRef, via { 'Google::Assistant::Embedded::V1alpha2::EmbeddedAssistant::AssistConfig'->new($_) }; | ||
| 63 | |||
| 64 | declare 'RepeatedAssistConfig', | ||
| 65 | as ArrayRef[AssistConfig()]; | ||
| 66 | |||
| 67 | coerce 'RepeatedAssistConfig', | ||
| 68 | from ArrayRef[HashRef], via { [ map { 'Google::Assistant::Embedded::V1alpha2::EmbeddedAssistant::AssistConfig'->new($_) } @$_ ] }; | ||
| 69 | |||
| 70 | declare 'MapStringAssistConfig', | ||
| 71 | as HashRef[AssistConfig()]; | ||
| 72 | |||
| 73 | declare 'AudioInConfig', | ||
| 74 | as InstanceOf['Google::Assistant::Embedded::V1alpha2::EmbeddedAssistant::AudioInConfig']; | ||
| 75 | |||
| 76 | coerce 'AudioInConfig', | ||
| 77 | from HashRef, via { 'Google::Assistant::Embedded::V1alpha2::EmbeddedAssistant::AudioInConfig'->new($_) }; | ||
| 78 | |||
| 79 | declare 'RepeatedAudioInConfig', | ||
| 80 | as ArrayRef[AudioInConfig()]; | ||
| 81 | |||
| 82 | coerce 'RepeatedAudioInConfig', | ||
| 83 | from ArrayRef[HashRef], via { [ map { 'Google::Assistant::Embedded::V1alpha2::EmbeddedAssistant::AudioInConfig'->new($_) } @$_ ] }; | ||
| 84 | |||
| 85 | declare 'MapStringAudioInConfig', | ||
| 86 | as HashRef[AudioInConfig()]; | ||
| 87 | |||
| 88 | declare 'Encoding', | ||
| 89 | as (Int | Str); | ||
| 90 | |||
| 91 | declare 'AudioOutConfig', | ||
| 92 | as InstanceOf['Google::Assistant::Embedded::V1alpha2::EmbeddedAssistant::AudioOutConfig']; | ||
| 93 | |||
| 94 | coerce 'AudioOutConfig', | ||
| 95 | from HashRef, via { 'Google::Assistant::Embedded::V1alpha2::EmbeddedAssistant::AudioOutConfig'->new($_) }; | ||
| 96 | |||
| 97 | declare 'RepeatedAudioOutConfig', | ||
| 98 | as ArrayRef[AudioOutConfig()]; | ||
| 99 | |||
| 100 | coerce 'RepeatedAudioOutConfig', | ||
| 101 | from ArrayRef[HashRef], via { [ map { 'Google::Assistant::Embedded::V1alpha2::EmbeddedAssistant::AudioOutConfig'->new($_) } @$_ ] }; | ||
| 102 | |||
| 103 | declare 'MapStringAudioOutConfig', | ||
| 104 | as HashRef[AudioOutConfig()]; | ||
| 105 | |||
| 106 | declare 'Encoding', | ||
| 107 | as (Int | Str); | ||
| 108 | |||
| 109 | declare 'ScreenOutConfig', | ||
| 110 | as InstanceOf['Google::Assistant::Embedded::V1alpha2::EmbeddedAssistant::ScreenOutConfig']; | ||
| 111 | |||
| 112 | coerce 'ScreenOutConfig', | ||
| 113 | from HashRef, via { 'Google::Assistant::Embedded::V1alpha2::EmbeddedAssistant::ScreenOutConfig'->new($_) }; | ||
| 114 | |||
| 115 | declare 'RepeatedScreenOutConfig', | ||
| 116 | as ArrayRef[ScreenOutConfig()]; | ||
| 117 | |||
| 118 | coerce 'RepeatedScreenOutConfig', | ||
| 119 | from ArrayRef[HashRef], via { [ map { 'Google::Assistant::Embedded::V1alpha2::EmbeddedAssistant::ScreenOutConfig'->new($_) } @$_ ] }; | ||
| 120 | |||
| 121 | declare 'MapStringScreenOutConfig', | ||
| 122 | as HashRef[ScreenOutConfig()]; | ||
| 123 | |||
| 124 | declare 'ScreenMode', | ||
| 125 | as (Int | Str); | ||
| 126 | |||
| 127 | declare 'DialogStateIn', | ||
| 128 | as InstanceOf['Google::Assistant::Embedded::V1alpha2::EmbeddedAssistant::DialogStateIn']; | ||
| 129 | |||
| 130 | coerce 'DialogStateIn', | ||
| 131 | from HashRef, via { 'Google::Assistant::Embedded::V1alpha2::EmbeddedAssistant::DialogStateIn'->new($_) }; | ||
| 132 | |||
| 133 | declare 'RepeatedDialogStateIn', | ||
| 134 | as ArrayRef[DialogStateIn()]; | ||
| 135 | |||
| 136 | coerce 'RepeatedDialogStateIn', | ||
| 137 | from ArrayRef[HashRef], via { [ map { 'Google::Assistant::Embedded::V1alpha2::EmbeddedAssistant::DialogStateIn'->new($_) } @$_ ] }; | ||
| 138 | |||
| 139 | declare 'MapStringDialogStateIn', | ||
| 140 | as HashRef[DialogStateIn()]; | ||
| 141 | |||
| 142 | declare 'DeviceConfig', | ||
| 143 | as InstanceOf['Google::Assistant::Embedded::V1alpha2::EmbeddedAssistant::DeviceConfig']; | ||
| 144 | |||
| 145 | coerce 'DeviceConfig', | ||
| 146 | from HashRef, via { 'Google::Assistant::Embedded::V1alpha2::EmbeddedAssistant::DeviceConfig'->new($_) }; | ||
| 147 | |||
| 148 | declare 'RepeatedDeviceConfig', | ||
| 149 | as ArrayRef[DeviceConfig()]; | ||
| 150 | |||
| 151 | coerce 'RepeatedDeviceConfig', | ||
| 152 | from ArrayRef[HashRef], via { [ map { 'Google::Assistant::Embedded::V1alpha2::EmbeddedAssistant::DeviceConfig'->new($_) } @$_ ] }; | ||
| 153 | |||
| 154 | declare 'MapStringDeviceConfig', | ||
| 155 | as HashRef[DeviceConfig()]; | ||
| 156 | |||
| 157 | declare 'AudioOut', | ||
| 158 | as InstanceOf['Google::Assistant::Embedded::V1alpha2::EmbeddedAssistant::AudioOut']; | ||
| 159 | |||
| 160 | coerce 'AudioOut', | ||
| 161 | from HashRef, via { 'Google::Assistant::Embedded::V1alpha2::EmbeddedAssistant::AudioOut'->new($_) }; | ||
| 162 | |||
| 163 | declare 'RepeatedAudioOut', | ||
| 164 | as ArrayRef[AudioOut()]; | ||
| 165 | |||
| 166 | coerce 'RepeatedAudioOut', | ||
| 167 | from ArrayRef[HashRef], via { [ map { 'Google::Assistant::Embedded::V1alpha2::EmbeddedAssistant::AudioOut'->new($_) } @$_ ] }; | ||
| 168 | |||
| 169 | declare 'MapStringAudioOut', | ||
| 170 | as HashRef[AudioOut()]; | ||
| 171 | |||
| 172 | declare 'ScreenOut', | ||
| 173 | as InstanceOf['Google::Assistant::Embedded::V1alpha2::EmbeddedAssistant::ScreenOut']; | ||
| 174 | |||
| 175 | coerce 'ScreenOut', | ||
| 176 | from HashRef, via { 'Google::Assistant::Embedded::V1alpha2::EmbeddedAssistant::ScreenOut'->new($_) }; | ||
| 177 | |||
| 178 | declare 'RepeatedScreenOut', | ||
| 179 | as ArrayRef[ScreenOut()]; | ||
| 180 | |||
| 181 | coerce 'RepeatedScreenOut', | ||
| 182 | from ArrayRef[HashRef], via { [ map { 'Google::Assistant::Embedded::V1alpha2::EmbeddedAssistant::ScreenOut'->new($_) } @$_ ] }; | ||
| 183 | |||
| 184 | declare 'MapStringScreenOut', | ||
| 185 | as HashRef[ScreenOut()]; | ||
| 186 | |||
| 187 | declare 'Format', | ||
| 188 | as (Int | Str); | ||
| 189 | |||
| 190 | declare 'DeviceAction', | ||
| 191 | as InstanceOf['Google::Assistant::Embedded::V1alpha2::EmbeddedAssistant::DeviceAction']; | ||
| 192 | |||
| 193 | coerce 'DeviceAction', | ||
| 194 | from HashRef, via { 'Google::Assistant::Embedded::V1alpha2::EmbeddedAssistant::DeviceAction'->new($_) }; | ||
| 195 | |||
| 196 | declare 'RepeatedDeviceAction', | ||
| 197 | as ArrayRef[DeviceAction()]; | ||
| 198 | |||
| 199 | coerce 'RepeatedDeviceAction', | ||
| 200 | from ArrayRef[HashRef], via { [ map { 'Google::Assistant::Embedded::V1alpha2::EmbeddedAssistant::DeviceAction'->new($_) } @$_ ] }; | ||
| 201 | |||
| 202 | declare 'MapStringDeviceAction', | ||
| 203 | as HashRef[DeviceAction()]; | ||
| 204 | |||
| 205 | declare 'SpeechRecognitionResult', | ||
| 206 | as InstanceOf['Google::Assistant::Embedded::V1alpha2::EmbeddedAssistant::SpeechRecognitionResult']; | ||
| 207 | |||
| 208 | coerce 'SpeechRecognitionResult', | ||
| 209 | from HashRef, via { 'Google::Assistant::Embedded::V1alpha2::EmbeddedAssistant::SpeechRecognitionResult'->new($_) }; | ||
| 210 | |||
| 211 | declare 'RepeatedSpeechRecognitionResult', | ||
| 212 | as ArrayRef[SpeechRecognitionResult()]; | ||
| 213 | |||
| 214 | coerce 'RepeatedSpeechRecognitionResult', | ||
| 215 | from ArrayRef[HashRef], via { [ map { 'Google::Assistant::Embedded::V1alpha2::EmbeddedAssistant::SpeechRecognitionResult'->new($_) } @$_ ] }; | ||
| 216 | |||
| 217 | declare 'MapStringSpeechRecognitionResult', | ||
| 218 | as HashRef[SpeechRecognitionResult()]; | ||
| 219 | |||
| 220 | declare 'DialogStateOut', | ||
| 221 | as InstanceOf['Google::Assistant::Embedded::V1alpha2::EmbeddedAssistant::DialogStateOut']; | ||
| 222 | |||
| 223 | coerce 'DialogStateOut', | ||
| 224 | from HashRef, via { 'Google::Assistant::Embedded::V1alpha2::EmbeddedAssistant::DialogStateOut'->new($_) }; | ||
| 225 | |||
| 226 | declare 'RepeatedDialogStateOut', | ||
| 227 | as ArrayRef[DialogStateOut()]; | ||
| 228 | |||
| 229 | coerce 'RepeatedDialogStateOut', | ||
| 230 | from ArrayRef[HashRef], via { [ map { 'Google::Assistant::Embedded::V1alpha2::EmbeddedAssistant::DialogStateOut'->new($_) } @$_ ] }; | ||
| 231 | |||
| 232 | declare 'MapStringDialogStateOut', | ||
| 233 | as HashRef[DialogStateOut()]; | ||
| 234 | |||
| 235 | declare 'MicrophoneMode', | ||
| 236 | as (Int | Str); | ||
| 237 | |||
| 238 | declare 'DebugConfig', | ||
| 239 | as InstanceOf['Google::Assistant::Embedded::V1alpha2::EmbeddedAssistant::DebugConfig']; | ||
| 240 | |||
| 241 | coerce 'DebugConfig', | ||
| 242 | from HashRef, via { 'Google::Assistant::Embedded::V1alpha2::EmbeddedAssistant::DebugConfig'->new($_) }; | ||
| 243 | |||
| 244 | declare 'RepeatedDebugConfig', | ||
| 245 | as ArrayRef[DebugConfig()]; | ||
| 246 | |||
| 247 | coerce 'RepeatedDebugConfig', | ||
| 248 | from ArrayRef[HashRef], via { [ map { 'Google::Assistant::Embedded::V1alpha2::EmbeddedAssistant::DebugConfig'->new($_) } @$_ ] }; | ||
| 249 | |||
| 250 | declare 'MapStringDebugConfig', | ||
| 251 | as HashRef[DebugConfig()]; | ||
| 252 | |||
| 253 | declare 'DeviceLocation', | ||
| 254 | as InstanceOf['Google::Assistant::Embedded::V1alpha2::EmbeddedAssistant::DeviceLocation']; | ||
| 255 | |||
| 256 | coerce 'DeviceLocation', | ||
| 257 | from HashRef, via { 'Google::Assistant::Embedded::V1alpha2::EmbeddedAssistant::DeviceLocation'->new($_) }; | ||
| 258 | |||
| 259 | declare 'RepeatedDeviceLocation', | ||
| 260 | as ArrayRef[DeviceLocation()]; | ||
| 261 | |||
| 262 | coerce 'RepeatedDeviceLocation', | ||
| 263 | from ArrayRef[HashRef], via { [ map { 'Google::Assistant::Embedded::V1alpha2::EmbeddedAssistant::DeviceLocation'->new($_) } @$_ ] }; | ||
| 264 | |||
| 265 | declare 'MapStringDeviceLocation', | ||
| 266 | as HashRef[DeviceLocation()]; | ||
| 267 | |||
| 268 | 1; | ||
| 269 | |||
| 270 | __END__ |