| 1 | package Google::Cloud::Dialogflow::Cx::V3::Intent::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 'IntentView', | ||
| 11 | as (Int | Str); | ||
| 12 | |||
| 13 | declare 'Intent', | ||
| 14 | as InstanceOf['Google::Cloud::Dialogflow::Cx::V3::Intent::Intent']; | ||
| 15 | |||
| 16 | coerce 'Intent', | ||
| 17 | from HashRef, via { 'Google::Cloud::Dialogflow::Cx::V3::Intent::Intent'->new($_) }; | ||
| 18 | |||
| 19 | declare 'RepeatedIntent', | ||
| 20 | as ArrayRef[Intent()]; | ||
| 21 | |||
| 22 | coerce 'RepeatedIntent', | ||
| 23 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::Cx::V3::Intent::Intent'->new($_) } @$_ ] }; | ||
| 24 | |||
| 25 | declare 'MapStringIntent', | ||
| 26 | as HashRef[Intent()]; | ||
| 27 | |||
| 28 | declare 'TrainingPhrase', | ||
| 29 | as InstanceOf['Google::Cloud::Dialogflow::Cx::V3::Intent::Intent::TrainingPhrase']; | ||
| 30 | |||
| 31 | coerce 'TrainingPhrase', | ||
| 32 | from HashRef, via { 'Google::Cloud::Dialogflow::Cx::V3::Intent::Intent::TrainingPhrase'->new($_) }; | ||
| 33 | |||
| 34 | declare 'RepeatedTrainingPhrase', | ||
| 35 | as ArrayRef[TrainingPhrase()]; | ||
| 36 | |||
| 37 | coerce 'RepeatedTrainingPhrase', | ||
| 38 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::Cx::V3::Intent::Intent::TrainingPhrase'->new($_) } @$_ ] }; | ||
| 39 | |||
| 40 | declare 'MapStringTrainingPhrase', | ||
| 41 | as HashRef[TrainingPhrase()]; | ||
| 42 | |||
| 43 | declare 'Part', | ||
| 44 | as InstanceOf['Google::Cloud::Dialogflow::Cx::V3::Intent::Intent::TrainingPhrase::Part']; | ||
| 45 | |||
| 46 | coerce 'Part', | ||
| 47 | from HashRef, via { 'Google::Cloud::Dialogflow::Cx::V3::Intent::Intent::TrainingPhrase::Part'->new($_) }; | ||
| 48 | |||
| 49 | declare 'RepeatedPart', | ||
| 50 | as ArrayRef[Part()]; | ||
| 51 | |||
| 52 | coerce 'RepeatedPart', | ||
| 53 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::Cx::V3::Intent::Intent::TrainingPhrase::Part'->new($_) } @$_ ] }; | ||
| 54 | |||
| 55 | declare 'MapStringPart', | ||
| 56 | as HashRef[Part()]; | ||
| 57 | |||
| 58 | declare 'Parameter', | ||
| 59 | as InstanceOf['Google::Cloud::Dialogflow::Cx::V3::Intent::Intent::Parameter']; | ||
| 60 | |||
| 61 | coerce 'Parameter', | ||
| 62 | from HashRef, via { 'Google::Cloud::Dialogflow::Cx::V3::Intent::Intent::Parameter'->new($_) }; | ||
| 63 | |||
| 64 | declare 'RepeatedParameter', | ||
| 65 | as ArrayRef[Parameter()]; | ||
| 66 | |||
| 67 | coerce 'RepeatedParameter', | ||
| 68 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::Cx::V3::Intent::Intent::Parameter'->new($_) } @$_ ] }; | ||
| 69 | |||
| 70 | declare 'MapStringParameter', | ||
| 71 | as HashRef[Parameter()]; | ||
| 72 | |||
| 73 | declare 'LabelsEntry', | ||
| 74 | as InstanceOf['Google::Cloud::Dialogflow::Cx::V3::Intent::Intent::LabelsEntry']; | ||
| 75 | |||
| 76 | coerce 'LabelsEntry', | ||
| 77 | from HashRef, via { 'Google::Cloud::Dialogflow::Cx::V3::Intent::Intent::LabelsEntry'->new($_) }; | ||
| 78 | |||
| 79 | declare 'RepeatedLabelsEntry', | ||
| 80 | as ArrayRef[LabelsEntry()]; | ||
| 81 | |||
| 82 | coerce 'RepeatedLabelsEntry', | ||
| 83 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::Cx::V3::Intent::Intent::LabelsEntry'->new($_) } @$_ ] }; | ||
| 84 | |||
| 85 | declare 'MapStringLabelsEntry', | ||
| 86 | as HashRef[LabelsEntry()]; | ||
| 87 | |||
| 88 | declare 'ListIntentsRequest', | ||
| 89 | as InstanceOf['Google::Cloud::Dialogflow::Cx::V3::Intent::ListIntentsRequest']; | ||
| 90 | |||
| 91 | coerce 'ListIntentsRequest', | ||
| 92 | from HashRef, via { 'Google::Cloud::Dialogflow::Cx::V3::Intent::ListIntentsRequest'->new($_) }; | ||
| 93 | |||
| 94 | declare 'RepeatedListIntentsRequest', | ||
| 95 | as ArrayRef[ListIntentsRequest()]; | ||
| 96 | |||
| 97 | coerce 'RepeatedListIntentsRequest', | ||
| 98 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::Cx::V3::Intent::ListIntentsRequest'->new($_) } @$_ ] }; | ||
| 99 | |||
| 100 | declare 'MapStringListIntentsRequest', | ||
| 101 | as HashRef[ListIntentsRequest()]; | ||
| 102 | |||
| 103 | declare 'ListIntentsResponse', | ||
| 104 | as InstanceOf['Google::Cloud::Dialogflow::Cx::V3::Intent::ListIntentsResponse']; | ||
| 105 | |||
| 106 | coerce 'ListIntentsResponse', | ||
| 107 | from HashRef, via { 'Google::Cloud::Dialogflow::Cx::V3::Intent::ListIntentsResponse'->new($_) }; | ||
| 108 | |||
| 109 | declare 'RepeatedListIntentsResponse', | ||
| 110 | as ArrayRef[ListIntentsResponse()]; | ||
| 111 | |||
| 112 | coerce 'RepeatedListIntentsResponse', | ||
| 113 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::Cx::V3::Intent::ListIntentsResponse'->new($_) } @$_ ] }; | ||
| 114 | |||
| 115 | declare 'MapStringListIntentsResponse', | ||
| 116 | as HashRef[ListIntentsResponse()]; | ||
| 117 | |||
| 118 | declare 'GetIntentRequest', | ||
| 119 | as InstanceOf['Google::Cloud::Dialogflow::Cx::V3::Intent::GetIntentRequest']; | ||
| 120 | |||
| 121 | coerce 'GetIntentRequest', | ||
| 122 | from HashRef, via { 'Google::Cloud::Dialogflow::Cx::V3::Intent::GetIntentRequest'->new($_) }; | ||
| 123 | |||
| 124 | declare 'RepeatedGetIntentRequest', | ||
| 125 | as ArrayRef[GetIntentRequest()]; | ||
| 126 | |||
| 127 | coerce 'RepeatedGetIntentRequest', | ||
| 128 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::Cx::V3::Intent::GetIntentRequest'->new($_) } @$_ ] }; | ||
| 129 | |||
| 130 | declare 'MapStringGetIntentRequest', | ||
| 131 | as HashRef[GetIntentRequest()]; | ||
| 132 | |||
| 133 | declare 'CreateIntentRequest', | ||
| 134 | as InstanceOf['Google::Cloud::Dialogflow::Cx::V3::Intent::CreateIntentRequest']; | ||
| 135 | |||
| 136 | coerce 'CreateIntentRequest', | ||
| 137 | from HashRef, via { 'Google::Cloud::Dialogflow::Cx::V3::Intent::CreateIntentRequest'->new($_) }; | ||
| 138 | |||
| 139 | declare 'RepeatedCreateIntentRequest', | ||
| 140 | as ArrayRef[CreateIntentRequest()]; | ||
| 141 | |||
| 142 | coerce 'RepeatedCreateIntentRequest', | ||
| 143 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::Cx::V3::Intent::CreateIntentRequest'->new($_) } @$_ ] }; | ||
| 144 | |||
| 145 | declare 'MapStringCreateIntentRequest', | ||
| 146 | as HashRef[CreateIntentRequest()]; | ||
| 147 | |||
| 148 | declare 'UpdateIntentRequest', | ||
| 149 | as InstanceOf['Google::Cloud::Dialogflow::Cx::V3::Intent::UpdateIntentRequest']; | ||
| 150 | |||
| 151 | coerce 'UpdateIntentRequest', | ||
| 152 | from HashRef, via { 'Google::Cloud::Dialogflow::Cx::V3::Intent::UpdateIntentRequest'->new($_) }; | ||
| 153 | |||
| 154 | declare 'RepeatedUpdateIntentRequest', | ||
| 155 | as ArrayRef[UpdateIntentRequest()]; | ||
| 156 | |||
| 157 | coerce 'RepeatedUpdateIntentRequest', | ||
| 158 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::Cx::V3::Intent::UpdateIntentRequest'->new($_) } @$_ ] }; | ||
| 159 | |||
| 160 | declare 'MapStringUpdateIntentRequest', | ||
| 161 | as HashRef[UpdateIntentRequest()]; | ||
| 162 | |||
| 163 | declare 'DeleteIntentRequest', | ||
| 164 | as InstanceOf['Google::Cloud::Dialogflow::Cx::V3::Intent::DeleteIntentRequest']; | ||
| 165 | |||
| 166 | coerce 'DeleteIntentRequest', | ||
| 167 | from HashRef, via { 'Google::Cloud::Dialogflow::Cx::V3::Intent::DeleteIntentRequest'->new($_) }; | ||
| 168 | |||
| 169 | declare 'RepeatedDeleteIntentRequest', | ||
| 170 | as ArrayRef[DeleteIntentRequest()]; | ||
| 171 | |||
| 172 | coerce 'RepeatedDeleteIntentRequest', | ||
| 173 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::Cx::V3::Intent::DeleteIntentRequest'->new($_) } @$_ ] }; | ||
| 174 | |||
| 175 | declare 'MapStringDeleteIntentRequest', | ||
| 176 | as HashRef[DeleteIntentRequest()]; | ||
| 177 | |||
| 178 | declare 'ImportIntentsRequest', | ||
| 179 | as InstanceOf['Google::Cloud::Dialogflow::Cx::V3::Intent::ImportIntentsRequest']; | ||
| 180 | |||
| 181 | coerce 'ImportIntentsRequest', | ||
| 182 | from HashRef, via { 'Google::Cloud::Dialogflow::Cx::V3::Intent::ImportIntentsRequest'->new($_) }; | ||
| 183 | |||
| 184 | declare 'RepeatedImportIntentsRequest', | ||
| 185 | as ArrayRef[ImportIntentsRequest()]; | ||
| 186 | |||
| 187 | coerce 'RepeatedImportIntentsRequest', | ||
| 188 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::Cx::V3::Intent::ImportIntentsRequest'->new($_) } @$_ ] }; | ||
| 189 | |||
| 190 | declare 'MapStringImportIntentsRequest', | ||
| 191 | as HashRef[ImportIntentsRequest()]; | ||
| 192 | |||
| 193 | declare 'MergeOption', | ||
| 194 | as (Int | Str); | ||
| 195 | |||
| 196 | declare 'ImportIntentsResponse', | ||
| 197 | as InstanceOf['Google::Cloud::Dialogflow::Cx::V3::Intent::ImportIntentsResponse']; | ||
| 198 | |||
| 199 | coerce 'ImportIntentsResponse', | ||
| 200 | from HashRef, via { 'Google::Cloud::Dialogflow::Cx::V3::Intent::ImportIntentsResponse'->new($_) }; | ||
| 201 | |||
| 202 | declare 'RepeatedImportIntentsResponse', | ||
| 203 | as ArrayRef[ImportIntentsResponse()]; | ||
| 204 | |||
| 205 | coerce 'RepeatedImportIntentsResponse', | ||
| 206 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::Cx::V3::Intent::ImportIntentsResponse'->new($_) } @$_ ] }; | ||
| 207 | |||
| 208 | declare 'MapStringImportIntentsResponse', | ||
| 209 | as HashRef[ImportIntentsResponse()]; | ||
| 210 | |||
| 211 | declare 'ConflictingResources', | ||
| 212 | as InstanceOf['Google::Cloud::Dialogflow::Cx::V3::Intent::ImportIntentsResponse::ConflictingResources']; | ||
| 213 | |||
| 214 | coerce 'ConflictingResources', | ||
| 215 | from HashRef, via { 'Google::Cloud::Dialogflow::Cx::V3::Intent::ImportIntentsResponse::ConflictingResources'->new($_) }; | ||
| 216 | |||
| 217 | declare 'RepeatedConflictingResources', | ||
| 218 | as ArrayRef[ConflictingResources()]; | ||
| 219 | |||
| 220 | coerce 'RepeatedConflictingResources', | ||
| 221 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::Cx::V3::Intent::ImportIntentsResponse::ConflictingResources'->new($_) } @$_ ] }; | ||
| 222 | |||
| 223 | declare 'MapStringConflictingResources', | ||
| 224 | as HashRef[ConflictingResources()]; | ||
| 225 | |||
| 226 | declare 'ImportIntentsMetadata', | ||
| 227 | as InstanceOf['Google::Cloud::Dialogflow::Cx::V3::Intent::ImportIntentsMetadata']; | ||
| 228 | |||
| 229 | coerce 'ImportIntentsMetadata', | ||
| 230 | from HashRef, via { 'Google::Cloud::Dialogflow::Cx::V3::Intent::ImportIntentsMetadata'->new($_) }; | ||
| 231 | |||
| 232 | declare 'RepeatedImportIntentsMetadata', | ||
| 233 | as ArrayRef[ImportIntentsMetadata()]; | ||
| 234 | |||
| 235 | coerce 'RepeatedImportIntentsMetadata', | ||
| 236 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::Cx::V3::Intent::ImportIntentsMetadata'->new($_) } @$_ ] }; | ||
| 237 | |||
| 238 | declare 'MapStringImportIntentsMetadata', | ||
| 239 | as HashRef[ImportIntentsMetadata()]; | ||
| 240 | |||
| 241 | declare 'ExportIntentsRequest', | ||
| 242 | as InstanceOf['Google::Cloud::Dialogflow::Cx::V3::Intent::ExportIntentsRequest']; | ||
| 243 | |||
| 244 | coerce 'ExportIntentsRequest', | ||
| 245 | from HashRef, via { 'Google::Cloud::Dialogflow::Cx::V3::Intent::ExportIntentsRequest'->new($_) }; | ||
| 246 | |||
| 247 | declare 'RepeatedExportIntentsRequest', | ||
| 248 | as ArrayRef[ExportIntentsRequest()]; | ||
| 249 | |||
| 250 | coerce 'RepeatedExportIntentsRequest', | ||
| 251 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::Cx::V3::Intent::ExportIntentsRequest'->new($_) } @$_ ] }; | ||
| 252 | |||
| 253 | declare 'MapStringExportIntentsRequest', | ||
| 254 | as HashRef[ExportIntentsRequest()]; | ||
| 255 | |||
| 256 | declare 'DataFormat', | ||
| 257 | as (Int | Str); | ||
| 258 | |||
| 259 | declare 'ExportIntentsResponse', | ||
| 260 | as InstanceOf['Google::Cloud::Dialogflow::Cx::V3::Intent::ExportIntentsResponse']; | ||
| 261 | |||
| 262 | coerce 'ExportIntentsResponse', | ||
| 263 | from HashRef, via { 'Google::Cloud::Dialogflow::Cx::V3::Intent::ExportIntentsResponse'->new($_) }; | ||
| 264 | |||
| 265 | declare 'RepeatedExportIntentsResponse', | ||
| 266 | as ArrayRef[ExportIntentsResponse()]; | ||
| 267 | |||
| 268 | coerce 'RepeatedExportIntentsResponse', | ||
| 269 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::Cx::V3::Intent::ExportIntentsResponse'->new($_) } @$_ ] }; | ||
| 270 | |||
| 271 | declare 'MapStringExportIntentsResponse', | ||
| 272 | as HashRef[ExportIntentsResponse()]; | ||
| 273 | |||
| 274 | declare 'ExportIntentsMetadata', | ||
| 275 | as InstanceOf['Google::Cloud::Dialogflow::Cx::V3::Intent::ExportIntentsMetadata']; | ||
| 276 | |||
| 277 | coerce 'ExportIntentsMetadata', | ||
| 278 | from HashRef, via { 'Google::Cloud::Dialogflow::Cx::V3::Intent::ExportIntentsMetadata'->new($_) }; | ||
| 279 | |||
| 280 | declare 'RepeatedExportIntentsMetadata', | ||
| 281 | as ArrayRef[ExportIntentsMetadata()]; | ||
| 282 | |||
| 283 | coerce 'RepeatedExportIntentsMetadata', | ||
| 284 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::Cx::V3::Intent::ExportIntentsMetadata'->new($_) } @$_ ] }; | ||
| 285 | |||
| 286 | declare 'MapStringExportIntentsMetadata', | ||
| 287 | as HashRef[ExportIntentsMetadata()]; | ||
| 288 | |||
| 289 | 1; | ||
| 290 | |||
| 291 | __END__ |