| 1 | package Google::Cloud::Retail::V2alpha::Model::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 'Model', | ||
| 11 | as InstanceOf['Google::Cloud::Retail::V2alpha::Model::Model']; | ||
| 12 | |||
| 13 | coerce 'Model', | ||
| 14 | from HashRef, via { 'Google::Cloud::Retail::V2alpha::Model::Model'->new($_) }; | ||
| 15 | |||
| 16 | declare 'RepeatedModel', | ||
| 17 | as ArrayRef[Model()]; | ||
| 18 | |||
| 19 | coerce 'RepeatedModel', | ||
| 20 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Retail::V2alpha::Model::Model'->new($_) } @$_ ] }; | ||
| 21 | |||
| 22 | declare 'MapStringModel', | ||
| 23 | as HashRef[Model()]; | ||
| 24 | |||
| 25 | declare 'ServingState', | ||
| 26 | as (Int | Str); | ||
| 27 | |||
| 28 | declare 'TrainingState', | ||
| 29 | as (Int | Str); | ||
| 30 | |||
| 31 | declare 'PeriodicTuningState', | ||
| 32 | as (Int | Str); | ||
| 33 | |||
| 34 | declare 'DataState', | ||
| 35 | as (Int | Str); | ||
| 36 | |||
| 37 | declare 'ContextProductsType', | ||
| 38 | as (Int | Str); | ||
| 39 | |||
| 40 | declare 'PageOptimizationConfig', | ||
| 41 | as InstanceOf['Google::Cloud::Retail::V2alpha::Model::Model::PageOptimizationConfig']; | ||
| 42 | |||
| 43 | coerce 'PageOptimizationConfig', | ||
| 44 | from HashRef, via { 'Google::Cloud::Retail::V2alpha::Model::Model::PageOptimizationConfig'->new($_) }; | ||
| 45 | |||
| 46 | declare 'RepeatedPageOptimizationConfig', | ||
| 47 | as ArrayRef[PageOptimizationConfig()]; | ||
| 48 | |||
| 49 | coerce 'RepeatedPageOptimizationConfig', | ||
| 50 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Retail::V2alpha::Model::Model::PageOptimizationConfig'->new($_) } @$_ ] }; | ||
| 51 | |||
| 52 | declare 'MapStringPageOptimizationConfig', | ||
| 53 | as HashRef[PageOptimizationConfig()]; | ||
| 54 | |||
| 55 | declare 'Restriction', | ||
| 56 | as (Int | Str); | ||
| 57 | |||
| 58 | declare 'Candidate', | ||
| 59 | as InstanceOf['Google::Cloud::Retail::V2alpha::Model::Model::PageOptimizationConfig::Candidate']; | ||
| 60 | |||
| 61 | coerce 'Candidate', | ||
| 62 | from HashRef, via { 'Google::Cloud::Retail::V2alpha::Model::Model::PageOptimizationConfig::Candidate'->new($_) }; | ||
| 63 | |||
| 64 | declare 'RepeatedCandidate', | ||
| 65 | as ArrayRef[Candidate()]; | ||
| 66 | |||
| 67 | coerce 'RepeatedCandidate', | ||
| 68 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Retail::V2alpha::Model::Model::PageOptimizationConfig::Candidate'->new($_) } @$_ ] }; | ||
| 69 | |||
| 70 | declare 'MapStringCandidate', | ||
| 71 | as HashRef[Candidate()]; | ||
| 72 | |||
| 73 | declare 'Panel', | ||
| 74 | as InstanceOf['Google::Cloud::Retail::V2alpha::Model::Model::PageOptimizationConfig::Panel']; | ||
| 75 | |||
| 76 | coerce 'Panel', | ||
| 77 | from HashRef, via { 'Google::Cloud::Retail::V2alpha::Model::Model::PageOptimizationConfig::Panel'->new($_) }; | ||
| 78 | |||
| 79 | declare 'RepeatedPanel', | ||
| 80 | as ArrayRef[Panel()]; | ||
| 81 | |||
| 82 | coerce 'RepeatedPanel', | ||
| 83 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Retail::V2alpha::Model::Model::PageOptimizationConfig::Panel'->new($_) } @$_ ] }; | ||
| 84 | |||
| 85 | declare 'MapStringPanel', | ||
| 86 | as HashRef[Panel()]; | ||
| 87 | |||
| 88 | declare 'ServingConfigList', | ||
| 89 | as InstanceOf['Google::Cloud::Retail::V2alpha::Model::Model::ServingConfigList']; | ||
| 90 | |||
| 91 | coerce 'ServingConfigList', | ||
| 92 | from HashRef, via { 'Google::Cloud::Retail::V2alpha::Model::Model::ServingConfigList'->new($_) }; | ||
| 93 | |||
| 94 | declare 'RepeatedServingConfigList', | ||
| 95 | as ArrayRef[ServingConfigList()]; | ||
| 96 | |||
| 97 | coerce 'RepeatedServingConfigList', | ||
| 98 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Retail::V2alpha::Model::Model::ServingConfigList'->new($_) } @$_ ] }; | ||
| 99 | |||
| 100 | declare 'MapStringServingConfigList', | ||
| 101 | as HashRef[ServingConfigList()]; | ||
| 102 | |||
| 103 | declare 'FrequentlyBoughtTogetherFeaturesConfig', | ||
| 104 | as InstanceOf['Google::Cloud::Retail::V2alpha::Model::Model::FrequentlyBoughtTogetherFeaturesConfig']; | ||
| 105 | |||
| 106 | coerce 'FrequentlyBoughtTogetherFeaturesConfig', | ||
| 107 | from HashRef, via { 'Google::Cloud::Retail::V2alpha::Model::Model::FrequentlyBoughtTogetherFeaturesConfig'->new($_) }; | ||
| 108 | |||
| 109 | declare 'RepeatedFrequentlyBoughtTogetherFeaturesConfig', | ||
| 110 | as ArrayRef[FrequentlyBoughtTogetherFeaturesConfig()]; | ||
| 111 | |||
| 112 | coerce 'RepeatedFrequentlyBoughtTogetherFeaturesConfig', | ||
| 113 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Retail::V2alpha::Model::Model::FrequentlyBoughtTogetherFeaturesConfig'->new($_) } @$_ ] }; | ||
| 114 | |||
| 115 | declare 'MapStringFrequentlyBoughtTogetherFeaturesConfig', | ||
| 116 | as HashRef[FrequentlyBoughtTogetherFeaturesConfig()]; | ||
| 117 | |||
| 118 | declare 'ModelFeaturesConfig', | ||
| 119 | as InstanceOf['Google::Cloud::Retail::V2alpha::Model::Model::ModelFeaturesConfig']; | ||
| 120 | |||
| 121 | coerce 'ModelFeaturesConfig', | ||
| 122 | from HashRef, via { 'Google::Cloud::Retail::V2alpha::Model::Model::ModelFeaturesConfig'->new($_) }; | ||
| 123 | |||
| 124 | declare 'RepeatedModelFeaturesConfig', | ||
| 125 | as ArrayRef[ModelFeaturesConfig()]; | ||
| 126 | |||
| 127 | coerce 'RepeatedModelFeaturesConfig', | ||
| 128 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Retail::V2alpha::Model::Model::ModelFeaturesConfig'->new($_) } @$_ ] }; | ||
| 129 | |||
| 130 | declare 'MapStringModelFeaturesConfig', | ||
| 131 | as HashRef[ModelFeaturesConfig()]; | ||
| 132 | |||
| 133 | 1; | ||
| 134 | |||
| 135 | __END__ |