message.pb.go 90 KB

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