| 1 | package Google::Cloud::Ces::V1beta::AssistantService::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 'AssistantSessionState', | ||
| 11 | as (Int | Str); | ||
| 12 | |||
| 13 | declare 'ListAssistantSessionsRequest', | ||
| 14 | as InstanceOf['Google::Cloud::Ces::V1beta::AssistantService::ListAssistantSessionsRequest']; | ||
| 15 | |||
| 16 | coerce 'ListAssistantSessionsRequest', | ||
| 17 | from HashRef, via { 'Google::Cloud::Ces::V1beta::AssistantService::ListAssistantSessionsRequest'->new($_) }; | ||
| 18 | |||
| 19 | declare 'RepeatedListAssistantSessionsRequest', | ||
| 20 | as ArrayRef[ListAssistantSessionsRequest()]; | ||
| 21 | |||
| 22 | coerce 'RepeatedListAssistantSessionsRequest', | ||
| 23 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Ces::V1beta::AssistantService::ListAssistantSessionsRequest'->new($_) } @$_ ] }; | ||
| 24 | |||
| 25 | declare 'MapStringListAssistantSessionsRequest', | ||
| 26 | as HashRef[ListAssistantSessionsRequest()]; | ||
| 27 | |||
| 28 | declare 'ListAssistantSessionsResponse', | ||
| 29 | as InstanceOf['Google::Cloud::Ces::V1beta::AssistantService::ListAssistantSessionsResponse']; | ||
| 30 | |||
| 31 | coerce 'ListAssistantSessionsResponse', | ||
| 32 | from HashRef, via { 'Google::Cloud::Ces::V1beta::AssistantService::ListAssistantSessionsResponse'->new($_) }; | ||
| 33 | |||
| 34 | declare 'RepeatedListAssistantSessionsResponse', | ||
| 35 | as ArrayRef[ListAssistantSessionsResponse()]; | ||
| 36 | |||
| 37 | coerce 'RepeatedListAssistantSessionsResponse', | ||
| 38 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Ces::V1beta::AssistantService::ListAssistantSessionsResponse'->new($_) } @$_ ] }; | ||
| 39 | |||
| 40 | declare 'MapStringListAssistantSessionsResponse', | ||
| 41 | as HashRef[ListAssistantSessionsResponse()]; | ||
| 42 | |||
| 43 | declare 'GetAssistantSessionRequest', | ||
| 44 | as InstanceOf['Google::Cloud::Ces::V1beta::AssistantService::GetAssistantSessionRequest']; | ||
| 45 | |||
| 46 | coerce 'GetAssistantSessionRequest', | ||
| 47 | from HashRef, via { 'Google::Cloud::Ces::V1beta::AssistantService::GetAssistantSessionRequest'->new($_) }; | ||
| 48 | |||
| 49 | declare 'RepeatedGetAssistantSessionRequest', | ||
| 50 | as ArrayRef[GetAssistantSessionRequest()]; | ||
| 51 | |||
| 52 | coerce 'RepeatedGetAssistantSessionRequest', | ||
| 53 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Ces::V1beta::AssistantService::GetAssistantSessionRequest'->new($_) } @$_ ] }; | ||
| 54 | |||
| 55 | declare 'MapStringGetAssistantSessionRequest', | ||
| 56 | as HashRef[GetAssistantSessionRequest()]; | ||
| 57 | |||
| 58 | declare 'CreateAssistantSessionRequest', | ||
| 59 | as InstanceOf['Google::Cloud::Ces::V1beta::AssistantService::CreateAssistantSessionRequest']; | ||
| 60 | |||
| 61 | coerce 'CreateAssistantSessionRequest', | ||
| 62 | from HashRef, via { 'Google::Cloud::Ces::V1beta::AssistantService::CreateAssistantSessionRequest'->new($_) }; | ||
| 63 | |||
| 64 | declare 'RepeatedCreateAssistantSessionRequest', | ||
| 65 | as ArrayRef[CreateAssistantSessionRequest()]; | ||
| 66 | |||
| 67 | coerce 'RepeatedCreateAssistantSessionRequest', | ||
| 68 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Ces::V1beta::AssistantService::CreateAssistantSessionRequest'->new($_) } @$_ ] }; | ||
| 69 | |||
| 70 | declare 'MapStringCreateAssistantSessionRequest', | ||
| 71 | as HashRef[CreateAssistantSessionRequest()]; | ||
| 72 | |||
| 73 | declare 'DeleteAssistantSessionRequest', | ||
| 74 | as InstanceOf['Google::Cloud::Ces::V1beta::AssistantService::DeleteAssistantSessionRequest']; | ||
| 75 | |||
| 76 | coerce 'DeleteAssistantSessionRequest', | ||
| 77 | from HashRef, via { 'Google::Cloud::Ces::V1beta::AssistantService::DeleteAssistantSessionRequest'->new($_) }; | ||
| 78 | |||
| 79 | declare 'RepeatedDeleteAssistantSessionRequest', | ||
| 80 | as ArrayRef[DeleteAssistantSessionRequest()]; | ||
| 81 | |||
| 82 | coerce 'RepeatedDeleteAssistantSessionRequest', | ||
| 83 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Ces::V1beta::AssistantService::DeleteAssistantSessionRequest'->new($_) } @$_ ] }; | ||
| 84 | |||
| 85 | declare 'MapStringDeleteAssistantSessionRequest', | ||
| 86 | as HashRef[DeleteAssistantSessionRequest()]; | ||
| 87 | |||
| 88 | declare 'RunAssistantRequest', | ||
| 89 | as InstanceOf['Google::Cloud::Ces::V1beta::AssistantService::RunAssistantRequest']; | ||
| 90 | |||
| 91 | coerce 'RunAssistantRequest', | ||
| 92 | from HashRef, via { 'Google::Cloud::Ces::V1beta::AssistantService::RunAssistantRequest'->new($_) }; | ||
| 93 | |||
| 94 | declare 'RepeatedRunAssistantRequest', | ||
| 95 | as ArrayRef[RunAssistantRequest()]; | ||
| 96 | |||
| 97 | coerce 'RepeatedRunAssistantRequest', | ||
| 98 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Ces::V1beta::AssistantService::RunAssistantRequest'->new($_) } @$_ ] }; | ||
| 99 | |||
| 100 | declare 'MapStringRunAssistantRequest', | ||
| 101 | as HashRef[RunAssistantRequest()]; | ||
| 102 | |||
| 103 | declare 'InteractionType', | ||
| 104 | as (Int | Str); | ||
| 105 | |||
| 106 | declare 'RunAssistantResponse', | ||
| 107 | as InstanceOf['Google::Cloud::Ces::V1beta::AssistantService::RunAssistantResponse']; | ||
| 108 | |||
| 109 | coerce 'RunAssistantResponse', | ||
| 110 | from HashRef, via { 'Google::Cloud::Ces::V1beta::AssistantService::RunAssistantResponse'->new($_) }; | ||
| 111 | |||
| 112 | declare 'RepeatedRunAssistantResponse', | ||
| 113 | as ArrayRef[RunAssistantResponse()]; | ||
| 114 | |||
| 115 | coerce 'RepeatedRunAssistantResponse', | ||
| 116 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Ces::V1beta::AssistantService::RunAssistantResponse'->new($_) } @$_ ] }; | ||
| 117 | |||
| 118 | declare 'MapStringRunAssistantResponse', | ||
| 119 | as HashRef[RunAssistantResponse()]; | ||
| 120 | |||
| 121 | declare 'AssistantSession', | ||
| 122 | as InstanceOf['Google::Cloud::Ces::V1beta::AssistantService::AssistantSession']; | ||
| 123 | |||
| 124 | coerce 'AssistantSession', | ||
| 125 | from HashRef, via { 'Google::Cloud::Ces::V1beta::AssistantService::AssistantSession'->new($_) }; | ||
| 126 | |||
| 127 | declare 'RepeatedAssistantSession', | ||
| 128 | as ArrayRef[AssistantSession()]; | ||
| 129 | |||
| 130 | coerce 'RepeatedAssistantSession', | ||
| 131 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Ces::V1beta::AssistantService::AssistantSession'->new($_) } @$_ ] }; | ||
| 132 | |||
| 133 | declare 'MapStringAssistantSession', | ||
| 134 | as HashRef[AssistantSession()]; | ||
| 135 | |||
| 136 | declare 'ActiveTurnInfo', | ||
| 137 | as InstanceOf['Google::Cloud::Ces::V1beta::AssistantService::ActiveTurnInfo']; | ||
| 138 | |||
| 139 | coerce 'ActiveTurnInfo', | ||
| 140 | from HashRef, via { 'Google::Cloud::Ces::V1beta::AssistantService::ActiveTurnInfo'->new($_) }; | ||
| 141 | |||
| 142 | declare 'RepeatedActiveTurnInfo', | ||
| 143 | as ArrayRef[ActiveTurnInfo()]; | ||
| 144 | |||
| 145 | coerce 'RepeatedActiveTurnInfo', | ||
| 146 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Ces::V1beta::AssistantService::ActiveTurnInfo'->new($_) } @$_ ] }; | ||
| 147 | |||
| 148 | declare 'MapStringActiveTurnInfo', | ||
| 149 | as HashRef[ActiveTurnInfo()]; | ||
| 150 | |||
| 151 | declare 'Status', | ||
| 152 | as (Int | Str); | ||
| 153 | |||
| 154 | declare 'AssistantSessionArtifact', | ||
| 155 | as InstanceOf['Google::Cloud::Ces::V1beta::AssistantService::AssistantSessionArtifact']; | ||
| 156 | |||
| 157 | coerce 'AssistantSessionArtifact', | ||
| 158 | from HashRef, via { 'Google::Cloud::Ces::V1beta::AssistantService::AssistantSessionArtifact'->new($_) }; | ||
| 159 | |||
| 160 | declare 'RepeatedAssistantSessionArtifact', | ||
| 161 | as ArrayRef[AssistantSessionArtifact()]; | ||
| 162 | |||
| 163 | coerce 'RepeatedAssistantSessionArtifact', | ||
| 164 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Ces::V1beta::AssistantService::AssistantSessionArtifact'->new($_) } @$_ ] }; | ||
| 165 | |||
| 166 | declare 'MapStringAssistantSessionArtifact', | ||
| 167 | as HashRef[AssistantSessionArtifact()]; | ||
| 168 | |||
| 169 | declare 'AssistantChunk', | ||
| 170 | as InstanceOf['Google::Cloud::Ces::V1beta::AssistantService::AssistantChunk']; | ||
| 171 | |||
| 172 | coerce 'AssistantChunk', | ||
| 173 | from HashRef, via { 'Google::Cloud::Ces::V1beta::AssistantService::AssistantChunk'->new($_) }; | ||
| 174 | |||
| 175 | declare 'RepeatedAssistantChunk', | ||
| 176 | as ArrayRef[AssistantChunk()]; | ||
| 177 | |||
| 178 | coerce 'RepeatedAssistantChunk', | ||
| 179 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Ces::V1beta::AssistantService::AssistantChunk'->new($_) } @$_ ] }; | ||
| 180 | |||
| 181 | declare 'MapStringAssistantChunk', | ||
| 182 | as HashRef[AssistantChunk()]; | ||
| 183 | |||
| 184 | declare 'AssistantOutput', | ||
| 185 | as InstanceOf['Google::Cloud::Ces::V1beta::AssistantService::AssistantOutput']; | ||
| 186 | |||
| 187 | coerce 'AssistantOutput', | ||
| 188 | from HashRef, via { 'Google::Cloud::Ces::V1beta::AssistantService::AssistantOutput'->new($_) }; | ||
| 189 | |||
| 190 | declare 'RepeatedAssistantOutput', | ||
| 191 | as ArrayRef[AssistantOutput()]; | ||
| 192 | |||
| 193 | coerce 'RepeatedAssistantOutput', | ||
| 194 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Ces::V1beta::AssistantService::AssistantOutput'->new($_) } @$_ ] }; | ||
| 195 | |||
| 196 | declare 'MapStringAssistantOutput', | ||
| 197 | as HashRef[AssistantOutput()]; | ||
| 198 | |||
| 199 | declare 'AssistantMessage', | ||
| 200 | as InstanceOf['Google::Cloud::Ces::V1beta::AssistantService::AssistantMessage']; | ||
| 201 | |||
| 202 | coerce 'AssistantMessage', | ||
| 203 | from HashRef, via { 'Google::Cloud::Ces::V1beta::AssistantService::AssistantMessage'->new($_) }; | ||
| 204 | |||
| 205 | declare 'RepeatedAssistantMessage', | ||
| 206 | as ArrayRef[AssistantMessage()]; | ||
| 207 | |||
| 208 | coerce 'RepeatedAssistantMessage', | ||
| 209 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Ces::V1beta::AssistantService::AssistantMessage'->new($_) } @$_ ] }; | ||
| 210 | |||
| 211 | declare 'MapStringAssistantMessage', | ||
| 212 | as HashRef[AssistantMessage()]; | ||
| 213 | |||
| 214 | declare 'TypedPayload', | ||
| 215 | as InstanceOf['Google::Cloud::Ces::V1beta::AssistantService::TypedPayload']; | ||
| 216 | |||
| 217 | coerce 'TypedPayload', | ||
| 218 | from HashRef, via { 'Google::Cloud::Ces::V1beta::AssistantService::TypedPayload'->new($_) }; | ||
| 219 | |||
| 220 | declare 'RepeatedTypedPayload', | ||
| 221 | as ArrayRef[TypedPayload()]; | ||
| 222 | |||
| 223 | coerce 'RepeatedTypedPayload', | ||
| 224 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Ces::V1beta::AssistantService::TypedPayload'->new($_) } @$_ ] }; | ||
| 225 | |||
| 226 | declare 'MapStringTypedPayload', | ||
| 227 | as HashRef[TypedPayload()]; | ||
| 228 | |||
| 229 | declare 'UserResponseSuggestions', | ||
| 230 | as InstanceOf['Google::Cloud::Ces::V1beta::AssistantService::UserResponseSuggestions']; | ||
| 231 | |||
| 232 | coerce 'UserResponseSuggestions', | ||
| 233 | from HashRef, via { 'Google::Cloud::Ces::V1beta::AssistantService::UserResponseSuggestions'->new($_) }; | ||
| 234 | |||
| 235 | declare 'RepeatedUserResponseSuggestions', | ||
| 236 | as ArrayRef[UserResponseSuggestions()]; | ||
| 237 | |||
| 238 | coerce 'RepeatedUserResponseSuggestions', | ||
| 239 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Ces::V1beta::AssistantService::UserResponseSuggestions'->new($_) } @$_ ] }; | ||
| 240 | |||
| 241 | declare 'MapStringUserResponseSuggestions', | ||
| 242 | as HashRef[UserResponseSuggestions()]; | ||
| 243 | |||
| 244 | declare 'ChatAiAssistantRequest', | ||
| 245 | as InstanceOf['Google::Cloud::Ces::V1beta::AssistantService::ChatAiAssistantRequest']; | ||
| 246 | |||
| 247 | coerce 'ChatAiAssistantRequest', | ||
| 248 | from HashRef, via { 'Google::Cloud::Ces::V1beta::AssistantService::ChatAiAssistantRequest'->new($_) }; | ||
| 249 | |||
| 250 | declare 'RepeatedChatAiAssistantRequest', | ||
| 251 | as ArrayRef[ChatAiAssistantRequest()]; | ||
| 252 | |||
| 253 | coerce 'RepeatedChatAiAssistantRequest', | ||
| 254 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Ces::V1beta::AssistantService::ChatAiAssistantRequest'->new($_) } @$_ ] }; | ||
| 255 | |||
| 256 | declare 'MapStringChatAiAssistantRequest', | ||
| 257 | as HashRef[ChatAiAssistantRequest()]; | ||
| 258 | |||
| 259 | declare 'ChatAiAssistantResponse', | ||
| 260 | as InstanceOf['Google::Cloud::Ces::V1beta::AssistantService::ChatAiAssistantResponse']; | ||
| 261 | |||
| 262 | coerce 'ChatAiAssistantResponse', | ||
| 263 | from HashRef, via { 'Google::Cloud::Ces::V1beta::AssistantService::ChatAiAssistantResponse'->new($_) }; | ||
| 264 | |||
| 265 | declare 'RepeatedChatAiAssistantResponse', | ||
| 266 | as ArrayRef[ChatAiAssistantResponse()]; | ||
| 267 | |||
| 268 | coerce 'RepeatedChatAiAssistantResponse', | ||
| 269 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Ces::V1beta::AssistantService::ChatAiAssistantResponse'->new($_) } @$_ ] }; | ||
| 270 | |||
| 271 | declare 'MapStringChatAiAssistantResponse', | ||
| 272 | as HashRef[ChatAiAssistantResponse()]; | ||
| 273 | |||
| 274 | 1; | ||
| 275 | |||
| 276 | __END__ |