| 1 | package Google::Cloud::Dialogflow::Cx::V3::Flow::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 'NluSettings', | ||
| 11 | as InstanceOf['Google::Cloud::Dialogflow::Cx::V3::Flow::NluSettings']; | ||
| 12 | |||
| 13 | coerce 'NluSettings', | ||
| 14 | from HashRef, via { 'Google::Cloud::Dialogflow::Cx::V3::Flow::NluSettings'->new($_) }; | ||
| 15 | |||
| 16 | declare 'RepeatedNluSettings', | ||
| 17 | as ArrayRef[NluSettings()]; | ||
| 18 | |||
| 19 | coerce 'RepeatedNluSettings', | ||
| 20 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::Cx::V3::Flow::NluSettings'->new($_) } @$_ ] }; | ||
| 21 | |||
| 22 | declare 'MapStringNluSettings', | ||
| 23 | as HashRef[NluSettings()]; | ||
| 24 | |||
| 25 | declare 'ModelType', | ||
| 26 | as (Int | Str); | ||
| 27 | |||
| 28 | declare 'ModelTrainingMode', | ||
| 29 | as (Int | Str); | ||
| 30 | |||
| 31 | declare 'Flow', | ||
| 32 | as InstanceOf['Google::Cloud::Dialogflow::Cx::V3::Flow::Flow']; | ||
| 33 | |||
| 34 | coerce 'Flow', | ||
| 35 | from HashRef, via { 'Google::Cloud::Dialogflow::Cx::V3::Flow::Flow'->new($_) }; | ||
| 36 | |||
| 37 | declare 'RepeatedFlow', | ||
| 38 | as ArrayRef[Flow()]; | ||
| 39 | |||
| 40 | coerce 'RepeatedFlow', | ||
| 41 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::Cx::V3::Flow::Flow'->new($_) } @$_ ] }; | ||
| 42 | |||
| 43 | declare 'MapStringFlow', | ||
| 44 | as HashRef[Flow()]; | ||
| 45 | |||
| 46 | declare 'MultiLanguageSettings', | ||
| 47 | as InstanceOf['Google::Cloud::Dialogflow::Cx::V3::Flow::Flow::MultiLanguageSettings']; | ||
| 48 | |||
| 49 | coerce 'MultiLanguageSettings', | ||
| 50 | from HashRef, via { 'Google::Cloud::Dialogflow::Cx::V3::Flow::Flow::MultiLanguageSettings'->new($_) }; | ||
| 51 | |||
| 52 | declare 'RepeatedMultiLanguageSettings', | ||
| 53 | as ArrayRef[MultiLanguageSettings()]; | ||
| 54 | |||
| 55 | coerce 'RepeatedMultiLanguageSettings', | ||
| 56 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::Cx::V3::Flow::Flow::MultiLanguageSettings'->new($_) } @$_ ] }; | ||
| 57 | |||
| 58 | declare 'MapStringMultiLanguageSettings', | ||
| 59 | as HashRef[MultiLanguageSettings()]; | ||
| 60 | |||
| 61 | declare 'CreateFlowRequest', | ||
| 62 | as InstanceOf['Google::Cloud::Dialogflow::Cx::V3::Flow::CreateFlowRequest']; | ||
| 63 | |||
| 64 | coerce 'CreateFlowRequest', | ||
| 65 | from HashRef, via { 'Google::Cloud::Dialogflow::Cx::V3::Flow::CreateFlowRequest'->new($_) }; | ||
| 66 | |||
| 67 | declare 'RepeatedCreateFlowRequest', | ||
| 68 | as ArrayRef[CreateFlowRequest()]; | ||
| 69 | |||
| 70 | coerce 'RepeatedCreateFlowRequest', | ||
| 71 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::Cx::V3::Flow::CreateFlowRequest'->new($_) } @$_ ] }; | ||
| 72 | |||
| 73 | declare 'MapStringCreateFlowRequest', | ||
| 74 | as HashRef[CreateFlowRequest()]; | ||
| 75 | |||
| 76 | declare 'DeleteFlowRequest', | ||
| 77 | as InstanceOf['Google::Cloud::Dialogflow::Cx::V3::Flow::DeleteFlowRequest']; | ||
| 78 | |||
| 79 | coerce 'DeleteFlowRequest', | ||
| 80 | from HashRef, via { 'Google::Cloud::Dialogflow::Cx::V3::Flow::DeleteFlowRequest'->new($_) }; | ||
| 81 | |||
| 82 | declare 'RepeatedDeleteFlowRequest', | ||
| 83 | as ArrayRef[DeleteFlowRequest()]; | ||
| 84 | |||
| 85 | coerce 'RepeatedDeleteFlowRequest', | ||
| 86 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::Cx::V3::Flow::DeleteFlowRequest'->new($_) } @$_ ] }; | ||
| 87 | |||
| 88 | declare 'MapStringDeleteFlowRequest', | ||
| 89 | as HashRef[DeleteFlowRequest()]; | ||
| 90 | |||
| 91 | declare 'ListFlowsRequest', | ||
| 92 | as InstanceOf['Google::Cloud::Dialogflow::Cx::V3::Flow::ListFlowsRequest']; | ||
| 93 | |||
| 94 | coerce 'ListFlowsRequest', | ||
| 95 | from HashRef, via { 'Google::Cloud::Dialogflow::Cx::V3::Flow::ListFlowsRequest'->new($_) }; | ||
| 96 | |||
| 97 | declare 'RepeatedListFlowsRequest', | ||
| 98 | as ArrayRef[ListFlowsRequest()]; | ||
| 99 | |||
| 100 | coerce 'RepeatedListFlowsRequest', | ||
| 101 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::Cx::V3::Flow::ListFlowsRequest'->new($_) } @$_ ] }; | ||
| 102 | |||
| 103 | declare 'MapStringListFlowsRequest', | ||
| 104 | as HashRef[ListFlowsRequest()]; | ||
| 105 | |||
| 106 | declare 'ListFlowsResponse', | ||
| 107 | as InstanceOf['Google::Cloud::Dialogflow::Cx::V3::Flow::ListFlowsResponse']; | ||
| 108 | |||
| 109 | coerce 'ListFlowsResponse', | ||
| 110 | from HashRef, via { 'Google::Cloud::Dialogflow::Cx::V3::Flow::ListFlowsResponse'->new($_) }; | ||
| 111 | |||
| 112 | declare 'RepeatedListFlowsResponse', | ||
| 113 | as ArrayRef[ListFlowsResponse()]; | ||
| 114 | |||
| 115 | coerce 'RepeatedListFlowsResponse', | ||
| 116 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::Cx::V3::Flow::ListFlowsResponse'->new($_) } @$_ ] }; | ||
| 117 | |||
| 118 | declare 'MapStringListFlowsResponse', | ||
| 119 | as HashRef[ListFlowsResponse()]; | ||
| 120 | |||
| 121 | declare 'GetFlowRequest', | ||
| 122 | as InstanceOf['Google::Cloud::Dialogflow::Cx::V3::Flow::GetFlowRequest']; | ||
| 123 | |||
| 124 | coerce 'GetFlowRequest', | ||
| 125 | from HashRef, via { 'Google::Cloud::Dialogflow::Cx::V3::Flow::GetFlowRequest'->new($_) }; | ||
| 126 | |||
| 127 | declare 'RepeatedGetFlowRequest', | ||
| 128 | as ArrayRef[GetFlowRequest()]; | ||
| 129 | |||
| 130 | coerce 'RepeatedGetFlowRequest', | ||
| 131 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::Cx::V3::Flow::GetFlowRequest'->new($_) } @$_ ] }; | ||
| 132 | |||
| 133 | declare 'MapStringGetFlowRequest', | ||
| 134 | as HashRef[GetFlowRequest()]; | ||
| 135 | |||
| 136 | declare 'UpdateFlowRequest', | ||
| 137 | as InstanceOf['Google::Cloud::Dialogflow::Cx::V3::Flow::UpdateFlowRequest']; | ||
| 138 | |||
| 139 | coerce 'UpdateFlowRequest', | ||
| 140 | from HashRef, via { 'Google::Cloud::Dialogflow::Cx::V3::Flow::UpdateFlowRequest'->new($_) }; | ||
| 141 | |||
| 142 | declare 'RepeatedUpdateFlowRequest', | ||
| 143 | as ArrayRef[UpdateFlowRequest()]; | ||
| 144 | |||
| 145 | coerce 'RepeatedUpdateFlowRequest', | ||
| 146 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::Cx::V3::Flow::UpdateFlowRequest'->new($_) } @$_ ] }; | ||
| 147 | |||
| 148 | declare 'MapStringUpdateFlowRequest', | ||
| 149 | as HashRef[UpdateFlowRequest()]; | ||
| 150 | |||
| 151 | declare 'TrainFlowRequest', | ||
| 152 | as InstanceOf['Google::Cloud::Dialogflow::Cx::V3::Flow::TrainFlowRequest']; | ||
| 153 | |||
| 154 | coerce 'TrainFlowRequest', | ||
| 155 | from HashRef, via { 'Google::Cloud::Dialogflow::Cx::V3::Flow::TrainFlowRequest'->new($_) }; | ||
| 156 | |||
| 157 | declare 'RepeatedTrainFlowRequest', | ||
| 158 | as ArrayRef[TrainFlowRequest()]; | ||
| 159 | |||
| 160 | coerce 'RepeatedTrainFlowRequest', | ||
| 161 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::Cx::V3::Flow::TrainFlowRequest'->new($_) } @$_ ] }; | ||
| 162 | |||
| 163 | declare 'MapStringTrainFlowRequest', | ||
| 164 | as HashRef[TrainFlowRequest()]; | ||
| 165 | |||
| 166 | declare 'ValidateFlowRequest', | ||
| 167 | as InstanceOf['Google::Cloud::Dialogflow::Cx::V3::Flow::ValidateFlowRequest']; | ||
| 168 | |||
| 169 | coerce 'ValidateFlowRequest', | ||
| 170 | from HashRef, via { 'Google::Cloud::Dialogflow::Cx::V3::Flow::ValidateFlowRequest'->new($_) }; | ||
| 171 | |||
| 172 | declare 'RepeatedValidateFlowRequest', | ||
| 173 | as ArrayRef[ValidateFlowRequest()]; | ||
| 174 | |||
| 175 | coerce 'RepeatedValidateFlowRequest', | ||
| 176 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::Cx::V3::Flow::ValidateFlowRequest'->new($_) } @$_ ] }; | ||
| 177 | |||
| 178 | declare 'MapStringValidateFlowRequest', | ||
| 179 | as HashRef[ValidateFlowRequest()]; | ||
| 180 | |||
| 181 | declare 'GetFlowValidationResultRequest', | ||
| 182 | as InstanceOf['Google::Cloud::Dialogflow::Cx::V3::Flow::GetFlowValidationResultRequest']; | ||
| 183 | |||
| 184 | coerce 'GetFlowValidationResultRequest', | ||
| 185 | from HashRef, via { 'Google::Cloud::Dialogflow::Cx::V3::Flow::GetFlowValidationResultRequest'->new($_) }; | ||
| 186 | |||
| 187 | declare 'RepeatedGetFlowValidationResultRequest', | ||
| 188 | as ArrayRef[GetFlowValidationResultRequest()]; | ||
| 189 | |||
| 190 | coerce 'RepeatedGetFlowValidationResultRequest', | ||
| 191 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::Cx::V3::Flow::GetFlowValidationResultRequest'->new($_) } @$_ ] }; | ||
| 192 | |||
| 193 | declare 'MapStringGetFlowValidationResultRequest', | ||
| 194 | as HashRef[GetFlowValidationResultRequest()]; | ||
| 195 | |||
| 196 | declare 'FlowValidationResult', | ||
| 197 | as InstanceOf['Google::Cloud::Dialogflow::Cx::V3::Flow::FlowValidationResult']; | ||
| 198 | |||
| 199 | coerce 'FlowValidationResult', | ||
| 200 | from HashRef, via { 'Google::Cloud::Dialogflow::Cx::V3::Flow::FlowValidationResult'->new($_) }; | ||
| 201 | |||
| 202 | declare 'RepeatedFlowValidationResult', | ||
| 203 | as ArrayRef[FlowValidationResult()]; | ||
| 204 | |||
| 205 | coerce 'RepeatedFlowValidationResult', | ||
| 206 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::Cx::V3::Flow::FlowValidationResult'->new($_) } @$_ ] }; | ||
| 207 | |||
| 208 | declare 'MapStringFlowValidationResult', | ||
| 209 | as HashRef[FlowValidationResult()]; | ||
| 210 | |||
| 211 | declare 'ImportFlowRequest', | ||
| 212 | as InstanceOf['Google::Cloud::Dialogflow::Cx::V3::Flow::ImportFlowRequest']; | ||
| 213 | |||
| 214 | coerce 'ImportFlowRequest', | ||
| 215 | from HashRef, via { 'Google::Cloud::Dialogflow::Cx::V3::Flow::ImportFlowRequest'->new($_) }; | ||
| 216 | |||
| 217 | declare 'RepeatedImportFlowRequest', | ||
| 218 | as ArrayRef[ImportFlowRequest()]; | ||
| 219 | |||
| 220 | coerce 'RepeatedImportFlowRequest', | ||
| 221 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::Cx::V3::Flow::ImportFlowRequest'->new($_) } @$_ ] }; | ||
| 222 | |||
| 223 | declare 'MapStringImportFlowRequest', | ||
| 224 | as HashRef[ImportFlowRequest()]; | ||
| 225 | |||
| 226 | declare 'ImportOption', | ||
| 227 | as (Int | Str); | ||
| 228 | |||
| 229 | declare 'FlowImportStrategy', | ||
| 230 | as InstanceOf['Google::Cloud::Dialogflow::Cx::V3::Flow::FlowImportStrategy']; | ||
| 231 | |||
| 232 | coerce 'FlowImportStrategy', | ||
| 233 | from HashRef, via { 'Google::Cloud::Dialogflow::Cx::V3::Flow::FlowImportStrategy'->new($_) }; | ||
| 234 | |||
| 235 | declare 'RepeatedFlowImportStrategy', | ||
| 236 | as ArrayRef[FlowImportStrategy()]; | ||
| 237 | |||
| 238 | coerce 'RepeatedFlowImportStrategy', | ||
| 239 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::Cx::V3::Flow::FlowImportStrategy'->new($_) } @$_ ] }; | ||
| 240 | |||
| 241 | declare 'MapStringFlowImportStrategy', | ||
| 242 | as HashRef[FlowImportStrategy()]; | ||
| 243 | |||
| 244 | declare 'ImportFlowResponse', | ||
| 245 | as InstanceOf['Google::Cloud::Dialogflow::Cx::V3::Flow::ImportFlowResponse']; | ||
| 246 | |||
| 247 | coerce 'ImportFlowResponse', | ||
| 248 | from HashRef, via { 'Google::Cloud::Dialogflow::Cx::V3::Flow::ImportFlowResponse'->new($_) }; | ||
| 249 | |||
| 250 | declare 'RepeatedImportFlowResponse', | ||
| 251 | as ArrayRef[ImportFlowResponse()]; | ||
| 252 | |||
| 253 | coerce 'RepeatedImportFlowResponse', | ||
| 254 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::Cx::V3::Flow::ImportFlowResponse'->new($_) } @$_ ] }; | ||
| 255 | |||
| 256 | declare 'MapStringImportFlowResponse', | ||
| 257 | as HashRef[ImportFlowResponse()]; | ||
| 258 | |||
| 259 | declare 'ExportFlowRequest', | ||
| 260 | as InstanceOf['Google::Cloud::Dialogflow::Cx::V3::Flow::ExportFlowRequest']; | ||
| 261 | |||
| 262 | coerce 'ExportFlowRequest', | ||
| 263 | from HashRef, via { 'Google::Cloud::Dialogflow::Cx::V3::Flow::ExportFlowRequest'->new($_) }; | ||
| 264 | |||
| 265 | declare 'RepeatedExportFlowRequest', | ||
| 266 | as ArrayRef[ExportFlowRequest()]; | ||
| 267 | |||
| 268 | coerce 'RepeatedExportFlowRequest', | ||
| 269 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::Cx::V3::Flow::ExportFlowRequest'->new($_) } @$_ ] }; | ||
| 270 | |||
| 271 | declare 'MapStringExportFlowRequest', | ||
| 272 | as HashRef[ExportFlowRequest()]; | ||
| 273 | |||
| 274 | declare 'ExportFlowResponse', | ||
| 275 | as InstanceOf['Google::Cloud::Dialogflow::Cx::V3::Flow::ExportFlowResponse']; | ||
| 276 | |||
| 277 | coerce 'ExportFlowResponse', | ||
| 278 | from HashRef, via { 'Google::Cloud::Dialogflow::Cx::V3::Flow::ExportFlowResponse'->new($_) }; | ||
| 279 | |||
| 280 | declare 'RepeatedExportFlowResponse', | ||
| 281 | as ArrayRef[ExportFlowResponse()]; | ||
| 282 | |||
| 283 | coerce 'RepeatedExportFlowResponse', | ||
| 284 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::Cx::V3::Flow::ExportFlowResponse'->new($_) } @$_ ] }; | ||
| 285 | |||
| 286 | declare 'MapStringExportFlowResponse', | ||
| 287 | as HashRef[ExportFlowResponse()]; | ||
| 288 | |||
| 289 | 1; | ||
| 290 | |||
| 291 | __END__ |