shopping_category_service.pb.go 33 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912
  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_category_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 GetCategoryListRequest struct {
  20. state protoimpl.MessageState
  21. sizeCache protoimpl.SizeCache
  22. unknownFields protoimpl.UnknownFields
  23. Page int32 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"`
  24. PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
  25. Keyword string `protobuf:"bytes,3,opt,name=keyword,proto3" json:"keyword,omitempty"`
  26. }
  27. func (x *GetCategoryListRequest) Reset() {
  28. *x = GetCategoryListRequest{}
  29. if protoimpl.UnsafeEnabled {
  30. mi := &file_proto_shopping_category_service_proto_msgTypes[0]
  31. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  32. ms.StoreMessageInfo(mi)
  33. }
  34. }
  35. func (x *GetCategoryListRequest) String() string {
  36. return protoimpl.X.MessageStringOf(x)
  37. }
  38. func (*GetCategoryListRequest) ProtoMessage() {}
  39. func (x *GetCategoryListRequest) ProtoReflect() protoreflect.Message {
  40. mi := &file_proto_shopping_category_service_proto_msgTypes[0]
  41. if protoimpl.UnsafeEnabled && x != nil {
  42. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  43. if ms.LoadMessageInfo() == nil {
  44. ms.StoreMessageInfo(mi)
  45. }
  46. return ms
  47. }
  48. return mi.MessageOf(x)
  49. }
  50. // Deprecated: Use GetCategoryListRequest.ProtoReflect.Descriptor instead.
  51. func (*GetCategoryListRequest) Descriptor() ([]byte, []int) {
  52. return file_proto_shopping_category_service_proto_rawDescGZIP(), []int{0}
  53. }
  54. func (x *GetCategoryListRequest) GetPage() int32 {
  55. if x != nil {
  56. return x.Page
  57. }
  58. return 0
  59. }
  60. func (x *GetCategoryListRequest) GetPageSize() int32 {
  61. if x != nil {
  62. return x.PageSize
  63. }
  64. return 0
  65. }
  66. func (x *GetCategoryListRequest) GetKeyword() string {
  67. if x != nil {
  68. return x.Keyword
  69. }
  70. return ""
  71. }
  72. type GetCategoryListResponse struct {
  73. state protoimpl.MessageState
  74. sizeCache protoimpl.SizeCache
  75. unknownFields protoimpl.UnknownFields
  76. Items []*Category `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
  77. TotalCount int64 `protobuf:"varint,2,opt,name=total_count,json=totalCount,proto3" json:"total_count,omitempty"`
  78. }
  79. func (x *GetCategoryListResponse) Reset() {
  80. *x = GetCategoryListResponse{}
  81. if protoimpl.UnsafeEnabled {
  82. mi := &file_proto_shopping_category_service_proto_msgTypes[1]
  83. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  84. ms.StoreMessageInfo(mi)
  85. }
  86. }
  87. func (x *GetCategoryListResponse) String() string {
  88. return protoimpl.X.MessageStringOf(x)
  89. }
  90. func (*GetCategoryListResponse) ProtoMessage() {}
  91. func (x *GetCategoryListResponse) ProtoReflect() protoreflect.Message {
  92. mi := &file_proto_shopping_category_service_proto_msgTypes[1]
  93. if protoimpl.UnsafeEnabled && x != nil {
  94. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  95. if ms.LoadMessageInfo() == nil {
  96. ms.StoreMessageInfo(mi)
  97. }
  98. return ms
  99. }
  100. return mi.MessageOf(x)
  101. }
  102. // Deprecated: Use GetCategoryListResponse.ProtoReflect.Descriptor instead.
  103. func (*GetCategoryListResponse) Descriptor() ([]byte, []int) {
  104. return file_proto_shopping_category_service_proto_rawDescGZIP(), []int{1}
  105. }
  106. func (x *GetCategoryListResponse) GetItems() []*Category {
  107. if x != nil {
  108. return x.Items
  109. }
  110. return nil
  111. }
  112. func (x *GetCategoryListResponse) GetTotalCount() int64 {
  113. if x != nil {
  114. return x.TotalCount
  115. }
  116. return 0
  117. }
  118. type GetCategoryRequest struct {
  119. state protoimpl.MessageState
  120. sizeCache protoimpl.SizeCache
  121. unknownFields protoimpl.UnknownFields
  122. UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
  123. }
  124. func (x *GetCategoryRequest) Reset() {
  125. *x = GetCategoryRequest{}
  126. if protoimpl.UnsafeEnabled {
  127. mi := &file_proto_shopping_category_service_proto_msgTypes[2]
  128. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  129. ms.StoreMessageInfo(mi)
  130. }
  131. }
  132. func (x *GetCategoryRequest) String() string {
  133. return protoimpl.X.MessageStringOf(x)
  134. }
  135. func (*GetCategoryRequest) ProtoMessage() {}
  136. func (x *GetCategoryRequest) ProtoReflect() protoreflect.Message {
  137. mi := &file_proto_shopping_category_service_proto_msgTypes[2]
  138. if protoimpl.UnsafeEnabled && x != nil {
  139. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  140. if ms.LoadMessageInfo() == nil {
  141. ms.StoreMessageInfo(mi)
  142. }
  143. return ms
  144. }
  145. return mi.MessageOf(x)
  146. }
  147. // Deprecated: Use GetCategoryRequest.ProtoReflect.Descriptor instead.
  148. func (*GetCategoryRequest) Descriptor() ([]byte, []int) {
  149. return file_proto_shopping_category_service_proto_rawDescGZIP(), []int{2}
  150. }
  151. func (x *GetCategoryRequest) GetUserId() int64 {
  152. if x != nil {
  153. return x.UserId
  154. }
  155. return 0
  156. }
  157. type GetAllCategoriesRequest struct {
  158. state protoimpl.MessageState
  159. sizeCache protoimpl.SizeCache
  160. unknownFields protoimpl.UnknownFields
  161. }
  162. func (x *GetAllCategoriesRequest) Reset() {
  163. *x = GetAllCategoriesRequest{}
  164. if protoimpl.UnsafeEnabled {
  165. mi := &file_proto_shopping_category_service_proto_msgTypes[3]
  166. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  167. ms.StoreMessageInfo(mi)
  168. }
  169. }
  170. func (x *GetAllCategoriesRequest) String() string {
  171. return protoimpl.X.MessageStringOf(x)
  172. }
  173. func (*GetAllCategoriesRequest) ProtoMessage() {}
  174. func (x *GetAllCategoriesRequest) ProtoReflect() protoreflect.Message {
  175. mi := &file_proto_shopping_category_service_proto_msgTypes[3]
  176. if protoimpl.UnsafeEnabled && x != nil {
  177. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  178. if ms.LoadMessageInfo() == nil {
  179. ms.StoreMessageInfo(mi)
  180. }
  181. return ms
  182. }
  183. return mi.MessageOf(x)
  184. }
  185. // Deprecated: Use GetAllCategoriesRequest.ProtoReflect.Descriptor instead.
  186. func (*GetAllCategoriesRequest) Descriptor() ([]byte, []int) {
  187. return file_proto_shopping_category_service_proto_rawDescGZIP(), []int{3}
  188. }
  189. type GetAllCategoriesResponse struct {
  190. state protoimpl.MessageState
  191. sizeCache protoimpl.SizeCache
  192. unknownFields protoimpl.UnknownFields
  193. Items []*Category `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
  194. }
  195. func (x *GetAllCategoriesResponse) Reset() {
  196. *x = GetAllCategoriesResponse{}
  197. if protoimpl.UnsafeEnabled {
  198. mi := &file_proto_shopping_category_service_proto_msgTypes[4]
  199. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  200. ms.StoreMessageInfo(mi)
  201. }
  202. }
  203. func (x *GetAllCategoriesResponse) String() string {
  204. return protoimpl.X.MessageStringOf(x)
  205. }
  206. func (*GetAllCategoriesResponse) ProtoMessage() {}
  207. func (x *GetAllCategoriesResponse) ProtoReflect() protoreflect.Message {
  208. mi := &file_proto_shopping_category_service_proto_msgTypes[4]
  209. if protoimpl.UnsafeEnabled && x != nil {
  210. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  211. if ms.LoadMessageInfo() == nil {
  212. ms.StoreMessageInfo(mi)
  213. }
  214. return ms
  215. }
  216. return mi.MessageOf(x)
  217. }
  218. // Deprecated: Use GetAllCategoriesResponse.ProtoReflect.Descriptor instead.
  219. func (*GetAllCategoriesResponse) Descriptor() ([]byte, []int) {
  220. return file_proto_shopping_category_service_proto_rawDescGZIP(), []int{4}
  221. }
  222. func (x *GetAllCategoriesResponse) GetItems() []*Category {
  223. if x != nil {
  224. return x.Items
  225. }
  226. return nil
  227. }
  228. type CreateCategory struct {
  229. state protoimpl.MessageState
  230. sizeCache protoimpl.SizeCache
  231. unknownFields protoimpl.UnknownFields
  232. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  233. ParentCategoryId int64 `protobuf:"varint,2,opt,name=parent_category_id,json=parentCategoryId,proto3" json:"parent_category_id,omitempty"`
  234. Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
  235. }
  236. func (x *CreateCategory) Reset() {
  237. *x = CreateCategory{}
  238. if protoimpl.UnsafeEnabled {
  239. mi := &file_proto_shopping_category_service_proto_msgTypes[5]
  240. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  241. ms.StoreMessageInfo(mi)
  242. }
  243. }
  244. func (x *CreateCategory) String() string {
  245. return protoimpl.X.MessageStringOf(x)
  246. }
  247. func (*CreateCategory) ProtoMessage() {}
  248. func (x *CreateCategory) ProtoReflect() protoreflect.Message {
  249. mi := &file_proto_shopping_category_service_proto_msgTypes[5]
  250. if protoimpl.UnsafeEnabled && x != nil {
  251. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  252. if ms.LoadMessageInfo() == nil {
  253. ms.StoreMessageInfo(mi)
  254. }
  255. return ms
  256. }
  257. return mi.MessageOf(x)
  258. }
  259. // Deprecated: Use CreateCategory.ProtoReflect.Descriptor instead.
  260. func (*CreateCategory) Descriptor() ([]byte, []int) {
  261. return file_proto_shopping_category_service_proto_rawDescGZIP(), []int{5}
  262. }
  263. func (x *CreateCategory) GetName() string {
  264. if x != nil {
  265. return x.Name
  266. }
  267. return ""
  268. }
  269. func (x *CreateCategory) GetParentCategoryId() int64 {
  270. if x != nil {
  271. return x.ParentCategoryId
  272. }
  273. return 0
  274. }
  275. func (x *CreateCategory) GetDescription() string {
  276. if x != nil {
  277. return x.Description
  278. }
  279. return ""
  280. }
  281. type CreateCategoryRequest struct {
  282. state protoimpl.MessageState
  283. sizeCache protoimpl.SizeCache
  284. unknownFields protoimpl.UnknownFields
  285. Items []*CreateCategory `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
  286. }
  287. func (x *CreateCategoryRequest) Reset() {
  288. *x = CreateCategoryRequest{}
  289. if protoimpl.UnsafeEnabled {
  290. mi := &file_proto_shopping_category_service_proto_msgTypes[6]
  291. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  292. ms.StoreMessageInfo(mi)
  293. }
  294. }
  295. func (x *CreateCategoryRequest) String() string {
  296. return protoimpl.X.MessageStringOf(x)
  297. }
  298. func (*CreateCategoryRequest) ProtoMessage() {}
  299. func (x *CreateCategoryRequest) ProtoReflect() protoreflect.Message {
  300. mi := &file_proto_shopping_category_service_proto_msgTypes[6]
  301. if protoimpl.UnsafeEnabled && x != nil {
  302. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  303. if ms.LoadMessageInfo() == nil {
  304. ms.StoreMessageInfo(mi)
  305. }
  306. return ms
  307. }
  308. return mi.MessageOf(x)
  309. }
  310. // Deprecated: Use CreateCategoryRequest.ProtoReflect.Descriptor instead.
  311. func (*CreateCategoryRequest) Descriptor() ([]byte, []int) {
  312. return file_proto_shopping_category_service_proto_rawDescGZIP(), []int{6}
  313. }
  314. func (x *CreateCategoryRequest) GetItems() []*CreateCategory {
  315. if x != nil {
  316. return x.Items
  317. }
  318. return nil
  319. }
  320. type CreateCategoryResponse struct {
  321. state protoimpl.MessageState
  322. sizeCache protoimpl.SizeCache
  323. unknownFields protoimpl.UnknownFields
  324. }
  325. func (x *CreateCategoryResponse) Reset() {
  326. *x = CreateCategoryResponse{}
  327. if protoimpl.UnsafeEnabled {
  328. mi := &file_proto_shopping_category_service_proto_msgTypes[7]
  329. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  330. ms.StoreMessageInfo(mi)
  331. }
  332. }
  333. func (x *CreateCategoryResponse) String() string {
  334. return protoimpl.X.MessageStringOf(x)
  335. }
  336. func (*CreateCategoryResponse) ProtoMessage() {}
  337. func (x *CreateCategoryResponse) ProtoReflect() protoreflect.Message {
  338. mi := &file_proto_shopping_category_service_proto_msgTypes[7]
  339. if protoimpl.UnsafeEnabled && x != nil {
  340. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  341. if ms.LoadMessageInfo() == nil {
  342. ms.StoreMessageInfo(mi)
  343. }
  344. return ms
  345. }
  346. return mi.MessageOf(x)
  347. }
  348. // Deprecated: Use CreateCategoryResponse.ProtoReflect.Descriptor instead.
  349. func (*CreateCategoryResponse) Descriptor() ([]byte, []int) {
  350. return file_proto_shopping_category_service_proto_rawDescGZIP(), []int{7}
  351. }
  352. type UpdateCategoryRequest struct {
  353. state protoimpl.MessageState
  354. sizeCache protoimpl.SizeCache
  355. unknownFields protoimpl.UnknownFields
  356. CategoryId int64 `protobuf:"varint,1,opt,name=category_id,json=categoryId,proto3" json:"category_id,omitempty"`
  357. Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
  358. }
  359. func (x *UpdateCategoryRequest) Reset() {
  360. *x = UpdateCategoryRequest{}
  361. if protoimpl.UnsafeEnabled {
  362. mi := &file_proto_shopping_category_service_proto_msgTypes[8]
  363. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  364. ms.StoreMessageInfo(mi)
  365. }
  366. }
  367. func (x *UpdateCategoryRequest) String() string {
  368. return protoimpl.X.MessageStringOf(x)
  369. }
  370. func (*UpdateCategoryRequest) ProtoMessage() {}
  371. func (x *UpdateCategoryRequest) ProtoReflect() protoreflect.Message {
  372. mi := &file_proto_shopping_category_service_proto_msgTypes[8]
  373. if protoimpl.UnsafeEnabled && x != nil {
  374. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  375. if ms.LoadMessageInfo() == nil {
  376. ms.StoreMessageInfo(mi)
  377. }
  378. return ms
  379. }
  380. return mi.MessageOf(x)
  381. }
  382. // Deprecated: Use UpdateCategoryRequest.ProtoReflect.Descriptor instead.
  383. func (*UpdateCategoryRequest) Descriptor() ([]byte, []int) {
  384. return file_proto_shopping_category_service_proto_rawDescGZIP(), []int{8}
  385. }
  386. func (x *UpdateCategoryRequest) GetCategoryId() int64 {
  387. if x != nil {
  388. return x.CategoryId
  389. }
  390. return 0
  391. }
  392. func (x *UpdateCategoryRequest) GetName() string {
  393. if x != nil {
  394. return x.Name
  395. }
  396. return ""
  397. }
  398. type UpdateCategoryResponse struct {
  399. state protoimpl.MessageState
  400. sizeCache protoimpl.SizeCache
  401. unknownFields protoimpl.UnknownFields
  402. }
  403. func (x *UpdateCategoryResponse) Reset() {
  404. *x = UpdateCategoryResponse{}
  405. if protoimpl.UnsafeEnabled {
  406. mi := &file_proto_shopping_category_service_proto_msgTypes[9]
  407. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  408. ms.StoreMessageInfo(mi)
  409. }
  410. }
  411. func (x *UpdateCategoryResponse) String() string {
  412. return protoimpl.X.MessageStringOf(x)
  413. }
  414. func (*UpdateCategoryResponse) ProtoMessage() {}
  415. func (x *UpdateCategoryResponse) ProtoReflect() protoreflect.Message {
  416. mi := &file_proto_shopping_category_service_proto_msgTypes[9]
  417. if protoimpl.UnsafeEnabled && x != nil {
  418. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  419. if ms.LoadMessageInfo() == nil {
  420. ms.StoreMessageInfo(mi)
  421. }
  422. return ms
  423. }
  424. return mi.MessageOf(x)
  425. }
  426. // Deprecated: Use UpdateCategoryResponse.ProtoReflect.Descriptor instead.
  427. func (*UpdateCategoryResponse) Descriptor() ([]byte, []int) {
  428. return file_proto_shopping_category_service_proto_rawDescGZIP(), []int{9}
  429. }
  430. type DeleteCategoryRequest struct {
  431. state protoimpl.MessageState
  432. sizeCache protoimpl.SizeCache
  433. unknownFields protoimpl.UnknownFields
  434. CategoryId int64 `protobuf:"varint,1,opt,name=category_id,json=categoryId,proto3" json:"category_id,omitempty"`
  435. }
  436. func (x *DeleteCategoryRequest) Reset() {
  437. *x = DeleteCategoryRequest{}
  438. if protoimpl.UnsafeEnabled {
  439. mi := &file_proto_shopping_category_service_proto_msgTypes[10]
  440. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  441. ms.StoreMessageInfo(mi)
  442. }
  443. }
  444. func (x *DeleteCategoryRequest) String() string {
  445. return protoimpl.X.MessageStringOf(x)
  446. }
  447. func (*DeleteCategoryRequest) ProtoMessage() {}
  448. func (x *DeleteCategoryRequest) ProtoReflect() protoreflect.Message {
  449. mi := &file_proto_shopping_category_service_proto_msgTypes[10]
  450. if protoimpl.UnsafeEnabled && 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. // Deprecated: Use DeleteCategoryRequest.ProtoReflect.Descriptor instead.
  460. func (*DeleteCategoryRequest) Descriptor() ([]byte, []int) {
  461. return file_proto_shopping_category_service_proto_rawDescGZIP(), []int{10}
  462. }
  463. func (x *DeleteCategoryRequest) GetCategoryId() int64 {
  464. if x != nil {
  465. return x.CategoryId
  466. }
  467. return 0
  468. }
  469. type DeleteCategoryResponse struct {
  470. state protoimpl.MessageState
  471. sizeCache protoimpl.SizeCache
  472. unknownFields protoimpl.UnknownFields
  473. }
  474. func (x *DeleteCategoryResponse) Reset() {
  475. *x = DeleteCategoryResponse{}
  476. if protoimpl.UnsafeEnabled {
  477. mi := &file_proto_shopping_category_service_proto_msgTypes[11]
  478. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  479. ms.StoreMessageInfo(mi)
  480. }
  481. }
  482. func (x *DeleteCategoryResponse) String() string {
  483. return protoimpl.X.MessageStringOf(x)
  484. }
  485. func (*DeleteCategoryResponse) ProtoMessage() {}
  486. func (x *DeleteCategoryResponse) ProtoReflect() protoreflect.Message {
  487. mi := &file_proto_shopping_category_service_proto_msgTypes[11]
  488. if protoimpl.UnsafeEnabled && 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. // Deprecated: Use DeleteCategoryResponse.ProtoReflect.Descriptor instead.
  498. func (*DeleteCategoryResponse) Descriptor() ([]byte, []int) {
  499. return file_proto_shopping_category_service_proto_rawDescGZIP(), []int{11}
  500. }
  501. var File_proto_shopping_category_service_proto protoreflect.FileDescriptor
  502. var file_proto_shopping_category_service_proto_rawDesc = []byte{
  503. 0x0a, 0x25, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67,
  504. 0x5f, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63,
  505. 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x19, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e,
  506. 0x67, 0x5f, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69,
  507. 0x63, 0x65, 0x1a, 0x21, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x73,
  508. 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e,
  509. 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x63, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x43, 0x61, 0x74, 0x65,
  510. 0x67, 0x6f, 0x72, 0x79, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12,
  511. 0x12, 0x0a, 0x04, 0x70, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x70,
  512. 0x61, 0x67, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65,
  513. 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65,
  514. 0x12, 0x18, 0x0a, 0x07, 0x6b, 0x65, 0x79, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28,
  515. 0x09, 0x52, 0x07, 0x6b, 0x65, 0x79, 0x77, 0x6f, 0x72, 0x64, 0x22, 0x71, 0x0a, 0x17, 0x47, 0x65,
  516. 0x74, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73,
  517. 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x35, 0x0a, 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x18, 0x01,
  518. 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x73, 0x68, 0x6f, 0x70,
  519. 0x70, 0x69, 0x6e, 0x67, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x43, 0x61, 0x74,
  520. 0x65, 0x67, 0x6f, 0x72, 0x79, 0x52, 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x12, 0x1f, 0x0a, 0x0b,
  521. 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28,
  522. 0x03, 0x52, 0x0a, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x2d, 0x0a,
  523. 0x12, 0x47, 0x65, 0x74, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75,
  524. 0x65, 0x73, 0x74, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01,
  525. 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x22, 0x19, 0x0a, 0x17,
  526. 0x47, 0x65, 0x74, 0x41, 0x6c, 0x6c, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x69, 0x65, 0x73,
  527. 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x51, 0x0a, 0x18, 0x47, 0x65, 0x74, 0x41, 0x6c,
  528. 0x6c, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f,
  529. 0x6e, 0x73, 0x65, 0x12, 0x35, 0x0a, 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x03,
  530. 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69,
  531. 0x6e, 0x67, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x43, 0x61, 0x74, 0x65, 0x67,
  532. 0x6f, 0x72, 0x79, 0x52, 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x22, 0x74, 0x0a, 0x0e, 0x43, 0x72,
  533. 0x65, 0x61, 0x74, 0x65, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x12, 0x12, 0x0a, 0x04,
  534. 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65,
  535. 0x12, 0x2c, 0x0a, 0x12, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x63, 0x61, 0x74, 0x65, 0x67,
  536. 0x6f, 0x72, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x10, 0x70, 0x61,
  537. 0x72, 0x65, 0x6e, 0x74, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x49, 0x64, 0x12, 0x20,
  538. 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20,
  539. 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e,
  540. 0x22, 0x58, 0x0a, 0x15, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f,
  541. 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3f, 0x0a, 0x05, 0x69, 0x74, 0x65,
  542. 0x6d, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x73, 0x68, 0x6f, 0x70, 0x70,
  543. 0x69, 0x6e, 0x67, 0x5f, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x5f, 0x73, 0x65, 0x72,
  544. 0x76, 0x69, 0x63, 0x65, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x61, 0x74, 0x65, 0x67,
  545. 0x6f, 0x72, 0x79, 0x52, 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x22, 0x18, 0x0a, 0x16, 0x43, 0x72,
  546. 0x65, 0x61, 0x74, 0x65, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70,
  547. 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x4c, 0x0a, 0x15, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x61,
  548. 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1f, 0x0a,
  549. 0x0b, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01,
  550. 0x28, 0x03, 0x52, 0x0a, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x49, 0x64, 0x12, 0x12,
  551. 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61,
  552. 0x6d, 0x65, 0x22, 0x18, 0x0a, 0x16, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x61, 0x74, 0x65,
  553. 0x67, 0x6f, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x38, 0x0a, 0x15,
  554. 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x52, 0x65,
  555. 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72,
  556. 0x79, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x63, 0x61, 0x74, 0x65,
  557. 0x67, 0x6f, 0x72, 0x79, 0x49, 0x64, 0x22, 0x18, 0x0a, 0x16, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65,
  558. 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
  559. 0x32, 0xfe, 0x03, 0x0a, 0x17, 0x53, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x43, 0x61, 0x74,
  560. 0x65, 0x67, 0x6f, 0x72, 0x79, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x78, 0x0a, 0x0f,
  561. 0x47, 0x65, 0x74, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x4c, 0x69, 0x73, 0x74, 0x12,
  562. 0x31, 0x2e, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x5f, 0x63, 0x61, 0x74, 0x65, 0x67,
  563. 0x6f, 0x72, 0x79, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x47, 0x65, 0x74, 0x43,
  564. 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65,
  565. 0x73, 0x74, 0x1a, 0x32, 0x2e, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x5f, 0x63, 0x61,
  566. 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x47,
  567. 0x65, 0x74, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65,
  568. 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x7b, 0x0a, 0x10, 0x47, 0x65, 0x74, 0x41, 0x6c, 0x6c,
  569. 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x12, 0x32, 0x2e, 0x73, 0x68, 0x6f,
  570. 0x70, 0x70, 0x69, 0x6e, 0x67, 0x5f, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x5f, 0x73,
  571. 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x6c, 0x6c, 0x43, 0x61, 0x74,
  572. 0x65, 0x67, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x33,
  573. 0x2e, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x5f, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f,
  574. 0x72, 0x79, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x6c,
  575. 0x6c, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f,
  576. 0x6e, 0x73, 0x65, 0x12, 0x75, 0x0a, 0x0e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x61, 0x74,
  577. 0x65, 0x67, 0x6f, 0x72, 0x79, 0x12, 0x30, 0x2e, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67,
  578. 0x5f, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63,
  579. 0x65, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79,
  580. 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x31, 0x2e, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69,
  581. 0x6e, 0x67, 0x5f, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x5f, 0x73, 0x65, 0x72, 0x76,
  582. 0x69, 0x63, 0x65, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f,
  583. 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x75, 0x0a, 0x0e, 0x44, 0x65,
  584. 0x6c, 0x65, 0x74, 0x65, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x12, 0x30, 0x2e, 0x73,
  585. 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x5f, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79,
  586. 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x43,
  587. 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x31,
  588. 0x2e, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x5f, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f,
  589. 0x72, 0x79, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74,
  590. 0x65, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
  591. 0x65, 0x42, 0x1a, 0x5a, 0x18, 0x2e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x3b, 0x73, 0x68, 0x6f,
  592. 0x70, 0x70, 0x69, 0x6e, 0x67, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x62, 0x06, 0x70,
  593. 0x72, 0x6f, 0x74, 0x6f, 0x33,
  594. }
  595. var (
  596. file_proto_shopping_category_service_proto_rawDescOnce sync.Once
  597. file_proto_shopping_category_service_proto_rawDescData = file_proto_shopping_category_service_proto_rawDesc
  598. )
  599. func file_proto_shopping_category_service_proto_rawDescGZIP() []byte {
  600. file_proto_shopping_category_service_proto_rawDescOnce.Do(func() {
  601. file_proto_shopping_category_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_proto_shopping_category_service_proto_rawDescData)
  602. })
  603. return file_proto_shopping_category_service_proto_rawDescData
  604. }
  605. var file_proto_shopping_category_service_proto_msgTypes = make([]protoimpl.MessageInfo, 12)
  606. var file_proto_shopping_category_service_proto_goTypes = []interface{}{
  607. (*GetCategoryListRequest)(nil), // 0: shopping_category_service.GetCategoryListRequest
  608. (*GetCategoryListResponse)(nil), // 1: shopping_category_service.GetCategoryListResponse
  609. (*GetCategoryRequest)(nil), // 2: shopping_category_service.GetCategoryRequest
  610. (*GetAllCategoriesRequest)(nil), // 3: shopping_category_service.GetAllCategoriesRequest
  611. (*GetAllCategoriesResponse)(nil), // 4: shopping_category_service.GetAllCategoriesResponse
  612. (*CreateCategory)(nil), // 5: shopping_category_service.CreateCategory
  613. (*CreateCategoryRequest)(nil), // 6: shopping_category_service.CreateCategoryRequest
  614. (*CreateCategoryResponse)(nil), // 7: shopping_category_service.CreateCategoryResponse
  615. (*UpdateCategoryRequest)(nil), // 8: shopping_category_service.UpdateCategoryRequest
  616. (*UpdateCategoryResponse)(nil), // 9: shopping_category_service.UpdateCategoryResponse
  617. (*DeleteCategoryRequest)(nil), // 10: shopping_category_service.DeleteCategoryRequest
  618. (*DeleteCategoryResponse)(nil), // 11: shopping_category_service.DeleteCategoryResponse
  619. (*Category)(nil), // 12: base_shopping_service.Category
  620. }
  621. var file_proto_shopping_category_service_proto_depIdxs = []int32{
  622. 12, // 0: shopping_category_service.GetCategoryListResponse.items:type_name -> base_shopping_service.Category
  623. 12, // 1: shopping_category_service.GetAllCategoriesResponse.items:type_name -> base_shopping_service.Category
  624. 5, // 2: shopping_category_service.CreateCategoryRequest.items:type_name -> shopping_category_service.CreateCategory
  625. 0, // 3: shopping_category_service.ShoppingCategoryService.GetCategoryList:input_type -> shopping_category_service.GetCategoryListRequest
  626. 3, // 4: shopping_category_service.ShoppingCategoryService.GetAllCategories:input_type -> shopping_category_service.GetAllCategoriesRequest
  627. 6, // 5: shopping_category_service.ShoppingCategoryService.CreateCategory:input_type -> shopping_category_service.CreateCategoryRequest
  628. 10, // 6: shopping_category_service.ShoppingCategoryService.DeleteCategory:input_type -> shopping_category_service.DeleteCategoryRequest
  629. 1, // 7: shopping_category_service.ShoppingCategoryService.GetCategoryList:output_type -> shopping_category_service.GetCategoryListResponse
  630. 4, // 8: shopping_category_service.ShoppingCategoryService.GetAllCategories:output_type -> shopping_category_service.GetAllCategoriesResponse
  631. 7, // 9: shopping_category_service.ShoppingCategoryService.CreateCategory:output_type -> shopping_category_service.CreateCategoryResponse
  632. 11, // 10: shopping_category_service.ShoppingCategoryService.DeleteCategory:output_type -> shopping_category_service.DeleteCategoryResponse
  633. 7, // [7:11] is the sub-list for method output_type
  634. 3, // [3:7] is the sub-list for method input_type
  635. 3, // [3:3] is the sub-list for extension type_name
  636. 3, // [3:3] is the sub-list for extension extendee
  637. 0, // [0:3] is the sub-list for field type_name
  638. }
  639. func init() { file_proto_shopping_category_service_proto_init() }
  640. func file_proto_shopping_category_service_proto_init() {
  641. if File_proto_shopping_category_service_proto != nil {
  642. return
  643. }
  644. file_proto_base_shopping_service_proto_init()
  645. if !protoimpl.UnsafeEnabled {
  646. file_proto_shopping_category_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  647. switch v := v.(*GetCategoryListRequest); i {
  648. case 0:
  649. return &v.state
  650. case 1:
  651. return &v.sizeCache
  652. case 2:
  653. return &v.unknownFields
  654. default:
  655. return nil
  656. }
  657. }
  658. file_proto_shopping_category_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  659. switch v := v.(*GetCategoryListResponse); i {
  660. case 0:
  661. return &v.state
  662. case 1:
  663. return &v.sizeCache
  664. case 2:
  665. return &v.unknownFields
  666. default:
  667. return nil
  668. }
  669. }
  670. file_proto_shopping_category_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  671. switch v := v.(*GetCategoryRequest); i {
  672. case 0:
  673. return &v.state
  674. case 1:
  675. return &v.sizeCache
  676. case 2:
  677. return &v.unknownFields
  678. default:
  679. return nil
  680. }
  681. }
  682. file_proto_shopping_category_service_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
  683. switch v := v.(*GetAllCategoriesRequest); i {
  684. case 0:
  685. return &v.state
  686. case 1:
  687. return &v.sizeCache
  688. case 2:
  689. return &v.unknownFields
  690. default:
  691. return nil
  692. }
  693. }
  694. file_proto_shopping_category_service_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
  695. switch v := v.(*GetAllCategoriesResponse); i {
  696. case 0:
  697. return &v.state
  698. case 1:
  699. return &v.sizeCache
  700. case 2:
  701. return &v.unknownFields
  702. default:
  703. return nil
  704. }
  705. }
  706. file_proto_shopping_category_service_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
  707. switch v := v.(*CreateCategory); i {
  708. case 0:
  709. return &v.state
  710. case 1:
  711. return &v.sizeCache
  712. case 2:
  713. return &v.unknownFields
  714. default:
  715. return nil
  716. }
  717. }
  718. file_proto_shopping_category_service_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
  719. switch v := v.(*CreateCategoryRequest); i {
  720. case 0:
  721. return &v.state
  722. case 1:
  723. return &v.sizeCache
  724. case 2:
  725. return &v.unknownFields
  726. default:
  727. return nil
  728. }
  729. }
  730. file_proto_shopping_category_service_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
  731. switch v := v.(*CreateCategoryResponse); i {
  732. case 0:
  733. return &v.state
  734. case 1:
  735. return &v.sizeCache
  736. case 2:
  737. return &v.unknownFields
  738. default:
  739. return nil
  740. }
  741. }
  742. file_proto_shopping_category_service_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
  743. switch v := v.(*UpdateCategoryRequest); i {
  744. case 0:
  745. return &v.state
  746. case 1:
  747. return &v.sizeCache
  748. case 2:
  749. return &v.unknownFields
  750. default:
  751. return nil
  752. }
  753. }
  754. file_proto_shopping_category_service_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
  755. switch v := v.(*UpdateCategoryResponse); i {
  756. case 0:
  757. return &v.state
  758. case 1:
  759. return &v.sizeCache
  760. case 2:
  761. return &v.unknownFields
  762. default:
  763. return nil
  764. }
  765. }
  766. file_proto_shopping_category_service_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
  767. switch v := v.(*DeleteCategoryRequest); i {
  768. case 0:
  769. return &v.state
  770. case 1:
  771. return &v.sizeCache
  772. case 2:
  773. return &v.unknownFields
  774. default:
  775. return nil
  776. }
  777. }
  778. file_proto_shopping_category_service_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
  779. switch v := v.(*DeleteCategoryResponse); i {
  780. case 0:
  781. return &v.state
  782. case 1:
  783. return &v.sizeCache
  784. case 2:
  785. return &v.unknownFields
  786. default:
  787. return nil
  788. }
  789. }
  790. }
  791. type x struct{}
  792. out := protoimpl.TypeBuilder{
  793. File: protoimpl.DescBuilder{
  794. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  795. RawDescriptor: file_proto_shopping_category_service_proto_rawDesc,
  796. NumEnums: 0,
  797. NumMessages: 12,
  798. NumExtensions: 0,
  799. NumServices: 1,
  800. },
  801. GoTypes: file_proto_shopping_category_service_proto_goTypes,
  802. DependencyIndexes: file_proto_shopping_category_service_proto_depIdxs,
  803. MessageInfos: file_proto_shopping_category_service_proto_msgTypes,
  804. }.Build()
  805. File_proto_shopping_category_service_proto = out.File
  806. file_proto_shopping_category_service_proto_rawDesc = nil
  807. file_proto_shopping_category_service_proto_goTypes = nil
  808. file_proto_shopping_category_service_proto_depIdxs = nil
  809. }