shopping_shoppingcart_service.pb.go 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.31.0
  4. // protoc v4.25.0
  5. // source: proto/shopping_shoppingcart_service.proto
  6. package shopping_service
  7. import (
  8. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  9. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  10. reflect "reflect"
  11. sync "sync"
  12. )
  13. const (
  14. // Verify that this generated code is sufficiently up-to-date.
  15. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  16. // Verify that runtime/protoimpl is sufficiently up-to-date.
  17. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  18. )
  19. type CreateShoppingCartRequest struct {
  20. state protoimpl.MessageState
  21. sizeCache protoimpl.SizeCache
  22. unknownFields protoimpl.UnknownFields
  23. UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
  24. Quantity int64 `protobuf:"varint,2,opt,name=quantity,proto3" json:"quantity,omitempty"`
  25. }
  26. func (x *CreateShoppingCartRequest) Reset() {
  27. *x = CreateShoppingCartRequest{}
  28. if protoimpl.UnsafeEnabled {
  29. mi := &file_proto_shopping_shoppingcart_service_proto_msgTypes[0]
  30. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  31. ms.StoreMessageInfo(mi)
  32. }
  33. }
  34. func (x *CreateShoppingCartRequest) String() string {
  35. return protoimpl.X.MessageStringOf(x)
  36. }
  37. func (*CreateShoppingCartRequest) ProtoMessage() {}
  38. func (x *CreateShoppingCartRequest) ProtoReflect() protoreflect.Message {
  39. mi := &file_proto_shopping_shoppingcart_service_proto_msgTypes[0]
  40. if protoimpl.UnsafeEnabled && x != nil {
  41. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  42. if ms.LoadMessageInfo() == nil {
  43. ms.StoreMessageInfo(mi)
  44. }
  45. return ms
  46. }
  47. return mi.MessageOf(x)
  48. }
  49. // Deprecated: Use CreateShoppingCartRequest.ProtoReflect.Descriptor instead.
  50. func (*CreateShoppingCartRequest) Descriptor() ([]byte, []int) {
  51. return file_proto_shopping_shoppingcart_service_proto_rawDescGZIP(), []int{0}
  52. }
  53. func (x *CreateShoppingCartRequest) GetUserId() int64 {
  54. if x != nil {
  55. return x.UserId
  56. }
  57. return 0
  58. }
  59. func (x *CreateShoppingCartRequest) GetQuantity() int64 {
  60. if x != nil {
  61. return x.Quantity
  62. }
  63. return 0
  64. }
  65. type CreateShoppingCartResponse struct {
  66. state protoimpl.MessageState
  67. sizeCache protoimpl.SizeCache
  68. unknownFields protoimpl.UnknownFields
  69. }
  70. func (x *CreateShoppingCartResponse) Reset() {
  71. *x = CreateShoppingCartResponse{}
  72. if protoimpl.UnsafeEnabled {
  73. mi := &file_proto_shopping_shoppingcart_service_proto_msgTypes[1]
  74. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  75. ms.StoreMessageInfo(mi)
  76. }
  77. }
  78. func (x *CreateShoppingCartResponse) String() string {
  79. return protoimpl.X.MessageStringOf(x)
  80. }
  81. func (*CreateShoppingCartResponse) ProtoMessage() {}
  82. func (x *CreateShoppingCartResponse) ProtoReflect() protoreflect.Message {
  83. mi := &file_proto_shopping_shoppingcart_service_proto_msgTypes[1]
  84. if protoimpl.UnsafeEnabled && x != nil {
  85. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  86. if ms.LoadMessageInfo() == nil {
  87. ms.StoreMessageInfo(mi)
  88. }
  89. return ms
  90. }
  91. return mi.MessageOf(x)
  92. }
  93. // Deprecated: Use CreateShoppingCartResponse.ProtoReflect.Descriptor instead.
  94. func (*CreateShoppingCartResponse) Descriptor() ([]byte, []int) {
  95. return file_proto_shopping_shoppingcart_service_proto_rawDescGZIP(), []int{1}
  96. }
  97. type CreateShoppingCartItemRequest struct {
  98. state protoimpl.MessageState
  99. sizeCache protoimpl.SizeCache
  100. unknownFields protoimpl.UnknownFields
  101. Items []*ShoppingCartItem `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
  102. }
  103. func (x *CreateShoppingCartItemRequest) Reset() {
  104. *x = CreateShoppingCartItemRequest{}
  105. if protoimpl.UnsafeEnabled {
  106. mi := &file_proto_shopping_shoppingcart_service_proto_msgTypes[2]
  107. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  108. ms.StoreMessageInfo(mi)
  109. }
  110. }
  111. func (x *CreateShoppingCartItemRequest) String() string {
  112. return protoimpl.X.MessageStringOf(x)
  113. }
  114. func (*CreateShoppingCartItemRequest) ProtoMessage() {}
  115. func (x *CreateShoppingCartItemRequest) ProtoReflect() protoreflect.Message {
  116. mi := &file_proto_shopping_shoppingcart_service_proto_msgTypes[2]
  117. if protoimpl.UnsafeEnabled && x != nil {
  118. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  119. if ms.LoadMessageInfo() == nil {
  120. ms.StoreMessageInfo(mi)
  121. }
  122. return ms
  123. }
  124. return mi.MessageOf(x)
  125. }
  126. // Deprecated: Use CreateShoppingCartItemRequest.ProtoReflect.Descriptor instead.
  127. func (*CreateShoppingCartItemRequest) Descriptor() ([]byte, []int) {
  128. return file_proto_shopping_shoppingcart_service_proto_rawDescGZIP(), []int{2}
  129. }
  130. func (x *CreateShoppingCartItemRequest) GetItems() []*ShoppingCartItem {
  131. if x != nil {
  132. return x.Items
  133. }
  134. return nil
  135. }
  136. type CreateShoppingCartItemResponse struct {
  137. state protoimpl.MessageState
  138. sizeCache protoimpl.SizeCache
  139. unknownFields protoimpl.UnknownFields
  140. }
  141. func (x *CreateShoppingCartItemResponse) Reset() {
  142. *x = CreateShoppingCartItemResponse{}
  143. if protoimpl.UnsafeEnabled {
  144. mi := &file_proto_shopping_shoppingcart_service_proto_msgTypes[3]
  145. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  146. ms.StoreMessageInfo(mi)
  147. }
  148. }
  149. func (x *CreateShoppingCartItemResponse) String() string {
  150. return protoimpl.X.MessageStringOf(x)
  151. }
  152. func (*CreateShoppingCartItemResponse) ProtoMessage() {}
  153. func (x *CreateShoppingCartItemResponse) ProtoReflect() protoreflect.Message {
  154. mi := &file_proto_shopping_shoppingcart_service_proto_msgTypes[3]
  155. if protoimpl.UnsafeEnabled && x != nil {
  156. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  157. if ms.LoadMessageInfo() == nil {
  158. ms.StoreMessageInfo(mi)
  159. }
  160. return ms
  161. }
  162. return mi.MessageOf(x)
  163. }
  164. // Deprecated: Use CreateShoppingCartItemResponse.ProtoReflect.Descriptor instead.
  165. func (*CreateShoppingCartItemResponse) Descriptor() ([]byte, []int) {
  166. return file_proto_shopping_shoppingcart_service_proto_rawDescGZIP(), []int{3}
  167. }
  168. var File_proto_shopping_shoppingcart_service_proto protoreflect.FileDescriptor
  169. var file_proto_shopping_shoppingcart_service_proto_rawDesc = []byte{
  170. 0x0a, 0x29, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67,
  171. 0x5f, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x63, 0x61, 0x72, 0x74, 0x5f, 0x73, 0x65,
  172. 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1d, 0x73, 0x68, 0x6f,
  173. 0x70, 0x70, 0x69, 0x6e, 0x67, 0x5f, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x43, 0x61,
  174. 0x72, 0x74, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x1a, 0x21, 0x70, 0x72, 0x6f, 0x74,
  175. 0x6f, 0x2f, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x5f,
  176. 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x50, 0x0a,
  177. 0x19, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x43,
  178. 0x61, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73,
  179. 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x75, 0x73, 0x65,
  180. 0x72, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x71, 0x75, 0x61, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x18,
  181. 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x71, 0x75, 0x61, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x22,
  182. 0x1c, 0x0a, 0x1a, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e,
  183. 0x67, 0x43, 0x61, 0x72, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x5e, 0x0a,
  184. 0x1d, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x43,
  185. 0x61, 0x72, 0x74, 0x49, 0x74, 0x65, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3d,
  186. 0x0a, 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x27, 0x2e,
  187. 0x62, 0x61, 0x73, 0x65, 0x5f, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x5f, 0x73, 0x65,
  188. 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x53, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x43, 0x61,
  189. 0x72, 0x74, 0x49, 0x74, 0x65, 0x6d, 0x52, 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x22, 0x20, 0x0a,
  190. 0x1e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x43,
  191. 0x61, 0x72, 0x74, 0x49, 0x74, 0x65, 0x6d, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32,
  192. 0xb5, 0x02, 0x0a, 0x0f, 0x43, 0x61, 0x72, 0x74, 0x49, 0x74, 0x65, 0x6d, 0x53, 0x65, 0x72, 0x76,
  193. 0x69, 0x63, 0x65, 0x12, 0x89, 0x01, 0x0a, 0x12, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, 0x68,
  194. 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x43, 0x61, 0x72, 0x74, 0x12, 0x38, 0x2e, 0x73, 0x68, 0x6f,
  195. 0x70, 0x70, 0x69, 0x6e, 0x67, 0x5f, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x43, 0x61,
  196. 0x72, 0x74, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74,
  197. 0x65, 0x53, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x43, 0x61, 0x72, 0x74, 0x52, 0x65, 0x71,
  198. 0x75, 0x65, 0x73, 0x74, 0x1a, 0x39, 0x2e, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x5f,
  199. 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x43, 0x61, 0x72, 0x74, 0x5f, 0x73, 0x65, 0x72,
  200. 0x76, 0x69, 0x63, 0x65, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, 0x68, 0x6f, 0x70, 0x70,
  201. 0x69, 0x6e, 0x67, 0x43, 0x61, 0x72, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12,
  202. 0x95, 0x01, 0x0a, 0x16, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, 0x68, 0x6f, 0x70, 0x70, 0x69,
  203. 0x6e, 0x67, 0x43, 0x61, 0x72, 0x74, 0x49, 0x74, 0x65, 0x6d, 0x12, 0x3c, 0x2e, 0x73, 0x68, 0x6f,
  204. 0x70, 0x70, 0x69, 0x6e, 0x67, 0x5f, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x43, 0x61,
  205. 0x72, 0x74, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74,
  206. 0x65, 0x53, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x43, 0x61, 0x72, 0x74, 0x49, 0x74, 0x65,
  207. 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3d, 0x2e, 0x73, 0x68, 0x6f, 0x70, 0x70,
  208. 0x69, 0x6e, 0x67, 0x5f, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x43, 0x61, 0x72, 0x74,
  209. 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x53,
  210. 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x43, 0x61, 0x72, 0x74, 0x49, 0x74, 0x65, 0x6d, 0x52,
  211. 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x1a, 0x5a, 0x18, 0x2e, 0x2f, 0x70, 0x72, 0x6f,
  212. 0x74, 0x6f, 0x3b, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x5f, 0x73, 0x65, 0x72, 0x76,
  213. 0x69, 0x63, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  214. }
  215. var (
  216. file_proto_shopping_shoppingcart_service_proto_rawDescOnce sync.Once
  217. file_proto_shopping_shoppingcart_service_proto_rawDescData = file_proto_shopping_shoppingcart_service_proto_rawDesc
  218. )
  219. func file_proto_shopping_shoppingcart_service_proto_rawDescGZIP() []byte {
  220. file_proto_shopping_shoppingcart_service_proto_rawDescOnce.Do(func() {
  221. file_proto_shopping_shoppingcart_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_proto_shopping_shoppingcart_service_proto_rawDescData)
  222. })
  223. return file_proto_shopping_shoppingcart_service_proto_rawDescData
  224. }
  225. var file_proto_shopping_shoppingcart_service_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
  226. var file_proto_shopping_shoppingcart_service_proto_goTypes = []interface{}{
  227. (*CreateShoppingCartRequest)(nil), // 0: shopping_shoppingCart_service.CreateShoppingCartRequest
  228. (*CreateShoppingCartResponse)(nil), // 1: shopping_shoppingCart_service.CreateShoppingCartResponse
  229. (*CreateShoppingCartItemRequest)(nil), // 2: shopping_shoppingCart_service.CreateShoppingCartItemRequest
  230. (*CreateShoppingCartItemResponse)(nil), // 3: shopping_shoppingCart_service.CreateShoppingCartItemResponse
  231. (*ShoppingCartItem)(nil), // 4: base_shopping_service.ShoppingCartItem
  232. }
  233. var file_proto_shopping_shoppingcart_service_proto_depIdxs = []int32{
  234. 4, // 0: shopping_shoppingCart_service.CreateShoppingCartItemRequest.items:type_name -> base_shopping_service.ShoppingCartItem
  235. 0, // 1: shopping_shoppingCart_service.CartItemService.CreateShoppingCart:input_type -> shopping_shoppingCart_service.CreateShoppingCartRequest
  236. 2, // 2: shopping_shoppingCart_service.CartItemService.CreateShoppingCartItem:input_type -> shopping_shoppingCart_service.CreateShoppingCartItemRequest
  237. 1, // 3: shopping_shoppingCart_service.CartItemService.CreateShoppingCart:output_type -> shopping_shoppingCart_service.CreateShoppingCartResponse
  238. 3, // 4: shopping_shoppingCart_service.CartItemService.CreateShoppingCartItem:output_type -> shopping_shoppingCart_service.CreateShoppingCartItemResponse
  239. 3, // [3:5] is the sub-list for method output_type
  240. 1, // [1:3] is the sub-list for method input_type
  241. 1, // [1:1] is the sub-list for extension type_name
  242. 1, // [1:1] is the sub-list for extension extendee
  243. 0, // [0:1] is the sub-list for field type_name
  244. }
  245. func init() { file_proto_shopping_shoppingcart_service_proto_init() }
  246. func file_proto_shopping_shoppingcart_service_proto_init() {
  247. if File_proto_shopping_shoppingcart_service_proto != nil {
  248. return
  249. }
  250. file_proto_base_shopping_service_proto_init()
  251. if !protoimpl.UnsafeEnabled {
  252. file_proto_shopping_shoppingcart_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  253. switch v := v.(*CreateShoppingCartRequest); i {
  254. case 0:
  255. return &v.state
  256. case 1:
  257. return &v.sizeCache
  258. case 2:
  259. return &v.unknownFields
  260. default:
  261. return nil
  262. }
  263. }
  264. file_proto_shopping_shoppingcart_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  265. switch v := v.(*CreateShoppingCartResponse); i {
  266. case 0:
  267. return &v.state
  268. case 1:
  269. return &v.sizeCache
  270. case 2:
  271. return &v.unknownFields
  272. default:
  273. return nil
  274. }
  275. }
  276. file_proto_shopping_shoppingcart_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  277. switch v := v.(*CreateShoppingCartItemRequest); i {
  278. case 0:
  279. return &v.state
  280. case 1:
  281. return &v.sizeCache
  282. case 2:
  283. return &v.unknownFields
  284. default:
  285. return nil
  286. }
  287. }
  288. file_proto_shopping_shoppingcart_service_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
  289. switch v := v.(*CreateShoppingCartItemResponse); i {
  290. case 0:
  291. return &v.state
  292. case 1:
  293. return &v.sizeCache
  294. case 2:
  295. return &v.unknownFields
  296. default:
  297. return nil
  298. }
  299. }
  300. }
  301. type x struct{}
  302. out := protoimpl.TypeBuilder{
  303. File: protoimpl.DescBuilder{
  304. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  305. RawDescriptor: file_proto_shopping_shoppingcart_service_proto_rawDesc,
  306. NumEnums: 0,
  307. NumMessages: 4,
  308. NumExtensions: 0,
  309. NumServices: 1,
  310. },
  311. GoTypes: file_proto_shopping_shoppingcart_service_proto_goTypes,
  312. DependencyIndexes: file_proto_shopping_shoppingcart_service_proto_depIdxs,
  313. MessageInfos: file_proto_shopping_shoppingcart_service_proto_msgTypes,
  314. }.Build()
  315. File_proto_shopping_shoppingcart_service_proto = out.File
  316. file_proto_shopping_shoppingcart_service_proto_rawDesc = nil
  317. file_proto_shopping_shoppingcart_service_proto_goTypes = nil
  318. file_proto_shopping_shoppingcart_service_proto_depIdxs = nil
  319. }