base_shopping_service.pb.go 89 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473
  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/base_shopping_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 StatusEnum int32
  20. const (
  21. StatusEnum_UNKNOWN StatusEnum = 0
  22. StatusEnum_ENABLED StatusEnum = 1
  23. StatusEnum_DISABLED StatusEnum = 2
  24. StatusEnum_DELETED StatusEnum = 3
  25. )
  26. // Enum value maps for StatusEnum.
  27. var (
  28. StatusEnum_name = map[int32]string{
  29. 0: "UNKNOWN",
  30. 1: "ENABLED",
  31. 2: "DISABLED",
  32. 3: "DELETED",
  33. }
  34. StatusEnum_value = map[string]int32{
  35. "UNKNOWN": 0,
  36. "ENABLED": 1,
  37. "DISABLED": 2,
  38. "DELETED": 3,
  39. }
  40. )
  41. func (x StatusEnum) Enum() *StatusEnum {
  42. p := new(StatusEnum)
  43. *p = x
  44. return p
  45. }
  46. func (x StatusEnum) String() string {
  47. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  48. }
  49. func (StatusEnum) Descriptor() protoreflect.EnumDescriptor {
  50. return file_proto_base_shopping_service_proto_enumTypes[0].Descriptor()
  51. }
  52. func (StatusEnum) Type() protoreflect.EnumType {
  53. return &file_proto_base_shopping_service_proto_enumTypes[0]
  54. }
  55. func (x StatusEnum) Number() protoreflect.EnumNumber {
  56. return protoreflect.EnumNumber(x)
  57. }
  58. // Deprecated: Use StatusEnum.Descriptor instead.
  59. func (StatusEnum) EnumDescriptor() ([]byte, []int) {
  60. return file_proto_base_shopping_service_proto_rawDescGZIP(), []int{0}
  61. }
  62. type OrderStatusEnum int32
  63. const (
  64. OrderStatusEnum_ORDER_UNKNOWN OrderStatusEnum = 0
  65. OrderStatusEnum_ORDER_CREATED OrderStatusEnum = 1
  66. OrderStatusEnum_ORDER_PENDING_PAYMENT OrderStatusEnum = 2
  67. OrderStatusEnum_ORDER_PAID OrderStatusEnum = 3
  68. OrderStatusEnum_ORDER_PROCESSING OrderStatusEnum = 4
  69. OrderStatusEnum_ORDER_SHIPPED OrderStatusEnum = 5
  70. OrderStatusEnum_ORDER_COMPLETED OrderStatusEnum = 6
  71. OrderStatusEnum_ORDER_CANCELED OrderStatusEnum = 7
  72. OrderStatusEnum_ORDER_REFUND_IN_PROGRESS OrderStatusEnum = 8
  73. OrderStatusEnum_ORDER_REFUNDED OrderStatusEnum = 9
  74. OrderStatusEnum_ORDER_RETURN_IN_PROGRESS OrderStatusEnum = 10
  75. OrderStatusEnum_ORDER_RETURNED OrderStatusEnum = 11
  76. OrderStatusEnum_UNDER_REVIEW OrderStatusEnum = 12
  77. )
  78. // Enum value maps for OrderStatusEnum.
  79. var (
  80. OrderStatusEnum_name = map[int32]string{
  81. 0: "ORDER_UNKNOWN",
  82. 1: "ORDER_CREATED",
  83. 2: "ORDER_PENDING_PAYMENT",
  84. 3: "ORDER_PAID",
  85. 4: "ORDER_PROCESSING",
  86. 5: "ORDER_SHIPPED",
  87. 6: "ORDER_COMPLETED",
  88. 7: "ORDER_CANCELED",
  89. 8: "ORDER_REFUND_IN_PROGRESS",
  90. 9: "ORDER_REFUNDED",
  91. 10: "ORDER_RETURN_IN_PROGRESS",
  92. 11: "ORDER_RETURNED",
  93. 12: "UNDER_REVIEW",
  94. }
  95. OrderStatusEnum_value = map[string]int32{
  96. "ORDER_UNKNOWN": 0,
  97. "ORDER_CREATED": 1,
  98. "ORDER_PENDING_PAYMENT": 2,
  99. "ORDER_PAID": 3,
  100. "ORDER_PROCESSING": 4,
  101. "ORDER_SHIPPED": 5,
  102. "ORDER_COMPLETED": 6,
  103. "ORDER_CANCELED": 7,
  104. "ORDER_REFUND_IN_PROGRESS": 8,
  105. "ORDER_REFUNDED": 9,
  106. "ORDER_RETURN_IN_PROGRESS": 10,
  107. "ORDER_RETURNED": 11,
  108. "UNDER_REVIEW": 12,
  109. }
  110. )
  111. func (x OrderStatusEnum) Enum() *OrderStatusEnum {
  112. p := new(OrderStatusEnum)
  113. *p = x
  114. return p
  115. }
  116. func (x OrderStatusEnum) String() string {
  117. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  118. }
  119. func (OrderStatusEnum) Descriptor() protoreflect.EnumDescriptor {
  120. return file_proto_base_shopping_service_proto_enumTypes[1].Descriptor()
  121. }
  122. func (OrderStatusEnum) Type() protoreflect.EnumType {
  123. return &file_proto_base_shopping_service_proto_enumTypes[1]
  124. }
  125. func (x OrderStatusEnum) Number() protoreflect.EnumNumber {
  126. return protoreflect.EnumNumber(x)
  127. }
  128. // Deprecated: Use OrderStatusEnum.Descriptor instead.
  129. func (OrderStatusEnum) EnumDescriptor() ([]byte, []int) {
  130. return file_proto_base_shopping_service_proto_rawDescGZIP(), []int{1}
  131. }
  132. type PaymentStatusEnum int32
  133. const (
  134. PaymentStatusEnum_PAYMENT_UNKNOWN PaymentStatusEnum = 0
  135. PaymentStatusEnum_PAYMENT_PENDING PaymentStatusEnum = 1 // 待支付 订单已创建,但尚未支付。
  136. PaymentStatusEnum_PAYMENT_PROCESSING PaymentStatusEnum = 2 // 支付中 支付请求已经提交,正在处理中。
  137. PaymentStatusEnum_PAYMENT_PAID PaymentStatusEnum = 3 // 支付成功 支付已成功完成。
  138. PaymentStatusEnum_PAYMENT_FAILED PaymentStatusEnum = 4 // 支付失败 支付尝试失败。
  139. PaymentStatusEnum_PAYMENT_CANCELED PaymentStatusEnum = 5 // 取消支付 用户或系统取消了支付。
  140. PaymentStatusEnum_PAYMENT_REFUNDING PaymentStatusEnum = 6 // 退款中 用户请求退款,退款正在处理中。
  141. PaymentStatusEnum_PAYMENT_REFUNDED PaymentStatusEnum = 7 // 已退款 退款已成功完成。
  142. PaymentStatusEnum_PAYMENT_PARTIALLY_REFUNDING PaymentStatusEnum = 8 // Refunding 部分退款中 用户请求部分退款,部分退款正在处理中。
  143. PaymentStatusEnum_PAYMENT_PARTIALLY_REFUNDED PaymentStatusEnum = 9 // Refunded 已部分退款 部分退款已成功完成。
  144. )
  145. // Enum value maps for PaymentStatusEnum.
  146. var (
  147. PaymentStatusEnum_name = map[int32]string{
  148. 0: "PAYMENT_UNKNOWN",
  149. 1: "PAYMENT_PENDING",
  150. 2: "PAYMENT_PROCESSING",
  151. 3: "PAYMENT_PAID",
  152. 4: "PAYMENT_FAILED",
  153. 5: "PAYMENT_CANCELED",
  154. 6: "PAYMENT_REFUNDING",
  155. 7: "PAYMENT_REFUNDED",
  156. 8: "PAYMENT_PARTIALLY_REFUNDING",
  157. 9: "PAYMENT_PARTIALLY_REFUNDED",
  158. }
  159. PaymentStatusEnum_value = map[string]int32{
  160. "PAYMENT_UNKNOWN": 0,
  161. "PAYMENT_PENDING": 1,
  162. "PAYMENT_PROCESSING": 2,
  163. "PAYMENT_PAID": 3,
  164. "PAYMENT_FAILED": 4,
  165. "PAYMENT_CANCELED": 5,
  166. "PAYMENT_REFUNDING": 6,
  167. "PAYMENT_REFUNDED": 7,
  168. "PAYMENT_PARTIALLY_REFUNDING": 8,
  169. "PAYMENT_PARTIALLY_REFUNDED": 9,
  170. }
  171. )
  172. func (x PaymentStatusEnum) Enum() *PaymentStatusEnum {
  173. p := new(PaymentStatusEnum)
  174. *p = x
  175. return p
  176. }
  177. func (x PaymentStatusEnum) String() string {
  178. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  179. }
  180. func (PaymentStatusEnum) Descriptor() protoreflect.EnumDescriptor {
  181. return file_proto_base_shopping_service_proto_enumTypes[2].Descriptor()
  182. }
  183. func (PaymentStatusEnum) Type() protoreflect.EnumType {
  184. return &file_proto_base_shopping_service_proto_enumTypes[2]
  185. }
  186. func (x PaymentStatusEnum) Number() protoreflect.EnumNumber {
  187. return protoreflect.EnumNumber(x)
  188. }
  189. // Deprecated: Use PaymentStatusEnum.Descriptor instead.
  190. func (PaymentStatusEnum) EnumDescriptor() ([]byte, []int) {
  191. return file_proto_base_shopping_service_proto_rawDescGZIP(), []int{2}
  192. }
  193. type PaymentMethodEnum int32
  194. const (
  195. PaymentMethodEnum_Payment_Method_UNKNOWN PaymentMethodEnum = 0 // 未知类型
  196. PaymentMethodEnum_PAYMENT_METHOD_BANKCARD PaymentMethodEnum = 1 // 银行卡
  197. PaymentMethodEnum_PAYMENT_METHOD_ALIPAY PaymentMethodEnum = 3 // 支付宝
  198. PaymentMethodEnum_PAYMENT_METHOD_WECHAT_PAY PaymentMethodEnum = 4 // 微信
  199. )
  200. // Enum value maps for PaymentMethodEnum.
  201. var (
  202. PaymentMethodEnum_name = map[int32]string{
  203. 0: "Payment_Method_UNKNOWN",
  204. 1: "PAYMENT_METHOD_BANKCARD",
  205. 3: "PAYMENT_METHOD_ALIPAY",
  206. 4: "PAYMENT_METHOD_WECHAT_PAY",
  207. }
  208. PaymentMethodEnum_value = map[string]int32{
  209. "Payment_Method_UNKNOWN": 0,
  210. "PAYMENT_METHOD_BANKCARD": 1,
  211. "PAYMENT_METHOD_ALIPAY": 3,
  212. "PAYMENT_METHOD_WECHAT_PAY": 4,
  213. }
  214. )
  215. func (x PaymentMethodEnum) Enum() *PaymentMethodEnum {
  216. p := new(PaymentMethodEnum)
  217. *p = x
  218. return p
  219. }
  220. func (x PaymentMethodEnum) String() string {
  221. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  222. }
  223. func (PaymentMethodEnum) Descriptor() protoreflect.EnumDescriptor {
  224. return file_proto_base_shopping_service_proto_enumTypes[3].Descriptor()
  225. }
  226. func (PaymentMethodEnum) Type() protoreflect.EnumType {
  227. return &file_proto_base_shopping_service_proto_enumTypes[3]
  228. }
  229. func (x PaymentMethodEnum) Number() protoreflect.EnumNumber {
  230. return protoreflect.EnumNumber(x)
  231. }
  232. // Deprecated: Use PaymentMethodEnum.Descriptor instead.
  233. func (PaymentMethodEnum) EnumDescriptor() ([]byte, []int) {
  234. return file_proto_base_shopping_service_proto_rawDescGZIP(), []int{3}
  235. }
  236. type Address struct {
  237. state protoimpl.MessageState
  238. sizeCache protoimpl.SizeCache
  239. unknownFields protoimpl.UnknownFields
  240. Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
  241. UserId int64 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
  242. Country string `protobuf:"bytes,3,opt,name=country,proto3" json:"country,omitempty"`
  243. Province string `protobuf:"bytes,4,opt,name=province,proto3" json:"province,omitempty"`
  244. City string `protobuf:"bytes,5,opt,name=city,proto3" json:"city,omitempty"`
  245. District string `protobuf:"bytes,6,opt,name=district,proto3" json:"district,omitempty"`
  246. Street string `protobuf:"bytes,7,opt,name=street,proto3" json:"street,omitempty"`
  247. Remark string `protobuf:"bytes,8,opt,name=remark,proto3" json:"remark,omitempty"`
  248. IsDefault int32 `protobuf:"varint,9,opt,name=is_default,json=isDefault,proto3" json:"is_default,omitempty"`
  249. Location *Location `protobuf:"bytes,10,opt,name=location,proto3" json:"location,omitempty"`
  250. CreatedAt int64 `protobuf:"varint,11,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
  251. UpdatedAt int64 `protobuf:"varint,12,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
  252. }
  253. func (x *Address) Reset() {
  254. *x = Address{}
  255. if protoimpl.UnsafeEnabled {
  256. mi := &file_proto_base_shopping_service_proto_msgTypes[0]
  257. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  258. ms.StoreMessageInfo(mi)
  259. }
  260. }
  261. func (x *Address) String() string {
  262. return protoimpl.X.MessageStringOf(x)
  263. }
  264. func (*Address) ProtoMessage() {}
  265. func (x *Address) ProtoReflect() protoreflect.Message {
  266. mi := &file_proto_base_shopping_service_proto_msgTypes[0]
  267. if protoimpl.UnsafeEnabled && x != nil {
  268. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  269. if ms.LoadMessageInfo() == nil {
  270. ms.StoreMessageInfo(mi)
  271. }
  272. return ms
  273. }
  274. return mi.MessageOf(x)
  275. }
  276. // Deprecated: Use Address.ProtoReflect.Descriptor instead.
  277. func (*Address) Descriptor() ([]byte, []int) {
  278. return file_proto_base_shopping_service_proto_rawDescGZIP(), []int{0}
  279. }
  280. func (x *Address) GetId() int64 {
  281. if x != nil {
  282. return x.Id
  283. }
  284. return 0
  285. }
  286. func (x *Address) GetUserId() int64 {
  287. if x != nil {
  288. return x.UserId
  289. }
  290. return 0
  291. }
  292. func (x *Address) GetCountry() string {
  293. if x != nil {
  294. return x.Country
  295. }
  296. return ""
  297. }
  298. func (x *Address) GetProvince() string {
  299. if x != nil {
  300. return x.Province
  301. }
  302. return ""
  303. }
  304. func (x *Address) GetCity() string {
  305. if x != nil {
  306. return x.City
  307. }
  308. return ""
  309. }
  310. func (x *Address) GetDistrict() string {
  311. if x != nil {
  312. return x.District
  313. }
  314. return ""
  315. }
  316. func (x *Address) GetStreet() string {
  317. if x != nil {
  318. return x.Street
  319. }
  320. return ""
  321. }
  322. func (x *Address) GetRemark() string {
  323. if x != nil {
  324. return x.Remark
  325. }
  326. return ""
  327. }
  328. func (x *Address) GetIsDefault() int32 {
  329. if x != nil {
  330. return x.IsDefault
  331. }
  332. return 0
  333. }
  334. func (x *Address) GetLocation() *Location {
  335. if x != nil {
  336. return x.Location
  337. }
  338. return nil
  339. }
  340. func (x *Address) GetCreatedAt() int64 {
  341. if x != nil {
  342. return x.CreatedAt
  343. }
  344. return 0
  345. }
  346. func (x *Address) GetUpdatedAt() int64 {
  347. if x != nil {
  348. return x.UpdatedAt
  349. }
  350. return 0
  351. }
  352. type Location struct {
  353. state protoimpl.MessageState
  354. sizeCache protoimpl.SizeCache
  355. unknownFields protoimpl.UnknownFields
  356. Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
  357. AddressId int64 `protobuf:"varint,2,opt,name=address_id,json=addressId,proto3" json:"address_id,omitempty"`
  358. Lon float32 `protobuf:"fixed32,3,opt,name=lon,proto3" json:"lon,omitempty"`
  359. Lat float32 `protobuf:"fixed32,4,opt,name=lat,proto3" json:"lat,omitempty"`
  360. }
  361. func (x *Location) Reset() {
  362. *x = Location{}
  363. if protoimpl.UnsafeEnabled {
  364. mi := &file_proto_base_shopping_service_proto_msgTypes[1]
  365. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  366. ms.StoreMessageInfo(mi)
  367. }
  368. }
  369. func (x *Location) String() string {
  370. return protoimpl.X.MessageStringOf(x)
  371. }
  372. func (*Location) ProtoMessage() {}
  373. func (x *Location) ProtoReflect() protoreflect.Message {
  374. mi := &file_proto_base_shopping_service_proto_msgTypes[1]
  375. if protoimpl.UnsafeEnabled && x != nil {
  376. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  377. if ms.LoadMessageInfo() == nil {
  378. ms.StoreMessageInfo(mi)
  379. }
  380. return ms
  381. }
  382. return mi.MessageOf(x)
  383. }
  384. // Deprecated: Use Location.ProtoReflect.Descriptor instead.
  385. func (*Location) Descriptor() ([]byte, []int) {
  386. return file_proto_base_shopping_service_proto_rawDescGZIP(), []int{1}
  387. }
  388. func (x *Location) GetId() int64 {
  389. if x != nil {
  390. return x.Id
  391. }
  392. return 0
  393. }
  394. func (x *Location) GetAddressId() int64 {
  395. if x != nil {
  396. return x.AddressId
  397. }
  398. return 0
  399. }
  400. func (x *Location) GetLon() float32 {
  401. if x != nil {
  402. return x.Lon
  403. }
  404. return 0
  405. }
  406. func (x *Location) GetLat() float32 {
  407. if x != nil {
  408. return x.Lat
  409. }
  410. return 0
  411. }
  412. type Category struct {
  413. state protoimpl.MessageState
  414. sizeCache protoimpl.SizeCache
  415. unknownFields protoimpl.UnknownFields
  416. Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
  417. Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
  418. Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
  419. CreatedAt int64 `protobuf:"varint,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
  420. UpdatedAt int64 `protobuf:"varint,5,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
  421. ParentCategoryId int64 `protobuf:"varint,6,opt,name=parent_category_id,json=parentCategoryId,proto3" json:"parent_category_id,omitempty"`
  422. }
  423. func (x *Category) Reset() {
  424. *x = Category{}
  425. if protoimpl.UnsafeEnabled {
  426. mi := &file_proto_base_shopping_service_proto_msgTypes[2]
  427. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  428. ms.StoreMessageInfo(mi)
  429. }
  430. }
  431. func (x *Category) String() string {
  432. return protoimpl.X.MessageStringOf(x)
  433. }
  434. func (*Category) ProtoMessage() {}
  435. func (x *Category) ProtoReflect() protoreflect.Message {
  436. mi := &file_proto_base_shopping_service_proto_msgTypes[2]
  437. if protoimpl.UnsafeEnabled && x != nil {
  438. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  439. if ms.LoadMessageInfo() == nil {
  440. ms.StoreMessageInfo(mi)
  441. }
  442. return ms
  443. }
  444. return mi.MessageOf(x)
  445. }
  446. // Deprecated: Use Category.ProtoReflect.Descriptor instead.
  447. func (*Category) Descriptor() ([]byte, []int) {
  448. return file_proto_base_shopping_service_proto_rawDescGZIP(), []int{2}
  449. }
  450. func (x *Category) GetId() int64 {
  451. if x != nil {
  452. return x.Id
  453. }
  454. return 0
  455. }
  456. func (x *Category) GetName() string {
  457. if x != nil {
  458. return x.Name
  459. }
  460. return ""
  461. }
  462. func (x *Category) GetDescription() string {
  463. if x != nil {
  464. return x.Description
  465. }
  466. return ""
  467. }
  468. func (x *Category) GetCreatedAt() int64 {
  469. if x != nil {
  470. return x.CreatedAt
  471. }
  472. return 0
  473. }
  474. func (x *Category) GetUpdatedAt() int64 {
  475. if x != nil {
  476. return x.UpdatedAt
  477. }
  478. return 0
  479. }
  480. func (x *Category) GetParentCategoryId() int64 {
  481. if x != nil {
  482. return x.ParentCategoryId
  483. }
  484. return 0
  485. }
  486. type Order struct {
  487. state protoimpl.MessageState
  488. sizeCache protoimpl.SizeCache
  489. unknownFields protoimpl.UnknownFields
  490. Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
  491. UserId int64 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
  492. User *User `protobuf:"bytes,3,opt,name=user,proto3" json:"user,omitempty"`
  493. AddressId int64 `protobuf:"varint,4,opt,name=address_id,json=addressId,proto3" json:"address_id,omitempty"`
  494. Address *Address `protobuf:"bytes,5,opt,name=address,proto3" json:"address,omitempty"`
  495. TotalAmount int32 `protobuf:"varint,6,opt,name=total_amount,json=totalAmount,proto3" json:"total_amount,omitempty"`
  496. Status OrderStatusEnum `protobuf:"varint,7,opt,name=status,proto3,enum=base_shopping_service.OrderStatusEnum" json:"status,omitempty"`
  497. PaymentMethod PaymentMethodEnum `protobuf:"varint,8,opt,name=payment_method,json=paymentMethod,proto3,enum=base_shopping_service.PaymentMethodEnum" json:"payment_method,omitempty"`
  498. CreatedAt int64 `protobuf:"varint,9,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
  499. UpdatedAt int64 `protobuf:"varint,10,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
  500. OrderItems []*OrderItem `protobuf:"bytes,11,rep,name=order_items,json=orderItems,proto3" json:"order_items,omitempty"`
  501. Payment *Payment `protobuf:"bytes,12,opt,name=payment,proto3" json:"payment,omitempty"`
  502. }
  503. func (x *Order) Reset() {
  504. *x = Order{}
  505. if protoimpl.UnsafeEnabled {
  506. mi := &file_proto_base_shopping_service_proto_msgTypes[3]
  507. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  508. ms.StoreMessageInfo(mi)
  509. }
  510. }
  511. func (x *Order) String() string {
  512. return protoimpl.X.MessageStringOf(x)
  513. }
  514. func (*Order) ProtoMessage() {}
  515. func (x *Order) ProtoReflect() protoreflect.Message {
  516. mi := &file_proto_base_shopping_service_proto_msgTypes[3]
  517. if protoimpl.UnsafeEnabled && x != nil {
  518. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  519. if ms.LoadMessageInfo() == nil {
  520. ms.StoreMessageInfo(mi)
  521. }
  522. return ms
  523. }
  524. return mi.MessageOf(x)
  525. }
  526. // Deprecated: Use Order.ProtoReflect.Descriptor instead.
  527. func (*Order) Descriptor() ([]byte, []int) {
  528. return file_proto_base_shopping_service_proto_rawDescGZIP(), []int{3}
  529. }
  530. func (x *Order) GetId() int64 {
  531. if x != nil {
  532. return x.Id
  533. }
  534. return 0
  535. }
  536. func (x *Order) GetUserId() int64 {
  537. if x != nil {
  538. return x.UserId
  539. }
  540. return 0
  541. }
  542. func (x *Order) GetUser() *User {
  543. if x != nil {
  544. return x.User
  545. }
  546. return nil
  547. }
  548. func (x *Order) GetAddressId() int64 {
  549. if x != nil {
  550. return x.AddressId
  551. }
  552. return 0
  553. }
  554. func (x *Order) GetAddress() *Address {
  555. if x != nil {
  556. return x.Address
  557. }
  558. return nil
  559. }
  560. func (x *Order) GetTotalAmount() int32 {
  561. if x != nil {
  562. return x.TotalAmount
  563. }
  564. return 0
  565. }
  566. func (x *Order) GetStatus() OrderStatusEnum {
  567. if x != nil {
  568. return x.Status
  569. }
  570. return OrderStatusEnum_ORDER_UNKNOWN
  571. }
  572. func (x *Order) GetPaymentMethod() PaymentMethodEnum {
  573. if x != nil {
  574. return x.PaymentMethod
  575. }
  576. return PaymentMethodEnum_Payment_Method_UNKNOWN
  577. }
  578. func (x *Order) GetCreatedAt() int64 {
  579. if x != nil {
  580. return x.CreatedAt
  581. }
  582. return 0
  583. }
  584. func (x *Order) GetUpdatedAt() int64 {
  585. if x != nil {
  586. return x.UpdatedAt
  587. }
  588. return 0
  589. }
  590. func (x *Order) GetOrderItems() []*OrderItem {
  591. if x != nil {
  592. return x.OrderItems
  593. }
  594. return nil
  595. }
  596. func (x *Order) GetPayment() *Payment {
  597. if x != nil {
  598. return x.Payment
  599. }
  600. return nil
  601. }
  602. type OrderItem struct {
  603. state protoimpl.MessageState
  604. sizeCache protoimpl.SizeCache
  605. unknownFields protoimpl.UnknownFields
  606. Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
  607. OrderId int64 `protobuf:"varint,2,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"`
  608. Order *Order `protobuf:"bytes,3,opt,name=order,proto3" json:"order,omitempty"`
  609. ProductId int64 `protobuf:"varint,4,opt,name=product_id,json=productId,proto3" json:"product_id,omitempty"`
  610. Product *Product `protobuf:"bytes,5,opt,name=product,proto3" json:"product,omitempty"`
  611. Quantity int64 `protobuf:"varint,6,opt,name=quantity,proto3" json:"quantity,omitempty"`
  612. Subtotal int64 `protobuf:"varint,7,opt,name=subtotal,proto3" json:"subtotal,omitempty"`
  613. }
  614. func (x *OrderItem) Reset() {
  615. *x = OrderItem{}
  616. if protoimpl.UnsafeEnabled {
  617. mi := &file_proto_base_shopping_service_proto_msgTypes[4]
  618. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  619. ms.StoreMessageInfo(mi)
  620. }
  621. }
  622. func (x *OrderItem) String() string {
  623. return protoimpl.X.MessageStringOf(x)
  624. }
  625. func (*OrderItem) ProtoMessage() {}
  626. func (x *OrderItem) ProtoReflect() protoreflect.Message {
  627. mi := &file_proto_base_shopping_service_proto_msgTypes[4]
  628. if protoimpl.UnsafeEnabled && x != nil {
  629. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  630. if ms.LoadMessageInfo() == nil {
  631. ms.StoreMessageInfo(mi)
  632. }
  633. return ms
  634. }
  635. return mi.MessageOf(x)
  636. }
  637. // Deprecated: Use OrderItem.ProtoReflect.Descriptor instead.
  638. func (*OrderItem) Descriptor() ([]byte, []int) {
  639. return file_proto_base_shopping_service_proto_rawDescGZIP(), []int{4}
  640. }
  641. func (x *OrderItem) GetId() int64 {
  642. if x != nil {
  643. return x.Id
  644. }
  645. return 0
  646. }
  647. func (x *OrderItem) GetOrderId() int64 {
  648. if x != nil {
  649. return x.OrderId
  650. }
  651. return 0
  652. }
  653. func (x *OrderItem) GetOrder() *Order {
  654. if x != nil {
  655. return x.Order
  656. }
  657. return nil
  658. }
  659. func (x *OrderItem) GetProductId() int64 {
  660. if x != nil {
  661. return x.ProductId
  662. }
  663. return 0
  664. }
  665. func (x *OrderItem) GetProduct() *Product {
  666. if x != nil {
  667. return x.Product
  668. }
  669. return nil
  670. }
  671. func (x *OrderItem) GetQuantity() int64 {
  672. if x != nil {
  673. return x.Quantity
  674. }
  675. return 0
  676. }
  677. func (x *OrderItem) GetSubtotal() int64 {
  678. if x != nil {
  679. return x.Subtotal
  680. }
  681. return 0
  682. }
  683. type Payment struct {
  684. state protoimpl.MessageState
  685. sizeCache protoimpl.SizeCache
  686. unknownFields protoimpl.UnknownFields
  687. Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
  688. OrderId int64 `protobuf:"varint,2,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"`
  689. Amount int64 `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"`
  690. Status PaymentStatusEnum `protobuf:"varint,4,opt,name=status,proto3,enum=base_shopping_service.PaymentStatusEnum" json:"status,omitempty"`
  691. PaymentMethod PaymentMethodEnum `protobuf:"varint,5,opt,name=payment_method,json=paymentMethod,proto3,enum=base_shopping_service.PaymentMethodEnum" json:"payment_method,omitempty"`
  692. CreatedAt int64 `protobuf:"varint,6,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
  693. UpdatedAt int64 `protobuf:"varint,7,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
  694. }
  695. func (x *Payment) Reset() {
  696. *x = Payment{}
  697. if protoimpl.UnsafeEnabled {
  698. mi := &file_proto_base_shopping_service_proto_msgTypes[5]
  699. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  700. ms.StoreMessageInfo(mi)
  701. }
  702. }
  703. func (x *Payment) String() string {
  704. return protoimpl.X.MessageStringOf(x)
  705. }
  706. func (*Payment) ProtoMessage() {}
  707. func (x *Payment) ProtoReflect() protoreflect.Message {
  708. mi := &file_proto_base_shopping_service_proto_msgTypes[5]
  709. if protoimpl.UnsafeEnabled && x != nil {
  710. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  711. if ms.LoadMessageInfo() == nil {
  712. ms.StoreMessageInfo(mi)
  713. }
  714. return ms
  715. }
  716. return mi.MessageOf(x)
  717. }
  718. // Deprecated: Use Payment.ProtoReflect.Descriptor instead.
  719. func (*Payment) Descriptor() ([]byte, []int) {
  720. return file_proto_base_shopping_service_proto_rawDescGZIP(), []int{5}
  721. }
  722. func (x *Payment) GetId() int64 {
  723. if x != nil {
  724. return x.Id
  725. }
  726. return 0
  727. }
  728. func (x *Payment) GetOrderId() int64 {
  729. if x != nil {
  730. return x.OrderId
  731. }
  732. return 0
  733. }
  734. func (x *Payment) GetAmount() int64 {
  735. if x != nil {
  736. return x.Amount
  737. }
  738. return 0
  739. }
  740. func (x *Payment) GetStatus() PaymentStatusEnum {
  741. if x != nil {
  742. return x.Status
  743. }
  744. return PaymentStatusEnum_PAYMENT_UNKNOWN
  745. }
  746. func (x *Payment) GetPaymentMethod() PaymentMethodEnum {
  747. if x != nil {
  748. return x.PaymentMethod
  749. }
  750. return PaymentMethodEnum_Payment_Method_UNKNOWN
  751. }
  752. func (x *Payment) GetCreatedAt() int64 {
  753. if x != nil {
  754. return x.CreatedAt
  755. }
  756. return 0
  757. }
  758. func (x *Payment) GetUpdatedAt() int64 {
  759. if x != nil {
  760. return x.UpdatedAt
  761. }
  762. return 0
  763. }
  764. type Product struct {
  765. state protoimpl.MessageState
  766. sizeCache protoimpl.SizeCache
  767. unknownFields protoimpl.UnknownFields
  768. Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
  769. Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
  770. Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
  771. Price int32 `protobuf:"varint,4,opt,name=price,proto3" json:"price,omitempty"`
  772. StockQuantity int32 `protobuf:"varint,5,opt,name=stock_quantity,json=stockQuantity,proto3" json:"stock_quantity,omitempty"`
  773. CreatedAt int64 `protobuf:"varint,6,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
  774. UpdatedAt int64 `protobuf:"varint,7,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
  775. CategoryId int64 `protobuf:"varint,8,opt,name=category_id,json=categoryId,proto3" json:"category_id,omitempty"`
  776. Category *Category `protobuf:"bytes,9,opt,name=category,proto3" json:"category,omitempty"`
  777. }
  778. func (x *Product) Reset() {
  779. *x = Product{}
  780. if protoimpl.UnsafeEnabled {
  781. mi := &file_proto_base_shopping_service_proto_msgTypes[6]
  782. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  783. ms.StoreMessageInfo(mi)
  784. }
  785. }
  786. func (x *Product) String() string {
  787. return protoimpl.X.MessageStringOf(x)
  788. }
  789. func (*Product) ProtoMessage() {}
  790. func (x *Product) ProtoReflect() protoreflect.Message {
  791. mi := &file_proto_base_shopping_service_proto_msgTypes[6]
  792. if protoimpl.UnsafeEnabled && x != nil {
  793. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  794. if ms.LoadMessageInfo() == nil {
  795. ms.StoreMessageInfo(mi)
  796. }
  797. return ms
  798. }
  799. return mi.MessageOf(x)
  800. }
  801. // Deprecated: Use Product.ProtoReflect.Descriptor instead.
  802. func (*Product) Descriptor() ([]byte, []int) {
  803. return file_proto_base_shopping_service_proto_rawDescGZIP(), []int{6}
  804. }
  805. func (x *Product) GetId() int64 {
  806. if x != nil {
  807. return x.Id
  808. }
  809. return 0
  810. }
  811. func (x *Product) GetName() string {
  812. if x != nil {
  813. return x.Name
  814. }
  815. return ""
  816. }
  817. func (x *Product) GetDescription() string {
  818. if x != nil {
  819. return x.Description
  820. }
  821. return ""
  822. }
  823. func (x *Product) GetPrice() int32 {
  824. if x != nil {
  825. return x.Price
  826. }
  827. return 0
  828. }
  829. func (x *Product) GetStockQuantity() int32 {
  830. if x != nil {
  831. return x.StockQuantity
  832. }
  833. return 0
  834. }
  835. func (x *Product) GetCreatedAt() int64 {
  836. if x != nil {
  837. return x.CreatedAt
  838. }
  839. return 0
  840. }
  841. func (x *Product) GetUpdatedAt() int64 {
  842. if x != nil {
  843. return x.UpdatedAt
  844. }
  845. return 0
  846. }
  847. func (x *Product) GetCategoryId() int64 {
  848. if x != nil {
  849. return x.CategoryId
  850. }
  851. return 0
  852. }
  853. func (x *Product) GetCategory() *Category {
  854. if x != nil {
  855. return x.Category
  856. }
  857. return nil
  858. }
  859. type ShoppingCart struct {
  860. state protoimpl.MessageState
  861. sizeCache protoimpl.SizeCache
  862. unknownFields protoimpl.UnknownFields
  863. Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
  864. UserId int64 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
  865. CreatedAt int64 `protobuf:"varint,3,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
  866. UpdatedAt int64 `protobuf:"varint,4,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
  867. Quantity int64 `protobuf:"varint,5,opt,name=quantity,proto3" json:"quantity,omitempty"`
  868. Items []*ShoppingCartItem `protobuf:"bytes,6,rep,name=items,proto3" json:"items,omitempty"`
  869. }
  870. func (x *ShoppingCart) Reset() {
  871. *x = ShoppingCart{}
  872. if protoimpl.UnsafeEnabled {
  873. mi := &file_proto_base_shopping_service_proto_msgTypes[7]
  874. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  875. ms.StoreMessageInfo(mi)
  876. }
  877. }
  878. func (x *ShoppingCart) String() string {
  879. return protoimpl.X.MessageStringOf(x)
  880. }
  881. func (*ShoppingCart) ProtoMessage() {}
  882. func (x *ShoppingCart) ProtoReflect() protoreflect.Message {
  883. mi := &file_proto_base_shopping_service_proto_msgTypes[7]
  884. if protoimpl.UnsafeEnabled && x != nil {
  885. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  886. if ms.LoadMessageInfo() == nil {
  887. ms.StoreMessageInfo(mi)
  888. }
  889. return ms
  890. }
  891. return mi.MessageOf(x)
  892. }
  893. // Deprecated: Use ShoppingCart.ProtoReflect.Descriptor instead.
  894. func (*ShoppingCart) Descriptor() ([]byte, []int) {
  895. return file_proto_base_shopping_service_proto_rawDescGZIP(), []int{7}
  896. }
  897. func (x *ShoppingCart) GetId() int64 {
  898. if x != nil {
  899. return x.Id
  900. }
  901. return 0
  902. }
  903. func (x *ShoppingCart) GetUserId() int64 {
  904. if x != nil {
  905. return x.UserId
  906. }
  907. return 0
  908. }
  909. func (x *ShoppingCart) GetCreatedAt() int64 {
  910. if x != nil {
  911. return x.CreatedAt
  912. }
  913. return 0
  914. }
  915. func (x *ShoppingCart) GetUpdatedAt() int64 {
  916. if x != nil {
  917. return x.UpdatedAt
  918. }
  919. return 0
  920. }
  921. func (x *ShoppingCart) GetQuantity() int64 {
  922. if x != nil {
  923. return x.Quantity
  924. }
  925. return 0
  926. }
  927. func (x *ShoppingCart) GetItems() []*ShoppingCartItem {
  928. if x != nil {
  929. return x.Items
  930. }
  931. return nil
  932. }
  933. type ShoppingCartItem struct {
  934. state protoimpl.MessageState
  935. sizeCache protoimpl.SizeCache
  936. unknownFields protoimpl.UnknownFields
  937. Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
  938. ShoppingCartId int64 `protobuf:"varint,2,opt,name=shopping_cart_id,json=shoppingCartId,proto3" json:"shopping_cart_id,omitempty"`
  939. ProductId int64 `protobuf:"varint,3,opt,name=product_id,json=productId,proto3" json:"product_id,omitempty"`
  940. Product *Product `protobuf:"bytes,4,opt,name=product,proto3" json:"product,omitempty"`
  941. Quantity int32 `protobuf:"varint,5,opt,name=quantity,proto3" json:"quantity,omitempty"`
  942. TotalPrice int32 `protobuf:"varint,6,opt,name=total_price,json=totalPrice,proto3" json:"total_price,omitempty"`
  943. }
  944. func (x *ShoppingCartItem) Reset() {
  945. *x = ShoppingCartItem{}
  946. if protoimpl.UnsafeEnabled {
  947. mi := &file_proto_base_shopping_service_proto_msgTypes[8]
  948. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  949. ms.StoreMessageInfo(mi)
  950. }
  951. }
  952. func (x *ShoppingCartItem) String() string {
  953. return protoimpl.X.MessageStringOf(x)
  954. }
  955. func (*ShoppingCartItem) ProtoMessage() {}
  956. func (x *ShoppingCartItem) ProtoReflect() protoreflect.Message {
  957. mi := &file_proto_base_shopping_service_proto_msgTypes[8]
  958. if protoimpl.UnsafeEnabled && x != nil {
  959. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  960. if ms.LoadMessageInfo() == nil {
  961. ms.StoreMessageInfo(mi)
  962. }
  963. return ms
  964. }
  965. return mi.MessageOf(x)
  966. }
  967. // Deprecated: Use ShoppingCartItem.ProtoReflect.Descriptor instead.
  968. func (*ShoppingCartItem) Descriptor() ([]byte, []int) {
  969. return file_proto_base_shopping_service_proto_rawDescGZIP(), []int{8}
  970. }
  971. func (x *ShoppingCartItem) GetId() int64 {
  972. if x != nil {
  973. return x.Id
  974. }
  975. return 0
  976. }
  977. func (x *ShoppingCartItem) GetShoppingCartId() int64 {
  978. if x != nil {
  979. return x.ShoppingCartId
  980. }
  981. return 0
  982. }
  983. func (x *ShoppingCartItem) GetProductId() int64 {
  984. if x != nil {
  985. return x.ProductId
  986. }
  987. return 0
  988. }
  989. func (x *ShoppingCartItem) GetProduct() *Product {
  990. if x != nil {
  991. return x.Product
  992. }
  993. return nil
  994. }
  995. func (x *ShoppingCartItem) GetQuantity() int32 {
  996. if x != nil {
  997. return x.Quantity
  998. }
  999. return 0
  1000. }
  1001. func (x *ShoppingCartItem) GetTotalPrice() int32 {
  1002. if x != nil {
  1003. return x.TotalPrice
  1004. }
  1005. return 0
  1006. }
  1007. type UserAuth struct {
  1008. state protoimpl.MessageState
  1009. sizeCache protoimpl.SizeCache
  1010. unknownFields protoimpl.UnknownFields
  1011. Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
  1012. UserId int64 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
  1013. OauthType string `protobuf:"bytes,3,opt,name=oauth_type,json=oauthType,proto3" json:"oauth_type,omitempty"`
  1014. OauthId string `protobuf:"bytes,4,opt,name=oauth_id,json=oauthId,proto3" json:"oauth_id,omitempty"`
  1015. UnionId string `protobuf:"bytes,5,opt,name=union_id,json=unionId,proto3" json:"union_id,omitempty"`
  1016. Credential string `protobuf:"bytes,6,opt,name=credential,proto3" json:"credential,omitempty"`
  1017. }
  1018. func (x *UserAuth) Reset() {
  1019. *x = UserAuth{}
  1020. if protoimpl.UnsafeEnabled {
  1021. mi := &file_proto_base_shopping_service_proto_msgTypes[9]
  1022. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1023. ms.StoreMessageInfo(mi)
  1024. }
  1025. }
  1026. func (x *UserAuth) String() string {
  1027. return protoimpl.X.MessageStringOf(x)
  1028. }
  1029. func (*UserAuth) ProtoMessage() {}
  1030. func (x *UserAuth) ProtoReflect() protoreflect.Message {
  1031. mi := &file_proto_base_shopping_service_proto_msgTypes[9]
  1032. if protoimpl.UnsafeEnabled && x != nil {
  1033. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1034. if ms.LoadMessageInfo() == nil {
  1035. ms.StoreMessageInfo(mi)
  1036. }
  1037. return ms
  1038. }
  1039. return mi.MessageOf(x)
  1040. }
  1041. // Deprecated: Use UserAuth.ProtoReflect.Descriptor instead.
  1042. func (*UserAuth) Descriptor() ([]byte, []int) {
  1043. return file_proto_base_shopping_service_proto_rawDescGZIP(), []int{9}
  1044. }
  1045. func (x *UserAuth) GetId() int64 {
  1046. if x != nil {
  1047. return x.Id
  1048. }
  1049. return 0
  1050. }
  1051. func (x *UserAuth) GetUserId() int64 {
  1052. if x != nil {
  1053. return x.UserId
  1054. }
  1055. return 0
  1056. }
  1057. func (x *UserAuth) GetOauthType() string {
  1058. if x != nil {
  1059. return x.OauthType
  1060. }
  1061. return ""
  1062. }
  1063. func (x *UserAuth) GetOauthId() string {
  1064. if x != nil {
  1065. return x.OauthId
  1066. }
  1067. return ""
  1068. }
  1069. func (x *UserAuth) GetUnionId() string {
  1070. if x != nil {
  1071. return x.UnionId
  1072. }
  1073. return ""
  1074. }
  1075. func (x *UserAuth) GetCredential() string {
  1076. if x != nil {
  1077. return x.Credential
  1078. }
  1079. return ""
  1080. }
  1081. type User struct {
  1082. state protoimpl.MessageState
  1083. sizeCache protoimpl.SizeCache
  1084. unknownFields protoimpl.UnknownFields
  1085. Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
  1086. Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
  1087. Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"`
  1088. PhoneNumber string `protobuf:"bytes,4,opt,name=phone_number,json=phoneNumber,proto3" json:"phone_number,omitempty"`
  1089. Email string `protobuf:"bytes,5,opt,name=email,proto3" json:"email,omitempty"`
  1090. Avatar string `protobuf:"bytes,6,opt,name=avatar,proto3" json:"avatar,omitempty"`
  1091. CreatedAt int64 `protobuf:"varint,7,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
  1092. CreatedBy string `protobuf:"bytes,8,opt,name=created_by,json=createdBy,proto3" json:"created_by,omitempty"`
  1093. UpdatedAt int64 `protobuf:"varint,9,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
  1094. UpdatedBy string `protobuf:"bytes,10,opt,name=updated_by,json=updatedBy,proto3" json:"updated_by,omitempty"`
  1095. Addresses []*Address `protobuf:"bytes,11,rep,name=addresses,proto3" json:"addresses,omitempty"`
  1096. ShoppingCart *ShoppingCart `protobuf:"bytes,12,opt,name=shopping_cart,json=shoppingCart,proto3" json:"shopping_cart,omitempty"`
  1097. Orders []*Order `protobuf:"bytes,13,rep,name=orders,proto3" json:"orders,omitempty"`
  1098. UserAuth []*UserAuth `protobuf:"bytes,14,rep,name=user_auth,json=userAuth,proto3" json:"user_auth,omitempty"`
  1099. Status StatusEnum `protobuf:"varint,15,opt,name=status,proto3,enum=base_shopping_service.StatusEnum" json:"status,omitempty"`
  1100. Roles []*Base `protobuf:"bytes,16,rep,name=roles,proto3" json:"roles,omitempty"`
  1101. GroupId int64 `protobuf:"varint,17,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
  1102. Group *UserGroup `protobuf:"bytes,18,opt,name=group,proto3" json:"group,omitempty"`
  1103. }
  1104. func (x *User) Reset() {
  1105. *x = User{}
  1106. if protoimpl.UnsafeEnabled {
  1107. mi := &file_proto_base_shopping_service_proto_msgTypes[10]
  1108. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1109. ms.StoreMessageInfo(mi)
  1110. }
  1111. }
  1112. func (x *User) String() string {
  1113. return protoimpl.X.MessageStringOf(x)
  1114. }
  1115. func (*User) ProtoMessage() {}
  1116. func (x *User) ProtoReflect() protoreflect.Message {
  1117. mi := &file_proto_base_shopping_service_proto_msgTypes[10]
  1118. if protoimpl.UnsafeEnabled && x != nil {
  1119. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1120. if ms.LoadMessageInfo() == nil {
  1121. ms.StoreMessageInfo(mi)
  1122. }
  1123. return ms
  1124. }
  1125. return mi.MessageOf(x)
  1126. }
  1127. // Deprecated: Use User.ProtoReflect.Descriptor instead.
  1128. func (*User) Descriptor() ([]byte, []int) {
  1129. return file_proto_base_shopping_service_proto_rawDescGZIP(), []int{10}
  1130. }
  1131. func (x *User) GetId() int64 {
  1132. if x != nil {
  1133. return x.Id
  1134. }
  1135. return 0
  1136. }
  1137. func (x *User) GetUsername() string {
  1138. if x != nil {
  1139. return x.Username
  1140. }
  1141. return ""
  1142. }
  1143. func (x *User) GetPassword() string {
  1144. if x != nil {
  1145. return x.Password
  1146. }
  1147. return ""
  1148. }
  1149. func (x *User) GetPhoneNumber() string {
  1150. if x != nil {
  1151. return x.PhoneNumber
  1152. }
  1153. return ""
  1154. }
  1155. func (x *User) GetEmail() string {
  1156. if x != nil {
  1157. return x.Email
  1158. }
  1159. return ""
  1160. }
  1161. func (x *User) GetAvatar() string {
  1162. if x != nil {
  1163. return x.Avatar
  1164. }
  1165. return ""
  1166. }
  1167. func (x *User) GetCreatedAt() int64 {
  1168. if x != nil {
  1169. return x.CreatedAt
  1170. }
  1171. return 0
  1172. }
  1173. func (x *User) GetCreatedBy() string {
  1174. if x != nil {
  1175. return x.CreatedBy
  1176. }
  1177. return ""
  1178. }
  1179. func (x *User) GetUpdatedAt() int64 {
  1180. if x != nil {
  1181. return x.UpdatedAt
  1182. }
  1183. return 0
  1184. }
  1185. func (x *User) GetUpdatedBy() string {
  1186. if x != nil {
  1187. return x.UpdatedBy
  1188. }
  1189. return ""
  1190. }
  1191. func (x *User) GetAddresses() []*Address {
  1192. if x != nil {
  1193. return x.Addresses
  1194. }
  1195. return nil
  1196. }
  1197. func (x *User) GetShoppingCart() *ShoppingCart {
  1198. if x != nil {
  1199. return x.ShoppingCart
  1200. }
  1201. return nil
  1202. }
  1203. func (x *User) GetOrders() []*Order {
  1204. if x != nil {
  1205. return x.Orders
  1206. }
  1207. return nil
  1208. }
  1209. func (x *User) GetUserAuth() []*UserAuth {
  1210. if x != nil {
  1211. return x.UserAuth
  1212. }
  1213. return nil
  1214. }
  1215. func (x *User) GetStatus() StatusEnum {
  1216. if x != nil {
  1217. return x.Status
  1218. }
  1219. return StatusEnum_UNKNOWN
  1220. }
  1221. func (x *User) GetRoles() []*Base {
  1222. if x != nil {
  1223. return x.Roles
  1224. }
  1225. return nil
  1226. }
  1227. func (x *User) GetGroupId() int64 {
  1228. if x != nil {
  1229. return x.GroupId
  1230. }
  1231. return 0
  1232. }
  1233. func (x *User) GetGroup() *UserGroup {
  1234. if x != nil {
  1235. return x.Group
  1236. }
  1237. return nil
  1238. }
  1239. type UserGroup struct {
  1240. state protoimpl.MessageState
  1241. sizeCache protoimpl.SizeCache
  1242. unknownFields protoimpl.UnknownFields
  1243. Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
  1244. Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
  1245. Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
  1246. Code string `protobuf:"bytes,4,opt,name=code,proto3" json:"code,omitempty"`
  1247. CreatedAt int64 `protobuf:"varint,5,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
  1248. CreatedBy string `protobuf:"bytes,6,opt,name=created_by,json=createdBy,proto3" json:"created_by,omitempty"`
  1249. UpdatedAt int64 `protobuf:"varint,7,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
  1250. UpdatedBy string `protobuf:"bytes,8,opt,name=updated_by,json=updatedBy,proto3" json:"updated_by,omitempty"`
  1251. }
  1252. func (x *UserGroup) Reset() {
  1253. *x = UserGroup{}
  1254. if protoimpl.UnsafeEnabled {
  1255. mi := &file_proto_base_shopping_service_proto_msgTypes[11]
  1256. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1257. ms.StoreMessageInfo(mi)
  1258. }
  1259. }
  1260. func (x *UserGroup) String() string {
  1261. return protoimpl.X.MessageStringOf(x)
  1262. }
  1263. func (*UserGroup) ProtoMessage() {}
  1264. func (x *UserGroup) ProtoReflect() protoreflect.Message {
  1265. mi := &file_proto_base_shopping_service_proto_msgTypes[11]
  1266. if protoimpl.UnsafeEnabled && x != nil {
  1267. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1268. if ms.LoadMessageInfo() == nil {
  1269. ms.StoreMessageInfo(mi)
  1270. }
  1271. return ms
  1272. }
  1273. return mi.MessageOf(x)
  1274. }
  1275. // Deprecated: Use UserGroup.ProtoReflect.Descriptor instead.
  1276. func (*UserGroup) Descriptor() ([]byte, []int) {
  1277. return file_proto_base_shopping_service_proto_rawDescGZIP(), []int{11}
  1278. }
  1279. func (x *UserGroup) GetId() int64 {
  1280. if x != nil {
  1281. return x.Id
  1282. }
  1283. return 0
  1284. }
  1285. func (x *UserGroup) GetName() string {
  1286. if x != nil {
  1287. return x.Name
  1288. }
  1289. return ""
  1290. }
  1291. func (x *UserGroup) GetDescription() string {
  1292. if x != nil {
  1293. return x.Description
  1294. }
  1295. return ""
  1296. }
  1297. func (x *UserGroup) GetCode() string {
  1298. if x != nil {
  1299. return x.Code
  1300. }
  1301. return ""
  1302. }
  1303. func (x *UserGroup) GetCreatedAt() int64 {
  1304. if x != nil {
  1305. return x.CreatedAt
  1306. }
  1307. return 0
  1308. }
  1309. func (x *UserGroup) GetCreatedBy() string {
  1310. if x != nil {
  1311. return x.CreatedBy
  1312. }
  1313. return ""
  1314. }
  1315. func (x *UserGroup) GetUpdatedAt() int64 {
  1316. if x != nil {
  1317. return x.UpdatedAt
  1318. }
  1319. return 0
  1320. }
  1321. func (x *UserGroup) GetUpdatedBy() string {
  1322. if x != nil {
  1323. return x.UpdatedBy
  1324. }
  1325. return ""
  1326. }
  1327. type Base struct {
  1328. state protoimpl.MessageState
  1329. sizeCache protoimpl.SizeCache
  1330. unknownFields protoimpl.UnknownFields
  1331. Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
  1332. Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
  1333. }
  1334. func (x *Base) Reset() {
  1335. *x = Base{}
  1336. if protoimpl.UnsafeEnabled {
  1337. mi := &file_proto_base_shopping_service_proto_msgTypes[12]
  1338. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1339. ms.StoreMessageInfo(mi)
  1340. }
  1341. }
  1342. func (x *Base) String() string {
  1343. return protoimpl.X.MessageStringOf(x)
  1344. }
  1345. func (*Base) ProtoMessage() {}
  1346. func (x *Base) ProtoReflect() protoreflect.Message {
  1347. mi := &file_proto_base_shopping_service_proto_msgTypes[12]
  1348. if protoimpl.UnsafeEnabled && x != nil {
  1349. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1350. if ms.LoadMessageInfo() == nil {
  1351. ms.StoreMessageInfo(mi)
  1352. }
  1353. return ms
  1354. }
  1355. return mi.MessageOf(x)
  1356. }
  1357. // Deprecated: Use Base.ProtoReflect.Descriptor instead.
  1358. func (*Base) Descriptor() ([]byte, []int) {
  1359. return file_proto_base_shopping_service_proto_rawDescGZIP(), []int{12}
  1360. }
  1361. func (x *Base) GetKey() string {
  1362. if x != nil {
  1363. return x.Key
  1364. }
  1365. return ""
  1366. }
  1367. func (x *Base) GetValue() string {
  1368. if x != nil {
  1369. return x.Value
  1370. }
  1371. return ""
  1372. }
  1373. type Role struct {
  1374. state protoimpl.MessageState
  1375. sizeCache protoimpl.SizeCache
  1376. unknownFields protoimpl.UnknownFields
  1377. Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
  1378. Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
  1379. Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
  1380. Users []*Base `protobuf:"bytes,4,rep,name=users,proto3" json:"users,omitempty"`
  1381. Permissions []*Base `protobuf:"bytes,5,rep,name=permissions,proto3" json:"permissions,omitempty"`
  1382. CreatedBy string `protobuf:"bytes,6,opt,name=created_by,json=createdBy,proto3" json:"created_by,omitempty"`
  1383. CreatedAt int64 `protobuf:"varint,7,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
  1384. UpdatedAt int64 `protobuf:"varint,8,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
  1385. UpdatedBy string `protobuf:"bytes,9,opt,name=updated_by,json=updatedBy,proto3" json:"updated_by,omitempty"`
  1386. Status StatusEnum `protobuf:"varint,10,opt,name=status,proto3,enum=base_shopping_service.StatusEnum" json:"status,omitempty"`
  1387. IsReserved bool `protobuf:"varint,11,opt,name=is_reserved,json=isReserved,proto3" json:"is_reserved,omitempty"`
  1388. }
  1389. func (x *Role) Reset() {
  1390. *x = Role{}
  1391. if protoimpl.UnsafeEnabled {
  1392. mi := &file_proto_base_shopping_service_proto_msgTypes[13]
  1393. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1394. ms.StoreMessageInfo(mi)
  1395. }
  1396. }
  1397. func (x *Role) String() string {
  1398. return protoimpl.X.MessageStringOf(x)
  1399. }
  1400. func (*Role) ProtoMessage() {}
  1401. func (x *Role) ProtoReflect() protoreflect.Message {
  1402. mi := &file_proto_base_shopping_service_proto_msgTypes[13]
  1403. if protoimpl.UnsafeEnabled && x != nil {
  1404. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1405. if ms.LoadMessageInfo() == nil {
  1406. ms.StoreMessageInfo(mi)
  1407. }
  1408. return ms
  1409. }
  1410. return mi.MessageOf(x)
  1411. }
  1412. // Deprecated: Use Role.ProtoReflect.Descriptor instead.
  1413. func (*Role) Descriptor() ([]byte, []int) {
  1414. return file_proto_base_shopping_service_proto_rawDescGZIP(), []int{13}
  1415. }
  1416. func (x *Role) GetId() int64 {
  1417. if x != nil {
  1418. return x.Id
  1419. }
  1420. return 0
  1421. }
  1422. func (x *Role) GetName() string {
  1423. if x != nil {
  1424. return x.Name
  1425. }
  1426. return ""
  1427. }
  1428. func (x *Role) GetDescription() string {
  1429. if x != nil {
  1430. return x.Description
  1431. }
  1432. return ""
  1433. }
  1434. func (x *Role) GetUsers() []*Base {
  1435. if x != nil {
  1436. return x.Users
  1437. }
  1438. return nil
  1439. }
  1440. func (x *Role) GetPermissions() []*Base {
  1441. if x != nil {
  1442. return x.Permissions
  1443. }
  1444. return nil
  1445. }
  1446. func (x *Role) GetCreatedBy() string {
  1447. if x != nil {
  1448. return x.CreatedBy
  1449. }
  1450. return ""
  1451. }
  1452. func (x *Role) GetCreatedAt() int64 {
  1453. if x != nil {
  1454. return x.CreatedAt
  1455. }
  1456. return 0
  1457. }
  1458. func (x *Role) GetUpdatedAt() int64 {
  1459. if x != nil {
  1460. return x.UpdatedAt
  1461. }
  1462. return 0
  1463. }
  1464. func (x *Role) GetUpdatedBy() string {
  1465. if x != nil {
  1466. return x.UpdatedBy
  1467. }
  1468. return ""
  1469. }
  1470. func (x *Role) GetStatus() StatusEnum {
  1471. if x != nil {
  1472. return x.Status
  1473. }
  1474. return StatusEnum_UNKNOWN
  1475. }
  1476. func (x *Role) GetIsReserved() bool {
  1477. if x != nil {
  1478. return x.IsReserved
  1479. }
  1480. return false
  1481. }
  1482. type Permission struct {
  1483. state protoimpl.MessageState
  1484. sizeCache protoimpl.SizeCache
  1485. unknownFields protoimpl.UnknownFields
  1486. Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
  1487. Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
  1488. Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
  1489. Roles []*Base `protobuf:"bytes,4,rep,name=roles,proto3" json:"roles,omitempty"`
  1490. CreatedAt int64 `protobuf:"varint,5,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
  1491. CreatedBy string `protobuf:"bytes,6,opt,name=created_by,json=createdBy,proto3" json:"created_by,omitempty"`
  1492. UpdatedAt int64 `protobuf:"varint,7,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
  1493. UpdatedBy string `protobuf:"bytes,8,opt,name=updated_by,json=updatedBy,proto3" json:"updated_by,omitempty"`
  1494. Status StatusEnum `protobuf:"varint,9,opt,name=status,proto3,enum=base_shopping_service.StatusEnum" json:"status,omitempty"`
  1495. IsReserved bool `protobuf:"varint,10,opt,name=is_reserved,json=isReserved,proto3" json:"is_reserved,omitempty"`
  1496. Endpoint string `protobuf:"bytes,11,opt,name=endpoint,proto3" json:"endpoint,omitempty"`
  1497. }
  1498. func (x *Permission) Reset() {
  1499. *x = Permission{}
  1500. if protoimpl.UnsafeEnabled {
  1501. mi := &file_proto_base_shopping_service_proto_msgTypes[14]
  1502. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1503. ms.StoreMessageInfo(mi)
  1504. }
  1505. }
  1506. func (x *Permission) String() string {
  1507. return protoimpl.X.MessageStringOf(x)
  1508. }
  1509. func (*Permission) ProtoMessage() {}
  1510. func (x *Permission) ProtoReflect() protoreflect.Message {
  1511. mi := &file_proto_base_shopping_service_proto_msgTypes[14]
  1512. if protoimpl.UnsafeEnabled && x != nil {
  1513. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1514. if ms.LoadMessageInfo() == nil {
  1515. ms.StoreMessageInfo(mi)
  1516. }
  1517. return ms
  1518. }
  1519. return mi.MessageOf(x)
  1520. }
  1521. // Deprecated: Use Permission.ProtoReflect.Descriptor instead.
  1522. func (*Permission) Descriptor() ([]byte, []int) {
  1523. return file_proto_base_shopping_service_proto_rawDescGZIP(), []int{14}
  1524. }
  1525. func (x *Permission) GetId() int64 {
  1526. if x != nil {
  1527. return x.Id
  1528. }
  1529. return 0
  1530. }
  1531. func (x *Permission) GetName() string {
  1532. if x != nil {
  1533. return x.Name
  1534. }
  1535. return ""
  1536. }
  1537. func (x *Permission) GetDescription() string {
  1538. if x != nil {
  1539. return x.Description
  1540. }
  1541. return ""
  1542. }
  1543. func (x *Permission) GetRoles() []*Base {
  1544. if x != nil {
  1545. return x.Roles
  1546. }
  1547. return nil
  1548. }
  1549. func (x *Permission) GetCreatedAt() int64 {
  1550. if x != nil {
  1551. return x.CreatedAt
  1552. }
  1553. return 0
  1554. }
  1555. func (x *Permission) GetCreatedBy() string {
  1556. if x != nil {
  1557. return x.CreatedBy
  1558. }
  1559. return ""
  1560. }
  1561. func (x *Permission) GetUpdatedAt() int64 {
  1562. if x != nil {
  1563. return x.UpdatedAt
  1564. }
  1565. return 0
  1566. }
  1567. func (x *Permission) GetUpdatedBy() string {
  1568. if x != nil {
  1569. return x.UpdatedBy
  1570. }
  1571. return ""
  1572. }
  1573. func (x *Permission) GetStatus() StatusEnum {
  1574. if x != nil {
  1575. return x.Status
  1576. }
  1577. return StatusEnum_UNKNOWN
  1578. }
  1579. func (x *Permission) GetIsReserved() bool {
  1580. if x != nil {
  1581. return x.IsReserved
  1582. }
  1583. return false
  1584. }
  1585. func (x *Permission) GetEndpoint() string {
  1586. if x != nil {
  1587. return x.Endpoint
  1588. }
  1589. return ""
  1590. }
  1591. var File_proto_base_shopping_service_proto protoreflect.FileDescriptor
  1592. var file_proto_base_shopping_service_proto_rawDesc = []byte{
  1593. 0x0a, 0x21, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x73, 0x68, 0x6f,
  1594. 0x70, 0x70, 0x69, 0x6e, 0x67, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72,
  1595. 0x6f, 0x74, 0x6f, 0x12, 0x15, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69,
  1596. 0x6e, 0x67, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x22, 0xe2, 0x02, 0x0a, 0x07, 0x41,
  1597. 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01,
  1598. 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69,
  1599. 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12,
  1600. 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09,
  1601. 0x52, 0x07, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x72, 0x6f,
  1602. 0x76, 0x69, 0x6e, 0x63, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x72, 0x6f,
  1603. 0x76, 0x69, 0x6e, 0x63, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x69, 0x74, 0x79, 0x18, 0x05, 0x20,
  1604. 0x01, 0x28, 0x09, 0x52, 0x04, 0x63, 0x69, 0x74, 0x79, 0x12, 0x1a, 0x0a, 0x08, 0x64, 0x69, 0x73,
  1605. 0x74, 0x72, 0x69, 0x63, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x64, 0x69, 0x73,
  1606. 0x74, 0x72, 0x69, 0x63, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x72, 0x65, 0x65, 0x74, 0x18,
  1607. 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x74, 0x72, 0x65, 0x65, 0x74, 0x12, 0x16, 0x0a,
  1608. 0x06, 0x72, 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x72,
  1609. 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x12, 0x1d, 0x0a, 0x0a, 0x69, 0x73, 0x5f, 0x64, 0x65, 0x66, 0x61,
  1610. 0x75, 0x6c, 0x74, 0x18, 0x09, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x69, 0x73, 0x44, 0x65, 0x66,
  1611. 0x61, 0x75, 0x6c, 0x74, 0x12, 0x3b, 0x0a, 0x08, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e,
  1612. 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x73, 0x68,
  1613. 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x4c,
  1614. 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x08, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f,
  1615. 0x6e, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18,
  1616. 0x0b, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74,
  1617. 0x12, 0x1d, 0x0a, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x0c,
  1618. 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x22,
  1619. 0x5d, 0x0a, 0x08, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x0e, 0x0a, 0x02, 0x69,
  1620. 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x61,
  1621. 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52,
  1622. 0x09, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x49, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x6c, 0x6f,
  1623. 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x02, 0x52, 0x03, 0x6c, 0x6f, 0x6e, 0x12, 0x10, 0x0a, 0x03,
  1624. 0x6c, 0x61, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x02, 0x52, 0x03, 0x6c, 0x61, 0x74, 0x22, 0xbc,
  1625. 0x01, 0x0a, 0x08, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x12, 0x0e, 0x0a, 0x02, 0x69,
  1626. 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e,
  1627. 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12,
  1628. 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03,
  1629. 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f,
  1630. 0x6e, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18,
  1631. 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74,
  1632. 0x12, 0x1d, 0x0a, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x05,
  1633. 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12,
  1634. 0x2c, 0x0a, 0x12, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f,
  1635. 0x72, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x10, 0x70, 0x61, 0x72,
  1636. 0x65, 0x6e, 0x74, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x49, 0x64, 0x22, 0xa9, 0x04,
  1637. 0x0a, 0x05, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20,
  1638. 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f,
  1639. 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64,
  1640. 0x12, 0x2f, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b,
  1641. 0x2e, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x5f, 0x73,
  1642. 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x04, 0x75, 0x73, 0x65,
  1643. 0x72, 0x12, 0x1d, 0x0a, 0x0a, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x5f, 0x69, 0x64, 0x18,
  1644. 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x49, 0x64,
  1645. 0x12, 0x38, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28,
  1646. 0x0b, 0x32, 0x1e, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e,
  1647. 0x67, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73,
  1648. 0x73, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x21, 0x0a, 0x0c, 0x74, 0x6f,
  1649. 0x74, 0x61, 0x6c, 0x5f, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x05,
  1650. 0x52, 0x0b, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x3e, 0x0a,
  1651. 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x26, 0x2e,
  1652. 0x62, 0x61, 0x73, 0x65, 0x5f, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x5f, 0x73, 0x65,
  1653. 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x75,
  1654. 0x73, 0x45, 0x6e, 0x75, 0x6d, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x4f, 0x0a,
  1655. 0x0e, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x18,
  1656. 0x08, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x28, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x73, 0x68, 0x6f,
  1657. 0x70, 0x70, 0x69, 0x6e, 0x67, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x50, 0x61,
  1658. 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x45, 0x6e, 0x75, 0x6d, 0x52,
  1659. 0x0d, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x12, 0x1d,
  1660. 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x09, 0x20, 0x01,
  1661. 0x28, 0x03, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x1d, 0x0a,
  1662. 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x0a, 0x20, 0x01, 0x28,
  1663. 0x03, 0x52, 0x09, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x41, 0x0a, 0x0b,
  1664. 0x6f, 0x72, 0x64, 0x65, 0x72, 0x5f, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x18, 0x0b, 0x20, 0x03, 0x28,
  1665. 0x0b, 0x32, 0x20, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e,
  1666. 0x67, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x49,
  1667. 0x74, 0x65, 0x6d, 0x52, 0x0a, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x49, 0x74, 0x65, 0x6d, 0x73, 0x12,
  1668. 0x38, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0b,
  1669. 0x32, 0x1e, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67,
  1670. 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x50, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74,
  1671. 0x52, 0x07, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x22, 0xfb, 0x01, 0x0a, 0x09, 0x4f, 0x72,
  1672. 0x64, 0x65, 0x72, 0x49, 0x74, 0x65, 0x6d, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20,
  1673. 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x6f, 0x72, 0x64, 0x65, 0x72,
  1674. 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x6f, 0x72, 0x64, 0x65, 0x72,
  1675. 0x49, 0x64, 0x12, 0x32, 0x0a, 0x05, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28,
  1676. 0x0b, 0x32, 0x1c, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e,
  1677. 0x67, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x52,
  1678. 0x05, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63,
  1679. 0x74, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x64,
  1680. 0x75, 0x63, 0x74, 0x49, 0x64, 0x12, 0x38, 0x0a, 0x07, 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74,
  1681. 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x73, 0x68,
  1682. 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x50,
  1683. 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x52, 0x07, 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x12,
  1684. 0x1a, 0x0a, 0x08, 0x71, 0x75, 0x61, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x18, 0x06, 0x20, 0x01, 0x28,
  1685. 0x03, 0x52, 0x08, 0x71, 0x75, 0x61, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12, 0x1a, 0x0a, 0x08, 0x73,
  1686. 0x75, 0x62, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x73,
  1687. 0x75, 0x62, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x22, 0x9d, 0x02, 0x0a, 0x07, 0x50, 0x61, 0x79, 0x6d,
  1688. 0x65, 0x6e, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52,
  1689. 0x02, 0x69, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18,
  1690. 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x49, 0x64, 0x12, 0x16,
  1691. 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06,
  1692. 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x40, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73,
  1693. 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x28, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x73, 0x68,
  1694. 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x50,
  1695. 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x45, 0x6e, 0x75, 0x6d,
  1696. 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x4f, 0x0a, 0x0e, 0x70, 0x61, 0x79, 0x6d,
  1697. 0x65, 0x6e, 0x74, 0x5f, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e,
  1698. 0x32, 0x28, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67,
  1699. 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x50, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74,
  1700. 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x45, 0x6e, 0x75, 0x6d, 0x52, 0x0d, 0x70, 0x61, 0x79, 0x6d,
  1701. 0x65, 0x6e, 0x74, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x72, 0x65,
  1702. 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x63,
  1703. 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x75, 0x70, 0x64, 0x61,
  1704. 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x75, 0x70,
  1705. 0x64, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x22, 0xa8, 0x02, 0x0a, 0x07, 0x50, 0x72, 0x6f, 0x64,
  1706. 0x75, 0x63, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52,
  1707. 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,
  1708. 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72,
  1709. 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65,
  1710. 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x72, 0x69,
  1711. 0x63, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x70, 0x72, 0x69, 0x63, 0x65, 0x12,
  1712. 0x25, 0x0a, 0x0e, 0x73, 0x74, 0x6f, 0x63, 0x6b, 0x5f, 0x71, 0x75, 0x61, 0x6e, 0x74, 0x69, 0x74,
  1713. 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0d, 0x73, 0x74, 0x6f, 0x63, 0x6b, 0x51, 0x75,
  1714. 0x61, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65,
  1715. 0x64, 0x5f, 0x61, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61,
  1716. 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64,
  1717. 0x5f, 0x61, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x75, 0x70, 0x64, 0x61, 0x74,
  1718. 0x65, 0x64, 0x41, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79,
  1719. 0x5f, 0x69, 0x64, 0x18, 0x08, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x63, 0x61, 0x74, 0x65, 0x67,
  1720. 0x6f, 0x72, 0x79, 0x49, 0x64, 0x12, 0x3b, 0x0a, 0x08, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72,
  1721. 0x79, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x73,
  1722. 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e,
  1723. 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x52, 0x08, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f,
  1724. 0x72, 0x79, 0x22, 0xd0, 0x01, 0x0a, 0x0c, 0x53, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x43,
  1725. 0x61, 0x72, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52,
  1726. 0x02, 0x69, 0x64, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02,
  1727. 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a,
  1728. 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03,
  1729. 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x75,
  1730. 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52,
  1731. 0x09, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x71, 0x75,
  1732. 0x61, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x71, 0x75,
  1733. 0x61, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12, 0x3d, 0x0a, 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x18,
  1734. 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x73, 0x68, 0x6f,
  1735. 0x70, 0x70, 0x69, 0x6e, 0x67, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x53, 0x68,
  1736. 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x43, 0x61, 0x72, 0x74, 0x49, 0x74, 0x65, 0x6d, 0x52, 0x05,
  1737. 0x69, 0x74, 0x65, 0x6d, 0x73, 0x22, 0xe2, 0x01, 0x0a, 0x10, 0x53, 0x68, 0x6f, 0x70, 0x70, 0x69,
  1738. 0x6e, 0x67, 0x43, 0x61, 0x72, 0x74, 0x49, 0x74, 0x65, 0x6d, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64,
  1739. 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x28, 0x0a, 0x10, 0x73, 0x68,
  1740. 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x5f, 0x63, 0x61, 0x72, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02,
  1741. 0x20, 0x01, 0x28, 0x03, 0x52, 0x0e, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x43, 0x61,
  1742. 0x72, 0x74, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x5f,
  1743. 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63,
  1744. 0x74, 0x49, 0x64, 0x12, 0x38, 0x0a, 0x07, 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x18, 0x04,
  1745. 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x73, 0x68, 0x6f, 0x70,
  1746. 0x70, 0x69, 0x6e, 0x67, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x50, 0x72, 0x6f,
  1747. 0x64, 0x75, 0x63, 0x74, 0x52, 0x07, 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x12, 0x1a, 0x0a,
  1748. 0x08, 0x71, 0x75, 0x61, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52,
  1749. 0x08, 0x71, 0x75, 0x61, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12, 0x1f, 0x0a, 0x0b, 0x74, 0x6f, 0x74,
  1750. 0x61, 0x6c, 0x5f, 0x70, 0x72, 0x69, 0x63, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a,
  1751. 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x50, 0x72, 0x69, 0x63, 0x65, 0x22, 0xa8, 0x01, 0x0a, 0x08, 0x55,
  1752. 0x73, 0x65, 0x72, 0x41, 0x75, 0x74, 0x68, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20,
  1753. 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f,
  1754. 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64,
  1755. 0x12, 0x1d, 0x0a, 0x0a, 0x6f, 0x61, 0x75, 0x74, 0x68, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03,
  1756. 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6f, 0x61, 0x75, 0x74, 0x68, 0x54, 0x79, 0x70, 0x65, 0x12,
  1757. 0x19, 0x0a, 0x08, 0x6f, 0x61, 0x75, 0x74, 0x68, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28,
  1758. 0x09, 0x52, 0x07, 0x6f, 0x61, 0x75, 0x74, 0x68, 0x49, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x75, 0x6e,
  1759. 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x75, 0x6e,
  1760. 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x1e, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74,
  1761. 0x69, 0x61, 0x6c, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x72, 0x65, 0x64, 0x65,
  1762. 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x22, 0xd8, 0x05, 0x0a, 0x04, 0x55, 0x73, 0x65, 0x72, 0x12, 0x0e,
  1763. 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1a,
  1764. 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
  1765. 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61,
  1766. 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x61,
  1767. 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x5f,
  1768. 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x70, 0x68,
  1769. 0x6f, 0x6e, 0x65, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x6d, 0x61,
  1770. 0x69, 0x6c, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x12,
  1771. 0x16, 0x0a, 0x06, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52,
  1772. 0x06, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74,
  1773. 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x63, 0x72, 0x65,
  1774. 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65,
  1775. 0x64, 0x5f, 0x62, 0x79, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61,
  1776. 0x74, 0x65, 0x64, 0x42, 0x79, 0x12, 0x1d, 0x0a, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64,
  1777. 0x5f, 0x61, 0x74, 0x18, 0x09, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x75, 0x70, 0x64, 0x61, 0x74,
  1778. 0x65, 0x64, 0x41, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x5f,
  1779. 0x62, 0x79, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65,
  1780. 0x64, 0x42, 0x79, 0x12, 0x3c, 0x0a, 0x09, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73,
  1781. 0x18, 0x0b, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x73, 0x68,
  1782. 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x41,
  1783. 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x09, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65,
  1784. 0x73, 0x12, 0x48, 0x0a, 0x0d, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x5f, 0x63, 0x61,
  1785. 0x72, 0x74, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x5f,
  1786. 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65,
  1787. 0x2e, 0x53, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x43, 0x61, 0x72, 0x74, 0x52, 0x0c, 0x73,
  1788. 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x43, 0x61, 0x72, 0x74, 0x12, 0x34, 0x0a, 0x06, 0x6f,
  1789. 0x72, 0x64, 0x65, 0x72, 0x73, 0x18, 0x0d, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x62, 0x61,
  1790. 0x73, 0x65, 0x5f, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x5f, 0x73, 0x65, 0x72, 0x76,
  1791. 0x69, 0x63, 0x65, 0x2e, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x52, 0x06, 0x6f, 0x72, 0x64, 0x65, 0x72,
  1792. 0x73, 0x12, 0x3c, 0x0a, 0x09, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x61, 0x75, 0x74, 0x68, 0x18, 0x0e,
  1793. 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x73, 0x68, 0x6f, 0x70,
  1794. 0x70, 0x69, 0x6e, 0x67, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x55, 0x73, 0x65,
  1795. 0x72, 0x41, 0x75, 0x74, 0x68, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x41, 0x75, 0x74, 0x68, 0x12,
  1796. 0x39, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x0e, 0x32,
  1797. 0x21, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x5f,
  1798. 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x45, 0x6e,
  1799. 0x75, 0x6d, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x31, 0x0a, 0x05, 0x72, 0x6f,
  1800. 0x6c, 0x65, 0x73, 0x18, 0x10, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x62, 0x61, 0x73, 0x65,
  1801. 0x5f, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63,
  1802. 0x65, 0x2e, 0x42, 0x61, 0x73, 0x65, 0x52, 0x05, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x12, 0x19, 0x0a,
  1803. 0x08, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x69, 0x64, 0x18, 0x11, 0x20, 0x01, 0x28, 0x03, 0x52,
  1804. 0x07, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x12, 0x36, 0x0a, 0x05, 0x67, 0x72, 0x6f, 0x75,
  1805. 0x70, 0x18, 0x12, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x73,
  1806. 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e,
  1807. 0x55, 0x73, 0x65, 0x72, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70,
  1808. 0x22, 0xe1, 0x01, 0x0a, 0x09, 0x55, 0x73, 0x65, 0x72, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x0e,
  1809. 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12,
  1810. 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61,
  1811. 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f,
  1812. 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70,
  1813. 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x04, 0x20, 0x01,
  1814. 0x28, 0x09, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61,
  1815. 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x63, 0x72,
  1816. 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74,
  1817. 0x65, 0x64, 0x5f, 0x62, 0x79, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x72, 0x65,
  1818. 0x61, 0x74, 0x65, 0x64, 0x42, 0x79, 0x12, 0x1d, 0x0a, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65,
  1819. 0x64, 0x5f, 0x61, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x75, 0x70, 0x64, 0x61,
  1820. 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64,
  1821. 0x5f, 0x62, 0x79, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x75, 0x70, 0x64, 0x61, 0x74,
  1822. 0x65, 0x64, 0x42, 0x79, 0x22, 0x2e, 0x0a, 0x04, 0x42, 0x61, 0x73, 0x65, 0x12, 0x10, 0x0a, 0x03,
  1823. 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14,
  1824. 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76,
  1825. 0x61, 0x6c, 0x75, 0x65, 0x22, 0x96, 0x03, 0x0a, 0x04, 0x52, 0x6f, 0x6c, 0x65, 0x12, 0x0e, 0x0a,
  1826. 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a,
  1827. 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d,
  1828. 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e,
  1829. 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74,
  1830. 0x69, 0x6f, 0x6e, 0x12, 0x31, 0x0a, 0x05, 0x75, 0x73, 0x65, 0x72, 0x73, 0x18, 0x04, 0x20, 0x03,
  1831. 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69,
  1832. 0x6e, 0x67, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x42, 0x61, 0x73, 0x65, 0x52,
  1833. 0x05, 0x75, 0x73, 0x65, 0x72, 0x73, 0x12, 0x3d, 0x0a, 0x0b, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73,
  1834. 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x62, 0x61,
  1835. 0x73, 0x65, 0x5f, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x5f, 0x73, 0x65, 0x72, 0x76,
  1836. 0x69, 0x63, 0x65, 0x2e, 0x42, 0x61, 0x73, 0x65, 0x52, 0x0b, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73,
  1837. 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64,
  1838. 0x5f, 0x62, 0x79, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74,
  1839. 0x65, 0x64, 0x42, 0x79, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f,
  1840. 0x61, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65,
  1841. 0x64, 0x41, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61,
  1842. 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64,
  1843. 0x41, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x62, 0x79,
  1844. 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x42,
  1845. 0x79, 0x12, 0x39, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x0a, 0x20, 0x01, 0x28,
  1846. 0x0e, 0x32, 0x21, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e,
  1847. 0x67, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73,
  1848. 0x45, 0x6e, 0x75, 0x6d, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x1f, 0x0a, 0x0b,
  1849. 0x69, 0x73, 0x5f, 0x72, 0x65, 0x73, 0x65, 0x72, 0x76, 0x65, 0x64, 0x18, 0x0b, 0x20, 0x01, 0x28,
  1850. 0x08, 0x52, 0x0a, 0x69, 0x73, 0x52, 0x65, 0x73, 0x65, 0x72, 0x76, 0x65, 0x64, 0x22, 0xf9, 0x02,
  1851. 0x0a, 0x0a, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x0e, 0x0a, 0x02,
  1852. 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04,
  1853. 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65,
  1854. 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18,
  1855. 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69,
  1856. 0x6f, 0x6e, 0x12, 0x31, 0x0a, 0x05, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28,
  1857. 0x0b, 0x32, 0x1b, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e,
  1858. 0x67, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x42, 0x61, 0x73, 0x65, 0x52, 0x05,
  1859. 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64,
  1860. 0x5f, 0x61, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74,
  1861. 0x65, 0x64, 0x41, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f,
  1862. 0x62, 0x79, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65,
  1863. 0x64, 0x42, 0x79, 0x12, 0x1d, 0x0a, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61,
  1864. 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64,
  1865. 0x41, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x62, 0x79,
  1866. 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x42,
  1867. 0x79, 0x12, 0x39, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x09, 0x20, 0x01, 0x28,
  1868. 0x0e, 0x32, 0x21, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e,
  1869. 0x67, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73,
  1870. 0x45, 0x6e, 0x75, 0x6d, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x1f, 0x0a, 0x0b,
  1871. 0x69, 0x73, 0x5f, 0x72, 0x65, 0x73, 0x65, 0x72, 0x76, 0x65, 0x64, 0x18, 0x0a, 0x20, 0x01, 0x28,
  1872. 0x08, 0x52, 0x0a, 0x69, 0x73, 0x52, 0x65, 0x73, 0x65, 0x72, 0x76, 0x65, 0x64, 0x12, 0x1a, 0x0a,
  1873. 0x08, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52,
  1874. 0x08, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x2a, 0x41, 0x0a, 0x0a, 0x53, 0x74, 0x61,
  1875. 0x74, 0x75, 0x73, 0x45, 0x6e, 0x75, 0x6d, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x4e, 0x4b, 0x4e, 0x4f,
  1876. 0x57, 0x4e, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x45, 0x4e, 0x41, 0x42, 0x4c, 0x45, 0x44, 0x10,
  1877. 0x01, 0x12, 0x0c, 0x0a, 0x08, 0x44, 0x49, 0x53, 0x41, 0x42, 0x4c, 0x45, 0x44, 0x10, 0x02, 0x12,
  1878. 0x0b, 0x0a, 0x07, 0x44, 0x45, 0x4c, 0x45, 0x54, 0x45, 0x44, 0x10, 0x03, 0x2a, 0xaa, 0x02, 0x0a,
  1879. 0x0f, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x45, 0x6e, 0x75, 0x6d,
  1880. 0x12, 0x11, 0x0a, 0x0d, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57,
  1881. 0x4e, 0x10, 0x00, 0x12, 0x11, 0x0a, 0x0d, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x43, 0x52, 0x45,
  1882. 0x41, 0x54, 0x45, 0x44, 0x10, 0x01, 0x12, 0x19, 0x0a, 0x15, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f,
  1883. 0x50, 0x45, 0x4e, 0x44, 0x49, 0x4e, 0x47, 0x5f, 0x50, 0x41, 0x59, 0x4d, 0x45, 0x4e, 0x54, 0x10,
  1884. 0x02, 0x12, 0x0e, 0x0a, 0x0a, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x50, 0x41, 0x49, 0x44, 0x10,
  1885. 0x03, 0x12, 0x14, 0x0a, 0x10, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x50, 0x52, 0x4f, 0x43, 0x45,
  1886. 0x53, 0x53, 0x49, 0x4e, 0x47, 0x10, 0x04, 0x12, 0x11, 0x0a, 0x0d, 0x4f, 0x52, 0x44, 0x45, 0x52,
  1887. 0x5f, 0x53, 0x48, 0x49, 0x50, 0x50, 0x45, 0x44, 0x10, 0x05, 0x12, 0x13, 0x0a, 0x0f, 0x4f, 0x52,
  1888. 0x44, 0x45, 0x52, 0x5f, 0x43, 0x4f, 0x4d, 0x50, 0x4c, 0x45, 0x54, 0x45, 0x44, 0x10, 0x06, 0x12,
  1889. 0x12, 0x0a, 0x0e, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x43, 0x41, 0x4e, 0x43, 0x45, 0x4c, 0x45,
  1890. 0x44, 0x10, 0x07, 0x12, 0x1c, 0x0a, 0x18, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x52, 0x45, 0x46,
  1891. 0x55, 0x4e, 0x44, 0x5f, 0x49, 0x4e, 0x5f, 0x50, 0x52, 0x4f, 0x47, 0x52, 0x45, 0x53, 0x53, 0x10,
  1892. 0x08, 0x12, 0x12, 0x0a, 0x0e, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x52, 0x45, 0x46, 0x55, 0x4e,
  1893. 0x44, 0x45, 0x44, 0x10, 0x09, 0x12, 0x1c, 0x0a, 0x18, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x52,
  1894. 0x45, 0x54, 0x55, 0x52, 0x4e, 0x5f, 0x49, 0x4e, 0x5f, 0x50, 0x52, 0x4f, 0x47, 0x52, 0x45, 0x53,
  1895. 0x53, 0x10, 0x0a, 0x12, 0x12, 0x0a, 0x0e, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x52, 0x45, 0x54,
  1896. 0x55, 0x52, 0x4e, 0x45, 0x44, 0x10, 0x0b, 0x12, 0x10, 0x0a, 0x0c, 0x55, 0x4e, 0x44, 0x45, 0x52,
  1897. 0x5f, 0x52, 0x45, 0x56, 0x49, 0x45, 0x57, 0x10, 0x0c, 0x2a, 0xff, 0x01, 0x0a, 0x11, 0x50, 0x61,
  1898. 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x45, 0x6e, 0x75, 0x6d, 0x12,
  1899. 0x13, 0x0a, 0x0f, 0x50, 0x41, 0x59, 0x4d, 0x45, 0x4e, 0x54, 0x5f, 0x55, 0x4e, 0x4b, 0x4e, 0x4f,
  1900. 0x57, 0x4e, 0x10, 0x00, 0x12, 0x13, 0x0a, 0x0f, 0x50, 0x41, 0x59, 0x4d, 0x45, 0x4e, 0x54, 0x5f,
  1901. 0x50, 0x45, 0x4e, 0x44, 0x49, 0x4e, 0x47, 0x10, 0x01, 0x12, 0x16, 0x0a, 0x12, 0x50, 0x41, 0x59,
  1902. 0x4d, 0x45, 0x4e, 0x54, 0x5f, 0x50, 0x52, 0x4f, 0x43, 0x45, 0x53, 0x53, 0x49, 0x4e, 0x47, 0x10,
  1903. 0x02, 0x12, 0x10, 0x0a, 0x0c, 0x50, 0x41, 0x59, 0x4d, 0x45, 0x4e, 0x54, 0x5f, 0x50, 0x41, 0x49,
  1904. 0x44, 0x10, 0x03, 0x12, 0x12, 0x0a, 0x0e, 0x50, 0x41, 0x59, 0x4d, 0x45, 0x4e, 0x54, 0x5f, 0x46,
  1905. 0x41, 0x49, 0x4c, 0x45, 0x44, 0x10, 0x04, 0x12, 0x14, 0x0a, 0x10, 0x50, 0x41, 0x59, 0x4d, 0x45,
  1906. 0x4e, 0x54, 0x5f, 0x43, 0x41, 0x4e, 0x43, 0x45, 0x4c, 0x45, 0x44, 0x10, 0x05, 0x12, 0x15, 0x0a,
  1907. 0x11, 0x50, 0x41, 0x59, 0x4d, 0x45, 0x4e, 0x54, 0x5f, 0x52, 0x45, 0x46, 0x55, 0x4e, 0x44, 0x49,
  1908. 0x4e, 0x47, 0x10, 0x06, 0x12, 0x14, 0x0a, 0x10, 0x50, 0x41, 0x59, 0x4d, 0x45, 0x4e, 0x54, 0x5f,
  1909. 0x52, 0x45, 0x46, 0x55, 0x4e, 0x44, 0x45, 0x44, 0x10, 0x07, 0x12, 0x1f, 0x0a, 0x1b, 0x50, 0x41,
  1910. 0x59, 0x4d, 0x45, 0x4e, 0x54, 0x5f, 0x50, 0x41, 0x52, 0x54, 0x49, 0x41, 0x4c, 0x4c, 0x59, 0x5f,
  1911. 0x52, 0x45, 0x46, 0x55, 0x4e, 0x44, 0x49, 0x4e, 0x47, 0x10, 0x08, 0x12, 0x1e, 0x0a, 0x1a, 0x50,
  1912. 0x41, 0x59, 0x4d, 0x45, 0x4e, 0x54, 0x5f, 0x50, 0x41, 0x52, 0x54, 0x49, 0x41, 0x4c, 0x4c, 0x59,
  1913. 0x5f, 0x52, 0x45, 0x46, 0x55, 0x4e, 0x44, 0x45, 0x44, 0x10, 0x09, 0x2a, 0x86, 0x01, 0x0a, 0x11,
  1914. 0x50, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x45, 0x6e, 0x75,
  1915. 0x6d, 0x12, 0x1a, 0x0a, 0x16, 0x50, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x4d, 0x65, 0x74,
  1916. 0x68, 0x6f, 0x64, 0x5f, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x1b, 0x0a,
  1917. 0x17, 0x50, 0x41, 0x59, 0x4d, 0x45, 0x4e, 0x54, 0x5f, 0x4d, 0x45, 0x54, 0x48, 0x4f, 0x44, 0x5f,
  1918. 0x42, 0x41, 0x4e, 0x4b, 0x43, 0x41, 0x52, 0x44, 0x10, 0x01, 0x12, 0x19, 0x0a, 0x15, 0x50, 0x41,
  1919. 0x59, 0x4d, 0x45, 0x4e, 0x54, 0x5f, 0x4d, 0x45, 0x54, 0x48, 0x4f, 0x44, 0x5f, 0x41, 0x4c, 0x49,
  1920. 0x50, 0x41, 0x59, 0x10, 0x03, 0x12, 0x1d, 0x0a, 0x19, 0x50, 0x41, 0x59, 0x4d, 0x45, 0x4e, 0x54,
  1921. 0x5f, 0x4d, 0x45, 0x54, 0x48, 0x4f, 0x44, 0x5f, 0x57, 0x45, 0x43, 0x48, 0x41, 0x54, 0x5f, 0x50,
  1922. 0x41, 0x59, 0x10, 0x04, 0x42, 0x1a, 0x5a, 0x18, 0x2e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x3b,
  1923. 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65,
  1924. 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  1925. }
  1926. var (
  1927. file_proto_base_shopping_service_proto_rawDescOnce sync.Once
  1928. file_proto_base_shopping_service_proto_rawDescData = file_proto_base_shopping_service_proto_rawDesc
  1929. )
  1930. func file_proto_base_shopping_service_proto_rawDescGZIP() []byte {
  1931. file_proto_base_shopping_service_proto_rawDescOnce.Do(func() {
  1932. file_proto_base_shopping_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_proto_base_shopping_service_proto_rawDescData)
  1933. })
  1934. return file_proto_base_shopping_service_proto_rawDescData
  1935. }
  1936. var file_proto_base_shopping_service_proto_enumTypes = make([]protoimpl.EnumInfo, 4)
  1937. var file_proto_base_shopping_service_proto_msgTypes = make([]protoimpl.MessageInfo, 15)
  1938. var file_proto_base_shopping_service_proto_goTypes = []interface{}{
  1939. (StatusEnum)(0), // 0: base_shopping_service.StatusEnum
  1940. (OrderStatusEnum)(0), // 1: base_shopping_service.OrderStatusEnum
  1941. (PaymentStatusEnum)(0), // 2: base_shopping_service.PaymentStatusEnum
  1942. (PaymentMethodEnum)(0), // 3: base_shopping_service.PaymentMethodEnum
  1943. (*Address)(nil), // 4: base_shopping_service.Address
  1944. (*Location)(nil), // 5: base_shopping_service.Location
  1945. (*Category)(nil), // 6: base_shopping_service.Category
  1946. (*Order)(nil), // 7: base_shopping_service.Order
  1947. (*OrderItem)(nil), // 8: base_shopping_service.OrderItem
  1948. (*Payment)(nil), // 9: base_shopping_service.Payment
  1949. (*Product)(nil), // 10: base_shopping_service.Product
  1950. (*ShoppingCart)(nil), // 11: base_shopping_service.ShoppingCart
  1951. (*ShoppingCartItem)(nil), // 12: base_shopping_service.ShoppingCartItem
  1952. (*UserAuth)(nil), // 13: base_shopping_service.UserAuth
  1953. (*User)(nil), // 14: base_shopping_service.User
  1954. (*UserGroup)(nil), // 15: base_shopping_service.UserGroup
  1955. (*Base)(nil), // 16: base_shopping_service.Base
  1956. (*Role)(nil), // 17: base_shopping_service.Role
  1957. (*Permission)(nil), // 18: base_shopping_service.Permission
  1958. }
  1959. var file_proto_base_shopping_service_proto_depIdxs = []int32{
  1960. 5, // 0: base_shopping_service.Address.location:type_name -> base_shopping_service.Location
  1961. 14, // 1: base_shopping_service.Order.user:type_name -> base_shopping_service.User
  1962. 4, // 2: base_shopping_service.Order.address:type_name -> base_shopping_service.Address
  1963. 1, // 3: base_shopping_service.Order.status:type_name -> base_shopping_service.OrderStatusEnum
  1964. 3, // 4: base_shopping_service.Order.payment_method:type_name -> base_shopping_service.PaymentMethodEnum
  1965. 8, // 5: base_shopping_service.Order.order_items:type_name -> base_shopping_service.OrderItem
  1966. 9, // 6: base_shopping_service.Order.payment:type_name -> base_shopping_service.Payment
  1967. 7, // 7: base_shopping_service.OrderItem.order:type_name -> base_shopping_service.Order
  1968. 10, // 8: base_shopping_service.OrderItem.product:type_name -> base_shopping_service.Product
  1969. 2, // 9: base_shopping_service.Payment.status:type_name -> base_shopping_service.PaymentStatusEnum
  1970. 3, // 10: base_shopping_service.Payment.payment_method:type_name -> base_shopping_service.PaymentMethodEnum
  1971. 6, // 11: base_shopping_service.Product.category:type_name -> base_shopping_service.Category
  1972. 12, // 12: base_shopping_service.ShoppingCart.items:type_name -> base_shopping_service.ShoppingCartItem
  1973. 10, // 13: base_shopping_service.ShoppingCartItem.product:type_name -> base_shopping_service.Product
  1974. 4, // 14: base_shopping_service.User.addresses:type_name -> base_shopping_service.Address
  1975. 11, // 15: base_shopping_service.User.shopping_cart:type_name -> base_shopping_service.ShoppingCart
  1976. 7, // 16: base_shopping_service.User.orders:type_name -> base_shopping_service.Order
  1977. 13, // 17: base_shopping_service.User.user_auth:type_name -> base_shopping_service.UserAuth
  1978. 0, // 18: base_shopping_service.User.status:type_name -> base_shopping_service.StatusEnum
  1979. 16, // 19: base_shopping_service.User.roles:type_name -> base_shopping_service.Base
  1980. 15, // 20: base_shopping_service.User.group:type_name -> base_shopping_service.UserGroup
  1981. 16, // 21: base_shopping_service.Role.users:type_name -> base_shopping_service.Base
  1982. 16, // 22: base_shopping_service.Role.permissions:type_name -> base_shopping_service.Base
  1983. 0, // 23: base_shopping_service.Role.status:type_name -> base_shopping_service.StatusEnum
  1984. 16, // 24: base_shopping_service.Permission.roles:type_name -> base_shopping_service.Base
  1985. 0, // 25: base_shopping_service.Permission.status:type_name -> base_shopping_service.StatusEnum
  1986. 26, // [26:26] is the sub-list for method output_type
  1987. 26, // [26:26] is the sub-list for method input_type
  1988. 26, // [26:26] is the sub-list for extension type_name
  1989. 26, // [26:26] is the sub-list for extension extendee
  1990. 0, // [0:26] is the sub-list for field type_name
  1991. }
  1992. func init() { file_proto_base_shopping_service_proto_init() }
  1993. func file_proto_base_shopping_service_proto_init() {
  1994. if File_proto_base_shopping_service_proto != nil {
  1995. return
  1996. }
  1997. if !protoimpl.UnsafeEnabled {
  1998. file_proto_base_shopping_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  1999. switch v := v.(*Address); i {
  2000. case 0:
  2001. return &v.state
  2002. case 1:
  2003. return &v.sizeCache
  2004. case 2:
  2005. return &v.unknownFields
  2006. default:
  2007. return nil
  2008. }
  2009. }
  2010. file_proto_base_shopping_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  2011. switch v := v.(*Location); i {
  2012. case 0:
  2013. return &v.state
  2014. case 1:
  2015. return &v.sizeCache
  2016. case 2:
  2017. return &v.unknownFields
  2018. default:
  2019. return nil
  2020. }
  2021. }
  2022. file_proto_base_shopping_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  2023. switch v := v.(*Category); i {
  2024. case 0:
  2025. return &v.state
  2026. case 1:
  2027. return &v.sizeCache
  2028. case 2:
  2029. return &v.unknownFields
  2030. default:
  2031. return nil
  2032. }
  2033. }
  2034. file_proto_base_shopping_service_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
  2035. switch v := v.(*Order); i {
  2036. case 0:
  2037. return &v.state
  2038. case 1:
  2039. return &v.sizeCache
  2040. case 2:
  2041. return &v.unknownFields
  2042. default:
  2043. return nil
  2044. }
  2045. }
  2046. file_proto_base_shopping_service_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
  2047. switch v := v.(*OrderItem); i {
  2048. case 0:
  2049. return &v.state
  2050. case 1:
  2051. return &v.sizeCache
  2052. case 2:
  2053. return &v.unknownFields
  2054. default:
  2055. return nil
  2056. }
  2057. }
  2058. file_proto_base_shopping_service_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
  2059. switch v := v.(*Payment); i {
  2060. case 0:
  2061. return &v.state
  2062. case 1:
  2063. return &v.sizeCache
  2064. case 2:
  2065. return &v.unknownFields
  2066. default:
  2067. return nil
  2068. }
  2069. }
  2070. file_proto_base_shopping_service_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
  2071. switch v := v.(*Product); i {
  2072. case 0:
  2073. return &v.state
  2074. case 1:
  2075. return &v.sizeCache
  2076. case 2:
  2077. return &v.unknownFields
  2078. default:
  2079. return nil
  2080. }
  2081. }
  2082. file_proto_base_shopping_service_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
  2083. switch v := v.(*ShoppingCart); i {
  2084. case 0:
  2085. return &v.state
  2086. case 1:
  2087. return &v.sizeCache
  2088. case 2:
  2089. return &v.unknownFields
  2090. default:
  2091. return nil
  2092. }
  2093. }
  2094. file_proto_base_shopping_service_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
  2095. switch v := v.(*ShoppingCartItem); i {
  2096. case 0:
  2097. return &v.state
  2098. case 1:
  2099. return &v.sizeCache
  2100. case 2:
  2101. return &v.unknownFields
  2102. default:
  2103. return nil
  2104. }
  2105. }
  2106. file_proto_base_shopping_service_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
  2107. switch v := v.(*UserAuth); i {
  2108. case 0:
  2109. return &v.state
  2110. case 1:
  2111. return &v.sizeCache
  2112. case 2:
  2113. return &v.unknownFields
  2114. default:
  2115. return nil
  2116. }
  2117. }
  2118. file_proto_base_shopping_service_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
  2119. switch v := v.(*User); i {
  2120. case 0:
  2121. return &v.state
  2122. case 1:
  2123. return &v.sizeCache
  2124. case 2:
  2125. return &v.unknownFields
  2126. default:
  2127. return nil
  2128. }
  2129. }
  2130. file_proto_base_shopping_service_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
  2131. switch v := v.(*UserGroup); i {
  2132. case 0:
  2133. return &v.state
  2134. case 1:
  2135. return &v.sizeCache
  2136. case 2:
  2137. return &v.unknownFields
  2138. default:
  2139. return nil
  2140. }
  2141. }
  2142. file_proto_base_shopping_service_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} {
  2143. switch v := v.(*Base); i {
  2144. case 0:
  2145. return &v.state
  2146. case 1:
  2147. return &v.sizeCache
  2148. case 2:
  2149. return &v.unknownFields
  2150. default:
  2151. return nil
  2152. }
  2153. }
  2154. file_proto_base_shopping_service_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} {
  2155. switch v := v.(*Role); i {
  2156. case 0:
  2157. return &v.state
  2158. case 1:
  2159. return &v.sizeCache
  2160. case 2:
  2161. return &v.unknownFields
  2162. default:
  2163. return nil
  2164. }
  2165. }
  2166. file_proto_base_shopping_service_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} {
  2167. switch v := v.(*Permission); i {
  2168. case 0:
  2169. return &v.state
  2170. case 1:
  2171. return &v.sizeCache
  2172. case 2:
  2173. return &v.unknownFields
  2174. default:
  2175. return nil
  2176. }
  2177. }
  2178. }
  2179. type x struct{}
  2180. out := protoimpl.TypeBuilder{
  2181. File: protoimpl.DescBuilder{
  2182. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  2183. RawDescriptor: file_proto_base_shopping_service_proto_rawDesc,
  2184. NumEnums: 4,
  2185. NumMessages: 15,
  2186. NumExtensions: 0,
  2187. NumServices: 0,
  2188. },
  2189. GoTypes: file_proto_base_shopping_service_proto_goTypes,
  2190. DependencyIndexes: file_proto_base_shopping_service_proto_depIdxs,
  2191. EnumInfos: file_proto_base_shopping_service_proto_enumTypes,
  2192. MessageInfos: file_proto_base_shopping_service_proto_msgTypes,
  2193. }.Build()
  2194. File_proto_base_shopping_service_proto = out.File
  2195. file_proto_base_shopping_service_proto_rawDesc = nil
  2196. file_proto_base_shopping_service_proto_goTypes = nil
  2197. file_proto_base_shopping_service_proto_depIdxs = nil
  2198. }