@paakd/api 0.0.1 → 0.0.2

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 (201) hide show
  1. package/buf/validate/validate_pb.ts +5001 -0
  2. package/dist/gen/buf/validate/validate_pb.d.ts +4634 -0
  3. package/dist/gen/buf/validate/validate_pb.d.ts.map +1 -0
  4. package/dist/gen/buf/validate/validate_pb.js +414 -0
  5. package/dist/gen/src/proto/auth/v1/entities/auth_pb.d.ts +268 -0
  6. package/dist/gen/src/proto/auth/v1/entities/auth_pb.d.ts.map +1 -0
  7. package/dist/gen/src/proto/auth/v1/entities/auth_pb.js +120 -0
  8. package/dist/gen/src/proto/auth/v1/entities/policy_pb.d.ts +235 -0
  9. package/dist/gen/src/proto/auth/v1/entities/policy_pb.d.ts.map +1 -0
  10. package/dist/gen/src/proto/auth/v1/entities/policy_pb.js +98 -0
  11. package/dist/gen/src/proto/auth/v1/service_pb.d.ts +117 -0
  12. package/dist/gen/src/proto/auth/v1/service_pb.d.ts.map +1 -0
  13. package/dist/gen/src/proto/auth/v1/service_pb.js +22 -0
  14. package/dist/gen/src/proto/customers/v1/entities/address_pb.d.ts +371 -0
  15. package/dist/gen/src/proto/customers/v1/entities/address_pb.d.ts.map +1 -0
  16. package/dist/gen/src/proto/customers/v1/entities/address_pb.js +84 -0
  17. package/dist/gen/src/proto/customers/v1/entities/profile_pb.d.ts +189 -0
  18. package/dist/gen/src/proto/customers/v1/entities/profile_pb.d.ts.map +1 -0
  19. package/dist/gen/src/proto/customers/v1/entities/profile_pb.js +70 -0
  20. package/dist/gen/src/proto/customers/v1/service_pb.d.ts +85 -0
  21. package/dist/gen/src/proto/customers/v1/service_pb.d.ts.map +1 -0
  22. package/dist/gen/src/proto/customers/v1/service_pb.js +22 -0
  23. package/dist/gen/src/proto/products/v1/entities/category_pb.d.ts +234 -0
  24. package/dist/gen/src/proto/products/v1/entities/category_pb.d.ts.map +1 -0
  25. package/dist/gen/src/proto/products/v1/entities/category_pb.js +84 -0
  26. package/dist/gen/src/proto/products/v1/entities/collection_pb.d.ts +159 -0
  27. package/dist/gen/src/proto/products/v1/entities/collection_pb.d.ts.map +1 -0
  28. package/dist/gen/src/proto/products/v1/entities/collection_pb.js +70 -0
  29. package/dist/gen/src/proto/products/v1/entities/product/create_pb.d.ts +146 -0
  30. package/dist/gen/src/proto/products/v1/entities/product/create_pb.d.ts.map +1 -0
  31. package/dist/gen/src/proto/products/v1/entities/product/create_pb.js +32 -0
  32. package/dist/gen/src/proto/products/v1/entities/product/option_pb.d.ts +50 -0
  33. package/dist/gen/src/proto/products/v1/entities/product/option_pb.d.ts.map +1 -0
  34. package/dist/gen/src/proto/products/v1/entities/product/option_pb.js +32 -0
  35. package/dist/gen/src/proto/products/v1/entities/product/shared_pb.d.ts +1042 -0
  36. package/dist/gen/src/proto/products/v1/entities/product/shared_pb.d.ts.map +1 -0
  37. package/dist/gen/src/proto/products/v1/entities/product/shared_pb.js +258 -0
  38. package/dist/gen/src/proto/products/v1/entities/product/update_pb.d.ts +236 -0
  39. package/dist/gen/src/proto/products/v1/entities/product/update_pb.d.ts.map +1 -0
  40. package/dist/gen/src/proto/products/v1/entities/product/update_pb.js +88 -0
  41. package/dist/gen/src/proto/products/v1/entities/tag_pb.d.ts +175 -0
  42. package/dist/gen/src/proto/products/v1/entities/tag_pb.d.ts.map +1 -0
  43. package/dist/gen/src/proto/products/v1/entities/tag_pb.js +84 -0
  44. package/dist/gen/src/proto/products/v1/entities/taxonomy_pb.d.ts +477 -0
  45. package/dist/gen/src/proto/products/v1/entities/taxonomy_pb.d.ts.map +1 -0
  46. package/dist/gen/src/proto/products/v1/entities/taxonomy_pb.js +235 -0
  47. package/dist/gen/src/proto/products/v1/entities/type_pb.d.ts +158 -0
  48. package/dist/gen/src/proto/products/v1/entities/type_pb.d.ts.map +1 -0
  49. package/dist/gen/src/proto/products/v1/entities/type_pb.js +70 -0
  50. package/dist/gen/src/proto/products/v1/entities/variant_pb.d.ts +489 -0
  51. package/dist/gen/src/proto/products/v1/entities/variant_pb.d.ts.map +1 -0
  52. package/dist/gen/src/proto/products/v1/entities/variant_pb.js +147 -0
  53. package/dist/gen/src/proto/products/v1/service_pb.d.ts +316 -0
  54. package/dist/gen/src/proto/products/v1/service_pb.d.ts.map +1 -0
  55. package/dist/gen/src/proto/products/v1/service_pb.js +36 -0
  56. package/dist/src/address.d.ts +53 -0
  57. package/dist/src/address.d.ts.map +1 -0
  58. package/dist/src/address.js +233 -0
  59. package/dist/src/address.spec.d.ts +2 -0
  60. package/dist/src/address.spec.d.ts.map +1 -0
  61. package/dist/src/address.spec.js +488 -0
  62. package/dist/src/auth.d.ts +27 -0
  63. package/dist/src/auth.d.ts.map +1 -0
  64. package/dist/src/auth.js +155 -0
  65. package/dist/src/auth.spec.d.ts +2 -0
  66. package/dist/src/auth.spec.d.ts.map +1 -0
  67. package/dist/src/auth.spec.js +582 -0
  68. package/dist/src/compressor/brotli.d.ts +3 -0
  69. package/dist/src/compressor/brotli.d.ts.map +1 -0
  70. package/dist/src/compressor/brotli.js +30 -0
  71. package/dist/src/index.d.ts +6 -0
  72. package/dist/src/index.d.ts.map +1 -0
  73. package/dist/src/interceptors.d.ts +16 -0
  74. package/dist/src/interceptors.d.ts.map +1 -0
  75. package/dist/src/interceptors.js +156 -0
  76. package/dist/src/interceptors.spec.d.ts +2 -0
  77. package/dist/src/interceptors.spec.d.ts.map +1 -0
  78. package/dist/src/interceptors.spec.js +1063 -0
  79. package/dist/src/policies.d.ts +217 -0
  80. package/dist/src/policies.d.ts.map +1 -0
  81. package/dist/src/policies.js +322 -0
  82. package/dist/src/policies.spec.d.ts +2 -0
  83. package/dist/src/policies.spec.d.ts.map +1 -0
  84. package/dist/src/policies.spec.js +463 -0
  85. package/dist/src/products.d.ts +39 -0
  86. package/dist/src/products.d.ts.map +1 -0
  87. package/dist/src/products.js +95 -0
  88. package/dist/src/products.spec.d.ts +2 -0
  89. package/dist/src/products.spec.d.ts.map +1 -0
  90. package/dist/src/products.spec.js +519 -0
  91. package/dist/src/profile.d.ts +62 -0
  92. package/dist/src/profile.d.ts.map +1 -0
  93. package/dist/src/profile.js +151 -0
  94. package/dist/src/profile.spec.d.ts +2 -0
  95. package/dist/src/profile.spec.d.ts.map +1 -0
  96. package/dist/src/profile.spec.js +475 -0
  97. package/dist/src/registration.d.ts +60 -0
  98. package/dist/src/registration.d.ts.map +1 -0
  99. package/dist/src/registration.js +147 -0
  100. package/dist/src/test-utils.d.ts +87 -0
  101. package/dist/src/test-utils.d.ts.map +1 -0
  102. package/dist/src/test-utils.js +132 -0
  103. package/gen/buf/validate/validate_pb.ts +4799 -0
  104. package/gen/src/proto/auth/v1/authv1connect/service.connect.go +454 -0
  105. package/gen/src/proto/auth/v1/entities/auth.pb.go +818 -0
  106. package/gen/src/proto/auth/v1/entities/auth_pb.ts +348 -0
  107. package/gen/src/proto/auth/v1/entities/policy.pb.go +727 -0
  108. package/gen/src/proto/auth/v1/entities/policy_pb.ts +306 -0
  109. package/gen/src/proto/auth/v1/service-AuthService_connectquery.ts +70 -0
  110. package/gen/src/proto/auth/v1/service.pb.go +119 -0
  111. package/gen/src/proto/auth/v1/service_pb.ts +152 -0
  112. package/gen/src/proto/customers/v1/customersv1connect/service.connect.go +358 -0
  113. package/gen/src/proto/customers/v1/entities/address.pb.go +1073 -0
  114. package/gen/src/proto/customers/v1/entities/address_pb.ts +478 -0
  115. package/gen/src/proto/customers/v1/entities/profile.pb.go +633 -0
  116. package/gen/src/proto/customers/v1/entities/profile_pb.ts +252 -0
  117. package/gen/src/proto/customers/v1/service-CustomerService_connectquery.ts +50 -0
  118. package/gen/src/proto/customers/v1/service.pb.go +110 -0
  119. package/gen/src/proto/customers/v1/service_pb.ts +121 -0
  120. package/gen/src/proto/files/v1/entities/file.pb.go +669 -0
  121. package/gen/src/proto/files/v1/entities/file_pb.ts +265 -0
  122. package/gen/src/proto/files/v1/filesv1connect/service.connect.go +200 -0
  123. package/gen/src/proto/files/v1/service-FileService_connectquery.ts +25 -0
  124. package/gen/src/proto/files/v1/service.pb.go +85 -0
  125. package/gen/src/proto/files/v1/service_pb.ts +65 -0
  126. package/gen/src/proto/products/v1/entities/category.pb.go +744 -0
  127. package/gen/src/proto/products/v1/entities/category_pb.ts +318 -0
  128. package/gen/src/proto/products/v1/entities/collection.pb.go +528 -0
  129. package/gen/src/proto/products/v1/entities/collection_pb.ts +214 -0
  130. package/gen/src/proto/products/v1/entities/product/create.pb.go +453 -0
  131. package/gen/src/proto/products/v1/entities/product/create_pb.ts +199 -0
  132. package/gen/src/proto/products/v1/entities/product/option.pb.go +206 -0
  133. package/gen/src/proto/products/v1/entities/product/option_pb.ts +74 -0
  134. package/gen/src/proto/products/v1/entities/product/shared.pb.go +2890 -0
  135. package/gen/src/proto/products/v1/entities/product/shared_pb.ts +1317 -0
  136. package/gen/src/proto/products/v1/entities/product/update.pb.go +794 -0
  137. package/gen/src/proto/products/v1/entities/product/update_pb.ts +325 -0
  138. package/gen/src/proto/products/v1/entities/tag.pb.go +610 -0
  139. package/gen/src/proto/products/v1/entities/tag_pb.ts +233 -0
  140. package/gen/src/proto/products/v1/entities/taxonomy.pb.go +1352 -0
  141. package/gen/src/proto/products/v1/entities/taxonomy_pb.ts +606 -0
  142. package/gen/src/proto/products/v1/entities/type.pb.go +553 -0
  143. package/gen/src/proto/products/v1/entities/type_pb.ts +215 -0
  144. package/gen/src/proto/products/v1/entities/variant.pb.go +1474 -0
  145. package/gen/src/proto/products/v1/entities/variant_pb.ts +629 -0
  146. package/gen/src/proto/products/v1/productsv1connect/service.connect.go +1195 -0
  147. package/gen/src/proto/products/v1/service-ProductsService_connectquery.ts +199 -0
  148. package/gen/src/proto/products/v1/service.pb.go +250 -0
  149. package/gen/src/proto/products/v1/service_pb.ts +429 -0
  150. package/gen/src/proto/promotions/v1/entities/campaign.pb.go +1229 -0
  151. package/gen/src/proto/promotions/v1/entities/campaign_pb.ts +511 -0
  152. package/gen/src/proto/promotions/v1/promotionsv1connect/service.connect.go +289 -0
  153. package/gen/src/proto/promotions/v1/service-CampaignService_connectquery.ts +42 -0
  154. package/gen/src/proto/promotions/v1/service.pb.go +98 -0
  155. package/gen/src/proto/promotions/v1/service_pb.ts +95 -0
  156. package/gen/src/proto/stocknodes/v1/entities/stocknode.pb.go +1499 -0
  157. package/gen/src/proto/stocknodes/v1/entities/stocknode_pb.ts +655 -0
  158. package/gen/src/proto/stocknodes/v1/service-StockNodesService_connectquery.ts +41 -0
  159. package/gen/src/proto/stocknodes/v1/service.pb.go +98 -0
  160. package/gen/src/proto/stocknodes/v1/service_pb.ts +95 -0
  161. package/gen/src/proto/stocknodes/v1/stocknodesv1connect/service.connect.go +297 -0
  162. package/package.json +5 -2
  163. package/src/address.spec.ts +0 -662
  164. package/src/address.ts +0 -300
  165. package/src/auth.spec.ts +0 -771
  166. package/src/auth.ts +0 -168
  167. package/src/compressor/brotli.ts +0 -26
  168. package/src/index.ts +0 -5
  169. package/src/interceptors.spec.ts +0 -1343
  170. package/src/interceptors.ts +0 -224
  171. package/src/policies.spec.ts +0 -595
  172. package/src/policies.ts +0 -431
  173. package/src/products.spec.ts +0 -710
  174. package/src/products.ts +0 -112
  175. package/src/profile.spec.ts +0 -626
  176. package/src/profile.ts +0 -169
  177. package/src/proto/auth/v1/entities/auth.proto +0 -140
  178. package/src/proto/auth/v1/entities/policy.proto +0 -57
  179. package/src/proto/auth/v1/service.proto +0 -26
  180. package/src/proto/customers/v1/entities/address.proto +0 -101
  181. package/src/proto/customers/v1/entities/profile.proto +0 -118
  182. package/src/proto/customers/v1/service.proto +0 -36
  183. package/src/proto/files/v1/entities/file.proto +0 -62
  184. package/src/proto/files/v1/service.proto +0 -19
  185. package/src/proto/products/v1/entities/category.proto +0 -98
  186. package/src/proto/products/v1/entities/collection.proto +0 -72
  187. package/src/proto/products/v1/entities/product/create.proto +0 -41
  188. package/src/proto/products/v1/entities/product/option.proto +0 -17
  189. package/src/proto/products/v1/entities/product/shared.proto +0 -255
  190. package/src/proto/products/v1/entities/product/update.proto +0 -66
  191. package/src/proto/products/v1/entities/tag.proto +0 -73
  192. package/src/proto/products/v1/entities/taxonomy.proto +0 -146
  193. package/src/proto/products/v1/entities/type.proto +0 -98
  194. package/src/proto/products/v1/entities/variant.proto +0 -127
  195. package/src/proto/products/v1/service.proto +0 -78
  196. package/src/proto/promotions/v1/entities/campaign.proto +0 -145
  197. package/src/proto/promotions/v1/service.proto +0 -17
  198. package/src/proto/stocknodes/v1/entities/stocknode.proto +0 -167
  199. package/src/proto/stocknodes/v1/service.proto +0 -21
  200. package/src/registration.ts +0 -170
  201. package/src/test-utils.ts +0 -176
