| 1 | package Google::Cloud::Retail::V2::ImportConfig::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 'GcsSource', | ||
| 11 | as InstanceOf['Google::Cloud::Retail::V2::ImportConfig::GcsSource']; | ||
| 12 | |||
| 13 | coerce 'GcsSource', | ||
| 14 | from HashRef, via { 'Google::Cloud::Retail::V2::ImportConfig::GcsSource'->new($_) }; | ||
| 15 | |||
| 16 | declare 'RepeatedGcsSource', | ||
| 17 | as ArrayRef[GcsSource()]; | ||
| 18 | |||
| 19 | coerce 'RepeatedGcsSource', | ||
| 20 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Retail::V2::ImportConfig::GcsSource'->new($_) } @$_ ] }; | ||
| 21 | |||
| 22 | declare 'MapStringGcsSource', | ||
| 23 | as HashRef[GcsSource()]; | ||
| 24 | |||
| 25 | declare 'BigQuerySource', | ||
| 26 | as InstanceOf['Google::Cloud::Retail::V2::ImportConfig::BigQuerySource']; | ||
| 27 | |||
| 28 | coerce 'BigQuerySource', | ||
| 29 | from HashRef, via { 'Google::Cloud::Retail::V2::ImportConfig::BigQuerySource'->new($_) }; | ||
| 30 | |||
| 31 | declare 'RepeatedBigQuerySource', | ||
| 32 | as ArrayRef[BigQuerySource()]; | ||
| 33 | |||
| 34 | coerce 'RepeatedBigQuerySource', | ||
| 35 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Retail::V2::ImportConfig::BigQuerySource'->new($_) } @$_ ] }; | ||
| 36 | |||
| 37 | declare 'MapStringBigQuerySource', | ||
| 38 | as HashRef[BigQuerySource()]; | ||
| 39 | |||
| 40 | declare 'ProductInlineSource', | ||
| 41 | as InstanceOf['Google::Cloud::Retail::V2::ImportConfig::ProductInlineSource']; | ||
| 42 | |||
| 43 | coerce 'ProductInlineSource', | ||
| 44 | from HashRef, via { 'Google::Cloud::Retail::V2::ImportConfig::ProductInlineSource'->new($_) }; | ||
| 45 | |||
| 46 | declare 'RepeatedProductInlineSource', | ||
| 47 | as ArrayRef[ProductInlineSource()]; | ||
| 48 | |||
| 49 | coerce 'RepeatedProductInlineSource', | ||
| 50 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Retail::V2::ImportConfig::ProductInlineSource'->new($_) } @$_ ] }; | ||
| 51 | |||
| 52 | declare 'MapStringProductInlineSource', | ||
| 53 | as HashRef[ProductInlineSource()]; | ||
| 54 | |||
| 55 | declare 'UserEventInlineSource', | ||
| 56 | as InstanceOf['Google::Cloud::Retail::V2::ImportConfig::UserEventInlineSource']; | ||
| 57 | |||
| 58 | coerce 'UserEventInlineSource', | ||
| 59 | from HashRef, via { 'Google::Cloud::Retail::V2::ImportConfig::UserEventInlineSource'->new($_) }; | ||
| 60 | |||
| 61 | declare 'RepeatedUserEventInlineSource', | ||
| 62 | as ArrayRef[UserEventInlineSource()]; | ||
| 63 | |||
| 64 | coerce 'RepeatedUserEventInlineSource', | ||
| 65 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Retail::V2::ImportConfig::UserEventInlineSource'->new($_) } @$_ ] }; | ||
| 66 | |||
| 67 | declare 'MapStringUserEventInlineSource', | ||
| 68 | as HashRef[UserEventInlineSource()]; | ||
| 69 | |||
| 70 | declare 'ImportErrorsConfig', | ||
| 71 | as InstanceOf['Google::Cloud::Retail::V2::ImportConfig::ImportErrorsConfig']; | ||
| 72 | |||
| 73 | coerce 'ImportErrorsConfig', | ||
| 74 | from HashRef, via { 'Google::Cloud::Retail::V2::ImportConfig::ImportErrorsConfig'->new($_) }; | ||
| 75 | |||
| 76 | declare 'RepeatedImportErrorsConfig', | ||
| 77 | as ArrayRef[ImportErrorsConfig()]; | ||
| 78 | |||
| 79 | coerce 'RepeatedImportErrorsConfig', | ||
| 80 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Retail::V2::ImportConfig::ImportErrorsConfig'->new($_) } @$_ ] }; | ||
| 81 | |||
| 82 | declare 'MapStringImportErrorsConfig', | ||
| 83 | as HashRef[ImportErrorsConfig()]; | ||
| 84 | |||
| 85 | declare 'ImportProductsRequest', | ||
| 86 | as InstanceOf['Google::Cloud::Retail::V2::ImportConfig::ImportProductsRequest']; | ||
| 87 | |||
| 88 | coerce 'ImportProductsRequest', | ||
| 89 | from HashRef, via { 'Google::Cloud::Retail::V2::ImportConfig::ImportProductsRequest'->new($_) }; | ||
| 90 | |||
| 91 | declare 'RepeatedImportProductsRequest', | ||
| 92 | as ArrayRef[ImportProductsRequest()]; | ||
| 93 | |||
| 94 | coerce 'RepeatedImportProductsRequest', | ||
| 95 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Retail::V2::ImportConfig::ImportProductsRequest'->new($_) } @$_ ] }; | ||
| 96 | |||
| 97 | declare 'MapStringImportProductsRequest', | ||
| 98 | as HashRef[ImportProductsRequest()]; | ||
| 99 | |||
| 100 | declare 'ReconciliationMode', | ||
| 101 | as (Int | Str); | ||
| 102 | |||
| 103 | declare 'ImportUserEventsRequest', | ||
| 104 | as InstanceOf['Google::Cloud::Retail::V2::ImportConfig::ImportUserEventsRequest']; | ||
| 105 | |||
| 106 | coerce 'ImportUserEventsRequest', | ||
| 107 | from HashRef, via { 'Google::Cloud::Retail::V2::ImportConfig::ImportUserEventsRequest'->new($_) }; | ||
| 108 | |||
| 109 | declare 'RepeatedImportUserEventsRequest', | ||
| 110 | as ArrayRef[ImportUserEventsRequest()]; | ||
| 111 | |||
| 112 | coerce 'RepeatedImportUserEventsRequest', | ||
| 113 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Retail::V2::ImportConfig::ImportUserEventsRequest'->new($_) } @$_ ] }; | ||
| 114 | |||
| 115 | declare 'MapStringImportUserEventsRequest', | ||
| 116 | as HashRef[ImportUserEventsRequest()]; | ||
| 117 | |||
| 118 | declare 'ImportCompletionDataRequest', | ||
| 119 | as InstanceOf['Google::Cloud::Retail::V2::ImportConfig::ImportCompletionDataRequest']; | ||
| 120 | |||
| 121 | coerce 'ImportCompletionDataRequest', | ||
| 122 | from HashRef, via { 'Google::Cloud::Retail::V2::ImportConfig::ImportCompletionDataRequest'->new($_) }; | ||
| 123 | |||
| 124 | declare 'RepeatedImportCompletionDataRequest', | ||
| 125 | as ArrayRef[ImportCompletionDataRequest()]; | ||
| 126 | |||
| 127 | coerce 'RepeatedImportCompletionDataRequest', | ||
| 128 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Retail::V2::ImportConfig::ImportCompletionDataRequest'->new($_) } @$_ ] }; | ||
| 129 | |||
| 130 | declare 'MapStringImportCompletionDataRequest', | ||
| 131 | as HashRef[ImportCompletionDataRequest()]; | ||
| 132 | |||
| 133 | declare 'ProductInputConfig', | ||
| 134 | as InstanceOf['Google::Cloud::Retail::V2::ImportConfig::ProductInputConfig']; | ||
| 135 | |||
| 136 | coerce 'ProductInputConfig', | ||
| 137 | from HashRef, via { 'Google::Cloud::Retail::V2::ImportConfig::ProductInputConfig'->new($_) }; | ||
| 138 | |||
| 139 | declare 'RepeatedProductInputConfig', | ||
| 140 | as ArrayRef[ProductInputConfig()]; | ||
| 141 | |||
| 142 | coerce 'RepeatedProductInputConfig', | ||
| 143 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Retail::V2::ImportConfig::ProductInputConfig'->new($_) } @$_ ] }; | ||
| 144 | |||
| 145 | declare 'MapStringProductInputConfig', | ||
| 146 | as HashRef[ProductInputConfig()]; | ||
| 147 | |||
| 148 | declare 'UserEventInputConfig', | ||
| 149 | as InstanceOf['Google::Cloud::Retail::V2::ImportConfig::UserEventInputConfig']; | ||
| 150 | |||
| 151 | coerce 'UserEventInputConfig', | ||
| 152 | from HashRef, via { 'Google::Cloud::Retail::V2::ImportConfig::UserEventInputConfig'->new($_) }; | ||
| 153 | |||
| 154 | declare 'RepeatedUserEventInputConfig', | ||
| 155 | as ArrayRef[UserEventInputConfig()]; | ||
| 156 | |||
| 157 | coerce 'RepeatedUserEventInputConfig', | ||
| 158 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Retail::V2::ImportConfig::UserEventInputConfig'->new($_) } @$_ ] }; | ||
| 159 | |||
| 160 | declare 'MapStringUserEventInputConfig', | ||
| 161 | as HashRef[UserEventInputConfig()]; | ||
| 162 | |||
| 163 | declare 'CompletionDataInputConfig', | ||
| 164 | as InstanceOf['Google::Cloud::Retail::V2::ImportConfig::CompletionDataInputConfig']; | ||
| 165 | |||
| 166 | coerce 'CompletionDataInputConfig', | ||
| 167 | from HashRef, via { 'Google::Cloud::Retail::V2::ImportConfig::CompletionDataInputConfig'->new($_) }; | ||
| 168 | |||
| 169 | declare 'RepeatedCompletionDataInputConfig', | ||
| 170 | as ArrayRef[CompletionDataInputConfig()]; | ||
| 171 | |||
| 172 | coerce 'RepeatedCompletionDataInputConfig', | ||
| 173 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Retail::V2::ImportConfig::CompletionDataInputConfig'->new($_) } @$_ ] }; | ||
| 174 | |||
| 175 | declare 'MapStringCompletionDataInputConfig', | ||
| 176 | as HashRef[CompletionDataInputConfig()]; | ||
| 177 | |||
| 178 | declare 'ImportMetadata', | ||
| 179 | as InstanceOf['Google::Cloud::Retail::V2::ImportConfig::ImportMetadata']; | ||
| 180 | |||
| 181 | coerce 'ImportMetadata', | ||
| 182 | from HashRef, via { 'Google::Cloud::Retail::V2::ImportConfig::ImportMetadata'->new($_) }; | ||
| 183 | |||
| 184 | declare 'RepeatedImportMetadata', | ||
| 185 | as ArrayRef[ImportMetadata()]; | ||
| 186 | |||
| 187 | coerce 'RepeatedImportMetadata', | ||
| 188 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Retail::V2::ImportConfig::ImportMetadata'->new($_) } @$_ ] }; | ||
| 189 | |||
| 190 | declare 'MapStringImportMetadata', | ||
| 191 | as HashRef[ImportMetadata()]; | ||
| 192 | |||
| 193 | declare 'ImportProductsResponse', | ||
| 194 | as InstanceOf['Google::Cloud::Retail::V2::ImportConfig::ImportProductsResponse']; | ||
| 195 | |||
| 196 | coerce 'ImportProductsResponse', | ||
| 197 | from HashRef, via { 'Google::Cloud::Retail::V2::ImportConfig::ImportProductsResponse'->new($_) }; | ||
| 198 | |||
| 199 | declare 'RepeatedImportProductsResponse', | ||
| 200 | as ArrayRef[ImportProductsResponse()]; | ||
| 201 | |||
| 202 | coerce 'RepeatedImportProductsResponse', | ||
| 203 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Retail::V2::ImportConfig::ImportProductsResponse'->new($_) } @$_ ] }; | ||
| 204 | |||
| 205 | declare 'MapStringImportProductsResponse', | ||
| 206 | as HashRef[ImportProductsResponse()]; | ||
| 207 | |||
| 208 | declare 'ImportUserEventsResponse', | ||
| 209 | as InstanceOf['Google::Cloud::Retail::V2::ImportConfig::ImportUserEventsResponse']; | ||
| 210 | |||
| 211 | coerce 'ImportUserEventsResponse', | ||
| 212 | from HashRef, via { 'Google::Cloud::Retail::V2::ImportConfig::ImportUserEventsResponse'->new($_) }; | ||
| 213 | |||
| 214 | declare 'RepeatedImportUserEventsResponse', | ||
| 215 | as ArrayRef[ImportUserEventsResponse()]; | ||
| 216 | |||
| 217 | coerce 'RepeatedImportUserEventsResponse', | ||
| 218 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Retail::V2::ImportConfig::ImportUserEventsResponse'->new($_) } @$_ ] }; | ||
| 219 | |||
| 220 | declare 'MapStringImportUserEventsResponse', | ||
| 221 | as HashRef[ImportUserEventsResponse()]; | ||
| 222 | |||
| 223 | declare 'UserEventImportSummary', | ||
| 224 | as InstanceOf['Google::Cloud::Retail::V2::ImportConfig::UserEventImportSummary']; | ||
| 225 | |||
| 226 | coerce 'UserEventImportSummary', | ||
| 227 | from HashRef, via { 'Google::Cloud::Retail::V2::ImportConfig::UserEventImportSummary'->new($_) }; | ||
| 228 | |||
| 229 | declare 'RepeatedUserEventImportSummary', | ||
| 230 | as ArrayRef[UserEventImportSummary()]; | ||
| 231 | |||
| 232 | coerce 'RepeatedUserEventImportSummary', | ||
| 233 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Retail::V2::ImportConfig::UserEventImportSummary'->new($_) } @$_ ] }; | ||
| 234 | |||
| 235 | declare 'MapStringUserEventImportSummary', | ||
| 236 | as HashRef[UserEventImportSummary()]; | ||
| 237 | |||
| 238 | declare 'ImportCompletionDataResponse', | ||
| 239 | as InstanceOf['Google::Cloud::Retail::V2::ImportConfig::ImportCompletionDataResponse']; | ||
| 240 | |||
| 241 | coerce 'ImportCompletionDataResponse', | ||
| 242 | from HashRef, via { 'Google::Cloud::Retail::V2::ImportConfig::ImportCompletionDataResponse'->new($_) }; | ||
| 243 | |||
| 244 | declare 'RepeatedImportCompletionDataResponse', | ||
| 245 | as ArrayRef[ImportCompletionDataResponse()]; | ||
| 246 | |||
| 247 | coerce 'RepeatedImportCompletionDataResponse', | ||
| 248 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Retail::V2::ImportConfig::ImportCompletionDataResponse'->new($_) } @$_ ] }; | ||
| 249 | |||
| 250 | declare 'MapStringImportCompletionDataResponse', | ||
| 251 | as HashRef[ImportCompletionDataResponse()]; | ||
| 252 | |||
| 253 | 1; | ||
| 254 | |||
| 255 | __END__ |