@paakd/api 0.0.2 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (61) hide show
  1. package/package.json +11 -9
  2. package/buf/validate/validate_pb.ts +0 -5001
  3. package/gen/buf/validate/validate_pb.ts +0 -4799
  4. package/gen/src/proto/auth/v1/authv1connect/service.connect.go +0 -454
  5. package/gen/src/proto/auth/v1/entities/auth.pb.go +0 -818
  6. package/gen/src/proto/auth/v1/entities/auth_pb.ts +0 -348
  7. package/gen/src/proto/auth/v1/entities/policy.pb.go +0 -727
  8. package/gen/src/proto/auth/v1/entities/policy_pb.ts +0 -306
  9. package/gen/src/proto/auth/v1/service-AuthService_connectquery.ts +0 -70
  10. package/gen/src/proto/auth/v1/service.pb.go +0 -119
  11. package/gen/src/proto/auth/v1/service_pb.ts +0 -152
  12. package/gen/src/proto/customers/v1/customersv1connect/service.connect.go +0 -358
  13. package/gen/src/proto/customers/v1/entities/address.pb.go +0 -1073
  14. package/gen/src/proto/customers/v1/entities/address_pb.ts +0 -478
  15. package/gen/src/proto/customers/v1/entities/profile.pb.go +0 -633
  16. package/gen/src/proto/customers/v1/entities/profile_pb.ts +0 -252
  17. package/gen/src/proto/customers/v1/service-CustomerService_connectquery.ts +0 -50
  18. package/gen/src/proto/customers/v1/service.pb.go +0 -110
  19. package/gen/src/proto/customers/v1/service_pb.ts +0 -121
  20. package/gen/src/proto/files/v1/entities/file.pb.go +0 -669
  21. package/gen/src/proto/files/v1/entities/file_pb.ts +0 -265
  22. package/gen/src/proto/files/v1/filesv1connect/service.connect.go +0 -200
  23. package/gen/src/proto/files/v1/service-FileService_connectquery.ts +0 -25
  24. package/gen/src/proto/files/v1/service.pb.go +0 -85
  25. package/gen/src/proto/files/v1/service_pb.ts +0 -65
  26. package/gen/src/proto/products/v1/entities/category.pb.go +0 -744
  27. package/gen/src/proto/products/v1/entities/category_pb.ts +0 -318
  28. package/gen/src/proto/products/v1/entities/collection.pb.go +0 -528
  29. package/gen/src/proto/products/v1/entities/collection_pb.ts +0 -214
  30. package/gen/src/proto/products/v1/entities/product/create.pb.go +0 -453
  31. package/gen/src/proto/products/v1/entities/product/create_pb.ts +0 -199
  32. package/gen/src/proto/products/v1/entities/product/option.pb.go +0 -206
  33. package/gen/src/proto/products/v1/entities/product/option_pb.ts +0 -74
  34. package/gen/src/proto/products/v1/entities/product/shared.pb.go +0 -2890
  35. package/gen/src/proto/products/v1/entities/product/shared_pb.ts +0 -1317
  36. package/gen/src/proto/products/v1/entities/product/update.pb.go +0 -794
  37. package/gen/src/proto/products/v1/entities/product/update_pb.ts +0 -325
  38. package/gen/src/proto/products/v1/entities/tag.pb.go +0 -610
  39. package/gen/src/proto/products/v1/entities/tag_pb.ts +0 -233
  40. package/gen/src/proto/products/v1/entities/taxonomy.pb.go +0 -1352
  41. package/gen/src/proto/products/v1/entities/taxonomy_pb.ts +0 -606
  42. package/gen/src/proto/products/v1/entities/type.pb.go +0 -553
  43. package/gen/src/proto/products/v1/entities/type_pb.ts +0 -215
  44. package/gen/src/proto/products/v1/entities/variant.pb.go +0 -1474
  45. package/gen/src/proto/products/v1/entities/variant_pb.ts +0 -629
  46. package/gen/src/proto/products/v1/productsv1connect/service.connect.go +0 -1195
  47. package/gen/src/proto/products/v1/service-ProductsService_connectquery.ts +0 -199
  48. package/gen/src/proto/products/v1/service.pb.go +0 -250
  49. package/gen/src/proto/products/v1/service_pb.ts +0 -429
  50. package/gen/src/proto/promotions/v1/entities/campaign.pb.go +0 -1229
  51. package/gen/src/proto/promotions/v1/entities/campaign_pb.ts +0 -511
  52. package/gen/src/proto/promotions/v1/promotionsv1connect/service.connect.go +0 -289
  53. package/gen/src/proto/promotions/v1/service-CampaignService_connectquery.ts +0 -42
  54. package/gen/src/proto/promotions/v1/service.pb.go +0 -98
  55. package/gen/src/proto/promotions/v1/service_pb.ts +0 -95
  56. package/gen/src/proto/stocknodes/v1/entities/stocknode.pb.go +0 -1499
  57. package/gen/src/proto/stocknodes/v1/entities/stocknode_pb.ts +0 -655
  58. package/gen/src/proto/stocknodes/v1/service-StockNodesService_connectquery.ts +0 -41
  59. package/gen/src/proto/stocknodes/v1/service.pb.go +0 -98
  60. package/gen/src/proto/stocknodes/v1/service_pb.ts +0 -95
  61. package/gen/src/proto/stocknodes/v1/stocknodesv1connect/service.connect.go +0 -297
