| 1 | package Google::Cloud::Retail::V2alpha::Common::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 'AttributeConfigLevel', | ||
| 11 | as (Int | Str); | ||
| 12 | |||
| 13 | declare 'SolutionType', | ||
| 14 | as (Int | Str); | ||
| 15 | |||
| 16 | declare 'RecommendationsFilteringOption', | ||
| 17 | as (Int | Str); | ||
| 18 | |||
| 19 | declare 'SearchSolutionUseCase', | ||
| 20 | as (Int | Str); | ||
| 21 | |||
| 22 | declare 'Condition', | ||
| 23 | as InstanceOf['Google::Cloud::Retail::V2alpha::Common::Condition']; | ||
| 24 | |||
| 25 | coerce 'Condition', | ||
| 26 | from HashRef, via { 'Google::Cloud::Retail::V2alpha::Common::Condition'->new($_) }; | ||
| 27 | |||
| 28 | declare 'RepeatedCondition', | ||
| 29 | as ArrayRef[Condition()]; | ||
| 30 | |||
| 31 | coerce 'RepeatedCondition', | ||
| 32 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Retail::V2alpha::Common::Condition'->new($_) } @$_ ] }; | ||
| 33 | |||
| 34 | declare 'MapStringCondition', | ||
| 35 | as HashRef[Condition()]; | ||
| 36 | |||
| 37 | declare 'QueryTerm', | ||
| 38 | as InstanceOf['Google::Cloud::Retail::V2alpha::Common::Condition::QueryTerm']; | ||
| 39 | |||
| 40 | coerce 'QueryTerm', | ||
| 41 | from HashRef, via { 'Google::Cloud::Retail::V2alpha::Common::Condition::QueryTerm'->new($_) }; | ||
| 42 | |||
| 43 | declare 'RepeatedQueryTerm', | ||
| 44 | as ArrayRef[QueryTerm()]; | ||
| 45 | |||
| 46 | coerce 'RepeatedQueryTerm', | ||
| 47 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Retail::V2alpha::Common::Condition::QueryTerm'->new($_) } @$_ ] }; | ||
| 48 | |||
| 49 | declare 'MapStringQueryTerm', | ||
| 50 | as HashRef[QueryTerm()]; | ||
| 51 | |||
| 52 | declare 'TimeRange', | ||
| 53 | as InstanceOf['Google::Cloud::Retail::V2alpha::Common::Condition::TimeRange']; | ||
| 54 | |||
| 55 | coerce 'TimeRange', | ||
| 56 | from HashRef, via { 'Google::Cloud::Retail::V2alpha::Common::Condition::TimeRange'->new($_) }; | ||
| 57 | |||
| 58 | declare 'RepeatedTimeRange', | ||
| 59 | as ArrayRef[TimeRange()]; | ||
| 60 | |||
| 61 | coerce 'RepeatedTimeRange', | ||
| 62 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Retail::V2alpha::Common::Condition::TimeRange'->new($_) } @$_ ] }; | ||
| 63 | |||
| 64 | declare 'MapStringTimeRange', | ||
| 65 | as HashRef[TimeRange()]; | ||
| 66 | |||
| 67 | declare 'Rule', | ||
| 68 | as InstanceOf['Google::Cloud::Retail::V2alpha::Common::Rule']; | ||
| 69 | |||
| 70 | coerce 'Rule', | ||
| 71 | from HashRef, via { 'Google::Cloud::Retail::V2alpha::Common::Rule'->new($_) }; | ||
| 72 | |||
| 73 | declare 'RepeatedRule', | ||
| 74 | as ArrayRef[Rule()]; | ||
| 75 | |||
| 76 | coerce 'RepeatedRule', | ||
| 77 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Retail::V2alpha::Common::Rule'->new($_) } @$_ ] }; | ||
| 78 | |||
| 79 | declare 'MapStringRule', | ||
| 80 | as HashRef[Rule()]; | ||
| 81 | |||
| 82 | declare 'BoostAction', | ||
| 83 | as InstanceOf['Google::Cloud::Retail::V2alpha::Common::Rule::BoostAction']; | ||
| 84 | |||
| 85 | coerce 'BoostAction', | ||
| 86 | from HashRef, via { 'Google::Cloud::Retail::V2alpha::Common::Rule::BoostAction'->new($_) }; | ||
| 87 | |||
| 88 | declare 'RepeatedBoostAction', | ||
| 89 | as ArrayRef[BoostAction()]; | ||
| 90 | |||
| 91 | coerce 'RepeatedBoostAction', | ||
| 92 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Retail::V2alpha::Common::Rule::BoostAction'->new($_) } @$_ ] }; | ||
| 93 | |||
| 94 | declare 'MapStringBoostAction', | ||
| 95 | as HashRef[BoostAction()]; | ||
| 96 | |||
| 97 | declare 'FilterAction', | ||
| 98 | as InstanceOf['Google::Cloud::Retail::V2alpha::Common::Rule::FilterAction']; | ||
| 99 | |||
| 100 | coerce 'FilterAction', | ||
| 101 | from HashRef, via { 'Google::Cloud::Retail::V2alpha::Common::Rule::FilterAction'->new($_) }; | ||
| 102 | |||
| 103 | declare 'RepeatedFilterAction', | ||
| 104 | as ArrayRef[FilterAction()]; | ||
| 105 | |||
| 106 | coerce 'RepeatedFilterAction', | ||
| 107 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Retail::V2alpha::Common::Rule::FilterAction'->new($_) } @$_ ] }; | ||
| 108 | |||
| 109 | declare 'MapStringFilterAction', | ||
| 110 | as HashRef[FilterAction()]; | ||
| 111 | |||
| 112 | declare 'RedirectAction', | ||
| 113 | as InstanceOf['Google::Cloud::Retail::V2alpha::Common::Rule::RedirectAction']; | ||
| 114 | |||
| 115 | coerce 'RedirectAction', | ||
| 116 | from HashRef, via { 'Google::Cloud::Retail::V2alpha::Common::Rule::RedirectAction'->new($_) }; | ||
| 117 | |||
| 118 | declare 'RepeatedRedirectAction', | ||
| 119 | as ArrayRef[RedirectAction()]; | ||
| 120 | |||
| 121 | coerce 'RepeatedRedirectAction', | ||
| 122 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Retail::V2alpha::Common::Rule::RedirectAction'->new($_) } @$_ ] }; | ||
| 123 | |||
| 124 | declare 'MapStringRedirectAction', | ||
| 125 | as HashRef[RedirectAction()]; | ||
| 126 | |||
| 127 | declare 'TwowaySynonymsAction', | ||
| 128 | as InstanceOf['Google::Cloud::Retail::V2alpha::Common::Rule::TwowaySynonymsAction']; | ||
| 129 | |||
| 130 | coerce 'TwowaySynonymsAction', | ||
| 131 | from HashRef, via { 'Google::Cloud::Retail::V2alpha::Common::Rule::TwowaySynonymsAction'->new($_) }; | ||
| 132 | |||
| 133 | declare 'RepeatedTwowaySynonymsAction', | ||
| 134 | as ArrayRef[TwowaySynonymsAction()]; | ||
| 135 | |||
| 136 | coerce 'RepeatedTwowaySynonymsAction', | ||
| 137 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Retail::V2alpha::Common::Rule::TwowaySynonymsAction'->new($_) } @$_ ] }; | ||
| 138 | |||
| 139 | declare 'MapStringTwowaySynonymsAction', | ||
| 140 | as HashRef[TwowaySynonymsAction()]; | ||
| 141 | |||
| 142 | declare 'OnewaySynonymsAction', | ||
| 143 | as InstanceOf['Google::Cloud::Retail::V2alpha::Common::Rule::OnewaySynonymsAction']; | ||
| 144 | |||
| 145 | coerce 'OnewaySynonymsAction', | ||
| 146 | from HashRef, via { 'Google::Cloud::Retail::V2alpha::Common::Rule::OnewaySynonymsAction'->new($_) }; | ||
| 147 | |||
| 148 | declare 'RepeatedOnewaySynonymsAction', | ||
| 149 | as ArrayRef[OnewaySynonymsAction()]; | ||
| 150 | |||
| 151 | coerce 'RepeatedOnewaySynonymsAction', | ||
| 152 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Retail::V2alpha::Common::Rule::OnewaySynonymsAction'->new($_) } @$_ ] }; | ||
| 153 | |||
| 154 | declare 'MapStringOnewaySynonymsAction', | ||
| 155 | as HashRef[OnewaySynonymsAction()]; | ||
| 156 | |||
| 157 | declare 'DoNotAssociateAction', | ||
| 158 | as InstanceOf['Google::Cloud::Retail::V2alpha::Common::Rule::DoNotAssociateAction']; | ||
| 159 | |||
| 160 | coerce 'DoNotAssociateAction', | ||
| 161 | from HashRef, via { 'Google::Cloud::Retail::V2alpha::Common::Rule::DoNotAssociateAction'->new($_) }; | ||
| 162 | |||
| 163 | declare 'RepeatedDoNotAssociateAction', | ||
| 164 | as ArrayRef[DoNotAssociateAction()]; | ||
| 165 | |||
| 166 | coerce 'RepeatedDoNotAssociateAction', | ||
| 167 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Retail::V2alpha::Common::Rule::DoNotAssociateAction'->new($_) } @$_ ] }; | ||
| 168 | |||
| 169 | declare 'MapStringDoNotAssociateAction', | ||
| 170 | as HashRef[DoNotAssociateAction()]; | ||
| 171 | |||
| 172 | declare 'ReplacementAction', | ||
| 173 | as InstanceOf['Google::Cloud::Retail::V2alpha::Common::Rule::ReplacementAction']; | ||
| 174 | |||
| 175 | coerce 'ReplacementAction', | ||
| 176 | from HashRef, via { 'Google::Cloud::Retail::V2alpha::Common::Rule::ReplacementAction'->new($_) }; | ||
| 177 | |||
| 178 | declare 'RepeatedReplacementAction', | ||
| 179 | as ArrayRef[ReplacementAction()]; | ||
| 180 | |||
| 181 | coerce 'RepeatedReplacementAction', | ||
| 182 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Retail::V2alpha::Common::Rule::ReplacementAction'->new($_) } @$_ ] }; | ||
| 183 | |||
| 184 | declare 'MapStringReplacementAction', | ||
| 185 | as HashRef[ReplacementAction()]; | ||
| 186 | |||
| 187 | declare 'IgnoreAction', | ||
| 188 | as InstanceOf['Google::Cloud::Retail::V2alpha::Common::Rule::IgnoreAction']; | ||
| 189 | |||
| 190 | coerce 'IgnoreAction', | ||
| 191 | from HashRef, via { 'Google::Cloud::Retail::V2alpha::Common::Rule::IgnoreAction'->new($_) }; | ||
| 192 | |||
| 193 | declare 'RepeatedIgnoreAction', | ||
| 194 | as ArrayRef[IgnoreAction()]; | ||
| 195 | |||
| 196 | coerce 'RepeatedIgnoreAction', | ||
| 197 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Retail::V2alpha::Common::Rule::IgnoreAction'->new($_) } @$_ ] }; | ||
| 198 | |||
| 199 | declare 'MapStringIgnoreAction', | ||
| 200 | as HashRef[IgnoreAction()]; | ||
| 201 | |||
| 202 | declare 'ForceReturnFacetAction', | ||
| 203 | as InstanceOf['Google::Cloud::Retail::V2alpha::Common::Rule::ForceReturnFacetAction']; | ||
| 204 | |||
| 205 | coerce 'ForceReturnFacetAction', | ||
| 206 | from HashRef, via { 'Google::Cloud::Retail::V2alpha::Common::Rule::ForceReturnFacetAction'->new($_) }; | ||
| 207 | |||
| 208 | declare 'RepeatedForceReturnFacetAction', | ||
| 209 | as ArrayRef[ForceReturnFacetAction()]; | ||
| 210 | |||
| 211 | coerce 'RepeatedForceReturnFacetAction', | ||
| 212 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Retail::V2alpha::Common::Rule::ForceReturnFacetAction'->new($_) } @$_ ] }; | ||
| 213 | |||
| 214 | declare 'MapStringForceReturnFacetAction', | ||
| 215 | as HashRef[ForceReturnFacetAction()]; | ||
| 216 | |||
| 217 | declare 'FacetPositionAdjustment', | ||
| 218 | as InstanceOf['Google::Cloud::Retail::V2alpha::Common::Rule::ForceReturnFacetAction::FacetPositionAdjustment']; | ||
| 219 | |||
| 220 | coerce 'FacetPositionAdjustment', | ||
| 221 | from HashRef, via { 'Google::Cloud::Retail::V2alpha::Common::Rule::ForceReturnFacetAction::FacetPositionAdjustment'->new($_) }; | ||
| 222 | |||
| 223 | declare 'RepeatedFacetPositionAdjustment', | ||
| 224 | as ArrayRef[FacetPositionAdjustment()]; | ||
| 225 | |||
| 226 | coerce 'RepeatedFacetPositionAdjustment', | ||
| 227 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Retail::V2alpha::Common::Rule::ForceReturnFacetAction::FacetPositionAdjustment'->new($_) } @$_ ] }; | ||
| 228 | |||
| 229 | declare 'MapStringFacetPositionAdjustment', | ||
| 230 | as HashRef[FacetPositionAdjustment()]; | ||
| 231 | |||
| 232 | declare 'RemoveFacetAction', | ||
| 233 | as InstanceOf['Google::Cloud::Retail::V2alpha::Common::Rule::RemoveFacetAction']; | ||
| 234 | |||
| 235 | coerce 'RemoveFacetAction', | ||
| 236 | from HashRef, via { 'Google::Cloud::Retail::V2alpha::Common::Rule::RemoveFacetAction'->new($_) }; | ||
| 237 | |||
| 238 | declare 'RepeatedRemoveFacetAction', | ||
| 239 | as ArrayRef[RemoveFacetAction()]; | ||
| 240 | |||
| 241 | coerce 'RepeatedRemoveFacetAction', | ||
| 242 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Retail::V2alpha::Common::Rule::RemoveFacetAction'->new($_) } @$_ ] }; | ||
| 243 | |||
| 244 | declare 'MapStringRemoveFacetAction', | ||
| 245 | as HashRef[RemoveFacetAction()]; | ||
| 246 | |||
| 247 | declare 'PinAction', | ||
| 248 | as InstanceOf['Google::Cloud::Retail::V2alpha::Common::Rule::PinAction']; | ||
| 249 | |||
| 250 | coerce 'PinAction', | ||
| 251 | from HashRef, via { 'Google::Cloud::Retail::V2alpha::Common::Rule::PinAction'->new($_) }; | ||
| 252 | |||
| 253 | declare 'RepeatedPinAction', | ||
| 254 | as ArrayRef[PinAction()]; | ||
| 255 | |||
| 256 | coerce 'RepeatedPinAction', | ||
| 257 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Retail::V2alpha::Common::Rule::PinAction'->new($_) } @$_ ] }; | ||
| 258 | |||
| 259 | declare 'MapStringPinAction', | ||
| 260 | as HashRef[PinAction()]; | ||
| 261 | |||
| 262 | declare 'PinMapEntry', | ||
| 263 | as InstanceOf['Google::Cloud::Retail::V2alpha::Common::Rule::PinAction::PinMapEntry']; | ||
| 264 | |||
| 265 | coerce 'PinMapEntry', | ||
| 266 | from HashRef, via { 'Google::Cloud::Retail::V2alpha::Common::Rule::PinAction::PinMapEntry'->new($_) }; | ||
| 267 | |||
| 268 | declare 'RepeatedPinMapEntry', | ||
| 269 | as ArrayRef[PinMapEntry()]; | ||
| 270 | |||
| 271 | coerce 'RepeatedPinMapEntry', | ||
| 272 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Retail::V2alpha::Common::Rule::PinAction::PinMapEntry'->new($_) } @$_ ] }; | ||
| 273 | |||
| 274 | declare 'MapStringPinMapEntry', | ||
| 275 | as HashRef[PinMapEntry()]; | ||
| 276 | |||
| 277 | declare 'Audience', | ||
| 278 | as InstanceOf['Google::Cloud::Retail::V2alpha::Common::Audience']; | ||
| 279 | |||
| 280 | coerce 'Audience', | ||
| 281 | from HashRef, via { 'Google::Cloud::Retail::V2alpha::Common::Audience'->new($_) }; | ||
| 282 | |||
| 283 | declare 'RepeatedAudience', | ||
| 284 | as ArrayRef[Audience()]; | ||
| 285 | |||
| 286 | coerce 'RepeatedAudience', | ||
| 287 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Retail::V2alpha::Common::Audience'->new($_) } @$_ ] }; | ||
| 288 | |||
| 289 | declare 'MapStringAudience', | ||
| 290 | as HashRef[Audience()]; | ||
| 291 | |||
| 292 | declare 'ColorInfo', | ||
| 293 | as InstanceOf['Google::Cloud::Retail::V2alpha::Common::ColorInfo']; | ||
| 294 | |||
| 295 | coerce 'ColorInfo', | ||
| 296 | from HashRef, via { 'Google::Cloud::Retail::V2alpha::Common::ColorInfo'->new($_) }; | ||
| 297 | |||
| 298 | declare 'RepeatedColorInfo', | ||
| 299 | as ArrayRef[ColorInfo()]; | ||
| 300 | |||
| 301 | coerce 'RepeatedColorInfo', | ||
| 302 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Retail::V2alpha::Common::ColorInfo'->new($_) } @$_ ] }; | ||
| 303 | |||
| 304 | declare 'MapStringColorInfo', | ||
| 305 | as HashRef[ColorInfo()]; | ||
| 306 | |||
| 307 | declare 'CustomAttribute', | ||
| 308 | as InstanceOf['Google::Cloud::Retail::V2alpha::Common::CustomAttribute']; | ||
| 309 | |||
| 310 | coerce 'CustomAttribute', | ||
| 311 | from HashRef, via { 'Google::Cloud::Retail::V2alpha::Common::CustomAttribute'->new($_) }; | ||
| 312 | |||
| 313 | declare 'RepeatedCustomAttribute', | ||
| 314 | as ArrayRef[CustomAttribute()]; | ||
| 315 | |||
| 316 | coerce 'RepeatedCustomAttribute', | ||
| 317 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Retail::V2alpha::Common::CustomAttribute'->new($_) } @$_ ] }; | ||
| 318 | |||
| 319 | declare 'MapStringCustomAttribute', | ||
| 320 | as HashRef[CustomAttribute()]; | ||
| 321 | |||
| 322 | declare 'FulfillmentInfo', | ||
| 323 | as InstanceOf['Google::Cloud::Retail::V2alpha::Common::FulfillmentInfo']; | ||
| 324 | |||
| 325 | coerce 'FulfillmentInfo', | ||
| 326 | from HashRef, via { 'Google::Cloud::Retail::V2alpha::Common::FulfillmentInfo'->new($_) }; | ||
| 327 | |||
| 328 | declare 'RepeatedFulfillmentInfo', | ||
| 329 | as ArrayRef[FulfillmentInfo()]; | ||
| 330 | |||
| 331 | coerce 'RepeatedFulfillmentInfo', | ||
| 332 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Retail::V2alpha::Common::FulfillmentInfo'->new($_) } @$_ ] }; | ||
| 333 | |||
| 334 | declare 'MapStringFulfillmentInfo', | ||
| 335 | as HashRef[FulfillmentInfo()]; | ||
| 336 | |||
| 337 | declare 'Image', | ||
| 338 | as InstanceOf['Google::Cloud::Retail::V2alpha::Common::Image']; | ||
| 339 | |||
| 340 | coerce 'Image', | ||
| 341 | from HashRef, via { 'Google::Cloud::Retail::V2alpha::Common::Image'->new($_) }; | ||
| 342 | |||
| 343 | declare 'RepeatedImage', | ||
| 344 | as ArrayRef[Image()]; | ||
| 345 | |||
| 346 | coerce 'RepeatedImage', | ||
| 347 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Retail::V2alpha::Common::Image'->new($_) } @$_ ] }; | ||
| 348 | |||
| 349 | declare 'MapStringImage', | ||
| 350 | as HashRef[Image()]; | ||
| 351 | |||
| 352 | declare 'Interval', | ||
| 353 | as InstanceOf['Google::Cloud::Retail::V2alpha::Common::Interval']; | ||
| 354 | |||
| 355 | coerce 'Interval', | ||
| 356 | from HashRef, via { 'Google::Cloud::Retail::V2alpha::Common::Interval'->new($_) }; | ||
| 357 | |||
| 358 | declare 'RepeatedInterval', | ||
| 359 | as ArrayRef[Interval()]; | ||
| 360 | |||
| 361 | coerce 'RepeatedInterval', | ||
| 362 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Retail::V2alpha::Common::Interval'->new($_) } @$_ ] }; | ||
| 363 | |||
| 364 | declare 'MapStringInterval', | ||
| 365 | as HashRef[Interval()]; | ||
| 366 | |||
| 367 | declare 'PriceInfo', | ||
| 368 | as InstanceOf['Google::Cloud::Retail::V2alpha::Common::PriceInfo']; | ||
| 369 | |||
| 370 | coerce 'PriceInfo', | ||
| 371 | from HashRef, via { 'Google::Cloud::Retail::V2alpha::Common::PriceInfo'->new($_) }; | ||
| 372 | |||
| 373 | declare 'RepeatedPriceInfo', | ||
| 374 | as ArrayRef[PriceInfo()]; | ||
| 375 | |||
| 376 | coerce 'RepeatedPriceInfo', | ||
| 377 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Retail::V2alpha::Common::PriceInfo'->new($_) } @$_ ] }; | ||
| 378 | |||
| 379 | declare 'MapStringPriceInfo', | ||
| 380 | as HashRef[PriceInfo()]; | ||
| 381 | |||
| 382 | declare 'PriceRange', | ||
| 383 | as InstanceOf['Google::Cloud::Retail::V2alpha::Common::PriceInfo::PriceRange']; | ||
| 384 | |||
| 385 | coerce 'PriceRange', | ||
| 386 | from HashRef, via { 'Google::Cloud::Retail::V2alpha::Common::PriceInfo::PriceRange'->new($_) }; | ||
| 387 | |||
| 388 | declare 'RepeatedPriceRange', | ||
| 389 | as ArrayRef[PriceRange()]; | ||
| 390 | |||
| 391 | coerce 'RepeatedPriceRange', | ||
| 392 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Retail::V2alpha::Common::PriceInfo::PriceRange'->new($_) } @$_ ] }; | ||
| 393 | |||
| 394 | declare 'MapStringPriceRange', | ||
| 395 | as HashRef[PriceRange()]; | ||
| 396 | |||
| 397 | declare 'Rating', | ||
| 398 | as InstanceOf['Google::Cloud::Retail::V2alpha::Common::Rating']; | ||
| 399 | |||
| 400 | coerce 'Rating', | ||
| 401 | from HashRef, via { 'Google::Cloud::Retail::V2alpha::Common::Rating'->new($_) }; | ||
| 402 | |||
| 403 | declare 'RepeatedRating', | ||
| 404 | as ArrayRef[Rating()]; | ||
| 405 | |||
| 406 | coerce 'RepeatedRating', | ||
| 407 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Retail::V2alpha::Common::Rating'->new($_) } @$_ ] }; | ||
| 408 | |||
| 409 | declare 'MapStringRating', | ||
| 410 | as HashRef[Rating()]; | ||
| 411 | |||
| 412 | declare 'UserInfo', | ||
| 413 | as InstanceOf['Google::Cloud::Retail::V2alpha::Common::UserInfo']; | ||
| 414 | |||
| 415 | coerce 'UserInfo', | ||
| 416 | from HashRef, via { 'Google::Cloud::Retail::V2alpha::Common::UserInfo'->new($_) }; | ||
| 417 | |||
| 418 | declare 'RepeatedUserInfo', | ||
| 419 | as ArrayRef[UserInfo()]; | ||
| 420 | |||
| 421 | coerce 'RepeatedUserInfo', | ||
| 422 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Retail::V2alpha::Common::UserInfo'->new($_) } @$_ ] }; | ||
| 423 | |||
| 424 | declare 'MapStringUserInfo', | ||
| 425 | as HashRef[UserInfo()]; | ||
| 426 | |||
| 427 | declare 'LocalInventory', | ||
| 428 | as InstanceOf['Google::Cloud::Retail::V2alpha::Common::LocalInventory']; | ||
| 429 | |||
| 430 | coerce 'LocalInventory', | ||
| 431 | from HashRef, via { 'Google::Cloud::Retail::V2alpha::Common::LocalInventory'->new($_) }; | ||
| 432 | |||
| 433 | declare 'RepeatedLocalInventory', | ||
| 434 | as ArrayRef[LocalInventory()]; | ||
| 435 | |||
| 436 | coerce 'RepeatedLocalInventory', | ||
| 437 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Retail::V2alpha::Common::LocalInventory'->new($_) } @$_ ] }; | ||
| 438 | |||
| 439 | declare 'MapStringLocalInventory', | ||
| 440 | as HashRef[LocalInventory()]; | ||
| 441 | |||
| 442 | declare 'Availability', | ||
| 443 | as (Int | Str); | ||
| 444 | |||
| 445 | declare 'AttributesEntry', | ||
| 446 | as InstanceOf['Google::Cloud::Retail::V2alpha::Common::LocalInventory::AttributesEntry']; | ||
| 447 | |||
| 448 | coerce 'AttributesEntry', | ||
| 449 | from HashRef, via { 'Google::Cloud::Retail::V2alpha::Common::LocalInventory::AttributesEntry'->new($_) }; | ||
| 450 | |||
| 451 | declare 'RepeatedAttributesEntry', | ||
| 452 | as ArrayRef[AttributesEntry()]; | ||
| 453 | |||
| 454 | coerce 'RepeatedAttributesEntry', | ||
| 455 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Retail::V2alpha::Common::LocalInventory::AttributesEntry'->new($_) } @$_ ] }; | ||
| 456 | |||
| 457 | declare 'MapStringAttributesEntry', | ||
| 458 | as HashRef[AttributesEntry()]; | ||
| 459 | |||
| 460 | declare 'PinControlMetadata', | ||
| 461 | as InstanceOf['Google::Cloud::Retail::V2alpha::Common::PinControlMetadata']; | ||
| 462 | |||
| 463 | coerce 'PinControlMetadata', | ||
| 464 | from HashRef, via { 'Google::Cloud::Retail::V2alpha::Common::PinControlMetadata'->new($_) }; | ||
| 465 | |||
| 466 | declare 'RepeatedPinControlMetadata', | ||
| 467 | as ArrayRef[PinControlMetadata()]; | ||
| 468 | |||
| 469 | coerce 'RepeatedPinControlMetadata', | ||
| 470 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Retail::V2alpha::Common::PinControlMetadata'->new($_) } @$_ ] }; | ||
| 471 | |||
| 472 | declare 'MapStringPinControlMetadata', | ||
| 473 | as HashRef[PinControlMetadata()]; | ||
| 474 | |||
| 475 | declare 'ProductPins', | ||
| 476 | as InstanceOf['Google::Cloud::Retail::V2alpha::Common::PinControlMetadata::ProductPins']; | ||
| 477 | |||
| 478 | coerce 'ProductPins', | ||
| 479 | from HashRef, via { 'Google::Cloud::Retail::V2alpha::Common::PinControlMetadata::ProductPins'->new($_) }; | ||
| 480 | |||
| 481 | declare 'RepeatedProductPins', | ||
| 482 | as ArrayRef[ProductPins()]; | ||
| 483 | |||
| 484 | coerce 'RepeatedProductPins', | ||
| 485 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Retail::V2alpha::Common::PinControlMetadata::ProductPins'->new($_) } @$_ ] }; | ||
| 486 | |||
| 487 | declare 'MapStringProductPins', | ||
| 488 | as HashRef[ProductPins()]; | ||
| 489 | |||
| 490 | declare 'AllMatchedPinsEntry', | ||
| 491 | as InstanceOf['Google::Cloud::Retail::V2alpha::Common::PinControlMetadata::AllMatchedPinsEntry']; | ||
| 492 | |||
| 493 | coerce 'AllMatchedPinsEntry', | ||
| 494 | from HashRef, via { 'Google::Cloud::Retail::V2alpha::Common::PinControlMetadata::AllMatchedPinsEntry'->new($_) }; | ||
| 495 | |||
| 496 | declare 'RepeatedAllMatchedPinsEntry', | ||
| 497 | as ArrayRef[AllMatchedPinsEntry()]; | ||
| 498 | |||
| 499 | coerce 'RepeatedAllMatchedPinsEntry', | ||
| 500 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Retail::V2alpha::Common::PinControlMetadata::AllMatchedPinsEntry'->new($_) } @$_ ] }; | ||
| 501 | |||
| 502 | declare 'MapStringAllMatchedPinsEntry', | ||
| 503 | as HashRef[AllMatchedPinsEntry()]; | ||
| 504 | |||
| 505 | declare 'DroppedPinsEntry', | ||
| 506 | as InstanceOf['Google::Cloud::Retail::V2alpha::Common::PinControlMetadata::DroppedPinsEntry']; | ||
| 507 | |||
| 508 | coerce 'DroppedPinsEntry', | ||
| 509 | from HashRef, via { 'Google::Cloud::Retail::V2alpha::Common::PinControlMetadata::DroppedPinsEntry'->new($_) }; | ||
| 510 | |||
| 511 | declare 'RepeatedDroppedPinsEntry', | ||
| 512 | as ArrayRef[DroppedPinsEntry()]; | ||
| 513 | |||
| 514 | coerce 'RepeatedDroppedPinsEntry', | ||
| 515 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Retail::V2alpha::Common::PinControlMetadata::DroppedPinsEntry'->new($_) } @$_ ] }; | ||
| 516 | |||
| 517 | declare 'MapStringDroppedPinsEntry', | ||
| 518 | as HashRef[DroppedPinsEntry()]; | ||
| 519 | |||
| 520 | declare 'StringList', | ||
| 521 | as InstanceOf['Google::Cloud::Retail::V2alpha::Common::StringList']; | ||
| 522 | |||
| 523 | coerce 'StringList', | ||
| 524 | from HashRef, via { 'Google::Cloud::Retail::V2alpha::Common::StringList'->new($_) }; | ||
| 525 | |||
| 526 | declare 'RepeatedStringList', | ||
| 527 | as ArrayRef[StringList()]; | ||
| 528 | |||
| 529 | coerce 'RepeatedStringList', | ||
| 530 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Retail::V2alpha::Common::StringList'->new($_) } @$_ ] }; | ||
| 531 | |||
| 532 | declare 'MapStringStringList', | ||
| 533 | as HashRef[StringList()]; | ||
| 534 | |||
| 535 | declare 'DoubleList', | ||
| 536 | as InstanceOf['Google::Cloud::Retail::V2alpha::Common::DoubleList']; | ||
| 537 | |||
| 538 | coerce 'DoubleList', | ||
| 539 | from HashRef, via { 'Google::Cloud::Retail::V2alpha::Common::DoubleList'->new($_) }; | ||
| 540 | |||
| 541 | declare 'RepeatedDoubleList', | ||
| 542 | as ArrayRef[DoubleList()]; | ||
| 543 | |||
| 544 | coerce 'RepeatedDoubleList', | ||
| 545 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Retail::V2alpha::Common::DoubleList'->new($_) } @$_ ] }; | ||
| 546 | |||
| 547 | declare 'MapStringDoubleList', | ||
| 548 | as HashRef[DoubleList()]; | ||
| 549 | |||
| 550 | 1; | ||
| 551 | |||
| 552 | __END__ |