| 1 | package Google::Cloud::Retail::V2::ProductService::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 'CreateProductRequest', | ||
| 11 | as InstanceOf['Google::Cloud::Retail::V2::ProductService::CreateProductRequest']; | ||
| 12 | |||
| 13 | coerce 'CreateProductRequest', | ||
| 14 | from HashRef, via { 'Google::Cloud::Retail::V2::ProductService::CreateProductRequest'->new($_) }; | ||
| 15 | |||
| 16 | declare 'RepeatedCreateProductRequest', | ||
| 17 | as ArrayRef[CreateProductRequest()]; | ||
| 18 | |||
| 19 | coerce 'RepeatedCreateProductRequest', | ||
| 20 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Retail::V2::ProductService::CreateProductRequest'->new($_) } @$_ ] }; | ||
| 21 | |||
| 22 | declare 'MapStringCreateProductRequest', | ||
| 23 | as HashRef[CreateProductRequest()]; | ||
| 24 | |||
| 25 | declare 'GetProductRequest', | ||
| 26 | as InstanceOf['Google::Cloud::Retail::V2::ProductService::GetProductRequest']; | ||
| 27 | |||
| 28 | coerce 'GetProductRequest', | ||
| 29 | from HashRef, via { 'Google::Cloud::Retail::V2::ProductService::GetProductRequest'->new($_) }; | ||
| 30 | |||
| 31 | declare 'RepeatedGetProductRequest', | ||
| 32 | as ArrayRef[GetProductRequest()]; | ||
| 33 | |||
| 34 | coerce 'RepeatedGetProductRequest', | ||
| 35 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Retail::V2::ProductService::GetProductRequest'->new($_) } @$_ ] }; | ||
| 36 | |||
| 37 | declare 'MapStringGetProductRequest', | ||
| 38 | as HashRef[GetProductRequest()]; | ||
| 39 | |||
| 40 | declare 'UpdateProductRequest', | ||
| 41 | as InstanceOf['Google::Cloud::Retail::V2::ProductService::UpdateProductRequest']; | ||
| 42 | |||
| 43 | coerce 'UpdateProductRequest', | ||
| 44 | from HashRef, via { 'Google::Cloud::Retail::V2::ProductService::UpdateProductRequest'->new($_) }; | ||
| 45 | |||
| 46 | declare 'RepeatedUpdateProductRequest', | ||
| 47 | as ArrayRef[UpdateProductRequest()]; | ||
| 48 | |||
| 49 | coerce 'RepeatedUpdateProductRequest', | ||
| 50 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Retail::V2::ProductService::UpdateProductRequest'->new($_) } @$_ ] }; | ||
| 51 | |||
| 52 | declare 'MapStringUpdateProductRequest', | ||
| 53 | as HashRef[UpdateProductRequest()]; | ||
| 54 | |||
| 55 | declare 'DeleteProductRequest', | ||
| 56 | as InstanceOf['Google::Cloud::Retail::V2::ProductService::DeleteProductRequest']; | ||
| 57 | |||
| 58 | coerce 'DeleteProductRequest', | ||
| 59 | from HashRef, via { 'Google::Cloud::Retail::V2::ProductService::DeleteProductRequest'->new($_) }; | ||
| 60 | |||
| 61 | declare 'RepeatedDeleteProductRequest', | ||
| 62 | as ArrayRef[DeleteProductRequest()]; | ||
| 63 | |||
| 64 | coerce 'RepeatedDeleteProductRequest', | ||
| 65 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Retail::V2::ProductService::DeleteProductRequest'->new($_) } @$_ ] }; | ||
| 66 | |||
| 67 | declare 'MapStringDeleteProductRequest', | ||
| 68 | as HashRef[DeleteProductRequest()]; | ||
| 69 | |||
| 70 | declare 'ListProductsRequest', | ||
| 71 | as InstanceOf['Google::Cloud::Retail::V2::ProductService::ListProductsRequest']; | ||
| 72 | |||
| 73 | coerce 'ListProductsRequest', | ||
| 74 | from HashRef, via { 'Google::Cloud::Retail::V2::ProductService::ListProductsRequest'->new($_) }; | ||
| 75 | |||
| 76 | declare 'RepeatedListProductsRequest', | ||
| 77 | as ArrayRef[ListProductsRequest()]; | ||
| 78 | |||
| 79 | coerce 'RepeatedListProductsRequest', | ||
| 80 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Retail::V2::ProductService::ListProductsRequest'->new($_) } @$_ ] }; | ||
| 81 | |||
| 82 | declare 'MapStringListProductsRequest', | ||
| 83 | as HashRef[ListProductsRequest()]; | ||
| 84 | |||
| 85 | declare 'ListProductsResponse', | ||
| 86 | as InstanceOf['Google::Cloud::Retail::V2::ProductService::ListProductsResponse']; | ||
| 87 | |||
| 88 | coerce 'ListProductsResponse', | ||
| 89 | from HashRef, via { 'Google::Cloud::Retail::V2::ProductService::ListProductsResponse'->new($_) }; | ||
| 90 | |||
| 91 | declare 'RepeatedListProductsResponse', | ||
| 92 | as ArrayRef[ListProductsResponse()]; | ||
| 93 | |||
| 94 | coerce 'RepeatedListProductsResponse', | ||
| 95 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Retail::V2::ProductService::ListProductsResponse'->new($_) } @$_ ] }; | ||
| 96 | |||
| 97 | declare 'MapStringListProductsResponse', | ||
| 98 | as HashRef[ListProductsResponse()]; | ||
| 99 | |||
| 100 | declare 'SetInventoryRequest', | ||
| 101 | as InstanceOf['Google::Cloud::Retail::V2::ProductService::SetInventoryRequest']; | ||
| 102 | |||
| 103 | coerce 'SetInventoryRequest', | ||
| 104 | from HashRef, via { 'Google::Cloud::Retail::V2::ProductService::SetInventoryRequest'->new($_) }; | ||
| 105 | |||
| 106 | declare 'RepeatedSetInventoryRequest', | ||
| 107 | as ArrayRef[SetInventoryRequest()]; | ||
| 108 | |||
| 109 | coerce 'RepeatedSetInventoryRequest', | ||
| 110 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Retail::V2::ProductService::SetInventoryRequest'->new($_) } @$_ ] }; | ||
| 111 | |||
| 112 | declare 'MapStringSetInventoryRequest', | ||
| 113 | as HashRef[SetInventoryRequest()]; | ||
| 114 | |||
| 115 | declare 'SetInventoryMetadata', | ||
| 116 | as InstanceOf['Google::Cloud::Retail::V2::ProductService::SetInventoryMetadata']; | ||
| 117 | |||
| 118 | coerce 'SetInventoryMetadata', | ||
| 119 | from HashRef, via { 'Google::Cloud::Retail::V2::ProductService::SetInventoryMetadata'->new($_) }; | ||
| 120 | |||
| 121 | declare 'RepeatedSetInventoryMetadata', | ||
| 122 | as ArrayRef[SetInventoryMetadata()]; | ||
| 123 | |||
| 124 | coerce 'RepeatedSetInventoryMetadata', | ||
| 125 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Retail::V2::ProductService::SetInventoryMetadata'->new($_) } @$_ ] }; | ||
| 126 | |||
| 127 | declare 'MapStringSetInventoryMetadata', | ||
| 128 | as HashRef[SetInventoryMetadata()]; | ||
| 129 | |||
| 130 | declare 'SetInventoryResponse', | ||
| 131 | as InstanceOf['Google::Cloud::Retail::V2::ProductService::SetInventoryResponse']; | ||
| 132 | |||
| 133 | coerce 'SetInventoryResponse', | ||
| 134 | from HashRef, via { 'Google::Cloud::Retail::V2::ProductService::SetInventoryResponse'->new($_) }; | ||
| 135 | |||
| 136 | declare 'RepeatedSetInventoryResponse', | ||
| 137 | as ArrayRef[SetInventoryResponse()]; | ||
| 138 | |||
| 139 | coerce 'RepeatedSetInventoryResponse', | ||
| 140 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Retail::V2::ProductService::SetInventoryResponse'->new($_) } @$_ ] }; | ||
| 141 | |||
| 142 | declare 'MapStringSetInventoryResponse', | ||
| 143 | as HashRef[SetInventoryResponse()]; | ||
| 144 | |||
| 145 | declare 'AddFulfillmentPlacesRequest', | ||
| 146 | as InstanceOf['Google::Cloud::Retail::V2::ProductService::AddFulfillmentPlacesRequest']; | ||
| 147 | |||
| 148 | coerce 'AddFulfillmentPlacesRequest', | ||
| 149 | from HashRef, via { 'Google::Cloud::Retail::V2::ProductService::AddFulfillmentPlacesRequest'->new($_) }; | ||
| 150 | |||
| 151 | declare 'RepeatedAddFulfillmentPlacesRequest', | ||
| 152 | as ArrayRef[AddFulfillmentPlacesRequest()]; | ||
| 153 | |||
| 154 | coerce 'RepeatedAddFulfillmentPlacesRequest', | ||
| 155 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Retail::V2::ProductService::AddFulfillmentPlacesRequest'->new($_) } @$_ ] }; | ||
| 156 | |||
| 157 | declare 'MapStringAddFulfillmentPlacesRequest', | ||
| 158 | as HashRef[AddFulfillmentPlacesRequest()]; | ||
| 159 | |||
| 160 | declare 'AddFulfillmentPlacesMetadata', | ||
| 161 | as InstanceOf['Google::Cloud::Retail::V2::ProductService::AddFulfillmentPlacesMetadata']; | ||
| 162 | |||
| 163 | coerce 'AddFulfillmentPlacesMetadata', | ||
| 164 | from HashRef, via { 'Google::Cloud::Retail::V2::ProductService::AddFulfillmentPlacesMetadata'->new($_) }; | ||
| 165 | |||
| 166 | declare 'RepeatedAddFulfillmentPlacesMetadata', | ||
| 167 | as ArrayRef[AddFulfillmentPlacesMetadata()]; | ||
| 168 | |||
| 169 | coerce 'RepeatedAddFulfillmentPlacesMetadata', | ||
| 170 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Retail::V2::ProductService::AddFulfillmentPlacesMetadata'->new($_) } @$_ ] }; | ||
| 171 | |||
| 172 | declare 'MapStringAddFulfillmentPlacesMetadata', | ||
| 173 | as HashRef[AddFulfillmentPlacesMetadata()]; | ||
| 174 | |||
| 175 | declare 'AddFulfillmentPlacesResponse', | ||
| 176 | as InstanceOf['Google::Cloud::Retail::V2::ProductService::AddFulfillmentPlacesResponse']; | ||
| 177 | |||
| 178 | coerce 'AddFulfillmentPlacesResponse', | ||
| 179 | from HashRef, via { 'Google::Cloud::Retail::V2::ProductService::AddFulfillmentPlacesResponse'->new($_) }; | ||
| 180 | |||
| 181 | declare 'RepeatedAddFulfillmentPlacesResponse', | ||
| 182 | as ArrayRef[AddFulfillmentPlacesResponse()]; | ||
| 183 | |||
| 184 | coerce 'RepeatedAddFulfillmentPlacesResponse', | ||
| 185 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Retail::V2::ProductService::AddFulfillmentPlacesResponse'->new($_) } @$_ ] }; | ||
| 186 | |||
| 187 | declare 'MapStringAddFulfillmentPlacesResponse', | ||
| 188 | as HashRef[AddFulfillmentPlacesResponse()]; | ||
| 189 | |||
| 190 | declare 'AddLocalInventoriesRequest', | ||
| 191 | as InstanceOf['Google::Cloud::Retail::V2::ProductService::AddLocalInventoriesRequest']; | ||
| 192 | |||
| 193 | coerce 'AddLocalInventoriesRequest', | ||
| 194 | from HashRef, via { 'Google::Cloud::Retail::V2::ProductService::AddLocalInventoriesRequest'->new($_) }; | ||
| 195 | |||
| 196 | declare 'RepeatedAddLocalInventoriesRequest', | ||
| 197 | as ArrayRef[AddLocalInventoriesRequest()]; | ||
| 198 | |||
| 199 | coerce 'RepeatedAddLocalInventoriesRequest', | ||
| 200 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Retail::V2::ProductService::AddLocalInventoriesRequest'->new($_) } @$_ ] }; | ||
| 201 | |||
| 202 | declare 'MapStringAddLocalInventoriesRequest', | ||
| 203 | as HashRef[AddLocalInventoriesRequest()]; | ||
| 204 | |||
| 205 | declare 'AddLocalInventoriesMetadata', | ||
| 206 | as InstanceOf['Google::Cloud::Retail::V2::ProductService::AddLocalInventoriesMetadata']; | ||
| 207 | |||
| 208 | coerce 'AddLocalInventoriesMetadata', | ||
| 209 | from HashRef, via { 'Google::Cloud::Retail::V2::ProductService::AddLocalInventoriesMetadata'->new($_) }; | ||
| 210 | |||
| 211 | declare 'RepeatedAddLocalInventoriesMetadata', | ||
| 212 | as ArrayRef[AddLocalInventoriesMetadata()]; | ||
| 213 | |||
| 214 | coerce 'RepeatedAddLocalInventoriesMetadata', | ||
| 215 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Retail::V2::ProductService::AddLocalInventoriesMetadata'->new($_) } @$_ ] }; | ||
| 216 | |||
| 217 | declare 'MapStringAddLocalInventoriesMetadata', | ||
| 218 | as HashRef[AddLocalInventoriesMetadata()]; | ||
| 219 | |||
| 220 | declare 'AddLocalInventoriesResponse', | ||
| 221 | as InstanceOf['Google::Cloud::Retail::V2::ProductService::AddLocalInventoriesResponse']; | ||
| 222 | |||
| 223 | coerce 'AddLocalInventoriesResponse', | ||
| 224 | from HashRef, via { 'Google::Cloud::Retail::V2::ProductService::AddLocalInventoriesResponse'->new($_) }; | ||
| 225 | |||
| 226 | declare 'RepeatedAddLocalInventoriesResponse', | ||
| 227 | as ArrayRef[AddLocalInventoriesResponse()]; | ||
| 228 | |||
| 229 | coerce 'RepeatedAddLocalInventoriesResponse', | ||
| 230 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Retail::V2::ProductService::AddLocalInventoriesResponse'->new($_) } @$_ ] }; | ||
| 231 | |||
| 232 | declare 'MapStringAddLocalInventoriesResponse', | ||
| 233 | as HashRef[AddLocalInventoriesResponse()]; | ||
| 234 | |||
| 235 | declare 'RemoveLocalInventoriesRequest', | ||
| 236 | as InstanceOf['Google::Cloud::Retail::V2::ProductService::RemoveLocalInventoriesRequest']; | ||
| 237 | |||
| 238 | coerce 'RemoveLocalInventoriesRequest', | ||
| 239 | from HashRef, via { 'Google::Cloud::Retail::V2::ProductService::RemoveLocalInventoriesRequest'->new($_) }; | ||
| 240 | |||
| 241 | declare 'RepeatedRemoveLocalInventoriesRequest', | ||
| 242 | as ArrayRef[RemoveLocalInventoriesRequest()]; | ||
| 243 | |||
| 244 | coerce 'RepeatedRemoveLocalInventoriesRequest', | ||
| 245 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Retail::V2::ProductService::RemoveLocalInventoriesRequest'->new($_) } @$_ ] }; | ||
| 246 | |||
| 247 | declare 'MapStringRemoveLocalInventoriesRequest', | ||
| 248 | as HashRef[RemoveLocalInventoriesRequest()]; | ||
| 249 | |||
| 250 | declare 'RemoveLocalInventoriesMetadata', | ||
| 251 | as InstanceOf['Google::Cloud::Retail::V2::ProductService::RemoveLocalInventoriesMetadata']; | ||
| 252 | |||
| 253 | coerce 'RemoveLocalInventoriesMetadata', | ||
| 254 | from HashRef, via { 'Google::Cloud::Retail::V2::ProductService::RemoveLocalInventoriesMetadata'->new($_) }; | ||
| 255 | |||
| 256 | declare 'RepeatedRemoveLocalInventoriesMetadata', | ||
| 257 | as ArrayRef[RemoveLocalInventoriesMetadata()]; | ||
| 258 | |||
| 259 | coerce 'RepeatedRemoveLocalInventoriesMetadata', | ||
| 260 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Retail::V2::ProductService::RemoveLocalInventoriesMetadata'->new($_) } @$_ ] }; | ||
| 261 | |||
| 262 | declare 'MapStringRemoveLocalInventoriesMetadata', | ||
| 263 | as HashRef[RemoveLocalInventoriesMetadata()]; | ||
| 264 | |||
| 265 | declare 'RemoveLocalInventoriesResponse', | ||
| 266 | as InstanceOf['Google::Cloud::Retail::V2::ProductService::RemoveLocalInventoriesResponse']; | ||
| 267 | |||
| 268 | coerce 'RemoveLocalInventoriesResponse', | ||
| 269 | from HashRef, via { 'Google::Cloud::Retail::V2::ProductService::RemoveLocalInventoriesResponse'->new($_) }; | ||
| 270 | |||
| 271 | declare 'RepeatedRemoveLocalInventoriesResponse', | ||
| 272 | as ArrayRef[RemoveLocalInventoriesResponse()]; | ||
| 273 | |||
| 274 | coerce 'RepeatedRemoveLocalInventoriesResponse', | ||
| 275 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Retail::V2::ProductService::RemoveLocalInventoriesResponse'->new($_) } @$_ ] }; | ||
| 276 | |||
| 277 | declare 'MapStringRemoveLocalInventoriesResponse', | ||
| 278 | as HashRef[RemoveLocalInventoriesResponse()]; | ||
| 279 | |||
| 280 | declare 'RemoveFulfillmentPlacesRequest', | ||
| 281 | as InstanceOf['Google::Cloud::Retail::V2::ProductService::RemoveFulfillmentPlacesRequest']; | ||
| 282 | |||
| 283 | coerce 'RemoveFulfillmentPlacesRequest', | ||
| 284 | from HashRef, via { 'Google::Cloud::Retail::V2::ProductService::RemoveFulfillmentPlacesRequest'->new($_) }; | ||
| 285 | |||
| 286 | declare 'RepeatedRemoveFulfillmentPlacesRequest', | ||
| 287 | as ArrayRef[RemoveFulfillmentPlacesRequest()]; | ||
| 288 | |||
| 289 | coerce 'RepeatedRemoveFulfillmentPlacesRequest', | ||
| 290 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Retail::V2::ProductService::RemoveFulfillmentPlacesRequest'->new($_) } @$_ ] }; | ||
| 291 | |||
| 292 | declare 'MapStringRemoveFulfillmentPlacesRequest', | ||
| 293 | as HashRef[RemoveFulfillmentPlacesRequest()]; | ||
| 294 | |||
| 295 | declare 'RemoveFulfillmentPlacesMetadata', | ||
| 296 | as InstanceOf['Google::Cloud::Retail::V2::ProductService::RemoveFulfillmentPlacesMetadata']; | ||
| 297 | |||
| 298 | coerce 'RemoveFulfillmentPlacesMetadata', | ||
| 299 | from HashRef, via { 'Google::Cloud::Retail::V2::ProductService::RemoveFulfillmentPlacesMetadata'->new($_) }; | ||
| 300 | |||
| 301 | declare 'RepeatedRemoveFulfillmentPlacesMetadata', | ||
| 302 | as ArrayRef[RemoveFulfillmentPlacesMetadata()]; | ||
| 303 | |||
| 304 | coerce 'RepeatedRemoveFulfillmentPlacesMetadata', | ||
| 305 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Retail::V2::ProductService::RemoveFulfillmentPlacesMetadata'->new($_) } @$_ ] }; | ||
| 306 | |||
| 307 | declare 'MapStringRemoveFulfillmentPlacesMetadata', | ||
| 308 | as HashRef[RemoveFulfillmentPlacesMetadata()]; | ||
| 309 | |||
| 310 | declare 'RemoveFulfillmentPlacesResponse', | ||
| 311 | as InstanceOf['Google::Cloud::Retail::V2::ProductService::RemoveFulfillmentPlacesResponse']; | ||
| 312 | |||
| 313 | coerce 'RemoveFulfillmentPlacesResponse', | ||
| 314 | from HashRef, via { 'Google::Cloud::Retail::V2::ProductService::RemoveFulfillmentPlacesResponse'->new($_) }; | ||
| 315 | |||
| 316 | declare 'RepeatedRemoveFulfillmentPlacesResponse', | ||
| 317 | as ArrayRef[RemoveFulfillmentPlacesResponse()]; | ||
| 318 | |||
| 319 | coerce 'RepeatedRemoveFulfillmentPlacesResponse', | ||
| 320 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Retail::V2::ProductService::RemoveFulfillmentPlacesResponse'->new($_) } @$_ ] }; | ||
| 321 | |||
| 322 | declare 'MapStringRemoveFulfillmentPlacesResponse', | ||
| 323 | as HashRef[RemoveFulfillmentPlacesResponse()]; | ||
| 324 | |||
| 325 | 1; | ||
| 326 | |||
| 327 | __END__ |