| 1 | package Google::Cloud::Dialogflow::V2::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 'DetectIntentRequest', | ||
| 11 | as InstanceOf['Google::Cloud::Dialogflow::V2::Session::DetectIntentRequest']; | ||
| 12 | |||
| 13 | coerce 'DetectIntentRequest', | ||
| 14 | from HashRef, via { 'Google::Cloud::Dialogflow::V2::Session::DetectIntentRequest'->new($_) }; | ||
| 15 | |||
| 16 | declare 'RepeatedDetectIntentRequest', | ||
| 17 | as ArrayRef[DetectIntentRequest()]; | ||
| 18 | |||
| 19 | coerce 'RepeatedDetectIntentRequest', | ||
| 20 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::V2::Session::DetectIntentRequest'->new($_) } @$_ ] }; | ||
| 21 | |||
| 22 | declare 'MapStringDetectIntentRequest', | ||
| 23 | as HashRef[DetectIntentRequest()]; | ||
| 24 | |||
| 25 | declare 'DetectIntentResponse', | ||
| 26 | as InstanceOf['Google::Cloud::Dialogflow::V2::Session::DetectIntentResponse']; | ||
| 27 | |||
| 28 | coerce 'DetectIntentResponse', | ||
| 29 | from HashRef, via { 'Google::Cloud::Dialogflow::V2::Session::DetectIntentResponse'->new($_) }; | ||
| 30 | |||
| 31 | declare 'RepeatedDetectIntentResponse', | ||
| 32 | as ArrayRef[DetectIntentResponse()]; | ||
| 33 | |||
| 34 | coerce 'RepeatedDetectIntentResponse', | ||
| 35 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::V2::Session::DetectIntentResponse'->new($_) } @$_ ] }; | ||
| 36 | |||
| 37 | declare 'MapStringDetectIntentResponse', | ||
| 38 | as HashRef[DetectIntentResponse()]; | ||
| 39 | |||
| 40 | declare 'QueryParameters', | ||
| 41 | as InstanceOf['Google::Cloud::Dialogflow::V2::Session::QueryParameters']; | ||
| 42 | |||
| 43 | coerce 'QueryParameters', | ||
| 44 | from HashRef, via { 'Google::Cloud::Dialogflow::V2::Session::QueryParameters'->new($_) }; | ||
| 45 | |||
| 46 | declare 'RepeatedQueryParameters', | ||
| 47 | as ArrayRef[QueryParameters()]; | ||
| 48 | |||
| 49 | coerce 'RepeatedQueryParameters', | ||
| 50 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::V2::Session::QueryParameters'->new($_) } @$_ ] }; | ||
| 51 | |||
| 52 | declare 'MapStringQueryParameters', | ||
| 53 | as HashRef[QueryParameters()]; | ||
| 54 | |||
| 55 | declare 'WebhookHeadersEntry', | ||
| 56 | as InstanceOf['Google::Cloud::Dialogflow::V2::Session::QueryParameters::WebhookHeadersEntry']; | ||
| 57 | |||
| 58 | coerce 'WebhookHeadersEntry', | ||
| 59 | from HashRef, via { 'Google::Cloud::Dialogflow::V2::Session::QueryParameters::WebhookHeadersEntry'->new($_) }; | ||
| 60 | |||
| 61 | declare 'RepeatedWebhookHeadersEntry', | ||
| 62 | as ArrayRef[WebhookHeadersEntry()]; | ||
| 63 | |||
| 64 | coerce 'RepeatedWebhookHeadersEntry', | ||
| 65 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::V2::Session::QueryParameters::WebhookHeadersEntry'->new($_) } @$_ ] }; | ||
| 66 | |||
| 67 | declare 'MapStringWebhookHeadersEntry', | ||
| 68 | as HashRef[WebhookHeadersEntry()]; | ||
| 69 | |||
| 70 | declare 'QueryInput', | ||
| 71 | as InstanceOf['Google::Cloud::Dialogflow::V2::Session::QueryInput']; | ||
| 72 | |||
| 73 | coerce 'QueryInput', | ||
| 74 | from HashRef, via { 'Google::Cloud::Dialogflow::V2::Session::QueryInput'->new($_) }; | ||
| 75 | |||
| 76 | declare 'RepeatedQueryInput', | ||
| 77 | as ArrayRef[QueryInput()]; | ||
| 78 | |||
| 79 | coerce 'RepeatedQueryInput', | ||
| 80 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::V2::Session::QueryInput'->new($_) } @$_ ] }; | ||
| 81 | |||
| 82 | declare 'MapStringQueryInput', | ||
| 83 | as HashRef[QueryInput()]; | ||
| 84 | |||
| 85 | declare 'QueryResult', | ||
| 86 | as InstanceOf['Google::Cloud::Dialogflow::V2::Session::QueryResult']; | ||
| 87 | |||
| 88 | coerce 'QueryResult', | ||
| 89 | from HashRef, via { 'Google::Cloud::Dialogflow::V2::Session::QueryResult'->new($_) }; | ||
| 90 | |||
| 91 | declare 'RepeatedQueryResult', | ||
| 92 | as ArrayRef[QueryResult()]; | ||
| 93 | |||
| 94 | coerce 'RepeatedQueryResult', | ||
| 95 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::V2::Session::QueryResult'->new($_) } @$_ ] }; | ||
| 96 | |||
| 97 | declare 'MapStringQueryResult', | ||
| 98 | as HashRef[QueryResult()]; | ||
| 99 | |||
| 100 | declare 'StreamingDetectIntentRequest', | ||
| 101 | as InstanceOf['Google::Cloud::Dialogflow::V2::Session::StreamingDetectIntentRequest']; | ||
| 102 | |||
| 103 | coerce 'StreamingDetectIntentRequest', | ||
| 104 | from HashRef, via { 'Google::Cloud::Dialogflow::V2::Session::StreamingDetectIntentRequest'->new($_) }; | ||
| 105 | |||
| 106 | declare 'RepeatedStreamingDetectIntentRequest', | ||
| 107 | as ArrayRef[StreamingDetectIntentRequest()]; | ||
| 108 | |||
| 109 | coerce 'RepeatedStreamingDetectIntentRequest', | ||
| 110 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::V2::Session::StreamingDetectIntentRequest'->new($_) } @$_ ] }; | ||
| 111 | |||
| 112 | declare 'MapStringStreamingDetectIntentRequest', | ||
| 113 | as HashRef[StreamingDetectIntentRequest()]; | ||
| 114 | |||
| 115 | declare 'CloudConversationDebuggingInfo', | ||
| 116 | as InstanceOf['Google::Cloud::Dialogflow::V2::Session::CloudConversationDebuggingInfo']; | ||
| 117 | |||
| 118 | coerce 'CloudConversationDebuggingInfo', | ||
| 119 | from HashRef, via { 'Google::Cloud::Dialogflow::V2::Session::CloudConversationDebuggingInfo'->new($_) }; | ||
| 120 | |||
| 121 | declare 'RepeatedCloudConversationDebuggingInfo', | ||
| 122 | as ArrayRef[CloudConversationDebuggingInfo()]; | ||
| 123 | |||
| 124 | coerce 'RepeatedCloudConversationDebuggingInfo', | ||
| 125 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::V2::Session::CloudConversationDebuggingInfo'->new($_) } @$_ ] }; | ||
| 126 | |||
| 127 | declare 'MapStringCloudConversationDebuggingInfo', | ||
| 128 | as HashRef[CloudConversationDebuggingInfo()]; | ||
| 129 | |||
| 130 | declare 'StreamingDetectIntentResponse', | ||
| 131 | as InstanceOf['Google::Cloud::Dialogflow::V2::Session::StreamingDetectIntentResponse']; | ||
| 132 | |||
| 133 | coerce 'StreamingDetectIntentResponse', | ||
| 134 | from HashRef, via { 'Google::Cloud::Dialogflow::V2::Session::StreamingDetectIntentResponse'->new($_) }; | ||
| 135 | |||
| 136 | declare 'RepeatedStreamingDetectIntentResponse', | ||
| 137 | as ArrayRef[StreamingDetectIntentResponse()]; | ||
| 138 | |||
| 139 | coerce 'RepeatedStreamingDetectIntentResponse', | ||
| 140 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::V2::Session::StreamingDetectIntentResponse'->new($_) } @$_ ] }; | ||
| 141 | |||
| 142 | declare 'MapStringStreamingDetectIntentResponse', | ||
| 143 | as HashRef[StreamingDetectIntentResponse()]; | ||
| 144 | |||
| 145 | declare 'StreamingRecognitionResult', | ||
| 146 | as InstanceOf['Google::Cloud::Dialogflow::V2::Session::StreamingRecognitionResult']; | ||
| 147 | |||
| 148 | coerce 'StreamingRecognitionResult', | ||
| 149 | from HashRef, via { 'Google::Cloud::Dialogflow::V2::Session::StreamingRecognitionResult'->new($_) }; | ||
| 150 | |||
| 151 | declare 'RepeatedStreamingRecognitionResult', | ||
| 152 | as ArrayRef[StreamingRecognitionResult()]; | ||
| 153 | |||
| 154 | coerce 'RepeatedStreamingRecognitionResult', | ||
| 155 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::V2::Session::StreamingRecognitionResult'->new($_) } @$_ ] }; | ||
| 156 | |||
| 157 | declare 'MapStringStreamingRecognitionResult', | ||
| 158 | as HashRef[StreamingRecognitionResult()]; | ||
| 159 | |||
| 160 | declare 'MessageType', | ||
| 161 | as (Int | Str); | ||
| 162 | |||
| 163 | declare 'TextInput', | ||
| 164 | as InstanceOf['Google::Cloud::Dialogflow::V2::Session::TextInput']; | ||
| 165 | |||
| 166 | coerce 'TextInput', | ||
| 167 | from HashRef, via { 'Google::Cloud::Dialogflow::V2::Session::TextInput'->new($_) }; | ||
| 168 | |||
| 169 | declare 'RepeatedTextInput', | ||
| 170 | as ArrayRef[TextInput()]; | ||
| 171 | |||
| 172 | coerce 'RepeatedTextInput', | ||
| 173 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::V2::Session::TextInput'->new($_) } @$_ ] }; | ||
| 174 | |||
| 175 | declare 'MapStringTextInput', | ||
| 176 | as HashRef[TextInput()]; | ||
| 177 | |||
| 178 | declare 'EventInput', | ||
| 179 | as InstanceOf['Google::Cloud::Dialogflow::V2::Session::EventInput']; | ||
| 180 | |||
| 181 | coerce 'EventInput', | ||
| 182 | from HashRef, via { 'Google::Cloud::Dialogflow::V2::Session::EventInput'->new($_) }; | ||
| 183 | |||
| 184 | declare 'RepeatedEventInput', | ||
| 185 | as ArrayRef[EventInput()]; | ||
| 186 | |||
| 187 | coerce 'RepeatedEventInput', | ||
| 188 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::V2::Session::EventInput'->new($_) } @$_ ] }; | ||
| 189 | |||
| 190 | declare 'MapStringEventInput', | ||
| 191 | as HashRef[EventInput()]; | ||
| 192 | |||
| 193 | declare 'SentimentAnalysisRequestConfig', | ||
| 194 | as InstanceOf['Google::Cloud::Dialogflow::V2::Session::SentimentAnalysisRequestConfig']; | ||
| 195 | |||
| 196 | coerce 'SentimentAnalysisRequestConfig', | ||
| 197 | from HashRef, via { 'Google::Cloud::Dialogflow::V2::Session::SentimentAnalysisRequestConfig'->new($_) }; | ||
| 198 | |||
| 199 | declare 'RepeatedSentimentAnalysisRequestConfig', | ||
| 200 | as ArrayRef[SentimentAnalysisRequestConfig()]; | ||
| 201 | |||
| 202 | coerce 'RepeatedSentimentAnalysisRequestConfig', | ||
| 203 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::V2::Session::SentimentAnalysisRequestConfig'->new($_) } @$_ ] }; | ||
| 204 | |||
| 205 | declare 'MapStringSentimentAnalysisRequestConfig', | ||
| 206 | as HashRef[SentimentAnalysisRequestConfig()]; | ||
| 207 | |||
| 208 | declare 'SentimentAnalysisResult', | ||
| 209 | as InstanceOf['Google::Cloud::Dialogflow::V2::Session::SentimentAnalysisResult']; | ||
| 210 | |||
| 211 | coerce 'SentimentAnalysisResult', | ||
| 212 | from HashRef, via { 'Google::Cloud::Dialogflow::V2::Session::SentimentAnalysisResult'->new($_) }; | ||
| 213 | |||
| 214 | declare 'RepeatedSentimentAnalysisResult', | ||
| 215 | as ArrayRef[SentimentAnalysisResult()]; | ||
| 216 | |||
| 217 | coerce 'RepeatedSentimentAnalysisResult', | ||
| 218 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::V2::Session::SentimentAnalysisResult'->new($_) } @$_ ] }; | ||
| 219 | |||
| 220 | declare 'MapStringSentimentAnalysisResult', | ||
| 221 | as HashRef[SentimentAnalysisResult()]; | ||
| 222 | |||
| 223 | declare 'Sentiment', | ||
| 224 | as InstanceOf['Google::Cloud::Dialogflow::V2::Session::Sentiment']; | ||
| 225 | |||
| 226 | coerce 'Sentiment', | ||
| 227 | from HashRef, via { 'Google::Cloud::Dialogflow::V2::Session::Sentiment'->new($_) }; | ||
| 228 | |||
| 229 | declare 'RepeatedSentiment', | ||
| 230 | as ArrayRef[Sentiment()]; | ||
| 231 | |||
| 232 | coerce 'RepeatedSentiment', | ||
| 233 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::V2::Session::Sentiment'->new($_) } @$_ ] }; | ||
| 234 | |||
| 235 | declare 'MapStringSentiment', | ||
| 236 | as HashRef[Sentiment()]; | ||
| 237 | |||
| 238 | 1; | ||
| 239 | |||
| 240 | __END__ |