| 1 | package Google::Cloud::Retail::V2beta::UserEvent::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 'UserEvent', | ||
| 11 | as InstanceOf['Google::Cloud::Retail::V2beta::UserEvent::UserEvent']; | ||
| 12 | |||
| 13 | coerce 'UserEvent', | ||
| 14 | from HashRef, via { 'Google::Cloud::Retail::V2beta::UserEvent::UserEvent'->new($_) }; | ||
| 15 | |||
| 16 | declare 'RepeatedUserEvent', | ||
| 17 | as ArrayRef[UserEvent()]; | ||
| 18 | |||
| 19 | coerce 'RepeatedUserEvent', | ||
| 20 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Retail::V2beta::UserEvent::UserEvent'->new($_) } @$_ ] }; | ||
| 21 | |||
| 22 | declare 'MapStringUserEvent', | ||
| 23 | as HashRef[UserEvent()]; | ||
| 24 | |||
| 25 | declare 'AttributesEntry', | ||
| 26 | as InstanceOf['Google::Cloud::Retail::V2beta::UserEvent::UserEvent::AttributesEntry']; | ||
| 27 | |||
| 28 | coerce 'AttributesEntry', | ||
| 29 | from HashRef, via { 'Google::Cloud::Retail::V2beta::UserEvent::UserEvent::AttributesEntry'->new($_) }; | ||
| 30 | |||
| 31 | declare 'RepeatedAttributesEntry', | ||
| 32 | as ArrayRef[AttributesEntry()]; | ||
| 33 | |||
| 34 | coerce 'RepeatedAttributesEntry', | ||
| 35 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Retail::V2beta::UserEvent::UserEvent::AttributesEntry'->new($_) } @$_ ] }; | ||
| 36 | |||
| 37 | declare 'MapStringAttributesEntry', | ||
| 38 | as HashRef[AttributesEntry()]; | ||
| 39 | |||
| 40 | declare 'ProductDetail', | ||
| 41 | as InstanceOf['Google::Cloud::Retail::V2beta::UserEvent::ProductDetail']; | ||
| 42 | |||
| 43 | coerce 'ProductDetail', | ||
| 44 | from HashRef, via { 'Google::Cloud::Retail::V2beta::UserEvent::ProductDetail'->new($_) }; | ||
| 45 | |||
| 46 | declare 'RepeatedProductDetail', | ||
| 47 | as ArrayRef[ProductDetail()]; | ||
| 48 | |||
| 49 | coerce 'RepeatedProductDetail', | ||
| 50 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Retail::V2beta::UserEvent::ProductDetail'->new($_) } @$_ ] }; | ||
| 51 | |||
| 52 | declare 'MapStringProductDetail', | ||
| 53 | as HashRef[ProductDetail()]; | ||
| 54 | |||
| 55 | declare 'CompletionDetail', | ||
| 56 | as InstanceOf['Google::Cloud::Retail::V2beta::UserEvent::CompletionDetail']; | ||
| 57 | |||
| 58 | coerce 'CompletionDetail', | ||
| 59 | from HashRef, via { 'Google::Cloud::Retail::V2beta::UserEvent::CompletionDetail'->new($_) }; | ||
| 60 | |||
| 61 | declare 'RepeatedCompletionDetail', | ||
| 62 | as ArrayRef[CompletionDetail()]; | ||
| 63 | |||
| 64 | coerce 'RepeatedCompletionDetail', | ||
| 65 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Retail::V2beta::UserEvent::CompletionDetail'->new($_) } @$_ ] }; | ||
| 66 | |||
| 67 | declare 'MapStringCompletionDetail', | ||
| 68 | as HashRef[CompletionDetail()]; | ||
| 69 | |||
| 70 | declare 'PurchaseTransaction', | ||
| 71 | as InstanceOf['Google::Cloud::Retail::V2beta::UserEvent::PurchaseTransaction']; | ||
| 72 | |||
| 73 | coerce 'PurchaseTransaction', | ||
| 74 | from HashRef, via { 'Google::Cloud::Retail::V2beta::UserEvent::PurchaseTransaction'->new($_) }; | ||
| 75 | |||
| 76 | declare 'RepeatedPurchaseTransaction', | ||
| 77 | as ArrayRef[PurchaseTransaction()]; | ||
| 78 | |||
| 79 | coerce 'RepeatedPurchaseTransaction', | ||
| 80 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Retail::V2beta::UserEvent::PurchaseTransaction'->new($_) } @$_ ] }; | ||
| 81 | |||
| 82 | declare 'MapStringPurchaseTransaction', | ||
| 83 | as HashRef[PurchaseTransaction()]; | ||
| 84 | |||
| 85 | 1; | ||
| 86 | |||
| 87 | __END__ |