message.pb.go 80 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299
  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. }
  566. func (x *Messages) Reset() {
  567. *x = Messages{}
  568. if protoimpl.UnsafeEnabled {
  569. mi := &file_message_proto_msgTypes[9]
  570. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  571. ms.StoreMessageInfo(mi)
  572. }
  573. }
  574. func (x *Messages) String() string {
  575. return protoimpl.X.MessageStringOf(x)
  576. }
  577. func (*Messages) ProtoMessage() {}
  578. func (x *Messages) ProtoReflect() protoreflect.Message {
  579. mi := &file_message_proto_msgTypes[9]
  580. if protoimpl.UnsafeEnabled && x != nil {
  581. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  582. if ms.LoadMessageInfo() == nil {
  583. ms.StoreMessageInfo(mi)
  584. }
  585. return ms
  586. }
  587. return mi.MessageOf(x)
  588. }
  589. // Deprecated: Use Messages.ProtoReflect.Descriptor instead.
  590. func (*Messages) Descriptor() ([]byte, []int) {
  591. return file_message_proto_rawDescGZIP(), []int{9}
  592. }
  593. func (x *Messages) GetReceiveUserId() string {
  594. if x != nil {
  595. return x.ReceiveUserId
  596. }
  597. return ""
  598. }
  599. func (x *Messages) GetReceiveName() string {
  600. if x != nil {
  601. return x.ReceiveName
  602. }
  603. return ""
  604. }
  605. func (x *Messages) GetSendUserId() string {
  606. if x != nil {
  607. return x.SendUserId
  608. }
  609. return ""
  610. }
  611. func (x *Messages) GetSendName() string {
  612. if x != nil {
  613. return x.SendName
  614. }
  615. return ""
  616. }
  617. func (x *Messages) GetTitle() string {
  618. if x != nil {
  619. return x.Title
  620. }
  621. return ""
  622. }
  623. func (x *Messages) GetContent() string {
  624. if x != nil {
  625. return x.Content
  626. }
  627. return ""
  628. }
  629. func (x *Messages) GetMsgType() int64 {
  630. if x != nil {
  631. return x.MsgType
  632. }
  633. return 0
  634. }
  635. func (x *Messages) GetLink() string {
  636. if x != nil {
  637. return x.Link
  638. }
  639. return ""
  640. }
  641. func (x *Messages) GetCiteId() int64 {
  642. if x != nil {
  643. return x.CiteId
  644. }
  645. return 0
  646. }
  647. func (x *Messages) GetIsRead() int64 {
  648. if x != nil {
  649. return x.IsRead
  650. }
  651. return 0
  652. }
  653. func (x *Messages) GetCreatetime() string {
  654. if x != nil {
  655. return x.Createtime
  656. }
  657. return ""
  658. }
  659. func (x *Messages) GetAppid() string {
  660. if x != nil {
  661. return x.Appid
  662. }
  663. return ""
  664. }
  665. type FindUserMsgRes struct {
  666. state protoimpl.MessageState
  667. sizeCache protoimpl.SizeCache
  668. unknownFields protoimpl.UnknownFields
  669. Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` //状态码
  670. Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` //响应消息
  671. Data []*Messages `protobuf:"bytes,3,rep,name=data,proto3" json:"data,omitempty"` //
  672. Count int64 `protobuf:"varint,4,opt,name=count,proto3" json:"count,omitempty"` //总数
  673. }
  674. func (x *FindUserMsgRes) Reset() {
  675. *x = FindUserMsgRes{}
  676. if protoimpl.UnsafeEnabled {
  677. mi := &file_message_proto_msgTypes[10]
  678. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  679. ms.StoreMessageInfo(mi)
  680. }
  681. }
  682. func (x *FindUserMsgRes) String() string {
  683. return protoimpl.X.MessageStringOf(x)
  684. }
  685. func (*FindUserMsgRes) ProtoMessage() {}
  686. func (x *FindUserMsgRes) ProtoReflect() protoreflect.Message {
  687. mi := &file_message_proto_msgTypes[10]
  688. if protoimpl.UnsafeEnabled && x != nil {
  689. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  690. if ms.LoadMessageInfo() == nil {
  691. ms.StoreMessageInfo(mi)
  692. }
  693. return ms
  694. }
  695. return mi.MessageOf(x)
  696. }
  697. // Deprecated: Use FindUserMsgRes.ProtoReflect.Descriptor instead.
  698. func (*FindUserMsgRes) Descriptor() ([]byte, []int) {
  699. return file_message_proto_rawDescGZIP(), []int{10}
  700. }
  701. func (x *FindUserMsgRes) GetCode() int64 {
  702. if x != nil {
  703. return x.Code
  704. }
  705. return 0
  706. }
  707. func (x *FindUserMsgRes) GetMessage() string {
  708. if x != nil {
  709. return x.Message
  710. }
  711. return ""
  712. }
  713. func (x *FindUserMsgRes) GetData() []*Messages {
  714. if x != nil {
  715. return x.Data
  716. }
  717. return nil
  718. }
  719. func (x *FindUserMsgRes) GetCount() int64 {
  720. if x != nil {
  721. return x.Count
  722. }
  723. return 0
  724. }
  725. type GetClassUnreadCountReq struct {
  726. state protoimpl.MessageState
  727. sizeCache protoimpl.SizeCache
  728. unknownFields protoimpl.UnknownFields
  729. UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"` // 用户id
  730. MsgType int64 `protobuf:"varint,2,opt,name=msgType,proto3" json:"msgType,omitempty"` //分类 1:客服 2:系统通知 3:营销 4:用户会话
  731. Appid string `protobuf:"bytes,3,opt,name=appid,proto3" json:"appid,omitempty"` //应用标识
  732. }
  733. func (x *GetClassUnreadCountReq) Reset() {
  734. *x = GetClassUnreadCountReq{}
  735. if protoimpl.UnsafeEnabled {
  736. mi := &file_message_proto_msgTypes[11]
  737. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  738. ms.StoreMessageInfo(mi)
  739. }
  740. }
  741. func (x *GetClassUnreadCountReq) String() string {
  742. return protoimpl.X.MessageStringOf(x)
  743. }
  744. func (*GetClassUnreadCountReq) ProtoMessage() {}
  745. func (x *GetClassUnreadCountReq) ProtoReflect() protoreflect.Message {
  746. mi := &file_message_proto_msgTypes[11]
  747. if protoimpl.UnsafeEnabled && x != nil {
  748. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  749. if ms.LoadMessageInfo() == nil {
  750. ms.StoreMessageInfo(mi)
  751. }
  752. return ms
  753. }
  754. return mi.MessageOf(x)
  755. }
  756. // Deprecated: Use GetClassUnreadCountReq.ProtoReflect.Descriptor instead.
  757. func (*GetClassUnreadCountReq) Descriptor() ([]byte, []int) {
  758. return file_message_proto_rawDescGZIP(), []int{11}
  759. }
  760. func (x *GetClassUnreadCountReq) GetUserId() string {
  761. if x != nil {
  762. return x.UserId
  763. }
  764. return ""
  765. }
  766. func (x *GetClassUnreadCountReq) GetMsgType() int64 {
  767. if x != nil {
  768. return x.MsgType
  769. }
  770. return 0
  771. }
  772. func (x *GetClassUnreadCountReq) GetAppid() string {
  773. if x != nil {
  774. return x.Appid
  775. }
  776. return ""
  777. }
  778. //查看消息内容
  779. type MessageDetailReq struct {
  780. state protoimpl.MessageState
  781. sizeCache protoimpl.SizeCache
  782. unknownFields protoimpl.UnknownFields
  783. Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` //消息id
  784. }
  785. func (x *MessageDetailReq) Reset() {
  786. *x = MessageDetailReq{}
  787. if protoimpl.UnsafeEnabled {
  788. mi := &file_message_proto_msgTypes[12]
  789. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  790. ms.StoreMessageInfo(mi)
  791. }
  792. }
  793. func (x *MessageDetailReq) String() string {
  794. return protoimpl.X.MessageStringOf(x)
  795. }
  796. func (*MessageDetailReq) ProtoMessage() {}
  797. func (x *MessageDetailReq) ProtoReflect() protoreflect.Message {
  798. mi := &file_message_proto_msgTypes[12]
  799. if protoimpl.UnsafeEnabled && x != nil {
  800. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  801. if ms.LoadMessageInfo() == nil {
  802. ms.StoreMessageInfo(mi)
  803. }
  804. return ms
  805. }
  806. return mi.MessageOf(x)
  807. }
  808. // Deprecated: Use MessageDetailReq.ProtoReflect.Descriptor instead.
  809. func (*MessageDetailReq) Descriptor() ([]byte, []int) {
  810. return file_message_proto_rawDescGZIP(), []int{12}
  811. }
  812. func (x *MessageDetailReq) GetId() int64 {
  813. if x != nil {
  814. return x.Id
  815. }
  816. return 0
  817. }
  818. type MessageDetailResp struct {
  819. state protoimpl.MessageState
  820. sizeCache protoimpl.SizeCache
  821. unknownFields protoimpl.UnknownFields
  822. Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
  823. ReceiveUserId string `protobuf:"bytes,2,opt,name=receiveUserId,proto3" json:"receiveUserId,omitempty"` //接收方用户ID
  824. ReceiveName string `protobuf:"bytes,3,opt,name=receiveName,proto3" json:"receiveName,omitempty"` //接收方用户名
  825. SendUserId string `protobuf:"bytes,4,opt,name=sendUserId,proto3" json:"sendUserId,omitempty"` //发送方用户ID
  826. SendName string `protobuf:"bytes,5,opt,name=sendName,proto3" json:"sendName,omitempty"` //发送方用户名
  827. Title string `protobuf:"bytes,6,opt,name=title,proto3" json:"title,omitempty"` //主题
  828. Content string `protobuf:"bytes,7,opt,name=content,proto3" json:"content,omitempty"` //内容
  829. MsgType int64 `protobuf:"varint,8,opt,name=msgType,proto3" json:"msgType,omitempty"` //消息类型 1:客服 2:系统通知 3:营销 4:用户会话
  830. Link string `protobuf:"bytes,9,opt,name=link,proto3" json:"link,omitempty"` //跳转链接
  831. CiteId int64 `protobuf:"varint,10,opt,name=citeId,proto3" json:"citeId,omitempty"` //引用id
  832. IsRead int64 `protobuf:"varint,11,opt,name=isRead,proto3" json:"isRead,omitempty"` //已读未读 0:未读 1:已读
  833. Createtime string `protobuf:"bytes,12,opt,name=createtime,proto3" json:"createtime,omitempty"`
  834. Appid string `protobuf:"bytes,13,opt,name=appid,proto3" json:"appid,omitempty"` //应用标识
  835. }
  836. func (x *MessageDetailResp) Reset() {
  837. *x = MessageDetailResp{}
  838. if protoimpl.UnsafeEnabled {
  839. mi := &file_message_proto_msgTypes[13]
  840. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  841. ms.StoreMessageInfo(mi)
  842. }
  843. }
  844. func (x *MessageDetailResp) String() string {
  845. return protoimpl.X.MessageStringOf(x)
  846. }
  847. func (*MessageDetailResp) ProtoMessage() {}
  848. func (x *MessageDetailResp) ProtoReflect() protoreflect.Message {
  849. mi := &file_message_proto_msgTypes[13]
  850. if protoimpl.UnsafeEnabled && x != nil {
  851. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  852. if ms.LoadMessageInfo() == nil {
  853. ms.StoreMessageInfo(mi)
  854. }
  855. return ms
  856. }
  857. return mi.MessageOf(x)
  858. }
  859. // Deprecated: Use MessageDetailResp.ProtoReflect.Descriptor instead.
  860. func (*MessageDetailResp) Descriptor() ([]byte, []int) {
  861. return file_message_proto_rawDescGZIP(), []int{13}
  862. }
  863. func (x *MessageDetailResp) GetId() int64 {
  864. if x != nil {
  865. return x.Id
  866. }
  867. return 0
  868. }
  869. func (x *MessageDetailResp) GetReceiveUserId() string {
  870. if x != nil {
  871. return x.ReceiveUserId
  872. }
  873. return ""
  874. }
  875. func (x *MessageDetailResp) GetReceiveName() string {
  876. if x != nil {
  877. return x.ReceiveName
  878. }
  879. return ""
  880. }
  881. func (x *MessageDetailResp) GetSendUserId() string {
  882. if x != nil {
  883. return x.SendUserId
  884. }
  885. return ""
  886. }
  887. func (x *MessageDetailResp) GetSendName() string {
  888. if x != nil {
  889. return x.SendName
  890. }
  891. return ""
  892. }
  893. func (x *MessageDetailResp) GetTitle() string {
  894. if x != nil {
  895. return x.Title
  896. }
  897. return ""
  898. }
  899. func (x *MessageDetailResp) GetContent() string {
  900. if x != nil {
  901. return x.Content
  902. }
  903. return ""
  904. }
  905. func (x *MessageDetailResp) GetMsgType() int64 {
  906. if x != nil {
  907. return x.MsgType
  908. }
  909. return 0
  910. }
  911. func (x *MessageDetailResp) GetLink() string {
  912. if x != nil {
  913. return x.Link
  914. }
  915. return ""
  916. }
  917. func (x *MessageDetailResp) GetCiteId() int64 {
  918. if x != nil {
  919. return x.CiteId
  920. }
  921. return 0
  922. }
  923. func (x *MessageDetailResp) GetIsRead() int64 {
  924. if x != nil {
  925. return x.IsRead
  926. }
  927. return 0
  928. }
  929. func (x *MessageDetailResp) GetCreatetime() string {
  930. if x != nil {
  931. return x.Createtime
  932. }
  933. return ""
  934. }
  935. func (x *MessageDetailResp) GetAppid() string {
  936. if x != nil {
  937. return x.Appid
  938. }
  939. return ""
  940. }
  941. type GetLastMessageReq struct {
  942. state protoimpl.MessageState
  943. sizeCache protoimpl.SizeCache
  944. unknownFields protoimpl.UnknownFields
  945. UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"` // 用户id
  946. MsgType int64 `protobuf:"varint,2,opt,name=msgType,proto3" json:"msgType,omitempty"` //分类 1:客服 2:系统通知 3:营销 4:用户会话
  947. Appid string `protobuf:"bytes,3,opt,name=appid,proto3" json:"appid,omitempty"` //应用标识
  948. }
  949. func (x *GetLastMessageReq) Reset() {
  950. *x = GetLastMessageReq{}
  951. if protoimpl.UnsafeEnabled {
  952. mi := &file_message_proto_msgTypes[14]
  953. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  954. ms.StoreMessageInfo(mi)
  955. }
  956. }
  957. func (x *GetLastMessageReq) String() string {
  958. return protoimpl.X.MessageStringOf(x)
  959. }
  960. func (*GetLastMessageReq) ProtoMessage() {}
  961. func (x *GetLastMessageReq) ProtoReflect() protoreflect.Message {
  962. mi := &file_message_proto_msgTypes[14]
  963. if protoimpl.UnsafeEnabled && x != nil {
  964. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  965. if ms.LoadMessageInfo() == nil {
  966. ms.StoreMessageInfo(mi)
  967. }
  968. return ms
  969. }
  970. return mi.MessageOf(x)
  971. }
  972. // Deprecated: Use GetLastMessageReq.ProtoReflect.Descriptor instead.
  973. func (*GetLastMessageReq) Descriptor() ([]byte, []int) {
  974. return file_message_proto_rawDescGZIP(), []int{14}
  975. }
  976. func (x *GetLastMessageReq) GetUserId() string {
  977. if x != nil {
  978. return x.UserId
  979. }
  980. return ""
  981. }
  982. func (x *GetLastMessageReq) GetMsgType() int64 {
  983. if x != nil {
  984. return x.MsgType
  985. }
  986. return 0
  987. }
  988. func (x *GetLastMessageReq) GetAppid() string {
  989. if x != nil {
  990. return x.Appid
  991. }
  992. return ""
  993. }
  994. type GetLastMessageRes struct {
  995. state protoimpl.MessageState
  996. sizeCache protoimpl.SizeCache
  997. unknownFields protoimpl.UnknownFields
  998. Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` //状态码
  999. Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` //响应消息
  1000. Data *Messages `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` //
  1001. }
  1002. func (x *GetLastMessageRes) Reset() {
  1003. *x = GetLastMessageRes{}
  1004. if protoimpl.UnsafeEnabled {
  1005. mi := &file_message_proto_msgTypes[15]
  1006. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1007. ms.StoreMessageInfo(mi)
  1008. }
  1009. }
  1010. func (x *GetLastMessageRes) String() string {
  1011. return protoimpl.X.MessageStringOf(x)
  1012. }
  1013. func (*GetLastMessageRes) ProtoMessage() {}
  1014. func (x *GetLastMessageRes) ProtoReflect() protoreflect.Message {
  1015. mi := &file_message_proto_msgTypes[15]
  1016. if protoimpl.UnsafeEnabled && x != nil {
  1017. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1018. if ms.LoadMessageInfo() == nil {
  1019. ms.StoreMessageInfo(mi)
  1020. }
  1021. return ms
  1022. }
  1023. return mi.MessageOf(x)
  1024. }
  1025. // Deprecated: Use GetLastMessageRes.ProtoReflect.Descriptor instead.
  1026. func (*GetLastMessageRes) Descriptor() ([]byte, []int) {
  1027. return file_message_proto_rawDescGZIP(), []int{15}
  1028. }
  1029. func (x *GetLastMessageRes) GetCode() int64 {
  1030. if x != nil {
  1031. return x.Code
  1032. }
  1033. return 0
  1034. }
  1035. func (x *GetLastMessageRes) GetMessage() string {
  1036. if x != nil {
  1037. return x.Message
  1038. }
  1039. return ""
  1040. }
  1041. func (x *GetLastMessageRes) GetData() *Messages {
  1042. if x != nil {
  1043. return x.Data
  1044. }
  1045. return nil
  1046. }
  1047. // 获取用户分类的的未读消息分类及数量 及分类下最新的消息
  1048. type GetUnreadClassCountReq struct {
  1049. state protoimpl.MessageState
  1050. sizeCache protoimpl.SizeCache
  1051. unknownFields protoimpl.UnknownFields
  1052. UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"` // 用户id
  1053. Appid string `protobuf:"bytes,2,opt,name=appid,proto3" json:"appid,omitempty"` //应用标识
  1054. }
  1055. func (x *GetUnreadClassCountReq) Reset() {
  1056. *x = GetUnreadClassCountReq{}
  1057. if protoimpl.UnsafeEnabled {
  1058. mi := &file_message_proto_msgTypes[16]
  1059. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1060. ms.StoreMessageInfo(mi)
  1061. }
  1062. }
  1063. func (x *GetUnreadClassCountReq) String() string {
  1064. return protoimpl.X.MessageStringOf(x)
  1065. }
  1066. func (*GetUnreadClassCountReq) ProtoMessage() {}
  1067. func (x *GetUnreadClassCountReq) ProtoReflect() protoreflect.Message {
  1068. mi := &file_message_proto_msgTypes[16]
  1069. if protoimpl.UnsafeEnabled && x != nil {
  1070. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1071. if ms.LoadMessageInfo() == nil {
  1072. ms.StoreMessageInfo(mi)
  1073. }
  1074. return ms
  1075. }
  1076. return mi.MessageOf(x)
  1077. }
  1078. // Deprecated: Use GetUnreadClassCountReq.ProtoReflect.Descriptor instead.
  1079. func (*GetUnreadClassCountReq) Descriptor() ([]byte, []int) {
  1080. return file_message_proto_rawDescGZIP(), []int{16}
  1081. }
  1082. func (x *GetUnreadClassCountReq) GetUserId() string {
  1083. if x != nil {
  1084. return x.UserId
  1085. }
  1086. return ""
  1087. }
  1088. func (x *GetUnreadClassCountReq) GetAppid() string {
  1089. if x != nil {
  1090. return x.Appid
  1091. }
  1092. return ""
  1093. }
  1094. type GetUnreadClassCountRes struct {
  1095. state protoimpl.MessageState
  1096. sizeCache protoimpl.SizeCache
  1097. unknownFields protoimpl.UnknownFields
  1098. Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` //状态码
  1099. Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` //响应消息
  1100. Data []*ResCount `protobuf:"bytes,3,rep,name=data,proto3" json:"data,omitempty"` //
  1101. Info []*Messages `protobuf:"bytes,4,rep,name=info,proto3" json:"info,omitempty"` // 每个类型最新消息列表
  1102. }
  1103. func (x *GetUnreadClassCountRes) Reset() {
  1104. *x = GetUnreadClassCountRes{}
  1105. if protoimpl.UnsafeEnabled {
  1106. mi := &file_message_proto_msgTypes[17]
  1107. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1108. ms.StoreMessageInfo(mi)
  1109. }
  1110. }
  1111. func (x *GetUnreadClassCountRes) String() string {
  1112. return protoimpl.X.MessageStringOf(x)
  1113. }
  1114. func (*GetUnreadClassCountRes) ProtoMessage() {}
  1115. func (x *GetUnreadClassCountRes) ProtoReflect() protoreflect.Message {
  1116. mi := &file_message_proto_msgTypes[17]
  1117. if protoimpl.UnsafeEnabled && x != nil {
  1118. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1119. if ms.LoadMessageInfo() == nil {
  1120. ms.StoreMessageInfo(mi)
  1121. }
  1122. return ms
  1123. }
  1124. return mi.MessageOf(x)
  1125. }
  1126. // Deprecated: Use GetUnreadClassCountRes.ProtoReflect.Descriptor instead.
  1127. func (*GetUnreadClassCountRes) Descriptor() ([]byte, []int) {
  1128. return file_message_proto_rawDescGZIP(), []int{17}
  1129. }
  1130. func (x *GetUnreadClassCountRes) GetCode() int64 {
  1131. if x != nil {
  1132. return x.Code
  1133. }
  1134. return 0
  1135. }
  1136. func (x *GetUnreadClassCountRes) GetMessage() string {
  1137. if x != nil {
  1138. return x.Message
  1139. }
  1140. return ""
  1141. }
  1142. func (x *GetUnreadClassCountRes) GetData() []*ResCount {
  1143. if x != nil {
  1144. return x.Data
  1145. }
  1146. return nil
  1147. }
  1148. func (x *GetUnreadClassCountRes) GetInfo() []*Messages {
  1149. if x != nil {
  1150. return x.Info
  1151. }
  1152. return nil
  1153. }
  1154. var File_message_proto protoreflect.FileDescriptor
  1155. var file_message_proto_rawDesc = []byte{
  1156. 0x0a, 0x0d, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
  1157. 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0xa0, 0x02, 0x0a, 0x0e, 0x53, 0x65, 0x6e,
  1158. 0x64, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x24, 0x0a, 0x0d, 0x72,
  1159. 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01,
  1160. 0x28, 0x09, 0x52, 0x0d, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x55, 0x73, 0x65, 0x72, 0x49,
  1161. 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x4e, 0x61, 0x6d, 0x65,
  1162. 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x4e,
  1163. 0x61, 0x6d, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x73, 0x65, 0x6e, 0x64, 0x55, 0x73, 0x65, 0x72, 0x49,
  1164. 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x65, 0x6e, 0x64, 0x55, 0x73, 0x65,
  1165. 0x72, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x65, 0x6e, 0x64, 0x4e, 0x61, 0x6d, 0x65, 0x18,
  1166. 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x73, 0x65, 0x6e, 0x64, 0x4e, 0x61, 0x6d, 0x65, 0x12,
  1167. 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05,
  1168. 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74,
  1169. 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x12,
  1170. 0x18, 0x0a, 0x07, 0x6d, 0x73, 0x67, 0x54, 0x79, 0x70, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03,
  1171. 0x52, 0x07, 0x6d, 0x73, 0x67, 0x54, 0x79, 0x70, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6c, 0x69, 0x6e,
  1172. 0x6b, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6c, 0x69, 0x6e, 0x6b, 0x12, 0x16, 0x0a,
  1173. 0x06, 0x63, 0x69, 0x74, 0x65, 0x49, 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x63,
  1174. 0x69, 0x74, 0x65, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x18, 0x0a,
  1175. 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x22, 0x5f, 0x0a, 0x17, 0x43,
  1176. 0x68, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x65, 0x61, 0x64, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52,
  1177. 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01,
  1178. 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1e, 0x0a, 0x0a, 0x72, 0x65, 0x61, 0x64, 0x53, 0x74,
  1179. 0x61, 0x74, 0x75, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x72, 0x65, 0x61, 0x64,
  1180. 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x18,
  1181. 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x22, 0x3a, 0x0a, 0x08,
  1182. 0x52, 0x65, 0x73, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x73, 0x67, 0x54,
  1183. 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x6d, 0x73, 0x67, 0x54, 0x79,
  1184. 0x70, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28,
  1185. 0x03, 0x52, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x42, 0x0a, 0x1a, 0x44, 0x65, 0x6c, 0x65,
  1186. 0x74, 0x65, 0x53, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52,
  1187. 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01,
  1188. 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x18,
  1189. 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x22, 0x44, 0x0a, 0x1c,
  1190. 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x70, 0x6c, 0x65, 0x4d, 0x65,
  1191. 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02,
  1192. 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05,
  1193. 0x61, 0x70, 0x70, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x70, 0x70,
  1194. 0x69, 0x64, 0x22, 0x45, 0x0a, 0x15, 0x47, 0x65, 0x74, 0x55, 0x6e, 0x72, 0x65, 0x61, 0x64, 0x43,
  1195. 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x75,
  1196. 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65,
  1197. 0x72, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01,
  1198. 0x28, 0x09, 0x52, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x22, 0x38, 0x0a, 0x08, 0x52, 0x65, 0x73,
  1199. 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20,
  1200. 0x01, 0x28, 0x03, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73,
  1201. 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73,
  1202. 0x61, 0x67, 0x65, 0x22, 0x5c, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x55, 0x6e, 0x72, 0x65, 0x61, 0x64,
  1203. 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a,
  1204. 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x63, 0x6f, 0x64,
  1205. 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01,
  1206. 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x63,
  1207. 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x63, 0x6f, 0x75, 0x6e,
  1208. 0x74, 0x22, 0xc6, 0x01, 0x0a, 0x0e, 0x46, 0x69, 0x6e, 0x64, 0x55, 0x73, 0x65, 0x72, 0x4d, 0x73,
  1209. 0x67, 0x52, 0x65, 0x71, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01,
  1210. 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x24, 0x0a, 0x0d,
  1211. 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x02, 0x20,
  1212. 0x01, 0x28, 0x09, 0x52, 0x0d, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x55, 0x73, 0x65, 0x72,
  1213. 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28,
  1214. 0x09, 0x52, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x66, 0x66, 0x53,
  1215. 0x65, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x6f, 0x66, 0x66, 0x53, 0x65, 0x74,
  1216. 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x18, 0x05, 0x20, 0x01,
  1217. 0x28, 0x03, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x18, 0x0a, 0x07,
  1218. 0x6d, 0x73, 0x67, 0x54, 0x79, 0x70, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x6d,
  1219. 0x73, 0x67, 0x54, 0x79, 0x70, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x72, 0x65, 0x61, 0x64, 0x18, 0x07,
  1220. 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x72, 0x65, 0x61, 0x64, 0x22, 0xd2, 0x02, 0x0a, 0x08, 0x4d,
  1221. 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x12, 0x24, 0x0a, 0x0d, 0x72, 0x65, 0x63, 0x65, 0x69,
  1222. 0x76, 0x65, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d,
  1223. 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x20, 0x0a,
  1224. 0x0b, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01,
  1225. 0x28, 0x09, 0x52, 0x0b, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12,
  1226. 0x1e, 0x0a, 0x0a, 0x73, 0x65, 0x6e, 0x64, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x03, 0x20,
  1227. 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x65, 0x6e, 0x64, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12,
  1228. 0x1a, 0x0a, 0x08, 0x73, 0x65, 0x6e, 0x64, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28,
  1229. 0x09, 0x52, 0x08, 0x73, 0x65, 0x6e, 0x64, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x74,
  1230. 0x69, 0x74, 0x6c, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c,
  1231. 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x18, 0x06, 0x20, 0x01,
  1232. 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x6d,
  1233. 0x73, 0x67, 0x54, 0x79, 0x70, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x6d, 0x73,
  1234. 0x67, 0x54, 0x79, 0x70, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6c, 0x69, 0x6e, 0x6b, 0x18, 0x08, 0x20,
  1235. 0x01, 0x28, 0x09, 0x52, 0x04, 0x6c, 0x69, 0x6e, 0x6b, 0x12, 0x16, 0x0a, 0x06, 0x63, 0x69, 0x74,
  1236. 0x65, 0x49, 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x63, 0x69, 0x74, 0x65, 0x49,
  1237. 0x64, 0x12, 0x16, 0x0a, 0x06, 0x69, 0x73, 0x52, 0x65, 0x61, 0x64, 0x18, 0x0a, 0x20, 0x01, 0x28,
  1238. 0x03, 0x52, 0x06, 0x69, 0x73, 0x52, 0x65, 0x61, 0x64, 0x12, 0x1e, 0x0a, 0x0a, 0x63, 0x72, 0x65,
  1239. 0x61, 0x74, 0x65, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63,
  1240. 0x72, 0x65, 0x61, 0x74, 0x65, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70,
  1241. 0x69, 0x64, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x22,
  1242. 0x7b, 0x0a, 0x0e, 0x46, 0x69, 0x6e, 0x64, 0x55, 0x73, 0x65, 0x72, 0x4d, 0x73, 0x67, 0x52, 0x65,
  1243. 0x73, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52,
  1244. 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
  1245. 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12,
  1246. 0x25, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x11, 0x2e,
  1247. 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73,
  1248. 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18,
  1249. 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x60, 0x0a, 0x16,
  1250. 0x47, 0x65, 0x74, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x55, 0x6e, 0x72, 0x65, 0x61, 0x64, 0x43, 0x6f,
  1251. 0x75, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64,
  1252. 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x18,
  1253. 0x0a, 0x07, 0x6d, 0x73, 0x67, 0x54, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52,
  1254. 0x07, 0x6d, 0x73, 0x67, 0x54, 0x79, 0x70, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70, 0x69,
  1255. 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x22, 0x22,
  1256. 0x0a, 0x10, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x52,
  1257. 0x65, 0x71, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02,
  1258. 0x69, 0x64, 0x22, 0xeb, 0x02, 0x0a, 0x11, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x44, 0x65,
  1259. 0x74, 0x61, 0x69, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01,
  1260. 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x24, 0x0a, 0x0d, 0x72, 0x65, 0x63, 0x65,
  1261. 0x69, 0x76, 0x65, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,
  1262. 0x0d, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x20,
  1263. 0x0a, 0x0b, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20,
  1264. 0x01, 0x28, 0x09, 0x52, 0x0b, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x4e, 0x61, 0x6d, 0x65,
  1265. 0x12, 0x1e, 0x0a, 0x0a, 0x73, 0x65, 0x6e, 0x64, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x04,
  1266. 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x65, 0x6e, 0x64, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64,
  1267. 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x65, 0x6e, 0x64, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01,
  1268. 0x28, 0x09, 0x52, 0x08, 0x73, 0x65, 0x6e, 0x64, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05,
  1269. 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x69, 0x74,
  1270. 0x6c, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x18, 0x07, 0x20,
  1271. 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x12, 0x18, 0x0a, 0x07,
  1272. 0x6d, 0x73, 0x67, 0x54, 0x79, 0x70, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x6d,
  1273. 0x73, 0x67, 0x54, 0x79, 0x70, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6c, 0x69, 0x6e, 0x6b, 0x18, 0x09,
  1274. 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6c, 0x69, 0x6e, 0x6b, 0x12, 0x16, 0x0a, 0x06, 0x63, 0x69,
  1275. 0x74, 0x65, 0x49, 0x64, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x63, 0x69, 0x74, 0x65,
  1276. 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x69, 0x73, 0x52, 0x65, 0x61, 0x64, 0x18, 0x0b, 0x20, 0x01,
  1277. 0x28, 0x03, 0x52, 0x06, 0x69, 0x73, 0x52, 0x65, 0x61, 0x64, 0x12, 0x1e, 0x0a, 0x0a, 0x63, 0x72,
  1278. 0x65, 0x61, 0x74, 0x65, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a,
  1279. 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70,
  1280. 0x70, 0x69, 0x64, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64,
  1281. 0x22, 0x5b, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x4c, 0x61, 0x73, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61,
  1282. 0x67, 0x65, 0x52, 0x65, 0x71, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18,
  1283. 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x18, 0x0a,
  1284. 0x07, 0x6d, 0x73, 0x67, 0x54, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07,
  1285. 0x6d, 0x73, 0x67, 0x54, 0x79, 0x70, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64,
  1286. 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x22, 0x68, 0x0a,
  1287. 0x11, 0x47, 0x65, 0x74, 0x4c, 0x61, 0x73, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52,
  1288. 0x65, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03,
  1289. 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67,
  1290. 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
  1291. 0x12, 0x25, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11,
  1292. 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
  1293. 0x73, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x46, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x55, 0x6e,
  1294. 0x72, 0x65, 0x61, 0x64, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65,
  1295. 0x71, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
  1296. 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70,
  1297. 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x22,
  1298. 0x94, 0x01, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x55, 0x6e, 0x72, 0x65, 0x61, 0x64, 0x43, 0x6c, 0x61,
  1299. 0x73, 0x73, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f,
  1300. 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x18,
  1301. 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,
  1302. 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x25, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61,
  1303. 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
  1304. 0x2e, 0x52, 0x65, 0x73, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12,
  1305. 0x25, 0x0a, 0x04, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x11, 0x2e,
  1306. 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73,
  1307. 0x52, 0x04, 0x69, 0x6e, 0x66, 0x6f, 0x32, 0x8b, 0x06, 0x0a, 0x07, 0x4d, 0x65, 0x73, 0x73, 0x61,
  1308. 0x67, 0x65, 0x12, 0x47, 0x0a, 0x10, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x65, 0x61, 0x64,
  1309. 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x20, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
  1310. 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x65, 0x61, 0x64, 0x53, 0x74, 0x61, 0x74, 0x75,
  1311. 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x11, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61,
  1312. 0x67, 0x65, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x39, 0x0a, 0x0b, 0x53,
  1313. 0x65, 0x6e, 0x64, 0x55, 0x73, 0x65, 0x72, 0x4d, 0x73, 0x67, 0x12, 0x17, 0x2e, 0x6d, 0x65, 0x73,
  1314. 0x73, 0x61, 0x67, 0x65, 0x2e, 0x53, 0x65, 0x6e, 0x64, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x71, 0x75,
  1315. 0x65, 0x73, 0x74, 0x1a, 0x11, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x52, 0x65,
  1316. 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4d, 0x0a, 0x13, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65,
  1317. 0x53, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x23, 0x2e,
  1318. 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53, 0x69,
  1319. 0x6e, 0x67, 0x6c, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65,
  1320. 0x73, 0x74, 0x1a, 0x11, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x52, 0x65, 0x73,
  1321. 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x51, 0x0a, 0x15, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4d,
  1322. 0x75, 0x6c, 0x74, 0x69, 0x70, 0x6c, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x25,
  1323. 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4d,
  1324. 0x75, 0x6c, 0x74, 0x69, 0x70, 0x6c, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65,
  1325. 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x11, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e,
  1326. 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x51, 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x55,
  1327. 0x6e, 0x72, 0x65, 0x61, 0x64, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x1e, 0x2e, 0x6d, 0x65, 0x73,
  1328. 0x73, 0x61, 0x67, 0x65, 0x2e, 0x47, 0x65, 0x74, 0x55, 0x6e, 0x72, 0x65, 0x61, 0x64, 0x43, 0x6f,
  1329. 0x75, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x6d, 0x65, 0x73,
  1330. 0x73, 0x61, 0x67, 0x65, 0x2e, 0x47, 0x65, 0x74, 0x55, 0x6e, 0x72, 0x65, 0x61, 0x64, 0x43, 0x6f,
  1331. 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3f, 0x0a, 0x0b, 0x46,
  1332. 0x69, 0x6e, 0x64, 0x55, 0x73, 0x65, 0x72, 0x4d, 0x73, 0x67, 0x12, 0x17, 0x2e, 0x6d, 0x65, 0x73,
  1333. 0x73, 0x61, 0x67, 0x65, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x55, 0x73, 0x65, 0x72, 0x4d, 0x73, 0x67,
  1334. 0x52, 0x65, 0x71, 0x1a, 0x17, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x46, 0x69,
  1335. 0x6e, 0x64, 0x55, 0x73, 0x65, 0x72, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x73, 0x12, 0x57, 0x0a, 0x13,
  1336. 0x47, 0x65, 0x74, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x55, 0x6e, 0x72, 0x65, 0x61, 0x64, 0x43, 0x6f,
  1337. 0x75, 0x6e, 0x74, 0x12, 0x1f, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x47, 0x65,
  1338. 0x74, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x55, 0x6e, 0x72, 0x65, 0x61, 0x64, 0x43, 0x6f, 0x75, 0x6e,
  1339. 0x74, 0x52, 0x65, 0x71, 0x1a, 0x1f, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x47,
  1340. 0x65, 0x74, 0x55, 0x6e, 0x72, 0x65, 0x61, 0x64, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73,
  1341. 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x48, 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x4c, 0x61, 0x73, 0x74,
  1342. 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x1a, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67,
  1343. 0x65, 0x2e, 0x47, 0x65, 0x74, 0x4c, 0x61, 0x73, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
  1344. 0x52, 0x65, 0x71, 0x1a, 0x1a, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x47, 0x65,
  1345. 0x74, 0x4c, 0x61, 0x73, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x12,
  1346. 0x4a, 0x0a, 0x11, 0x46, 0x69, 0x6e, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x44, 0x65,
  1347. 0x74, 0x61, 0x69, 0x6c, 0x12, 0x19, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x4d,
  1348. 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x52, 0x65, 0x71, 0x1a,
  1349. 0x1a, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67,
  1350. 0x65, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x12, 0x57, 0x0a, 0x13, 0x47,
  1351. 0x65, 0x74, 0x55, 0x6e, 0x72, 0x65, 0x61, 0x64, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x43, 0x6f, 0x75,
  1352. 0x6e, 0x74, 0x12, 0x1f, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x47, 0x65, 0x74,
  1353. 0x55, 0x6e, 0x72, 0x65, 0x61, 0x64, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x43, 0x6f, 0x75, 0x6e, 0x74,
  1354. 0x52, 0x65, 0x71, 0x1a, 0x1f, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x47, 0x65,
  1355. 0x74, 0x55, 0x6e, 0x72, 0x65, 0x61, 0x64, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x43, 0x6f, 0x75, 0x6e,
  1356. 0x74, 0x52, 0x65, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  1357. }
  1358. var (
  1359. file_message_proto_rawDescOnce sync.Once
  1360. file_message_proto_rawDescData = file_message_proto_rawDesc
  1361. )
  1362. func file_message_proto_rawDescGZIP() []byte {
  1363. file_message_proto_rawDescOnce.Do(func() {
  1364. file_message_proto_rawDescData = protoimpl.X.CompressGZIP(file_message_proto_rawDescData)
  1365. })
  1366. return file_message_proto_rawDescData
  1367. }
  1368. var file_message_proto_msgTypes = make([]protoimpl.MessageInfo, 18)
  1369. var file_message_proto_goTypes = []interface{}{
  1370. (*SendMsgRequest)(nil), // 0: message.SendMsgRequest
  1371. (*ChangeReadStatusRequest)(nil), // 1: message.ChangeReadStatusRequest
  1372. (*ResCount)(nil), // 2: message.ResCount
  1373. (*DeleteSingleMessageRequest)(nil), // 3: message.DeleteSingleMessageRequest
  1374. (*DeleteMultipleMessageRequest)(nil), // 4: message.DeleteMultipleMessageRequest
  1375. (*GetUnreadCountRequest)(nil), // 5: message.GetUnreadCountRequest
  1376. (*Response)(nil), // 6: message.Response
  1377. (*GetUnreadCountResponse)(nil), // 7: message.GetUnreadCountResponse
  1378. (*FindUserMsgReq)(nil), // 8: message.FindUserMsgReq
  1379. (*Messages)(nil), // 9: message.Messages
  1380. (*FindUserMsgRes)(nil), // 10: message.FindUserMsgRes
  1381. (*GetClassUnreadCountReq)(nil), // 11: message.GetClassUnreadCountReq
  1382. (*MessageDetailReq)(nil), // 12: message.MessageDetailReq
  1383. (*MessageDetailResp)(nil), // 13: message.MessageDetailResp
  1384. (*GetLastMessageReq)(nil), // 14: message.GetLastMessageReq
  1385. (*GetLastMessageRes)(nil), // 15: message.GetLastMessageRes
  1386. (*GetUnreadClassCountReq)(nil), // 16: message.GetUnreadClassCountReq
  1387. (*GetUnreadClassCountRes)(nil), // 17: message.GetUnreadClassCountRes
  1388. }
  1389. var file_message_proto_depIdxs = []int32{
  1390. 9, // 0: message.FindUserMsgRes.data:type_name -> message.Messages
  1391. 9, // 1: message.GetLastMessageRes.data:type_name -> message.Messages
  1392. 2, // 2: message.GetUnreadClassCountRes.data:type_name -> message.ResCount
  1393. 9, // 3: message.GetUnreadClassCountRes.info:type_name -> message.Messages
  1394. 1, // 4: message.Message.ChangeReadStatus:input_type -> message.ChangeReadStatusRequest
  1395. 0, // 5: message.Message.SendUserMsg:input_type -> message.SendMsgRequest
  1396. 3, // 6: message.Message.DeleteSingleMessage:input_type -> message.DeleteSingleMessageRequest
  1397. 4, // 7: message.Message.DeleteMultipleMessage:input_type -> message.DeleteMultipleMessageRequest
  1398. 5, // 8: message.Message.GetUnreadCount:input_type -> message.GetUnreadCountRequest
  1399. 8, // 9: message.Message.FindUserMsg:input_type -> message.FindUserMsgReq
  1400. 11, // 10: message.Message.GetClassUnreadCount:input_type -> message.GetClassUnreadCountReq
  1401. 14, // 11: message.Message.GetLastMessage:input_type -> message.GetLastMessageReq
  1402. 12, // 12: message.Message.FindMessageDetail:input_type -> message.MessageDetailReq
  1403. 16, // 13: message.Message.GetUnreadClassCount:input_type -> message.GetUnreadClassCountReq
  1404. 6, // 14: message.Message.ChangeReadStatus:output_type -> message.Response
  1405. 6, // 15: message.Message.SendUserMsg:output_type -> message.Response
  1406. 6, // 16: message.Message.DeleteSingleMessage:output_type -> message.Response
  1407. 6, // 17: message.Message.DeleteMultipleMessage:output_type -> message.Response
  1408. 7, // 18: message.Message.GetUnreadCount:output_type -> message.GetUnreadCountResponse
  1409. 10, // 19: message.Message.FindUserMsg:output_type -> message.FindUserMsgRes
  1410. 7, // 20: message.Message.GetClassUnreadCount:output_type -> message.GetUnreadCountResponse
  1411. 15, // 21: message.Message.GetLastMessage:output_type -> message.GetLastMessageRes
  1412. 13, // 22: message.Message.FindMessageDetail:output_type -> message.MessageDetailResp
  1413. 17, // 23: message.Message.GetUnreadClassCount:output_type -> message.GetUnreadClassCountRes
  1414. 14, // [14:24] is the sub-list for method output_type
  1415. 4, // [4:14] is the sub-list for method input_type
  1416. 4, // [4:4] is the sub-list for extension type_name
  1417. 4, // [4:4] is the sub-list for extension extendee
  1418. 0, // [0:4] is the sub-list for field type_name
  1419. }
  1420. func init() { file_message_proto_init() }
  1421. func file_message_proto_init() {
  1422. if File_message_proto != nil {
  1423. return
  1424. }
  1425. if !protoimpl.UnsafeEnabled {
  1426. file_message_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  1427. switch v := v.(*SendMsgRequest); i {
  1428. case 0:
  1429. return &v.state
  1430. case 1:
  1431. return &v.sizeCache
  1432. case 2:
  1433. return &v.unknownFields
  1434. default:
  1435. return nil
  1436. }
  1437. }
  1438. file_message_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  1439. switch v := v.(*ChangeReadStatusRequest); i {
  1440. case 0:
  1441. return &v.state
  1442. case 1:
  1443. return &v.sizeCache
  1444. case 2:
  1445. return &v.unknownFields
  1446. default:
  1447. return nil
  1448. }
  1449. }
  1450. file_message_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  1451. switch v := v.(*ResCount); i {
  1452. case 0:
  1453. return &v.state
  1454. case 1:
  1455. return &v.sizeCache
  1456. case 2:
  1457. return &v.unknownFields
  1458. default:
  1459. return nil
  1460. }
  1461. }
  1462. file_message_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
  1463. switch v := v.(*DeleteSingleMessageRequest); i {
  1464. case 0:
  1465. return &v.state
  1466. case 1:
  1467. return &v.sizeCache
  1468. case 2:
  1469. return &v.unknownFields
  1470. default:
  1471. return nil
  1472. }
  1473. }
  1474. file_message_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
  1475. switch v := v.(*DeleteMultipleMessageRequest); i {
  1476. case 0:
  1477. return &v.state
  1478. case 1:
  1479. return &v.sizeCache
  1480. case 2:
  1481. return &v.unknownFields
  1482. default:
  1483. return nil
  1484. }
  1485. }
  1486. file_message_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
  1487. switch v := v.(*GetUnreadCountRequest); i {
  1488. case 0:
  1489. return &v.state
  1490. case 1:
  1491. return &v.sizeCache
  1492. case 2:
  1493. return &v.unknownFields
  1494. default:
  1495. return nil
  1496. }
  1497. }
  1498. file_message_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
  1499. switch v := v.(*Response); i {
  1500. case 0:
  1501. return &v.state
  1502. case 1:
  1503. return &v.sizeCache
  1504. case 2:
  1505. return &v.unknownFields
  1506. default:
  1507. return nil
  1508. }
  1509. }
  1510. file_message_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
  1511. switch v := v.(*GetUnreadCountResponse); i {
  1512. case 0:
  1513. return &v.state
  1514. case 1:
  1515. return &v.sizeCache
  1516. case 2:
  1517. return &v.unknownFields
  1518. default:
  1519. return nil
  1520. }
  1521. }
  1522. file_message_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
  1523. switch v := v.(*FindUserMsgReq); i {
  1524. case 0:
  1525. return &v.state
  1526. case 1:
  1527. return &v.sizeCache
  1528. case 2:
  1529. return &v.unknownFields
  1530. default:
  1531. return nil
  1532. }
  1533. }
  1534. file_message_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
  1535. switch v := v.(*Messages); i {
  1536. case 0:
  1537. return &v.state
  1538. case 1:
  1539. return &v.sizeCache
  1540. case 2:
  1541. return &v.unknownFields
  1542. default:
  1543. return nil
  1544. }
  1545. }
  1546. file_message_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
  1547. switch v := v.(*FindUserMsgRes); i {
  1548. case 0:
  1549. return &v.state
  1550. case 1:
  1551. return &v.sizeCache
  1552. case 2:
  1553. return &v.unknownFields
  1554. default:
  1555. return nil
  1556. }
  1557. }
  1558. file_message_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
  1559. switch v := v.(*GetClassUnreadCountReq); i {
  1560. case 0:
  1561. return &v.state
  1562. case 1:
  1563. return &v.sizeCache
  1564. case 2:
  1565. return &v.unknownFields
  1566. default:
  1567. return nil
  1568. }
  1569. }
  1570. file_message_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} {
  1571. switch v := v.(*MessageDetailReq); i {
  1572. case 0:
  1573. return &v.state
  1574. case 1:
  1575. return &v.sizeCache
  1576. case 2:
  1577. return &v.unknownFields
  1578. default:
  1579. return nil
  1580. }
  1581. }
  1582. file_message_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} {
  1583. switch v := v.(*MessageDetailResp); i {
  1584. case 0:
  1585. return &v.state
  1586. case 1:
  1587. return &v.sizeCache
  1588. case 2:
  1589. return &v.unknownFields
  1590. default:
  1591. return nil
  1592. }
  1593. }
  1594. file_message_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} {
  1595. switch v := v.(*GetLastMessageReq); i {
  1596. case 0:
  1597. return &v.state
  1598. case 1:
  1599. return &v.sizeCache
  1600. case 2:
  1601. return &v.unknownFields
  1602. default:
  1603. return nil
  1604. }
  1605. }
  1606. file_message_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} {
  1607. switch v := v.(*GetLastMessageRes); i {
  1608. case 0:
  1609. return &v.state
  1610. case 1:
  1611. return &v.sizeCache
  1612. case 2:
  1613. return &v.unknownFields
  1614. default:
  1615. return nil
  1616. }
  1617. }
  1618. file_message_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} {
  1619. switch v := v.(*GetUnreadClassCountReq); i {
  1620. case 0:
  1621. return &v.state
  1622. case 1:
  1623. return &v.sizeCache
  1624. case 2:
  1625. return &v.unknownFields
  1626. default:
  1627. return nil
  1628. }
  1629. }
  1630. file_message_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} {
  1631. switch v := v.(*GetUnreadClassCountRes); i {
  1632. case 0:
  1633. return &v.state
  1634. case 1:
  1635. return &v.sizeCache
  1636. case 2:
  1637. return &v.unknownFields
  1638. default:
  1639. return nil
  1640. }
  1641. }
  1642. }
  1643. type x struct{}
  1644. out := protoimpl.TypeBuilder{
  1645. File: protoimpl.DescBuilder{
  1646. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  1647. RawDescriptor: file_message_proto_rawDesc,
  1648. NumEnums: 0,
  1649. NumMessages: 18,
  1650. NumExtensions: 0,
  1651. NumServices: 1,
  1652. },
  1653. GoTypes: file_message_proto_goTypes,
  1654. DependencyIndexes: file_message_proto_depIdxs,
  1655. MessageInfos: file_message_proto_msgTypes,
  1656. }.Build()
  1657. File_message_proto = out.File
  1658. file_message_proto_rawDesc = nil
  1659. file_message_proto_goTypes = nil
  1660. file_message_proto_depIdxs = nil
  1661. }
  1662. // Reference imports to suppress errors if they are not otherwise used.
  1663. var _ context.Context
  1664. var _ grpc.ClientConnInterface
  1665. // This is a compile-time assertion to ensure that this generated file
  1666. // is compatible with the grpc package it is being compiled against.
  1667. const _ = grpc.SupportPackageIsVersion6
  1668. // MessageClient is the client API for Message service.
  1669. //
  1670. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  1671. type MessageClient interface {
  1672. // 修改消息阅读状态
  1673. ChangeReadStatus(ctx context.Context, in *ChangeReadStatusRequest, opts ...grpc.CallOption) (*Response, error)
  1674. //指定用户发消息
  1675. SendUserMsg(ctx context.Context, in *SendMsgRequest, opts ...grpc.CallOption) (*Response, error)
  1676. // 删除单一消息
  1677. DeleteSingleMessage(ctx context.Context, in *DeleteSingleMessageRequest, opts ...grpc.CallOption) (*Response, error)
  1678. // 删除多条消息
  1679. DeleteMultipleMessage(ctx context.Context, in *DeleteMultipleMessageRequest, opts ...grpc.CallOption) (*Response, error)
  1680. // 查询指定用户未读消息合计
  1681. GetUnreadCount(ctx context.Context, in *GetUnreadCountRequest, opts ...grpc.CallOption) (*GetUnreadCountResponse, error)
  1682. // 查询指定用户的历史消息记录
  1683. FindUserMsg(ctx context.Context, in *FindUserMsgReq, opts ...grpc.CallOption) (*FindUserMsgRes, error)
  1684. // 查询指定用户指定分类的未读消息合计
  1685. GetClassUnreadCount(ctx context.Context, in *GetClassUnreadCountReq, opts ...grpc.CallOption) (*GetUnreadCountResponse, error)
  1686. // 获取指定用户指定分类的最新一条未读消息
  1687. GetLastMessage(ctx context.Context, in *GetLastMessageReq, opts ...grpc.CallOption) (*GetLastMessageRes, error)
  1688. //查看详细详情
  1689. FindMessageDetail(ctx context.Context, in *MessageDetailReq, opts ...grpc.CallOption) (*MessageDetailResp, error)
  1690. // 获取指定用户的未读消息分类及数量 及分类的最新消息
  1691. GetUnreadClassCount(ctx context.Context, in *GetUnreadClassCountReq, opts ...grpc.CallOption) (*GetUnreadClassCountRes, error)
  1692. }
  1693. type messageClient struct {
  1694. cc grpc.ClientConnInterface
  1695. }
  1696. func NewMessageClient(cc grpc.ClientConnInterface) MessageClient {
  1697. return &messageClient{cc}
  1698. }
  1699. func (c *messageClient) ChangeReadStatus(ctx context.Context, in *ChangeReadStatusRequest, opts ...grpc.CallOption) (*Response, error) {
  1700. out := new(Response)
  1701. err := c.cc.Invoke(ctx, "/message.Message/ChangeReadStatus", in, out, opts...)
  1702. if err != nil {
  1703. return nil, err
  1704. }
  1705. return out, nil
  1706. }
  1707. func (c *messageClient) SendUserMsg(ctx context.Context, in *SendMsgRequest, opts ...grpc.CallOption) (*Response, error) {
  1708. out := new(Response)
  1709. err := c.cc.Invoke(ctx, "/message.Message/SendUserMsg", in, out, opts...)
  1710. if err != nil {
  1711. return nil, err
  1712. }
  1713. return out, nil
  1714. }
  1715. func (c *messageClient) DeleteSingleMessage(ctx context.Context, in *DeleteSingleMessageRequest, opts ...grpc.CallOption) (*Response, error) {
  1716. out := new(Response)
  1717. err := c.cc.Invoke(ctx, "/message.Message/DeleteSingleMessage", in, out, opts...)
  1718. if err != nil {
  1719. return nil, err
  1720. }
  1721. return out, nil
  1722. }
  1723. func (c *messageClient) DeleteMultipleMessage(ctx context.Context, in *DeleteMultipleMessageRequest, opts ...grpc.CallOption) (*Response, error) {
  1724. out := new(Response)
  1725. err := c.cc.Invoke(ctx, "/message.Message/DeleteMultipleMessage", in, out, opts...)
  1726. if err != nil {
  1727. return nil, err
  1728. }
  1729. return out, nil
  1730. }
  1731. func (c *messageClient) GetUnreadCount(ctx context.Context, in *GetUnreadCountRequest, opts ...grpc.CallOption) (*GetUnreadCountResponse, error) {
  1732. out := new(GetUnreadCountResponse)
  1733. err := c.cc.Invoke(ctx, "/message.Message/GetUnreadCount", in, out, opts...)
  1734. if err != nil {
  1735. return nil, err
  1736. }
  1737. return out, nil
  1738. }
  1739. func (c *messageClient) FindUserMsg(ctx context.Context, in *FindUserMsgReq, opts ...grpc.CallOption) (*FindUserMsgRes, error) {
  1740. out := new(FindUserMsgRes)
  1741. err := c.cc.Invoke(ctx, "/message.Message/FindUserMsg", in, out, opts...)
  1742. if err != nil {
  1743. return nil, err
  1744. }
  1745. return out, nil
  1746. }
  1747. func (c *messageClient) GetClassUnreadCount(ctx context.Context, in *GetClassUnreadCountReq, opts ...grpc.CallOption) (*GetUnreadCountResponse, error) {
  1748. out := new(GetUnreadCountResponse)
  1749. err := c.cc.Invoke(ctx, "/message.Message/GetClassUnreadCount", in, out, opts...)
  1750. if err != nil {
  1751. return nil, err
  1752. }
  1753. return out, nil
  1754. }
  1755. func (c *messageClient) GetLastMessage(ctx context.Context, in *GetLastMessageReq, opts ...grpc.CallOption) (*GetLastMessageRes, error) {
  1756. out := new(GetLastMessageRes)
  1757. err := c.cc.Invoke(ctx, "/message.Message/GetLastMessage", in, out, opts...)
  1758. if err != nil {
  1759. return nil, err
  1760. }
  1761. return out, nil
  1762. }
  1763. func (c *messageClient) FindMessageDetail(ctx context.Context, in *MessageDetailReq, opts ...grpc.CallOption) (*MessageDetailResp, error) {
  1764. out := new(MessageDetailResp)
  1765. err := c.cc.Invoke(ctx, "/message.Message/FindMessageDetail", in, out, opts...)
  1766. if err != nil {
  1767. return nil, err
  1768. }
  1769. return out, nil
  1770. }
  1771. func (c *messageClient) GetUnreadClassCount(ctx context.Context, in *GetUnreadClassCountReq, opts ...grpc.CallOption) (*GetUnreadClassCountRes, error) {
  1772. out := new(GetUnreadClassCountRes)
  1773. err := c.cc.Invoke(ctx, "/message.Message/GetUnreadClassCount", in, out, opts...)
  1774. if err != nil {
  1775. return nil, err
  1776. }
  1777. return out, nil
  1778. }
  1779. // MessageServer is the server API for Message service.
  1780. type MessageServer interface {
  1781. // 修改消息阅读状态
  1782. ChangeReadStatus(context.Context, *ChangeReadStatusRequest) (*Response, error)
  1783. //指定用户发消息
  1784. SendUserMsg(context.Context, *SendMsgRequest) (*Response, error)
  1785. // 删除单一消息
  1786. DeleteSingleMessage(context.Context, *DeleteSingleMessageRequest) (*Response, error)
  1787. // 删除多条消息
  1788. DeleteMultipleMessage(context.Context, *DeleteMultipleMessageRequest) (*Response, error)
  1789. // 查询指定用户未读消息合计
  1790. GetUnreadCount(context.Context, *GetUnreadCountRequest) (*GetUnreadCountResponse, error)
  1791. // 查询指定用户的历史消息记录
  1792. FindUserMsg(context.Context, *FindUserMsgReq) (*FindUserMsgRes, error)
  1793. // 查询指定用户指定分类的未读消息合计
  1794. GetClassUnreadCount(context.Context, *GetClassUnreadCountReq) (*GetUnreadCountResponse, error)
  1795. // 获取指定用户指定分类的最新一条未读消息
  1796. GetLastMessage(context.Context, *GetLastMessageReq) (*GetLastMessageRes, error)
  1797. //查看详细详情
  1798. FindMessageDetail(context.Context, *MessageDetailReq) (*MessageDetailResp, error)
  1799. // 获取指定用户的未读消息分类及数量 及分类的最新消息
  1800. GetUnreadClassCount(context.Context, *GetUnreadClassCountReq) (*GetUnreadClassCountRes, error)
  1801. }
  1802. // UnimplementedMessageServer can be embedded to have forward compatible implementations.
  1803. type UnimplementedMessageServer struct {
  1804. }
  1805. func (*UnimplementedMessageServer) ChangeReadStatus(context.Context, *ChangeReadStatusRequest) (*Response, error) {
  1806. return nil, status.Errorf(codes.Unimplemented, "method ChangeReadStatus not implemented")
  1807. }
  1808. func (*UnimplementedMessageServer) SendUserMsg(context.Context, *SendMsgRequest) (*Response, error) {
  1809. return nil, status.Errorf(codes.Unimplemented, "method SendUserMsg not implemented")
  1810. }
  1811. func (*UnimplementedMessageServer) DeleteSingleMessage(context.Context, *DeleteSingleMessageRequest) (*Response, error) {
  1812. return nil, status.Errorf(codes.Unimplemented, "method DeleteSingleMessage not implemented")
  1813. }
  1814. func (*UnimplementedMessageServer) DeleteMultipleMessage(context.Context, *DeleteMultipleMessageRequest) (*Response, error) {
  1815. return nil, status.Errorf(codes.Unimplemented, "method DeleteMultipleMessage not implemented")
  1816. }
  1817. func (*UnimplementedMessageServer) GetUnreadCount(context.Context, *GetUnreadCountRequest) (*GetUnreadCountResponse, error) {
  1818. return nil, status.Errorf(codes.Unimplemented, "method GetUnreadCount not implemented")
  1819. }
  1820. func (*UnimplementedMessageServer) FindUserMsg(context.Context, *FindUserMsgReq) (*FindUserMsgRes, error) {
  1821. return nil, status.Errorf(codes.Unimplemented, "method FindUserMsg not implemented")
  1822. }
  1823. func (*UnimplementedMessageServer) GetClassUnreadCount(context.Context, *GetClassUnreadCountReq) (*GetUnreadCountResponse, error) {
  1824. return nil, status.Errorf(codes.Unimplemented, "method GetClassUnreadCount not implemented")
  1825. }
  1826. func (*UnimplementedMessageServer) GetLastMessage(context.Context, *GetLastMessageReq) (*GetLastMessageRes, error) {
  1827. return nil, status.Errorf(codes.Unimplemented, "method GetLastMessage not implemented")
  1828. }
  1829. func (*UnimplementedMessageServer) FindMessageDetail(context.Context, *MessageDetailReq) (*MessageDetailResp, error) {
  1830. return nil, status.Errorf(codes.Unimplemented, "method FindMessageDetail not implemented")
  1831. }
  1832. func (*UnimplementedMessageServer) GetUnreadClassCount(context.Context, *GetUnreadClassCountReq) (*GetUnreadClassCountRes, error) {
  1833. return nil, status.Errorf(codes.Unimplemented, "method GetUnreadClassCount not implemented")
  1834. }
  1835. func RegisterMessageServer(s *grpc.Server, srv MessageServer) {
  1836. s.RegisterService(&_Message_serviceDesc, srv)
  1837. }
  1838. func _Message_ChangeReadStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1839. in := new(ChangeReadStatusRequest)
  1840. if err := dec(in); err != nil {
  1841. return nil, err
  1842. }
  1843. if interceptor == nil {
  1844. return srv.(MessageServer).ChangeReadStatus(ctx, in)
  1845. }
  1846. info := &grpc.UnaryServerInfo{
  1847. Server: srv,
  1848. FullMethod: "/message.Message/ChangeReadStatus",
  1849. }
  1850. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1851. return srv.(MessageServer).ChangeReadStatus(ctx, req.(*ChangeReadStatusRequest))
  1852. }
  1853. return interceptor(ctx, in, info, handler)
  1854. }
  1855. func _Message_SendUserMsg_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1856. in := new(SendMsgRequest)
  1857. if err := dec(in); err != nil {
  1858. return nil, err
  1859. }
  1860. if interceptor == nil {
  1861. return srv.(MessageServer).SendUserMsg(ctx, in)
  1862. }
  1863. info := &grpc.UnaryServerInfo{
  1864. Server: srv,
  1865. FullMethod: "/message.Message/SendUserMsg",
  1866. }
  1867. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1868. return srv.(MessageServer).SendUserMsg(ctx, req.(*SendMsgRequest))
  1869. }
  1870. return interceptor(ctx, in, info, handler)
  1871. }
  1872. func _Message_DeleteSingleMessage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1873. in := new(DeleteSingleMessageRequest)
  1874. if err := dec(in); err != nil {
  1875. return nil, err
  1876. }
  1877. if interceptor == nil {
  1878. return srv.(MessageServer).DeleteSingleMessage(ctx, in)
  1879. }
  1880. info := &grpc.UnaryServerInfo{
  1881. Server: srv,
  1882. FullMethod: "/message.Message/DeleteSingleMessage",
  1883. }
  1884. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1885. return srv.(MessageServer).DeleteSingleMessage(ctx, req.(*DeleteSingleMessageRequest))
  1886. }
  1887. return interceptor(ctx, in, info, handler)
  1888. }
  1889. func _Message_DeleteMultipleMessage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1890. in := new(DeleteMultipleMessageRequest)
  1891. if err := dec(in); err != nil {
  1892. return nil, err
  1893. }
  1894. if interceptor == nil {
  1895. return srv.(MessageServer).DeleteMultipleMessage(ctx, in)
  1896. }
  1897. info := &grpc.UnaryServerInfo{
  1898. Server: srv,
  1899. FullMethod: "/message.Message/DeleteMultipleMessage",
  1900. }
  1901. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1902. return srv.(MessageServer).DeleteMultipleMessage(ctx, req.(*DeleteMultipleMessageRequest))
  1903. }
  1904. return interceptor(ctx, in, info, handler)
  1905. }
  1906. func _Message_GetUnreadCount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1907. in := new(GetUnreadCountRequest)
  1908. if err := dec(in); err != nil {
  1909. return nil, err
  1910. }
  1911. if interceptor == nil {
  1912. return srv.(MessageServer).GetUnreadCount(ctx, in)
  1913. }
  1914. info := &grpc.UnaryServerInfo{
  1915. Server: srv,
  1916. FullMethod: "/message.Message/GetUnreadCount",
  1917. }
  1918. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1919. return srv.(MessageServer).GetUnreadCount(ctx, req.(*GetUnreadCountRequest))
  1920. }
  1921. return interceptor(ctx, in, info, handler)
  1922. }
  1923. func _Message_FindUserMsg_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1924. in := new(FindUserMsgReq)
  1925. if err := dec(in); err != nil {
  1926. return nil, err
  1927. }
  1928. if interceptor == nil {
  1929. return srv.(MessageServer).FindUserMsg(ctx, in)
  1930. }
  1931. info := &grpc.UnaryServerInfo{
  1932. Server: srv,
  1933. FullMethod: "/message.Message/FindUserMsg",
  1934. }
  1935. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1936. return srv.(MessageServer).FindUserMsg(ctx, req.(*FindUserMsgReq))
  1937. }
  1938. return interceptor(ctx, in, info, handler)
  1939. }
  1940. func _Message_GetClassUnreadCount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1941. in := new(GetClassUnreadCountReq)
  1942. if err := dec(in); err != nil {
  1943. return nil, err
  1944. }
  1945. if interceptor == nil {
  1946. return srv.(MessageServer).GetClassUnreadCount(ctx, in)
  1947. }
  1948. info := &grpc.UnaryServerInfo{
  1949. Server: srv,
  1950. FullMethod: "/message.Message/GetClassUnreadCount",
  1951. }
  1952. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1953. return srv.(MessageServer).GetClassUnreadCount(ctx, req.(*GetClassUnreadCountReq))
  1954. }
  1955. return interceptor(ctx, in, info, handler)
  1956. }
  1957. func _Message_GetLastMessage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1958. in := new(GetLastMessageReq)
  1959. if err := dec(in); err != nil {
  1960. return nil, err
  1961. }
  1962. if interceptor == nil {
  1963. return srv.(MessageServer).GetLastMessage(ctx, in)
  1964. }
  1965. info := &grpc.UnaryServerInfo{
  1966. Server: srv,
  1967. FullMethod: "/message.Message/GetLastMessage",
  1968. }
  1969. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1970. return srv.(MessageServer).GetLastMessage(ctx, req.(*GetLastMessageReq))
  1971. }
  1972. return interceptor(ctx, in, info, handler)
  1973. }
  1974. func _Message_FindMessageDetail_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1975. in := new(MessageDetailReq)
  1976. if err := dec(in); err != nil {
  1977. return nil, err
  1978. }
  1979. if interceptor == nil {
  1980. return srv.(MessageServer).FindMessageDetail(ctx, in)
  1981. }
  1982. info := &grpc.UnaryServerInfo{
  1983. Server: srv,
  1984. FullMethod: "/message.Message/FindMessageDetail",
  1985. }
  1986. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1987. return srv.(MessageServer).FindMessageDetail(ctx, req.(*MessageDetailReq))
  1988. }
  1989. return interceptor(ctx, in, info, handler)
  1990. }
  1991. func _Message_GetUnreadClassCount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1992. in := new(GetUnreadClassCountReq)
  1993. if err := dec(in); err != nil {
  1994. return nil, err
  1995. }
  1996. if interceptor == nil {
  1997. return srv.(MessageServer).GetUnreadClassCount(ctx, in)
  1998. }
  1999. info := &grpc.UnaryServerInfo{
  2000. Server: srv,
  2001. FullMethod: "/message.Message/GetUnreadClassCount",
  2002. }
  2003. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  2004. return srv.(MessageServer).GetUnreadClassCount(ctx, req.(*GetUnreadClassCountReq))
  2005. }
  2006. return interceptor(ctx, in, info, handler)
  2007. }
  2008. var _Message_serviceDesc = grpc.ServiceDesc{
  2009. ServiceName: "message.Message",
  2010. HandlerType: (*MessageServer)(nil),
  2011. Methods: []grpc.MethodDesc{
  2012. {
  2013. MethodName: "ChangeReadStatus",
  2014. Handler: _Message_ChangeReadStatus_Handler,
  2015. },
  2016. {
  2017. MethodName: "SendUserMsg",
  2018. Handler: _Message_SendUserMsg_Handler,
  2019. },
  2020. {
  2021. MethodName: "DeleteSingleMessage",
  2022. Handler: _Message_DeleteSingleMessage_Handler,
  2023. },
  2024. {
  2025. MethodName: "DeleteMultipleMessage",
  2026. Handler: _Message_DeleteMultipleMessage_Handler,
  2027. },
  2028. {
  2029. MethodName: "GetUnreadCount",
  2030. Handler: _Message_GetUnreadCount_Handler,
  2031. },
  2032. {
  2033. MethodName: "FindUserMsg",
  2034. Handler: _Message_FindUserMsg_Handler,
  2035. },
  2036. {
  2037. MethodName: "GetClassUnreadCount",
  2038. Handler: _Message_GetClassUnreadCount_Handler,
  2039. },
  2040. {
  2041. MethodName: "GetLastMessage",
  2042. Handler: _Message_GetLastMessage_Handler,
  2043. },
  2044. {
  2045. MethodName: "FindMessageDetail",
  2046. Handler: _Message_FindMessageDetail_Handler,
  2047. },
  2048. {
  2049. MethodName: "GetUnreadClassCount",
  2050. Handler: _Message_GetUnreadClassCount_Handler,
  2051. },
  2052. },
  2053. Streams: []grpc.StreamDesc{},
  2054. Metadata: "message.proto",
  2055. }