@@ -1,2890 +0,0 @@
1
- // Code generated by protoc-gen-go. DO NOT EDIT.
2
- // versions:
3
- // protoc-gen-go v1.36.6
4
- // protoc (unknown)
5
- // source: src/proto/products/v1/entities/product/shared.proto
6
-
7
- package product
8
-
9
- import (
10
- _ "buf.build/gen/go/bufbuild/protovalidate/protocolbuffers/go/buf/validate"
11
- protoreflect "google.golang.org/protobuf/reflect/protoreflect"
12
- protoimpl "google.golang.org/protobuf/runtime/protoimpl"
13
- reflect "reflect"
14
- sync "sync"
15
- unsafe "unsafe"
16
- )
17
-
18
- const (
19
- // Verify that this generated code is sufficiently up-to-date.
20
- _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
21
- // Verify that runtime/protoimpl is sufficiently up-to-date.
22
- _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
23
- )
24
-
25
- type ProductStatus int32
26
-
27
- const (
28
- ProductStatus_DRAFT ProductStatus = 0
29
- ProductStatus_PROPOSED ProductStatus = 1
30
- ProductStatus_PUBLISHED ProductStatus = 2
31
- ProductStatus_REJECTED ProductStatus = 3
32
- )
33
-
34
- // Enum value maps for ProductStatus.
35
- var (
36
- ProductStatus_name = map[int32]string{
37
- 0: "DRAFT",
38
- 1: "PROPOSED",
39
- 2: "PUBLISHED",
40
- 3: "REJECTED",
41
- }
42
- ProductStatus_value = map[string]int32{
43
- "DRAFT": 0,
44
- "PROPOSED": 1,
45
- "PUBLISHED": 2,
46
- "REJECTED": 3,
47
- }
48
- )
49
-
50
- func (x ProductStatus) Enum() *ProductStatus {
51
- p := new(ProductStatus)
52
- *p = x
53
- return p
54
- }
55
-
56
- func (x ProductStatus) String() string {
57
- return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
58
- }
59
-
60
- func (ProductStatus) Descriptor() protoreflect.EnumDescriptor {
61
- return file_src_proto_products_v1_entities_product_shared_proto_enumTypes[0].Descriptor()
62
- }
63
-
64
- func (ProductStatus) Type() protoreflect.EnumType {
65
- return &file_src_proto_products_v1_entities_product_shared_proto_enumTypes[0]
66
- }
67
-
68
- func (x ProductStatus) Number() protoreflect.EnumNumber {
69
- return protoreflect.EnumNumber(x)
70
- }
71
-
72
- // Deprecated: Use ProductStatus.Descriptor instead.
73
- func (ProductStatus) EnumDescriptor() ([]byte, []int) {
74
- return file_src_proto_products_v1_entities_product_shared_proto_rawDescGZIP(), []int{0}
75
- }
76
-
77
- type Variant_Price_RuleType int32
78
-
79
- const (
80
- Variant_Price_RULE_TYPE_UNSPECIFIED Variant_Price_RuleType = 0
81
- Variant_Price_RULE_TYPE_REGION Variant_Price_RuleType = 1
82
- Variant_Price_RULE_TYPE_CUSTOMER_GROUP Variant_Price_RuleType = 2
83
- )
84
-
85
- // Enum value maps for Variant_Price_RuleType.
86
- var (
87
- Variant_Price_RuleType_name = map[int32]string{
88
- 0: "RULE_TYPE_UNSPECIFIED",
89
- 1: "RULE_TYPE_REGION",
90
- 2: "RULE_TYPE_CUSTOMER_GROUP",
91
- }
92
- Variant_Price_RuleType_value = map[string]int32{
93
- "RULE_TYPE_UNSPECIFIED": 0,
94
- "RULE_TYPE_REGION": 1,
95
- "RULE_TYPE_CUSTOMER_GROUP": 2,
96
- }
97
- )
98
-
99
- func (x Variant_Price_RuleType) Enum() *Variant_Price_RuleType {
100
- p := new(Variant_Price_RuleType)
101
- *p = x
102
- return p
103
- }
104
-
105
- func (x Variant_Price_RuleType) String() string {
106
- return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
107
- }
108
-
109
- func (Variant_Price_RuleType) Descriptor() protoreflect.EnumDescriptor {
110
- return file_src_proto_products_v1_entities_product_shared_proto_enumTypes[1].Descriptor()
111
- }
112
-
113
- func (Variant_Price_RuleType) Type() protoreflect.EnumType {
114
- return &file_src_proto_products_v1_entities_product_shared_proto_enumTypes[1]
115
- }
116
-
117
- func (x Variant_Price_RuleType) Number() protoreflect.EnumNumber {
118
- return protoreflect.EnumNumber(x)
119
- }
120
-
121
- // Deprecated: Use Variant_Price_RuleType.Descriptor instead.
122
- func (Variant_Price_RuleType) EnumDescriptor() ([]byte, []int) {
123
- return file_src_proto_products_v1_entities_product_shared_proto_rawDescGZIP(), []int{1, 1, 0}
124
- }
125
-
126
- type ProductResponse_ProductVariant_Price_Rule_Type int32
127
-
128
- const (
129
- ProductResponse_ProductVariant_Price_Rule_TYPE_UNSPECIFIED ProductResponse_ProductVariant_Price_Rule_Type = 0
130
- ProductResponse_ProductVariant_Price_Rule_TYPE_REGION ProductResponse_ProductVariant_Price_Rule_Type = 1
131
- ProductResponse_ProductVariant_Price_Rule_TYPE_CUSTOMER_GROUP ProductResponse_ProductVariant_Price_Rule_Type = 2
132
- )
133
-
134
- // Enum value maps for ProductResponse_ProductVariant_Price_Rule_Type.
135
- var (
136
- ProductResponse_ProductVariant_Price_Rule_Type_name = map[int32]string{
137
- 0: "TYPE_UNSPECIFIED",
138
- 1: "TYPE_REGION",
139
- 2: "TYPE_CUSTOMER_GROUP",
140
- }
141
- ProductResponse_ProductVariant_Price_Rule_Type_value = map[string]int32{
142
- "TYPE_UNSPECIFIED": 0,
143
- "TYPE_REGION": 1,
144
- "TYPE_CUSTOMER_GROUP": 2,
145
- }
146
- )
147
-
148
- func (x ProductResponse_ProductVariant_Price_Rule_Type) Enum() *ProductResponse_ProductVariant_Price_Rule_Type {
149
- p := new(ProductResponse_ProductVariant_Price_Rule_Type)
150
- *p = x
151
- return p
152
- }
153
-
154
- func (x ProductResponse_ProductVariant_Price_Rule_Type) String() string {
155
- return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
156
- }
157
-
158
- func (ProductResponse_ProductVariant_Price_Rule_Type) Descriptor() protoreflect.EnumDescriptor {
159
- return file_src_proto_products_v1_entities_product_shared_proto_enumTypes[2].Descriptor()
160
- }
161
-
162
- func (ProductResponse_ProductVariant_Price_Rule_Type) Type() protoreflect.EnumType {
163
- return &file_src_proto_products_v1_entities_product_shared_proto_enumTypes[2]
164
- }
165
-
166
- func (x ProductResponse_ProductVariant_Price_Rule_Type) Number() protoreflect.EnumNumber {
167
- return protoreflect.EnumNumber(x)
168
- }
169
-
170
- // Deprecated: Use ProductResponse_ProductVariant_Price_Rule_Type.Descriptor instead.
171
- func (ProductResponse_ProductVariant_Price_Rule_Type) EnumDescriptor() ([]byte, []int) {
172
- return file_src_proto_products_v1_entities_product_shared_proto_rawDescGZIP(), []int{2, 9, 0, 0, 0}
173
- }
174
-
175
- type ProductOption struct {
176
- state protoimpl.MessageState `protogen:"open.v1"`
177
- Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
178
- Values []string `protobuf:"bytes,2,rep,name=values,proto3" json:"values,omitempty"`
179
- unknownFields protoimpl.UnknownFields
180
- sizeCache protoimpl.SizeCache
181
- }
182
-
183
- func (x *ProductOption) Reset() {
184
- *x = ProductOption{}
185
- mi := &file_src_proto_products_v1_entities_product_shared_proto_msgTypes[0]
186
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
187
- ms.StoreMessageInfo(mi)
188
- }
189
-
190
- func (x *ProductOption) String() string {
191
- return protoimpl.X.MessageStringOf(x)
192
- }
193
-
194
- func (*ProductOption) ProtoMessage() {}
195
-
196
- func (x *ProductOption) ProtoReflect() protoreflect.Message {
197
- mi := &file_src_proto_products_v1_entities_product_shared_proto_msgTypes[0]
198
- if x != nil {
199
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
200
- if ms.LoadMessageInfo() == nil {
201
- ms.StoreMessageInfo(mi)
202
- }
203
- return ms
204
- }
205
- return mi.MessageOf(x)
206
- }
207
-
208
- // Deprecated: Use ProductOption.ProtoReflect.Descriptor instead.
209
- func (*ProductOption) Descriptor() ([]byte, []int) {
210
- return file_src_proto_products_v1_entities_product_shared_proto_rawDescGZIP(), []int{0}
211
- }
212
-
213
- func (x *ProductOption) GetTitle() string {
214
- if x != nil {
215
- return x.Title
216
- }
217
- return ""
218
- }
219
-
220
- func (x *ProductOption) GetValues() []string {
221
- if x != nil {
222
- return x.Values
223
- }
224
- return nil
225
- }
226
-
227
- type Variant struct {
228
- state protoimpl.MessageState `protogen:"open.v1"`
229
- Id *string `protobuf:"bytes,1,opt,name=id,proto3,oneof" json:"id,omitempty"`
230
- Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
231
- Sku *string `protobuf:"bytes,3,opt,name=sku,proto3,oneof" json:"sku,omitempty"`
232
- Ean *string `protobuf:"bytes,4,opt,name=ean,proto3,oneof" json:"ean,omitempty"`
233
- Upc *string `protobuf:"bytes,5,opt,name=upc,proto3,oneof" json:"upc,omitempty"`
234
- Barcode *string `protobuf:"bytes,6,opt,name=barcode,proto3,oneof" json:"barcode,omitempty"`
235
- TrackInventory *bool `protobuf:"varint,7,opt,name=track_inventory,json=trackInventory,proto3,oneof" json:"track_inventory,omitempty"`
236
- IsManageInventory *bool `protobuf:"varint,8,opt,name=is_manage_inventory,json=isManageInventory,proto3,oneof" json:"is_manage_inventory,omitempty"`
237
- Weight *float32 `protobuf:"fixed32,9,opt,name=weight,proto3,oneof" json:"weight,omitempty"`
238
- Length *float32 `protobuf:"fixed32,10,opt,name=length,proto3,oneof" json:"length,omitempty"`
239
- Width *float32 `protobuf:"fixed32,11,opt,name=width,proto3,oneof" json:"width,omitempty"`
240
- Height *float32 `protobuf:"fixed32,12,opt,name=height,proto3,oneof" json:"height,omitempty"`
241
- HsCode *string `protobuf:"bytes,13,opt,name=hs_code,json=hsCode,proto3,oneof" json:"hs_code,omitempty"`
242
- OriginCountry *string `protobuf:"bytes,14,opt,name=origin_country,json=originCountry,proto3,oneof" json:"origin_country,omitempty"`
243
- Material *string `protobuf:"bytes,15,opt,name=material,proto3,oneof" json:"material,omitempty"`
244
- OptionValues []*Variant_OptionValue `protobuf:"bytes,16,rep,name=option_values,json=optionValues,proto3" json:"option_values,omitempty"`
245
- Prices []*Variant_Price `protobuf:"bytes,17,rep,name=prices,proto3" json:"prices,omitempty"`
246
- InventoryItems []*Variant_InventoryItem `protobuf:"bytes,18,rep,name=inventory_items,json=inventoryItems,proto3" json:"inventory_items,omitempty"`
247
- Metadata map[string]string `protobuf:"bytes,19,rep,name=metadata,proto3" json:"metadata,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
248
- MidCode *string `protobuf:"bytes,20,opt,name=mid_code,json=midCode,proto3,oneof" json:"mid_code,omitempty"`
249
- AllowBackorder *bool `protobuf:"varint,21,opt,name=allow_backorder,json=allowBackorder,proto3,oneof" json:"allow_backorder,omitempty"`
250
- Rank *int32 `protobuf:"varint,22,opt,name=rank,proto3,oneof" json:"rank,omitempty"`
251
- unknownFields protoimpl.UnknownFields
252
- sizeCache protoimpl.SizeCache
253
- }
254
-
255
- func (x *Variant) Reset() {
256
- *x = Variant{}
257
- mi := &file_src_proto_products_v1_entities_product_shared_proto_msgTypes[1]
258
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
259
- ms.StoreMessageInfo(mi)
260
- }
261
-
262
- func (x *Variant) String() string {
263
- return protoimpl.X.MessageStringOf(x)
264
- }
265
-
266
- func (*Variant) ProtoMessage() {}
267
-
268
- func (x *Variant) ProtoReflect() protoreflect.Message {
269
- mi := &file_src_proto_products_v1_entities_product_shared_proto_msgTypes[1]
270
- if x != nil {
271
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
272
- if ms.LoadMessageInfo() == nil {
273
- ms.StoreMessageInfo(mi)
274
- }
275
- return ms
276
- }
277
- return mi.MessageOf(x)
278
- }
279
-
280
- // Deprecated: Use Variant.ProtoReflect.Descriptor instead.
281
- func (*Variant) Descriptor() ([]byte, []int) {
282
- return file_src_proto_products_v1_entities_product_shared_proto_rawDescGZIP(), []int{1}
283
- }
284
-
285
- func (x *Variant) GetId() string {
286
- if x != nil && x.Id != nil {
287
- return *x.Id
288
- }
289
- return ""
290
- }
291
-
292
- func (x *Variant) GetTitle() string {
293
- if x != nil {
294
- return x.Title
295
- }
296
- return ""
297
- }
298
-
299
- func (x *Variant) GetSku() string {
300
- if x != nil && x.Sku != nil {
301
- return *x.Sku
302
- }
303
- return ""
304
- }
305
-
306
- func (x *Variant) GetEan() string {
307
- if x != nil && x.Ean != nil {
308
- return *x.Ean
309
- }
310
- return ""
311
- }
312
-
313
- func (x *Variant) GetUpc() string {
314
- if x != nil && x.Upc != nil {
315
- return *x.Upc
316
- }
317
- return ""
318
- }
319
-
320
- func (x *Variant) GetBarcode() string {
321
- if x != nil && x.Barcode != nil {
322
- return *x.Barcode
323
- }
324
- return ""
325
- }
326
-
327
- func (x *Variant) GetTrackInventory() bool {
328
- if x != nil && x.TrackInventory != nil {
329
- return *x.TrackInventory
330
- }
331
- return false
332
- }
333
-
334
- func (x *Variant) GetIsManageInventory() bool {
335
- if x != nil && x.IsManageInventory != nil {
336
- return *x.IsManageInventory
337
- }
338
- return false
339
- }
340
-
341
- func (x *Variant) GetWeight() float32 {
342
- if x != nil && x.Weight != nil {
343
- return *x.Weight
344
- }
345
- return 0
346
- }
347
-
348
- func (x *Variant) GetLength() float32 {
349
- if x != nil && x.Length != nil {
350
- return *x.Length
351
- }
352
- return 0
353
- }
354
-
355
- func (x *Variant) GetWidth() float32 {
356
- if x != nil && x.Width != nil {
357
- return *x.Width
358
- }
359
- return 0
360
- }
361
-
362
- func (x *Variant) GetHeight() float32 {
363
- if x != nil && x.Height != nil {
364
- return *x.Height
365
- }
366
- return 0
367
- }
368
-
369
- func (x *Variant) GetHsCode() string {
370
- if x != nil && x.HsCode != nil {
371
- return *x.HsCode
372
- }
373
- return ""
374
- }
375
-
376
- func (x *Variant) GetOriginCountry() string {
377
- if x != nil && x.OriginCountry != nil {
378
- return *x.OriginCountry
379
- }
380
- return ""
381
- }
382
-
383
- func (x *Variant) GetMaterial() string {
384
- if x != nil && x.Material != nil {
385
- return *x.Material
386
- }
387
- return ""
388
- }
389
-
390
- func (x *Variant) GetOptionValues() []*Variant_OptionValue {
391
- if x != nil {
392
- return x.OptionValues
393
- }
394
- return nil
395
- }
396
-
397
- func (x *Variant) GetPrices() []*Variant_Price {
398
- if x != nil {
399
- return x.Prices
400
- }
401
- return nil
402
- }
403
-
404
- func (x *Variant) GetInventoryItems() []*Variant_InventoryItem {
405
- if x != nil {
406
- return x.InventoryItems
407
- }
408
- return nil
409
- }
410
-
411
- func (x *Variant) GetMetadata() map[string]string {
412
- if x != nil {
413
- return x.Metadata
414
- }
415
- return nil
416
- }
417
-
418
- func (x *Variant) GetMidCode() string {
419
- if x != nil && x.MidCode != nil {
420
- return *x.MidCode
421
- }
422
- return ""
423
- }
424
-
425
- func (x *Variant) GetAllowBackorder() bool {
426
- if x != nil && x.AllowBackorder != nil {
427
- return *x.AllowBackorder
428
- }
429
- return false
430
- }
431
-
432
- func (x *Variant) GetRank() int32 {
433
- if x != nil && x.Rank != nil {
434
- return *x.Rank
435
- }
436
- return 0
437
- }
438
-
439
- type ProductResponse struct {
440
- state protoimpl.MessageState `protogen:"open.v1"`
441
- Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
442
- Length float32 `protobuf:"fixed32,2,opt,name=length,proto3" json:"length,omitempty"`
443
- Title string `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"`
444
- Status ProductStatus `protobuf:"varint,4,opt,name=status,proto3,enum=ProductStatus" json:"status,omitempty"`
445
- Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"`
446
- Slug string `protobuf:"bytes,6,opt,name=slug,proto3" json:"slug,omitempty"`
447
- Subtitle string `protobuf:"bytes,7,opt,name=subtitle,proto3" json:"subtitle,omitempty"`
448
- Thumbnail string `protobuf:"bytes,8,opt,name=thumbnail,proto3" json:"thumbnail,omitempty"`
449
- IsGiftcard bool `protobuf:"varint,9,opt,name=is_giftcard,json=isGiftcard,proto3" json:"is_giftcard,omitempty"`
450
- Weight float32 `protobuf:"fixed32,10,opt,name=weight,proto3" json:"weight,omitempty"`
451
- Height float32 `protobuf:"fixed32,11,opt,name=height,proto3" json:"height,omitempty"`
452
- Width float32 `protobuf:"fixed32,12,opt,name=width,proto3" json:"width,omitempty"`
453
- OriginCountry string `protobuf:"bytes,13,opt,name=origin_country,json=originCountry,proto3" json:"origin_country,omitempty"`
454
- HsCode string `protobuf:"bytes,14,opt,name=hs_code,json=hsCode,proto3" json:"hs_code,omitempty"`
455
- MidCode string `protobuf:"bytes,15,opt,name=mid_code,json=midCode,proto3" json:"mid_code,omitempty"`
456
- CollectionId string `protobuf:"bytes,16,opt,name=collection_id,json=collectionId,proto3" json:"collection_id,omitempty"`
457
- TypeId string `protobuf:"bytes,17,opt,name=type_id,json=typeId,proto3" json:"type_id,omitempty"`
458
- IsDiscountable bool `protobuf:"varint,18,opt,name=is_discountable,json=isDiscountable,proto3" json:"is_discountable,omitempty"`
459
- ExternalId string `protobuf:"bytes,19,opt,name=external_id,json=externalId,proto3" json:"external_id,omitempty"`
460
- Variants []*ProductResponse_ProductVariant `protobuf:"bytes,20,rep,name=variants,proto3" json:"variants,omitempty"`
461
- Type *ProductResponse_Type `protobuf:"bytes,21,opt,name=type,proto3" json:"type,omitempty"`
462
- Options *ProductResponse_Option `protobuf:"bytes,22,opt,name=options,proto3" json:"options,omitempty"`
463
- Images []*ProductResponse_Image `protobuf:"bytes,23,rep,name=images,proto3" json:"images,omitempty"`
464
- Collection *ProductResponse_Collection `protobuf:"bytes,24,opt,name=collection,proto3" json:"collection,omitempty"`
465
- Categories []*ProductResponse_Category `protobuf:"bytes,25,rep,name=categories,proto3" json:"categories,omitempty"`
466
- SalesChannels []*ProductResponse_SalesChannel `protobuf:"bytes,26,rep,name=sales_channels,json=salesChannels,proto3" json:"sales_channels,omitempty"`
467
- Tags []*ProductResponse_Tag `protobuf:"bytes,27,rep,name=tags,proto3" json:"tags,omitempty"`
468
- ShippingProfile *ProductResponse_ShippingProfile `protobuf:"bytes,28,opt,name=shipping_profile,json=shippingProfile,proto3" json:"shipping_profile,omitempty"`
469
- Metadata map[string]string `protobuf:"bytes,29,rep,name=metadata,proto3" json:"metadata,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
470
- unknownFields protoimpl.UnknownFields
471
- sizeCache protoimpl.SizeCache
472
- }
473
-
474
- func (x *ProductResponse) Reset() {
475
- *x = ProductResponse{}
476
- mi := &file_src_proto_products_v1_entities_product_shared_proto_msgTypes[2]
477
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
478
- ms.StoreMessageInfo(mi)
479
- }
480
-
481
- func (x *ProductResponse) String() string {
482
- return protoimpl.X.MessageStringOf(x)
483
- }
484
-
485
- func (*ProductResponse) ProtoMessage() {}
486
-
487
- func (x *ProductResponse) ProtoReflect() protoreflect.Message {
488
- mi := &file_src_proto_products_v1_entities_product_shared_proto_msgTypes[2]
489
- if x != nil {
490
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
491
- if ms.LoadMessageInfo() == nil {
492
- ms.StoreMessageInfo(mi)
493
- }
494
- return ms
495
- }
496
- return mi.MessageOf(x)
497
- }
498
-
499
- // Deprecated: Use ProductResponse.ProtoReflect.Descriptor instead.
500
- func (*ProductResponse) Descriptor() ([]byte, []int) {
501
- return file_src_proto_products_v1_entities_product_shared_proto_rawDescGZIP(), []int{2}
502
- }
503
-
504
- func (x *ProductResponse) GetId() string {
505
- if x != nil {
506
- return x.Id
507
- }
508
- return ""
509
- }
510
-
511
- func (x *ProductResponse) GetLength() float32 {
512
- if x != nil {
513
- return x.Length
514
- }
515
- return 0
516
- }
517
-
518
- func (x *ProductResponse) GetTitle() string {
519
- if x != nil {
520
- return x.Title
521
- }
522
- return ""
523
- }
524
-
525
- func (x *ProductResponse) GetStatus() ProductStatus {
526
- if x != nil {
527
- return x.Status
528
- }
529
- return ProductStatus_DRAFT
530
- }
531
-
532
- func (x *ProductResponse) GetDescription() string {
533
- if x != nil {
534
- return x.Description
535
- }
536
- return ""
537
- }
538
-
539
- func (x *ProductResponse) GetSlug() string {
540
- if x != nil {
541
- return x.Slug
542
- }
543
- return ""
544
- }
545
-
546
- func (x *ProductResponse) GetSubtitle() string {
547
- if x != nil {
548
- return x.Subtitle
549
- }
550
- return ""
551
- }
552
-
553
- func (x *ProductResponse) GetThumbnail() string {
554
- if x != nil {
555
- return x.Thumbnail
556
- }
557
- return ""
558
- }
559
-
560
- func (x *ProductResponse) GetIsGiftcard() bool {
561
- if x != nil {
562
- return x.IsGiftcard
563
- }
564
- return false
565
- }
566
-
567
- func (x *ProductResponse) GetWeight() float32 {
568
- if x != nil {
569
- return x.Weight
570
- }
571
- return 0
572
- }
573
-
574
- func (x *ProductResponse) GetHeight() float32 {
575
- if x != nil {
576
- return x.Height
577
- }
578
- return 0
579
- }
580
-
581
- func (x *ProductResponse) GetWidth() float32 {
582
- if x != nil {
583
- return x.Width
584
- }
585
- return 0
586
- }
587
-
588
- func (x *ProductResponse) GetOriginCountry() string {
589
- if x != nil {
590
- return x.OriginCountry
591
- }
592
- return ""
593
- }
594
-
595
- func (x *ProductResponse) GetHsCode() string {
596
- if x != nil {
597
- return x.HsCode
598
- }
599
- return ""
600
- }
601
-
602
- func (x *ProductResponse) GetMidCode() string {
603
- if x != nil {
604
- return x.MidCode
605
- }
606
- return ""
607
- }
608
-
609
- func (x *ProductResponse) GetCollectionId() string {
610
- if x != nil {
611
- return x.CollectionId
612
- }
613
- return ""
614
- }
615
-
616
- func (x *ProductResponse) GetTypeId() string {
617
- if x != nil {
618
- return x.TypeId
619
- }
620
- return ""
621
- }
622
-
623
- func (x *ProductResponse) GetIsDiscountable() bool {
624
- if x != nil {
625
- return x.IsDiscountable
626
- }
627
- return false
628
- }
629
-
630
- func (x *ProductResponse) GetExternalId() string {
631
- if x != nil {
632
- return x.ExternalId
633
- }
634
- return ""
635
- }
636
-
637
- func (x *ProductResponse) GetVariants() []*ProductResponse_ProductVariant {
638
- if x != nil {
639
- return x.Variants
640
- }
641
- return nil
642
- }
643
-
644
- func (x *ProductResponse) GetType() *ProductResponse_Type {
645
- if x != nil {
646
- return x.Type
647
- }
648
- return nil
649
- }
650
-
651
- func (x *ProductResponse) GetOptions() *ProductResponse_Option {
652
- if x != nil {
653
- return x.Options
654
- }
655
- return nil
656
- }
657
-
658
- func (x *ProductResponse) GetImages() []*ProductResponse_Image {
659
- if x != nil {
660
- return x.Images
661
- }
662
- return nil
663
- }
664
-
665
- func (x *ProductResponse) GetCollection() *ProductResponse_Collection {
666
- if x != nil {
667
- return x.Collection
668
- }
669
- return nil
670
- }
671
-
672
- func (x *ProductResponse) GetCategories() []*ProductResponse_Category {
673
- if x != nil {
674
- return x.Categories
675
- }
676
- return nil
677
- }
678
-
679
- func (x *ProductResponse) GetSalesChannels() []*ProductResponse_SalesChannel {
680
- if x != nil {
681
- return x.SalesChannels
682
- }
683
- return nil
684
- }
685
-
686
- func (x *ProductResponse) GetTags() []*ProductResponse_Tag {
687
- if x != nil {
688
- return x.Tags
689
- }
690
- return nil
691
- }
692
-
693
- func (x *ProductResponse) GetShippingProfile() *ProductResponse_ShippingProfile {
694
- if x != nil {
695
- return x.ShippingProfile
696
- }
697
- return nil
698
- }
699
-
700
- func (x *ProductResponse) GetMetadata() map[string]string {
701
- if x != nil {
702
- return x.Metadata
703
- }
704
- return nil
705
- }
706
-
707
- type Variant_OptionValue struct {
708
- state protoimpl.MessageState `protogen:"open.v1"`
709
- OptionId string `protobuf:"bytes,1,opt,name=option_id,json=optionId,proto3" json:"option_id,omitempty"`
710
- Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
711
- unknownFields protoimpl.UnknownFields
712
- sizeCache protoimpl.SizeCache
713
- }
714
-
715
- func (x *Variant_OptionValue) Reset() {
716
- *x = Variant_OptionValue{}
717
- mi := &file_src_proto_products_v1_entities_product_shared_proto_msgTypes[3]
718
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
719
- ms.StoreMessageInfo(mi)
720
- }
721
-
722
- func (x *Variant_OptionValue) String() string {
723
- return protoimpl.X.MessageStringOf(x)
724
- }
725
-
726
- func (*Variant_OptionValue) ProtoMessage() {}
727
-
728
- func (x *Variant_OptionValue) ProtoReflect() protoreflect.Message {
729
- mi := &file_src_proto_products_v1_entities_product_shared_proto_msgTypes[3]
730
- if x != nil {
731
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
732
- if ms.LoadMessageInfo() == nil {
733
- ms.StoreMessageInfo(mi)
734
- }
735
- return ms
736
- }
737
- return mi.MessageOf(x)
738
- }
739
-
740
- // Deprecated: Use Variant_OptionValue.ProtoReflect.Descriptor instead.
741
- func (*Variant_OptionValue) Descriptor() ([]byte, []int) {
742
- return file_src_proto_products_v1_entities_product_shared_proto_rawDescGZIP(), []int{1, 0}
743
- }
744
-
745
- func (x *Variant_OptionValue) GetOptionId() string {
746
- if x != nil {
747
- return x.OptionId
748
- }
749
- return ""
750
- }
751
-
752
- func (x *Variant_OptionValue) GetValue() string {
753
- if x != nil {
754
- return x.Value
755
- }
756
- return ""
757
- }
758
-
759
- type Variant_Price struct {
760
- state protoimpl.MessageState `protogen:"open.v1"`
761
- CurrencyCode string `protobuf:"bytes,1,opt,name=currency_code,json=currencyCode,proto3" json:"currency_code,omitempty"`
762
- Amount float32 `protobuf:"fixed32,3,opt,name=amount,proto3" json:"amount,omitempty"`
763
- MaxQuantity int32 `protobuf:"varint,4,opt,name=max_quantity,json=maxQuantity,proto3" json:"max_quantity,omitempty"`
764
- MinQuantity int32 `protobuf:"varint,5,opt,name=min_quantity,json=minQuantity,proto3" json:"min_quantity,omitempty"`
765
- Rules []*Variant_Price_Rule `protobuf:"bytes,10,rep,name=rules,proto3" json:"rules,omitempty"`
766
- unknownFields protoimpl.UnknownFields
767
- sizeCache protoimpl.SizeCache
768
- }
769
-
770
- func (x *Variant_Price) Reset() {
771
- *x = Variant_Price{}
772
- mi := &file_src_proto_products_v1_entities_product_shared_proto_msgTypes[4]
773
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
774
- ms.StoreMessageInfo(mi)
775
- }
776
-
777
- func (x *Variant_Price) String() string {
778
- return protoimpl.X.MessageStringOf(x)
779
- }
780
-
781
- func (*Variant_Price) ProtoMessage() {}
782
-
783
- func (x *Variant_Price) ProtoReflect() protoreflect.Message {
784
- mi := &file_src_proto_products_v1_entities_product_shared_proto_msgTypes[4]
785
- if x != nil {
786
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
787
- if ms.LoadMessageInfo() == nil {
788
- ms.StoreMessageInfo(mi)
789
- }
790
- return ms
791
- }
792
- return mi.MessageOf(x)
793
- }
794
-
795
- // Deprecated: Use Variant_Price.ProtoReflect.Descriptor instead.
796
- func (*Variant_Price) Descriptor() ([]byte, []int) {
797
- return file_src_proto_products_v1_entities_product_shared_proto_rawDescGZIP(), []int{1, 1}
798
- }
799
-
800
- func (x *Variant_Price) GetCurrencyCode() string {
801
- if x != nil {
802
- return x.CurrencyCode
803
- }
804
- return ""
805
- }
806
-
807
- func (x *Variant_Price) GetAmount() float32 {
808
- if x != nil {
809
- return x.Amount
810
- }
811
- return 0
812
- }
813
-
814
- func (x *Variant_Price) GetMaxQuantity() int32 {
815
- if x != nil {
816
- return x.MaxQuantity
817
- }
818
- return 0
819
- }
820
-
821
- func (x *Variant_Price) GetMinQuantity() int32 {
822
- if x != nil {
823
- return x.MinQuantity
824
- }
825
- return 0
826
- }
827
-
828
- func (x *Variant_Price) GetRules() []*Variant_Price_Rule {
829
- if x != nil {
830
- return x.Rules
831
- }
832
- return nil
833
- }
834
-
835
- type Variant_InventoryItem struct {
836
- state protoimpl.MessageState `protogen:"open.v1"`
837
- InventoryItemId string `protobuf:"bytes,1,opt,name=inventory_item_id,json=inventoryItemId,proto3" json:"inventory_item_id,omitempty"`
838
- unknownFields protoimpl.UnknownFields
839
- sizeCache protoimpl.SizeCache
840
- }
841
-
842
- func (x *Variant_InventoryItem) Reset() {
843
- *x = Variant_InventoryItem{}
844
- mi := &file_src_proto_products_v1_entities_product_shared_proto_msgTypes[5]
845
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
846
- ms.StoreMessageInfo(mi)
847
- }
848
-
849
- func (x *Variant_InventoryItem) String() string {
850
- return protoimpl.X.MessageStringOf(x)
851
- }
852
-
853
- func (*Variant_InventoryItem) ProtoMessage() {}
854
-
855
- func (x *Variant_InventoryItem) ProtoReflect() protoreflect.Message {
856
- mi := &file_src_proto_products_v1_entities_product_shared_proto_msgTypes[5]
857
- if x != nil {
858
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
859
- if ms.LoadMessageInfo() == nil {
860
- ms.StoreMessageInfo(mi)
861
- }
862
- return ms
863
- }
864
- return mi.MessageOf(x)
865
- }
866
-
867
- // Deprecated: Use Variant_InventoryItem.ProtoReflect.Descriptor instead.
868
- func (*Variant_InventoryItem) Descriptor() ([]byte, []int) {
869
- return file_src_proto_products_v1_entities_product_shared_proto_rawDescGZIP(), []int{1, 2}
870
- }
871
-
872
- func (x *Variant_InventoryItem) GetInventoryItemId() string {
873
- if x != nil {
874
- return x.InventoryItemId
875
- }
876
- return ""
877
- }
878
-
879
- type Variant_Price_Rule struct {
880
- state protoimpl.MessageState `protogen:"open.v1"`
881
- EntityId string `protobuf:"bytes,1,opt,name=entity_id,json=entityId,proto3" json:"entity_id,omitempty"`
882
- EntityType Variant_Price_RuleType `protobuf:"varint,2,opt,name=entity_type,json=entityType,proto3,enum=Variant_Price_RuleType" json:"entity_type,omitempty"`
883
- unknownFields protoimpl.UnknownFields
884
- sizeCache protoimpl.SizeCache
885
- }
886
-
887
- func (x *Variant_Price_Rule) Reset() {
888
- *x = Variant_Price_Rule{}
889
- mi := &file_src_proto_products_v1_entities_product_shared_proto_msgTypes[7]
890
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
891
- ms.StoreMessageInfo(mi)
892
- }
893
-
894
- func (x *Variant_Price_Rule) String() string {
895
- return protoimpl.X.MessageStringOf(x)
896
- }
897
-
898
- func (*Variant_Price_Rule) ProtoMessage() {}
899
-
900
- func (x *Variant_Price_Rule) ProtoReflect() protoreflect.Message {
901
- mi := &file_src_proto_products_v1_entities_product_shared_proto_msgTypes[7]
902
- if x != nil {
903
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
904
- if ms.LoadMessageInfo() == nil {
905
- ms.StoreMessageInfo(mi)
906
- }
907
- return ms
908
- }
909
- return mi.MessageOf(x)
910
- }
911
-
912
- // Deprecated: Use Variant_Price_Rule.ProtoReflect.Descriptor instead.
913
- func (*Variant_Price_Rule) Descriptor() ([]byte, []int) {
914
- return file_src_proto_products_v1_entities_product_shared_proto_rawDescGZIP(), []int{1, 1, 0}
915
- }
916
-
917
- func (x *Variant_Price_Rule) GetEntityId() string {
918
- if x != nil {
919
- return x.EntityId
920
- }
921
- return ""
922
- }
923
-
924
- func (x *Variant_Price_Rule) GetEntityType() Variant_Price_RuleType {
925
- if x != nil {
926
- return x.EntityType
927
- }
928
- return Variant_Price_RULE_TYPE_UNSPECIFIED
929
- }
930
-
931
- type ProductResponse_Tag struct {
932
- state protoimpl.MessageState `protogen:"open.v1"`
933
- Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
934
- Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
935
- unknownFields protoimpl.UnknownFields
936
- sizeCache protoimpl.SizeCache
937
- }
938
-
939
- func (x *ProductResponse_Tag) Reset() {
940
- *x = ProductResponse_Tag{}
941
- mi := &file_src_proto_products_v1_entities_product_shared_proto_msgTypes[8]
942
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
943
- ms.StoreMessageInfo(mi)
944
- }
945
-
946
- func (x *ProductResponse_Tag) String() string {
947
- return protoimpl.X.MessageStringOf(x)
948
- }
949
-
950
- func (*ProductResponse_Tag) ProtoMessage() {}
951
-
952
- func (x *ProductResponse_Tag) ProtoReflect() protoreflect.Message {
953
- mi := &file_src_proto_products_v1_entities_product_shared_proto_msgTypes[8]
954
- if x != nil {
955
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
956
- if ms.LoadMessageInfo() == nil {
957
- ms.StoreMessageInfo(mi)
958
- }
959
- return ms
960
- }
961
- return mi.MessageOf(x)
962
- }
963
-
964
- // Deprecated: Use ProductResponse_Tag.ProtoReflect.Descriptor instead.
965
- func (*ProductResponse_Tag) Descriptor() ([]byte, []int) {
966
- return file_src_proto_products_v1_entities_product_shared_proto_rawDescGZIP(), []int{2, 0}
967
- }
968
-
969
- func (x *ProductResponse_Tag) GetId() string {
970
- if x != nil {
971
- return x.Id
972
- }
973
- return ""
974
- }
975
-
976
- func (x *ProductResponse_Tag) GetValue() string {
977
- if x != nil {
978
- return x.Value
979
- }
980
- return ""
981
- }
982
-
983
- type ProductResponse_SalesChannel struct {
984
- state protoimpl.MessageState `protogen:"open.v1"`
985
- Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
986
- Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
987
- Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
988
- IsDisabled string `protobuf:"bytes,4,opt,name=is_disabled,json=isDisabled,proto3" json:"is_disabled,omitempty"`
989
- Metadata map[string]string `protobuf:"bytes,5,rep,name=metadata,proto3" json:"metadata,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
990
- unknownFields protoimpl.UnknownFields
991
- sizeCache protoimpl.SizeCache
992
- }
993
-
994
- func (x *ProductResponse_SalesChannel) Reset() {
995
- *x = ProductResponse_SalesChannel{}
996
- mi := &file_src_proto_products_v1_entities_product_shared_proto_msgTypes[9]
997
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
998
- ms.StoreMessageInfo(mi)
999
- }
1000
-
1001
- func (x *ProductResponse_SalesChannel) String() string {
1002
- return protoimpl.X.MessageStringOf(x)
1003
- }
1004
-
1005
- func (*ProductResponse_SalesChannel) ProtoMessage() {}
1006
-
1007
- func (x *ProductResponse_SalesChannel) ProtoReflect() protoreflect.Message {
1008
- mi := &file_src_proto_products_v1_entities_product_shared_proto_msgTypes[9]
1009
- if x != nil {
1010
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
1011
- if ms.LoadMessageInfo() == nil {
1012
- ms.StoreMessageInfo(mi)
1013
- }
1014
- return ms
1015
- }
1016
- return mi.MessageOf(x)
1017
- }
1018
-
1019
- // Deprecated: Use ProductResponse_SalesChannel.ProtoReflect.Descriptor instead.
1020
- func (*ProductResponse_SalesChannel) Descriptor() ([]byte, []int) {
1021
- return file_src_proto_products_v1_entities_product_shared_proto_rawDescGZIP(), []int{2, 1}
1022
- }
1023
-
1024
- func (x *ProductResponse_SalesChannel) GetId() string {
1025
- if x != nil {
1026
- return x.Id
1027
- }
1028
- return ""
1029
- }
1030
-
1031
- func (x *ProductResponse_SalesChannel) GetName() string {
1032
- if x != nil {
1033
- return x.Name
1034
- }
1035
- return ""
1036
- }
1037
-
1038
- func (x *ProductResponse_SalesChannel) GetDescription() string {
1039
- if x != nil {
1040
- return x.Description
1041
- }
1042
- return ""
1043
- }
1044
-
1045
- func (x *ProductResponse_SalesChannel) GetIsDisabled() string {
1046
- if x != nil {
1047
- return x.IsDisabled
1048
- }
1049
- return ""
1050
- }
1051
-
1052
- func (x *ProductResponse_SalesChannel) GetMetadata() map[string]string {
1053
- if x != nil {
1054
- return x.Metadata
1055
- }
1056
- return nil
1057
- }
1058
-
1059
- type ProductResponse_Type struct {
1060
- state protoimpl.MessageState `protogen:"open.v1"`
1061
- Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
1062
- Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
1063
- Metadata map[string]string `protobuf:"bytes,3,rep,name=metadata,proto3" json:"metadata,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
1064
- unknownFields protoimpl.UnknownFields
1065
- sizeCache protoimpl.SizeCache
1066
- }
1067
-
1068
- func (x *ProductResponse_Type) Reset() {
1069
- *x = ProductResponse_Type{}
1070
- mi := &file_src_proto_products_v1_entities_product_shared_proto_msgTypes[10]
1071
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
1072
- ms.StoreMessageInfo(mi)
1073
- }
1074
-
1075
- func (x *ProductResponse_Type) String() string {
1076
- return protoimpl.X.MessageStringOf(x)
1077
- }
1078
-
1079
- func (*ProductResponse_Type) ProtoMessage() {}
1080
-
1081
- func (x *ProductResponse_Type) ProtoReflect() protoreflect.Message {
1082
- mi := &file_src_proto_products_v1_entities_product_shared_proto_msgTypes[10]
1083
- if x != nil {
1084
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
1085
- if ms.LoadMessageInfo() == nil {
1086
- ms.StoreMessageInfo(mi)
1087
- }
1088
- return ms
1089
- }
1090
- return mi.MessageOf(x)
1091
- }
1092
-
1093
- // Deprecated: Use ProductResponse_Type.ProtoReflect.Descriptor instead.
1094
- func (*ProductResponse_Type) Descriptor() ([]byte, []int) {
1095
- return file_src_proto_products_v1_entities_product_shared_proto_rawDescGZIP(), []int{2, 2}
1096
- }
1097
-
1098
- func (x *ProductResponse_Type) GetId() string {
1099
- if x != nil {
1100
- return x.Id
1101
- }
1102
- return ""
1103
- }
1104
-
1105
- func (x *ProductResponse_Type) GetName() string {
1106
- if x != nil {
1107
- return x.Name
1108
- }
1109
- return ""
1110
- }
1111
-
1112
- func (x *ProductResponse_Type) GetMetadata() map[string]string {
1113
- if x != nil {
1114
- return x.Metadata
1115
- }
1116
- return nil
1117
- }
1118
-
1119
- type ProductResponse_Category struct {
1120
- state protoimpl.MessageState `protogen:"open.v1"`
1121
- Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
1122
- Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
1123
- Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
1124
- Slug string `protobuf:"bytes,4,opt,name=slug,proto3" json:"slug,omitempty"`
1125
- IsActive bool `protobuf:"varint,5,opt,name=is_active,json=isActive,proto3" json:"is_active,omitempty"`
1126
- IsInternal bool `protobuf:"varint,6,opt,name=is_internal,json=isInternal,proto3" json:"is_internal,omitempty"`
1127
- Rank int32 `protobuf:"varint,7,opt,name=rank,proto3" json:"rank,omitempty"`
1128
- ParentId *string `protobuf:"bytes,8,opt,name=parent_id,json=parentId,proto3,oneof" json:"parent_id,omitempty"`
1129
- Children []*ProductResponse_Category `protobuf:"bytes,9,rep,name=children,proto3" json:"children,omitempty"`
1130
- Metadata map[string]string `protobuf:"bytes,10,rep,name=metadata,proto3" json:"metadata,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
1131
- unknownFields protoimpl.UnknownFields
1132
- sizeCache protoimpl.SizeCache
1133
- }
1134
-
1135
- func (x *ProductResponse_Category) Reset() {
1136
- *x = ProductResponse_Category{}
1137
- mi := &file_src_proto_products_v1_entities_product_shared_proto_msgTypes[11]
1138
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
1139
- ms.StoreMessageInfo(mi)
1140
- }
1141
-
1142
- func (x *ProductResponse_Category) String() string {
1143
- return protoimpl.X.MessageStringOf(x)
1144
- }
1145
-
1146
- func (*ProductResponse_Category) ProtoMessage() {}
1147
-
1148
- func (x *ProductResponse_Category) ProtoReflect() protoreflect.Message {
1149
- mi := &file_src_proto_products_v1_entities_product_shared_proto_msgTypes[11]
1150
- if x != nil {
1151
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
1152
- if ms.LoadMessageInfo() == nil {
1153
- ms.StoreMessageInfo(mi)
1154
- }
1155
- return ms
1156
- }
1157
- return mi.MessageOf(x)
1158
- }
1159
-
1160
- // Deprecated: Use ProductResponse_Category.ProtoReflect.Descriptor instead.
1161
- func (*ProductResponse_Category) Descriptor() ([]byte, []int) {
1162
- return file_src_proto_products_v1_entities_product_shared_proto_rawDescGZIP(), []int{2, 3}
1163
- }
1164
-
1165
- func (x *ProductResponse_Category) GetId() string {
1166
- if x != nil {
1167
- return x.Id
1168
- }
1169
- return ""
1170
- }
1171
-
1172
- func (x *ProductResponse_Category) GetName() string {
1173
- if x != nil {
1174
- return x.Name
1175
- }
1176
- return ""
1177
- }
1178
-
1179
- func (x *ProductResponse_Category) GetDescription() string {
1180
- if x != nil {
1181
- return x.Description
1182
- }
1183
- return ""
1184
- }
1185
-
1186
- func (x *ProductResponse_Category) GetSlug() string {
1187
- if x != nil {
1188
- return x.Slug
1189
- }
1190
- return ""
1191
- }
1192
-
1193
- func (x *ProductResponse_Category) GetIsActive() bool {
1194
- if x != nil {
1195
- return x.IsActive
1196
- }
1197
- return false
1198
- }
1199
-
1200
- func (x *ProductResponse_Category) GetIsInternal() bool {
1201
- if x != nil {
1202
- return x.IsInternal
1203
- }
1204
- return false
1205
- }
1206
-
1207
- func (x *ProductResponse_Category) GetRank() int32 {
1208
- if x != nil {
1209
- return x.Rank
1210
- }
1211
- return 0
1212
- }
1213
-
1214
- func (x *ProductResponse_Category) GetParentId() string {
1215
- if x != nil && x.ParentId != nil {
1216
- return *x.ParentId
1217
- }
1218
- return ""
1219
- }
1220
-
1221
- func (x *ProductResponse_Category) GetChildren() []*ProductResponse_Category {
1222
- if x != nil {
1223
- return x.Children
1224
- }
1225
- return nil
1226
- }
1227
-
1228
- func (x *ProductResponse_Category) GetMetadata() map[string]string {
1229
- if x != nil {
1230
- return x.Metadata
1231
- }
1232
- return nil
1233
- }
1234
-
1235
- type ProductResponse_Collection struct {
1236
- state protoimpl.MessageState `protogen:"open.v1"`
1237
- Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
1238
- Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
1239
- Slug string `protobuf:"bytes,3,opt,name=slug,proto3" json:"slug,omitempty"`
1240
- Metadata map[string]string `protobuf:"bytes,4,rep,name=metadata,proto3" json:"metadata,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
1241
- unknownFields protoimpl.UnknownFields
1242
- sizeCache protoimpl.SizeCache
1243
- }
1244
-
1245
- func (x *ProductResponse_Collection) Reset() {
1246
- *x = ProductResponse_Collection{}
1247
- mi := &file_src_proto_products_v1_entities_product_shared_proto_msgTypes[12]
1248
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
1249
- ms.StoreMessageInfo(mi)
1250
- }
1251
-
1252
- func (x *ProductResponse_Collection) String() string {
1253
- return protoimpl.X.MessageStringOf(x)
1254
- }
1255
-
1256
- func (*ProductResponse_Collection) ProtoMessage() {}
1257
-
1258
- func (x *ProductResponse_Collection) ProtoReflect() protoreflect.Message {
1259
- mi := &file_src_proto_products_v1_entities_product_shared_proto_msgTypes[12]
1260
- if x != nil {
1261
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
1262
- if ms.LoadMessageInfo() == nil {
1263
- ms.StoreMessageInfo(mi)
1264
- }
1265
- return ms
1266
- }
1267
- return mi.MessageOf(x)
1268
- }
1269
-
1270
- // Deprecated: Use ProductResponse_Collection.ProtoReflect.Descriptor instead.
1271
- func (*ProductResponse_Collection) Descriptor() ([]byte, []int) {
1272
- return file_src_proto_products_v1_entities_product_shared_proto_rawDescGZIP(), []int{2, 4}
1273
- }
1274
-
1275
- func (x *ProductResponse_Collection) GetId() string {
1276
- if x != nil {
1277
- return x.Id
1278
- }
1279
- return ""
1280
- }
1281
-
1282
- func (x *ProductResponse_Collection) GetTitle() string {
1283
- if x != nil {
1284
- return x.Title
1285
- }
1286
- return ""
1287
- }
1288
-
1289
- func (x *ProductResponse_Collection) GetSlug() string {
1290
- if x != nil {
1291
- return x.Slug
1292
- }
1293
- return ""
1294
- }
1295
-
1296
- func (x *ProductResponse_Collection) GetMetadata() map[string]string {
1297
- if x != nil {
1298
- return x.Metadata
1299
- }
1300
- return nil
1301
- }
1302
-
1303
- type ProductResponse_Image struct {
1304
- state protoimpl.MessageState `protogen:"open.v1"`
1305
- Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
1306
- Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"`
1307
- Rank int32 `protobuf:"varint,3,opt,name=rank,proto3" json:"rank,omitempty"`
1308
- Metadata map[string]string `protobuf:"bytes,4,rep,name=metadata,proto3" json:"metadata,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
1309
- unknownFields protoimpl.UnknownFields
1310
- sizeCache protoimpl.SizeCache
1311
- }
1312
-
1313
- func (x *ProductResponse_Image) Reset() {
1314
- *x = ProductResponse_Image{}
1315
- mi := &file_src_proto_products_v1_entities_product_shared_proto_msgTypes[13]
1316
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
1317
- ms.StoreMessageInfo(mi)
1318
- }
1319
-
1320
- func (x *ProductResponse_Image) String() string {
1321
- return protoimpl.X.MessageStringOf(x)
1322
- }
1323
-
1324
- func (*ProductResponse_Image) ProtoMessage() {}
1325
-
1326
- func (x *ProductResponse_Image) ProtoReflect() protoreflect.Message {
1327
- mi := &file_src_proto_products_v1_entities_product_shared_proto_msgTypes[13]
1328
- if x != nil {
1329
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
1330
- if ms.LoadMessageInfo() == nil {
1331
- ms.StoreMessageInfo(mi)
1332
- }
1333
- return ms
1334
- }
1335
- return mi.MessageOf(x)
1336
- }
1337
-
1338
- // Deprecated: Use ProductResponse_Image.ProtoReflect.Descriptor instead.
1339
- func (*ProductResponse_Image) Descriptor() ([]byte, []int) {
1340
- return file_src_proto_products_v1_entities_product_shared_proto_rawDescGZIP(), []int{2, 5}
1341
- }
1342
-
1343
- func (x *ProductResponse_Image) GetId() string {
1344
- if x != nil {
1345
- return x.Id
1346
- }
1347
- return ""
1348
- }
1349
-
1350
- func (x *ProductResponse_Image) GetUrl() string {
1351
- if x != nil {
1352
- return x.Url
1353
- }
1354
- return ""
1355
- }
1356
-
1357
- func (x *ProductResponse_Image) GetRank() int32 {
1358
- if x != nil {
1359
- return x.Rank
1360
- }
1361
- return 0
1362
- }
1363
-
1364
- func (x *ProductResponse_Image) GetMetadata() map[string]string {
1365
- if x != nil {
1366
- return x.Metadata
1367
- }
1368
- return nil
1369
- }
1370
-
1371
- type ProductResponse_Value struct {
1372
- state protoimpl.MessageState `protogen:"open.v1"`
1373
- OptionId string `protobuf:"bytes,1,opt,name=option_id,json=optionId,proto3" json:"option_id,omitempty"`
1374
- Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
1375
- Option *ProductResponse_Option `protobuf:"bytes,4,opt,name=option,proto3,oneof" json:"option,omitempty"`
1376
- unknownFields protoimpl.UnknownFields
1377
- sizeCache protoimpl.SizeCache
1378
- }
1379
-
1380
- func (x *ProductResponse_Value) Reset() {
1381
- *x = ProductResponse_Value{}
1382
- mi := &file_src_proto_products_v1_entities_product_shared_proto_msgTypes[14]
1383
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
1384
- ms.StoreMessageInfo(mi)
1385
- }
1386
-
1387
- func (x *ProductResponse_Value) String() string {
1388
- return protoimpl.X.MessageStringOf(x)
1389
- }
1390
-
1391
- func (*ProductResponse_Value) ProtoMessage() {}
1392
-
1393
- func (x *ProductResponse_Value) ProtoReflect() protoreflect.Message {
1394
- mi := &file_src_proto_products_v1_entities_product_shared_proto_msgTypes[14]
1395
- if x != nil {
1396
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
1397
- if ms.LoadMessageInfo() == nil {
1398
- ms.StoreMessageInfo(mi)
1399
- }
1400
- return ms
1401
- }
1402
- return mi.MessageOf(x)
1403
- }
1404
-
1405
- // Deprecated: Use ProductResponse_Value.ProtoReflect.Descriptor instead.
1406
- func (*ProductResponse_Value) Descriptor() ([]byte, []int) {
1407
- return file_src_proto_products_v1_entities_product_shared_proto_rawDescGZIP(), []int{2, 6}
1408
- }
1409
-
1410
- func (x *ProductResponse_Value) GetOptionId() string {
1411
- if x != nil {
1412
- return x.OptionId
1413
- }
1414
- return ""
1415
- }
1416
-
1417
- func (x *ProductResponse_Value) GetValue() string {
1418
- if x != nil {
1419
- return x.Value
1420
- }
1421
- return ""
1422
- }
1423
-
1424
- func (x *ProductResponse_Value) GetOption() *ProductResponse_Option {
1425
- if x != nil {
1426
- return x.Option
1427
- }
1428
- return nil
1429
- }
1430
-
1431
- type ProductResponse_OptionData struct {
1432
- state protoimpl.MessageState `protogen:"open.v1"`
1433
- Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
1434
- Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
1435
- OptionValues []*ProductResponse_Value `protobuf:"bytes,3,rep,name=option_values,json=optionValues,proto3" json:"option_values,omitempty"`
1436
- ProductId string `protobuf:"bytes,4,opt,name=product_id,json=productId,proto3" json:"product_id,omitempty"`
1437
- unknownFields protoimpl.UnknownFields
1438
- sizeCache protoimpl.SizeCache
1439
- }
1440
-
1441
- func (x *ProductResponse_OptionData) Reset() {
1442
- *x = ProductResponse_OptionData{}
1443
- mi := &file_src_proto_products_v1_entities_product_shared_proto_msgTypes[15]
1444
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
1445
- ms.StoreMessageInfo(mi)
1446
- }
1447
-
1448
- func (x *ProductResponse_OptionData) String() string {
1449
- return protoimpl.X.MessageStringOf(x)
1450
- }
1451
-
1452
- func (*ProductResponse_OptionData) ProtoMessage() {}
1453
-
1454
- func (x *ProductResponse_OptionData) ProtoReflect() protoreflect.Message {
1455
- mi := &file_src_proto_products_v1_entities_product_shared_proto_msgTypes[15]
1456
- if x != nil {
1457
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
1458
- if ms.LoadMessageInfo() == nil {
1459
- ms.StoreMessageInfo(mi)
1460
- }
1461
- return ms
1462
- }
1463
- return mi.MessageOf(x)
1464
- }
1465
-
1466
- // Deprecated: Use ProductResponse_OptionData.ProtoReflect.Descriptor instead.
1467
- func (*ProductResponse_OptionData) Descriptor() ([]byte, []int) {
1468
- return file_src_proto_products_v1_entities_product_shared_proto_rawDescGZIP(), []int{2, 7}
1469
- }
1470
-
1471
- func (x *ProductResponse_OptionData) GetId() string {
1472
- if x != nil {
1473
- return x.Id
1474
- }
1475
- return ""
1476
- }
1477
-
1478
- func (x *ProductResponse_OptionData) GetTitle() string {
1479
- if x != nil {
1480
- return x.Title
1481
- }
1482
- return ""
1483
- }
1484
-
1485
- func (x *ProductResponse_OptionData) GetOptionValues() []*ProductResponse_Value {
1486
- if x != nil {
1487
- return x.OptionValues
1488
- }
1489
- return nil
1490
- }
1491
-
1492
- func (x *ProductResponse_OptionData) GetProductId() string {
1493
- if x != nil {
1494
- return x.ProductId
1495
- }
1496
- return ""
1497
- }
1498
-
1499
- type ProductResponse_Option struct {
1500
- state protoimpl.MessageState `protogen:"open.v1"`
1501
- Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
1502
- Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
1503
- ProductId string `protobuf:"bytes,3,opt,name=product_id,json=productId,proto3" json:"product_id,omitempty"`
1504
- Option *ProductResponse_OptionData `protobuf:"bytes,4,opt,name=option,proto3" json:"option,omitempty"`
1505
- Values []*ProductResponse_Value `protobuf:"bytes,5,rep,name=values,proto3" json:"values,omitempty"`
1506
- unknownFields protoimpl.UnknownFields
1507
- sizeCache protoimpl.SizeCache
1508
- }
1509
-
1510
- func (x *ProductResponse_Option) Reset() {
1511
- *x = ProductResponse_Option{}
1512
- mi := &file_src_proto_products_v1_entities_product_shared_proto_msgTypes[16]
1513
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
1514
- ms.StoreMessageInfo(mi)
1515
- }
1516
-
1517
- func (x *ProductResponse_Option) String() string {
1518
- return protoimpl.X.MessageStringOf(x)
1519
- }
1520
-
1521
- func (*ProductResponse_Option) ProtoMessage() {}
1522
-
1523
- func (x *ProductResponse_Option) ProtoReflect() protoreflect.Message {
1524
- mi := &file_src_proto_products_v1_entities_product_shared_proto_msgTypes[16]
1525
- if x != nil {
1526
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
1527
- if ms.LoadMessageInfo() == nil {
1528
- ms.StoreMessageInfo(mi)
1529
- }
1530
- return ms
1531
- }
1532
- return mi.MessageOf(x)
1533
- }
1534
-
1535
- // Deprecated: Use ProductResponse_Option.ProtoReflect.Descriptor instead.
1536
- func (*ProductResponse_Option) Descriptor() ([]byte, []int) {
1537
- return file_src_proto_products_v1_entities_product_shared_proto_rawDescGZIP(), []int{2, 8}
1538
- }
1539
-
1540
- func (x *ProductResponse_Option) GetId() string {
1541
- if x != nil {
1542
- return x.Id
1543
- }
1544
- return ""
1545
- }
1546
-
1547
- func (x *ProductResponse_Option) GetValue() string {
1548
- if x != nil {
1549
- return x.Value
1550
- }
1551
- return ""
1552
- }
1553
-
1554
- func (x *ProductResponse_Option) GetProductId() string {
1555
- if x != nil {
1556
- return x.ProductId
1557
- }
1558
- return ""
1559
- }
1560
-
1561
- func (x *ProductResponse_Option) GetOption() *ProductResponse_OptionData {
1562
- if x != nil {
1563
- return x.Option
1564
- }
1565
- return nil
1566
- }
1567
-
1568
- func (x *ProductResponse_Option) GetValues() []*ProductResponse_Value {
1569
- if x != nil {
1570
- return x.Values
1571
- }
1572
- return nil
1573
- }
1574
-
1575
- type ProductResponse_ProductVariant struct {
1576
- state protoimpl.MessageState `protogen:"open.v1"`
1577
- Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
1578
- Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
1579
- Sku string `protobuf:"bytes,3,opt,name=sku,proto3" json:"sku,omitempty"`
1580
- Barcode string `protobuf:"bytes,4,opt,name=barcode,proto3" json:"barcode,omitempty"`
1581
- Ean string `protobuf:"bytes,5,opt,name=ean,proto3" json:"ean,omitempty"`
1582
- Upc string `protobuf:"bytes,6,opt,name=upc,proto3" json:"upc,omitempty"`
1583
- AllowBackorder bool `protobuf:"varint,7,opt,name=allow_backorder,json=allowBackorder,proto3" json:"allow_backorder,omitempty"`
1584
- IsManagedInventory bool `protobuf:"varint,8,opt,name=is_managed_inventory,json=isManagedInventory,proto3" json:"is_managed_inventory,omitempty"`
1585
- HsCode string `protobuf:"bytes,9,opt,name=hs_code,json=hsCode,proto3" json:"hs_code,omitempty"`
1586
- OriginCountry string `protobuf:"bytes,10,opt,name=origin_country,json=originCountry,proto3" json:"origin_country,omitempty"`
1587
- MidCode string `protobuf:"bytes,11,opt,name=mid_code,json=midCode,proto3" json:"mid_code,omitempty"`
1588
- Material string `protobuf:"bytes,12,opt,name=material,proto3" json:"material,omitempty"`
1589
- Weight float32 `protobuf:"fixed32,13,opt,name=weight,proto3" json:"weight,omitempty"`
1590
- Length float32 `protobuf:"fixed32,14,opt,name=length,proto3" json:"length,omitempty"`
1591
- Height float32 `protobuf:"fixed32,15,opt,name=height,proto3" json:"height,omitempty"`
1592
- Width float32 `protobuf:"fixed32,16,opt,name=width,proto3" json:"width,omitempty"`
1593
- Thumbnail string `protobuf:"bytes,17,opt,name=thumbnail,proto3" json:"thumbnail,omitempty"`
1594
- ProductId string `protobuf:"bytes,18,opt,name=product_id,json=productId,proto3" json:"product_id,omitempty"`
1595
- CalculatedPrice *ProductResponse_ProductVariant_CalculatedPrice `protobuf:"bytes,19,opt,name=calculated_price,json=calculatedPrice,proto3" json:"calculated_price,omitempty"`
1596
- InventoryItems []*ProductResponse_ProductVariant_InventoryItem `protobuf:"bytes,20,rep,name=inventory_items,json=inventoryItems,proto3" json:"inventory_items,omitempty"`
1597
- Images []*ProductResponse_Image `protobuf:"bytes,21,rep,name=images,proto3" json:"images,omitempty"`
1598
- Options []*ProductResponse_ProductVariant_Option `protobuf:"bytes,22,rep,name=options,proto3" json:"options,omitempty"`
1599
- Prices []*ProductResponse_ProductVariant_Price `protobuf:"bytes,23,rep,name=prices,proto3" json:"prices,omitempty"`
1600
- unknownFields protoimpl.UnknownFields
1601
- sizeCache protoimpl.SizeCache
1602
- }
1603
-
1604
- func (x *ProductResponse_ProductVariant) Reset() {
1605
- *x = ProductResponse_ProductVariant{}
1606
- mi := &file_src_proto_products_v1_entities_product_shared_proto_msgTypes[17]
1607
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
1608
- ms.StoreMessageInfo(mi)
1609
- }
1610
-
1611
- func (x *ProductResponse_ProductVariant) String() string {
1612
- return protoimpl.X.MessageStringOf(x)
1613
- }
1614
-
1615
- func (*ProductResponse_ProductVariant) ProtoMessage() {}
1616
-
1617
- func (x *ProductResponse_ProductVariant) ProtoReflect() protoreflect.Message {
1618
- mi := &file_src_proto_products_v1_entities_product_shared_proto_msgTypes[17]
1619
- if x != nil {
1620
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
1621
- if ms.LoadMessageInfo() == nil {
1622
- ms.StoreMessageInfo(mi)
1623
- }
1624
- return ms
1625
- }
1626
- return mi.MessageOf(x)
1627
- }
1628
-
1629
- // Deprecated: Use ProductResponse_ProductVariant.ProtoReflect.Descriptor instead.
1630
- func (*ProductResponse_ProductVariant) Descriptor() ([]byte, []int) {
1631
- return file_src_proto_products_v1_entities_product_shared_proto_rawDescGZIP(), []int{2, 9}
1632
- }
1633
-
1634
- func (x *ProductResponse_ProductVariant) GetId() string {
1635
- if x != nil {
1636
- return x.Id
1637
- }
1638
- return ""
1639
- }
1640
-
1641
- func (x *ProductResponse_ProductVariant) GetTitle() string {
1642
- if x != nil {
1643
- return x.Title
1644
- }
1645
- return ""
1646
- }
1647
-
1648
- func (x *ProductResponse_ProductVariant) GetSku() string {
1649
- if x != nil {
1650
- return x.Sku
1651
- }
1652
- return ""
1653
- }
1654
-
1655
- func (x *ProductResponse_ProductVariant) GetBarcode() string {
1656
- if x != nil {
1657
- return x.Barcode
1658
- }
1659
- return ""
1660
- }
1661
-
1662
- func (x *ProductResponse_ProductVariant) GetEan() string {
1663
- if x != nil {
1664
- return x.Ean
1665
- }
1666
- return ""
1667
- }
1668
-
1669
- func (x *ProductResponse_ProductVariant) GetUpc() string {
1670
- if x != nil {
1671
- return x.Upc
1672
- }
1673
- return ""
1674
- }
1675
-
1676
- func (x *ProductResponse_ProductVariant) GetAllowBackorder() bool {
1677
- if x != nil {
1678
- return x.AllowBackorder
1679
- }
1680
- return false
1681
- }
1682
-
1683
- func (x *ProductResponse_ProductVariant) GetIsManagedInventory() bool {
1684
- if x != nil {
1685
- return x.IsManagedInventory
1686
- }
1687
- return false
1688
- }
1689
-
1690
- func (x *ProductResponse_ProductVariant) GetHsCode() string {
1691
- if x != nil {
1692
- return x.HsCode
1693
- }
1694
- return ""
1695
- }
1696
-
1697
- func (x *ProductResponse_ProductVariant) GetOriginCountry() string {
1698
- if x != nil {
1699
- return x.OriginCountry
1700
- }
1701
- return ""
1702
- }
1703
-
1704
- func (x *ProductResponse_ProductVariant) GetMidCode() string {
1705
- if x != nil {
1706
- return x.MidCode
1707
- }
1708
- return ""
1709
- }
1710
-
1711
- func (x *ProductResponse_ProductVariant) GetMaterial() string {
1712
- if x != nil {
1713
- return x.Material
1714
- }
1715
- return ""
1716
- }
1717
-
1718
- func (x *ProductResponse_ProductVariant) GetWeight() float32 {
1719
- if x != nil {
1720
- return x.Weight
1721
- }
1722
- return 0
1723
- }
1724
-
1725
- func (x *ProductResponse_ProductVariant) GetLength() float32 {
1726
- if x != nil {
1727
- return x.Length
1728
- }
1729
- return 0
1730
- }
1731
-
1732
- func (x *ProductResponse_ProductVariant) GetHeight() float32 {
1733
- if x != nil {
1734
- return x.Height
1735
- }
1736
- return 0
1737
- }
1738
-
1739
- func (x *ProductResponse_ProductVariant) GetWidth() float32 {
1740
- if x != nil {
1741
- return x.Width
1742
- }
1743
- return 0
1744
- }
1745
-
1746
- func (x *ProductResponse_ProductVariant) GetThumbnail() string {
1747
- if x != nil {
1748
- return x.Thumbnail
1749
- }
1750
- return ""
1751
- }
1752
-
1753
- func (x *ProductResponse_ProductVariant) GetProductId() string {
1754
- if x != nil {
1755
- return x.ProductId
1756
- }
1757
- return ""
1758
- }
1759
-
1760
- func (x *ProductResponse_ProductVariant) GetCalculatedPrice() *ProductResponse_ProductVariant_CalculatedPrice {
1761
- if x != nil {
1762
- return x.CalculatedPrice
1763
- }
1764
- return nil
1765
- }
1766
-
1767
- func (x *ProductResponse_ProductVariant) GetInventoryItems() []*ProductResponse_ProductVariant_InventoryItem {
1768
- if x != nil {
1769
- return x.InventoryItems
1770
- }
1771
- return nil
1772
- }
1773
-
1774
- func (x *ProductResponse_ProductVariant) GetImages() []*ProductResponse_Image {
1775
- if x != nil {
1776
- return x.Images
1777
- }
1778
- return nil
1779
- }
1780
-
1781
- func (x *ProductResponse_ProductVariant) GetOptions() []*ProductResponse_ProductVariant_Option {
1782
- if x != nil {
1783
- return x.Options
1784
- }
1785
- return nil
1786
- }
1787
-
1788
- func (x *ProductResponse_ProductVariant) GetPrices() []*ProductResponse_ProductVariant_Price {
1789
- if x != nil {
1790
- return x.Prices
1791
- }
1792
- return nil
1793
- }
1794
-
1795
- type ProductResponse_ShippingProfile struct {
1796
- state protoimpl.MessageState `protogen:"open.v1"`
1797
- Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
1798
- Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
1799
- Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"`
1800
- Metadata map[string]string `protobuf:"bytes,4,rep,name=metadata,proto3" json:"metadata,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
1801
- unknownFields protoimpl.UnknownFields
1802
- sizeCache protoimpl.SizeCache
1803
- }
1804
-
1805
- func (x *ProductResponse_ShippingProfile) Reset() {
1806
- *x = ProductResponse_ShippingProfile{}
1807
- mi := &file_src_proto_products_v1_entities_product_shared_proto_msgTypes[18]
1808
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
1809
- ms.StoreMessageInfo(mi)
1810
- }
1811
-
1812
- func (x *ProductResponse_ShippingProfile) String() string {
1813
- return protoimpl.X.MessageStringOf(x)
1814
- }
1815
-
1816
- func (*ProductResponse_ShippingProfile) ProtoMessage() {}
1817
-
1818
- func (x *ProductResponse_ShippingProfile) ProtoReflect() protoreflect.Message {
1819
- mi := &file_src_proto_products_v1_entities_product_shared_proto_msgTypes[18]
1820
- if x != nil {
1821
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
1822
- if ms.LoadMessageInfo() == nil {
1823
- ms.StoreMessageInfo(mi)
1824
- }
1825
- return ms
1826
- }
1827
- return mi.MessageOf(x)
1828
- }
1829
-
1830
- // Deprecated: Use ProductResponse_ShippingProfile.ProtoReflect.Descriptor instead.
1831
- func (*ProductResponse_ShippingProfile) Descriptor() ([]byte, []int) {
1832
- return file_src_proto_products_v1_entities_product_shared_proto_rawDescGZIP(), []int{2, 10}
1833
- }
1834
-
1835
- func (x *ProductResponse_ShippingProfile) GetId() string {
1836
- if x != nil {
1837
- return x.Id
1838
- }
1839
- return ""
1840
- }
1841
-
1842
- func (x *ProductResponse_ShippingProfile) GetName() string {
1843
- if x != nil {
1844
- return x.Name
1845
- }
1846
- return ""
1847
- }
1848
-
1849
- func (x *ProductResponse_ShippingProfile) GetType() string {
1850
- if x != nil {
1851
- return x.Type
1852
- }
1853
- return ""
1854
- }
1855
-
1856
- func (x *ProductResponse_ShippingProfile) GetMetadata() map[string]string {
1857
- if x != nil {
1858
- return x.Metadata
1859
- }
1860
- return nil
1861
- }
1862
-
1863
- type ProductResponse_ProductVariant_Price struct {
1864
- state protoimpl.MessageState `protogen:"open.v1"`
1865
- CurrencyCode string `protobuf:"bytes,1,opt,name=currency_code,json=currencyCode,proto3" json:"currency_code,omitempty"`
1866
- Amount float32 `protobuf:"fixed32,3,opt,name=amount,proto3" json:"amount,omitempty"`
1867
- RawAmount float32 `protobuf:"fixed32,4,opt,name=raw_amount,json=rawAmount,proto3" json:"raw_amount,omitempty"`
1868
- Title string `protobuf:"bytes,5,opt,name=title,proto3" json:"title,omitempty"`
1869
- Id string `protobuf:"bytes,6,opt,name=id,proto3" json:"id,omitempty"`
1870
- MaxQuantity int32 `protobuf:"varint,7,opt,name=max_quantity,json=maxQuantity,proto3" json:"max_quantity,omitempty"`
1871
- MinQuantity int32 `protobuf:"varint,8,opt,name=min_quantity,json=minQuantity,proto3" json:"min_quantity,omitempty"`
1872
- PriceSetId string `protobuf:"bytes,9,opt,name=price_set_id,json=priceSetId,proto3" json:"price_set_id,omitempty"`
1873
- Rules []*ProductResponse_ProductVariant_Price_Rule `protobuf:"bytes,10,rep,name=rules,proto3" json:"rules,omitempty"`
1874
- unknownFields protoimpl.UnknownFields
1875
- sizeCache protoimpl.SizeCache
1876
- }
1877
-
1878
- func (x *ProductResponse_ProductVariant_Price) Reset() {
1879
- *x = ProductResponse_ProductVariant_Price{}
1880
- mi := &file_src_proto_products_v1_entities_product_shared_proto_msgTypes[25]
1881
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
1882
- ms.StoreMessageInfo(mi)
1883
- }
1884
-
1885
- func (x *ProductResponse_ProductVariant_Price) String() string {
1886
- return protoimpl.X.MessageStringOf(x)
1887
- }
1888
-
1889
- func (*ProductResponse_ProductVariant_Price) ProtoMessage() {}
1890
-
1891
- func (x *ProductResponse_ProductVariant_Price) ProtoReflect() protoreflect.Message {
1892
- mi := &file_src_proto_products_v1_entities_product_shared_proto_msgTypes[25]
1893
- if x != nil {
1894
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
1895
- if ms.LoadMessageInfo() == nil {
1896
- ms.StoreMessageInfo(mi)
1897
- }
1898
- return ms
1899
- }
1900
- return mi.MessageOf(x)
1901
- }
1902
-
1903
- // Deprecated: Use ProductResponse_ProductVariant_Price.ProtoReflect.Descriptor instead.
1904
- func (*ProductResponse_ProductVariant_Price) Descriptor() ([]byte, []int) {
1905
- return file_src_proto_products_v1_entities_product_shared_proto_rawDescGZIP(), []int{2, 9, 0}
1906
- }
1907
-
1908
- func (x *ProductResponse_ProductVariant_Price) GetCurrencyCode() string {
1909
- if x != nil {
1910
- return x.CurrencyCode
1911
- }
1912
- return ""
1913
- }
1914
-
1915
- func (x *ProductResponse_ProductVariant_Price) GetAmount() float32 {
1916
- if x != nil {
1917
- return x.Amount
1918
- }
1919
- return 0
1920
- }
1921
-
1922
- func (x *ProductResponse_ProductVariant_Price) GetRawAmount() float32 {
1923
- if x != nil {
1924
- return x.RawAmount
1925
- }
1926
- return 0
1927
- }
1928
-
1929
- func (x *ProductResponse_ProductVariant_Price) GetTitle() string {
1930
- if x != nil {
1931
- return x.Title
1932
- }
1933
- return ""
1934
- }
1935
-
1936
- func (x *ProductResponse_ProductVariant_Price) GetId() string {
1937
- if x != nil {
1938
- return x.Id
1939
- }
1940
- return ""
1941
- }
1942
-
1943
- func (x *ProductResponse_ProductVariant_Price) GetMaxQuantity() int32 {
1944
- if x != nil {
1945
- return x.MaxQuantity
1946
- }
1947
- return 0
1948
- }
1949
-
1950
- func (x *ProductResponse_ProductVariant_Price) GetMinQuantity() int32 {
1951
- if x != nil {
1952
- return x.MinQuantity
1953
- }
1954
- return 0
1955
- }
1956
-
1957
- func (x *ProductResponse_ProductVariant_Price) GetPriceSetId() string {
1958
- if x != nil {
1959
- return x.PriceSetId
1960
- }
1961
- return ""
1962
- }
1963
-
1964
- func (x *ProductResponse_ProductVariant_Price) GetRules() []*ProductResponse_ProductVariant_Price_Rule {
1965
- if x != nil {
1966
- return x.Rules
1967
- }
1968
- return nil
1969
- }
1970
-
1971
- type ProductResponse_ProductVariant_Option struct {
1972
- state protoimpl.MessageState `protogen:"open.v1"`
1973
- Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
1974
- Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
1975
- OptionId string `protobuf:"bytes,3,opt,name=option_id,json=optionId,proto3" json:"option_id,omitempty"`
1976
- Option *ProductResponse_OptionData `protobuf:"bytes,4,opt,name=option,proto3" json:"option,omitempty"`
1977
- unknownFields protoimpl.UnknownFields
1978
- sizeCache protoimpl.SizeCache
1979
- }
1980
-
1981
- func (x *ProductResponse_ProductVariant_Option) Reset() {
1982
- *x = ProductResponse_ProductVariant_Option{}
1983
- mi := &file_src_proto_products_v1_entities_product_shared_proto_msgTypes[26]
1984
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
1985
- ms.StoreMessageInfo(mi)
1986
- }
1987
-
1988
- func (x *ProductResponse_ProductVariant_Option) String() string {
1989
- return protoimpl.X.MessageStringOf(x)
1990
- }
1991
-
1992
- func (*ProductResponse_ProductVariant_Option) ProtoMessage() {}
1993
-
1994
- func (x *ProductResponse_ProductVariant_Option) ProtoReflect() protoreflect.Message {
1995
- mi := &file_src_proto_products_v1_entities_product_shared_proto_msgTypes[26]
1996
- if x != nil {
1997
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
1998
- if ms.LoadMessageInfo() == nil {
1999
- ms.StoreMessageInfo(mi)
2000
- }
2001
- return ms
2002
- }
2003
- return mi.MessageOf(x)
2004
- }
2005
-
2006
- // Deprecated: Use ProductResponse_ProductVariant_Option.ProtoReflect.Descriptor instead.
2007
- func (*ProductResponse_ProductVariant_Option) Descriptor() ([]byte, []int) {
2008
- return file_src_proto_products_v1_entities_product_shared_proto_rawDescGZIP(), []int{2, 9, 1}
2009
- }
2010
-
2011
- func (x *ProductResponse_ProductVariant_Option) GetId() string {
2012
- if x != nil {
2013
- return x.Id
2014
- }
2015
- return ""
2016
- }
2017
-
2018
- func (x *ProductResponse_ProductVariant_Option) GetValue() string {
2019
- if x != nil {
2020
- return x.Value
2021
- }
2022
- return ""
2023
- }
2024
-
2025
- func (x *ProductResponse_ProductVariant_Option) GetOptionId() string {
2026
- if x != nil {
2027
- return x.OptionId
2028
- }
2029
- return ""
2030
- }
2031
-
2032
- func (x *ProductResponse_ProductVariant_Option) GetOption() *ProductResponse_OptionData {
2033
- if x != nil {
2034
- return x.Option
2035
- }
2036
- return nil
2037
- }
2038
-
2039
- type ProductResponse_ProductVariant_InventoryItem struct {
2040
- state protoimpl.MessageState `protogen:"open.v1"`
2041
- Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
2042
- RequiredQuantity int32 `protobuf:"varint,2,opt,name=required_quantity,json=requiredQuantity,proto3" json:"required_quantity,omitempty"`
2043
- VariantId string `protobuf:"bytes,3,opt,name=variant_id,json=variantId,proto3" json:"variant_id,omitempty"`
2044
- InventoryItemId string `protobuf:"bytes,4,opt,name=inventory_item_id,json=inventoryItemId,proto3" json:"inventory_item_id,omitempty"`
2045
- Inventory *ProductResponse_ProductVariant_InventoryItem_InventoryItemData `protobuf:"bytes,5,opt,name=inventory,proto3" json:"inventory,omitempty"`
2046
- unknownFields protoimpl.UnknownFields
2047
- sizeCache protoimpl.SizeCache
2048
- }
2049
-
2050
- func (x *ProductResponse_ProductVariant_InventoryItem) Reset() {
2051
- *x = ProductResponse_ProductVariant_InventoryItem{}
2052
- mi := &file_src_proto_products_v1_entities_product_shared_proto_msgTypes[27]
2053
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
2054
- ms.StoreMessageInfo(mi)
2055
- }
2056
-
2057
- func (x *ProductResponse_ProductVariant_InventoryItem) String() string {
2058
- return protoimpl.X.MessageStringOf(x)
2059
- }
2060
-
2061
- func (*ProductResponse_ProductVariant_InventoryItem) ProtoMessage() {}
2062
-
2063
- func (x *ProductResponse_ProductVariant_InventoryItem) ProtoReflect() protoreflect.Message {
2064
- mi := &file_src_proto_products_v1_entities_product_shared_proto_msgTypes[27]
2065
- if x != nil {
2066
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
2067
- if ms.LoadMessageInfo() == nil {
2068
- ms.StoreMessageInfo(mi)
2069
- }
2070
- return ms
2071
- }
2072
- return mi.MessageOf(x)
2073
- }
2074
-
2075
- // Deprecated: Use ProductResponse_ProductVariant_InventoryItem.ProtoReflect.Descriptor instead.
2076
- func (*ProductResponse_ProductVariant_InventoryItem) Descriptor() ([]byte, []int) {
2077
- return file_src_proto_products_v1_entities_product_shared_proto_rawDescGZIP(), []int{2, 9, 2}
2078
- }
2079
-
2080
- func (x *ProductResponse_ProductVariant_InventoryItem) GetId() string {
2081
- if x != nil {
2082
- return x.Id
2083
- }
2084
- return ""
2085
- }
2086
-
2087
- func (x *ProductResponse_ProductVariant_InventoryItem) GetRequiredQuantity() int32 {
2088
- if x != nil {
2089
- return x.RequiredQuantity
2090
- }
2091
- return 0
2092
- }
2093
-
2094
- func (x *ProductResponse_ProductVariant_InventoryItem) GetVariantId() string {
2095
- if x != nil {
2096
- return x.VariantId
2097
- }
2098
- return ""
2099
- }
2100
-
2101
- func (x *ProductResponse_ProductVariant_InventoryItem) GetInventoryItemId() string {
2102
- if x != nil {
2103
- return x.InventoryItemId
2104
- }
2105
- return ""
2106
- }
2107
-
2108
- func (x *ProductResponse_ProductVariant_InventoryItem) GetInventory() *ProductResponse_ProductVariant_InventoryItem_InventoryItemData {
2109
- if x != nil {
2110
- return x.Inventory
2111
- }
2112
- return nil
2113
- }
2114
-
2115
- type ProductResponse_ProductVariant_CalculatedPrice struct {
2116
- state protoimpl.MessageState `protogen:"open.v1"`
2117
- Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
2118
- CalculatedAmount float32 `protobuf:"fixed32,2,opt,name=calculated_amount,json=calculatedAmount,proto3" json:"calculated_amount,omitempty"`
2119
- OriginalAmount float32 `protobuf:"fixed32,3,opt,name=original_amount,json=originalAmount,proto3" json:"original_amount,omitempty"`
2120
- CurrencyCode string `protobuf:"bytes,4,opt,name=currency_code,json=currencyCode,proto3" json:"currency_code,omitempty"`
2121
- OriginalAmountWithTax float32 `protobuf:"fixed32,5,opt,name=original_amount_with_tax,json=originalAmountWithTax,proto3" json:"original_amount_with_tax,omitempty"`
2122
- OriginalAmountWithoutTax float32 `protobuf:"fixed32,6,opt,name=original_amount_without_tax,json=originalAmountWithoutTax,proto3" json:"original_amount_without_tax,omitempty"`
2123
- IsCalculatedPricePriceList *float32 `protobuf:"fixed32,7,opt,name=is_calculated_price_price_list,json=isCalculatedPricePriceList,proto3,oneof" json:"is_calculated_price_price_list,omitempty"`
2124
- IsCalculatedPriceTaxInclusive *bool `protobuf:"varint,8,opt,name=is_calculated_price_tax_inclusive,json=isCalculatedPriceTaxInclusive,proto3,oneof" json:"is_calculated_price_tax_inclusive,omitempty"`
2125
- CalculatedAmountWithTax *float32 `protobuf:"fixed32,9,opt,name=calculated_amount_with_tax,json=calculatedAmountWithTax,proto3,oneof" json:"calculated_amount_with_tax,omitempty"`
2126
- CalculatedAmountWithoutTax *float32 `protobuf:"fixed32,10,opt,name=calculated_amount_without_tax,json=calculatedAmountWithoutTax,proto3,oneof" json:"calculated_amount_without_tax,omitempty"`
2127
- IsOriginalPricePriceList *bool `protobuf:"varint,11,opt,name=is_original_price_price_list,json=isOriginalPricePriceList,proto3,oneof" json:"is_original_price_price_list,omitempty"`
2128
- IsOriginalPriceTaxInclusive *bool `protobuf:"varint,12,opt,name=is_original_price_tax_inclusive,json=isOriginalPriceTaxInclusive,proto3,oneof" json:"is_original_price_tax_inclusive,omitempty"`
2129
- CalculatedPrice *ProductResponse_ProductVariant_Price `protobuf:"bytes,13,opt,name=calculated_price,json=calculatedPrice,proto3,oneof" json:"calculated_price,omitempty"`
2130
- OriginalPrice *ProductResponse_ProductVariant_Price `protobuf:"bytes,14,opt,name=original_price,json=originalPrice,proto3,oneof" json:"original_price,omitempty"`
2131
- unknownFields protoimpl.UnknownFields
2132
- sizeCache protoimpl.SizeCache
2133
- }
2134
-
2135
- func (x *ProductResponse_ProductVariant_CalculatedPrice) Reset() {
2136
- *x = ProductResponse_ProductVariant_CalculatedPrice{}
2137
- mi := &file_src_proto_products_v1_entities_product_shared_proto_msgTypes[28]
2138
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
2139
- ms.StoreMessageInfo(mi)
2140
- }
2141
-
2142
- func (x *ProductResponse_ProductVariant_CalculatedPrice) String() string {
2143
- return protoimpl.X.MessageStringOf(x)
2144
- }
2145
-
2146
- func (*ProductResponse_ProductVariant_CalculatedPrice) ProtoMessage() {}
2147
-
2148
- func (x *ProductResponse_ProductVariant_CalculatedPrice) ProtoReflect() protoreflect.Message {
2149
- mi := &file_src_proto_products_v1_entities_product_shared_proto_msgTypes[28]
2150
- if x != nil {
2151
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
2152
- if ms.LoadMessageInfo() == nil {
2153
- ms.StoreMessageInfo(mi)
2154
- }
2155
- return ms
2156
- }
2157
- return mi.MessageOf(x)
2158
- }
2159
-
2160
- // Deprecated: Use ProductResponse_ProductVariant_CalculatedPrice.ProtoReflect.Descriptor instead.
2161
- func (*ProductResponse_ProductVariant_CalculatedPrice) Descriptor() ([]byte, []int) {
2162
- return file_src_proto_products_v1_entities_product_shared_proto_rawDescGZIP(), []int{2, 9, 3}
2163
- }
2164
-
2165
- func (x *ProductResponse_ProductVariant_CalculatedPrice) GetId() string {
2166
- if x != nil {
2167
- return x.Id
2168
- }
2169
- return ""
2170
- }
2171
-
2172
- func (x *ProductResponse_ProductVariant_CalculatedPrice) GetCalculatedAmount() float32 {
2173
- if x != nil {
2174
- return x.CalculatedAmount
2175
- }
2176
- return 0
2177
- }
2178
-
2179
- func (x *ProductResponse_ProductVariant_CalculatedPrice) GetOriginalAmount() float32 {
2180
- if x != nil {
2181
- return x.OriginalAmount
2182
- }
2183
- return 0
2184
- }
2185
-
2186
- func (x *ProductResponse_ProductVariant_CalculatedPrice) GetCurrencyCode() string {
2187
- if x != nil {
2188
- return x.CurrencyCode
2189
- }
2190
- return ""
2191
- }
2192
-
2193
- func (x *ProductResponse_ProductVariant_CalculatedPrice) GetOriginalAmountWithTax() float32 {
2194
- if x != nil {
2195
- return x.OriginalAmountWithTax
2196
- }
2197
- return 0
2198
- }
2199
-
2200
- func (x *ProductResponse_ProductVariant_CalculatedPrice) GetOriginalAmountWithoutTax() float32 {
2201
- if x != nil {
2202
- return x.OriginalAmountWithoutTax
2203
- }
2204
- return 0
2205
- }
2206
-
2207
- func (x *ProductResponse_ProductVariant_CalculatedPrice) GetIsCalculatedPricePriceList() float32 {
2208
- if x != nil && x.IsCalculatedPricePriceList != nil {
2209
- return *x.IsCalculatedPricePriceList
2210
- }
2211
- return 0
2212
- }
2213
-
2214
- func (x *ProductResponse_ProductVariant_CalculatedPrice) GetIsCalculatedPriceTaxInclusive() bool {
2215
- if x != nil && x.IsCalculatedPriceTaxInclusive != nil {
2216
- return *x.IsCalculatedPriceTaxInclusive
2217
- }
2218
- return false
2219
- }
2220
-
2221
- func (x *ProductResponse_ProductVariant_CalculatedPrice) GetCalculatedAmountWithTax() float32 {
2222
- if x != nil && x.CalculatedAmountWithTax != nil {
2223
- return *x.CalculatedAmountWithTax
2224
- }
2225
- return 0
2226
- }
2227
-
2228
- func (x *ProductResponse_ProductVariant_CalculatedPrice) GetCalculatedAmountWithoutTax() float32 {
2229
- if x != nil && x.CalculatedAmountWithoutTax != nil {
2230
- return *x.CalculatedAmountWithoutTax
2231
- }
2232
- return 0
2233
- }
2234
-
2235
- func (x *ProductResponse_ProductVariant_CalculatedPrice) GetIsOriginalPricePriceList() bool {
2236
- if x != nil && x.IsOriginalPricePriceList != nil {
2237
- return *x.IsOriginalPricePriceList
2238
- }
2239
- return false
2240
- }
2241
-
2242
- func (x *ProductResponse_ProductVariant_CalculatedPrice) GetIsOriginalPriceTaxInclusive() bool {
2243
- if x != nil && x.IsOriginalPriceTaxInclusive != nil {
2244
- return *x.IsOriginalPriceTaxInclusive
2245
- }
2246
- return false
2247
- }
2248
-
2249
- func (x *ProductResponse_ProductVariant_CalculatedPrice) GetCalculatedPrice() *ProductResponse_ProductVariant_Price {
2250
- if x != nil {
2251
- return x.CalculatedPrice
2252
- }
2253
- return nil
2254
- }
2255
-
2256
- func (x *ProductResponse_ProductVariant_CalculatedPrice) GetOriginalPrice() *ProductResponse_ProductVariant_Price {
2257
- if x != nil {
2258
- return x.OriginalPrice
2259
- }
2260
- return nil
2261
- }
2262
-
2263
- type ProductResponse_ProductVariant_Price_Rule struct {
2264
- state protoimpl.MessageState `protogen:"open.v1"`
2265
- EntityId string `protobuf:"bytes,1,opt,name=entity_id,json=entityId,proto3" json:"entity_id,omitempty"`
2266
- EntityType ProductResponse_ProductVariant_Price_Rule_Type `protobuf:"varint,2,opt,name=entity_type,json=entityType,proto3,enum=ProductResponse_ProductVariant_Price_Rule_Type" json:"entity_type,omitempty"`
2267
- unknownFields protoimpl.UnknownFields
2268
- sizeCache protoimpl.SizeCache
2269
- }
2270
-
2271
- func (x *ProductResponse_ProductVariant_Price_Rule) Reset() {
2272
- *x = ProductResponse_ProductVariant_Price_Rule{}
2273
- mi := &file_src_proto_products_v1_entities_product_shared_proto_msgTypes[29]
2274
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
2275
- ms.StoreMessageInfo(mi)
2276
- }
2277
-
2278
- func (x *ProductResponse_ProductVariant_Price_Rule) String() string {
2279
- return protoimpl.X.MessageStringOf(x)
2280
- }
2281
-
2282
- func (*ProductResponse_ProductVariant_Price_Rule) ProtoMessage() {}
2283
-
2284
- func (x *ProductResponse_ProductVariant_Price_Rule) ProtoReflect() protoreflect.Message {
2285
- mi := &file_src_proto_products_v1_entities_product_shared_proto_msgTypes[29]
2286
- if x != nil {
2287
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
2288
- if ms.LoadMessageInfo() == nil {
2289
- ms.StoreMessageInfo(mi)
2290
- }
2291
- return ms
2292
- }
2293
- return mi.MessageOf(x)
2294
- }
2295
-
2296
- // Deprecated: Use ProductResponse_ProductVariant_Price_Rule.ProtoReflect.Descriptor instead.
2297
- func (*ProductResponse_ProductVariant_Price_Rule) Descriptor() ([]byte, []int) {
2298
- return file_src_proto_products_v1_entities_product_shared_proto_rawDescGZIP(), []int{2, 9, 0, 0}
2299
- }
2300
-
2301
- func (x *ProductResponse_ProductVariant_Price_Rule) GetEntityId() string {
2302
- if x != nil {
2303
- return x.EntityId
2304
- }
2305
- return ""
2306
- }
2307
-
2308
- func (x *ProductResponse_ProductVariant_Price_Rule) GetEntityType() ProductResponse_ProductVariant_Price_Rule_Type {
2309
- if x != nil {
2310
- return x.EntityType
2311
- }
2312
- return ProductResponse_ProductVariant_Price_Rule_TYPE_UNSPECIFIED
2313
- }
2314
-
2315
- type ProductResponse_ProductVariant_InventoryItem_InventoryItemData struct {
2316
- state protoimpl.MessageState `protogen:"open.v1"`
2317
- Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
2318
- RequiresShipping bool `protobuf:"varint,2,opt,name=requires_shipping,json=requiresShipping,proto3" json:"requires_shipping,omitempty"`
2319
- Sku string `protobuf:"bytes,3,opt,name=sku,proto3" json:"sku,omitempty"`
2320
- OriginCountry string `protobuf:"bytes,4,opt,name=origin_country,json=originCountry,proto3" json:"origin_country,omitempty"`
2321
- HsCode string `protobuf:"bytes,5,opt,name=hs_code,json=hsCode,proto3" json:"hs_code,omitempty"`
2322
- MidCode string `protobuf:"bytes,6,opt,name=mid_code,json=midCode,proto3" json:"mid_code,omitempty"`
2323
- Material string `protobuf:"bytes,7,opt,name=material,proto3" json:"material,omitempty"`
2324
- Title string `protobuf:"bytes,8,opt,name=title,proto3" json:"title,omitempty"`
2325
- Description string `protobuf:"bytes,9,opt,name=description,proto3" json:"description,omitempty"`
2326
- Thumbnail string `protobuf:"bytes,10,opt,name=thumbnail,proto3" json:"thumbnail,omitempty"`
2327
- Weight float32 `protobuf:"fixed32,11,opt,name=weight,proto3" json:"weight,omitempty"`
2328
- Length float32 `protobuf:"fixed32,12,opt,name=length,proto3" json:"length,omitempty"`
2329
- Width float32 `protobuf:"fixed32,13,opt,name=width,proto3" json:"width,omitempty"`
2330
- Height float32 `protobuf:"fixed32,14,opt,name=height,proto3" json:"height,omitempty"`
2331
- unknownFields protoimpl.UnknownFields
2332
- sizeCache protoimpl.SizeCache
2333
- }
2334
-
2335
- func (x *ProductResponse_ProductVariant_InventoryItem_InventoryItemData) Reset() {
2336
- *x = ProductResponse_ProductVariant_InventoryItem_InventoryItemData{}
2337
- mi := &file_src_proto_products_v1_entities_product_shared_proto_msgTypes[30]
2338
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
2339
- ms.StoreMessageInfo(mi)
2340
- }
2341
-
2342
- func (x *ProductResponse_ProductVariant_InventoryItem_InventoryItemData) String() string {
2343
- return protoimpl.X.MessageStringOf(x)
2344
- }
2345
-
2346
- func (*ProductResponse_ProductVariant_InventoryItem_InventoryItemData) ProtoMessage() {}
2347
-
2348
- func (x *ProductResponse_ProductVariant_InventoryItem_InventoryItemData) ProtoReflect() protoreflect.Message {
2349
- mi := &file_src_proto_products_v1_entities_product_shared_proto_msgTypes[30]
2350
- if x != nil {
2351
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
2352
- if ms.LoadMessageInfo() == nil {
2353
- ms.StoreMessageInfo(mi)
2354
- }
2355
- return ms
2356
- }
2357
- return mi.MessageOf(x)
2358
- }
2359
-
2360
- // Deprecated: Use ProductResponse_ProductVariant_InventoryItem_InventoryItemData.ProtoReflect.Descriptor instead.
2361
- func (*ProductResponse_ProductVariant_InventoryItem_InventoryItemData) Descriptor() ([]byte, []int) {
2362
- return file_src_proto_products_v1_entities_product_shared_proto_rawDescGZIP(), []int{2, 9, 2, 0}
2363
- }
2364
-
2365
- func (x *ProductResponse_ProductVariant_InventoryItem_InventoryItemData) GetId() string {
2366
- if x != nil {
2367
- return x.Id
2368
- }
2369
- return ""
2370
- }
2371
-
2372
- func (x *ProductResponse_ProductVariant_InventoryItem_InventoryItemData) GetRequiresShipping() bool {
2373
- if x != nil {
2374
- return x.RequiresShipping
2375
- }
2376
- return false
2377
- }
2378
-
2379
- func (x *ProductResponse_ProductVariant_InventoryItem_InventoryItemData) GetSku() string {
2380
- if x != nil {
2381
- return x.Sku
2382
- }
2383
- return ""
2384
- }
2385
-
2386
- func (x *ProductResponse_ProductVariant_InventoryItem_InventoryItemData) GetOriginCountry() string {
2387
- if x != nil {
2388
- return x.OriginCountry
2389
- }
2390
- return ""
2391
- }
2392
-
2393
- func (x *ProductResponse_ProductVariant_InventoryItem_InventoryItemData) GetHsCode() string {
2394
- if x != nil {
2395
- return x.HsCode
2396
- }
2397
- return ""
2398
- }
2399
-
2400
- func (x *ProductResponse_ProductVariant_InventoryItem_InventoryItemData) GetMidCode() string {
2401
- if x != nil {
2402
- return x.MidCode
2403
- }
2404
- return ""
2405
- }
2406
-
2407
- func (x *ProductResponse_ProductVariant_InventoryItem_InventoryItemData) GetMaterial() string {
2408
- if x != nil {
2409
- return x.Material
2410
- }
2411
- return ""
2412
- }
2413
-
2414
- func (x *ProductResponse_ProductVariant_InventoryItem_InventoryItemData) GetTitle() string {
2415
- if x != nil {
2416
- return x.Title
2417
- }
2418
- return ""
2419
- }
2420
-
2421
- func (x *ProductResponse_ProductVariant_InventoryItem_InventoryItemData) GetDescription() string {
2422
- if x != nil {
2423
- return x.Description
2424
- }
2425
- return ""
2426
- }
2427
-
2428
- func (x *ProductResponse_ProductVariant_InventoryItem_InventoryItemData) GetThumbnail() string {
2429
- if x != nil {
2430
- return x.Thumbnail
2431
- }
2432
- return ""
2433
- }
2434
-
2435
- func (x *ProductResponse_ProductVariant_InventoryItem_InventoryItemData) GetWeight() float32 {
2436
- if x != nil {
2437
- return x.Weight
2438
- }
2439
- return 0
2440
- }
2441
-
2442
- func (x *ProductResponse_ProductVariant_InventoryItem_InventoryItemData) GetLength() float32 {
2443
- if x != nil {
2444
- return x.Length
2445
- }
2446
- return 0
2447
- }
2448
-
2449
- func (x *ProductResponse_ProductVariant_InventoryItem_InventoryItemData) GetWidth() float32 {
2450
- if x != nil {
2451
- return x.Width
2452
- }
2453
- return 0
2454
- }
2455
-
2456
- func (x *ProductResponse_ProductVariant_InventoryItem_InventoryItemData) GetHeight() float32 {
2457
- if x != nil {
2458
- return x.Height
2459
- }
2460
- return 0
2461
- }
2462
-
2463
- var File_src_proto_products_v1_entities_product_shared_proto protoreflect.FileDescriptor
2464
-
2465
- const file_src_proto_products_v1_entities_product_shared_proto_rawDesc = "" +
2466
- "\n" +
2467
- "3src/proto/products/v1/entities/product/shared.proto\x1a\x1bbuf/validate/validate.proto\"=\n" +
2468
- "\rProductOption\x12\x14\n" +
2469
- "\x05title\x18\x01 \x01(\tR\x05title\x12\x16\n" +
2470
- "\x06values\x18\x02 \x03(\tR\x06values\"\x9d\f\n" +
2471
- "\aVariant\x12\x13\n" +
2472
- "\x02id\x18\x01 \x01(\tH\x00R\x02id\x88\x01\x01\x12\x14\n" +
2473
- "\x05title\x18\x02 \x01(\tR\x05title\x12\x15\n" +
2474
- "\x03sku\x18\x03 \x01(\tH\x01R\x03sku\x88\x01\x01\x12\x15\n" +
2475
- "\x03ean\x18\x04 \x01(\tH\x02R\x03ean\x88\x01\x01\x12\x15\n" +
2476
- "\x03upc\x18\x05 \x01(\tH\x03R\x03upc\x88\x01\x01\x12\x1d\n" +
2477
- "\abarcode\x18\x06 \x01(\tH\x04R\abarcode\x88\x01\x01\x12,\n" +
2478
- "\x0ftrack_inventory\x18\a \x01(\bH\x05R\x0etrackInventory\x88\x01\x01\x123\n" +
2479
- "\x13is_manage_inventory\x18\b \x01(\bH\x06R\x11isManageInventory\x88\x01\x01\x12\x1b\n" +
2480
- "\x06weight\x18\t \x01(\x02H\aR\x06weight\x88\x01\x01\x12\x1b\n" +
2481
- "\x06length\x18\n" +
2482
- " \x01(\x02H\bR\x06length\x88\x01\x01\x12\x19\n" +
2483
- "\x05width\x18\v \x01(\x02H\tR\x05width\x88\x01\x01\x12\x1b\n" +
2484
- "\x06height\x18\f \x01(\x02H\n" +
2485
- "R\x06height\x88\x01\x01\x12\x1c\n" +
2486
- "\ahs_code\x18\r \x01(\tH\vR\x06hsCode\x88\x01\x01\x12*\n" +
2487
- "\x0eorigin_country\x18\x0e \x01(\tH\fR\roriginCountry\x88\x01\x01\x12\x1f\n" +
2488
- "\bmaterial\x18\x0f \x01(\tH\rR\bmaterial\x88\x01\x01\x129\n" +
2489
- "\roption_values\x18\x10 \x03(\v2\x14.Variant.OptionValueR\foptionValues\x12&\n" +
2490
- "\x06prices\x18\x11 \x03(\v2\x0e.Variant.PriceR\x06prices\x12?\n" +
2491
- "\x0finventory_items\x18\x12 \x03(\v2\x16.Variant.InventoryItemR\x0einventoryItems\x122\n" +
2492
- "\bmetadata\x18\x13 \x03(\v2\x16.Variant.MetadataEntryR\bmetadata\x12\x1e\n" +
2493
- "\bmid_code\x18\x14 \x01(\tH\x0eR\amidCode\x88\x01\x01\x12,\n" +
2494
- "\x0fallow_backorder\x18\x15 \x01(\bH\x0fR\x0eallowBackorder\x88\x01\x01\x12\x17\n" +
2495
- "\x04rank\x18\x16 \x01(\x05H\x10R\x04rank\x88\x01\x01\x1a@\n" +
2496
- "\vOptionValue\x12\x1b\n" +
2497
- "\toption_id\x18\x01 \x01(\tR\boptionId\x12\x14\n" +
2498
- "\x05value\x18\x02 \x01(\tR\x05value\x1a\xef\x02\n" +
2499
- "\x05Price\x12#\n" +
2500
- "\rcurrency_code\x18\x01 \x01(\tR\fcurrencyCode\x12\x16\n" +
2501
- "\x06amount\x18\x03 \x01(\x02R\x06amount\x12!\n" +
2502
- "\fmax_quantity\x18\x04 \x01(\x05R\vmaxQuantity\x12!\n" +
2503
- "\fmin_quantity\x18\x05 \x01(\x05R\vminQuantity\x12)\n" +
2504
- "\x05rules\x18\n" +
2505
- " \x03(\v2\x13.Variant.Price.RuleR\x05rules\x1a]\n" +
2506
- "\x04Rule\x12\x1b\n" +
2507
- "\tentity_id\x18\x01 \x01(\tR\bentityId\x128\n" +
2508
- "\ventity_type\x18\x02 \x01(\x0e2\x17.Variant.Price.RuleTypeR\n" +
2509
- "entityType\"Y\n" +
2510
- "\bRuleType\x12\x19\n" +
2511
- "\x15RULE_TYPE_UNSPECIFIED\x10\x00\x12\x14\n" +
2512
- "\x10RULE_TYPE_REGION\x10\x01\x12\x1c\n" +
2513
- "\x18RULE_TYPE_CUSTOMER_GROUP\x10\x02\x1a;\n" +
2514
- "\rInventoryItem\x12*\n" +
2515
- "\x11inventory_item_id\x18\x01 \x01(\tR\x0finventoryItemId\x1a;\n" +
2516
- "\rMetadataEntry\x12\x10\n" +
2517
- "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
2518
- "\x05value\x18\x02 \x01(\tR\x05value:\x028\x01B\x05\n" +
2519
- "\x03_idB\x06\n" +
2520
- "\x04_skuB\x06\n" +
2521
- "\x04_eanB\x06\n" +
2522
- "\x04_upcB\n" +
2523
- "\n" +
2524
- "\b_barcodeB\x12\n" +
2525
- "\x10_track_inventoryB\x16\n" +
2526
- "\x14_is_manage_inventoryB\t\n" +
2527
- "\a_weightB\t\n" +
2528
- "\a_lengthB\b\n" +
2529
- "\x06_widthB\t\n" +
2530
- "\a_heightB\n" +
2531
- "\n" +
2532
- "\b_hs_codeB\x11\n" +
2533
- "\x0f_origin_countryB\v\n" +
2534
- "\t_materialB\v\n" +
2535
- "\t_mid_codeB\x12\n" +
2536
- "\x10_allow_backorderB\a\n" +
2537
- "\x05_rank\"\x8d2\n" +
2538
- "\x0fProductResponse\x12\x0e\n" +
2539
- "\x02id\x18\x01 \x01(\tR\x02id\x12\x16\n" +
2540
- "\x06length\x18\x02 \x01(\x02R\x06length\x12\x14\n" +
2541
- "\x05title\x18\x03 \x01(\tR\x05title\x12&\n" +
2542
- "\x06status\x18\x04 \x01(\x0e2\x0e.ProductStatusR\x06status\x12 \n" +
2543
- "\vdescription\x18\x05 \x01(\tR\vdescription\x12\x12\n" +
2544
- "\x04slug\x18\x06 \x01(\tR\x04slug\x12\x1a\n" +
2545
- "\bsubtitle\x18\a \x01(\tR\bsubtitle\x12\x1c\n" +
2546
- "\tthumbnail\x18\b \x01(\tR\tthumbnail\x12\x1f\n" +
2547
- "\vis_giftcard\x18\t \x01(\bR\n" +
2548
- "isGiftcard\x12\x16\n" +
2549
- "\x06weight\x18\n" +
2550
- " \x01(\x02R\x06weight\x12\x16\n" +
2551
- "\x06height\x18\v \x01(\x02R\x06height\x12\x14\n" +
2552
- "\x05width\x18\f \x01(\x02R\x05width\x12%\n" +
2553
- "\x0eorigin_country\x18\r \x01(\tR\roriginCountry\x12\x17\n" +
2554
- "\ahs_code\x18\x0e \x01(\tR\x06hsCode\x12\x19\n" +
2555
- "\bmid_code\x18\x0f \x01(\tR\amidCode\x12#\n" +
2556
- "\rcollection_id\x18\x10 \x01(\tR\fcollectionId\x12\x17\n" +
2557
- "\atype_id\x18\x11 \x01(\tR\x06typeId\x12'\n" +
2558
- "\x0fis_discountable\x18\x12 \x01(\bR\x0eisDiscountable\x12\x1f\n" +
2559
- "\vexternal_id\x18\x13 \x01(\tR\n" +
2560
- "externalId\x12;\n" +
2561
- "\bvariants\x18\x14 \x03(\v2\x1f.ProductResponse.ProductVariantR\bvariants\x12)\n" +
2562
- "\x04type\x18\x15 \x01(\v2\x15.ProductResponse.TypeR\x04type\x121\n" +
2563
- "\aoptions\x18\x16 \x01(\v2\x17.ProductResponse.OptionR\aoptions\x12.\n" +
2564
- "\x06images\x18\x17 \x03(\v2\x16.ProductResponse.ImageR\x06images\x12;\n" +
2565
- "\n" +
2566
- "collection\x18\x18 \x01(\v2\x1b.ProductResponse.CollectionR\n" +
2567
- "collection\x129\n" +
2568
- "\n" +
2569
- "categories\x18\x19 \x03(\v2\x19.ProductResponse.CategoryR\n" +
2570
- "categories\x12D\n" +
2571
- "\x0esales_channels\x18\x1a \x03(\v2\x1d.ProductResponse.SalesChannelR\rsalesChannels\x12(\n" +
2572
- "\x04tags\x18\x1b \x03(\v2\x14.ProductResponse.TagR\x04tags\x12K\n" +
2573
- "\x10shipping_profile\x18\x1c \x01(\v2 .ProductResponse.ShippingProfileR\x0fshippingProfile\x12:\n" +
2574
- "\bmetadata\x18\x1d \x03(\v2\x1e.ProductResponse.MetadataEntryR\bmetadata\x1a+\n" +
2575
- "\x03Tag\x12\x0e\n" +
2576
- "\x02id\x18\x01 \x01(\tR\x02id\x12\x14\n" +
2577
- "\x05value\x18\x02 \x01(\tR\x05value\x1a\xfb\x01\n" +
2578
- "\fSalesChannel\x12\x0e\n" +
2579
- "\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n" +
2580
- "\x04name\x18\x02 \x01(\tR\x04name\x12 \n" +
2581
- "\vdescription\x18\x03 \x01(\tR\vdescription\x12\x1f\n" +
2582
- "\vis_disabled\x18\x04 \x01(\tR\n" +
2583
- "isDisabled\x12G\n" +
2584
- "\bmetadata\x18\x05 \x03(\v2+.ProductResponse.SalesChannel.MetadataEntryR\bmetadata\x1a;\n" +
2585
- "\rMetadataEntry\x12\x10\n" +
2586
- "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
2587
- "\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\x1a\xa8\x01\n" +
2588
- "\x04Type\x12\x0e\n" +
2589
- "\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n" +
2590
- "\x04name\x18\x02 \x01(\tR\x04name\x12?\n" +
2591
- "\bmetadata\x18\x03 \x03(\v2#.ProductResponse.Type.MetadataEntryR\bmetadata\x1a;\n" +
2592
- "\rMetadataEntry\x12\x10\n" +
2593
- "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
2594
- "\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\x1a\x9f\x03\n" +
2595
- "\bCategory\x12\x0e\n" +
2596
- "\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n" +
2597
- "\x04name\x18\x02 \x01(\tR\x04name\x12 \n" +
2598
- "\vdescription\x18\x03 \x01(\tR\vdescription\x12\x12\n" +
2599
- "\x04slug\x18\x04 \x01(\tR\x04slug\x12\x1b\n" +
2600
- "\tis_active\x18\x05 \x01(\bR\bisActive\x12\x1f\n" +
2601
- "\vis_internal\x18\x06 \x01(\bR\n" +
2602
- "isInternal\x12\x12\n" +
2603
- "\x04rank\x18\a \x01(\x05R\x04rank\x12 \n" +
2604
- "\tparent_id\x18\b \x01(\tH\x00R\bparentId\x88\x01\x01\x125\n" +
2605
- "\bchildren\x18\t \x03(\v2\x19.ProductResponse.CategoryR\bchildren\x12C\n" +
2606
- "\bmetadata\x18\n" +
2607
- " \x03(\v2'.ProductResponse.Category.MetadataEntryR\bmetadata\x1a;\n" +
2608
- "\rMetadataEntry\x12\x10\n" +
2609
- "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
2610
- "\x05value\x18\x02 \x01(\tR\x05value:\x028\x01B\f\n" +
2611
- "\n" +
2612
- "_parent_id\x1a\xca\x01\n" +
2613
- "\n" +
2614
- "Collection\x12\x0e\n" +
2615
- "\x02id\x18\x01 \x01(\tR\x02id\x12\x14\n" +
2616
- "\x05title\x18\x02 \x01(\tR\x05title\x12\x12\n" +
2617
- "\x04slug\x18\x03 \x01(\tR\x04slug\x12E\n" +
2618
- "\bmetadata\x18\x04 \x03(\v2).ProductResponse.Collection.MetadataEntryR\bmetadata\x1a;\n" +
2619
- "\rMetadataEntry\x12\x10\n" +
2620
- "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
2621
- "\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\x1a\xbc\x01\n" +
2622
- "\x05Image\x12\x0e\n" +
2623
- "\x02id\x18\x01 \x01(\tR\x02id\x12\x10\n" +
2624
- "\x03url\x18\x02 \x01(\tR\x03url\x12\x12\n" +
2625
- "\x04rank\x18\x03 \x01(\x05R\x04rank\x12@\n" +
2626
- "\bmetadata\x18\x04 \x03(\v2$.ProductResponse.Image.MetadataEntryR\bmetadata\x1a;\n" +
2627
- "\rMetadataEntry\x12\x10\n" +
2628
- "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
2629
- "\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\x1a{\n" +
2630
- "\x05Value\x12\x1b\n" +
2631
- "\toption_id\x18\x01 \x01(\tR\boptionId\x12\x14\n" +
2632
- "\x05value\x18\x02 \x01(\tR\x05value\x124\n" +
2633
- "\x06option\x18\x04 \x01(\v2\x17.ProductResponse.OptionH\x00R\x06option\x88\x01\x01B\t\n" +
2634
- "\a_option\x1a\x8e\x01\n" +
2635
- "\n" +
2636
- "OptionData\x12\x0e\n" +
2637
- "\x02id\x18\x01 \x01(\tR\x02id\x12\x14\n" +
2638
- "\x05title\x18\x02 \x01(\tR\x05title\x12;\n" +
2639
- "\roption_values\x18\x03 \x03(\v2\x16.ProductResponse.ValueR\foptionValues\x12\x1d\n" +
2640
- "\n" +
2641
- "product_id\x18\x04 \x01(\tR\tproductId\x1a\xb2\x01\n" +
2642
- "\x06Option\x12\x0e\n" +
2643
- "\x02id\x18\x01 \x01(\tR\x02id\x12\x14\n" +
2644
- "\x05value\x18\x02 \x01(\tR\x05value\x12\x1d\n" +
2645
- "\n" +
2646
- "product_id\x18\x03 \x01(\tR\tproductId\x123\n" +
2647
- "\x06option\x18\x04 \x01(\v2\x1b.ProductResponse.OptionDataR\x06option\x12.\n" +
2648
- "\x06values\x18\x05 \x03(\v2\x16.ProductResponse.ValueR\x06values\x1a\xc4\x19\n" +
2649
- "\x0eProductVariant\x12\x0e\n" +
2650
- "\x02id\x18\x01 \x01(\tR\x02id\x12\x14\n" +
2651
- "\x05title\x18\x02 \x01(\tR\x05title\x12\x10\n" +
2652
- "\x03sku\x18\x03 \x01(\tR\x03sku\x12\x18\n" +
2653
- "\abarcode\x18\x04 \x01(\tR\abarcode\x12\x10\n" +
2654
- "\x03ean\x18\x05 \x01(\tR\x03ean\x12\x10\n" +
2655
- "\x03upc\x18\x06 \x01(\tR\x03upc\x12'\n" +
2656
- "\x0fallow_backorder\x18\a \x01(\bR\x0eallowBackorder\x120\n" +
2657
- "\x14is_managed_inventory\x18\b \x01(\bR\x12isManagedInventory\x12\x17\n" +
2658
- "\ahs_code\x18\t \x01(\tR\x06hsCode\x12%\n" +
2659
- "\x0eorigin_country\x18\n" +
2660
- " \x01(\tR\roriginCountry\x12\x19\n" +
2661
- "\bmid_code\x18\v \x01(\tR\amidCode\x12\x1a\n" +
2662
- "\bmaterial\x18\f \x01(\tR\bmaterial\x12\x16\n" +
2663
- "\x06weight\x18\r \x01(\x02R\x06weight\x12\x16\n" +
2664
- "\x06length\x18\x0e \x01(\x02R\x06length\x12\x16\n" +
2665
- "\x06height\x18\x0f \x01(\x02R\x06height\x12\x14\n" +
2666
- "\x05width\x18\x10 \x01(\x02R\x05width\x12\x1c\n" +
2667
- "\tthumbnail\x18\x11 \x01(\tR\tthumbnail\x12\x1d\n" +
2668
- "\n" +
2669
- "product_id\x18\x12 \x01(\tR\tproductId\x12Z\n" +
2670
- "\x10calculated_price\x18\x13 \x01(\v2/.ProductResponse.ProductVariant.CalculatedPriceR\x0fcalculatedPrice\x12V\n" +
2671
- "\x0finventory_items\x18\x14 \x03(\v2-.ProductResponse.ProductVariant.InventoryItemR\x0einventoryItems\x12.\n" +
2672
- "\x06images\x18\x15 \x03(\v2\x16.ProductResponse.ImageR\x06images\x12@\n" +
2673
- "\aoptions\x18\x16 \x03(\v2&.ProductResponse.ProductVariant.OptionR\aoptions\x12=\n" +
2674
- "\x06prices\x18\x17 \x03(\v2%.ProductResponse.ProductVariant.PriceR\x06prices\x1a\xf3\x03\n" +
2675
- "\x05Price\x12#\n" +
2676
- "\rcurrency_code\x18\x01 \x01(\tR\fcurrencyCode\x12\x16\n" +
2677
- "\x06amount\x18\x03 \x01(\x02R\x06amount\x12\x1d\n" +
2678
- "\n" +
2679
- "raw_amount\x18\x04 \x01(\x02R\trawAmount\x12\x14\n" +
2680
- "\x05title\x18\x05 \x01(\tR\x05title\x12\x0e\n" +
2681
- "\x02id\x18\x06 \x01(\tR\x02id\x12!\n" +
2682
- "\fmax_quantity\x18\a \x01(\x05R\vmaxQuantity\x12!\n" +
2683
- "\fmin_quantity\x18\b \x01(\x05R\vminQuantity\x12 \n" +
2684
- "\fprice_set_id\x18\t \x01(\tR\n" +
2685
- "priceSetId\x12@\n" +
2686
- "\x05rules\x18\n" +
2687
- " \x03(\v2*.ProductResponse.ProductVariant.Price.RuleR\x05rules\x1a\xbd\x01\n" +
2688
- "\x04Rule\x12\x1b\n" +
2689
- "\tentity_id\x18\x01 \x01(\tR\bentityId\x12P\n" +
2690
- "\ventity_type\x18\x02 \x01(\x0e2/.ProductResponse.ProductVariant.Price.Rule.TypeR\n" +
2691
- "entityType\"F\n" +
2692
- "\x04Type\x12\x14\n" +
2693
- "\x10TYPE_UNSPECIFIED\x10\x00\x12\x0f\n" +
2694
- "\vTYPE_REGION\x10\x01\x12\x17\n" +
2695
- "\x13TYPE_CUSTOMER_GROUP\x10\x02\x1a\x80\x01\n" +
2696
- "\x06Option\x12\x0e\n" +
2697
- "\x02id\x18\x01 \x01(\tR\x02id\x12\x14\n" +
2698
- "\x05value\x18\x02 \x01(\tR\x05value\x12\x1b\n" +
2699
- "\toption_id\x18\x03 \x01(\tR\boptionId\x123\n" +
2700
- "\x06option\x18\x04 \x01(\v2\x1b.ProductResponse.OptionDataR\x06option\x1a\x86\x05\n" +
2701
- "\rInventoryItem\x12\x0e\n" +
2702
- "\x02id\x18\x01 \x01(\tR\x02id\x12+\n" +
2703
- "\x11required_quantity\x18\x02 \x01(\x05R\x10requiredQuantity\x12\x1d\n" +
2704
- "\n" +
2705
- "variant_id\x18\x03 \x01(\tR\tvariantId\x12*\n" +
2706
- "\x11inventory_item_id\x18\x04 \x01(\tR\x0finventoryItemId\x12]\n" +
2707
- "\tinventory\x18\x05 \x01(\v2?.ProductResponse.ProductVariant.InventoryItem.InventoryItemDataR\tinventory\x1a\x8d\x03\n" +
2708
- "\x11InventoryItemData\x12\x0e\n" +
2709
- "\x02id\x18\x01 \x01(\tR\x02id\x12+\n" +
2710
- "\x11requires_shipping\x18\x02 \x01(\bR\x10requiresShipping\x12\x10\n" +
2711
- "\x03sku\x18\x03 \x01(\tR\x03sku\x12%\n" +
2712
- "\x0eorigin_country\x18\x04 \x01(\tR\roriginCountry\x12\x17\n" +
2713
- "\ahs_code\x18\x05 \x01(\tR\x06hsCode\x12\x19\n" +
2714
- "\bmid_code\x18\x06 \x01(\tR\amidCode\x12\x1a\n" +
2715
- "\bmaterial\x18\a \x01(\tR\bmaterial\x12\x14\n" +
2716
- "\x05title\x18\b \x01(\tR\x05title\x12 \n" +
2717
- "\vdescription\x18\t \x01(\tR\vdescription\x12\x1c\n" +
2718
- "\tthumbnail\x18\n" +
2719
- " \x01(\tR\tthumbnail\x12\x16\n" +
2720
- "\x06weight\x18\v \x01(\x02R\x06weight\x12\x16\n" +
2721
- "\x06length\x18\f \x01(\x02R\x06length\x12\x14\n" +
2722
- "\x05width\x18\r \x01(\x02R\x05width\x12\x16\n" +
2723
- "\x06height\x18\x0e \x01(\x02R\x06height\x1a\xe7\b\n" +
2724
- "\x0fCalculatedPrice\x12\x0e\n" +
2725
- "\x02id\x18\x01 \x01(\tR\x02id\x12+\n" +
2726
- "\x11calculated_amount\x18\x02 \x01(\x02R\x10calculatedAmount\x12'\n" +
2727
- "\x0foriginal_amount\x18\x03 \x01(\x02R\x0eoriginalAmount\x12#\n" +
2728
- "\rcurrency_code\x18\x04 \x01(\tR\fcurrencyCode\x127\n" +
2729
- "\x18original_amount_with_tax\x18\x05 \x01(\x02R\x15originalAmountWithTax\x12=\n" +
2730
- "\x1boriginal_amount_without_tax\x18\x06 \x01(\x02R\x18originalAmountWithoutTax\x12G\n" +
2731
- "\x1eis_calculated_price_price_list\x18\a \x01(\x02H\x00R\x1aisCalculatedPricePriceList\x88\x01\x01\x12M\n" +
2732
- "!is_calculated_price_tax_inclusive\x18\b \x01(\bH\x01R\x1disCalculatedPriceTaxInclusive\x88\x01\x01\x12@\n" +
2733
- "\x1acalculated_amount_with_tax\x18\t \x01(\x02H\x02R\x17calculatedAmountWithTax\x88\x01\x01\x12F\n" +
2734
- "\x1dcalculated_amount_without_tax\x18\n" +
2735
- " \x01(\x02H\x03R\x1acalculatedAmountWithoutTax\x88\x01\x01\x12C\n" +
2736
- "\x1cis_original_price_price_list\x18\v \x01(\bH\x04R\x18isOriginalPricePriceList\x88\x01\x01\x12I\n" +
2737
- "\x1fis_original_price_tax_inclusive\x18\f \x01(\bH\x05R\x1bisOriginalPriceTaxInclusive\x88\x01\x01\x12U\n" +
2738
- "\x10calculated_price\x18\r \x01(\v2%.ProductResponse.ProductVariant.PriceH\x06R\x0fcalculatedPrice\x88\x01\x01\x12Q\n" +
2739
- "\x0eoriginal_price\x18\x0e \x01(\v2%.ProductResponse.ProductVariant.PriceH\aR\roriginalPrice\x88\x01\x01B!\n" +
2740
- "\x1f_is_calculated_price_price_listB$\n" +
2741
- "\"_is_calculated_price_tax_inclusiveB\x1d\n" +
2742
- "\x1b_calculated_amount_with_taxB \n" +
2743
- "\x1e_calculated_amount_without_taxB\x1f\n" +
2744
- "\x1d_is_original_price_price_listB\"\n" +
2745
- " _is_original_price_tax_inclusiveB\x13\n" +
2746
- "\x11_calculated_priceB\x11\n" +
2747
- "\x0f_original_price\x1a\xd2\x01\n" +
2748
- "\x0fShippingProfile\x12\x0e\n" +
2749
- "\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n" +
2750
- "\x04name\x18\x02 \x01(\tR\x04name\x12\x12\n" +
2751
- "\x04type\x18\x03 \x01(\tR\x04type\x12J\n" +
2752
- "\bmetadata\x18\x04 \x03(\v2..ProductResponse.ShippingProfile.MetadataEntryR\bmetadata\x1a;\n" +
2753
- "\rMetadataEntry\x12\x10\n" +
2754
- "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
2755
- "\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\x1a;\n" +
2756
- "\rMetadataEntry\x12\x10\n" +
2757
- "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
2758
- "\x05value\x18\x02 \x01(\tR\x05value:\x028\x01*E\n" +
2759
- "\rProductStatus\x12\t\n" +
2760
- "\x05DRAFT\x10\x00\x12\f\n" +
2761
- "\bPROPOSED\x10\x01\x12\r\n" +
2762
- "\tPUBLISHED\x10\x02\x12\f\n" +
2763
- "\bREJECTED\x10\x03BRB\vSharedProtoP\x01ZApaakd.com/packages/api/gen/src/proto/products/v1/entities/productb\x06proto3"
2764
-
2765
- var (
2766
- file_src_proto_products_v1_entities_product_shared_proto_rawDescOnce sync.Once
2767
- file_src_proto_products_v1_entities_product_shared_proto_rawDescData []byte
2768
- )
2769
-
2770
- func file_src_proto_products_v1_entities_product_shared_proto_rawDescGZIP() []byte {
2771
- file_src_proto_products_v1_entities_product_shared_proto_rawDescOnce.Do(func() {
2772
- file_src_proto_products_v1_entities_product_shared_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_src_proto_products_v1_entities_product_shared_proto_rawDesc), len(file_src_proto_products_v1_entities_product_shared_proto_rawDesc)))
2773
- })
2774
- return file_src_proto_products_v1_entities_product_shared_proto_rawDescData
2775
- }
2776
-
2777
- var file_src_proto_products_v1_entities_product_shared_proto_enumTypes = make([]protoimpl.EnumInfo, 3)
2778
- var file_src_proto_products_v1_entities_product_shared_proto_msgTypes = make([]protoimpl.MessageInfo, 32)
2779
- var file_src_proto_products_v1_entities_product_shared_proto_goTypes = []any{
2780
- (ProductStatus)(0), // 0: ProductStatus
2781
- (Variant_Price_RuleType)(0), // 1: Variant.Price.RuleType
2782
- (ProductResponse_ProductVariant_Price_Rule_Type)(0), // 2: ProductResponse.ProductVariant.Price.Rule.Type
2783
- (*ProductOption)(nil), // 3: ProductOption
2784
- (*Variant)(nil), // 4: Variant
2785
- (*ProductResponse)(nil), // 5: ProductResponse
2786
- (*Variant_OptionValue)(nil), // 6: Variant.OptionValue
2787
- (*Variant_Price)(nil), // 7: Variant.Price
2788
- (*Variant_InventoryItem)(nil), // 8: Variant.InventoryItem
2789
- nil, // 9: Variant.MetadataEntry
2790
- (*Variant_Price_Rule)(nil), // 10: Variant.Price.Rule
2791
- (*ProductResponse_Tag)(nil), // 11: ProductResponse.Tag
2792
- (*ProductResponse_SalesChannel)(nil), // 12: ProductResponse.SalesChannel
2793
- (*ProductResponse_Type)(nil), // 13: ProductResponse.Type
2794
- (*ProductResponse_Category)(nil), // 14: ProductResponse.Category
2795
- (*ProductResponse_Collection)(nil), // 15: ProductResponse.Collection
2796
- (*ProductResponse_Image)(nil), // 16: ProductResponse.Image
2797
- (*ProductResponse_Value)(nil), // 17: ProductResponse.Value
2798
- (*ProductResponse_OptionData)(nil), // 18: ProductResponse.OptionData
2799
- (*ProductResponse_Option)(nil), // 19: ProductResponse.Option
2800
- (*ProductResponse_ProductVariant)(nil), // 20: ProductResponse.ProductVariant
2801
- (*ProductResponse_ShippingProfile)(nil), // 21: ProductResponse.ShippingProfile
2802
- nil, // 22: ProductResponse.MetadataEntry
2803
- nil, // 23: ProductResponse.SalesChannel.MetadataEntry
2804
- nil, // 24: ProductResponse.Type.MetadataEntry
2805
- nil, // 25: ProductResponse.Category.MetadataEntry
2806
- nil, // 26: ProductResponse.Collection.MetadataEntry
2807
- nil, // 27: ProductResponse.Image.MetadataEntry
2808
- (*ProductResponse_ProductVariant_Price)(nil), // 28: ProductResponse.ProductVariant.Price
2809
- (*ProductResponse_ProductVariant_Option)(nil), // 29: ProductResponse.ProductVariant.Option
2810
- (*ProductResponse_ProductVariant_InventoryItem)(nil), // 30: ProductResponse.ProductVariant.InventoryItem
2811
- (*ProductResponse_ProductVariant_CalculatedPrice)(nil), // 31: ProductResponse.ProductVariant.CalculatedPrice
2812
- (*ProductResponse_ProductVariant_Price_Rule)(nil), // 32: ProductResponse.ProductVariant.Price.Rule
2813
- (*ProductResponse_ProductVariant_InventoryItem_InventoryItemData)(nil), // 33: ProductResponse.ProductVariant.InventoryItem.InventoryItemData
2814
- nil, // 34: ProductResponse.ShippingProfile.MetadataEntry
2815
- }
2816
- var file_src_proto_products_v1_entities_product_shared_proto_depIdxs = []int32{
2817
- 6, // 0: Variant.option_values:type_name -> Variant.OptionValue
2818
- 7, // 1: Variant.prices:type_name -> Variant.Price
2819
- 8, // 2: Variant.inventory_items:type_name -> Variant.InventoryItem
2820
- 9, // 3: Variant.metadata:type_name -> Variant.MetadataEntry
2821
- 0, // 4: ProductResponse.status:type_name -> ProductStatus
2822
- 20, // 5: ProductResponse.variants:type_name -> ProductResponse.ProductVariant
2823
- 13, // 6: ProductResponse.type:type_name -> ProductResponse.Type
2824
- 19, // 7: ProductResponse.options:type_name -> ProductResponse.Option
2825
- 16, // 8: ProductResponse.images:type_name -> ProductResponse.Image
2826
- 15, // 9: ProductResponse.collection:type_name -> ProductResponse.Collection
2827
- 14, // 10: ProductResponse.categories:type_name -> ProductResponse.Category
2828
- 12, // 11: ProductResponse.sales_channels:type_name -> ProductResponse.SalesChannel
2829
- 11, // 12: ProductResponse.tags:type_name -> ProductResponse.Tag
2830
- 21, // 13: ProductResponse.shipping_profile:type_name -> ProductResponse.ShippingProfile
2831
- 22, // 14: ProductResponse.metadata:type_name -> ProductResponse.MetadataEntry
2832
- 10, // 15: Variant.Price.rules:type_name -> Variant.Price.Rule
2833
- 1, // 16: Variant.Price.Rule.entity_type:type_name -> Variant.Price.RuleType
2834
- 23, // 17: ProductResponse.SalesChannel.metadata:type_name -> ProductResponse.SalesChannel.MetadataEntry
2835
- 24, // 18: ProductResponse.Type.metadata:type_name -> ProductResponse.Type.MetadataEntry
2836
- 14, // 19: ProductResponse.Category.children:type_name -> ProductResponse.Category
2837
- 25, // 20: ProductResponse.Category.metadata:type_name -> ProductResponse.Category.MetadataEntry
2838
- 26, // 21: ProductResponse.Collection.metadata:type_name -> ProductResponse.Collection.MetadataEntry
2839
- 27, // 22: ProductResponse.Image.metadata:type_name -> ProductResponse.Image.MetadataEntry
2840
- 19, // 23: ProductResponse.Value.option:type_name -> ProductResponse.Option
2841
- 17, // 24: ProductResponse.OptionData.option_values:type_name -> ProductResponse.Value
2842
- 18, // 25: ProductResponse.Option.option:type_name -> ProductResponse.OptionData
2843
- 17, // 26: ProductResponse.Option.values:type_name -> ProductResponse.Value
2844
- 31, // 27: ProductResponse.ProductVariant.calculated_price:type_name -> ProductResponse.ProductVariant.CalculatedPrice
2845
- 30, // 28: ProductResponse.ProductVariant.inventory_items:type_name -> ProductResponse.ProductVariant.InventoryItem
2846
- 16, // 29: ProductResponse.ProductVariant.images:type_name -> ProductResponse.Image
2847
- 29, // 30: ProductResponse.ProductVariant.options:type_name -> ProductResponse.ProductVariant.Option
2848
- 28, // 31: ProductResponse.ProductVariant.prices:type_name -> ProductResponse.ProductVariant.Price
2849
- 34, // 32: ProductResponse.ShippingProfile.metadata:type_name -> ProductResponse.ShippingProfile.MetadataEntry
2850
- 32, // 33: ProductResponse.ProductVariant.Price.rules:type_name -> ProductResponse.ProductVariant.Price.Rule
2851
- 18, // 34: ProductResponse.ProductVariant.Option.option:type_name -> ProductResponse.OptionData
2852
- 33, // 35: ProductResponse.ProductVariant.InventoryItem.inventory:type_name -> ProductResponse.ProductVariant.InventoryItem.InventoryItemData
2853
- 28, // 36: ProductResponse.ProductVariant.CalculatedPrice.calculated_price:type_name -> ProductResponse.ProductVariant.Price
2854
- 28, // 37: ProductResponse.ProductVariant.CalculatedPrice.original_price:type_name -> ProductResponse.ProductVariant.Price
2855
- 2, // 38: ProductResponse.ProductVariant.Price.Rule.entity_type:type_name -> ProductResponse.ProductVariant.Price.Rule.Type
2856
- 39, // [39:39] is the sub-list for method output_type
2857
- 39, // [39:39] is the sub-list for method input_type
2858
- 39, // [39:39] is the sub-list for extension type_name
2859
- 39, // [39:39] is the sub-list for extension extendee
2860
- 0, // [0:39] is the sub-list for field type_name
2861
- }
2862
-
2863
- func init() { file_src_proto_products_v1_entities_product_shared_proto_init() }
2864
- func file_src_proto_products_v1_entities_product_shared_proto_init() {
2865
- if File_src_proto_products_v1_entities_product_shared_proto != nil {
2866
- return
2867
- }
2868
- file_src_proto_products_v1_entities_product_shared_proto_msgTypes[1].OneofWrappers = []any{}
2869
- file_src_proto_products_v1_entities_product_shared_proto_msgTypes[11].OneofWrappers = []any{}
2870
- file_src_proto_products_v1_entities_product_shared_proto_msgTypes[14].OneofWrappers = []any{}
2871
- file_src_proto_products_v1_entities_product_shared_proto_msgTypes[28].OneofWrappers = []any{}
2872
- type x struct{}
2873
- out := protoimpl.TypeBuilder{
2874
- File: protoimpl.DescBuilder{
2875
- GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
2876
- RawDescriptor: unsafe.Slice(unsafe.StringData(file_src_proto_products_v1_entities_product_shared_proto_rawDesc), len(file_src_proto_products_v1_entities_product_shared_proto_rawDesc)),
2877
- NumEnums: 3,
2878
- NumMessages: 32,
2879
- NumExtensions: 0,
2880
- NumServices: 0,
2881
- },
2882
- GoTypes: file_src_proto_products_v1_entities_product_shared_proto_goTypes,
2883
- DependencyIndexes: file_src_proto_products_v1_entities_product_shared_proto_depIdxs,
2884
- EnumInfos: file_src_proto_products_v1_entities_product_shared_proto_enumTypes,
2885
- MessageInfos: file_src_proto_products_v1_entities_product_shared_proto_msgTypes,
2886
- }.Build()
2887
- File_src_proto_products_v1_entities_product_shared_proto = out.File
2888
- file_src_proto_products_v1_entities_product_shared_proto_goTypes = nil
2889
- file_src_proto_products_v1_entities_product_shared_proto_depIdxs = nil
2890
- }