@@ -0,0 +1,794 @@
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/update.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 UpdateProductRequest struct {
26
+ state protoimpl.MessageState `protogen:"open.v1"`
27
+ Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
28
+ Title *string `protobuf:"bytes,2,opt,name=title,proto3,oneof" json:"title,omitempty"`
29
+ Subtitle *string `protobuf:"bytes,3,opt,name=subtitle,proto3,oneof" json:"subtitle,omitempty"`
30
+ Description *string `protobuf:"bytes,4,opt,name=description,proto3,oneof" json:"description,omitempty"`
31
+ IsGiftcard *bool `protobuf:"varint,5,opt,name=is_giftcard,json=isGiftcard,proto3,oneof" json:"is_giftcard,omitempty"`
32
+ IsDiscountable *bool `protobuf:"varint,6,opt,name=is_discountable,json=isDiscountable,proto3,oneof" json:"is_discountable,omitempty"`
33
+ Thumbnail *string `protobuf:"bytes,7,opt,name=thumbnail,proto3,oneof" json:"thumbnail,omitempty"`
34
+ Slug *string `protobuf:"bytes,8,opt,name=slug,proto3,oneof" json:"slug,omitempty"`
35
+ Status *ProductStatus `protobuf:"varint,9,opt,name=status,proto3,enum=ProductStatus,oneof" json:"status,omitempty"`
36
+ Weight *float32 `protobuf:"fixed32,10,opt,name=weight,proto3,oneof" json:"weight,omitempty"`
37
+ Height *float32 `protobuf:"fixed32,11,opt,name=height,proto3,oneof" json:"height,omitempty"`
38
+ Width *float32 `protobuf:"fixed32,12,opt,name=width,proto3,oneof" json:"width,omitempty"`
39
+ Length *float32 `protobuf:"fixed32,13,opt,name=length,proto3,oneof" json:"length,omitempty"`
40
+ HsCode *string `protobuf:"bytes,14,opt,name=hs_code,json=hsCode,proto3,oneof" json:"hs_code,omitempty"`
41
+ MidCode *string `protobuf:"bytes,15,opt,name=mid_code,json=midCode,proto3,oneof" json:"mid_code,omitempty"`
42
+ OriginCountry *string `protobuf:"bytes,16,opt,name=origin_country,json=originCountry,proto3,oneof" json:"origin_country,omitempty"`
43
+ Material *string `protobuf:"bytes,17,opt,name=material,proto3,oneof" json:"material,omitempty"`
44
+ ExternalId *string `protobuf:"bytes,18,opt,name=external_id,json=externalId,proto3,oneof" json:"external_id,omitempty"`
45
+ Images []string `protobuf:"bytes,19,rep,name=images,proto3" json:"images,omitempty"`
46
+ Tags []string `protobuf:"bytes,20,rep,name=tags,proto3" json:"tags,omitempty"`
47
+ Categories []string `protobuf:"bytes,21,rep,name=categories,proto3" json:"categories,omitempty"`
48
+ SalesChannels []string `protobuf:"bytes,22,rep,name=sales_channels,json=salesChannels,proto3" json:"sales_channels,omitempty"`
49
+ Options []*ProductOption `protobuf:"bytes,23,rep,name=options,proto3" json:"options,omitempty"`
50
+ Variants []*Variant `protobuf:"bytes,24,rep,name=variants,proto3" json:"variants,omitempty"`
51
+ unknownFields protoimpl.UnknownFields
52
+ sizeCache protoimpl.SizeCache
53
+ }
54
+
55
+ func (x *UpdateProductRequest) Reset() {
56
+ *x = UpdateProductRequest{}
57
+ mi := &file_src_proto_products_v1_entities_product_update_proto_msgTypes[0]
58
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
59
+ ms.StoreMessageInfo(mi)
60
+ }
61
+
62
+ func (x *UpdateProductRequest) String() string {
63
+ return protoimpl.X.MessageStringOf(x)
64
+ }
65
+
66
+ func (*UpdateProductRequest) ProtoMessage() {}
67
+
68
+ func (x *UpdateProductRequest) ProtoReflect() protoreflect.Message {
69
+ mi := &file_src_proto_products_v1_entities_product_update_proto_msgTypes[0]
70
+ if x != nil {
71
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
72
+ if ms.LoadMessageInfo() == nil {
73
+ ms.StoreMessageInfo(mi)
74
+ }
75
+ return ms
76
+ }
77
+ return mi.MessageOf(x)
78
+ }
79
+
80
+ // Deprecated: Use UpdateProductRequest.ProtoReflect.Descriptor instead.
81
+ func (*UpdateProductRequest) Descriptor() ([]byte, []int) {
82
+ return file_src_proto_products_v1_entities_product_update_proto_rawDescGZIP(), []int{0}
83
+ }
84
+
85
+ func (x *UpdateProductRequest) GetId() string {
86
+ if x != nil {
87
+ return x.Id
88
+ }
89
+ return ""
90
+ }
91
+
92
+ func (x *UpdateProductRequest) GetTitle() string {
93
+ if x != nil && x.Title != nil {
94
+ return *x.Title
95
+ }
96
+ return ""
97
+ }
98
+
99
+ func (x *UpdateProductRequest) GetSubtitle() string {
100
+ if x != nil && x.Subtitle != nil {
101
+ return *x.Subtitle
102
+ }
103
+ return ""
104
+ }
105
+
106
+ func (x *UpdateProductRequest) GetDescription() string {
107
+ if x != nil && x.Description != nil {
108
+ return *x.Description
109
+ }
110
+ return ""
111
+ }
112
+
113
+ func (x *UpdateProductRequest) GetIsGiftcard() bool {
114
+ if x != nil && x.IsGiftcard != nil {
115
+ return *x.IsGiftcard
116
+ }
117
+ return false
118
+ }
119
+
120
+ func (x *UpdateProductRequest) GetIsDiscountable() bool {
121
+ if x != nil && x.IsDiscountable != nil {
122
+ return *x.IsDiscountable
123
+ }
124
+ return false
125
+ }
126
+
127
+ func (x *UpdateProductRequest) GetThumbnail() string {
128
+ if x != nil && x.Thumbnail != nil {
129
+ return *x.Thumbnail
130
+ }
131
+ return ""
132
+ }
133
+
134
+ func (x *UpdateProductRequest) GetSlug() string {
135
+ if x != nil && x.Slug != nil {
136
+ return *x.Slug
137
+ }
138
+ return ""
139
+ }
140
+
141
+ func (x *UpdateProductRequest) GetStatus() ProductStatus {
142
+ if x != nil && x.Status != nil {
143
+ return *x.Status
144
+ }
145
+ return ProductStatus_DRAFT
146
+ }
147
+
148
+ func (x *UpdateProductRequest) GetWeight() float32 {
149
+ if x != nil && x.Weight != nil {
150
+ return *x.Weight
151
+ }
152
+ return 0
153
+ }
154
+
155
+ func (x *UpdateProductRequest) GetHeight() float32 {
156
+ if x != nil && x.Height != nil {
157
+ return *x.Height
158
+ }
159
+ return 0
160
+ }
161
+
162
+ func (x *UpdateProductRequest) GetWidth() float32 {
163
+ if x != nil && x.Width != nil {
164
+ return *x.Width
165
+ }
166
+ return 0
167
+ }
168
+
169
+ func (x *UpdateProductRequest) GetLength() float32 {
170
+ if x != nil && x.Length != nil {
171
+ return *x.Length
172
+ }
173
+ return 0
174
+ }
175
+
176
+ func (x *UpdateProductRequest) GetHsCode() string {
177
+ if x != nil && x.HsCode != nil {
178
+ return *x.HsCode
179
+ }
180
+ return ""
181
+ }
182
+
183
+ func (x *UpdateProductRequest) GetMidCode() string {
184
+ if x != nil && x.MidCode != nil {
185
+ return *x.MidCode
186
+ }
187
+ return ""
188
+ }
189
+
190
+ func (x *UpdateProductRequest) GetOriginCountry() string {
191
+ if x != nil && x.OriginCountry != nil {
192
+ return *x.OriginCountry
193
+ }
194
+ return ""
195
+ }
196
+
197
+ func (x *UpdateProductRequest) GetMaterial() string {
198
+ if x != nil && x.Material != nil {
199
+ return *x.Material
200
+ }
201
+ return ""
202
+ }
203
+
204
+ func (x *UpdateProductRequest) GetExternalId() string {
205
+ if x != nil && x.ExternalId != nil {
206
+ return *x.ExternalId
207
+ }
208
+ return ""
209
+ }
210
+
211
+ func (x *UpdateProductRequest) GetImages() []string {
212
+ if x != nil {
213
+ return x.Images
214
+ }
215
+ return nil
216
+ }
217
+
218
+ func (x *UpdateProductRequest) GetTags() []string {
219
+ if x != nil {
220
+ return x.Tags
221
+ }
222
+ return nil
223
+ }
224
+
225
+ func (x *UpdateProductRequest) GetCategories() []string {
226
+ if x != nil {
227
+ return x.Categories
228
+ }
229
+ return nil
230
+ }
231
+
232
+ func (x *UpdateProductRequest) GetSalesChannels() []string {
233
+ if x != nil {
234
+ return x.SalesChannels
235
+ }
236
+ return nil
237
+ }
238
+
239
+ func (x *UpdateProductRequest) GetOptions() []*ProductOption {
240
+ if x != nil {
241
+ return x.Options
242
+ }
243
+ return nil
244
+ }
245
+
246
+ func (x *UpdateProductRequest) GetVariants() []*Variant {
247
+ if x != nil {
248
+ return x.Variants
249
+ }
250
+ return nil
251
+ }
252
+
253
+ type UpdateProductResponse struct {
254
+ state protoimpl.MessageState `protogen:"open.v1"`
255
+ Product *ProductResponse `protobuf:"bytes,1,opt,name=product,proto3" json:"product,omitempty"`
256
+ unknownFields protoimpl.UnknownFields
257
+ sizeCache protoimpl.SizeCache
258
+ }
259
+
260
+ func (x *UpdateProductResponse) Reset() {
261
+ *x = UpdateProductResponse{}
262
+ mi := &file_src_proto_products_v1_entities_product_update_proto_msgTypes[1]
263
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
264
+ ms.StoreMessageInfo(mi)
265
+ }
266
+
267
+ func (x *UpdateProductResponse) String() string {
268
+ return protoimpl.X.MessageStringOf(x)
269
+ }
270
+
271
+ func (*UpdateProductResponse) ProtoMessage() {}
272
+
273
+ func (x *UpdateProductResponse) ProtoReflect() protoreflect.Message {
274
+ mi := &file_src_proto_products_v1_entities_product_update_proto_msgTypes[1]
275
+ if x != nil {
276
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
277
+ if ms.LoadMessageInfo() == nil {
278
+ ms.StoreMessageInfo(mi)
279
+ }
280
+ return ms
281
+ }
282
+ return mi.MessageOf(x)
283
+ }
284
+
285
+ // Deprecated: Use UpdateProductResponse.ProtoReflect.Descriptor instead.
286
+ func (*UpdateProductResponse) Descriptor() ([]byte, []int) {
287
+ return file_src_proto_products_v1_entities_product_update_proto_rawDescGZIP(), []int{1}
288
+ }
289
+
290
+ func (x *UpdateProductResponse) GetProduct() *ProductResponse {
291
+ if x != nil {
292
+ return x.Product
293
+ }
294
+ return nil
295
+ }
296
+
297
+ type DeleteProductRequest struct {
298
+ state protoimpl.MessageState `protogen:"open.v1"`
299
+ ProductId string `protobuf:"bytes,1,opt,name=product_id,json=productId,proto3" json:"product_id,omitempty"`
300
+ unknownFields protoimpl.UnknownFields
301
+ sizeCache protoimpl.SizeCache
302
+ }
303
+
304
+ func (x *DeleteProductRequest) Reset() {
305
+ *x = DeleteProductRequest{}
306
+ mi := &file_src_proto_products_v1_entities_product_update_proto_msgTypes[2]
307
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
308
+ ms.StoreMessageInfo(mi)
309
+ }
310
+
311
+ func (x *DeleteProductRequest) String() string {
312
+ return protoimpl.X.MessageStringOf(x)
313
+ }
314
+
315
+ func (*DeleteProductRequest) ProtoMessage() {}
316
+
317
+ func (x *DeleteProductRequest) ProtoReflect() protoreflect.Message {
318
+ mi := &file_src_proto_products_v1_entities_product_update_proto_msgTypes[2]
319
+ if x != nil {
320
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
321
+ if ms.LoadMessageInfo() == nil {
322
+ ms.StoreMessageInfo(mi)
323
+ }
324
+ return ms
325
+ }
326
+ return mi.MessageOf(x)
327
+ }
328
+
329
+ // Deprecated: Use DeleteProductRequest.ProtoReflect.Descriptor instead.
330
+ func (*DeleteProductRequest) Descriptor() ([]byte, []int) {
331
+ return file_src_proto_products_v1_entities_product_update_proto_rawDescGZIP(), []int{2}
332
+ }
333
+
334
+ func (x *DeleteProductRequest) GetProductId() string {
335
+ if x != nil {
336
+ return x.ProductId
337
+ }
338
+ return ""
339
+ }
340
+
341
+ type DeleteProductResponse struct {
342
+ state protoimpl.MessageState `protogen:"open.v1"`
343
+ unknownFields protoimpl.UnknownFields
344
+ sizeCache protoimpl.SizeCache
345
+ }
346
+
347
+ func (x *DeleteProductResponse) Reset() {
348
+ *x = DeleteProductResponse{}
349
+ mi := &file_src_proto_products_v1_entities_product_update_proto_msgTypes[3]
350
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
351
+ ms.StoreMessageInfo(mi)
352
+ }
353
+
354
+ func (x *DeleteProductResponse) String() string {
355
+ return protoimpl.X.MessageStringOf(x)
356
+ }
357
+
358
+ func (*DeleteProductResponse) ProtoMessage() {}
359
+
360
+ func (x *DeleteProductResponse) ProtoReflect() protoreflect.Message {
361
+ mi := &file_src_proto_products_v1_entities_product_update_proto_msgTypes[3]
362
+ if x != nil {
363
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
364
+ if ms.LoadMessageInfo() == nil {
365
+ ms.StoreMessageInfo(mi)
366
+ }
367
+ return ms
368
+ }
369
+ return mi.MessageOf(x)
370
+ }
371
+
372
+ // Deprecated: Use DeleteProductResponse.ProtoReflect.Descriptor instead.
373
+ func (*DeleteProductResponse) Descriptor() ([]byte, []int) {
374
+ return file_src_proto_products_v1_entities_product_update_proto_rawDescGZIP(), []int{3}
375
+ }
376
+
377
+ type DeleteVariantRequest struct {
378
+ state protoimpl.MessageState `protogen:"open.v1"`
379
+ VariantId string `protobuf:"bytes,1,opt,name=variant_id,json=variantId,proto3" json:"variant_id,omitempty"`
380
+ ProductId string `protobuf:"bytes,2,opt,name=product_id,json=productId,proto3" json:"product_id,omitempty"`
381
+ unknownFields protoimpl.UnknownFields
382
+ sizeCache protoimpl.SizeCache
383
+ }
384
+
385
+ func (x *DeleteVariantRequest) Reset() {
386
+ *x = DeleteVariantRequest{}
387
+ mi := &file_src_proto_products_v1_entities_product_update_proto_msgTypes[4]
388
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
389
+ ms.StoreMessageInfo(mi)
390
+ }
391
+
392
+ func (x *DeleteVariantRequest) String() string {
393
+ return protoimpl.X.MessageStringOf(x)
394
+ }
395
+
396
+ func (*DeleteVariantRequest) ProtoMessage() {}
397
+
398
+ func (x *DeleteVariantRequest) ProtoReflect() protoreflect.Message {
399
+ mi := &file_src_proto_products_v1_entities_product_update_proto_msgTypes[4]
400
+ if x != nil {
401
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
402
+ if ms.LoadMessageInfo() == nil {
403
+ ms.StoreMessageInfo(mi)
404
+ }
405
+ return ms
406
+ }
407
+ return mi.MessageOf(x)
408
+ }
409
+
410
+ // Deprecated: Use DeleteVariantRequest.ProtoReflect.Descriptor instead.
411
+ func (*DeleteVariantRequest) Descriptor() ([]byte, []int) {
412
+ return file_src_proto_products_v1_entities_product_update_proto_rawDescGZIP(), []int{4}
413
+ }
414
+
415
+ func (x *DeleteVariantRequest) GetVariantId() string {
416
+ if x != nil {
417
+ return x.VariantId
418
+ }
419
+ return ""
420
+ }
421
+
422
+ func (x *DeleteVariantRequest) GetProductId() string {
423
+ if x != nil {
424
+ return x.ProductId
425
+ }
426
+ return ""
427
+ }
428
+
429
+ type DeleteVariantResponse struct {
430
+ state protoimpl.MessageState `protogen:"open.v1"`
431
+ unknownFields protoimpl.UnknownFields
432
+ sizeCache protoimpl.SizeCache
433
+ }
434
+
435
+ func (x *DeleteVariantResponse) Reset() {
436
+ *x = DeleteVariantResponse{}
437
+ mi := &file_src_proto_products_v1_entities_product_update_proto_msgTypes[5]
438
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
439
+ ms.StoreMessageInfo(mi)
440
+ }
441
+
442
+ func (x *DeleteVariantResponse) String() string {
443
+ return protoimpl.X.MessageStringOf(x)
444
+ }
445
+
446
+ func (*DeleteVariantResponse) ProtoMessage() {}
447
+
448
+ func (x *DeleteVariantResponse) ProtoReflect() protoreflect.Message {
449
+ mi := &file_src_proto_products_v1_entities_product_update_proto_msgTypes[5]
450
+ if x != nil {
451
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
452
+ if ms.LoadMessageInfo() == nil {
453
+ ms.StoreMessageInfo(mi)
454
+ }
455
+ return ms
456
+ }
457
+ return mi.MessageOf(x)
458
+ }
459
+
460
+ // Deprecated: Use DeleteVariantResponse.ProtoReflect.Descriptor instead.
461
+ func (*DeleteVariantResponse) Descriptor() ([]byte, []int) {
462
+ return file_src_proto_products_v1_entities_product_update_proto_rawDescGZIP(), []int{5}
463
+ }
464
+
465
+ type DeleteOptionRequest struct {
466
+ state protoimpl.MessageState `protogen:"open.v1"`
467
+ OptionId string `protobuf:"bytes,1,opt,name=option_id,json=optionId,proto3" json:"option_id,omitempty"`
468
+ ProductId string `protobuf:"bytes,2,opt,name=product_id,json=productId,proto3" json:"product_id,omitempty"`
469
+ unknownFields protoimpl.UnknownFields
470
+ sizeCache protoimpl.SizeCache
471
+ }
472
+
473
+ func (x *DeleteOptionRequest) Reset() {
474
+ *x = DeleteOptionRequest{}
475
+ mi := &file_src_proto_products_v1_entities_product_update_proto_msgTypes[6]
476
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
477
+ ms.StoreMessageInfo(mi)
478
+ }
479
+
480
+ func (x *DeleteOptionRequest) String() string {
481
+ return protoimpl.X.MessageStringOf(x)
482
+ }
483
+
484
+ func (*DeleteOptionRequest) ProtoMessage() {}
485
+
486
+ func (x *DeleteOptionRequest) ProtoReflect() protoreflect.Message {
487
+ mi := &file_src_proto_products_v1_entities_product_update_proto_msgTypes[6]
488
+ if x != nil {
489
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
490
+ if ms.LoadMessageInfo() == nil {
491
+ ms.StoreMessageInfo(mi)
492
+ }
493
+ return ms
494
+ }
495
+ return mi.MessageOf(x)
496
+ }
497
+
498
+ // Deprecated: Use DeleteOptionRequest.ProtoReflect.Descriptor instead.
499
+ func (*DeleteOptionRequest) Descriptor() ([]byte, []int) {
500
+ return file_src_proto_products_v1_entities_product_update_proto_rawDescGZIP(), []int{6}
501
+ }
502
+
503
+ func (x *DeleteOptionRequest) GetOptionId() string {
504
+ if x != nil {
505
+ return x.OptionId
506
+ }
507
+ return ""
508
+ }
509
+
510
+ func (x *DeleteOptionRequest) GetProductId() string {
511
+ if x != nil {
512
+ return x.ProductId
513
+ }
514
+ return ""
515
+ }
516
+
517
+ type DeleteOptionResponse struct {
518
+ state protoimpl.MessageState `protogen:"open.v1"`
519
+ unknownFields protoimpl.UnknownFields
520
+ sizeCache protoimpl.SizeCache
521
+ }
522
+
523
+ func (x *DeleteOptionResponse) Reset() {
524
+ *x = DeleteOptionResponse{}
525
+ mi := &file_src_proto_products_v1_entities_product_update_proto_msgTypes[7]
526
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
527
+ ms.StoreMessageInfo(mi)
528
+ }
529
+
530
+ func (x *DeleteOptionResponse) String() string {
531
+ return protoimpl.X.MessageStringOf(x)
532
+ }
533
+
534
+ func (*DeleteOptionResponse) ProtoMessage() {}
535
+
536
+ func (x *DeleteOptionResponse) ProtoReflect() protoreflect.Message {
537
+ mi := &file_src_proto_products_v1_entities_product_update_proto_msgTypes[7]
538
+ if x != nil {
539
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
540
+ if ms.LoadMessageInfo() == nil {
541
+ ms.StoreMessageInfo(mi)
542
+ }
543
+ return ms
544
+ }
545
+ return mi.MessageOf(x)
546
+ }
547
+
548
+ // Deprecated: Use DeleteOptionResponse.ProtoReflect.Descriptor instead.
549
+ func (*DeleteOptionResponse) Descriptor() ([]byte, []int) {
550
+ return file_src_proto_products_v1_entities_product_update_proto_rawDescGZIP(), []int{7}
551
+ }
552
+
553
+ type RemoveInventoryItemRequest struct {
554
+ state protoimpl.MessageState `protogen:"open.v1"`
555
+ InventoryItemId string `protobuf:"bytes,1,opt,name=inventory_item_id,json=inventoryItemId,proto3" json:"inventory_item_id,omitempty"`
556
+ ProductId string `protobuf:"bytes,2,opt,name=product_id,json=productId,proto3" json:"product_id,omitempty"`
557
+ VariantId string `protobuf:"bytes,3,opt,name=variant_id,json=variantId,proto3" json:"variant_id,omitempty"`
558
+ unknownFields protoimpl.UnknownFields
559
+ sizeCache protoimpl.SizeCache
560
+ }
561
+
562
+ func (x *RemoveInventoryItemRequest) Reset() {
563
+ *x = RemoveInventoryItemRequest{}
564
+ mi := &file_src_proto_products_v1_entities_product_update_proto_msgTypes[8]
565
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
566
+ ms.StoreMessageInfo(mi)
567
+ }
568
+
569
+ func (x *RemoveInventoryItemRequest) String() string {
570
+ return protoimpl.X.MessageStringOf(x)
571
+ }
572
+
573
+ func (*RemoveInventoryItemRequest) ProtoMessage() {}
574
+
575
+ func (x *RemoveInventoryItemRequest) ProtoReflect() protoreflect.Message {
576
+ mi := &file_src_proto_products_v1_entities_product_update_proto_msgTypes[8]
577
+ if x != nil {
578
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
579
+ if ms.LoadMessageInfo() == nil {
580
+ ms.StoreMessageInfo(mi)
581
+ }
582
+ return ms
583
+ }
584
+ return mi.MessageOf(x)
585
+ }
586
+
587
+ // Deprecated: Use RemoveInventoryItemRequest.ProtoReflect.Descriptor instead.
588
+ func (*RemoveInventoryItemRequest) Descriptor() ([]byte, []int) {
589
+ return file_src_proto_products_v1_entities_product_update_proto_rawDescGZIP(), []int{8}
590
+ }
591
+
592
+ func (x *RemoveInventoryItemRequest) GetInventoryItemId() string {
593
+ if x != nil {
594
+ return x.InventoryItemId
595
+ }
596
+ return ""
597
+ }
598
+
599
+ func (x *RemoveInventoryItemRequest) GetProductId() string {
600
+ if x != nil {
601
+ return x.ProductId
602
+ }
603
+ return ""
604
+ }
605
+
606
+ func (x *RemoveInventoryItemRequest) GetVariantId() string {
607
+ if x != nil {
608
+ return x.VariantId
609
+ }
610
+ return ""
611
+ }
612
+
613
+ type RemoveInventoryItemResponse struct {
614
+ state protoimpl.MessageState `protogen:"open.v1"`
615
+ unknownFields protoimpl.UnknownFields
616
+ sizeCache protoimpl.SizeCache
617
+ }
618
+
619
+ func (x *RemoveInventoryItemResponse) Reset() {
620
+ *x = RemoveInventoryItemResponse{}
621
+ mi := &file_src_proto_products_v1_entities_product_update_proto_msgTypes[9]
622
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
623
+ ms.StoreMessageInfo(mi)
624
+ }
625
+
626
+ func (x *RemoveInventoryItemResponse) String() string {
627
+ return protoimpl.X.MessageStringOf(x)
628
+ }
629
+
630
+ func (*RemoveInventoryItemResponse) ProtoMessage() {}
631
+
632
+ func (x *RemoveInventoryItemResponse) ProtoReflect() protoreflect.Message {
633
+ mi := &file_src_proto_products_v1_entities_product_update_proto_msgTypes[9]
634
+ if x != nil {
635
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
636
+ if ms.LoadMessageInfo() == nil {
637
+ ms.StoreMessageInfo(mi)
638
+ }
639
+ return ms
640
+ }
641
+ return mi.MessageOf(x)
642
+ }
643
+
644
+ // Deprecated: Use RemoveInventoryItemResponse.ProtoReflect.Descriptor instead.
645
+ func (*RemoveInventoryItemResponse) Descriptor() ([]byte, []int) {
646
+ return file_src_proto_products_v1_entities_product_update_proto_rawDescGZIP(), []int{9}
647
+ }
648
+
649
+ var File_src_proto_products_v1_entities_product_update_proto protoreflect.FileDescriptor
650
+
651
+ const file_src_proto_products_v1_entities_product_update_proto_rawDesc = "" +
652
+ "\n" +
653
+ "3src/proto/products/v1/entities/product/update.proto\x1a\x1bbuf/validate/validate.proto\x1a3src/proto/products/v1/entities/product/shared.proto\"\x8d\b\n" +
654
+ "\x14UpdateProductRequest\x12\x0e\n" +
655
+ "\x02id\x18\x01 \x01(\tR\x02id\x12\x19\n" +
656
+ "\x05title\x18\x02 \x01(\tH\x00R\x05title\x88\x01\x01\x12\x1f\n" +
657
+ "\bsubtitle\x18\x03 \x01(\tH\x01R\bsubtitle\x88\x01\x01\x12%\n" +
658
+ "\vdescription\x18\x04 \x01(\tH\x02R\vdescription\x88\x01\x01\x12$\n" +
659
+ "\vis_giftcard\x18\x05 \x01(\bH\x03R\n" +
660
+ "isGiftcard\x88\x01\x01\x12,\n" +
661
+ "\x0fis_discountable\x18\x06 \x01(\bH\x04R\x0eisDiscountable\x88\x01\x01\x12!\n" +
662
+ "\tthumbnail\x18\a \x01(\tH\x05R\tthumbnail\x88\x01\x01\x12\x17\n" +
663
+ "\x04slug\x18\b \x01(\tH\x06R\x04slug\x88\x01\x01\x12+\n" +
664
+ "\x06status\x18\t \x01(\x0e2\x0e.ProductStatusH\aR\x06status\x88\x01\x01\x12\x1b\n" +
665
+ "\x06weight\x18\n" +
666
+ " \x01(\x02H\bR\x06weight\x88\x01\x01\x12\x1b\n" +
667
+ "\x06height\x18\v \x01(\x02H\tR\x06height\x88\x01\x01\x12\x19\n" +
668
+ "\x05width\x18\f \x01(\x02H\n" +
669
+ "R\x05width\x88\x01\x01\x12\x1b\n" +
670
+ "\x06length\x18\r \x01(\x02H\vR\x06length\x88\x01\x01\x12\x1c\n" +
671
+ "\ahs_code\x18\x0e \x01(\tH\fR\x06hsCode\x88\x01\x01\x12\x1e\n" +
672
+ "\bmid_code\x18\x0f \x01(\tH\rR\amidCode\x88\x01\x01\x12*\n" +
673
+ "\x0eorigin_country\x18\x10 \x01(\tH\x0eR\roriginCountry\x88\x01\x01\x12\x1f\n" +
674
+ "\bmaterial\x18\x11 \x01(\tH\x0fR\bmaterial\x88\x01\x01\x12$\n" +
675
+ "\vexternal_id\x18\x12 \x01(\tH\x10R\n" +
676
+ "externalId\x88\x01\x01\x12\x16\n" +
677
+ "\x06images\x18\x13 \x03(\tR\x06images\x12\x12\n" +
678
+ "\x04tags\x18\x14 \x03(\tR\x04tags\x12\x1e\n" +
679
+ "\n" +
680
+ "categories\x18\x15 \x03(\tR\n" +
681
+ "categories\x12%\n" +
682
+ "\x0esales_channels\x18\x16 \x03(\tR\rsalesChannels\x12(\n" +
683
+ "\aoptions\x18\x17 \x03(\v2\x0e.ProductOptionR\aoptions\x12$\n" +
684
+ "\bvariants\x18\x18 \x03(\v2\b.VariantR\bvariantsB\b\n" +
685
+ "\x06_titleB\v\n" +
686
+ "\t_subtitleB\x0e\n" +
687
+ "\f_descriptionB\x0e\n" +
688
+ "\f_is_giftcardB\x12\n" +
689
+ "\x10_is_discountableB\f\n" +
690
+ "\n" +
691
+ "_thumbnailB\a\n" +
692
+ "\x05_slugB\t\n" +
693
+ "\a_statusB\t\n" +
694
+ "\a_weightB\t\n" +
695
+ "\a_heightB\b\n" +
696
+ "\x06_widthB\t\n" +
697
+ "\a_lengthB\n" +
698
+ "\n" +
699
+ "\b_hs_codeB\v\n" +
700
+ "\t_mid_codeB\x11\n" +
701
+ "\x0f_origin_countryB\v\n" +
702
+ "\t_materialB\x0e\n" +
703
+ "\f_external_id\"C\n" +
704
+ "\x15UpdateProductResponse\x12*\n" +
705
+ "\aproduct\x18\x01 \x01(\v2\x10.ProductResponseR\aproduct\"5\n" +
706
+ "\x14DeleteProductRequest\x12\x1d\n" +
707
+ "\n" +
708
+ "product_id\x18\x01 \x01(\tR\tproductId\"\x17\n" +
709
+ "\x15DeleteProductResponse\"T\n" +
710
+ "\x14DeleteVariantRequest\x12\x1d\n" +
711
+ "\n" +
712
+ "variant_id\x18\x01 \x01(\tR\tvariantId\x12\x1d\n" +
713
+ "\n" +
714
+ "product_id\x18\x02 \x01(\tR\tproductId\"\x17\n" +
715
+ "\x15DeleteVariantResponse\"Q\n" +
716
+ "\x13DeleteOptionRequest\x12\x1b\n" +
717
+ "\toption_id\x18\x01 \x01(\tR\boptionId\x12\x1d\n" +
718
+ "\n" +
719
+ "product_id\x18\x02 \x01(\tR\tproductId\"\x16\n" +
720
+ "\x14DeleteOptionResponse\"\x86\x01\n" +
721
+ "\x1aRemoveInventoryItemRequest\x12*\n" +
722
+ "\x11inventory_item_id\x18\x01 \x01(\tR\x0finventoryItemId\x12\x1d\n" +
723
+ "\n" +
724
+ "product_id\x18\x02 \x01(\tR\tproductId\x12\x1d\n" +
725
+ "\n" +
726
+ "variant_id\x18\x03 \x01(\tR\tvariantId\"\x1d\n" +
727
+ "\x1bRemoveInventoryItemResponseBRB\vUpdateProtoP\x01ZApaakd.com/packages/api/gen/src/proto/products/v1/entities/productb\x06proto3"
728
+
729
+ var (
730
+ file_src_proto_products_v1_entities_product_update_proto_rawDescOnce sync.Once
731
+ file_src_proto_products_v1_entities_product_update_proto_rawDescData []byte
732
+ )
733
+
734
+ func file_src_proto_products_v1_entities_product_update_proto_rawDescGZIP() []byte {
735
+ file_src_proto_products_v1_entities_product_update_proto_rawDescOnce.Do(func() {
736
+ file_src_proto_products_v1_entities_product_update_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_src_proto_products_v1_entities_product_update_proto_rawDesc), len(file_src_proto_products_v1_entities_product_update_proto_rawDesc)))
737
+ })
738
+ return file_src_proto_products_v1_entities_product_update_proto_rawDescData
739
+ }
740
+
741
+ var file_src_proto_products_v1_entities_product_update_proto_msgTypes = make([]protoimpl.MessageInfo, 10)
742
+ var file_src_proto_products_v1_entities_product_update_proto_goTypes = []any{
743
+ (*UpdateProductRequest)(nil), // 0: UpdateProductRequest
744
+ (*UpdateProductResponse)(nil), // 1: UpdateProductResponse
745
+ (*DeleteProductRequest)(nil), // 2: DeleteProductRequest
746
+ (*DeleteProductResponse)(nil), // 3: DeleteProductResponse
747
+ (*DeleteVariantRequest)(nil), // 4: DeleteVariantRequest
748
+ (*DeleteVariantResponse)(nil), // 5: DeleteVariantResponse
749
+ (*DeleteOptionRequest)(nil), // 6: DeleteOptionRequest
750
+ (*DeleteOptionResponse)(nil), // 7: DeleteOptionResponse
751
+ (*RemoveInventoryItemRequest)(nil), // 8: RemoveInventoryItemRequest
752
+ (*RemoveInventoryItemResponse)(nil), // 9: RemoveInventoryItemResponse
753
+ (ProductStatus)(0), // 10: ProductStatus
754
+ (*ProductOption)(nil), // 11: ProductOption
755
+ (*Variant)(nil), // 12: Variant
756
+ (*ProductResponse)(nil), // 13: ProductResponse
757
+ }
758
+ var file_src_proto_products_v1_entities_product_update_proto_depIdxs = []int32{
759
+ 10, // 0: UpdateProductRequest.status:type_name -> ProductStatus
760
+ 11, // 1: UpdateProductRequest.options:type_name -> ProductOption
761
+ 12, // 2: UpdateProductRequest.variants:type_name -> Variant
762
+ 13, // 3: UpdateProductResponse.product:type_name -> ProductResponse
763
+ 4, // [4:4] is the sub-list for method output_type
764
+ 4, // [4:4] is the sub-list for method input_type
765
+ 4, // [4:4] is the sub-list for extension type_name
766
+ 4, // [4:4] is the sub-list for extension extendee
767
+ 0, // [0:4] is the sub-list for field type_name
768
+ }
769
+
770
+ func init() { file_src_proto_products_v1_entities_product_update_proto_init() }
771
+ func file_src_proto_products_v1_entities_product_update_proto_init() {
772
+ if File_src_proto_products_v1_entities_product_update_proto != nil {
773
+ return
774
+ }
775
+ file_src_proto_products_v1_entities_product_shared_proto_init()
776
+ file_src_proto_products_v1_entities_product_update_proto_msgTypes[0].OneofWrappers = []any{}
777
+ type x struct{}
778
+ out := protoimpl.TypeBuilder{
779
+ File: protoimpl.DescBuilder{
780
+ GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
781
+ RawDescriptor: unsafe.Slice(unsafe.StringData(file_src_proto_products_v1_entities_product_update_proto_rawDesc), len(file_src_proto_products_v1_entities_product_update_proto_rawDesc)),
782
+ NumEnums: 0,
783
+ NumMessages: 10,
784
+ NumExtensions: 0,
785
+ NumServices: 0,
786
+ },
787
+ GoTypes: file_src_proto_products_v1_entities_product_update_proto_goTypes,
788
+ DependencyIndexes: file_src_proto_products_v1_entities_product_update_proto_depIdxs,
789
+ MessageInfos: file_src_proto_products_v1_entities_product_update_proto_msgTypes,
790
+ }.Build()
791
+ File_src_proto_products_v1_entities_product_update_proto = out.File
792
+ file_src_proto_products_v1_entities_product_update_proto_goTypes = nil
793
+ file_src_proto_products_v1_entities_product_update_proto_depIdxs = nil
794
+ }