| 1 | package Google::Cloud::Dialogflow::Cx::V3beta1::Experiment::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 'Experiment', | ||
| 11 | as InstanceOf['Google::Cloud::Dialogflow::Cx::V3beta1::Experiment::Experiment']; | ||
| 12 | |||
| 13 | coerce 'Experiment', | ||
| 14 | from HashRef, via { 'Google::Cloud::Dialogflow::Cx::V3beta1::Experiment::Experiment'->new($_) }; | ||
| 15 | |||
| 16 | declare 'RepeatedExperiment', | ||
| 17 | as ArrayRef[Experiment()]; | ||
| 18 | |||
| 19 | coerce 'RepeatedExperiment', | ||
| 20 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::Cx::V3beta1::Experiment::Experiment'->new($_) } @$_ ] }; | ||
| 21 | |||
| 22 | declare 'MapStringExperiment', | ||
| 23 | as HashRef[Experiment()]; | ||
| 24 | |||
| 25 | declare 'State', | ||
| 26 | as (Int | Str); | ||
| 27 | |||
| 28 | declare 'Definition', | ||
| 29 | as InstanceOf['Google::Cloud::Dialogflow::Cx::V3beta1::Experiment::Experiment::Definition']; | ||
| 30 | |||
| 31 | coerce 'Definition', | ||
| 32 | from HashRef, via { 'Google::Cloud::Dialogflow::Cx::V3beta1::Experiment::Experiment::Definition'->new($_) }; | ||
| 33 | |||
| 34 | declare 'RepeatedDefinition', | ||
| 35 | as ArrayRef[Definition()]; | ||
| 36 | |||
| 37 | coerce 'RepeatedDefinition', | ||
| 38 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::Cx::V3beta1::Experiment::Experiment::Definition'->new($_) } @$_ ] }; | ||
| 39 | |||
| 40 | declare 'MapStringDefinition', | ||
| 41 | as HashRef[Definition()]; | ||
| 42 | |||
| 43 | declare 'Result', | ||
| 44 | as InstanceOf['Google::Cloud::Dialogflow::Cx::V3beta1::Experiment::Experiment::Result']; | ||
| 45 | |||
| 46 | coerce 'Result', | ||
| 47 | from HashRef, via { 'Google::Cloud::Dialogflow::Cx::V3beta1::Experiment::Experiment::Result'->new($_) }; | ||
| 48 | |||
| 49 | declare 'RepeatedResult', | ||
| 50 | as ArrayRef[Result()]; | ||
| 51 | |||
| 52 | coerce 'RepeatedResult', | ||
| 53 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::Cx::V3beta1::Experiment::Experiment::Result'->new($_) } @$_ ] }; | ||
| 54 | |||
| 55 | declare 'MapStringResult', | ||
| 56 | as HashRef[Result()]; | ||
| 57 | |||
| 58 | declare 'MetricType', | ||
| 59 | as (Int | Str); | ||
| 60 | |||
| 61 | declare 'CountType', | ||
| 62 | as (Int | Str); | ||
| 63 | |||
| 64 | declare 'ConfidenceInterval', | ||
| 65 | as InstanceOf['Google::Cloud::Dialogflow::Cx::V3beta1::Experiment::Experiment::Result::ConfidenceInterval']; | ||
| 66 | |||
| 67 | coerce 'ConfidenceInterval', | ||
| 68 | from HashRef, via { 'Google::Cloud::Dialogflow::Cx::V3beta1::Experiment::Experiment::Result::ConfidenceInterval'->new($_) }; | ||
| 69 | |||
| 70 | declare 'RepeatedConfidenceInterval', | ||
| 71 | as ArrayRef[ConfidenceInterval()]; | ||
| 72 | |||
| 73 | coerce 'RepeatedConfidenceInterval', | ||
| 74 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::Cx::V3beta1::Experiment::Experiment::Result::ConfidenceInterval'->new($_) } @$_ ] }; | ||
| 75 | |||
| 76 | declare 'MapStringConfidenceInterval', | ||
| 77 | as HashRef[ConfidenceInterval()]; | ||
| 78 | |||
| 79 | declare 'Metric', | ||
| 80 | as InstanceOf['Google::Cloud::Dialogflow::Cx::V3beta1::Experiment::Experiment::Result::Metric']; | ||
| 81 | |||
| 82 | coerce 'Metric', | ||
| 83 | from HashRef, via { 'Google::Cloud::Dialogflow::Cx::V3beta1::Experiment::Experiment::Result::Metric'->new($_) }; | ||
| 84 | |||
| 85 | declare 'RepeatedMetric', | ||
| 86 | as ArrayRef[Metric()]; | ||
| 87 | |||
| 88 | coerce 'RepeatedMetric', | ||
| 89 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::Cx::V3beta1::Experiment::Experiment::Result::Metric'->new($_) } @$_ ] }; | ||
| 90 | |||
| 91 | declare 'MapStringMetric', | ||
| 92 | as HashRef[Metric()]; | ||
| 93 | |||
| 94 | declare 'VersionMetrics', | ||
| 95 | as InstanceOf['Google::Cloud::Dialogflow::Cx::V3beta1::Experiment::Experiment::Result::VersionMetrics']; | ||
| 96 | |||
| 97 | coerce 'VersionMetrics', | ||
| 98 | from HashRef, via { 'Google::Cloud::Dialogflow::Cx::V3beta1::Experiment::Experiment::Result::VersionMetrics'->new($_) }; | ||
| 99 | |||
| 100 | declare 'RepeatedVersionMetrics', | ||
| 101 | as ArrayRef[VersionMetrics()]; | ||
| 102 | |||
| 103 | coerce 'RepeatedVersionMetrics', | ||
| 104 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::Cx::V3beta1::Experiment::Experiment::Result::VersionMetrics'->new($_) } @$_ ] }; | ||
| 105 | |||
| 106 | declare 'MapStringVersionMetrics', | ||
| 107 | as HashRef[VersionMetrics()]; | ||
| 108 | |||
| 109 | declare 'VersionVariants', | ||
| 110 | as InstanceOf['Google::Cloud::Dialogflow::Cx::V3beta1::Experiment::VersionVariants']; | ||
| 111 | |||
| 112 | coerce 'VersionVariants', | ||
| 113 | from HashRef, via { 'Google::Cloud::Dialogflow::Cx::V3beta1::Experiment::VersionVariants'->new($_) }; | ||
| 114 | |||
| 115 | declare 'RepeatedVersionVariants', | ||
| 116 | as ArrayRef[VersionVariants()]; | ||
| 117 | |||
| 118 | coerce 'RepeatedVersionVariants', | ||
| 119 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::Cx::V3beta1::Experiment::VersionVariants'->new($_) } @$_ ] }; | ||
| 120 | |||
| 121 | declare 'MapStringVersionVariants', | ||
| 122 | as HashRef[VersionVariants()]; | ||
| 123 | |||
| 124 | declare 'Variant', | ||
| 125 | as InstanceOf['Google::Cloud::Dialogflow::Cx::V3beta1::Experiment::VersionVariants::Variant']; | ||
| 126 | |||
| 127 | coerce 'Variant', | ||
| 128 | from HashRef, via { 'Google::Cloud::Dialogflow::Cx::V3beta1::Experiment::VersionVariants::Variant'->new($_) }; | ||
| 129 | |||
| 130 | declare 'RepeatedVariant', | ||
| 131 | as ArrayRef[Variant()]; | ||
| 132 | |||
| 133 | coerce 'RepeatedVariant', | ||
| 134 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::Cx::V3beta1::Experiment::VersionVariants::Variant'->new($_) } @$_ ] }; | ||
| 135 | |||
| 136 | declare 'MapStringVariant', | ||
| 137 | as HashRef[Variant()]; | ||
| 138 | |||
| 139 | declare 'RolloutConfig', | ||
| 140 | as InstanceOf['Google::Cloud::Dialogflow::Cx::V3beta1::Experiment::RolloutConfig']; | ||
| 141 | |||
| 142 | coerce 'RolloutConfig', | ||
| 143 | from HashRef, via { 'Google::Cloud::Dialogflow::Cx::V3beta1::Experiment::RolloutConfig'->new($_) }; | ||
| 144 | |||
| 145 | declare 'RepeatedRolloutConfig', | ||
| 146 | as ArrayRef[RolloutConfig()]; | ||
| 147 | |||
| 148 | coerce 'RepeatedRolloutConfig', | ||
| 149 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::Cx::V3beta1::Experiment::RolloutConfig'->new($_) } @$_ ] }; | ||
| 150 | |||
| 151 | declare 'MapStringRolloutConfig', | ||
| 152 | as HashRef[RolloutConfig()]; | ||
| 153 | |||
| 154 | declare 'RolloutStep', | ||
| 155 | as InstanceOf['Google::Cloud::Dialogflow::Cx::V3beta1::Experiment::RolloutConfig::RolloutStep']; | ||
| 156 | |||
| 157 | coerce 'RolloutStep', | ||
| 158 | from HashRef, via { 'Google::Cloud::Dialogflow::Cx::V3beta1::Experiment::RolloutConfig::RolloutStep'->new($_) }; | ||
| 159 | |||
| 160 | declare 'RepeatedRolloutStep', | ||
| 161 | as ArrayRef[RolloutStep()]; | ||
| 162 | |||
| 163 | coerce 'RepeatedRolloutStep', | ||
| 164 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::Cx::V3beta1::Experiment::RolloutConfig::RolloutStep'->new($_) } @$_ ] }; | ||
| 165 | |||
| 166 | declare 'MapStringRolloutStep', | ||
| 167 | as HashRef[RolloutStep()]; | ||
| 168 | |||
| 169 | declare 'RolloutState', | ||
| 170 | as InstanceOf['Google::Cloud::Dialogflow::Cx::V3beta1::Experiment::RolloutState']; | ||
| 171 | |||
| 172 | coerce 'RolloutState', | ||
| 173 | from HashRef, via { 'Google::Cloud::Dialogflow::Cx::V3beta1::Experiment::RolloutState'->new($_) }; | ||
| 174 | |||
| 175 | declare 'RepeatedRolloutState', | ||
| 176 | as ArrayRef[RolloutState()]; | ||
| 177 | |||
| 178 | coerce 'RepeatedRolloutState', | ||
| 179 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::Cx::V3beta1::Experiment::RolloutState'->new($_) } @$_ ] }; | ||
| 180 | |||
| 181 | declare 'MapStringRolloutState', | ||
| 182 | as HashRef[RolloutState()]; | ||
| 183 | |||
| 184 | declare 'VariantsHistory', | ||
| 185 | as InstanceOf['Google::Cloud::Dialogflow::Cx::V3beta1::Experiment::VariantsHistory']; | ||
| 186 | |||
| 187 | coerce 'VariantsHistory', | ||
| 188 | from HashRef, via { 'Google::Cloud::Dialogflow::Cx::V3beta1::Experiment::VariantsHistory'->new($_) }; | ||
| 189 | |||
| 190 | declare 'RepeatedVariantsHistory', | ||
| 191 | as ArrayRef[VariantsHistory()]; | ||
| 192 | |||
| 193 | coerce 'RepeatedVariantsHistory', | ||
| 194 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::Cx::V3beta1::Experiment::VariantsHistory'->new($_) } @$_ ] }; | ||
| 195 | |||
| 196 | declare 'MapStringVariantsHistory', | ||
| 197 | as HashRef[VariantsHistory()]; | ||
| 198 | |||
| 199 | declare 'ListExperimentsRequest', | ||
| 200 | as InstanceOf['Google::Cloud::Dialogflow::Cx::V3beta1::Experiment::ListExperimentsRequest']; | ||
| 201 | |||
| 202 | coerce 'ListExperimentsRequest', | ||
| 203 | from HashRef, via { 'Google::Cloud::Dialogflow::Cx::V3beta1::Experiment::ListExperimentsRequest'->new($_) }; | ||
| 204 | |||
| 205 | declare 'RepeatedListExperimentsRequest', | ||
| 206 | as ArrayRef[ListExperimentsRequest()]; | ||
| 207 | |||
| 208 | coerce 'RepeatedListExperimentsRequest', | ||
| 209 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::Cx::V3beta1::Experiment::ListExperimentsRequest'->new($_) } @$_ ] }; | ||
| 210 | |||
| 211 | declare 'MapStringListExperimentsRequest', | ||
| 212 | as HashRef[ListExperimentsRequest()]; | ||
| 213 | |||
| 214 | declare 'ListExperimentsResponse', | ||
| 215 | as InstanceOf['Google::Cloud::Dialogflow::Cx::V3beta1::Experiment::ListExperimentsResponse']; | ||
| 216 | |||
| 217 | coerce 'ListExperimentsResponse', | ||
| 218 | from HashRef, via { 'Google::Cloud::Dialogflow::Cx::V3beta1::Experiment::ListExperimentsResponse'->new($_) }; | ||
| 219 | |||
| 220 | declare 'RepeatedListExperimentsResponse', | ||
| 221 | as ArrayRef[ListExperimentsResponse()]; | ||
| 222 | |||
| 223 | coerce 'RepeatedListExperimentsResponse', | ||
| 224 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::Cx::V3beta1::Experiment::ListExperimentsResponse'->new($_) } @$_ ] }; | ||
| 225 | |||
| 226 | declare 'MapStringListExperimentsResponse', | ||
| 227 | as HashRef[ListExperimentsResponse()]; | ||
| 228 | |||
| 229 | declare 'GetExperimentRequest', | ||
| 230 | as InstanceOf['Google::Cloud::Dialogflow::Cx::V3beta1::Experiment::GetExperimentRequest']; | ||
| 231 | |||
| 232 | coerce 'GetExperimentRequest', | ||
| 233 | from HashRef, via { 'Google::Cloud::Dialogflow::Cx::V3beta1::Experiment::GetExperimentRequest'->new($_) }; | ||
| 234 | |||
| 235 | declare 'RepeatedGetExperimentRequest', | ||
| 236 | as ArrayRef[GetExperimentRequest()]; | ||
| 237 | |||
| 238 | coerce 'RepeatedGetExperimentRequest', | ||
| 239 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::Cx::V3beta1::Experiment::GetExperimentRequest'->new($_) } @$_ ] }; | ||
| 240 | |||
| 241 | declare 'MapStringGetExperimentRequest', | ||
| 242 | as HashRef[GetExperimentRequest()]; | ||
| 243 | |||
| 244 | declare 'CreateExperimentRequest', | ||
| 245 | as InstanceOf['Google::Cloud::Dialogflow::Cx::V3beta1::Experiment::CreateExperimentRequest']; | ||
| 246 | |||
| 247 | coerce 'CreateExperimentRequest', | ||
| 248 | from HashRef, via { 'Google::Cloud::Dialogflow::Cx::V3beta1::Experiment::CreateExperimentRequest'->new($_) }; | ||
| 249 | |||
| 250 | declare 'RepeatedCreateExperimentRequest', | ||
| 251 | as ArrayRef[CreateExperimentRequest()]; | ||
| 252 | |||
| 253 | coerce 'RepeatedCreateExperimentRequest', | ||
| 254 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::Cx::V3beta1::Experiment::CreateExperimentRequest'->new($_) } @$_ ] }; | ||
| 255 | |||
| 256 | declare 'MapStringCreateExperimentRequest', | ||
| 257 | as HashRef[CreateExperimentRequest()]; | ||
| 258 | |||
| 259 | declare 'UpdateExperimentRequest', | ||
| 260 | as InstanceOf['Google::Cloud::Dialogflow::Cx::V3beta1::Experiment::UpdateExperimentRequest']; | ||
| 261 | |||
| 262 | coerce 'UpdateExperimentRequest', | ||
| 263 | from HashRef, via { 'Google::Cloud::Dialogflow::Cx::V3beta1::Experiment::UpdateExperimentRequest'->new($_) }; | ||
| 264 | |||
| 265 | declare 'RepeatedUpdateExperimentRequest', | ||
| 266 | as ArrayRef[UpdateExperimentRequest()]; | ||
| 267 | |||
| 268 | coerce 'RepeatedUpdateExperimentRequest', | ||
| 269 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::Cx::V3beta1::Experiment::UpdateExperimentRequest'->new($_) } @$_ ] }; | ||
| 270 | |||
| 271 | declare 'MapStringUpdateExperimentRequest', | ||
| 272 | as HashRef[UpdateExperimentRequest()]; | ||
| 273 | |||
| 274 | declare 'DeleteExperimentRequest', | ||
| 275 | as InstanceOf['Google::Cloud::Dialogflow::Cx::V3beta1::Experiment::DeleteExperimentRequest']; | ||
| 276 | |||
| 277 | coerce 'DeleteExperimentRequest', | ||
| 278 | from HashRef, via { 'Google::Cloud::Dialogflow::Cx::V3beta1::Experiment::DeleteExperimentRequest'->new($_) }; | ||
| 279 | |||
| 280 | declare 'RepeatedDeleteExperimentRequest', | ||
| 281 | as ArrayRef[DeleteExperimentRequest()]; | ||
| 282 | |||
| 283 | coerce 'RepeatedDeleteExperimentRequest', | ||
| 284 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::Cx::V3beta1::Experiment::DeleteExperimentRequest'->new($_) } @$_ ] }; | ||
| 285 | |||
| 286 | declare 'MapStringDeleteExperimentRequest', | ||
| 287 | as HashRef[DeleteExperimentRequest()]; | ||
| 288 | |||
| 289 | declare 'StartExperimentRequest', | ||
| 290 | as InstanceOf['Google::Cloud::Dialogflow::Cx::V3beta1::Experiment::StartExperimentRequest']; | ||
| 291 | |||
| 292 | coerce 'StartExperimentRequest', | ||
| 293 | from HashRef, via { 'Google::Cloud::Dialogflow::Cx::V3beta1::Experiment::StartExperimentRequest'->new($_) }; | ||
| 294 | |||
| 295 | declare 'RepeatedStartExperimentRequest', | ||
| 296 | as ArrayRef[StartExperimentRequest()]; | ||
| 297 | |||
| 298 | coerce 'RepeatedStartExperimentRequest', | ||
| 299 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::Cx::V3beta1::Experiment::StartExperimentRequest'->new($_) } @$_ ] }; | ||
| 300 | |||
| 301 | declare 'MapStringStartExperimentRequest', | ||
| 302 | as HashRef[StartExperimentRequest()]; | ||
| 303 | |||
| 304 | declare 'StopExperimentRequest', | ||
| 305 | as InstanceOf['Google::Cloud::Dialogflow::Cx::V3beta1::Experiment::StopExperimentRequest']; | ||
| 306 | |||
| 307 | coerce 'StopExperimentRequest', | ||
| 308 | from HashRef, via { 'Google::Cloud::Dialogflow::Cx::V3beta1::Experiment::StopExperimentRequest'->new($_) }; | ||
| 309 | |||
| 310 | declare 'RepeatedStopExperimentRequest', | ||
| 311 | as ArrayRef[StopExperimentRequest()]; | ||
| 312 | |||
| 313 | coerce 'RepeatedStopExperimentRequest', | ||
| 314 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::Cx::V3beta1::Experiment::StopExperimentRequest'->new($_) } @$_ ] }; | ||
| 315 | |||
| 316 | declare 'MapStringStopExperimentRequest', | ||
| 317 | as HashRef[StopExperimentRequest()]; | ||
| 318 | |||
| 319 | 1; | ||
| 320 | |||
| 321 | __END__ |