| 1 | package Google::Cloud::Dialogflow::Cx::V3beta1::Session::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 'DetectIntentResponseView', | ||
| 11 | as (Int | Str); | ||
| 12 | |||
| 13 | declare 'AnswerFeedback', | ||
| 14 | as InstanceOf['Google::Cloud::Dialogflow::Cx::V3beta1::Session::AnswerFeedback']; | ||
| 15 | |||
| 16 | coerce 'AnswerFeedback', | ||
| 17 | from HashRef, via { 'Google::Cloud::Dialogflow::Cx::V3beta1::Session::AnswerFeedback'->new($_) }; | ||
| 18 | |||
| 19 | declare 'RepeatedAnswerFeedback', | ||
| 20 | as ArrayRef[AnswerFeedback()]; | ||
| 21 | |||
| 22 | coerce 'RepeatedAnswerFeedback', | ||
| 23 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::Cx::V3beta1::Session::AnswerFeedback'->new($_) } @$_ ] }; | ||
| 24 | |||
| 25 | declare 'MapStringAnswerFeedback', | ||
| 26 | as HashRef[AnswerFeedback()]; | ||
| 27 | |||
| 28 | declare 'Rating', | ||
| 29 | as (Int | Str); | ||
| 30 | |||
| 31 | declare 'RatingReason', | ||
| 32 | as InstanceOf['Google::Cloud::Dialogflow::Cx::V3beta1::Session::AnswerFeedback::RatingReason']; | ||
| 33 | |||
| 34 | coerce 'RatingReason', | ||
| 35 | from HashRef, via { 'Google::Cloud::Dialogflow::Cx::V3beta1::Session::AnswerFeedback::RatingReason'->new($_) }; | ||
| 36 | |||
| 37 | declare 'RepeatedRatingReason', | ||
| 38 | as ArrayRef[RatingReason()]; | ||
| 39 | |||
| 40 | coerce 'RepeatedRatingReason', | ||
| 41 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::Cx::V3beta1::Session::AnswerFeedback::RatingReason'->new($_) } @$_ ] }; | ||
| 42 | |||
| 43 | declare 'MapStringRatingReason', | ||
| 44 | as HashRef[RatingReason()]; | ||
| 45 | |||
| 46 | declare 'SubmitAnswerFeedbackRequest', | ||
| 47 | as InstanceOf['Google::Cloud::Dialogflow::Cx::V3beta1::Session::SubmitAnswerFeedbackRequest']; | ||
| 48 | |||
| 49 | coerce 'SubmitAnswerFeedbackRequest', | ||
| 50 | from HashRef, via { 'Google::Cloud::Dialogflow::Cx::V3beta1::Session::SubmitAnswerFeedbackRequest'->new($_) }; | ||
| 51 | |||
| 52 | declare 'RepeatedSubmitAnswerFeedbackRequest', | ||
| 53 | as ArrayRef[SubmitAnswerFeedbackRequest()]; | ||
| 54 | |||
| 55 | coerce 'RepeatedSubmitAnswerFeedbackRequest', | ||
| 56 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::Cx::V3beta1::Session::SubmitAnswerFeedbackRequest'->new($_) } @$_ ] }; | ||
| 57 | |||
| 58 | declare 'MapStringSubmitAnswerFeedbackRequest', | ||
| 59 | as HashRef[SubmitAnswerFeedbackRequest()]; | ||
| 60 | |||
| 61 | declare 'DetectIntentRequest', | ||
| 62 | as InstanceOf['Google::Cloud::Dialogflow::Cx::V3beta1::Session::DetectIntentRequest']; | ||
| 63 | |||
| 64 | coerce 'DetectIntentRequest', | ||
| 65 | from HashRef, via { 'Google::Cloud::Dialogflow::Cx::V3beta1::Session::DetectIntentRequest'->new($_) }; | ||
| 66 | |||
| 67 | declare 'RepeatedDetectIntentRequest', | ||
| 68 | as ArrayRef[DetectIntentRequest()]; | ||
| 69 | |||
| 70 | coerce 'RepeatedDetectIntentRequest', | ||
| 71 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::Cx::V3beta1::Session::DetectIntentRequest'->new($_) } @$_ ] }; | ||
| 72 | |||
| 73 | declare 'MapStringDetectIntentRequest', | ||
| 74 | as HashRef[DetectIntentRequest()]; | ||
| 75 | |||
| 76 | declare 'DetectIntentResponse', | ||
| 77 | as InstanceOf['Google::Cloud::Dialogflow::Cx::V3beta1::Session::DetectIntentResponse']; | ||
| 78 | |||
| 79 | coerce 'DetectIntentResponse', | ||
| 80 | from HashRef, via { 'Google::Cloud::Dialogflow::Cx::V3beta1::Session::DetectIntentResponse'->new($_) }; | ||
| 81 | |||
| 82 | declare 'RepeatedDetectIntentResponse', | ||
| 83 | as ArrayRef[DetectIntentResponse()]; | ||
| 84 | |||
| 85 | coerce 'RepeatedDetectIntentResponse', | ||
| 86 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::Cx::V3beta1::Session::DetectIntentResponse'->new($_) } @$_ ] }; | ||
| 87 | |||
| 88 | declare 'MapStringDetectIntentResponse', | ||
| 89 | as HashRef[DetectIntentResponse()]; | ||
| 90 | |||
| 91 | declare 'ResponseType', | ||
| 92 | as (Int | Str); | ||
| 93 | |||
| 94 | declare 'StreamingDetectIntentRequest', | ||
| 95 | as InstanceOf['Google::Cloud::Dialogflow::Cx::V3beta1::Session::StreamingDetectIntentRequest']; | ||
| 96 | |||
| 97 | coerce 'StreamingDetectIntentRequest', | ||
| 98 | from HashRef, via { 'Google::Cloud::Dialogflow::Cx::V3beta1::Session::StreamingDetectIntentRequest'->new($_) }; | ||
| 99 | |||
| 100 | declare 'RepeatedStreamingDetectIntentRequest', | ||
| 101 | as ArrayRef[StreamingDetectIntentRequest()]; | ||
| 102 | |||
| 103 | coerce 'RepeatedStreamingDetectIntentRequest', | ||
| 104 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::Cx::V3beta1::Session::StreamingDetectIntentRequest'->new($_) } @$_ ] }; | ||
| 105 | |||
| 106 | declare 'MapStringStreamingDetectIntentRequest', | ||
| 107 | as HashRef[StreamingDetectIntentRequest()]; | ||
| 108 | |||
| 109 | declare 'CloudConversationDebuggingInfo', | ||
| 110 | as InstanceOf['Google::Cloud::Dialogflow::Cx::V3beta1::Session::CloudConversationDebuggingInfo']; | ||
| 111 | |||
| 112 | coerce 'CloudConversationDebuggingInfo', | ||
| 113 | from HashRef, via { 'Google::Cloud::Dialogflow::Cx::V3beta1::Session::CloudConversationDebuggingInfo'->new($_) }; | ||
| 114 | |||
| 115 | declare 'RepeatedCloudConversationDebuggingInfo', | ||
| 116 | as ArrayRef[CloudConversationDebuggingInfo()]; | ||
| 117 | |||
| 118 | coerce 'RepeatedCloudConversationDebuggingInfo', | ||
| 119 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::Cx::V3beta1::Session::CloudConversationDebuggingInfo'->new($_) } @$_ ] }; | ||
| 120 | |||
| 121 | declare 'MapStringCloudConversationDebuggingInfo', | ||
| 122 | as HashRef[CloudConversationDebuggingInfo()]; | ||
| 123 | |||
| 124 | declare 'StreamingDetectIntentResponse', | ||
| 125 | as InstanceOf['Google::Cloud::Dialogflow::Cx::V3beta1::Session::StreamingDetectIntentResponse']; | ||
| 126 | |||
| 127 | coerce 'StreamingDetectIntentResponse', | ||
| 128 | from HashRef, via { 'Google::Cloud::Dialogflow::Cx::V3beta1::Session::StreamingDetectIntentResponse'->new($_) }; | ||
| 129 | |||
| 130 | declare 'RepeatedStreamingDetectIntentResponse', | ||
| 131 | as ArrayRef[StreamingDetectIntentResponse()]; | ||
| 132 | |||
| 133 | coerce 'RepeatedStreamingDetectIntentResponse', | ||
| 134 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::Cx::V3beta1::Session::StreamingDetectIntentResponse'->new($_) } @$_ ] }; | ||
| 135 | |||
| 136 | declare 'MapStringStreamingDetectIntentResponse', | ||
| 137 | as HashRef[StreamingDetectIntentResponse()]; | ||
| 138 | |||
| 139 | declare 'StreamingRecognitionResult', | ||
| 140 | as InstanceOf['Google::Cloud::Dialogflow::Cx::V3beta1::Session::StreamingRecognitionResult']; | ||
| 141 | |||
| 142 | coerce 'StreamingRecognitionResult', | ||
| 143 | from HashRef, via { 'Google::Cloud::Dialogflow::Cx::V3beta1::Session::StreamingRecognitionResult'->new($_) }; | ||
| 144 | |||
| 145 | declare 'RepeatedStreamingRecognitionResult', | ||
| 146 | as ArrayRef[StreamingRecognitionResult()]; | ||
| 147 | |||
| 148 | coerce 'RepeatedStreamingRecognitionResult', | ||
| 149 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::Cx::V3beta1::Session::StreamingRecognitionResult'->new($_) } @$_ ] }; | ||
| 150 | |||
| 151 | declare 'MapStringStreamingRecognitionResult', | ||
| 152 | as HashRef[StreamingRecognitionResult()]; | ||
| 153 | |||
| 154 | declare 'MessageType', | ||
| 155 | as (Int | Str); | ||
| 156 | |||
| 157 | declare 'QueryParameters', | ||
| 158 | as InstanceOf['Google::Cloud::Dialogflow::Cx::V3beta1::Session::QueryParameters']; | ||
| 159 | |||
| 160 | coerce 'QueryParameters', | ||
| 161 | from HashRef, via { 'Google::Cloud::Dialogflow::Cx::V3beta1::Session::QueryParameters'->new($_) }; | ||
| 162 | |||
| 163 | declare 'RepeatedQueryParameters', | ||
| 164 | as ArrayRef[QueryParameters()]; | ||
| 165 | |||
| 166 | coerce 'RepeatedQueryParameters', | ||
| 167 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::Cx::V3beta1::Session::QueryParameters'->new($_) } @$_ ] }; | ||
| 168 | |||
| 169 | declare 'MapStringQueryParameters', | ||
| 170 | as HashRef[QueryParameters()]; | ||
| 171 | |||
| 172 | declare 'WebhookHeadersEntry', | ||
| 173 | as InstanceOf['Google::Cloud::Dialogflow::Cx::V3beta1::Session::QueryParameters::WebhookHeadersEntry']; | ||
| 174 | |||
| 175 | coerce 'WebhookHeadersEntry', | ||
| 176 | from HashRef, via { 'Google::Cloud::Dialogflow::Cx::V3beta1::Session::QueryParameters::WebhookHeadersEntry'->new($_) }; | ||
| 177 | |||
| 178 | declare 'RepeatedWebhookHeadersEntry', | ||
| 179 | as ArrayRef[WebhookHeadersEntry()]; | ||
| 180 | |||
| 181 | coerce 'RepeatedWebhookHeadersEntry', | ||
| 182 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::Cx::V3beta1::Session::QueryParameters::WebhookHeadersEntry'->new($_) } @$_ ] }; | ||
| 183 | |||
| 184 | declare 'MapStringWebhookHeadersEntry', | ||
| 185 | as HashRef[WebhookHeadersEntry()]; | ||
| 186 | |||
| 187 | declare 'SearchConfig', | ||
| 188 | as InstanceOf['Google::Cloud::Dialogflow::Cx::V3beta1::Session::SearchConfig']; | ||
| 189 | |||
| 190 | coerce 'SearchConfig', | ||
| 191 | from HashRef, via { 'Google::Cloud::Dialogflow::Cx::V3beta1::Session::SearchConfig'->new($_) }; | ||
| 192 | |||
| 193 | declare 'RepeatedSearchConfig', | ||
| 194 | as ArrayRef[SearchConfig()]; | ||
| 195 | |||
| 196 | coerce 'RepeatedSearchConfig', | ||
| 197 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::Cx::V3beta1::Session::SearchConfig'->new($_) } @$_ ] }; | ||
| 198 | |||
| 199 | declare 'MapStringSearchConfig', | ||
| 200 | as HashRef[SearchConfig()]; | ||
| 201 | |||
| 202 | declare 'BoostSpec', | ||
| 203 | as InstanceOf['Google::Cloud::Dialogflow::Cx::V3beta1::Session::BoostSpec']; | ||
| 204 | |||
| 205 | coerce 'BoostSpec', | ||
| 206 | from HashRef, via { 'Google::Cloud::Dialogflow::Cx::V3beta1::Session::BoostSpec'->new($_) }; | ||
| 207 | |||
| 208 | declare 'RepeatedBoostSpec', | ||
| 209 | as ArrayRef[BoostSpec()]; | ||
| 210 | |||
| 211 | coerce 'RepeatedBoostSpec', | ||
| 212 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::Cx::V3beta1::Session::BoostSpec'->new($_) } @$_ ] }; | ||
| 213 | |||
| 214 | declare 'MapStringBoostSpec', | ||
| 215 | as HashRef[BoostSpec()]; | ||
| 216 | |||
| 217 | declare 'ConditionBoostSpec', | ||
| 218 | as InstanceOf['Google::Cloud::Dialogflow::Cx::V3beta1::Session::BoostSpec::ConditionBoostSpec']; | ||
| 219 | |||
| 220 | coerce 'ConditionBoostSpec', | ||
| 221 | from HashRef, via { 'Google::Cloud::Dialogflow::Cx::V3beta1::Session::BoostSpec::ConditionBoostSpec'->new($_) }; | ||
| 222 | |||
| 223 | declare 'RepeatedConditionBoostSpec', | ||
| 224 | as ArrayRef[ConditionBoostSpec()]; | ||
| 225 | |||
| 226 | coerce 'RepeatedConditionBoostSpec', | ||
| 227 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::Cx::V3beta1::Session::BoostSpec::ConditionBoostSpec'->new($_) } @$_ ] }; | ||
| 228 | |||
| 229 | declare 'MapStringConditionBoostSpec', | ||
| 230 | as HashRef[ConditionBoostSpec()]; | ||
| 231 | |||
| 232 | declare 'BoostControlSpec', | ||
| 233 | as InstanceOf['Google::Cloud::Dialogflow::Cx::V3beta1::Session::BoostSpec::ConditionBoostSpec::BoostControlSpec']; | ||
| 234 | |||
| 235 | coerce 'BoostControlSpec', | ||
| 236 | from HashRef, via { 'Google::Cloud::Dialogflow::Cx::V3beta1::Session::BoostSpec::ConditionBoostSpec::BoostControlSpec'->new($_) }; | ||
| 237 | |||
| 238 | declare 'RepeatedBoostControlSpec', | ||
| 239 | as ArrayRef[BoostControlSpec()]; | ||
| 240 | |||
| 241 | coerce 'RepeatedBoostControlSpec', | ||
| 242 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::Cx::V3beta1::Session::BoostSpec::ConditionBoostSpec::BoostControlSpec'->new($_) } @$_ ] }; | ||
| 243 | |||
| 244 | declare 'MapStringBoostControlSpec', | ||
| 245 | as HashRef[BoostControlSpec()]; | ||
| 246 | |||
| 247 | declare 'AttributeType', | ||
| 248 | as (Int | Str); | ||
| 249 | |||
| 250 | declare 'InterpolationType', | ||
| 251 | as (Int | Str); | ||
| 252 | |||
| 253 | declare 'ControlPoint', | ||
| 254 | as InstanceOf['Google::Cloud::Dialogflow::Cx::V3beta1::Session::BoostSpec::ConditionBoostSpec::BoostControlSpec::ControlPoint']; | ||
| 255 | |||
| 256 | coerce 'ControlPoint', | ||
| 257 | from HashRef, via { 'Google::Cloud::Dialogflow::Cx::V3beta1::Session::BoostSpec::ConditionBoostSpec::BoostControlSpec::ControlPoint'->new($_) }; | ||
| 258 | |||
| 259 | declare 'RepeatedControlPoint', | ||
| 260 | as ArrayRef[ControlPoint()]; | ||
| 261 | |||
| 262 | coerce 'RepeatedControlPoint', | ||
| 263 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::Cx::V3beta1::Session::BoostSpec::ConditionBoostSpec::BoostControlSpec::ControlPoint'->new($_) } @$_ ] }; | ||
| 264 | |||
| 265 | declare 'MapStringControlPoint', | ||
| 266 | as HashRef[ControlPoint()]; | ||
| 267 | |||
| 268 | declare 'BoostSpecs', | ||
| 269 | as InstanceOf['Google::Cloud::Dialogflow::Cx::V3beta1::Session::BoostSpecs']; | ||
| 270 | |||
| 271 | coerce 'BoostSpecs', | ||
| 272 | from HashRef, via { 'Google::Cloud::Dialogflow::Cx::V3beta1::Session::BoostSpecs'->new($_) }; | ||
| 273 | |||
| 274 | declare 'RepeatedBoostSpecs', | ||
| 275 | as ArrayRef[BoostSpecs()]; | ||
| 276 | |||
| 277 | coerce 'RepeatedBoostSpecs', | ||
| 278 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::Cx::V3beta1::Session::BoostSpecs'->new($_) } @$_ ] }; | ||
| 279 | |||
| 280 | declare 'MapStringBoostSpecs', | ||
| 281 | as HashRef[BoostSpecs()]; | ||
| 282 | |||
| 283 | declare 'FilterSpecs', | ||
| 284 | as InstanceOf['Google::Cloud::Dialogflow::Cx::V3beta1::Session::FilterSpecs']; | ||
| 285 | |||
| 286 | coerce 'FilterSpecs', | ||
| 287 | from HashRef, via { 'Google::Cloud::Dialogflow::Cx::V3beta1::Session::FilterSpecs'->new($_) }; | ||
| 288 | |||
| 289 | declare 'RepeatedFilterSpecs', | ||
| 290 | as ArrayRef[FilterSpecs()]; | ||
| 291 | |||
| 292 | coerce 'RepeatedFilterSpecs', | ||
| 293 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::Cx::V3beta1::Session::FilterSpecs'->new($_) } @$_ ] }; | ||
| 294 | |||
| 295 | declare 'MapStringFilterSpecs', | ||
| 296 | as HashRef[FilterSpecs()]; | ||
| 297 | |||
| 298 | declare 'QueryInput', | ||
| 299 | as InstanceOf['Google::Cloud::Dialogflow::Cx::V3beta1::Session::QueryInput']; | ||
| 300 | |||
| 301 | coerce 'QueryInput', | ||
| 302 | from HashRef, via { 'Google::Cloud::Dialogflow::Cx::V3beta1::Session::QueryInput'->new($_) }; | ||
| 303 | |||
| 304 | declare 'RepeatedQueryInput', | ||
| 305 | as ArrayRef[QueryInput()]; | ||
| 306 | |||
| 307 | coerce 'RepeatedQueryInput', | ||
| 308 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::Cx::V3beta1::Session::QueryInput'->new($_) } @$_ ] }; | ||
| 309 | |||
| 310 | declare 'MapStringQueryInput', | ||
| 311 | as HashRef[QueryInput()]; | ||
| 312 | |||
| 313 | declare 'GenerativeInfo', | ||
| 314 | as InstanceOf['Google::Cloud::Dialogflow::Cx::V3beta1::Session::GenerativeInfo']; | ||
| 315 | |||
| 316 | coerce 'GenerativeInfo', | ||
| 317 | from HashRef, via { 'Google::Cloud::Dialogflow::Cx::V3beta1::Session::GenerativeInfo'->new($_) }; | ||
| 318 | |||
| 319 | declare 'RepeatedGenerativeInfo', | ||
| 320 | as ArrayRef[GenerativeInfo()]; | ||
| 321 | |||
| 322 | coerce 'RepeatedGenerativeInfo', | ||
| 323 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::Cx::V3beta1::Session::GenerativeInfo'->new($_) } @$_ ] }; | ||
| 324 | |||
| 325 | declare 'MapStringGenerativeInfo', | ||
| 326 | as HashRef[GenerativeInfo()]; | ||
| 327 | |||
| 328 | declare 'QueryResult', | ||
| 329 | as InstanceOf['Google::Cloud::Dialogflow::Cx::V3beta1::Session::QueryResult']; | ||
| 330 | |||
| 331 | coerce 'QueryResult', | ||
| 332 | from HashRef, via { 'Google::Cloud::Dialogflow::Cx::V3beta1::Session::QueryResult'->new($_) }; | ||
| 333 | |||
| 334 | declare 'RepeatedQueryResult', | ||
| 335 | as ArrayRef[QueryResult()]; | ||
| 336 | |||
| 337 | coerce 'RepeatedQueryResult', | ||
| 338 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::Cx::V3beta1::Session::QueryResult'->new($_) } @$_ ] }; | ||
| 339 | |||
| 340 | declare 'MapStringQueryResult', | ||
| 341 | as HashRef[QueryResult()]; | ||
| 342 | |||
| 343 | declare 'TextInput', | ||
| 344 | as InstanceOf['Google::Cloud::Dialogflow::Cx::V3beta1::Session::TextInput']; | ||
| 345 | |||
| 346 | coerce 'TextInput', | ||
| 347 | from HashRef, via { 'Google::Cloud::Dialogflow::Cx::V3beta1::Session::TextInput'->new($_) }; | ||
| 348 | |||
| 349 | declare 'RepeatedTextInput', | ||
| 350 | as ArrayRef[TextInput()]; | ||
| 351 | |||
| 352 | coerce 'RepeatedTextInput', | ||
| 353 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::Cx::V3beta1::Session::TextInput'->new($_) } @$_ ] }; | ||
| 354 | |||
| 355 | declare 'MapStringTextInput', | ||
| 356 | as HashRef[TextInput()]; | ||
| 357 | |||
| 358 | declare 'IntentInput', | ||
| 359 | as InstanceOf['Google::Cloud::Dialogflow::Cx::V3beta1::Session::IntentInput']; | ||
| 360 | |||
| 361 | coerce 'IntentInput', | ||
| 362 | from HashRef, via { 'Google::Cloud::Dialogflow::Cx::V3beta1::Session::IntentInput'->new($_) }; | ||
| 363 | |||
| 364 | declare 'RepeatedIntentInput', | ||
| 365 | as ArrayRef[IntentInput()]; | ||
| 366 | |||
| 367 | coerce 'RepeatedIntentInput', | ||
| 368 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::Cx::V3beta1::Session::IntentInput'->new($_) } @$_ ] }; | ||
| 369 | |||
| 370 | declare 'MapStringIntentInput', | ||
| 371 | as HashRef[IntentInput()]; | ||
| 372 | |||
| 373 | declare 'AudioInput', | ||
| 374 | as InstanceOf['Google::Cloud::Dialogflow::Cx::V3beta1::Session::AudioInput']; | ||
| 375 | |||
| 376 | coerce 'AudioInput', | ||
| 377 | from HashRef, via { 'Google::Cloud::Dialogflow::Cx::V3beta1::Session::AudioInput'->new($_) }; | ||
| 378 | |||
| 379 | declare 'RepeatedAudioInput', | ||
| 380 | as ArrayRef[AudioInput()]; | ||
| 381 | |||
| 382 | coerce 'RepeatedAudioInput', | ||
| 383 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::Cx::V3beta1::Session::AudioInput'->new($_) } @$_ ] }; | ||
| 384 | |||
| 385 | declare 'MapStringAudioInput', | ||
| 386 | as HashRef[AudioInput()]; | ||
| 387 | |||
| 388 | declare 'EventInput', | ||
| 389 | as InstanceOf['Google::Cloud::Dialogflow::Cx::V3beta1::Session::EventInput']; | ||
| 390 | |||
| 391 | coerce 'EventInput', | ||
| 392 | from HashRef, via { 'Google::Cloud::Dialogflow::Cx::V3beta1::Session::EventInput'->new($_) }; | ||
| 393 | |||
| 394 | declare 'RepeatedEventInput', | ||
| 395 | as ArrayRef[EventInput()]; | ||
| 396 | |||
| 397 | coerce 'RepeatedEventInput', | ||
| 398 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::Cx::V3beta1::Session::EventInput'->new($_) } @$_ ] }; | ||
| 399 | |||
| 400 | declare 'MapStringEventInput', | ||
| 401 | as HashRef[EventInput()]; | ||
| 402 | |||
| 403 | declare 'DtmfInput', | ||
| 404 | as InstanceOf['Google::Cloud::Dialogflow::Cx::V3beta1::Session::DtmfInput']; | ||
| 405 | |||
| 406 | coerce 'DtmfInput', | ||
| 407 | from HashRef, via { 'Google::Cloud::Dialogflow::Cx::V3beta1::Session::DtmfInput'->new($_) }; | ||
| 408 | |||
| 409 | declare 'RepeatedDtmfInput', | ||
| 410 | as ArrayRef[DtmfInput()]; | ||
| 411 | |||
| 412 | coerce 'RepeatedDtmfInput', | ||
| 413 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::Cx::V3beta1::Session::DtmfInput'->new($_) } @$_ ] }; | ||
| 414 | |||
| 415 | declare 'MapStringDtmfInput', | ||
| 416 | as HashRef[DtmfInput()]; | ||
| 417 | |||
| 418 | declare 'Match', | ||
| 419 | as InstanceOf['Google::Cloud::Dialogflow::Cx::V3beta1::Session::Match']; | ||
| 420 | |||
| 421 | coerce 'Match', | ||
| 422 | from HashRef, via { 'Google::Cloud::Dialogflow::Cx::V3beta1::Session::Match'->new($_) }; | ||
| 423 | |||
| 424 | declare 'RepeatedMatch', | ||
| 425 | as ArrayRef[Match()]; | ||
| 426 | |||
| 427 | coerce 'RepeatedMatch', | ||
| 428 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::Cx::V3beta1::Session::Match'->new($_) } @$_ ] }; | ||
| 429 | |||
| 430 | declare 'MapStringMatch', | ||
| 431 | as HashRef[Match()]; | ||
| 432 | |||
| 433 | declare 'MatchType', | ||
| 434 | as (Int | Str); | ||
| 435 | |||
| 436 | declare 'MatchIntentRequest', | ||
| 437 | as InstanceOf['Google::Cloud::Dialogflow::Cx::V3beta1::Session::MatchIntentRequest']; | ||
| 438 | |||
| 439 | coerce 'MatchIntentRequest', | ||
| 440 | from HashRef, via { 'Google::Cloud::Dialogflow::Cx::V3beta1::Session::MatchIntentRequest'->new($_) }; | ||
| 441 | |||
| 442 | declare 'RepeatedMatchIntentRequest', | ||
| 443 | as ArrayRef[MatchIntentRequest()]; | ||
| 444 | |||
| 445 | coerce 'RepeatedMatchIntentRequest', | ||
| 446 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::Cx::V3beta1::Session::MatchIntentRequest'->new($_) } @$_ ] }; | ||
| 447 | |||
| 448 | declare 'MapStringMatchIntentRequest', | ||
| 449 | as HashRef[MatchIntentRequest()]; | ||
| 450 | |||
| 451 | declare 'MatchIntentResponse', | ||
| 452 | as InstanceOf['Google::Cloud::Dialogflow::Cx::V3beta1::Session::MatchIntentResponse']; | ||
| 453 | |||
| 454 | coerce 'MatchIntentResponse', | ||
| 455 | from HashRef, via { 'Google::Cloud::Dialogflow::Cx::V3beta1::Session::MatchIntentResponse'->new($_) }; | ||
| 456 | |||
| 457 | declare 'RepeatedMatchIntentResponse', | ||
| 458 | as ArrayRef[MatchIntentResponse()]; | ||
| 459 | |||
| 460 | coerce 'RepeatedMatchIntentResponse', | ||
| 461 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::Cx::V3beta1::Session::MatchIntentResponse'->new($_) } @$_ ] }; | ||
| 462 | |||
| 463 | declare 'MapStringMatchIntentResponse', | ||
| 464 | as HashRef[MatchIntentResponse()]; | ||
| 465 | |||
| 466 | declare 'FulfillIntentRequest', | ||
| 467 | as InstanceOf['Google::Cloud::Dialogflow::Cx::V3beta1::Session::FulfillIntentRequest']; | ||
| 468 | |||
| 469 | coerce 'FulfillIntentRequest', | ||
| 470 | from HashRef, via { 'Google::Cloud::Dialogflow::Cx::V3beta1::Session::FulfillIntentRequest'->new($_) }; | ||
| 471 | |||
| 472 | declare 'RepeatedFulfillIntentRequest', | ||
| 473 | as ArrayRef[FulfillIntentRequest()]; | ||
| 474 | |||
| 475 | coerce 'RepeatedFulfillIntentRequest', | ||
| 476 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::Cx::V3beta1::Session::FulfillIntentRequest'->new($_) } @$_ ] }; | ||
| 477 | |||
| 478 | declare 'MapStringFulfillIntentRequest', | ||
| 479 | as HashRef[FulfillIntentRequest()]; | ||
| 480 | |||
| 481 | declare 'FulfillIntentResponse', | ||
| 482 | as InstanceOf['Google::Cloud::Dialogflow::Cx::V3beta1::Session::FulfillIntentResponse']; | ||
| 483 | |||
| 484 | coerce 'FulfillIntentResponse', | ||
| 485 | from HashRef, via { 'Google::Cloud::Dialogflow::Cx::V3beta1::Session::FulfillIntentResponse'->new($_) }; | ||
| 486 | |||
| 487 | declare 'RepeatedFulfillIntentResponse', | ||
| 488 | as ArrayRef[FulfillIntentResponse()]; | ||
| 489 | |||
| 490 | coerce 'RepeatedFulfillIntentResponse', | ||
| 491 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::Cx::V3beta1::Session::FulfillIntentResponse'->new($_) } @$_ ] }; | ||
| 492 | |||
| 493 | declare 'MapStringFulfillIntentResponse', | ||
| 494 | as HashRef[FulfillIntentResponse()]; | ||
| 495 | |||
| 496 | declare 'SentimentAnalysisResult', | ||
| 497 | as InstanceOf['Google::Cloud::Dialogflow::Cx::V3beta1::Session::SentimentAnalysisResult']; | ||
| 498 | |||
| 499 | coerce 'SentimentAnalysisResult', | ||
| 500 | from HashRef, via { 'Google::Cloud::Dialogflow::Cx::V3beta1::Session::SentimentAnalysisResult'->new($_) }; | ||
| 501 | |||
| 502 | declare 'RepeatedSentimentAnalysisResult', | ||
| 503 | as ArrayRef[SentimentAnalysisResult()]; | ||
| 504 | |||
| 505 | coerce 'RepeatedSentimentAnalysisResult', | ||
| 506 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::Cx::V3beta1::Session::SentimentAnalysisResult'->new($_) } @$_ ] }; | ||
| 507 | |||
| 508 | declare 'MapStringSentimentAnalysisResult', | ||
| 509 | as HashRef[SentimentAnalysisResult()]; | ||
| 510 | |||
| 511 | 1; | ||
| 512 | |||
| 513 | __END__ |