shopping_role_service.pb.go 40 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126
  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_role_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 CreateRoleRequest struct {
  20. state protoimpl.MessageState
  21. sizeCache protoimpl.SizeCache
  22. unknownFields protoimpl.UnknownFields
  23. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  24. Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
  25. Users []int64 `protobuf:"varint,3,rep,packed,name=users,proto3" json:"users,omitempty"`
  26. Permissions []int64 `protobuf:"varint,4,rep,packed,name=permissions,proto3" json:"permissions,omitempty"`
  27. CreatedAt string `protobuf:"bytes,5,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
  28. }
  29. func (x *CreateRoleRequest) Reset() {
  30. *x = CreateRoleRequest{}
  31. if protoimpl.UnsafeEnabled {
  32. mi := &file_proto_shopping_role_service_proto_msgTypes[0]
  33. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  34. ms.StoreMessageInfo(mi)
  35. }
  36. }
  37. func (x *CreateRoleRequest) String() string {
  38. return protoimpl.X.MessageStringOf(x)
  39. }
  40. func (*CreateRoleRequest) ProtoMessage() {}
  41. func (x *CreateRoleRequest) ProtoReflect() protoreflect.Message {
  42. mi := &file_proto_shopping_role_service_proto_msgTypes[0]
  43. if protoimpl.UnsafeEnabled && x != nil {
  44. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  45. if ms.LoadMessageInfo() == nil {
  46. ms.StoreMessageInfo(mi)
  47. }
  48. return ms
  49. }
  50. return mi.MessageOf(x)
  51. }
  52. // Deprecated: Use CreateRoleRequest.ProtoReflect.Descriptor instead.
  53. func (*CreateRoleRequest) Descriptor() ([]byte, []int) {
  54. return file_proto_shopping_role_service_proto_rawDescGZIP(), []int{0}
  55. }
  56. func (x *CreateRoleRequest) GetName() string {
  57. if x != nil {
  58. return x.Name
  59. }
  60. return ""
  61. }
  62. func (x *CreateRoleRequest) GetDescription() string {
  63. if x != nil {
  64. return x.Description
  65. }
  66. return ""
  67. }
  68. func (x *CreateRoleRequest) GetUsers() []int64 {
  69. if x != nil {
  70. return x.Users
  71. }
  72. return nil
  73. }
  74. func (x *CreateRoleRequest) GetPermissions() []int64 {
  75. if x != nil {
  76. return x.Permissions
  77. }
  78. return nil
  79. }
  80. func (x *CreateRoleRequest) GetCreatedAt() string {
  81. if x != nil {
  82. return x.CreatedAt
  83. }
  84. return ""
  85. }
  86. type CreateRoleResponse struct {
  87. state protoimpl.MessageState
  88. sizeCache protoimpl.SizeCache
  89. unknownFields protoimpl.UnknownFields
  90. }
  91. func (x *CreateRoleResponse) Reset() {
  92. *x = CreateRoleResponse{}
  93. if protoimpl.UnsafeEnabled {
  94. mi := &file_proto_shopping_role_service_proto_msgTypes[1]
  95. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  96. ms.StoreMessageInfo(mi)
  97. }
  98. }
  99. func (x *CreateRoleResponse) String() string {
  100. return protoimpl.X.MessageStringOf(x)
  101. }
  102. func (*CreateRoleResponse) ProtoMessage() {}
  103. func (x *CreateRoleResponse) ProtoReflect() protoreflect.Message {
  104. mi := &file_proto_shopping_role_service_proto_msgTypes[1]
  105. if protoimpl.UnsafeEnabled && x != nil {
  106. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  107. if ms.LoadMessageInfo() == nil {
  108. ms.StoreMessageInfo(mi)
  109. }
  110. return ms
  111. }
  112. return mi.MessageOf(x)
  113. }
  114. // Deprecated: Use CreateRoleResponse.ProtoReflect.Descriptor instead.
  115. func (*CreateRoleResponse) Descriptor() ([]byte, []int) {
  116. return file_proto_shopping_role_service_proto_rawDescGZIP(), []int{1}
  117. }
  118. type GetRoleListRequest struct {
  119. state protoimpl.MessageState
  120. sizeCache protoimpl.SizeCache
  121. unknownFields protoimpl.UnknownFields
  122. Page int32 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"`
  123. PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
  124. Keyword string `protobuf:"bytes,3,opt,name=keyword,proto3" json:"keyword,omitempty"`
  125. Status StatusEnum `protobuf:"varint,4,opt,name=status,proto3,enum=base_shopping_service.StatusEnum" json:"status,omitempty"`
  126. }
  127. func (x *GetRoleListRequest) Reset() {
  128. *x = GetRoleListRequest{}
  129. if protoimpl.UnsafeEnabled {
  130. mi := &file_proto_shopping_role_service_proto_msgTypes[2]
  131. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  132. ms.StoreMessageInfo(mi)
  133. }
  134. }
  135. func (x *GetRoleListRequest) String() string {
  136. return protoimpl.X.MessageStringOf(x)
  137. }
  138. func (*GetRoleListRequest) ProtoMessage() {}
  139. func (x *GetRoleListRequest) ProtoReflect() protoreflect.Message {
  140. mi := &file_proto_shopping_role_service_proto_msgTypes[2]
  141. if protoimpl.UnsafeEnabled && x != nil {
  142. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  143. if ms.LoadMessageInfo() == nil {
  144. ms.StoreMessageInfo(mi)
  145. }
  146. return ms
  147. }
  148. return mi.MessageOf(x)
  149. }
  150. // Deprecated: Use GetRoleListRequest.ProtoReflect.Descriptor instead.
  151. func (*GetRoleListRequest) Descriptor() ([]byte, []int) {
  152. return file_proto_shopping_role_service_proto_rawDescGZIP(), []int{2}
  153. }
  154. func (x *GetRoleListRequest) GetPage() int32 {
  155. if x != nil {
  156. return x.Page
  157. }
  158. return 0
  159. }
  160. func (x *GetRoleListRequest) GetPageSize() int32 {
  161. if x != nil {
  162. return x.PageSize
  163. }
  164. return 0
  165. }
  166. func (x *GetRoleListRequest) GetKeyword() string {
  167. if x != nil {
  168. return x.Keyword
  169. }
  170. return ""
  171. }
  172. func (x *GetRoleListRequest) GetStatus() StatusEnum {
  173. if x != nil {
  174. return x.Status
  175. }
  176. return StatusEnum_UNKNOWN
  177. }
  178. type GetRoleListResponse struct {
  179. state protoimpl.MessageState
  180. sizeCache protoimpl.SizeCache
  181. unknownFields protoimpl.UnknownFields
  182. Items []*Role `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
  183. TotalCount int64 `protobuf:"varint,2,opt,name=total_count,json=totalCount,proto3" json:"total_count,omitempty"`
  184. }
  185. func (x *GetRoleListResponse) Reset() {
  186. *x = GetRoleListResponse{}
  187. if protoimpl.UnsafeEnabled {
  188. mi := &file_proto_shopping_role_service_proto_msgTypes[3]
  189. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  190. ms.StoreMessageInfo(mi)
  191. }
  192. }
  193. func (x *GetRoleListResponse) String() string {
  194. return protoimpl.X.MessageStringOf(x)
  195. }
  196. func (*GetRoleListResponse) ProtoMessage() {}
  197. func (x *GetRoleListResponse) ProtoReflect() protoreflect.Message {
  198. mi := &file_proto_shopping_role_service_proto_msgTypes[3]
  199. if protoimpl.UnsafeEnabled && x != nil {
  200. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  201. if ms.LoadMessageInfo() == nil {
  202. ms.StoreMessageInfo(mi)
  203. }
  204. return ms
  205. }
  206. return mi.MessageOf(x)
  207. }
  208. // Deprecated: Use GetRoleListResponse.ProtoReflect.Descriptor instead.
  209. func (*GetRoleListResponse) Descriptor() ([]byte, []int) {
  210. return file_proto_shopping_role_service_proto_rawDescGZIP(), []int{3}
  211. }
  212. func (x *GetRoleListResponse) GetItems() []*Role {
  213. if x != nil {
  214. return x.Items
  215. }
  216. return nil
  217. }
  218. func (x *GetRoleListResponse) GetTotalCount() int64 {
  219. if x != nil {
  220. return x.TotalCount
  221. }
  222. return 0
  223. }
  224. type GetRoleRequest struct {
  225. state protoimpl.MessageState
  226. sizeCache protoimpl.SizeCache
  227. unknownFields protoimpl.UnknownFields
  228. RoleId int64 `protobuf:"varint,1,opt,name=role_id,json=roleId,proto3" json:"role_id,omitempty"`
  229. }
  230. func (x *GetRoleRequest) Reset() {
  231. *x = GetRoleRequest{}
  232. if protoimpl.UnsafeEnabled {
  233. mi := &file_proto_shopping_role_service_proto_msgTypes[4]
  234. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  235. ms.StoreMessageInfo(mi)
  236. }
  237. }
  238. func (x *GetRoleRequest) String() string {
  239. return protoimpl.X.MessageStringOf(x)
  240. }
  241. func (*GetRoleRequest) ProtoMessage() {}
  242. func (x *GetRoleRequest) ProtoReflect() protoreflect.Message {
  243. mi := &file_proto_shopping_role_service_proto_msgTypes[4]
  244. if protoimpl.UnsafeEnabled && x != nil {
  245. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  246. if ms.LoadMessageInfo() == nil {
  247. ms.StoreMessageInfo(mi)
  248. }
  249. return ms
  250. }
  251. return mi.MessageOf(x)
  252. }
  253. // Deprecated: Use GetRoleRequest.ProtoReflect.Descriptor instead.
  254. func (*GetRoleRequest) Descriptor() ([]byte, []int) {
  255. return file_proto_shopping_role_service_proto_rawDescGZIP(), []int{4}
  256. }
  257. func (x *GetRoleRequest) GetRoleId() int64 {
  258. if x != nil {
  259. return x.RoleId
  260. }
  261. return 0
  262. }
  263. type GetRoleResponse struct {
  264. state protoimpl.MessageState
  265. sizeCache protoimpl.SizeCache
  266. unknownFields protoimpl.UnknownFields
  267. Data *Role `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
  268. }
  269. func (x *GetRoleResponse) Reset() {
  270. *x = GetRoleResponse{}
  271. if protoimpl.UnsafeEnabled {
  272. mi := &file_proto_shopping_role_service_proto_msgTypes[5]
  273. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  274. ms.StoreMessageInfo(mi)
  275. }
  276. }
  277. func (x *GetRoleResponse) String() string {
  278. return protoimpl.X.MessageStringOf(x)
  279. }
  280. func (*GetRoleResponse) ProtoMessage() {}
  281. func (x *GetRoleResponse) ProtoReflect() protoreflect.Message {
  282. mi := &file_proto_shopping_role_service_proto_msgTypes[5]
  283. if protoimpl.UnsafeEnabled && x != nil {
  284. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  285. if ms.LoadMessageInfo() == nil {
  286. ms.StoreMessageInfo(mi)
  287. }
  288. return ms
  289. }
  290. return mi.MessageOf(x)
  291. }
  292. // Deprecated: Use GetRoleResponse.ProtoReflect.Descriptor instead.
  293. func (*GetRoleResponse) Descriptor() ([]byte, []int) {
  294. return file_proto_shopping_role_service_proto_rawDescGZIP(), []int{5}
  295. }
  296. func (x *GetRoleResponse) GetData() *Role {
  297. if x != nil {
  298. return x.Data
  299. }
  300. return nil
  301. }
  302. type GetAllRolesRequest struct {
  303. state protoimpl.MessageState
  304. sizeCache protoimpl.SizeCache
  305. unknownFields protoimpl.UnknownFields
  306. }
  307. func (x *GetAllRolesRequest) Reset() {
  308. *x = GetAllRolesRequest{}
  309. if protoimpl.UnsafeEnabled {
  310. mi := &file_proto_shopping_role_service_proto_msgTypes[6]
  311. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  312. ms.StoreMessageInfo(mi)
  313. }
  314. }
  315. func (x *GetAllRolesRequest) String() string {
  316. return protoimpl.X.MessageStringOf(x)
  317. }
  318. func (*GetAllRolesRequest) ProtoMessage() {}
  319. func (x *GetAllRolesRequest) ProtoReflect() protoreflect.Message {
  320. mi := &file_proto_shopping_role_service_proto_msgTypes[6]
  321. if protoimpl.UnsafeEnabled && x != nil {
  322. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  323. if ms.LoadMessageInfo() == nil {
  324. ms.StoreMessageInfo(mi)
  325. }
  326. return ms
  327. }
  328. return mi.MessageOf(x)
  329. }
  330. // Deprecated: Use GetAllRolesRequest.ProtoReflect.Descriptor instead.
  331. func (*GetAllRolesRequest) Descriptor() ([]byte, []int) {
  332. return file_proto_shopping_role_service_proto_rawDescGZIP(), []int{6}
  333. }
  334. type GetAllRolesResponse struct {
  335. state protoimpl.MessageState
  336. sizeCache protoimpl.SizeCache
  337. unknownFields protoimpl.UnknownFields
  338. Items []*Base `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
  339. }
  340. func (x *GetAllRolesResponse) Reset() {
  341. *x = GetAllRolesResponse{}
  342. if protoimpl.UnsafeEnabled {
  343. mi := &file_proto_shopping_role_service_proto_msgTypes[7]
  344. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  345. ms.StoreMessageInfo(mi)
  346. }
  347. }
  348. func (x *GetAllRolesResponse) String() string {
  349. return protoimpl.X.MessageStringOf(x)
  350. }
  351. func (*GetAllRolesResponse) ProtoMessage() {}
  352. func (x *GetAllRolesResponse) ProtoReflect() protoreflect.Message {
  353. mi := &file_proto_shopping_role_service_proto_msgTypes[7]
  354. if protoimpl.UnsafeEnabled && x != nil {
  355. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  356. if ms.LoadMessageInfo() == nil {
  357. ms.StoreMessageInfo(mi)
  358. }
  359. return ms
  360. }
  361. return mi.MessageOf(x)
  362. }
  363. // Deprecated: Use GetAllRolesResponse.ProtoReflect.Descriptor instead.
  364. func (*GetAllRolesResponse) Descriptor() ([]byte, []int) {
  365. return file_proto_shopping_role_service_proto_rawDescGZIP(), []int{7}
  366. }
  367. func (x *GetAllRolesResponse) GetItems() []*Base {
  368. if x != nil {
  369. return x.Items
  370. }
  371. return nil
  372. }
  373. type UpdateRoleRequest struct {
  374. state protoimpl.MessageState
  375. sizeCache protoimpl.SizeCache
  376. unknownFields protoimpl.UnknownFields
  377. RoleId int64 `protobuf:"varint,1,opt,name=role_id,json=roleId,proto3" json:"role_id,omitempty"`
  378. Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
  379. Users []int64 `protobuf:"varint,4,rep,packed,name=users,proto3" json:"users,omitempty"`
  380. Permissions []int64 `protobuf:"varint,5,rep,packed,name=permissions,proto3" json:"permissions,omitempty"`
  381. UpdatedBy string `protobuf:"bytes,6,opt,name=updated_by,json=updatedBy,proto3" json:"updated_by,omitempty"`
  382. }
  383. func (x *UpdateRoleRequest) Reset() {
  384. *x = UpdateRoleRequest{}
  385. if protoimpl.UnsafeEnabled {
  386. mi := &file_proto_shopping_role_service_proto_msgTypes[8]
  387. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  388. ms.StoreMessageInfo(mi)
  389. }
  390. }
  391. func (x *UpdateRoleRequest) String() string {
  392. return protoimpl.X.MessageStringOf(x)
  393. }
  394. func (*UpdateRoleRequest) ProtoMessage() {}
  395. func (x *UpdateRoleRequest) ProtoReflect() protoreflect.Message {
  396. mi := &file_proto_shopping_role_service_proto_msgTypes[8]
  397. if protoimpl.UnsafeEnabled && x != nil {
  398. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  399. if ms.LoadMessageInfo() == nil {
  400. ms.StoreMessageInfo(mi)
  401. }
  402. return ms
  403. }
  404. return mi.MessageOf(x)
  405. }
  406. // Deprecated: Use UpdateRoleRequest.ProtoReflect.Descriptor instead.
  407. func (*UpdateRoleRequest) Descriptor() ([]byte, []int) {
  408. return file_proto_shopping_role_service_proto_rawDescGZIP(), []int{8}
  409. }
  410. func (x *UpdateRoleRequest) GetRoleId() int64 {
  411. if x != nil {
  412. return x.RoleId
  413. }
  414. return 0
  415. }
  416. func (x *UpdateRoleRequest) GetDescription() string {
  417. if x != nil {
  418. return x.Description
  419. }
  420. return ""
  421. }
  422. func (x *UpdateRoleRequest) GetUsers() []int64 {
  423. if x != nil {
  424. return x.Users
  425. }
  426. return nil
  427. }
  428. func (x *UpdateRoleRequest) GetPermissions() []int64 {
  429. if x != nil {
  430. return x.Permissions
  431. }
  432. return nil
  433. }
  434. func (x *UpdateRoleRequest) GetUpdatedBy() string {
  435. if x != nil {
  436. return x.UpdatedBy
  437. }
  438. return ""
  439. }
  440. type UpdateRoleResponse struct {
  441. state protoimpl.MessageState
  442. sizeCache protoimpl.SizeCache
  443. unknownFields protoimpl.UnknownFields
  444. }
  445. func (x *UpdateRoleResponse) Reset() {
  446. *x = UpdateRoleResponse{}
  447. if protoimpl.UnsafeEnabled {
  448. mi := &file_proto_shopping_role_service_proto_msgTypes[9]
  449. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  450. ms.StoreMessageInfo(mi)
  451. }
  452. }
  453. func (x *UpdateRoleResponse) String() string {
  454. return protoimpl.X.MessageStringOf(x)
  455. }
  456. func (*UpdateRoleResponse) ProtoMessage() {}
  457. func (x *UpdateRoleResponse) ProtoReflect() protoreflect.Message {
  458. mi := &file_proto_shopping_role_service_proto_msgTypes[9]
  459. if protoimpl.UnsafeEnabled && x != nil {
  460. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  461. if ms.LoadMessageInfo() == nil {
  462. ms.StoreMessageInfo(mi)
  463. }
  464. return ms
  465. }
  466. return mi.MessageOf(x)
  467. }
  468. // Deprecated: Use UpdateRoleResponse.ProtoReflect.Descriptor instead.
  469. func (*UpdateRoleResponse) Descriptor() ([]byte, []int) {
  470. return file_proto_shopping_role_service_proto_rawDescGZIP(), []int{9}
  471. }
  472. type DeleteRoleRequest struct {
  473. state protoimpl.MessageState
  474. sizeCache protoimpl.SizeCache
  475. unknownFields protoimpl.UnknownFields
  476. RoleId int64 `protobuf:"varint,1,opt,name=role_id,json=roleId,proto3" json:"role_id,omitempty"`
  477. }
  478. func (x *DeleteRoleRequest) Reset() {
  479. *x = DeleteRoleRequest{}
  480. if protoimpl.UnsafeEnabled {
  481. mi := &file_proto_shopping_role_service_proto_msgTypes[10]
  482. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  483. ms.StoreMessageInfo(mi)
  484. }
  485. }
  486. func (x *DeleteRoleRequest) String() string {
  487. return protoimpl.X.MessageStringOf(x)
  488. }
  489. func (*DeleteRoleRequest) ProtoMessage() {}
  490. func (x *DeleteRoleRequest) ProtoReflect() protoreflect.Message {
  491. mi := &file_proto_shopping_role_service_proto_msgTypes[10]
  492. if protoimpl.UnsafeEnabled && x != nil {
  493. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  494. if ms.LoadMessageInfo() == nil {
  495. ms.StoreMessageInfo(mi)
  496. }
  497. return ms
  498. }
  499. return mi.MessageOf(x)
  500. }
  501. // Deprecated: Use DeleteRoleRequest.ProtoReflect.Descriptor instead.
  502. func (*DeleteRoleRequest) Descriptor() ([]byte, []int) {
  503. return file_proto_shopping_role_service_proto_rawDescGZIP(), []int{10}
  504. }
  505. func (x *DeleteRoleRequest) GetRoleId() int64 {
  506. if x != nil {
  507. return x.RoleId
  508. }
  509. return 0
  510. }
  511. type DeleteRoleResponse struct {
  512. state protoimpl.MessageState
  513. sizeCache protoimpl.SizeCache
  514. unknownFields protoimpl.UnknownFields
  515. }
  516. func (x *DeleteRoleResponse) Reset() {
  517. *x = DeleteRoleResponse{}
  518. if protoimpl.UnsafeEnabled {
  519. mi := &file_proto_shopping_role_service_proto_msgTypes[11]
  520. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  521. ms.StoreMessageInfo(mi)
  522. }
  523. }
  524. func (x *DeleteRoleResponse) String() string {
  525. return protoimpl.X.MessageStringOf(x)
  526. }
  527. func (*DeleteRoleResponse) ProtoMessage() {}
  528. func (x *DeleteRoleResponse) ProtoReflect() protoreflect.Message {
  529. mi := &file_proto_shopping_role_service_proto_msgTypes[11]
  530. if protoimpl.UnsafeEnabled && x != nil {
  531. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  532. if ms.LoadMessageInfo() == nil {
  533. ms.StoreMessageInfo(mi)
  534. }
  535. return ms
  536. }
  537. return mi.MessageOf(x)
  538. }
  539. // Deprecated: Use DeleteRoleResponse.ProtoReflect.Descriptor instead.
  540. func (*DeleteRoleResponse) Descriptor() ([]byte, []int) {
  541. return file_proto_shopping_role_service_proto_rawDescGZIP(), []int{11}
  542. }
  543. type ToggleRoleRequest struct {
  544. state protoimpl.MessageState
  545. sizeCache protoimpl.SizeCache
  546. unknownFields protoimpl.UnknownFields
  547. RoleId int64 `protobuf:"varint,1,opt,name=role_id,json=roleId,proto3" json:"role_id,omitempty"`
  548. Status StatusEnum `protobuf:"varint,2,opt,name=status,proto3,enum=base_shopping_service.StatusEnum" json:"status,omitempty"`
  549. UpdatedBy string `protobuf:"bytes,3,opt,name=updated_by,json=updatedBy,proto3" json:"updated_by,omitempty"`
  550. }
  551. func (x *ToggleRoleRequest) Reset() {
  552. *x = ToggleRoleRequest{}
  553. if protoimpl.UnsafeEnabled {
  554. mi := &file_proto_shopping_role_service_proto_msgTypes[12]
  555. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  556. ms.StoreMessageInfo(mi)
  557. }
  558. }
  559. func (x *ToggleRoleRequest) String() string {
  560. return protoimpl.X.MessageStringOf(x)
  561. }
  562. func (*ToggleRoleRequest) ProtoMessage() {}
  563. func (x *ToggleRoleRequest) ProtoReflect() protoreflect.Message {
  564. mi := &file_proto_shopping_role_service_proto_msgTypes[12]
  565. if protoimpl.UnsafeEnabled && x != nil {
  566. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  567. if ms.LoadMessageInfo() == nil {
  568. ms.StoreMessageInfo(mi)
  569. }
  570. return ms
  571. }
  572. return mi.MessageOf(x)
  573. }
  574. // Deprecated: Use ToggleRoleRequest.ProtoReflect.Descriptor instead.
  575. func (*ToggleRoleRequest) Descriptor() ([]byte, []int) {
  576. return file_proto_shopping_role_service_proto_rawDescGZIP(), []int{12}
  577. }
  578. func (x *ToggleRoleRequest) GetRoleId() int64 {
  579. if x != nil {
  580. return x.RoleId
  581. }
  582. return 0
  583. }
  584. func (x *ToggleRoleRequest) GetStatus() StatusEnum {
  585. if x != nil {
  586. return x.Status
  587. }
  588. return StatusEnum_UNKNOWN
  589. }
  590. func (x *ToggleRoleRequest) GetUpdatedBy() string {
  591. if x != nil {
  592. return x.UpdatedBy
  593. }
  594. return ""
  595. }
  596. type ToggleRoleResponse struct {
  597. state protoimpl.MessageState
  598. sizeCache protoimpl.SizeCache
  599. unknownFields protoimpl.UnknownFields
  600. }
  601. func (x *ToggleRoleResponse) Reset() {
  602. *x = ToggleRoleResponse{}
  603. if protoimpl.UnsafeEnabled {
  604. mi := &file_proto_shopping_role_service_proto_msgTypes[13]
  605. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  606. ms.StoreMessageInfo(mi)
  607. }
  608. }
  609. func (x *ToggleRoleResponse) String() string {
  610. return protoimpl.X.MessageStringOf(x)
  611. }
  612. func (*ToggleRoleResponse) ProtoMessage() {}
  613. func (x *ToggleRoleResponse) ProtoReflect() protoreflect.Message {
  614. mi := &file_proto_shopping_role_service_proto_msgTypes[13]
  615. if protoimpl.UnsafeEnabled && x != nil {
  616. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  617. if ms.LoadMessageInfo() == nil {
  618. ms.StoreMessageInfo(mi)
  619. }
  620. return ms
  621. }
  622. return mi.MessageOf(x)
  623. }
  624. // Deprecated: Use ToggleRoleResponse.ProtoReflect.Descriptor instead.
  625. func (*ToggleRoleResponse) Descriptor() ([]byte, []int) {
  626. return file_proto_shopping_role_service_proto_rawDescGZIP(), []int{13}
  627. }
  628. var File_proto_shopping_role_service_proto protoreflect.FileDescriptor
  629. var file_proto_shopping_role_service_proto_rawDesc = []byte{
  630. 0x0a, 0x21, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67,
  631. 0x5f, 0x72, 0x6f, 0x6c, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72,
  632. 0x6f, 0x74, 0x6f, 0x12, 0x15, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x5f, 0x72, 0x6f,
  633. 0x6c, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x1a, 0x21, 0x70, 0x72, 0x6f, 0x74,
  634. 0x6f, 0x2f, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x5f,
  635. 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xa0, 0x01,
  636. 0x0a, 0x11, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x6f, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75,
  637. 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
  638. 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72,
  639. 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65,
  640. 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x75, 0x73, 0x65,
  641. 0x72, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x03, 0x52, 0x05, 0x75, 0x73, 0x65, 0x72, 0x73, 0x12,
  642. 0x20, 0x0a, 0x0b, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x04,
  643. 0x20, 0x03, 0x28, 0x03, 0x52, 0x0b, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e,
  644. 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18,
  645. 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74,
  646. 0x22, 0x14, 0x0a, 0x12, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x6f, 0x6c, 0x65, 0x52, 0x65,
  647. 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x9a, 0x01, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x52, 0x6f,
  648. 0x6c, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a,
  649. 0x04, 0x70, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x70, 0x61, 0x67,
  650. 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02,
  651. 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x18,
  652. 0x0a, 0x07, 0x6b, 0x65, 0x79, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52,
  653. 0x07, 0x6b, 0x65, 0x79, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x39, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74,
  654. 0x75, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x21, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x5f,
  655. 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65,
  656. 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x45, 0x6e, 0x75, 0x6d, 0x52, 0x06, 0x73, 0x74, 0x61,
  657. 0x74, 0x75, 0x73, 0x22, 0x69, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x52, 0x6f, 0x6c, 0x65, 0x4c, 0x69,
  658. 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x31, 0x0a, 0x05, 0x69, 0x74,
  659. 0x65, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x62, 0x61, 0x73, 0x65,
  660. 0x5f, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63,
  661. 0x65, 0x2e, 0x52, 0x6f, 0x6c, 0x65, 0x52, 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x12, 0x1f, 0x0a,
  662. 0x0b, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01,
  663. 0x28, 0x03, 0x52, 0x0a, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x29,
  664. 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x52, 0x6f, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
  665. 0x12, 0x17, 0x0a, 0x07, 0x72, 0x6f, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
  666. 0x03, 0x52, 0x06, 0x72, 0x6f, 0x6c, 0x65, 0x49, 0x64, 0x22, 0x42, 0x0a, 0x0f, 0x47, 0x65, 0x74,
  667. 0x52, 0x6f, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x04,
  668. 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x62, 0x61, 0x73,
  669. 0x65, 0x5f, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69,
  670. 0x63, 0x65, 0x2e, 0x52, 0x6f, 0x6c, 0x65, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x14, 0x0a,
  671. 0x12, 0x47, 0x65, 0x74, 0x41, 0x6c, 0x6c, 0x52, 0x6f, 0x6c, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75,
  672. 0x65, 0x73, 0x74, 0x22, 0x48, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x41, 0x6c, 0x6c, 0x52, 0x6f, 0x6c,
  673. 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x31, 0x0a, 0x05, 0x69, 0x74,
  674. 0x65, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x62, 0x61, 0x73, 0x65,
  675. 0x5f, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63,
  676. 0x65, 0x2e, 0x42, 0x61, 0x73, 0x65, 0x52, 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x22, 0xa5, 0x01,
  677. 0x0a, 0x11, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x6f, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75,
  678. 0x65, 0x73, 0x74, 0x12, 0x17, 0x0a, 0x07, 0x72, 0x6f, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01,
  679. 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x72, 0x6f, 0x6c, 0x65, 0x49, 0x64, 0x12, 0x20, 0x0a, 0x0b,
  680. 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28,
  681. 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x14,
  682. 0x0a, 0x05, 0x75, 0x73, 0x65, 0x72, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x03, 0x52, 0x05, 0x75,
  683. 0x73, 0x65, 0x72, 0x73, 0x12, 0x20, 0x0a, 0x0b, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69,
  684. 0x6f, 0x6e, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x03, 0x52, 0x0b, 0x70, 0x65, 0x72, 0x6d, 0x69,
  685. 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65,
  686. 0x64, 0x5f, 0x62, 0x79, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x75, 0x70, 0x64, 0x61,
  687. 0x74, 0x65, 0x64, 0x42, 0x79, 0x22, 0x14, 0x0a, 0x12, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52,
  688. 0x6f, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2c, 0x0a, 0x11, 0x44,
  689. 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x6f, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
  690. 0x12, 0x17, 0x0a, 0x07, 0x72, 0x6f, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
  691. 0x03, 0x52, 0x06, 0x72, 0x6f, 0x6c, 0x65, 0x49, 0x64, 0x22, 0x14, 0x0a, 0x12, 0x44, 0x65, 0x6c,
  692. 0x65, 0x74, 0x65, 0x52, 0x6f, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22,
  693. 0x86, 0x01, 0x0a, 0x11, 0x54, 0x6f, 0x67, 0x67, 0x6c, 0x65, 0x52, 0x6f, 0x6c, 0x65, 0x52, 0x65,
  694. 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x17, 0x0a, 0x07, 0x72, 0x6f, 0x6c, 0x65, 0x5f, 0x69, 0x64,
  695. 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x72, 0x6f, 0x6c, 0x65, 0x49, 0x64, 0x12, 0x39,
  696. 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x21,
  697. 0x2e, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x5f, 0x73,
  698. 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x45, 0x6e, 0x75,
  699. 0x6d, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x75, 0x70, 0x64,
  700. 0x61, 0x74, 0x65, 0x64, 0x5f, 0x62, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x75,
  701. 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x42, 0x79, 0x22, 0x14, 0x0a, 0x12, 0x54, 0x6f, 0x67, 0x67,
  702. 0x6c, 0x65, 0x52, 0x6f, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0xc7,
  703. 0x05, 0x0a, 0x13, 0x53, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x52, 0x6f, 0x6c, 0x65, 0x53,
  704. 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x64, 0x0a, 0x0b, 0x47, 0x65, 0x74, 0x52, 0x6f, 0x6c,
  705. 0x65, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x29, 0x2e, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67,
  706. 0x5f, 0x72, 0x6f, 0x6c, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x47, 0x65,
  707. 0x74, 0x52, 0x6f, 0x6c, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
  708. 0x1a, 0x2a, 0x2e, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x5f, 0x72, 0x6f, 0x6c, 0x65,
  709. 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x6f, 0x6c, 0x65,
  710. 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x58, 0x0a, 0x07,
  711. 0x47, 0x65, 0x74, 0x52, 0x6f, 0x6c, 0x65, 0x12, 0x25, 0x2e, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69,
  712. 0x6e, 0x67, 0x5f, 0x72, 0x6f, 0x6c, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e,
  713. 0x47, 0x65, 0x74, 0x52, 0x6f, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26,
  714. 0x2e, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x5f, 0x72, 0x6f, 0x6c, 0x65, 0x5f, 0x73,
  715. 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x6f, 0x6c, 0x65, 0x52, 0x65,
  716. 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x64, 0x0a, 0x0b, 0x47, 0x65, 0x74, 0x41, 0x6c, 0x6c,
  717. 0x52, 0x6f, 0x6c, 0x65, 0x73, 0x12, 0x29, 0x2e, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67,
  718. 0x5f, 0x72, 0x6f, 0x6c, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x47, 0x65,
  719. 0x74, 0x41, 0x6c, 0x6c, 0x52, 0x6f, 0x6c, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
  720. 0x1a, 0x2a, 0x2e, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x5f, 0x72, 0x6f, 0x6c, 0x65,
  721. 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x6c, 0x6c, 0x52,
  722. 0x6f, 0x6c, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x61, 0x0a, 0x0a,
  723. 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x6f, 0x6c, 0x65, 0x12, 0x28, 0x2e, 0x73, 0x68, 0x6f,
  724. 0x70, 0x70, 0x69, 0x6e, 0x67, 0x5f, 0x72, 0x6f, 0x6c, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69,
  725. 0x63, 0x65, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x6f, 0x6c, 0x65, 0x52, 0x65, 0x71,
  726. 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x5f,
  727. 0x72, 0x6f, 0x6c, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x43, 0x72, 0x65,
  728. 0x61, 0x74, 0x65, 0x52, 0x6f, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12,
  729. 0x61, 0x0a, 0x0a, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x6f, 0x6c, 0x65, 0x12, 0x28, 0x2e,
  730. 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x5f, 0x72, 0x6f, 0x6c, 0x65, 0x5f, 0x73, 0x65,
  731. 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x6f, 0x6c, 0x65,
  732. 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69,
  733. 0x6e, 0x67, 0x5f, 0x72, 0x6f, 0x6c, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e,
  734. 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x6f, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
  735. 0x73, 0x65, 0x12, 0x61, 0x0a, 0x0a, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x6f, 0x6c, 0x65,
  736. 0x12, 0x28, 0x2e, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x5f, 0x72, 0x6f, 0x6c, 0x65,
  737. 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52,
  738. 0x6f, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x73, 0x68, 0x6f,
  739. 0x70, 0x70, 0x69, 0x6e, 0x67, 0x5f, 0x72, 0x6f, 0x6c, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69,
  740. 0x63, 0x65, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x6f, 0x6c, 0x65, 0x52, 0x65, 0x73,
  741. 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x61, 0x0a, 0x0a, 0x54, 0x6f, 0x67, 0x67, 0x6c, 0x65, 0x52,
  742. 0x6f, 0x6c, 0x65, 0x12, 0x28, 0x2e, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x5f, 0x72,
  743. 0x6f, 0x6c, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x54, 0x6f, 0x67, 0x67,
  744. 0x6c, 0x65, 0x52, 0x6f, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e,
  745. 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x5f, 0x72, 0x6f, 0x6c, 0x65, 0x5f, 0x73, 0x65,
  746. 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x54, 0x6f, 0x67, 0x67, 0x6c, 0x65, 0x52, 0x6f, 0x6c, 0x65,
  747. 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x1a, 0x5a, 0x18, 0x2e, 0x2f, 0x70, 0x72,
  748. 0x6f, 0x74, 0x6f, 0x3b, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x5f, 0x73, 0x65, 0x72,
  749. 0x76, 0x69, 0x63, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  750. }
  751. var (
  752. file_proto_shopping_role_service_proto_rawDescOnce sync.Once
  753. file_proto_shopping_role_service_proto_rawDescData = file_proto_shopping_role_service_proto_rawDesc
  754. )
  755. func file_proto_shopping_role_service_proto_rawDescGZIP() []byte {
  756. file_proto_shopping_role_service_proto_rawDescOnce.Do(func() {
  757. file_proto_shopping_role_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_proto_shopping_role_service_proto_rawDescData)
  758. })
  759. return file_proto_shopping_role_service_proto_rawDescData
  760. }
  761. var file_proto_shopping_role_service_proto_msgTypes = make([]protoimpl.MessageInfo, 14)
  762. var file_proto_shopping_role_service_proto_goTypes = []interface{}{
  763. (*CreateRoleRequest)(nil), // 0: shopping_role_service.CreateRoleRequest
  764. (*CreateRoleResponse)(nil), // 1: shopping_role_service.CreateRoleResponse
  765. (*GetRoleListRequest)(nil), // 2: shopping_role_service.GetRoleListRequest
  766. (*GetRoleListResponse)(nil), // 3: shopping_role_service.GetRoleListResponse
  767. (*GetRoleRequest)(nil), // 4: shopping_role_service.GetRoleRequest
  768. (*GetRoleResponse)(nil), // 5: shopping_role_service.GetRoleResponse
  769. (*GetAllRolesRequest)(nil), // 6: shopping_role_service.GetAllRolesRequest
  770. (*GetAllRolesResponse)(nil), // 7: shopping_role_service.GetAllRolesResponse
  771. (*UpdateRoleRequest)(nil), // 8: shopping_role_service.UpdateRoleRequest
  772. (*UpdateRoleResponse)(nil), // 9: shopping_role_service.UpdateRoleResponse
  773. (*DeleteRoleRequest)(nil), // 10: shopping_role_service.DeleteRoleRequest
  774. (*DeleteRoleResponse)(nil), // 11: shopping_role_service.DeleteRoleResponse
  775. (*ToggleRoleRequest)(nil), // 12: shopping_role_service.ToggleRoleRequest
  776. (*ToggleRoleResponse)(nil), // 13: shopping_role_service.ToggleRoleResponse
  777. (StatusEnum)(0), // 14: base_shopping_service.StatusEnum
  778. (*Role)(nil), // 15: base_shopping_service.Role
  779. (*Base)(nil), // 16: base_shopping_service.Base
  780. }
  781. var file_proto_shopping_role_service_proto_depIdxs = []int32{
  782. 14, // 0: shopping_role_service.GetRoleListRequest.status:type_name -> base_shopping_service.StatusEnum
  783. 15, // 1: shopping_role_service.GetRoleListResponse.items:type_name -> base_shopping_service.Role
  784. 15, // 2: shopping_role_service.GetRoleResponse.data:type_name -> base_shopping_service.Role
  785. 16, // 3: shopping_role_service.GetAllRolesResponse.items:type_name -> base_shopping_service.Base
  786. 14, // 4: shopping_role_service.ToggleRoleRequest.status:type_name -> base_shopping_service.StatusEnum
  787. 2, // 5: shopping_role_service.ShoppingRoleService.GetRoleList:input_type -> shopping_role_service.GetRoleListRequest
  788. 4, // 6: shopping_role_service.ShoppingRoleService.GetRole:input_type -> shopping_role_service.GetRoleRequest
  789. 6, // 7: shopping_role_service.ShoppingRoleService.GetAllRoles:input_type -> shopping_role_service.GetAllRolesRequest
  790. 0, // 8: shopping_role_service.ShoppingRoleService.CreateRole:input_type -> shopping_role_service.CreateRoleRequest
  791. 8, // 9: shopping_role_service.ShoppingRoleService.UpdateRole:input_type -> shopping_role_service.UpdateRoleRequest
  792. 10, // 10: shopping_role_service.ShoppingRoleService.DeleteRole:input_type -> shopping_role_service.DeleteRoleRequest
  793. 12, // 11: shopping_role_service.ShoppingRoleService.ToggleRole:input_type -> shopping_role_service.ToggleRoleRequest
  794. 3, // 12: shopping_role_service.ShoppingRoleService.GetRoleList:output_type -> shopping_role_service.GetRoleListResponse
  795. 5, // 13: shopping_role_service.ShoppingRoleService.GetRole:output_type -> shopping_role_service.GetRoleResponse
  796. 7, // 14: shopping_role_service.ShoppingRoleService.GetAllRoles:output_type -> shopping_role_service.GetAllRolesResponse
  797. 1, // 15: shopping_role_service.ShoppingRoleService.CreateRole:output_type -> shopping_role_service.CreateRoleResponse
  798. 9, // 16: shopping_role_service.ShoppingRoleService.UpdateRole:output_type -> shopping_role_service.UpdateRoleResponse
  799. 11, // 17: shopping_role_service.ShoppingRoleService.DeleteRole:output_type -> shopping_role_service.DeleteRoleResponse
  800. 13, // 18: shopping_role_service.ShoppingRoleService.ToggleRole:output_type -> shopping_role_service.ToggleRoleResponse
  801. 12, // [12:19] is the sub-list for method output_type
  802. 5, // [5:12] is the sub-list for method input_type
  803. 5, // [5:5] is the sub-list for extension type_name
  804. 5, // [5:5] is the sub-list for extension extendee
  805. 0, // [0:5] is the sub-list for field type_name
  806. }
  807. func init() { file_proto_shopping_role_service_proto_init() }
  808. func file_proto_shopping_role_service_proto_init() {
  809. if File_proto_shopping_role_service_proto != nil {
  810. return
  811. }
  812. file_proto_base_shopping_service_proto_init()
  813. if !protoimpl.UnsafeEnabled {
  814. file_proto_shopping_role_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  815. switch v := v.(*CreateRoleRequest); i {
  816. case 0:
  817. return &v.state
  818. case 1:
  819. return &v.sizeCache
  820. case 2:
  821. return &v.unknownFields
  822. default:
  823. return nil
  824. }
  825. }
  826. file_proto_shopping_role_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  827. switch v := v.(*CreateRoleResponse); i {
  828. case 0:
  829. return &v.state
  830. case 1:
  831. return &v.sizeCache
  832. case 2:
  833. return &v.unknownFields
  834. default:
  835. return nil
  836. }
  837. }
  838. file_proto_shopping_role_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  839. switch v := v.(*GetRoleListRequest); i {
  840. case 0:
  841. return &v.state
  842. case 1:
  843. return &v.sizeCache
  844. case 2:
  845. return &v.unknownFields
  846. default:
  847. return nil
  848. }
  849. }
  850. file_proto_shopping_role_service_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
  851. switch v := v.(*GetRoleListResponse); i {
  852. case 0:
  853. return &v.state
  854. case 1:
  855. return &v.sizeCache
  856. case 2:
  857. return &v.unknownFields
  858. default:
  859. return nil
  860. }
  861. }
  862. file_proto_shopping_role_service_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
  863. switch v := v.(*GetRoleRequest); i {
  864. case 0:
  865. return &v.state
  866. case 1:
  867. return &v.sizeCache
  868. case 2:
  869. return &v.unknownFields
  870. default:
  871. return nil
  872. }
  873. }
  874. file_proto_shopping_role_service_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
  875. switch v := v.(*GetRoleResponse); i {
  876. case 0:
  877. return &v.state
  878. case 1:
  879. return &v.sizeCache
  880. case 2:
  881. return &v.unknownFields
  882. default:
  883. return nil
  884. }
  885. }
  886. file_proto_shopping_role_service_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
  887. switch v := v.(*GetAllRolesRequest); i {
  888. case 0:
  889. return &v.state
  890. case 1:
  891. return &v.sizeCache
  892. case 2:
  893. return &v.unknownFields
  894. default:
  895. return nil
  896. }
  897. }
  898. file_proto_shopping_role_service_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
  899. switch v := v.(*GetAllRolesResponse); i {
  900. case 0:
  901. return &v.state
  902. case 1:
  903. return &v.sizeCache
  904. case 2:
  905. return &v.unknownFields
  906. default:
  907. return nil
  908. }
  909. }
  910. file_proto_shopping_role_service_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
  911. switch v := v.(*UpdateRoleRequest); i {
  912. case 0:
  913. return &v.state
  914. case 1:
  915. return &v.sizeCache
  916. case 2:
  917. return &v.unknownFields
  918. default:
  919. return nil
  920. }
  921. }
  922. file_proto_shopping_role_service_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
  923. switch v := v.(*UpdateRoleResponse); i {
  924. case 0:
  925. return &v.state
  926. case 1:
  927. return &v.sizeCache
  928. case 2:
  929. return &v.unknownFields
  930. default:
  931. return nil
  932. }
  933. }
  934. file_proto_shopping_role_service_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
  935. switch v := v.(*DeleteRoleRequest); i {
  936. case 0:
  937. return &v.state
  938. case 1:
  939. return &v.sizeCache
  940. case 2:
  941. return &v.unknownFields
  942. default:
  943. return nil
  944. }
  945. }
  946. file_proto_shopping_role_service_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
  947. switch v := v.(*DeleteRoleResponse); i {
  948. case 0:
  949. return &v.state
  950. case 1:
  951. return &v.sizeCache
  952. case 2:
  953. return &v.unknownFields
  954. default:
  955. return nil
  956. }
  957. }
  958. file_proto_shopping_role_service_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} {
  959. switch v := v.(*ToggleRoleRequest); i {
  960. case 0:
  961. return &v.state
  962. case 1:
  963. return &v.sizeCache
  964. case 2:
  965. return &v.unknownFields
  966. default:
  967. return nil
  968. }
  969. }
  970. file_proto_shopping_role_service_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} {
  971. switch v := v.(*ToggleRoleResponse); i {
  972. case 0:
  973. return &v.state
  974. case 1:
  975. return &v.sizeCache
  976. case 2:
  977. return &v.unknownFields
  978. default:
  979. return nil
  980. }
  981. }
  982. }
  983. type x struct{}
  984. out := protoimpl.TypeBuilder{
  985. File: protoimpl.DescBuilder{
  986. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  987. RawDescriptor: file_proto_shopping_role_service_proto_rawDesc,
  988. NumEnums: 0,
  989. NumMessages: 14,
  990. NumExtensions: 0,
  991. NumServices: 1,
  992. },
  993. GoTypes: file_proto_shopping_role_service_proto_goTypes,
  994. DependencyIndexes: file_proto_shopping_role_service_proto_depIdxs,
  995. MessageInfos: file_proto_shopping_role_service_proto_msgTypes,
  996. }.Build()
  997. File_proto_shopping_role_service_proto = out.File
  998. file_proto_shopping_role_service_proto_rawDesc = nil
  999. file_proto_shopping_role_service_proto_goTypes = nil
  1000. file_proto_shopping_role_service_proto_depIdxs = nil
  1001. }