message.pb.go 80 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.25.0
  4. // protoc v3.15.1
  5. // source: message.proto
  6. package message
  7. import (
  8. context "context"
  9. proto "github.com/golang/protobuf/proto"
  10. grpc "google.golang.org/grpc"
  11. codes "google.golang.org/grpc/codes"
  12. status "google.golang.org/grpc/status"
  13. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  14. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  15. reflect "reflect"
  16. sync "sync"
  17. )
  18. const (
  19. // Verify that this generated code is sufficiently up-to-date.
  20. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  21. // Verify that runtime/protoimpl is sufficiently up-to-date.
  22. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  23. )
  24. // This is a compile-time assertion that a sufficiently up-to-date version
  25. // of the legacy proto package is being used.
  26. const _ = proto.ProtoPackageIsVersion4
  27. type SendMsgRequest struct {
  28. state protoimpl.MessageState
  29. sizeCache protoimpl.SizeCache
  30. unknownFields protoimpl.UnknownFields
  31. ReceiveUserId string `protobuf:"bytes,1,opt,name=receiveUserId,proto3" json:"receiveUserId,omitempty"` //接收方用户ID
  32. ReceiveName string `protobuf:"bytes,2,opt,name=receiveName,proto3" json:"receiveName,omitempty"` //接收方用户名
  33. SendUserId string `protobuf:"bytes,3,opt,name=sendUserId,proto3" json:"sendUserId,omitempty"` //发送方用户ID
  34. SendName string `protobuf:"bytes,4,opt,name=sendName,proto3" json:"sendName,omitempty"` //发送方用户名
  35. Title string `protobuf:"bytes,5,opt,name=title,proto3" json:"title,omitempty"` //主题
  36. Content string `protobuf:"bytes,6,opt,name=content,proto3" json:"content,omitempty"` //内容
  37. MsgType int64 `protobuf:"varint,7,opt,name=msgType,proto3" json:"msgType,omitempty"` //消息类型 1:客服 2:系统通知 3:营销 4:用户会话
  38. Link string `protobuf:"bytes,8,opt,name=link,proto3" json:"link,omitempty"` //跳转链接
  39. CiteId int64 `protobuf:"varint,9,opt,name=citeId,proto3" json:"citeId,omitempty"` //引用id
  40. Appid string `protobuf:"bytes,10,opt,name=appid,proto3" json:"appid,omitempty"` //应用标识
  41. }
  42. func (x *SendMsgRequest) Reset() {
  43. *x = SendMsgRequest{}
  44. if protoimpl.UnsafeEnabled {
  45. mi := &file_message_proto_msgTypes[0]
  46. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  47. ms.StoreMessageInfo(mi)
  48. }
  49. }
  50. func (x *SendMsgRequest) String() string {
  51. return protoimpl.X.MessageStringOf(x)
  52. }
  53. func (*SendMsgRequest) ProtoMessage() {}
  54. func (x *SendMsgRequest) ProtoReflect() protoreflect.Message {
  55. mi := &file_message_proto_msgTypes[0]
  56. if protoimpl.UnsafeEnabled && x != nil {
  57. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  58. if ms.LoadMessageInfo() == nil {
  59. ms.StoreMessageInfo(mi)
  60. }
  61. return ms
  62. }
  63. return mi.MessageOf(x)
  64. }
  65. // Deprecated: Use SendMsgRequest.ProtoReflect.Descriptor instead.
  66. func (*SendMsgRequest) Descriptor() ([]byte, []int) {
  67. return file_message_proto_rawDescGZIP(), []int{0}
  68. }
  69. func (x *SendMsgRequest) GetReceiveUserId() string {
  70. if x != nil {
  71. return x.ReceiveUserId
  72. }
  73. return ""
  74. }
  75. func (x *SendMsgRequest) GetReceiveName() string {
  76. if x != nil {
  77. return x.ReceiveName
  78. }
  79. return ""
  80. }
  81. func (x *SendMsgRequest) GetSendUserId() string {
  82. if x != nil {
  83. return x.SendUserId
  84. }
  85. return ""
  86. }
  87. func (x *SendMsgRequest) GetSendName() string {
  88. if x != nil {
  89. return x.SendName
  90. }
  91. return ""
  92. }
  93. func (x *SendMsgRequest) GetTitle() string {
  94. if x != nil {
  95. return x.Title
  96. }
  97. return ""
  98. }
  99. func (x *SendMsgRequest) GetContent() string {
  100. if x != nil {
  101. return x.Content
  102. }
  103. return ""
  104. }
  105. func (x *SendMsgRequest) GetMsgType() int64 {
  106. if x != nil {
  107. return x.MsgType
  108. }
  109. return 0
  110. }
  111. func (x *SendMsgRequest) GetLink() string {
  112. if x != nil {
  113. return x.Link
  114. }
  115. return ""
  116. }
  117. func (x *SendMsgRequest) GetCiteId() int64 {
  118. if x != nil {
  119. return x.CiteId
  120. }
  121. return 0
  122. }
  123. func (x *SendMsgRequest) GetAppid() string {
  124. if x != nil {
  125. return x.Appid
  126. }
  127. return ""
  128. }
  129. type ChangeReadStatusRequest struct {
  130. state protoimpl.MessageState
  131. sizeCache protoimpl.SizeCache
  132. unknownFields protoimpl.UnknownFields
  133. Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // 消息id
  134. ReadStatus int64 `protobuf:"varint,2,opt,name=readStatus,proto3" json:"readStatus,omitempty"` // 阅读状态 0-未读 1-已读
  135. Appid string `protobuf:"bytes,3,opt,name=appid,proto3" json:"appid,omitempty"` //应用标识
  136. }
  137. func (x *ChangeReadStatusRequest) Reset() {
  138. *x = ChangeReadStatusRequest{}
  139. if protoimpl.UnsafeEnabled {
  140. mi := &file_message_proto_msgTypes[1]
  141. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  142. ms.StoreMessageInfo(mi)
  143. }
  144. }
  145. func (x *ChangeReadStatusRequest) String() string {
  146. return protoimpl.X.MessageStringOf(x)
  147. }
  148. func (*ChangeReadStatusRequest) ProtoMessage() {}
  149. func (x *ChangeReadStatusRequest) ProtoReflect() protoreflect.Message {
  150. mi := &file_message_proto_msgTypes[1]
  151. if protoimpl.UnsafeEnabled && x != nil {
  152. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  153. if ms.LoadMessageInfo() == nil {
  154. ms.StoreMessageInfo(mi)
  155. }
  156. return ms
  157. }
  158. return mi.MessageOf(x)
  159. }
  160. // Deprecated: Use ChangeReadStatusRequest.ProtoReflect.Descriptor instead.
  161. func (*ChangeReadStatusRequest) Descriptor() ([]byte, []int) {
  162. return file_message_proto_rawDescGZIP(), []int{1}
  163. }
  164. func (x *ChangeReadStatusRequest) GetId() int64 {
  165. if x != nil {
  166. return x.Id
  167. }
  168. return 0
  169. }
  170. func (x *ChangeReadStatusRequest) GetReadStatus() int64 {
  171. if x != nil {
  172. return x.ReadStatus
  173. }
  174. return 0
  175. }
  176. func (x *ChangeReadStatusRequest) GetAppid() string {
  177. if x != nil {
  178. return x.Appid
  179. }
  180. return ""
  181. }
  182. type ResCount struct {
  183. state protoimpl.MessageState
  184. sizeCache protoimpl.SizeCache
  185. unknownFields protoimpl.UnknownFields
  186. MsgType int64 `protobuf:"varint,1,opt,name=msgType,proto3" json:"msgType,omitempty"` // 类型及未读数量
  187. Count int64 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"` // 类型及未读数量
  188. }
  189. func (x *ResCount) Reset() {
  190. *x = ResCount{}
  191. if protoimpl.UnsafeEnabled {
  192. mi := &file_message_proto_msgTypes[2]
  193. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  194. ms.StoreMessageInfo(mi)
  195. }
  196. }
  197. func (x *ResCount) String() string {
  198. return protoimpl.X.MessageStringOf(x)
  199. }
  200. func (*ResCount) ProtoMessage() {}
  201. func (x *ResCount) ProtoReflect() protoreflect.Message {
  202. mi := &file_message_proto_msgTypes[2]
  203. if protoimpl.UnsafeEnabled && x != nil {
  204. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  205. if ms.LoadMessageInfo() == nil {
  206. ms.StoreMessageInfo(mi)
  207. }
  208. return ms
  209. }
  210. return mi.MessageOf(x)
  211. }
  212. // Deprecated: Use ResCount.ProtoReflect.Descriptor instead.
  213. func (*ResCount) Descriptor() ([]byte, []int) {
  214. return file_message_proto_rawDescGZIP(), []int{2}
  215. }
  216. func (x *ResCount) GetMsgType() int64 {
  217. if x != nil {
  218. return x.MsgType
  219. }
  220. return 0
  221. }
  222. func (x *ResCount) GetCount() int64 {
  223. if x != nil {
  224. return x.Count
  225. }
  226. return 0
  227. }
  228. // 删除单一消息
  229. type DeleteSingleMessageRequest struct {
  230. state protoimpl.MessageState
  231. sizeCache protoimpl.SizeCache
  232. unknownFields protoimpl.UnknownFields
  233. Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // 消息id
  234. Appid string `protobuf:"bytes,3,opt,name=appid,proto3" json:"appid,omitempty"` //应用标识
  235. }
  236. func (x *DeleteSingleMessageRequest) Reset() {
  237. *x = DeleteSingleMessageRequest{}
  238. if protoimpl.UnsafeEnabled {
  239. mi := &file_message_proto_msgTypes[3]
  240. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  241. ms.StoreMessageInfo(mi)
  242. }
  243. }
  244. func (x *DeleteSingleMessageRequest) String() string {
  245. return protoimpl.X.MessageStringOf(x)
  246. }
  247. func (*DeleteSingleMessageRequest) ProtoMessage() {}
  248. func (x *DeleteSingleMessageRequest) ProtoReflect() protoreflect.Message {
  249. mi := &file_message_proto_msgTypes[3]
  250. if protoimpl.UnsafeEnabled && x != nil {
  251. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  252. if ms.LoadMessageInfo() == nil {
  253. ms.StoreMessageInfo(mi)
  254. }
  255. return ms
  256. }
  257. return mi.MessageOf(x)
  258. }
  259. // Deprecated: Use DeleteSingleMessageRequest.ProtoReflect.Descriptor instead.
  260. func (*DeleteSingleMessageRequest) Descriptor() ([]byte, []int) {
  261. return file_message_proto_rawDescGZIP(), []int{3}
  262. }
  263. func (x *DeleteSingleMessageRequest) GetId() int64 {
  264. if x != nil {
  265. return x.Id
  266. }
  267. return 0
  268. }
  269. func (x *DeleteSingleMessageRequest) GetAppid() string {
  270. if x != nil {
  271. return x.Appid
  272. }
  273. return ""
  274. }
  275. // 批量删除消息
  276. type DeleteMultipleMessageRequest struct {
  277. state protoimpl.MessageState
  278. sizeCache protoimpl.SizeCache
  279. unknownFields protoimpl.UnknownFields
  280. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // 多条消息id, 逗号分隔
  281. Appid string `protobuf:"bytes,3,opt,name=appid,proto3" json:"appid,omitempty"` //应用标识
  282. }
  283. func (x *DeleteMultipleMessageRequest) Reset() {
  284. *x = DeleteMultipleMessageRequest{}
  285. if protoimpl.UnsafeEnabled {
  286. mi := &file_message_proto_msgTypes[4]
  287. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  288. ms.StoreMessageInfo(mi)
  289. }
  290. }
  291. func (x *DeleteMultipleMessageRequest) String() string {
  292. return protoimpl.X.MessageStringOf(x)
  293. }
  294. func (*DeleteMultipleMessageRequest) ProtoMessage() {}
  295. func (x *DeleteMultipleMessageRequest) ProtoReflect() protoreflect.Message {
  296. mi := &file_message_proto_msgTypes[4]
  297. if protoimpl.UnsafeEnabled && x != nil {
  298. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  299. if ms.LoadMessageInfo() == nil {
  300. ms.StoreMessageInfo(mi)
  301. }
  302. return ms
  303. }
  304. return mi.MessageOf(x)
  305. }
  306. // Deprecated: Use DeleteMultipleMessageRequest.ProtoReflect.Descriptor instead.
  307. func (*DeleteMultipleMessageRequest) Descriptor() ([]byte, []int) {
  308. return file_message_proto_rawDescGZIP(), []int{4}
  309. }
  310. func (x *DeleteMultipleMessageRequest) GetId() string {
  311. if x != nil {
  312. return x.Id
  313. }
  314. return ""
  315. }
  316. func (x *DeleteMultipleMessageRequest) GetAppid() string {
  317. if x != nil {
  318. return x.Appid
  319. }
  320. return ""
  321. }
  322. // 查询指定用户未读消息合计
  323. type GetUnreadCountRequest struct {
  324. state protoimpl.MessageState
  325. sizeCache protoimpl.SizeCache
  326. unknownFields protoimpl.UnknownFields
  327. UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"` // 用户id
  328. Appid string `protobuf:"bytes,2,opt,name=appid,proto3" json:"appid,omitempty"` //应用标识
  329. }
  330. func (x *GetUnreadCountRequest) Reset() {
  331. *x = GetUnreadCountRequest{}
  332. if protoimpl.UnsafeEnabled {
  333. mi := &file_message_proto_msgTypes[5]
  334. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  335. ms.StoreMessageInfo(mi)
  336. }
  337. }
  338. func (x *GetUnreadCountRequest) String() string {
  339. return protoimpl.X.MessageStringOf(x)
  340. }
  341. func (*GetUnreadCountRequest) ProtoMessage() {}
  342. func (x *GetUnreadCountRequest) ProtoReflect() protoreflect.Message {
  343. mi := &file_message_proto_msgTypes[5]
  344. if protoimpl.UnsafeEnabled && x != nil {
  345. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  346. if ms.LoadMessageInfo() == nil {
  347. ms.StoreMessageInfo(mi)
  348. }
  349. return ms
  350. }
  351. return mi.MessageOf(x)
  352. }
  353. // Deprecated: Use GetUnreadCountRequest.ProtoReflect.Descriptor instead.
  354. func (*GetUnreadCountRequest) Descriptor() ([]byte, []int) {
  355. return file_message_proto_rawDescGZIP(), []int{5}
  356. }
  357. func (x *GetUnreadCountRequest) GetUserId() string {
  358. if x != nil {
  359. return x.UserId
  360. }
  361. return ""
  362. }
  363. func (x *GetUnreadCountRequest) GetAppid() string {
  364. if x != nil {
  365. return x.Appid
  366. }
  367. return ""
  368. }
  369. type Response struct {
  370. state protoimpl.MessageState
  371. sizeCache protoimpl.SizeCache
  372. unknownFields protoimpl.UnknownFields
  373. Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` //状态码
  374. Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` //响应消息
  375. }
  376. func (x *Response) Reset() {
  377. *x = Response{}
  378. if protoimpl.UnsafeEnabled {
  379. mi := &file_message_proto_msgTypes[6]
  380. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  381. ms.StoreMessageInfo(mi)
  382. }
  383. }
  384. func (x *Response) String() string {
  385. return protoimpl.X.MessageStringOf(x)
  386. }
  387. func (*Response) ProtoMessage() {}
  388. func (x *Response) ProtoReflect() protoreflect.Message {
  389. mi := &file_message_proto_msgTypes[6]
  390. if protoimpl.UnsafeEnabled && x != nil {
  391. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  392. if ms.LoadMessageInfo() == nil {
  393. ms.StoreMessageInfo(mi)
  394. }
  395. return ms
  396. }
  397. return mi.MessageOf(x)
  398. }
  399. // Deprecated: Use Response.ProtoReflect.Descriptor instead.
  400. func (*Response) Descriptor() ([]byte, []int) {
  401. return file_message_proto_rawDescGZIP(), []int{6}
  402. }
  403. func (x *Response) GetCode() int64 {
  404. if x != nil {
  405. return x.Code
  406. }
  407. return 0
  408. }
  409. func (x *Response) GetMessage() string {
  410. if x != nil {
  411. return x.Message
  412. }
  413. return ""
  414. }
  415. type GetUnreadCountResponse struct {
  416. state protoimpl.MessageState
  417. sizeCache protoimpl.SizeCache
  418. unknownFields protoimpl.UnknownFields
  419. Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` //状态码
  420. Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` //响应消息
  421. Count int64 `protobuf:"varint,3,opt,name=count,proto3" json:"count,omitempty"` //
  422. }
  423. func (x *GetUnreadCountResponse) Reset() {
  424. *x = GetUnreadCountResponse{}
  425. if protoimpl.UnsafeEnabled {
  426. mi := &file_message_proto_msgTypes[7]
  427. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  428. ms.StoreMessageInfo(mi)
  429. }
  430. }
  431. func (x *GetUnreadCountResponse) String() string {
  432. return protoimpl.X.MessageStringOf(x)
  433. }
  434. func (*GetUnreadCountResponse) ProtoMessage() {}
  435. func (x *GetUnreadCountResponse) ProtoReflect() protoreflect.Message {
  436. mi := &file_message_proto_msgTypes[7]
  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 GetUnreadCountResponse.ProtoReflect.Descriptor instead.
  447. func (*GetUnreadCountResponse) Descriptor() ([]byte, []int) {
  448. return file_message_proto_rawDescGZIP(), []int{7}
  449. }
  450. func (x *GetUnreadCountResponse) GetCode() int64 {
  451. if x != nil {
  452. return x.Code
  453. }
  454. return 0
  455. }
  456. func (x *GetUnreadCountResponse) GetMessage() string {
  457. if x != nil {
  458. return x.Message
  459. }
  460. return ""
  461. }
  462. func (x *GetUnreadCountResponse) GetCount() int64 {
  463. if x != nil {
  464. return x.Count
  465. }
  466. return 0
  467. }
  468. type FindUserMsgReq struct {
  469. state protoimpl.MessageState
  470. sizeCache protoimpl.SizeCache
  471. unknownFields protoimpl.UnknownFields
  472. UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"` //用户id
  473. ReceiveUserId string `protobuf:"bytes,2,opt,name=receiveUserId,proto3" json:"receiveUserId,omitempty"` //聊天方用户id
  474. Appid string `protobuf:"bytes,3,opt,name=appid,proto3" json:"appid,omitempty"` //应用标识
  475. OffSet int64 `protobuf:"varint,4,opt,name=offSet,proto3" json:"offSet,omitempty"` //当前
  476. PageSize int64 `protobuf:"varint,5,opt,name=pageSize,proto3" json:"pageSize,omitempty"` //大小
  477. MsgType int64 `protobuf:"varint,6,opt,name=msgType,proto3" json:"msgType,omitempty"` //是否区分类型
  478. Read int64 `protobuf:"varint,7,opt,name=read,proto3" json:"read,omitempty"` // 是否区分已读未读 -1 不区分已读未读 0 未读 1 已读
  479. }
  480. func (x *FindUserMsgReq) Reset() {
  481. *x = FindUserMsgReq{}
  482. if protoimpl.UnsafeEnabled {
  483. mi := &file_message_proto_msgTypes[8]
  484. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  485. ms.StoreMessageInfo(mi)
  486. }
  487. }
  488. func (x *FindUserMsgReq) String() string {
  489. return protoimpl.X.MessageStringOf(x)
  490. }
  491. func (*FindUserMsgReq) ProtoMessage() {}
  492. func (x *FindUserMsgReq) ProtoReflect() protoreflect.Message {
  493. mi := &file_message_proto_msgTypes[8]
  494. if protoimpl.UnsafeEnabled && x != nil {
  495. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  496. if ms.LoadMessageInfo() == nil {
  497. ms.StoreMessageInfo(mi)
  498. }
  499. return ms
  500. }
  501. return mi.MessageOf(x)
  502. }
  503. // Deprecated: Use FindUserMsgReq.ProtoReflect.Descriptor instead.
  504. func (*FindUserMsgReq) Descriptor() ([]byte, []int) {
  505. return file_message_proto_rawDescGZIP(), []int{8}
  506. }
  507. func (x *FindUserMsgReq) GetUserId() string {
  508. if x != nil {
  509. return x.UserId
  510. }
  511. return ""
  512. }
  513. func (x *FindUserMsgReq) GetReceiveUserId() string {
  514. if x != nil {
  515. return x.ReceiveUserId
  516. }
  517. return ""
  518. }
  519. func (x *FindUserMsgReq) GetAppid() string {
  520. if x != nil {
  521. return x.Appid
  522. }
  523. return ""
  524. }
  525. func (x *FindUserMsgReq) GetOffSet() int64 {
  526. if x != nil {
  527. return x.OffSet
  528. }
  529. return 0
  530. }
  531. func (x *FindUserMsgReq) GetPageSize() int64 {
  532. if x != nil {
  533. return x.PageSize
  534. }
  535. return 0
  536. }
  537. func (x *FindUserMsgReq) GetMsgType() int64 {
  538. if x != nil {
  539. return x.MsgType
  540. }
  541. return 0
  542. }
  543. func (x *FindUserMsgReq) GetRead() int64 {
  544. if x != nil {
  545. return x.Read
  546. }
  547. return 0
  548. }
  549. type Messages struct {
  550. state protoimpl.MessageState
  551. sizeCache protoimpl.SizeCache
  552. unknownFields protoimpl.UnknownFields
  553. ReceiveUserId string `protobuf:"bytes,1,opt,name=receiveUserId,proto3" json:"receiveUserId,omitempty"` //接收方用户ID
  554. ReceiveName string `protobuf:"bytes,2,opt,name=receiveName,proto3" json:"receiveName,omitempty"` //接收方用户名
  555. SendUserId string `protobuf:"bytes,3,opt,name=sendUserId,proto3" json:"sendUserId,omitempty"` //发送方用户ID
  556. SendName string `protobuf:"bytes,4,opt,name=sendName,proto3" json:"sendName,omitempty"` //发送方用户名
  557. Title string `protobuf:"bytes,5,opt,name=title,proto3" json:"title,omitempty"` //主题
  558. Content string `protobuf:"bytes,6,opt,name=content,proto3" json:"content,omitempty"` //内容
  559. MsgType int64 `protobuf:"varint,7,opt,name=msgType,proto3" json:"msgType,omitempty"` //消息类型 1:客服 2:系统通知 3:营销 4:用户会话
  560. Link string `protobuf:"bytes,8,opt,name=link,proto3" json:"link,omitempty"` //跳转链接
  561. CiteId int64 `protobuf:"varint,9,opt,name=citeId,proto3" json:"citeId,omitempty"` //引用id
  562. IsRead int64 `protobuf:"varint,10,opt,name=isRead,proto3" json:"isRead,omitempty"` //已读未读 0:未读 1:已读
  563. Createtime string `protobuf:"bytes,11,opt,name=createtime,proto3" json:"createtime,omitempty"`
  564. Appid string `protobuf:"bytes,12,opt,name=appid,proto3" json:"appid,omitempty"` //应用标识
  565. Id int64 `protobuf:"varint,13,opt,name=id,proto3" json:"id,omitempty"` //消息id
  566. }
  567. func (x *Messages) Reset() {
  568. *x = Messages{}
  569. if protoimpl.UnsafeEnabled {
  570. mi := &file_message_proto_msgTypes[9]
  571. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  572. ms.StoreMessageInfo(mi)
  573. }
  574. }
  575. func (x *Messages) String() string {
  576. return protoimpl.X.MessageStringOf(x)
  577. }
  578. func (*Messages) ProtoMessage() {}
  579. func (x *Messages) ProtoReflect() protoreflect.Message {
  580. mi := &file_message_proto_msgTypes[9]
  581. if protoimpl.UnsafeEnabled && x != nil {
  582. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  583. if ms.LoadMessageInfo() == nil {
  584. ms.StoreMessageInfo(mi)
  585. }
  586. return ms
  587. }
  588. return mi.MessageOf(x)
  589. }
  590. // Deprecated: Use Messages.ProtoReflect.Descriptor instead.
  591. func (*Messages) Descriptor() ([]byte, []int) {
  592. return file_message_proto_rawDescGZIP(), []int{9}
  593. }
  594. func (x *Messages) GetReceiveUserId() string {
  595. if x != nil {
  596. return x.ReceiveUserId
  597. }
  598. return ""
  599. }
  600. func (x *Messages) GetReceiveName() string {
  601. if x != nil {
  602. return x.ReceiveName
  603. }
  604. return ""
  605. }
  606. func (x *Messages) GetSendUserId() string {
  607. if x != nil {
  608. return x.SendUserId
  609. }
  610. return ""
  611. }
  612. func (x *Messages) GetSendName() string {
  613. if x != nil {
  614. return x.SendName
  615. }
  616. return ""
  617. }
  618. func (x *Messages) GetTitle() string {
  619. if x != nil {
  620. return x.Title
  621. }
  622. return ""
  623. }
  624. func (x *Messages) GetContent() string {
  625. if x != nil {
  626. return x.Content
  627. }
  628. return ""
  629. }
  630. func (x *Messages) GetMsgType() int64 {
  631. if x != nil {
  632. return x.MsgType
  633. }
  634. return 0
  635. }
  636. func (x *Messages) GetLink() string {
  637. if x != nil {
  638. return x.Link
  639. }
  640. return ""
  641. }
  642. func (x *Messages) GetCiteId() int64 {
  643. if x != nil {
  644. return x.CiteId
  645. }
  646. return 0
  647. }
  648. func (x *Messages) GetIsRead() int64 {
  649. if x != nil {
  650. return x.IsRead
  651. }
  652. return 0
  653. }
  654. func (x *Messages) GetCreatetime() string {
  655. if x != nil {
  656. return x.Createtime
  657. }
  658. return ""
  659. }
  660. func (x *Messages) GetAppid() string {
  661. if x != nil {
  662. return x.Appid
  663. }
  664. return ""
  665. }
  666. func (x *Messages) GetId() int64 {
  667. if x != nil {
  668. return x.Id
  669. }
  670. return 0
  671. }
  672. type FindUserMsgRes struct {
  673. state protoimpl.MessageState
  674. sizeCache protoimpl.SizeCache
  675. unknownFields protoimpl.UnknownFields
  676. Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` //状态码
  677. Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` //响应消息
  678. Data []*Messages `protobuf:"bytes,3,rep,name=data,proto3" json:"data,omitempty"` //
  679. Count int64 `protobuf:"varint,4,opt,name=count,proto3" json:"count,omitempty"` //总数
  680. }
  681. func (x *FindUserMsgRes) Reset() {
  682. *x = FindUserMsgRes{}
  683. if protoimpl.UnsafeEnabled {
  684. mi := &file_message_proto_msgTypes[10]
  685. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  686. ms.StoreMessageInfo(mi)
  687. }
  688. }
  689. func (x *FindUserMsgRes) String() string {
  690. return protoimpl.X.MessageStringOf(x)
  691. }
  692. func (*FindUserMsgRes) ProtoMessage() {}
  693. func (x *FindUserMsgRes) ProtoReflect() protoreflect.Message {
  694. mi := &file_message_proto_msgTypes[10]
  695. if protoimpl.UnsafeEnabled && x != nil {
  696. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  697. if ms.LoadMessageInfo() == nil {
  698. ms.StoreMessageInfo(mi)
  699. }
  700. return ms
  701. }
  702. return mi.MessageOf(x)
  703. }
  704. // Deprecated: Use FindUserMsgRes.ProtoReflect.Descriptor instead.
  705. func (*FindUserMsgRes) Descriptor() ([]byte, []int) {
  706. return file_message_proto_rawDescGZIP(), []int{10}
  707. }
  708. func (x *FindUserMsgRes) GetCode() int64 {
  709. if x != nil {
  710. return x.Code
  711. }
  712. return 0
  713. }
  714. func (x *FindUserMsgRes) GetMessage() string {
  715. if x != nil {
  716. return x.Message
  717. }
  718. return ""
  719. }
  720. func (x *FindUserMsgRes) GetData() []*Messages {
  721. if x != nil {
  722. return x.Data
  723. }
  724. return nil
  725. }
  726. func (x *FindUserMsgRes) GetCount() int64 {
  727. if x != nil {
  728. return x.Count
  729. }
  730. return 0
  731. }
  732. type GetClassUnreadCountReq struct {
  733. state protoimpl.MessageState
  734. sizeCache protoimpl.SizeCache
  735. unknownFields protoimpl.UnknownFields
  736. UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"` // 用户id
  737. MsgType int64 `protobuf:"varint,2,opt,name=msgType,proto3" json:"msgType,omitempty"` //分类 1:客服 2:系统通知 3:营销 4:用户会话
  738. Appid string `protobuf:"bytes,3,opt,name=appid,proto3" json:"appid,omitempty"` //应用标识
  739. }
  740. func (x *GetClassUnreadCountReq) Reset() {
  741. *x = GetClassUnreadCountReq{}
  742. if protoimpl.UnsafeEnabled {
  743. mi := &file_message_proto_msgTypes[11]
  744. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  745. ms.StoreMessageInfo(mi)
  746. }
  747. }
  748. func (x *GetClassUnreadCountReq) String() string {
  749. return protoimpl.X.MessageStringOf(x)
  750. }
  751. func (*GetClassUnreadCountReq) ProtoMessage() {}
  752. func (x *GetClassUnreadCountReq) ProtoReflect() protoreflect.Message {
  753. mi := &file_message_proto_msgTypes[11]
  754. if protoimpl.UnsafeEnabled && x != nil {
  755. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  756. if ms.LoadMessageInfo() == nil {
  757. ms.StoreMessageInfo(mi)
  758. }
  759. return ms
  760. }
  761. return mi.MessageOf(x)
  762. }
  763. // Deprecated: Use GetClassUnreadCountReq.ProtoReflect.Descriptor instead.
  764. func (*GetClassUnreadCountReq) Descriptor() ([]byte, []int) {
  765. return file_message_proto_rawDescGZIP(), []int{11}
  766. }
  767. func (x *GetClassUnreadCountReq) GetUserId() string {
  768. if x != nil {
  769. return x.UserId
  770. }
  771. return ""
  772. }
  773. func (x *GetClassUnreadCountReq) GetMsgType() int64 {
  774. if x != nil {
  775. return x.MsgType
  776. }
  777. return 0
  778. }
  779. func (x *GetClassUnreadCountReq) GetAppid() string {
  780. if x != nil {
  781. return x.Appid
  782. }
  783. return ""
  784. }
  785. //查看消息内容
  786. type MessageDetailReq struct {
  787. state protoimpl.MessageState
  788. sizeCache protoimpl.SizeCache
  789. unknownFields protoimpl.UnknownFields
  790. Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` //消息id
  791. }
  792. func (x *MessageDetailReq) Reset() {
  793. *x = MessageDetailReq{}
  794. if protoimpl.UnsafeEnabled {
  795. mi := &file_message_proto_msgTypes[12]
  796. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  797. ms.StoreMessageInfo(mi)
  798. }
  799. }
  800. func (x *MessageDetailReq) String() string {
  801. return protoimpl.X.MessageStringOf(x)
  802. }
  803. func (*MessageDetailReq) ProtoMessage() {}
  804. func (x *MessageDetailReq) ProtoReflect() protoreflect.Message {
  805. mi := &file_message_proto_msgTypes[12]
  806. if protoimpl.UnsafeEnabled && x != nil {
  807. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  808. if ms.LoadMessageInfo() == nil {
  809. ms.StoreMessageInfo(mi)
  810. }
  811. return ms
  812. }
  813. return mi.MessageOf(x)
  814. }
  815. // Deprecated: Use MessageDetailReq.ProtoReflect.Descriptor instead.
  816. func (*MessageDetailReq) Descriptor() ([]byte, []int) {
  817. return file_message_proto_rawDescGZIP(), []int{12}
  818. }
  819. func (x *MessageDetailReq) GetId() int64 {
  820. if x != nil {
  821. return x.Id
  822. }
  823. return 0
  824. }
  825. type MessageDetailResp struct {
  826. state protoimpl.MessageState
  827. sizeCache protoimpl.SizeCache
  828. unknownFields protoimpl.UnknownFields
  829. Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
  830. ReceiveUserId string `protobuf:"bytes,2,opt,name=receiveUserId,proto3" json:"receiveUserId,omitempty"` //接收方用户ID
  831. ReceiveName string `protobuf:"bytes,3,opt,name=receiveName,proto3" json:"receiveName,omitempty"` //接收方用户名
  832. SendUserId string `protobuf:"bytes,4,opt,name=sendUserId,proto3" json:"sendUserId,omitempty"` //发送方用户ID
  833. SendName string `protobuf:"bytes,5,opt,name=sendName,proto3" json:"sendName,omitempty"` //发送方用户名
  834. Title string `protobuf:"bytes,6,opt,name=title,proto3" json:"title,omitempty"` //主题
  835. Content string `protobuf:"bytes,7,opt,name=content,proto3" json:"content,omitempty"` //内容
  836. MsgType int64 `protobuf:"varint,8,opt,name=msgType,proto3" json:"msgType,omitempty"` //消息类型 1:客服 2:系统通知 3:营销 4:用户会话
  837. Link string `protobuf:"bytes,9,opt,name=link,proto3" json:"link,omitempty"` //跳转链接
  838. CiteId int64 `protobuf:"varint,10,opt,name=citeId,proto3" json:"citeId,omitempty"` //引用id
  839. IsRead int64 `protobuf:"varint,11,opt,name=isRead,proto3" json:"isRead,omitempty"` //已读未读 0:未读 1:已读
  840. Createtime string `protobuf:"bytes,12,opt,name=createtime,proto3" json:"createtime,omitempty"`
  841. Appid string `protobuf:"bytes,13,opt,name=appid,proto3" json:"appid,omitempty"` //应用标识
  842. }
  843. func (x *MessageDetailResp) Reset() {
  844. *x = MessageDetailResp{}
  845. if protoimpl.UnsafeEnabled {
  846. mi := &file_message_proto_msgTypes[13]
  847. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  848. ms.StoreMessageInfo(mi)
  849. }
  850. }
  851. func (x *MessageDetailResp) String() string {
  852. return protoimpl.X.MessageStringOf(x)
  853. }
  854. func (*MessageDetailResp) ProtoMessage() {}
  855. func (x *MessageDetailResp) ProtoReflect() protoreflect.Message {
  856. mi := &file_message_proto_msgTypes[13]
  857. if protoimpl.UnsafeEnabled && x != nil {
  858. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  859. if ms.LoadMessageInfo() == nil {
  860. ms.StoreMessageInfo(mi)
  861. }
  862. return ms
  863. }
  864. return mi.MessageOf(x)
  865. }
  866. // Deprecated: Use MessageDetailResp.ProtoReflect.Descriptor instead.
  867. func (*MessageDetailResp) Descriptor() ([]byte, []int) {
  868. return file_message_proto_rawDescGZIP(), []int{13}
  869. }
  870. func (x *MessageDetailResp) GetId() int64 {
  871. if x != nil {
  872. return x.Id
  873. }
  874. return 0
  875. }
  876. func (x *MessageDetailResp) GetReceiveUserId() string {
  877. if x != nil {
  878. return x.ReceiveUserId
  879. }
  880. return ""
  881. }
  882. func (x *MessageDetailResp) GetReceiveName() string {
  883. if x != nil {
  884. return x.ReceiveName
  885. }
  886. return ""
  887. }
  888. func (x *MessageDetailResp) GetSendUserId() string {
  889. if x != nil {
  890. return x.SendUserId
  891. }
  892. return ""
  893. }
  894. func (x *MessageDetailResp) GetSendName() string {
  895. if x != nil {
  896. return x.SendName
  897. }
  898. return ""
  899. }
  900. func (x *MessageDetailResp) GetTitle() string {
  901. if x != nil {
  902. return x.Title
  903. }
  904. return ""
  905. }
  906. func (x *MessageDetailResp) GetContent() string {
  907. if x != nil {
  908. return x.Content
  909. }
  910. return ""
  911. }
  912. func (x *MessageDetailResp) GetMsgType() int64 {
  913. if x != nil {
  914. return x.MsgType
  915. }
  916. return 0
  917. }
  918. func (x *MessageDetailResp) GetLink() string {
  919. if x != nil {
  920. return x.Link
  921. }
  922. return ""
  923. }
  924. func (x *MessageDetailResp) GetCiteId() int64 {
  925. if x != nil {
  926. return x.CiteId
  927. }
  928. return 0
  929. }
  930. func (x *MessageDetailResp) GetIsRead() int64 {
  931. if x != nil {
  932. return x.IsRead
  933. }
  934. return 0
  935. }
  936. func (x *MessageDetailResp) GetCreatetime() string {
  937. if x != nil {
  938. return x.Createtime
  939. }
  940. return ""
  941. }
  942. func (x *MessageDetailResp) GetAppid() string {
  943. if x != nil {
  944. return x.Appid
  945. }
  946. return ""
  947. }
  948. type GetLastMessageReq struct {
  949. state protoimpl.MessageState
  950. sizeCache protoimpl.SizeCache
  951. unknownFields protoimpl.UnknownFields
  952. UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"` // 用户id
  953. MsgType int64 `protobuf:"varint,2,opt,name=msgType,proto3" json:"msgType,omitempty"` //分类 1:客服 2:系统通知 3:营销 4:用户会话
  954. Appid string `protobuf:"bytes,3,opt,name=appid,proto3" json:"appid,omitempty"` //应用标识
  955. }
  956. func (x *GetLastMessageReq) Reset() {
  957. *x = GetLastMessageReq{}
  958. if protoimpl.UnsafeEnabled {
  959. mi := &file_message_proto_msgTypes[14]
  960. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  961. ms.StoreMessageInfo(mi)
  962. }
  963. }
  964. func (x *GetLastMessageReq) String() string {
  965. return protoimpl.X.MessageStringOf(x)
  966. }
  967. func (*GetLastMessageReq) ProtoMessage() {}
  968. func (x *GetLastMessageReq) ProtoReflect() protoreflect.Message {
  969. mi := &file_message_proto_msgTypes[14]
  970. if protoimpl.UnsafeEnabled && x != nil {
  971. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  972. if ms.LoadMessageInfo() == nil {
  973. ms.StoreMessageInfo(mi)
  974. }
  975. return ms
  976. }
  977. return mi.MessageOf(x)
  978. }
  979. // Deprecated: Use GetLastMessageReq.ProtoReflect.Descriptor instead.
  980. func (*GetLastMessageReq) Descriptor() ([]byte, []int) {
  981. return file_message_proto_rawDescGZIP(), []int{14}
  982. }
  983. func (x *GetLastMessageReq) GetUserId() string {
  984. if x != nil {
  985. return x.UserId
  986. }
  987. return ""
  988. }
  989. func (x *GetLastMessageReq) GetMsgType() int64 {
  990. if x != nil {
  991. return x.MsgType
  992. }
  993. return 0
  994. }
  995. func (x *GetLastMessageReq) GetAppid() string {
  996. if x != nil {
  997. return x.Appid
  998. }
  999. return ""
  1000. }
  1001. type GetLastMessageRes struct {
  1002. state protoimpl.MessageState
  1003. sizeCache protoimpl.SizeCache
  1004. unknownFields protoimpl.UnknownFields
  1005. Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` //状态码
  1006. Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` //响应消息
  1007. Data *Messages `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` //
  1008. }
  1009. func (x *GetLastMessageRes) Reset() {
  1010. *x = GetLastMessageRes{}
  1011. if protoimpl.UnsafeEnabled {
  1012. mi := &file_message_proto_msgTypes[15]
  1013. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1014. ms.StoreMessageInfo(mi)
  1015. }
  1016. }
  1017. func (x *GetLastMessageRes) String() string {
  1018. return protoimpl.X.MessageStringOf(x)
  1019. }
  1020. func (*GetLastMessageRes) ProtoMessage() {}
  1021. func (x *GetLastMessageRes) ProtoReflect() protoreflect.Message {
  1022. mi := &file_message_proto_msgTypes[15]
  1023. if protoimpl.UnsafeEnabled && x != nil {
  1024. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1025. if ms.LoadMessageInfo() == nil {
  1026. ms.StoreMessageInfo(mi)
  1027. }
  1028. return ms
  1029. }
  1030. return mi.MessageOf(x)
  1031. }
  1032. // Deprecated: Use GetLastMessageRes.ProtoReflect.Descriptor instead.
  1033. func (*GetLastMessageRes) Descriptor() ([]byte, []int) {
  1034. return file_message_proto_rawDescGZIP(), []int{15}
  1035. }
  1036. func (x *GetLastMessageRes) GetCode() int64 {
  1037. if x != nil {
  1038. return x.Code
  1039. }
  1040. return 0
  1041. }
  1042. func (x *GetLastMessageRes) GetMessage() string {
  1043. if x != nil {
  1044. return x.Message
  1045. }
  1046. return ""
  1047. }
  1048. func (x *GetLastMessageRes) GetData() *Messages {
  1049. if x != nil {
  1050. return x.Data
  1051. }
  1052. return nil
  1053. }
  1054. // 获取用户分类的的未读消息分类及数量 及分类下最新的消息
  1055. type GetUnreadClassCountReq struct {
  1056. state protoimpl.MessageState
  1057. sizeCache protoimpl.SizeCache
  1058. unknownFields protoimpl.UnknownFields
  1059. UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"` // 用户id
  1060. Appid string `protobuf:"bytes,2,opt,name=appid,proto3" json:"appid,omitempty"` //应用标识
  1061. }
  1062. func (x *GetUnreadClassCountReq) Reset() {
  1063. *x = GetUnreadClassCountReq{}
  1064. if protoimpl.UnsafeEnabled {
  1065. mi := &file_message_proto_msgTypes[16]
  1066. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1067. ms.StoreMessageInfo(mi)
  1068. }
  1069. }
  1070. func (x *GetUnreadClassCountReq) String() string {
  1071. return protoimpl.X.MessageStringOf(x)
  1072. }
  1073. func (*GetUnreadClassCountReq) ProtoMessage() {}
  1074. func (x *GetUnreadClassCountReq) ProtoReflect() protoreflect.Message {
  1075. mi := &file_message_proto_msgTypes[16]
  1076. if protoimpl.UnsafeEnabled && x != nil {
  1077. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1078. if ms.LoadMessageInfo() == nil {
  1079. ms.StoreMessageInfo(mi)
  1080. }
  1081. return ms
  1082. }
  1083. return mi.MessageOf(x)
  1084. }
  1085. // Deprecated: Use GetUnreadClassCountReq.ProtoReflect.Descriptor instead.
  1086. func (*GetUnreadClassCountReq) Descriptor() ([]byte, []int) {
  1087. return file_message_proto_rawDescGZIP(), []int{16}
  1088. }
  1089. func (x *GetUnreadClassCountReq) GetUserId() string {
  1090. if x != nil {
  1091. return x.UserId
  1092. }
  1093. return ""
  1094. }
  1095. func (x *GetUnreadClassCountReq) GetAppid() string {
  1096. if x != nil {
  1097. return x.Appid
  1098. }
  1099. return ""
  1100. }
  1101. type GetUnreadClassCountRes struct {
  1102. state protoimpl.MessageState
  1103. sizeCache protoimpl.SizeCache
  1104. unknownFields protoimpl.UnknownFields
  1105. Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` //状态码
  1106. Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` //响应消息
  1107. Data []*ResCount `protobuf:"bytes,3,rep,name=data,proto3" json:"data,omitempty"` //
  1108. Info []*Messages `protobuf:"bytes,4,rep,name=info,proto3" json:"info,omitempty"` // 每个类型最新消息列表
  1109. }
  1110. func (x *GetUnreadClassCountRes) Reset() {
  1111. *x = GetUnreadClassCountRes{}
  1112. if protoimpl.UnsafeEnabled {
  1113. mi := &file_message_proto_msgTypes[17]
  1114. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1115. ms.StoreMessageInfo(mi)
  1116. }
  1117. }
  1118. func (x *GetUnreadClassCountRes) String() string {
  1119. return protoimpl.X.MessageStringOf(x)
  1120. }
  1121. func (*GetUnreadClassCountRes) ProtoMessage() {}
  1122. func (x *GetUnreadClassCountRes) ProtoReflect() protoreflect.Message {
  1123. mi := &file_message_proto_msgTypes[17]
  1124. if protoimpl.UnsafeEnabled && x != nil {
  1125. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1126. if ms.LoadMessageInfo() == nil {
  1127. ms.StoreMessageInfo(mi)
  1128. }
  1129. return ms
  1130. }
  1131. return mi.MessageOf(x)
  1132. }
  1133. // Deprecated: Use GetUnreadClassCountRes.ProtoReflect.Descriptor instead.
  1134. func (*GetUnreadClassCountRes) Descriptor() ([]byte, []int) {
  1135. return file_message_proto_rawDescGZIP(), []int{17}
  1136. }
  1137. func (x *GetUnreadClassCountRes) GetCode() int64 {
  1138. if x != nil {
  1139. return x.Code
  1140. }
  1141. return 0
  1142. }
  1143. func (x *GetUnreadClassCountRes) GetMessage() string {
  1144. if x != nil {
  1145. return x.Message
  1146. }
  1147. return ""
  1148. }
  1149. func (x *GetUnreadClassCountRes) GetData() []*ResCount {
  1150. if x != nil {
  1151. return x.Data
  1152. }
  1153. return nil
  1154. }
  1155. func (x *GetUnreadClassCountRes) GetInfo() []*Messages {
  1156. if x != nil {
  1157. return x.Info
  1158. }
  1159. return nil
  1160. }
  1161. var File_message_proto protoreflect.FileDescriptor
  1162. var file_message_proto_rawDesc = []byte{
  1163. 0x0a, 0x0d, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
  1164. 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0xa0, 0x02, 0x0a, 0x0e, 0x53, 0x65, 0x6e,
  1165. 0x64, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x24, 0x0a, 0x0d, 0x72,
  1166. 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01,
  1167. 0x28, 0x09, 0x52, 0x0d, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x55, 0x73, 0x65, 0x72, 0x49,
  1168. 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x4e, 0x61, 0x6d, 0x65,
  1169. 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x4e,
  1170. 0x61, 0x6d, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x73, 0x65, 0x6e, 0x64, 0x55, 0x73, 0x65, 0x72, 0x49,
  1171. 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x65, 0x6e, 0x64, 0x55, 0x73, 0x65,
  1172. 0x72, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x65, 0x6e, 0x64, 0x4e, 0x61, 0x6d, 0x65, 0x18,
  1173. 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x73, 0x65, 0x6e, 0x64, 0x4e, 0x61, 0x6d, 0x65, 0x12,
  1174. 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05,
  1175. 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74,
  1176. 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x12,
  1177. 0x18, 0x0a, 0x07, 0x6d, 0x73, 0x67, 0x54, 0x79, 0x70, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03,
  1178. 0x52, 0x07, 0x6d, 0x73, 0x67, 0x54, 0x79, 0x70, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6c, 0x69, 0x6e,
  1179. 0x6b, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6c, 0x69, 0x6e, 0x6b, 0x12, 0x16, 0x0a,
  1180. 0x06, 0x63, 0x69, 0x74, 0x65, 0x49, 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x63,
  1181. 0x69, 0x74, 0x65, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x18, 0x0a,
  1182. 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x22, 0x5f, 0x0a, 0x17, 0x43,
  1183. 0x68, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x65, 0x61, 0x64, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52,
  1184. 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01,
  1185. 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1e, 0x0a, 0x0a, 0x72, 0x65, 0x61, 0x64, 0x53, 0x74,
  1186. 0x61, 0x74, 0x75, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x72, 0x65, 0x61, 0x64,
  1187. 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x18,
  1188. 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x22, 0x3a, 0x0a, 0x08,
  1189. 0x52, 0x65, 0x73, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x73, 0x67, 0x54,
  1190. 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x6d, 0x73, 0x67, 0x54, 0x79,
  1191. 0x70, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28,
  1192. 0x03, 0x52, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x42, 0x0a, 0x1a, 0x44, 0x65, 0x6c, 0x65,
  1193. 0x74, 0x65, 0x53, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52,
  1194. 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01,
  1195. 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x18,
  1196. 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x22, 0x44, 0x0a, 0x1c,
  1197. 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x70, 0x6c, 0x65, 0x4d, 0x65,
  1198. 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02,
  1199. 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05,
  1200. 0x61, 0x70, 0x70, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x70, 0x70,
  1201. 0x69, 0x64, 0x22, 0x45, 0x0a, 0x15, 0x47, 0x65, 0x74, 0x55, 0x6e, 0x72, 0x65, 0x61, 0x64, 0x43,
  1202. 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x75,
  1203. 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65,
  1204. 0x72, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01,
  1205. 0x28, 0x09, 0x52, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x22, 0x38, 0x0a, 0x08, 0x52, 0x65, 0x73,
  1206. 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20,
  1207. 0x01, 0x28, 0x03, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73,
  1208. 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73,
  1209. 0x61, 0x67, 0x65, 0x22, 0x5c, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x55, 0x6e, 0x72, 0x65, 0x61, 0x64,
  1210. 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a,
  1211. 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x63, 0x6f, 0x64,
  1212. 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01,
  1213. 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x63,
  1214. 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x63, 0x6f, 0x75, 0x6e,
  1215. 0x74, 0x22, 0xc6, 0x01, 0x0a, 0x0e, 0x46, 0x69, 0x6e, 0x64, 0x55, 0x73, 0x65, 0x72, 0x4d, 0x73,
  1216. 0x67, 0x52, 0x65, 0x71, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01,
  1217. 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x24, 0x0a, 0x0d,
  1218. 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x02, 0x20,
  1219. 0x01, 0x28, 0x09, 0x52, 0x0d, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x55, 0x73, 0x65, 0x72,
  1220. 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28,
  1221. 0x09, 0x52, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x66, 0x66, 0x53,
  1222. 0x65, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x6f, 0x66, 0x66, 0x53, 0x65, 0x74,
  1223. 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x18, 0x05, 0x20, 0x01,
  1224. 0x28, 0x03, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x18, 0x0a, 0x07,
  1225. 0x6d, 0x73, 0x67, 0x54, 0x79, 0x70, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x6d,
  1226. 0x73, 0x67, 0x54, 0x79, 0x70, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x72, 0x65, 0x61, 0x64, 0x18, 0x07,
  1227. 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x72, 0x65, 0x61, 0x64, 0x22, 0xe2, 0x02, 0x0a, 0x08, 0x4d,
  1228. 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x12, 0x24, 0x0a, 0x0d, 0x72, 0x65, 0x63, 0x65, 0x69,
  1229. 0x76, 0x65, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d,
  1230. 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x20, 0x0a,
  1231. 0x0b, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01,
  1232. 0x28, 0x09, 0x52, 0x0b, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12,
  1233. 0x1e, 0x0a, 0x0a, 0x73, 0x65, 0x6e, 0x64, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x03, 0x20,
  1234. 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x65, 0x6e, 0x64, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12,
  1235. 0x1a, 0x0a, 0x08, 0x73, 0x65, 0x6e, 0x64, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28,
  1236. 0x09, 0x52, 0x08, 0x73, 0x65, 0x6e, 0x64, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x74,
  1237. 0x69, 0x74, 0x6c, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c,
  1238. 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x18, 0x06, 0x20, 0x01,
  1239. 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x6d,
  1240. 0x73, 0x67, 0x54, 0x79, 0x70, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x6d, 0x73,
  1241. 0x67, 0x54, 0x79, 0x70, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6c, 0x69, 0x6e, 0x6b, 0x18, 0x08, 0x20,
  1242. 0x01, 0x28, 0x09, 0x52, 0x04, 0x6c, 0x69, 0x6e, 0x6b, 0x12, 0x16, 0x0a, 0x06, 0x63, 0x69, 0x74,
  1243. 0x65, 0x49, 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x63, 0x69, 0x74, 0x65, 0x49,
  1244. 0x64, 0x12, 0x16, 0x0a, 0x06, 0x69, 0x73, 0x52, 0x65, 0x61, 0x64, 0x18, 0x0a, 0x20, 0x01, 0x28,
  1245. 0x03, 0x52, 0x06, 0x69, 0x73, 0x52, 0x65, 0x61, 0x64, 0x12, 0x1e, 0x0a, 0x0a, 0x63, 0x72, 0x65,
  1246. 0x61, 0x74, 0x65, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63,
  1247. 0x72, 0x65, 0x61, 0x74, 0x65, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70,
  1248. 0x69, 0x64, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x12,
  1249. 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x22,
  1250. 0x7b, 0x0a, 0x0e, 0x46, 0x69, 0x6e, 0x64, 0x55, 0x73, 0x65, 0x72, 0x4d, 0x73, 0x67, 0x52, 0x65,
  1251. 0x73, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52,
  1252. 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
  1253. 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12,
  1254. 0x25, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x11, 0x2e,
  1255. 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73,
  1256. 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18,
  1257. 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x60, 0x0a, 0x16,
  1258. 0x47, 0x65, 0x74, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x55, 0x6e, 0x72, 0x65, 0x61, 0x64, 0x43, 0x6f,
  1259. 0x75, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64,
  1260. 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x18,
  1261. 0x0a, 0x07, 0x6d, 0x73, 0x67, 0x54, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52,
  1262. 0x07, 0x6d, 0x73, 0x67, 0x54, 0x79, 0x70, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70, 0x69,
  1263. 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x22, 0x22,
  1264. 0x0a, 0x10, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x52,
  1265. 0x65, 0x71, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02,
  1266. 0x69, 0x64, 0x22, 0xeb, 0x02, 0x0a, 0x11, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x44, 0x65,
  1267. 0x74, 0x61, 0x69, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01,
  1268. 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x24, 0x0a, 0x0d, 0x72, 0x65, 0x63, 0x65,
  1269. 0x69, 0x76, 0x65, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,
  1270. 0x0d, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x20,
  1271. 0x0a, 0x0b, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20,
  1272. 0x01, 0x28, 0x09, 0x52, 0x0b, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x4e, 0x61, 0x6d, 0x65,
  1273. 0x12, 0x1e, 0x0a, 0x0a, 0x73, 0x65, 0x6e, 0x64, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x04,
  1274. 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x65, 0x6e, 0x64, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64,
  1275. 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x65, 0x6e, 0x64, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01,
  1276. 0x28, 0x09, 0x52, 0x08, 0x73, 0x65, 0x6e, 0x64, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05,
  1277. 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x69, 0x74,
  1278. 0x6c, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x18, 0x07, 0x20,
  1279. 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x12, 0x18, 0x0a, 0x07,
  1280. 0x6d, 0x73, 0x67, 0x54, 0x79, 0x70, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x6d,
  1281. 0x73, 0x67, 0x54, 0x79, 0x70, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6c, 0x69, 0x6e, 0x6b, 0x18, 0x09,
  1282. 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6c, 0x69, 0x6e, 0x6b, 0x12, 0x16, 0x0a, 0x06, 0x63, 0x69,
  1283. 0x74, 0x65, 0x49, 0x64, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x63, 0x69, 0x74, 0x65,
  1284. 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x69, 0x73, 0x52, 0x65, 0x61, 0x64, 0x18, 0x0b, 0x20, 0x01,
  1285. 0x28, 0x03, 0x52, 0x06, 0x69, 0x73, 0x52, 0x65, 0x61, 0x64, 0x12, 0x1e, 0x0a, 0x0a, 0x63, 0x72,
  1286. 0x65, 0x61, 0x74, 0x65, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a,
  1287. 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70,
  1288. 0x70, 0x69, 0x64, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64,
  1289. 0x22, 0x5b, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x4c, 0x61, 0x73, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61,
  1290. 0x67, 0x65, 0x52, 0x65, 0x71, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18,
  1291. 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x18, 0x0a,
  1292. 0x07, 0x6d, 0x73, 0x67, 0x54, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07,
  1293. 0x6d, 0x73, 0x67, 0x54, 0x79, 0x70, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64,
  1294. 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x22, 0x68, 0x0a,
  1295. 0x11, 0x47, 0x65, 0x74, 0x4c, 0x61, 0x73, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52,
  1296. 0x65, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03,
  1297. 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67,
  1298. 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
  1299. 0x12, 0x25, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11,
  1300. 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
  1301. 0x73, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x46, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x55, 0x6e,
  1302. 0x72, 0x65, 0x61, 0x64, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65,
  1303. 0x71, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
  1304. 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70,
  1305. 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x22,
  1306. 0x94, 0x01, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x55, 0x6e, 0x72, 0x65, 0x61, 0x64, 0x43, 0x6c, 0x61,
  1307. 0x73, 0x73, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f,
  1308. 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x18,
  1309. 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,
  1310. 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x25, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61,
  1311. 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
  1312. 0x2e, 0x52, 0x65, 0x73, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12,
  1313. 0x25, 0x0a, 0x04, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x11, 0x2e,
  1314. 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73,
  1315. 0x52, 0x04, 0x69, 0x6e, 0x66, 0x6f, 0x32, 0x8b, 0x06, 0x0a, 0x07, 0x4d, 0x65, 0x73, 0x73, 0x61,
  1316. 0x67, 0x65, 0x12, 0x47, 0x0a, 0x10, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x65, 0x61, 0x64,
  1317. 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x20, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
  1318. 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x65, 0x61, 0x64, 0x53, 0x74, 0x61, 0x74, 0x75,
  1319. 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x11, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61,
  1320. 0x67, 0x65, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x39, 0x0a, 0x0b, 0x53,
  1321. 0x65, 0x6e, 0x64, 0x55, 0x73, 0x65, 0x72, 0x4d, 0x73, 0x67, 0x12, 0x17, 0x2e, 0x6d, 0x65, 0x73,
  1322. 0x73, 0x61, 0x67, 0x65, 0x2e, 0x53, 0x65, 0x6e, 0x64, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x71, 0x75,
  1323. 0x65, 0x73, 0x74, 0x1a, 0x11, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x52, 0x65,
  1324. 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4d, 0x0a, 0x13, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65,
  1325. 0x53, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x23, 0x2e,
  1326. 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53, 0x69,
  1327. 0x6e, 0x67, 0x6c, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65,
  1328. 0x73, 0x74, 0x1a, 0x11, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x52, 0x65, 0x73,
  1329. 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x51, 0x0a, 0x15, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4d,
  1330. 0x75, 0x6c, 0x74, 0x69, 0x70, 0x6c, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x25,
  1331. 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4d,
  1332. 0x75, 0x6c, 0x74, 0x69, 0x70, 0x6c, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65,
  1333. 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x11, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e,
  1334. 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x51, 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x55,
  1335. 0x6e, 0x72, 0x65, 0x61, 0x64, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x1e, 0x2e, 0x6d, 0x65, 0x73,
  1336. 0x73, 0x61, 0x67, 0x65, 0x2e, 0x47, 0x65, 0x74, 0x55, 0x6e, 0x72, 0x65, 0x61, 0x64, 0x43, 0x6f,
  1337. 0x75, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x6d, 0x65, 0x73,
  1338. 0x73, 0x61, 0x67, 0x65, 0x2e, 0x47, 0x65, 0x74, 0x55, 0x6e, 0x72, 0x65, 0x61, 0x64, 0x43, 0x6f,
  1339. 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3f, 0x0a, 0x0b, 0x46,
  1340. 0x69, 0x6e, 0x64, 0x55, 0x73, 0x65, 0x72, 0x4d, 0x73, 0x67, 0x12, 0x17, 0x2e, 0x6d, 0x65, 0x73,
  1341. 0x73, 0x61, 0x67, 0x65, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x55, 0x73, 0x65, 0x72, 0x4d, 0x73, 0x67,
  1342. 0x52, 0x65, 0x71, 0x1a, 0x17, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x46, 0x69,
  1343. 0x6e, 0x64, 0x55, 0x73, 0x65, 0x72, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x73, 0x12, 0x57, 0x0a, 0x13,
  1344. 0x47, 0x65, 0x74, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x55, 0x6e, 0x72, 0x65, 0x61, 0x64, 0x43, 0x6f,
  1345. 0x75, 0x6e, 0x74, 0x12, 0x1f, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x47, 0x65,
  1346. 0x74, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x55, 0x6e, 0x72, 0x65, 0x61, 0x64, 0x43, 0x6f, 0x75, 0x6e,
  1347. 0x74, 0x52, 0x65, 0x71, 0x1a, 0x1f, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x47,
  1348. 0x65, 0x74, 0x55, 0x6e, 0x72, 0x65, 0x61, 0x64, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73,
  1349. 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x48, 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x4c, 0x61, 0x73, 0x74,
  1350. 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x1a, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67,
  1351. 0x65, 0x2e, 0x47, 0x65, 0x74, 0x4c, 0x61, 0x73, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
  1352. 0x52, 0x65, 0x71, 0x1a, 0x1a, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x47, 0x65,
  1353. 0x74, 0x4c, 0x61, 0x73, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x12,
  1354. 0x4a, 0x0a, 0x11, 0x46, 0x69, 0x6e, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x44, 0x65,
  1355. 0x74, 0x61, 0x69, 0x6c, 0x12, 0x19, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x4d,
  1356. 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x52, 0x65, 0x71, 0x1a,
  1357. 0x1a, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67,
  1358. 0x65, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x12, 0x57, 0x0a, 0x13, 0x47,
  1359. 0x65, 0x74, 0x55, 0x6e, 0x72, 0x65, 0x61, 0x64, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x43, 0x6f, 0x75,
  1360. 0x6e, 0x74, 0x12, 0x1f, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x47, 0x65, 0x74,
  1361. 0x55, 0x6e, 0x72, 0x65, 0x61, 0x64, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x43, 0x6f, 0x75, 0x6e, 0x74,
  1362. 0x52, 0x65, 0x71, 0x1a, 0x1f, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x47, 0x65,
  1363. 0x74, 0x55, 0x6e, 0x72, 0x65, 0x61, 0x64, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x43, 0x6f, 0x75, 0x6e,
  1364. 0x74, 0x52, 0x65, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  1365. }
  1366. var (
  1367. file_message_proto_rawDescOnce sync.Once
  1368. file_message_proto_rawDescData = file_message_proto_rawDesc
  1369. )
  1370. func file_message_proto_rawDescGZIP() []byte {
  1371. file_message_proto_rawDescOnce.Do(func() {
  1372. file_message_proto_rawDescData = protoimpl.X.CompressGZIP(file_message_proto_rawDescData)
  1373. })
  1374. return file_message_proto_rawDescData
  1375. }
  1376. var file_message_proto_msgTypes = make([]protoimpl.MessageInfo, 18)
  1377. var file_message_proto_goTypes = []interface{}{
  1378. (*SendMsgRequest)(nil), // 0: message.SendMsgRequest
  1379. (*ChangeReadStatusRequest)(nil), // 1: message.ChangeReadStatusRequest
  1380. (*ResCount)(nil), // 2: message.ResCount
  1381. (*DeleteSingleMessageRequest)(nil), // 3: message.DeleteSingleMessageRequest
  1382. (*DeleteMultipleMessageRequest)(nil), // 4: message.DeleteMultipleMessageRequest
  1383. (*GetUnreadCountRequest)(nil), // 5: message.GetUnreadCountRequest
  1384. (*Response)(nil), // 6: message.Response
  1385. (*GetUnreadCountResponse)(nil), // 7: message.GetUnreadCountResponse
  1386. (*FindUserMsgReq)(nil), // 8: message.FindUserMsgReq
  1387. (*Messages)(nil), // 9: message.Messages
  1388. (*FindUserMsgRes)(nil), // 10: message.FindUserMsgRes
  1389. (*GetClassUnreadCountReq)(nil), // 11: message.GetClassUnreadCountReq
  1390. (*MessageDetailReq)(nil), // 12: message.MessageDetailReq
  1391. (*MessageDetailResp)(nil), // 13: message.MessageDetailResp
  1392. (*GetLastMessageReq)(nil), // 14: message.GetLastMessageReq
  1393. (*GetLastMessageRes)(nil), // 15: message.GetLastMessageRes
  1394. (*GetUnreadClassCountReq)(nil), // 16: message.GetUnreadClassCountReq
  1395. (*GetUnreadClassCountRes)(nil), // 17: message.GetUnreadClassCountRes
  1396. }
  1397. var file_message_proto_depIdxs = []int32{
  1398. 9, // 0: message.FindUserMsgRes.data:type_name -> message.Messages
  1399. 9, // 1: message.GetLastMessageRes.data:type_name -> message.Messages
  1400. 2, // 2: message.GetUnreadClassCountRes.data:type_name -> message.ResCount
  1401. 9, // 3: message.GetUnreadClassCountRes.info:type_name -> message.Messages
  1402. 1, // 4: message.Message.ChangeReadStatus:input_type -> message.ChangeReadStatusRequest
  1403. 0, // 5: message.Message.SendUserMsg:input_type -> message.SendMsgRequest
  1404. 3, // 6: message.Message.DeleteSingleMessage:input_type -> message.DeleteSingleMessageRequest
  1405. 4, // 7: message.Message.DeleteMultipleMessage:input_type -> message.DeleteMultipleMessageRequest
  1406. 5, // 8: message.Message.GetUnreadCount:input_type -> message.GetUnreadCountRequest
  1407. 8, // 9: message.Message.FindUserMsg:input_type -> message.FindUserMsgReq
  1408. 11, // 10: message.Message.GetClassUnreadCount:input_type -> message.GetClassUnreadCountReq
  1409. 14, // 11: message.Message.GetLastMessage:input_type -> message.GetLastMessageReq
  1410. 12, // 12: message.Message.FindMessageDetail:input_type -> message.MessageDetailReq
  1411. 16, // 13: message.Message.GetUnreadClassCount:input_type -> message.GetUnreadClassCountReq
  1412. 6, // 14: message.Message.ChangeReadStatus:output_type -> message.Response
  1413. 6, // 15: message.Message.SendUserMsg:output_type -> message.Response
  1414. 6, // 16: message.Message.DeleteSingleMessage:output_type -> message.Response
  1415. 6, // 17: message.Message.DeleteMultipleMessage:output_type -> message.Response
  1416. 7, // 18: message.Message.GetUnreadCount:output_type -> message.GetUnreadCountResponse
  1417. 10, // 19: message.Message.FindUserMsg:output_type -> message.FindUserMsgRes
  1418. 7, // 20: message.Message.GetClassUnreadCount:output_type -> message.GetUnreadCountResponse
  1419. 15, // 21: message.Message.GetLastMessage:output_type -> message.GetLastMessageRes
  1420. 13, // 22: message.Message.FindMessageDetail:output_type -> message.MessageDetailResp
  1421. 17, // 23: message.Message.GetUnreadClassCount:output_type -> message.GetUnreadClassCountRes
  1422. 14, // [14:24] is the sub-list for method output_type
  1423. 4, // [4:14] is the sub-list for method input_type
  1424. 4, // [4:4] is the sub-list for extension type_name
  1425. 4, // [4:4] is the sub-list for extension extendee
  1426. 0, // [0:4] is the sub-list for field type_name
  1427. }
  1428. func init() { file_message_proto_init() }
  1429. func file_message_proto_init() {
  1430. if File_message_proto != nil {
  1431. return
  1432. }
  1433. if !protoimpl.UnsafeEnabled {
  1434. file_message_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  1435. switch v := v.(*SendMsgRequest); i {
  1436. case 0:
  1437. return &v.state
  1438. case 1:
  1439. return &v.sizeCache
  1440. case 2:
  1441. return &v.unknownFields
  1442. default:
  1443. return nil
  1444. }
  1445. }
  1446. file_message_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  1447. switch v := v.(*ChangeReadStatusRequest); i {
  1448. case 0:
  1449. return &v.state
  1450. case 1:
  1451. return &v.sizeCache
  1452. case 2:
  1453. return &v.unknownFields
  1454. default:
  1455. return nil
  1456. }
  1457. }
  1458. file_message_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  1459. switch v := v.(*ResCount); i {
  1460. case 0:
  1461. return &v.state
  1462. case 1:
  1463. return &v.sizeCache
  1464. case 2:
  1465. return &v.unknownFields
  1466. default:
  1467. return nil
  1468. }
  1469. }
  1470. file_message_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
  1471. switch v := v.(*DeleteSingleMessageRequest); i {
  1472. case 0:
  1473. return &v.state
  1474. case 1:
  1475. return &v.sizeCache
  1476. case 2:
  1477. return &v.unknownFields
  1478. default:
  1479. return nil
  1480. }
  1481. }
  1482. file_message_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
  1483. switch v := v.(*DeleteMultipleMessageRequest); i {
  1484. case 0:
  1485. return &v.state
  1486. case 1:
  1487. return &v.sizeCache
  1488. case 2:
  1489. return &v.unknownFields
  1490. default:
  1491. return nil
  1492. }
  1493. }
  1494. file_message_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
  1495. switch v := v.(*GetUnreadCountRequest); i {
  1496. case 0:
  1497. return &v.state
  1498. case 1:
  1499. return &v.sizeCache
  1500. case 2:
  1501. return &v.unknownFields
  1502. default:
  1503. return nil
  1504. }
  1505. }
  1506. file_message_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
  1507. switch v := v.(*Response); i {
  1508. case 0:
  1509. return &v.state
  1510. case 1:
  1511. return &v.sizeCache
  1512. case 2:
  1513. return &v.unknownFields
  1514. default:
  1515. return nil
  1516. }
  1517. }
  1518. file_message_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
  1519. switch v := v.(*GetUnreadCountResponse); i {
  1520. case 0:
  1521. return &v.state
  1522. case 1:
  1523. return &v.sizeCache
  1524. case 2:
  1525. return &v.unknownFields
  1526. default:
  1527. return nil
  1528. }
  1529. }
  1530. file_message_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
  1531. switch v := v.(*FindUserMsgReq); i {
  1532. case 0:
  1533. return &v.state
  1534. case 1:
  1535. return &v.sizeCache
  1536. case 2:
  1537. return &v.unknownFields
  1538. default:
  1539. return nil
  1540. }
  1541. }
  1542. file_message_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
  1543. switch v := v.(*Messages); i {
  1544. case 0:
  1545. return &v.state
  1546. case 1:
  1547. return &v.sizeCache
  1548. case 2:
  1549. return &v.unknownFields
  1550. default:
  1551. return nil
  1552. }
  1553. }
  1554. file_message_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
  1555. switch v := v.(*FindUserMsgRes); i {
  1556. case 0:
  1557. return &v.state
  1558. case 1:
  1559. return &v.sizeCache
  1560. case 2:
  1561. return &v.unknownFields
  1562. default:
  1563. return nil
  1564. }
  1565. }
  1566. file_message_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
  1567. switch v := v.(*GetClassUnreadCountReq); i {
  1568. case 0:
  1569. return &v.state
  1570. case 1:
  1571. return &v.sizeCache
  1572. case 2:
  1573. return &v.unknownFields
  1574. default:
  1575. return nil
  1576. }
  1577. }
  1578. file_message_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} {
  1579. switch v := v.(*MessageDetailReq); i {
  1580. case 0:
  1581. return &v.state
  1582. case 1:
  1583. return &v.sizeCache
  1584. case 2:
  1585. return &v.unknownFields
  1586. default:
  1587. return nil
  1588. }
  1589. }
  1590. file_message_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} {
  1591. switch v := v.(*MessageDetailResp); i {
  1592. case 0:
  1593. return &v.state
  1594. case 1:
  1595. return &v.sizeCache
  1596. case 2:
  1597. return &v.unknownFields
  1598. default:
  1599. return nil
  1600. }
  1601. }
  1602. file_message_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} {
  1603. switch v := v.(*GetLastMessageReq); i {
  1604. case 0:
  1605. return &v.state
  1606. case 1:
  1607. return &v.sizeCache
  1608. case 2:
  1609. return &v.unknownFields
  1610. default:
  1611. return nil
  1612. }
  1613. }
  1614. file_message_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} {
  1615. switch v := v.(*GetLastMessageRes); i {
  1616. case 0:
  1617. return &v.state
  1618. case 1:
  1619. return &v.sizeCache
  1620. case 2:
  1621. return &v.unknownFields
  1622. default:
  1623. return nil
  1624. }
  1625. }
  1626. file_message_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} {
  1627. switch v := v.(*GetUnreadClassCountReq); i {
  1628. case 0:
  1629. return &v.state
  1630. case 1:
  1631. return &v.sizeCache
  1632. case 2:
  1633. return &v.unknownFields
  1634. default:
  1635. return nil
  1636. }
  1637. }
  1638. file_message_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} {
  1639. switch v := v.(*GetUnreadClassCountRes); i {
  1640. case 0:
  1641. return &v.state
  1642. case 1:
  1643. return &v.sizeCache
  1644. case 2:
  1645. return &v.unknownFields
  1646. default:
  1647. return nil
  1648. }
  1649. }
  1650. }
  1651. type x struct{}
  1652. out := protoimpl.TypeBuilder{
  1653. File: protoimpl.DescBuilder{
  1654. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  1655. RawDescriptor: file_message_proto_rawDesc,
  1656. NumEnums: 0,
  1657. NumMessages: 18,
  1658. NumExtensions: 0,
  1659. NumServices: 1,
  1660. },
  1661. GoTypes: file_message_proto_goTypes,
  1662. DependencyIndexes: file_message_proto_depIdxs,
  1663. MessageInfos: file_message_proto_msgTypes,
  1664. }.Build()
  1665. File_message_proto = out.File
  1666. file_message_proto_rawDesc = nil
  1667. file_message_proto_goTypes = nil
  1668. file_message_proto_depIdxs = nil
  1669. }
  1670. // Reference imports to suppress errors if they are not otherwise used.
  1671. var _ context.Context
  1672. var _ grpc.ClientConnInterface
  1673. // This is a compile-time assertion to ensure that this generated file
  1674. // is compatible with the grpc package it is being compiled against.
  1675. const _ = grpc.SupportPackageIsVersion6
  1676. // MessageClient is the client API for Message service.
  1677. //
  1678. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  1679. type MessageClient interface {
  1680. // 修改消息阅读状态
  1681. ChangeReadStatus(ctx context.Context, in *ChangeReadStatusRequest, opts ...grpc.CallOption) (*Response, error)
  1682. //指定用户发消息
  1683. SendUserMsg(ctx context.Context, in *SendMsgRequest, opts ...grpc.CallOption) (*Response, error)
  1684. // 删除单一消息
  1685. DeleteSingleMessage(ctx context.Context, in *DeleteSingleMessageRequest, opts ...grpc.CallOption) (*Response, error)
  1686. // 删除多条消息
  1687. DeleteMultipleMessage(ctx context.Context, in *DeleteMultipleMessageRequest, opts ...grpc.CallOption) (*Response, error)
  1688. // 查询指定用户未读消息合计
  1689. GetUnreadCount(ctx context.Context, in *GetUnreadCountRequest, opts ...grpc.CallOption) (*GetUnreadCountResponse, error)
  1690. // 查询指定用户的历史消息记录
  1691. FindUserMsg(ctx context.Context, in *FindUserMsgReq, opts ...grpc.CallOption) (*FindUserMsgRes, error)
  1692. // 查询指定用户指定分类的未读消息合计
  1693. GetClassUnreadCount(ctx context.Context, in *GetClassUnreadCountReq, opts ...grpc.CallOption) (*GetUnreadCountResponse, error)
  1694. // 获取指定用户指定分类的最新一条未读消息
  1695. GetLastMessage(ctx context.Context, in *GetLastMessageReq, opts ...grpc.CallOption) (*GetLastMessageRes, error)
  1696. //查看详细详情
  1697. FindMessageDetail(ctx context.Context, in *MessageDetailReq, opts ...grpc.CallOption) (*MessageDetailResp, error)
  1698. // 获取指定用户的未读消息分类及数量 及分类的最新消息
  1699. GetUnreadClassCount(ctx context.Context, in *GetUnreadClassCountReq, opts ...grpc.CallOption) (*GetUnreadClassCountRes, error)
  1700. }
  1701. type messageClient struct {
  1702. cc grpc.ClientConnInterface
  1703. }
  1704. func NewMessageClient(cc grpc.ClientConnInterface) MessageClient {
  1705. return &messageClient{cc}
  1706. }
  1707. func (c *messageClient) ChangeReadStatus(ctx context.Context, in *ChangeReadStatusRequest, opts ...grpc.CallOption) (*Response, error) {
  1708. out := new(Response)
  1709. err := c.cc.Invoke(ctx, "/message.Message/ChangeReadStatus", in, out, opts...)
  1710. if err != nil {
  1711. return nil, err
  1712. }
  1713. return out, nil
  1714. }
  1715. func (c *messageClient) SendUserMsg(ctx context.Context, in *SendMsgRequest, opts ...grpc.CallOption) (*Response, error) {
  1716. out := new(Response)
  1717. err := c.cc.Invoke(ctx, "/message.Message/SendUserMsg", in, out, opts...)
  1718. if err != nil {
  1719. return nil, err
  1720. }
  1721. return out, nil
  1722. }
  1723. func (c *messageClient) DeleteSingleMessage(ctx context.Context, in *DeleteSingleMessageRequest, opts ...grpc.CallOption) (*Response, error) {
  1724. out := new(Response)
  1725. err := c.cc.Invoke(ctx, "/message.Message/DeleteSingleMessage", in, out, opts...)
  1726. if err != nil {
  1727. return nil, err
  1728. }
  1729. return out, nil
  1730. }
  1731. func (c *messageClient) DeleteMultipleMessage(ctx context.Context, in *DeleteMultipleMessageRequest, opts ...grpc.CallOption) (*Response, error) {
  1732. out := new(Response)
  1733. err := c.cc.Invoke(ctx, "/message.Message/DeleteMultipleMessage", in, out, opts...)
  1734. if err != nil {
  1735. return nil, err
  1736. }
  1737. return out, nil
  1738. }
  1739. func (c *messageClient) GetUnreadCount(ctx context.Context, in *GetUnreadCountRequest, opts ...grpc.CallOption) (*GetUnreadCountResponse, error) {
  1740. out := new(GetUnreadCountResponse)
  1741. err := c.cc.Invoke(ctx, "/message.Message/GetUnreadCount", in, out, opts...)
  1742. if err != nil {
  1743. return nil, err
  1744. }
  1745. return out, nil
  1746. }
  1747. func (c *messageClient) FindUserMsg(ctx context.Context, in *FindUserMsgReq, opts ...grpc.CallOption) (*FindUserMsgRes, error) {
  1748. out := new(FindUserMsgRes)
  1749. err := c.cc.Invoke(ctx, "/message.Message/FindUserMsg", in, out, opts...)
  1750. if err != nil {
  1751. return nil, err
  1752. }
  1753. return out, nil
  1754. }
  1755. func (c *messageClient) GetClassUnreadCount(ctx context.Context, in *GetClassUnreadCountReq, opts ...grpc.CallOption) (*GetUnreadCountResponse, error) {
  1756. out := new(GetUnreadCountResponse)
  1757. err := c.cc.Invoke(ctx, "/message.Message/GetClassUnreadCount", in, out, opts...)
  1758. if err != nil {
  1759. return nil, err
  1760. }
  1761. return out, nil
  1762. }
  1763. func (c *messageClient) GetLastMessage(ctx context.Context, in *GetLastMessageReq, opts ...grpc.CallOption) (*GetLastMessageRes, error) {
  1764. out := new(GetLastMessageRes)
  1765. err := c.cc.Invoke(ctx, "/message.Message/GetLastMessage", in, out, opts...)
  1766. if err != nil {
  1767. return nil, err
  1768. }
  1769. return out, nil
  1770. }
  1771. func (c *messageClient) FindMessageDetail(ctx context.Context, in *MessageDetailReq, opts ...grpc.CallOption) (*MessageDetailResp, error) {
  1772. out := new(MessageDetailResp)
  1773. err := c.cc.Invoke(ctx, "/message.Message/FindMessageDetail", in, out, opts...)
  1774. if err != nil {
  1775. return nil, err
  1776. }
  1777. return out, nil
  1778. }
  1779. func (c *messageClient) GetUnreadClassCount(ctx context.Context, in *GetUnreadClassCountReq, opts ...grpc.CallOption) (*GetUnreadClassCountRes, error) {
  1780. out := new(GetUnreadClassCountRes)
  1781. err := c.cc.Invoke(ctx, "/message.Message/GetUnreadClassCount", in, out, opts...)
  1782. if err != nil {
  1783. return nil, err
  1784. }
  1785. return out, nil
  1786. }
  1787. // MessageServer is the server API for Message service.
  1788. type MessageServer interface {
  1789. // 修改消息阅读状态
  1790. ChangeReadStatus(context.Context, *ChangeReadStatusRequest) (*Response, error)
  1791. //指定用户发消息
  1792. SendUserMsg(context.Context, *SendMsgRequest) (*Response, error)
  1793. // 删除单一消息
  1794. DeleteSingleMessage(context.Context, *DeleteSingleMessageRequest) (*Response, error)
  1795. // 删除多条消息
  1796. DeleteMultipleMessage(context.Context, *DeleteMultipleMessageRequest) (*Response, error)
  1797. // 查询指定用户未读消息合计
  1798. GetUnreadCount(context.Context, *GetUnreadCountRequest) (*GetUnreadCountResponse, error)
  1799. // 查询指定用户的历史消息记录
  1800. FindUserMsg(context.Context, *FindUserMsgReq) (*FindUserMsgRes, error)
  1801. // 查询指定用户指定分类的未读消息合计
  1802. GetClassUnreadCount(context.Context, *GetClassUnreadCountReq) (*GetUnreadCountResponse, error)
  1803. // 获取指定用户指定分类的最新一条未读消息
  1804. GetLastMessage(context.Context, *GetLastMessageReq) (*GetLastMessageRes, error)
  1805. //查看详细详情
  1806. FindMessageDetail(context.Context, *MessageDetailReq) (*MessageDetailResp, error)
  1807. // 获取指定用户的未读消息分类及数量 及分类的最新消息
  1808. GetUnreadClassCount(context.Context, *GetUnreadClassCountReq) (*GetUnreadClassCountRes, error)
  1809. }
  1810. // UnimplementedMessageServer can be embedded to have forward compatible implementations.
  1811. type UnimplementedMessageServer struct {
  1812. }
  1813. func (*UnimplementedMessageServer) ChangeReadStatus(context.Context, *ChangeReadStatusRequest) (*Response, error) {
  1814. return nil, status.Errorf(codes.Unimplemented, "method ChangeReadStatus not implemented")
  1815. }
  1816. func (*UnimplementedMessageServer) SendUserMsg(context.Context, *SendMsgRequest) (*Response, error) {
  1817. return nil, status.Errorf(codes.Unimplemented, "method SendUserMsg not implemented")
  1818. }
  1819. func (*UnimplementedMessageServer) DeleteSingleMessage(context.Context, *DeleteSingleMessageRequest) (*Response, error) {
  1820. return nil, status.Errorf(codes.Unimplemented, "method DeleteSingleMessage not implemented")
  1821. }
  1822. func (*UnimplementedMessageServer) DeleteMultipleMessage(context.Context, *DeleteMultipleMessageRequest) (*Response, error) {
  1823. return nil, status.Errorf(codes.Unimplemented, "method DeleteMultipleMessage not implemented")
  1824. }
  1825. func (*UnimplementedMessageServer) GetUnreadCount(context.Context, *GetUnreadCountRequest) (*GetUnreadCountResponse, error) {
  1826. return nil, status.Errorf(codes.Unimplemented, "method GetUnreadCount not implemented")
  1827. }
  1828. func (*UnimplementedMessageServer) FindUserMsg(context.Context, *FindUserMsgReq) (*FindUserMsgRes, error) {
  1829. return nil, status.Errorf(codes.Unimplemented, "method FindUserMsg not implemented")
  1830. }
  1831. func (*UnimplementedMessageServer) GetClassUnreadCount(context.Context, *GetClassUnreadCountReq) (*GetUnreadCountResponse, error) {
  1832. return nil, status.Errorf(codes.Unimplemented, "method GetClassUnreadCount not implemented")
  1833. }
  1834. func (*UnimplementedMessageServer) GetLastMessage(context.Context, *GetLastMessageReq) (*GetLastMessageRes, error) {
  1835. return nil, status.Errorf(codes.Unimplemented, "method GetLastMessage not implemented")
  1836. }
  1837. func (*UnimplementedMessageServer) FindMessageDetail(context.Context, *MessageDetailReq) (*MessageDetailResp, error) {
  1838. return nil, status.Errorf(codes.Unimplemented, "method FindMessageDetail not implemented")
  1839. }
  1840. func (*UnimplementedMessageServer) GetUnreadClassCount(context.Context, *GetUnreadClassCountReq) (*GetUnreadClassCountRes, error) {
  1841. return nil, status.Errorf(codes.Unimplemented, "method GetUnreadClassCount not implemented")
  1842. }
  1843. func RegisterMessageServer(s *grpc.Server, srv MessageServer) {
  1844. s.RegisterService(&_Message_serviceDesc, srv)
  1845. }
  1846. func _Message_ChangeReadStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1847. in := new(ChangeReadStatusRequest)
  1848. if err := dec(in); err != nil {
  1849. return nil, err
  1850. }
  1851. if interceptor == nil {
  1852. return srv.(MessageServer).ChangeReadStatus(ctx, in)
  1853. }
  1854. info := &grpc.UnaryServerInfo{
  1855. Server: srv,
  1856. FullMethod: "/message.Message/ChangeReadStatus",
  1857. }
  1858. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1859. return srv.(MessageServer).ChangeReadStatus(ctx, req.(*ChangeReadStatusRequest))
  1860. }
  1861. return interceptor(ctx, in, info, handler)
  1862. }
  1863. func _Message_SendUserMsg_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1864. in := new(SendMsgRequest)
  1865. if err := dec(in); err != nil {
  1866. return nil, err
  1867. }
  1868. if interceptor == nil {
  1869. return srv.(MessageServer).SendUserMsg(ctx, in)
  1870. }
  1871. info := &grpc.UnaryServerInfo{
  1872. Server: srv,
  1873. FullMethod: "/message.Message/SendUserMsg",
  1874. }
  1875. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1876. return srv.(MessageServer).SendUserMsg(ctx, req.(*SendMsgRequest))
  1877. }
  1878. return interceptor(ctx, in, info, handler)
  1879. }
  1880. func _Message_DeleteSingleMessage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1881. in := new(DeleteSingleMessageRequest)
  1882. if err := dec(in); err != nil {
  1883. return nil, err
  1884. }
  1885. if interceptor == nil {
  1886. return srv.(MessageServer).DeleteSingleMessage(ctx, in)
  1887. }
  1888. info := &grpc.UnaryServerInfo{
  1889. Server: srv,
  1890. FullMethod: "/message.Message/DeleteSingleMessage",
  1891. }
  1892. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1893. return srv.(MessageServer).DeleteSingleMessage(ctx, req.(*DeleteSingleMessageRequest))
  1894. }
  1895. return interceptor(ctx, in, info, handler)
  1896. }
  1897. func _Message_DeleteMultipleMessage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1898. in := new(DeleteMultipleMessageRequest)
  1899. if err := dec(in); err != nil {
  1900. return nil, err
  1901. }
  1902. if interceptor == nil {
  1903. return srv.(MessageServer).DeleteMultipleMessage(ctx, in)
  1904. }
  1905. info := &grpc.UnaryServerInfo{
  1906. Server: srv,
  1907. FullMethod: "/message.Message/DeleteMultipleMessage",
  1908. }
  1909. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1910. return srv.(MessageServer).DeleteMultipleMessage(ctx, req.(*DeleteMultipleMessageRequest))
  1911. }
  1912. return interceptor(ctx, in, info, handler)
  1913. }
  1914. func _Message_GetUnreadCount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1915. in := new(GetUnreadCountRequest)
  1916. if err := dec(in); err != nil {
  1917. return nil, err
  1918. }
  1919. if interceptor == nil {
  1920. return srv.(MessageServer).GetUnreadCount(ctx, in)
  1921. }
  1922. info := &grpc.UnaryServerInfo{
  1923. Server: srv,
  1924. FullMethod: "/message.Message/GetUnreadCount",
  1925. }
  1926. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1927. return srv.(MessageServer).GetUnreadCount(ctx, req.(*GetUnreadCountRequest))
  1928. }
  1929. return interceptor(ctx, in, info, handler)
  1930. }
  1931. func _Message_FindUserMsg_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1932. in := new(FindUserMsgReq)
  1933. if err := dec(in); err != nil {
  1934. return nil, err
  1935. }
  1936. if interceptor == nil {
  1937. return srv.(MessageServer).FindUserMsg(ctx, in)
  1938. }
  1939. info := &grpc.UnaryServerInfo{
  1940. Server: srv,
  1941. FullMethod: "/message.Message/FindUserMsg",
  1942. }
  1943. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1944. return srv.(MessageServer).FindUserMsg(ctx, req.(*FindUserMsgReq))
  1945. }
  1946. return interceptor(ctx, in, info, handler)
  1947. }
  1948. func _Message_GetClassUnreadCount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1949. in := new(GetClassUnreadCountReq)
  1950. if err := dec(in); err != nil {
  1951. return nil, err
  1952. }
  1953. if interceptor == nil {
  1954. return srv.(MessageServer).GetClassUnreadCount(ctx, in)
  1955. }
  1956. info := &grpc.UnaryServerInfo{
  1957. Server: srv,
  1958. FullMethod: "/message.Message/GetClassUnreadCount",
  1959. }
  1960. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1961. return srv.(MessageServer).GetClassUnreadCount(ctx, req.(*GetClassUnreadCountReq))
  1962. }
  1963. return interceptor(ctx, in, info, handler)
  1964. }
  1965. func _Message_GetLastMessage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1966. in := new(GetLastMessageReq)
  1967. if err := dec(in); err != nil {
  1968. return nil, err
  1969. }
  1970. if interceptor == nil {
  1971. return srv.(MessageServer).GetLastMessage(ctx, in)
  1972. }
  1973. info := &grpc.UnaryServerInfo{
  1974. Server: srv,
  1975. FullMethod: "/message.Message/GetLastMessage",
  1976. }
  1977. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1978. return srv.(MessageServer).GetLastMessage(ctx, req.(*GetLastMessageReq))
  1979. }
  1980. return interceptor(ctx, in, info, handler)
  1981. }
  1982. func _Message_FindMessageDetail_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1983. in := new(MessageDetailReq)
  1984. if err := dec(in); err != nil {
  1985. return nil, err
  1986. }
  1987. if interceptor == nil {
  1988. return srv.(MessageServer).FindMessageDetail(ctx, in)
  1989. }
  1990. info := &grpc.UnaryServerInfo{
  1991. Server: srv,
  1992. FullMethod: "/message.Message/FindMessageDetail",
  1993. }
  1994. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1995. return srv.(MessageServer).FindMessageDetail(ctx, req.(*MessageDetailReq))
  1996. }
  1997. return interceptor(ctx, in, info, handler)
  1998. }
  1999. func _Message_GetUnreadClassCount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  2000. in := new(GetUnreadClassCountReq)
  2001. if err := dec(in); err != nil {
  2002. return nil, err
  2003. }
  2004. if interceptor == nil {
  2005. return srv.(MessageServer).GetUnreadClassCount(ctx, in)
  2006. }
  2007. info := &grpc.UnaryServerInfo{
  2008. Server: srv,
  2009. FullMethod: "/message.Message/GetUnreadClassCount",
  2010. }
  2011. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  2012. return srv.(MessageServer).GetUnreadClassCount(ctx, req.(*GetUnreadClassCountReq))
  2013. }
  2014. return interceptor(ctx, in, info, handler)
  2015. }
  2016. var _Message_serviceDesc = grpc.ServiceDesc{
  2017. ServiceName: "message.Message",
  2018. HandlerType: (*MessageServer)(nil),
  2019. Methods: []grpc.MethodDesc{
  2020. {
  2021. MethodName: "ChangeReadStatus",
  2022. Handler: _Message_ChangeReadStatus_Handler,
  2023. },
  2024. {
  2025. MethodName: "SendUserMsg",
  2026. Handler: _Message_SendUserMsg_Handler,
  2027. },
  2028. {
  2029. MethodName: "DeleteSingleMessage",
  2030. Handler: _Message_DeleteSingleMessage_Handler,
  2031. },
  2032. {
  2033. MethodName: "DeleteMultipleMessage",
  2034. Handler: _Message_DeleteMultipleMessage_Handler,
  2035. },
  2036. {
  2037. MethodName: "GetUnreadCount",
  2038. Handler: _Message_GetUnreadCount_Handler,
  2039. },
  2040. {
  2041. MethodName: "FindUserMsg",
  2042. Handler: _Message_FindUserMsg_Handler,
  2043. },
  2044. {
  2045. MethodName: "GetClassUnreadCount",
  2046. Handler: _Message_GetClassUnreadCount_Handler,
  2047. },
  2048. {
  2049. MethodName: "GetLastMessage",
  2050. Handler: _Message_GetLastMessage_Handler,
  2051. },
  2052. {
  2053. MethodName: "FindMessageDetail",
  2054. Handler: _Message_FindMessageDetail_Handler,
  2055. },
  2056. {
  2057. MethodName: "GetUnreadClassCount",
  2058. Handler: _Message_GetUnreadClassCount_Handler,
  2059. },
  2060. },
  2061. Streams: []grpc.StreamDesc{},
  2062. Metadata: "message.proto",
  2063. }