message.pb.go 62 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784
  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. // 删除单一消息
  183. type DeleteSingleMessageRequest struct {
  184. state protoimpl.MessageState
  185. sizeCache protoimpl.SizeCache
  186. unknownFields protoimpl.UnknownFields
  187. Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // 消息id
  188. Appid string `protobuf:"bytes,3,opt,name=appid,proto3" json:"appid,omitempty"` //应用标识
  189. }
  190. func (x *DeleteSingleMessageRequest) Reset() {
  191. *x = DeleteSingleMessageRequest{}
  192. if protoimpl.UnsafeEnabled {
  193. mi := &file_message_proto_msgTypes[2]
  194. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  195. ms.StoreMessageInfo(mi)
  196. }
  197. }
  198. func (x *DeleteSingleMessageRequest) String() string {
  199. return protoimpl.X.MessageStringOf(x)
  200. }
  201. func (*DeleteSingleMessageRequest) ProtoMessage() {}
  202. func (x *DeleteSingleMessageRequest) ProtoReflect() protoreflect.Message {
  203. mi := &file_message_proto_msgTypes[2]
  204. if protoimpl.UnsafeEnabled && x != nil {
  205. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  206. if ms.LoadMessageInfo() == nil {
  207. ms.StoreMessageInfo(mi)
  208. }
  209. return ms
  210. }
  211. return mi.MessageOf(x)
  212. }
  213. // Deprecated: Use DeleteSingleMessageRequest.ProtoReflect.Descriptor instead.
  214. func (*DeleteSingleMessageRequest) Descriptor() ([]byte, []int) {
  215. return file_message_proto_rawDescGZIP(), []int{2}
  216. }
  217. func (x *DeleteSingleMessageRequest) GetId() int64 {
  218. if x != nil {
  219. return x.Id
  220. }
  221. return 0
  222. }
  223. func (x *DeleteSingleMessageRequest) GetAppid() string {
  224. if x != nil {
  225. return x.Appid
  226. }
  227. return ""
  228. }
  229. // 批量删除消息
  230. type DeleteMultipleMessageRequest struct {
  231. state protoimpl.MessageState
  232. sizeCache protoimpl.SizeCache
  233. unknownFields protoimpl.UnknownFields
  234. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // 多条消息id, 逗号分隔
  235. Appid string `protobuf:"bytes,3,opt,name=appid,proto3" json:"appid,omitempty"` //应用标识
  236. }
  237. func (x *DeleteMultipleMessageRequest) Reset() {
  238. *x = DeleteMultipleMessageRequest{}
  239. if protoimpl.UnsafeEnabled {
  240. mi := &file_message_proto_msgTypes[3]
  241. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  242. ms.StoreMessageInfo(mi)
  243. }
  244. }
  245. func (x *DeleteMultipleMessageRequest) String() string {
  246. return protoimpl.X.MessageStringOf(x)
  247. }
  248. func (*DeleteMultipleMessageRequest) ProtoMessage() {}
  249. func (x *DeleteMultipleMessageRequest) ProtoReflect() protoreflect.Message {
  250. mi := &file_message_proto_msgTypes[3]
  251. if protoimpl.UnsafeEnabled && x != nil {
  252. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  253. if ms.LoadMessageInfo() == nil {
  254. ms.StoreMessageInfo(mi)
  255. }
  256. return ms
  257. }
  258. return mi.MessageOf(x)
  259. }
  260. // Deprecated: Use DeleteMultipleMessageRequest.ProtoReflect.Descriptor instead.
  261. func (*DeleteMultipleMessageRequest) Descriptor() ([]byte, []int) {
  262. return file_message_proto_rawDescGZIP(), []int{3}
  263. }
  264. func (x *DeleteMultipleMessageRequest) GetId() string {
  265. if x != nil {
  266. return x.Id
  267. }
  268. return ""
  269. }
  270. func (x *DeleteMultipleMessageRequest) GetAppid() string {
  271. if x != nil {
  272. return x.Appid
  273. }
  274. return ""
  275. }
  276. // 查询指定用户未读消息合计
  277. type GetUnreadCountRequest struct {
  278. state protoimpl.MessageState
  279. sizeCache protoimpl.SizeCache
  280. unknownFields protoimpl.UnknownFields
  281. UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"` // 用户id
  282. Appid string `protobuf:"bytes,2,opt,name=appid,proto3" json:"appid,omitempty"` //应用标识
  283. }
  284. func (x *GetUnreadCountRequest) Reset() {
  285. *x = GetUnreadCountRequest{}
  286. if protoimpl.UnsafeEnabled {
  287. mi := &file_message_proto_msgTypes[4]
  288. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  289. ms.StoreMessageInfo(mi)
  290. }
  291. }
  292. func (x *GetUnreadCountRequest) String() string {
  293. return protoimpl.X.MessageStringOf(x)
  294. }
  295. func (*GetUnreadCountRequest) ProtoMessage() {}
  296. func (x *GetUnreadCountRequest) ProtoReflect() protoreflect.Message {
  297. mi := &file_message_proto_msgTypes[4]
  298. if protoimpl.UnsafeEnabled && x != nil {
  299. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  300. if ms.LoadMessageInfo() == nil {
  301. ms.StoreMessageInfo(mi)
  302. }
  303. return ms
  304. }
  305. return mi.MessageOf(x)
  306. }
  307. // Deprecated: Use GetUnreadCountRequest.ProtoReflect.Descriptor instead.
  308. func (*GetUnreadCountRequest) Descriptor() ([]byte, []int) {
  309. return file_message_proto_rawDescGZIP(), []int{4}
  310. }
  311. func (x *GetUnreadCountRequest) GetUserId() string {
  312. if x != nil {
  313. return x.UserId
  314. }
  315. return ""
  316. }
  317. func (x *GetUnreadCountRequest) GetAppid() string {
  318. if x != nil {
  319. return x.Appid
  320. }
  321. return ""
  322. }
  323. type Response struct {
  324. state protoimpl.MessageState
  325. sizeCache protoimpl.SizeCache
  326. unknownFields protoimpl.UnknownFields
  327. Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` //状态码
  328. Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` //响应消息
  329. }
  330. func (x *Response) Reset() {
  331. *x = Response{}
  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 *Response) String() string {
  339. return protoimpl.X.MessageStringOf(x)
  340. }
  341. func (*Response) ProtoMessage() {}
  342. func (x *Response) 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 Response.ProtoReflect.Descriptor instead.
  354. func (*Response) Descriptor() ([]byte, []int) {
  355. return file_message_proto_rawDescGZIP(), []int{5}
  356. }
  357. func (x *Response) GetCode() int64 {
  358. if x != nil {
  359. return x.Code
  360. }
  361. return 0
  362. }
  363. func (x *Response) GetMessage() string {
  364. if x != nil {
  365. return x.Message
  366. }
  367. return ""
  368. }
  369. type GetUnreadCountResponse 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. Count int64 `protobuf:"varint,3,opt,name=count,proto3" json:"count,omitempty"` //
  376. }
  377. func (x *GetUnreadCountResponse) Reset() {
  378. *x = GetUnreadCountResponse{}
  379. if protoimpl.UnsafeEnabled {
  380. mi := &file_message_proto_msgTypes[6]
  381. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  382. ms.StoreMessageInfo(mi)
  383. }
  384. }
  385. func (x *GetUnreadCountResponse) String() string {
  386. return protoimpl.X.MessageStringOf(x)
  387. }
  388. func (*GetUnreadCountResponse) ProtoMessage() {}
  389. func (x *GetUnreadCountResponse) ProtoReflect() protoreflect.Message {
  390. mi := &file_message_proto_msgTypes[6]
  391. if protoimpl.UnsafeEnabled && x != nil {
  392. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  393. if ms.LoadMessageInfo() == nil {
  394. ms.StoreMessageInfo(mi)
  395. }
  396. return ms
  397. }
  398. return mi.MessageOf(x)
  399. }
  400. // Deprecated: Use GetUnreadCountResponse.ProtoReflect.Descriptor instead.
  401. func (*GetUnreadCountResponse) Descriptor() ([]byte, []int) {
  402. return file_message_proto_rawDescGZIP(), []int{6}
  403. }
  404. func (x *GetUnreadCountResponse) GetCode() int64 {
  405. if x != nil {
  406. return x.Code
  407. }
  408. return 0
  409. }
  410. func (x *GetUnreadCountResponse) GetMessage() string {
  411. if x != nil {
  412. return x.Message
  413. }
  414. return ""
  415. }
  416. func (x *GetUnreadCountResponse) GetCount() int64 {
  417. if x != nil {
  418. return x.Count
  419. }
  420. return 0
  421. }
  422. type FindUserMsgReq struct {
  423. state protoimpl.MessageState
  424. sizeCache protoimpl.SizeCache
  425. unknownFields protoimpl.UnknownFields
  426. UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"` //用户id
  427. ReceiveUserId string `protobuf:"bytes,2,opt,name=receiveUserId,proto3" json:"receiveUserId,omitempty"` //聊天方用户id
  428. Appid string `protobuf:"bytes,3,opt,name=appid,proto3" json:"appid,omitempty"` //应用标识
  429. OffSet int64 `protobuf:"varint,4,opt,name=offSet,proto3" json:"offSet,omitempty"` //当前
  430. PageSize int64 `protobuf:"varint,5,opt,name=pageSize,proto3" json:"pageSize,omitempty"` //大小
  431. }
  432. func (x *FindUserMsgReq) Reset() {
  433. *x = FindUserMsgReq{}
  434. if protoimpl.UnsafeEnabled {
  435. mi := &file_message_proto_msgTypes[7]
  436. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  437. ms.StoreMessageInfo(mi)
  438. }
  439. }
  440. func (x *FindUserMsgReq) String() string {
  441. return protoimpl.X.MessageStringOf(x)
  442. }
  443. func (*FindUserMsgReq) ProtoMessage() {}
  444. func (x *FindUserMsgReq) ProtoReflect() protoreflect.Message {
  445. mi := &file_message_proto_msgTypes[7]
  446. if protoimpl.UnsafeEnabled && x != nil {
  447. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  448. if ms.LoadMessageInfo() == nil {
  449. ms.StoreMessageInfo(mi)
  450. }
  451. return ms
  452. }
  453. return mi.MessageOf(x)
  454. }
  455. // Deprecated: Use FindUserMsgReq.ProtoReflect.Descriptor instead.
  456. func (*FindUserMsgReq) Descriptor() ([]byte, []int) {
  457. return file_message_proto_rawDescGZIP(), []int{7}
  458. }
  459. func (x *FindUserMsgReq) GetUserId() string {
  460. if x != nil {
  461. return x.UserId
  462. }
  463. return ""
  464. }
  465. func (x *FindUserMsgReq) GetReceiveUserId() string {
  466. if x != nil {
  467. return x.ReceiveUserId
  468. }
  469. return ""
  470. }
  471. func (x *FindUserMsgReq) GetAppid() string {
  472. if x != nil {
  473. return x.Appid
  474. }
  475. return ""
  476. }
  477. func (x *FindUserMsgReq) GetOffSet() int64 {
  478. if x != nil {
  479. return x.OffSet
  480. }
  481. return 0
  482. }
  483. func (x *FindUserMsgReq) GetPageSize() int64 {
  484. if x != nil {
  485. return x.PageSize
  486. }
  487. return 0
  488. }
  489. type Messages struct {
  490. state protoimpl.MessageState
  491. sizeCache protoimpl.SizeCache
  492. unknownFields protoimpl.UnknownFields
  493. ReceiveUserId string `protobuf:"bytes,1,opt,name=receiveUserId,proto3" json:"receiveUserId,omitempty"` //接收方用户ID
  494. ReceiveName string `protobuf:"bytes,2,opt,name=receiveName,proto3" json:"receiveName,omitempty"` //接收方用户名
  495. SendUserId string `protobuf:"bytes,3,opt,name=sendUserId,proto3" json:"sendUserId,omitempty"` //发送方用户ID
  496. SendName string `protobuf:"bytes,4,opt,name=sendName,proto3" json:"sendName,omitempty"` //发送方用户名
  497. Title string `protobuf:"bytes,5,opt,name=title,proto3" json:"title,omitempty"` //主题
  498. Content string `protobuf:"bytes,6,opt,name=content,proto3" json:"content,omitempty"` //内容
  499. MsgType int64 `protobuf:"varint,7,opt,name=msgType,proto3" json:"msgType,omitempty"` //消息类型 1:客服 2:系统通知 3:营销 4:用户会话
  500. Link string `protobuf:"bytes,8,opt,name=link,proto3" json:"link,omitempty"` //跳转链接
  501. CiteId int64 `protobuf:"varint,9,opt,name=citeId,proto3" json:"citeId,omitempty"` //引用id
  502. IsRead int64 `protobuf:"varint,10,opt,name=isRead,proto3" json:"isRead,omitempty"` //已读未读 0:未读 1:已读
  503. Createtime string `protobuf:"bytes,11,opt,name=createtime,proto3" json:"createtime,omitempty"`
  504. Appid string `protobuf:"bytes,12,opt,name=appid,proto3" json:"appid,omitempty"` //应用标识
  505. }
  506. func (x *Messages) Reset() {
  507. *x = Messages{}
  508. if protoimpl.UnsafeEnabled {
  509. mi := &file_message_proto_msgTypes[8]
  510. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  511. ms.StoreMessageInfo(mi)
  512. }
  513. }
  514. func (x *Messages) String() string {
  515. return protoimpl.X.MessageStringOf(x)
  516. }
  517. func (*Messages) ProtoMessage() {}
  518. func (x *Messages) ProtoReflect() protoreflect.Message {
  519. mi := &file_message_proto_msgTypes[8]
  520. if protoimpl.UnsafeEnabled && x != nil {
  521. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  522. if ms.LoadMessageInfo() == nil {
  523. ms.StoreMessageInfo(mi)
  524. }
  525. return ms
  526. }
  527. return mi.MessageOf(x)
  528. }
  529. // Deprecated: Use Messages.ProtoReflect.Descriptor instead.
  530. func (*Messages) Descriptor() ([]byte, []int) {
  531. return file_message_proto_rawDescGZIP(), []int{8}
  532. }
  533. func (x *Messages) GetReceiveUserId() string {
  534. if x != nil {
  535. return x.ReceiveUserId
  536. }
  537. return ""
  538. }
  539. func (x *Messages) GetReceiveName() string {
  540. if x != nil {
  541. return x.ReceiveName
  542. }
  543. return ""
  544. }
  545. func (x *Messages) GetSendUserId() string {
  546. if x != nil {
  547. return x.SendUserId
  548. }
  549. return ""
  550. }
  551. func (x *Messages) GetSendName() string {
  552. if x != nil {
  553. return x.SendName
  554. }
  555. return ""
  556. }
  557. func (x *Messages) GetTitle() string {
  558. if x != nil {
  559. return x.Title
  560. }
  561. return ""
  562. }
  563. func (x *Messages) GetContent() string {
  564. if x != nil {
  565. return x.Content
  566. }
  567. return ""
  568. }
  569. func (x *Messages) GetMsgType() int64 {
  570. if x != nil {
  571. return x.MsgType
  572. }
  573. return 0
  574. }
  575. func (x *Messages) GetLink() string {
  576. if x != nil {
  577. return x.Link
  578. }
  579. return ""
  580. }
  581. func (x *Messages) GetCiteId() int64 {
  582. if x != nil {
  583. return x.CiteId
  584. }
  585. return 0
  586. }
  587. func (x *Messages) GetIsRead() int64 {
  588. if x != nil {
  589. return x.IsRead
  590. }
  591. return 0
  592. }
  593. func (x *Messages) GetCreatetime() string {
  594. if x != nil {
  595. return x.Createtime
  596. }
  597. return ""
  598. }
  599. func (x *Messages) GetAppid() string {
  600. if x != nil {
  601. return x.Appid
  602. }
  603. return ""
  604. }
  605. type FindUserMsgRes struct {
  606. state protoimpl.MessageState
  607. sizeCache protoimpl.SizeCache
  608. unknownFields protoimpl.UnknownFields
  609. Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` //状态码
  610. Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` //响应消息
  611. Data []*Messages `protobuf:"bytes,3,rep,name=data,proto3" json:"data,omitempty"` //
  612. Count int64 `protobuf:"varint,4,opt,name=count,proto3" json:"count,omitempty"` //总数
  613. }
  614. func (x *FindUserMsgRes) Reset() {
  615. *x = FindUserMsgRes{}
  616. if protoimpl.UnsafeEnabled {
  617. mi := &file_message_proto_msgTypes[9]
  618. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  619. ms.StoreMessageInfo(mi)
  620. }
  621. }
  622. func (x *FindUserMsgRes) String() string {
  623. return protoimpl.X.MessageStringOf(x)
  624. }
  625. func (*FindUserMsgRes) ProtoMessage() {}
  626. func (x *FindUserMsgRes) ProtoReflect() protoreflect.Message {
  627. mi := &file_message_proto_msgTypes[9]
  628. if protoimpl.UnsafeEnabled && x != nil {
  629. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  630. if ms.LoadMessageInfo() == nil {
  631. ms.StoreMessageInfo(mi)
  632. }
  633. return ms
  634. }
  635. return mi.MessageOf(x)
  636. }
  637. // Deprecated: Use FindUserMsgRes.ProtoReflect.Descriptor instead.
  638. func (*FindUserMsgRes) Descriptor() ([]byte, []int) {
  639. return file_message_proto_rawDescGZIP(), []int{9}
  640. }
  641. func (x *FindUserMsgRes) GetCode() int64 {
  642. if x != nil {
  643. return x.Code
  644. }
  645. return 0
  646. }
  647. func (x *FindUserMsgRes) GetMessage() string {
  648. if x != nil {
  649. return x.Message
  650. }
  651. return ""
  652. }
  653. func (x *FindUserMsgRes) GetData() []*Messages {
  654. if x != nil {
  655. return x.Data
  656. }
  657. return nil
  658. }
  659. func (x *FindUserMsgRes) GetCount() int64 {
  660. if x != nil {
  661. return x.Count
  662. }
  663. return 0
  664. }
  665. type GetClassUnreadCountReq struct {
  666. state protoimpl.MessageState
  667. sizeCache protoimpl.SizeCache
  668. unknownFields protoimpl.UnknownFields
  669. UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"` // 用户id
  670. MsgType int64 `protobuf:"varint,2,opt,name=msgType,proto3" json:"msgType,omitempty"` //分类 1:客服 2:系统通知 3:营销 4:用户会话
  671. Appid string `protobuf:"bytes,3,opt,name=appid,proto3" json:"appid,omitempty"` //应用标识
  672. }
  673. func (x *GetClassUnreadCountReq) Reset() {
  674. *x = GetClassUnreadCountReq{}
  675. if protoimpl.UnsafeEnabled {
  676. mi := &file_message_proto_msgTypes[10]
  677. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  678. ms.StoreMessageInfo(mi)
  679. }
  680. }
  681. func (x *GetClassUnreadCountReq) String() string {
  682. return protoimpl.X.MessageStringOf(x)
  683. }
  684. func (*GetClassUnreadCountReq) ProtoMessage() {}
  685. func (x *GetClassUnreadCountReq) ProtoReflect() protoreflect.Message {
  686. mi := &file_message_proto_msgTypes[10]
  687. if protoimpl.UnsafeEnabled && x != nil {
  688. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  689. if ms.LoadMessageInfo() == nil {
  690. ms.StoreMessageInfo(mi)
  691. }
  692. return ms
  693. }
  694. return mi.MessageOf(x)
  695. }
  696. // Deprecated: Use GetClassUnreadCountReq.ProtoReflect.Descriptor instead.
  697. func (*GetClassUnreadCountReq) Descriptor() ([]byte, []int) {
  698. return file_message_proto_rawDescGZIP(), []int{10}
  699. }
  700. func (x *GetClassUnreadCountReq) GetUserId() string {
  701. if x != nil {
  702. return x.UserId
  703. }
  704. return ""
  705. }
  706. func (x *GetClassUnreadCountReq) GetMsgType() int64 {
  707. if x != nil {
  708. return x.MsgType
  709. }
  710. return 0
  711. }
  712. func (x *GetClassUnreadCountReq) GetAppid() string {
  713. if x != nil {
  714. return x.Appid
  715. }
  716. return ""
  717. }
  718. //查看消息内容
  719. type MessageDetailReq struct {
  720. state protoimpl.MessageState
  721. sizeCache protoimpl.SizeCache
  722. unknownFields protoimpl.UnknownFields
  723. Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` //消息id
  724. }
  725. func (x *MessageDetailReq) Reset() {
  726. *x = MessageDetailReq{}
  727. if protoimpl.UnsafeEnabled {
  728. mi := &file_message_proto_msgTypes[11]
  729. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  730. ms.StoreMessageInfo(mi)
  731. }
  732. }
  733. func (x *MessageDetailReq) String() string {
  734. return protoimpl.X.MessageStringOf(x)
  735. }
  736. func (*MessageDetailReq) ProtoMessage() {}
  737. func (x *MessageDetailReq) ProtoReflect() protoreflect.Message {
  738. mi := &file_message_proto_msgTypes[11]
  739. if protoimpl.UnsafeEnabled && x != nil {
  740. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  741. if ms.LoadMessageInfo() == nil {
  742. ms.StoreMessageInfo(mi)
  743. }
  744. return ms
  745. }
  746. return mi.MessageOf(x)
  747. }
  748. // Deprecated: Use MessageDetailReq.ProtoReflect.Descriptor instead.
  749. func (*MessageDetailReq) Descriptor() ([]byte, []int) {
  750. return file_message_proto_rawDescGZIP(), []int{11}
  751. }
  752. func (x *MessageDetailReq) GetId() int64 {
  753. if x != nil {
  754. return x.Id
  755. }
  756. return 0
  757. }
  758. type MessageDetailResp struct {
  759. state protoimpl.MessageState
  760. sizeCache protoimpl.SizeCache
  761. unknownFields protoimpl.UnknownFields
  762. Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
  763. ReceiveUserId string `protobuf:"bytes,2,opt,name=receiveUserId,proto3" json:"receiveUserId,omitempty"` //接收方用户ID
  764. ReceiveName string `protobuf:"bytes,3,opt,name=receiveName,proto3" json:"receiveName,omitempty"` //接收方用户名
  765. SendUserId string `protobuf:"bytes,4,opt,name=sendUserId,proto3" json:"sendUserId,omitempty"` //发送方用户ID
  766. SendName string `protobuf:"bytes,5,opt,name=sendName,proto3" json:"sendName,omitempty"` //发送方用户名
  767. Title string `protobuf:"bytes,6,opt,name=title,proto3" json:"title,omitempty"` //主题
  768. Content string `protobuf:"bytes,7,opt,name=content,proto3" json:"content,omitempty"` //内容
  769. MsgType int64 `protobuf:"varint,8,opt,name=msgType,proto3" json:"msgType,omitempty"` //消息类型 1:客服 2:系统通知 3:营销 4:用户会话
  770. Link string `protobuf:"bytes,9,opt,name=link,proto3" json:"link,omitempty"` //跳转链接
  771. CiteId int64 `protobuf:"varint,10,opt,name=citeId,proto3" json:"citeId,omitempty"` //引用id
  772. IsRead int64 `protobuf:"varint,11,opt,name=isRead,proto3" json:"isRead,omitempty"` //已读未读 0:未读 1:已读
  773. Createtime string `protobuf:"bytes,12,opt,name=createtime,proto3" json:"createtime,omitempty"`
  774. Appid string `protobuf:"bytes,13,opt,name=appid,proto3" json:"appid,omitempty"` //应用标识
  775. }
  776. func (x *MessageDetailResp) Reset() {
  777. *x = MessageDetailResp{}
  778. if protoimpl.UnsafeEnabled {
  779. mi := &file_message_proto_msgTypes[12]
  780. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  781. ms.StoreMessageInfo(mi)
  782. }
  783. }
  784. func (x *MessageDetailResp) String() string {
  785. return protoimpl.X.MessageStringOf(x)
  786. }
  787. func (*MessageDetailResp) ProtoMessage() {}
  788. func (x *MessageDetailResp) ProtoReflect() protoreflect.Message {
  789. mi := &file_message_proto_msgTypes[12]
  790. if protoimpl.UnsafeEnabled && x != nil {
  791. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  792. if ms.LoadMessageInfo() == nil {
  793. ms.StoreMessageInfo(mi)
  794. }
  795. return ms
  796. }
  797. return mi.MessageOf(x)
  798. }
  799. // Deprecated: Use MessageDetailResp.ProtoReflect.Descriptor instead.
  800. func (*MessageDetailResp) Descriptor() ([]byte, []int) {
  801. return file_message_proto_rawDescGZIP(), []int{12}
  802. }
  803. func (x *MessageDetailResp) GetId() int64 {
  804. if x != nil {
  805. return x.Id
  806. }
  807. return 0
  808. }
  809. func (x *MessageDetailResp) GetReceiveUserId() string {
  810. if x != nil {
  811. return x.ReceiveUserId
  812. }
  813. return ""
  814. }
  815. func (x *MessageDetailResp) GetReceiveName() string {
  816. if x != nil {
  817. return x.ReceiveName
  818. }
  819. return ""
  820. }
  821. func (x *MessageDetailResp) GetSendUserId() string {
  822. if x != nil {
  823. return x.SendUserId
  824. }
  825. return ""
  826. }
  827. func (x *MessageDetailResp) GetSendName() string {
  828. if x != nil {
  829. return x.SendName
  830. }
  831. return ""
  832. }
  833. func (x *MessageDetailResp) GetTitle() string {
  834. if x != nil {
  835. return x.Title
  836. }
  837. return ""
  838. }
  839. func (x *MessageDetailResp) GetContent() string {
  840. if x != nil {
  841. return x.Content
  842. }
  843. return ""
  844. }
  845. func (x *MessageDetailResp) GetMsgType() int64 {
  846. if x != nil {
  847. return x.MsgType
  848. }
  849. return 0
  850. }
  851. func (x *MessageDetailResp) GetLink() string {
  852. if x != nil {
  853. return x.Link
  854. }
  855. return ""
  856. }
  857. func (x *MessageDetailResp) GetCiteId() int64 {
  858. if x != nil {
  859. return x.CiteId
  860. }
  861. return 0
  862. }
  863. func (x *MessageDetailResp) GetIsRead() int64 {
  864. if x != nil {
  865. return x.IsRead
  866. }
  867. return 0
  868. }
  869. func (x *MessageDetailResp) GetCreatetime() string {
  870. if x != nil {
  871. return x.Createtime
  872. }
  873. return ""
  874. }
  875. func (x *MessageDetailResp) GetAppid() string {
  876. if x != nil {
  877. return x.Appid
  878. }
  879. return ""
  880. }
  881. var File_message_proto protoreflect.FileDescriptor
  882. var file_message_proto_rawDesc = []byte{
  883. 0x0a, 0x0d, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
  884. 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0xa0, 0x02, 0x0a, 0x0e, 0x53, 0x65, 0x6e,
  885. 0x64, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x24, 0x0a, 0x0d, 0x72,
  886. 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01,
  887. 0x28, 0x09, 0x52, 0x0d, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x55, 0x73, 0x65, 0x72, 0x49,
  888. 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x4e, 0x61, 0x6d, 0x65,
  889. 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x4e,
  890. 0x61, 0x6d, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x73, 0x65, 0x6e, 0x64, 0x55, 0x73, 0x65, 0x72, 0x49,
  891. 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x65, 0x6e, 0x64, 0x55, 0x73, 0x65,
  892. 0x72, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x65, 0x6e, 0x64, 0x4e, 0x61, 0x6d, 0x65, 0x18,
  893. 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x73, 0x65, 0x6e, 0x64, 0x4e, 0x61, 0x6d, 0x65, 0x12,
  894. 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05,
  895. 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74,
  896. 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x12,
  897. 0x18, 0x0a, 0x07, 0x6d, 0x73, 0x67, 0x54, 0x79, 0x70, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03,
  898. 0x52, 0x07, 0x6d, 0x73, 0x67, 0x54, 0x79, 0x70, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6c, 0x69, 0x6e,
  899. 0x6b, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6c, 0x69, 0x6e, 0x6b, 0x12, 0x16, 0x0a,
  900. 0x06, 0x63, 0x69, 0x74, 0x65, 0x49, 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x63,
  901. 0x69, 0x74, 0x65, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x18, 0x0a,
  902. 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x22, 0x5f, 0x0a, 0x17, 0x43,
  903. 0x68, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x65, 0x61, 0x64, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52,
  904. 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01,
  905. 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1e, 0x0a, 0x0a, 0x72, 0x65, 0x61, 0x64, 0x53, 0x74,
  906. 0x61, 0x74, 0x75, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x72, 0x65, 0x61, 0x64,
  907. 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x18,
  908. 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x22, 0x42, 0x0a, 0x1a,
  909. 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x4d, 0x65, 0x73, 0x73,
  910. 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64,
  911. 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70,
  912. 0x70, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64,
  913. 0x22, 0x44, 0x0a, 0x1c, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x70,
  914. 0x6c, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
  915. 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64,
  916. 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52,
  917. 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x22, 0x45, 0x0a, 0x15, 0x47, 0x65, 0x74, 0x55, 0x6e, 0x72,
  918. 0x65, 0x61, 0x64, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12,
  919. 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
  920. 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64,
  921. 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x22, 0x38, 0x0a,
  922. 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64,
  923. 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x18, 0x0a,
  924. 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07,
  925. 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0x5c, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x55, 0x6e,
  926. 0x72, 0x65, 0x61, 0x64, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
  927. 0x65, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52,
  928. 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
  929. 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12,
  930. 0x14, 0x0a, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05,
  931. 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x98, 0x01, 0x0a, 0x0e, 0x46, 0x69, 0x6e, 0x64, 0x55, 0x73,
  932. 0x65, 0x72, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x71, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72,
  933. 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64,
  934. 0x12, 0x24, 0x0a, 0x0d, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x55, 0x73, 0x65, 0x72, 0x49,
  935. 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65,
  936. 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x18,
  937. 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x12, 0x16, 0x0a, 0x06,
  938. 0x6f, 0x66, 0x66, 0x53, 0x65, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x6f, 0x66,
  939. 0x66, 0x53, 0x65, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65,
  940. 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65,
  941. 0x22, 0xd2, 0x02, 0x0a, 0x08, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x12, 0x24, 0x0a,
  942. 0x0d, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01,
  943. 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x55, 0x73, 0x65,
  944. 0x72, 0x49, 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x4e, 0x61,
  945. 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76,
  946. 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x73, 0x65, 0x6e, 0x64, 0x55, 0x73, 0x65,
  947. 0x72, 0x49, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x65, 0x6e, 0x64, 0x55,
  948. 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x65, 0x6e, 0x64, 0x4e, 0x61, 0x6d,
  949. 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x73, 0x65, 0x6e, 0x64, 0x4e, 0x61, 0x6d,
  950. 0x65, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09,
  951. 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65,
  952. 0x6e, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e,
  953. 0x74, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x73, 0x67, 0x54, 0x79, 0x70, 0x65, 0x18, 0x07, 0x20, 0x01,
  954. 0x28, 0x03, 0x52, 0x07, 0x6d, 0x73, 0x67, 0x54, 0x79, 0x70, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6c,
  955. 0x69, 0x6e, 0x6b, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6c, 0x69, 0x6e, 0x6b, 0x12,
  956. 0x16, 0x0a, 0x06, 0x63, 0x69, 0x74, 0x65, 0x49, 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x03, 0x52,
  957. 0x06, 0x63, 0x69, 0x74, 0x65, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x69, 0x73, 0x52, 0x65, 0x61,
  958. 0x64, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x69, 0x73, 0x52, 0x65, 0x61, 0x64, 0x12,
  959. 0x1e, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x0b, 0x20,
  960. 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x74, 0x69, 0x6d, 0x65, 0x12,
  961. 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05,
  962. 0x61, 0x70, 0x70, 0x69, 0x64, 0x22, 0x7b, 0x0a, 0x0e, 0x46, 0x69, 0x6e, 0x64, 0x55, 0x73, 0x65,
  963. 0x72, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18,
  964. 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6d,
  965. 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65,
  966. 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x25, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20,
  967. 0x03, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x4d, 0x65,
  968. 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x14, 0x0a, 0x05,
  969. 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x63, 0x6f, 0x75,
  970. 0x6e, 0x74, 0x22, 0x60, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x55, 0x6e,
  971. 0x72, 0x65, 0x61, 0x64, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x12, 0x16, 0x0a, 0x06,
  972. 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73,
  973. 0x65, 0x72, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x73, 0x67, 0x54, 0x79, 0x70, 0x65, 0x18,
  974. 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x6d, 0x73, 0x67, 0x54, 0x79, 0x70, 0x65, 0x12, 0x14,
  975. 0x0a, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61,
  976. 0x70, 0x70, 0x69, 0x64, 0x22, 0x22, 0x0a, 0x10, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x44,
  977. 0x65, 0x74, 0x61, 0x69, 0x6c, 0x52, 0x65, 0x71, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01,
  978. 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x22, 0xeb, 0x02, 0x0a, 0x11, 0x4d, 0x65, 0x73,
  979. 0x73, 0x61, 0x67, 0x65, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x12, 0x0e,
  980. 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x24,
  981. 0x0a, 0x0d, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18,
  982. 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x55, 0x73,
  983. 0x65, 0x72, 0x49, 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x4e,
  984. 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x72, 0x65, 0x63, 0x65, 0x69,
  985. 0x76, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x73, 0x65, 0x6e, 0x64, 0x55, 0x73,
  986. 0x65, 0x72, 0x49, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x65, 0x6e, 0x64,
  987. 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x65, 0x6e, 0x64, 0x4e, 0x61,
  988. 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x73, 0x65, 0x6e, 0x64, 0x4e, 0x61,
  989. 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28,
  990. 0x09, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74,
  991. 0x65, 0x6e, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65,
  992. 0x6e, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x73, 0x67, 0x54, 0x79, 0x70, 0x65, 0x18, 0x08, 0x20,
  993. 0x01, 0x28, 0x03, 0x52, 0x07, 0x6d, 0x73, 0x67, 0x54, 0x79, 0x70, 0x65, 0x12, 0x12, 0x0a, 0x04,
  994. 0x6c, 0x69, 0x6e, 0x6b, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6c, 0x69, 0x6e, 0x6b,
  995. 0x12, 0x16, 0x0a, 0x06, 0x63, 0x69, 0x74, 0x65, 0x49, 0x64, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x03,
  996. 0x52, 0x06, 0x63, 0x69, 0x74, 0x65, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x69, 0x73, 0x52, 0x65,
  997. 0x61, 0x64, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x69, 0x73, 0x52, 0x65, 0x61, 0x64,
  998. 0x12, 0x1e, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x0c,
  999. 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x74, 0x69, 0x6d, 0x65,
  1000. 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, 0x52,
  1001. 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x32, 0xe8, 0x04, 0x0a, 0x07, 0x4d, 0x65, 0x73, 0x73, 0x61,
  1002. 0x67, 0x65, 0x12, 0x47, 0x0a, 0x10, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x65, 0x61, 0x64,
  1003. 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x20, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
  1004. 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x65, 0x61, 0x64, 0x53, 0x74, 0x61, 0x74, 0x75,
  1005. 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x11, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61,
  1006. 0x67, 0x65, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x39, 0x0a, 0x0b, 0x53,
  1007. 0x65, 0x6e, 0x64, 0x55, 0x73, 0x65, 0x72, 0x4d, 0x73, 0x67, 0x12, 0x17, 0x2e, 0x6d, 0x65, 0x73,
  1008. 0x73, 0x61, 0x67, 0x65, 0x2e, 0x53, 0x65, 0x6e, 0x64, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x71, 0x75,
  1009. 0x65, 0x73, 0x74, 0x1a, 0x11, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x52, 0x65,
  1010. 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4d, 0x0a, 0x13, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65,
  1011. 0x53, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x23, 0x2e,
  1012. 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53, 0x69,
  1013. 0x6e, 0x67, 0x6c, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65,
  1014. 0x73, 0x74, 0x1a, 0x11, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x52, 0x65, 0x73,
  1015. 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x51, 0x0a, 0x15, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4d,
  1016. 0x75, 0x6c, 0x74, 0x69, 0x70, 0x6c, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x25,
  1017. 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4d,
  1018. 0x75, 0x6c, 0x74, 0x69, 0x70, 0x6c, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65,
  1019. 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x11, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e,
  1020. 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x51, 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x55,
  1021. 0x6e, 0x72, 0x65, 0x61, 0x64, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x1e, 0x2e, 0x6d, 0x65, 0x73,
  1022. 0x73, 0x61, 0x67, 0x65, 0x2e, 0x47, 0x65, 0x74, 0x55, 0x6e, 0x72, 0x65, 0x61, 0x64, 0x43, 0x6f,
  1023. 0x75, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x6d, 0x65, 0x73,
  1024. 0x73, 0x61, 0x67, 0x65, 0x2e, 0x47, 0x65, 0x74, 0x55, 0x6e, 0x72, 0x65, 0x61, 0x64, 0x43, 0x6f,
  1025. 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3f, 0x0a, 0x0b, 0x46,
  1026. 0x69, 0x6e, 0x64, 0x55, 0x73, 0x65, 0x72, 0x4d, 0x73, 0x67, 0x12, 0x17, 0x2e, 0x6d, 0x65, 0x73,
  1027. 0x73, 0x61, 0x67, 0x65, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x55, 0x73, 0x65, 0x72, 0x4d, 0x73, 0x67,
  1028. 0x52, 0x65, 0x71, 0x1a, 0x17, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x46, 0x69,
  1029. 0x6e, 0x64, 0x55, 0x73, 0x65, 0x72, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x73, 0x12, 0x57, 0x0a, 0x13,
  1030. 0x47, 0x65, 0x74, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x55, 0x6e, 0x72, 0x65, 0x61, 0x64, 0x43, 0x6f,
  1031. 0x75, 0x6e, 0x74, 0x12, 0x1f, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x47, 0x65,
  1032. 0x74, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x55, 0x6e, 0x72, 0x65, 0x61, 0x64, 0x43, 0x6f, 0x75, 0x6e,
  1033. 0x74, 0x52, 0x65, 0x71, 0x1a, 0x1f, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x47,
  1034. 0x65, 0x74, 0x55, 0x6e, 0x72, 0x65, 0x61, 0x64, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73,
  1035. 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4a, 0x0a, 0x11, 0x46, 0x69, 0x6e, 0x64, 0x4d, 0x65, 0x73,
  1036. 0x73, 0x61, 0x67, 0x65, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x12, 0x19, 0x2e, 0x6d, 0x65, 0x73,
  1037. 0x73, 0x61, 0x67, 0x65, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x44, 0x65, 0x74, 0x61,
  1038. 0x69, 0x6c, 0x52, 0x65, 0x71, 0x1a, 0x1a, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e,
  1039. 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x52, 0x65, 0x73,
  1040. 0x70, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  1041. }
  1042. var (
  1043. file_message_proto_rawDescOnce sync.Once
  1044. file_message_proto_rawDescData = file_message_proto_rawDesc
  1045. )
  1046. func file_message_proto_rawDescGZIP() []byte {
  1047. file_message_proto_rawDescOnce.Do(func() {
  1048. file_message_proto_rawDescData = protoimpl.X.CompressGZIP(file_message_proto_rawDescData)
  1049. })
  1050. return file_message_proto_rawDescData
  1051. }
  1052. var file_message_proto_msgTypes = make([]protoimpl.MessageInfo, 13)
  1053. var file_message_proto_goTypes = []interface{}{
  1054. (*SendMsgRequest)(nil), // 0: message.SendMsgRequest
  1055. (*ChangeReadStatusRequest)(nil), // 1: message.ChangeReadStatusRequest
  1056. (*DeleteSingleMessageRequest)(nil), // 2: message.DeleteSingleMessageRequest
  1057. (*DeleteMultipleMessageRequest)(nil), // 3: message.DeleteMultipleMessageRequest
  1058. (*GetUnreadCountRequest)(nil), // 4: message.GetUnreadCountRequest
  1059. (*Response)(nil), // 5: message.Response
  1060. (*GetUnreadCountResponse)(nil), // 6: message.GetUnreadCountResponse
  1061. (*FindUserMsgReq)(nil), // 7: message.FindUserMsgReq
  1062. (*Messages)(nil), // 8: message.Messages
  1063. (*FindUserMsgRes)(nil), // 9: message.FindUserMsgRes
  1064. (*GetClassUnreadCountReq)(nil), // 10: message.GetClassUnreadCountReq
  1065. (*MessageDetailReq)(nil), // 11: message.MessageDetailReq
  1066. (*MessageDetailResp)(nil), // 12: message.MessageDetailResp
  1067. }
  1068. var file_message_proto_depIdxs = []int32{
  1069. 8, // 0: message.FindUserMsgRes.data:type_name -> message.Messages
  1070. 1, // 1: message.Message.ChangeReadStatus:input_type -> message.ChangeReadStatusRequest
  1071. 0, // 2: message.Message.SendUserMsg:input_type -> message.SendMsgRequest
  1072. 2, // 3: message.Message.DeleteSingleMessage:input_type -> message.DeleteSingleMessageRequest
  1073. 3, // 4: message.Message.DeleteMultipleMessage:input_type -> message.DeleteMultipleMessageRequest
  1074. 4, // 5: message.Message.GetUnreadCount:input_type -> message.GetUnreadCountRequest
  1075. 7, // 6: message.Message.FindUserMsg:input_type -> message.FindUserMsgReq
  1076. 10, // 7: message.Message.GetClassUnreadCount:input_type -> message.GetClassUnreadCountReq
  1077. 11, // 8: message.Message.FindMessageDetail:input_type -> message.MessageDetailReq
  1078. 5, // 9: message.Message.ChangeReadStatus:output_type -> message.Response
  1079. 5, // 10: message.Message.SendUserMsg:output_type -> message.Response
  1080. 5, // 11: message.Message.DeleteSingleMessage:output_type -> message.Response
  1081. 5, // 12: message.Message.DeleteMultipleMessage:output_type -> message.Response
  1082. 6, // 13: message.Message.GetUnreadCount:output_type -> message.GetUnreadCountResponse
  1083. 9, // 14: message.Message.FindUserMsg:output_type -> message.FindUserMsgRes
  1084. 6, // 15: message.Message.GetClassUnreadCount:output_type -> message.GetUnreadCountResponse
  1085. 12, // 16: message.Message.FindMessageDetail:output_type -> message.MessageDetailResp
  1086. 9, // [9:17] is the sub-list for method output_type
  1087. 1, // [1:9] is the sub-list for method input_type
  1088. 1, // [1:1] is the sub-list for extension type_name
  1089. 1, // [1:1] is the sub-list for extension extendee
  1090. 0, // [0:1] is the sub-list for field type_name
  1091. }
  1092. func init() { file_message_proto_init() }
  1093. func file_message_proto_init() {
  1094. if File_message_proto != nil {
  1095. return
  1096. }
  1097. if !protoimpl.UnsafeEnabled {
  1098. file_message_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  1099. switch v := v.(*SendMsgRequest); i {
  1100. case 0:
  1101. return &v.state
  1102. case 1:
  1103. return &v.sizeCache
  1104. case 2:
  1105. return &v.unknownFields
  1106. default:
  1107. return nil
  1108. }
  1109. }
  1110. file_message_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  1111. switch v := v.(*ChangeReadStatusRequest); i {
  1112. case 0:
  1113. return &v.state
  1114. case 1:
  1115. return &v.sizeCache
  1116. case 2:
  1117. return &v.unknownFields
  1118. default:
  1119. return nil
  1120. }
  1121. }
  1122. file_message_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  1123. switch v := v.(*DeleteSingleMessageRequest); i {
  1124. case 0:
  1125. return &v.state
  1126. case 1:
  1127. return &v.sizeCache
  1128. case 2:
  1129. return &v.unknownFields
  1130. default:
  1131. return nil
  1132. }
  1133. }
  1134. file_message_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
  1135. switch v := v.(*DeleteMultipleMessageRequest); i {
  1136. case 0:
  1137. return &v.state
  1138. case 1:
  1139. return &v.sizeCache
  1140. case 2:
  1141. return &v.unknownFields
  1142. default:
  1143. return nil
  1144. }
  1145. }
  1146. file_message_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
  1147. switch v := v.(*GetUnreadCountRequest); i {
  1148. case 0:
  1149. return &v.state
  1150. case 1:
  1151. return &v.sizeCache
  1152. case 2:
  1153. return &v.unknownFields
  1154. default:
  1155. return nil
  1156. }
  1157. }
  1158. file_message_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
  1159. switch v := v.(*Response); i {
  1160. case 0:
  1161. return &v.state
  1162. case 1:
  1163. return &v.sizeCache
  1164. case 2:
  1165. return &v.unknownFields
  1166. default:
  1167. return nil
  1168. }
  1169. }
  1170. file_message_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
  1171. switch v := v.(*GetUnreadCountResponse); i {
  1172. case 0:
  1173. return &v.state
  1174. case 1:
  1175. return &v.sizeCache
  1176. case 2:
  1177. return &v.unknownFields
  1178. default:
  1179. return nil
  1180. }
  1181. }
  1182. file_message_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
  1183. switch v := v.(*FindUserMsgReq); i {
  1184. case 0:
  1185. return &v.state
  1186. case 1:
  1187. return &v.sizeCache
  1188. case 2:
  1189. return &v.unknownFields
  1190. default:
  1191. return nil
  1192. }
  1193. }
  1194. file_message_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
  1195. switch v := v.(*Messages); i {
  1196. case 0:
  1197. return &v.state
  1198. case 1:
  1199. return &v.sizeCache
  1200. case 2:
  1201. return &v.unknownFields
  1202. default:
  1203. return nil
  1204. }
  1205. }
  1206. file_message_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
  1207. switch v := v.(*FindUserMsgRes); i {
  1208. case 0:
  1209. return &v.state
  1210. case 1:
  1211. return &v.sizeCache
  1212. case 2:
  1213. return &v.unknownFields
  1214. default:
  1215. return nil
  1216. }
  1217. }
  1218. file_message_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
  1219. switch v := v.(*GetClassUnreadCountReq); i {
  1220. case 0:
  1221. return &v.state
  1222. case 1:
  1223. return &v.sizeCache
  1224. case 2:
  1225. return &v.unknownFields
  1226. default:
  1227. return nil
  1228. }
  1229. }
  1230. file_message_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
  1231. switch v := v.(*MessageDetailReq); i {
  1232. case 0:
  1233. return &v.state
  1234. case 1:
  1235. return &v.sizeCache
  1236. case 2:
  1237. return &v.unknownFields
  1238. default:
  1239. return nil
  1240. }
  1241. }
  1242. file_message_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} {
  1243. switch v := v.(*MessageDetailResp); i {
  1244. case 0:
  1245. return &v.state
  1246. case 1:
  1247. return &v.sizeCache
  1248. case 2:
  1249. return &v.unknownFields
  1250. default:
  1251. return nil
  1252. }
  1253. }
  1254. }
  1255. type x struct{}
  1256. out := protoimpl.TypeBuilder{
  1257. File: protoimpl.DescBuilder{
  1258. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  1259. RawDescriptor: file_message_proto_rawDesc,
  1260. NumEnums: 0,
  1261. NumMessages: 13,
  1262. NumExtensions: 0,
  1263. NumServices: 1,
  1264. },
  1265. GoTypes: file_message_proto_goTypes,
  1266. DependencyIndexes: file_message_proto_depIdxs,
  1267. MessageInfos: file_message_proto_msgTypes,
  1268. }.Build()
  1269. File_message_proto = out.File
  1270. file_message_proto_rawDesc = nil
  1271. file_message_proto_goTypes = nil
  1272. file_message_proto_depIdxs = nil
  1273. }
  1274. // Reference imports to suppress errors if they are not otherwise used.
  1275. var _ context.Context
  1276. var _ grpc.ClientConnInterface
  1277. // This is a compile-time assertion to ensure that this generated file
  1278. // is compatible with the grpc package it is being compiled against.
  1279. const _ = grpc.SupportPackageIsVersion6
  1280. // MessageClient is the client API for Message service.
  1281. //
  1282. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  1283. type MessageClient interface {
  1284. // 修改消息阅读状态
  1285. ChangeReadStatus(ctx context.Context, in *ChangeReadStatusRequest, opts ...grpc.CallOption) (*Response, error)
  1286. //指定用户发消息
  1287. SendUserMsg(ctx context.Context, in *SendMsgRequest, opts ...grpc.CallOption) (*Response, error)
  1288. // 删除单一消息
  1289. DeleteSingleMessage(ctx context.Context, in *DeleteSingleMessageRequest, opts ...grpc.CallOption) (*Response, error)
  1290. // 删除多条消息
  1291. DeleteMultipleMessage(ctx context.Context, in *DeleteMultipleMessageRequest, opts ...grpc.CallOption) (*Response, error)
  1292. // 查询指定用户未读消息合计
  1293. GetUnreadCount(ctx context.Context, in *GetUnreadCountRequest, opts ...grpc.CallOption) (*GetUnreadCountResponse, error)
  1294. //查询指定用户的历史消息记录
  1295. FindUserMsg(ctx context.Context, in *FindUserMsgReq, opts ...grpc.CallOption) (*FindUserMsgRes, error)
  1296. // 查询指定用户指定分类的未读消息合计
  1297. GetClassUnreadCount(ctx context.Context, in *GetClassUnreadCountReq, opts ...grpc.CallOption) (*GetUnreadCountResponse, error)
  1298. //查看详细详情
  1299. FindMessageDetail(ctx context.Context, in *MessageDetailReq, opts ...grpc.CallOption) (*MessageDetailResp, error)
  1300. }
  1301. type messageClient struct {
  1302. cc grpc.ClientConnInterface
  1303. }
  1304. func NewMessageClient(cc grpc.ClientConnInterface) MessageClient {
  1305. return &messageClient{cc}
  1306. }
  1307. func (c *messageClient) ChangeReadStatus(ctx context.Context, in *ChangeReadStatusRequest, opts ...grpc.CallOption) (*Response, error) {
  1308. out := new(Response)
  1309. err := c.cc.Invoke(ctx, "/message.Message/ChangeReadStatus", in, out, opts...)
  1310. if err != nil {
  1311. return nil, err
  1312. }
  1313. return out, nil
  1314. }
  1315. func (c *messageClient) SendUserMsg(ctx context.Context, in *SendMsgRequest, opts ...grpc.CallOption) (*Response, error) {
  1316. out := new(Response)
  1317. err := c.cc.Invoke(ctx, "/message.Message/SendUserMsg", in, out, opts...)
  1318. if err != nil {
  1319. return nil, err
  1320. }
  1321. return out, nil
  1322. }
  1323. func (c *messageClient) DeleteSingleMessage(ctx context.Context, in *DeleteSingleMessageRequest, opts ...grpc.CallOption) (*Response, error) {
  1324. out := new(Response)
  1325. err := c.cc.Invoke(ctx, "/message.Message/DeleteSingleMessage", in, out, opts...)
  1326. if err != nil {
  1327. return nil, err
  1328. }
  1329. return out, nil
  1330. }
  1331. func (c *messageClient) DeleteMultipleMessage(ctx context.Context, in *DeleteMultipleMessageRequest, opts ...grpc.CallOption) (*Response, error) {
  1332. out := new(Response)
  1333. err := c.cc.Invoke(ctx, "/message.Message/DeleteMultipleMessage", in, out, opts...)
  1334. if err != nil {
  1335. return nil, err
  1336. }
  1337. return out, nil
  1338. }
  1339. func (c *messageClient) GetUnreadCount(ctx context.Context, in *GetUnreadCountRequest, opts ...grpc.CallOption) (*GetUnreadCountResponse, error) {
  1340. out := new(GetUnreadCountResponse)
  1341. err := c.cc.Invoke(ctx, "/message.Message/GetUnreadCount", in, out, opts...)
  1342. if err != nil {
  1343. return nil, err
  1344. }
  1345. return out, nil
  1346. }
  1347. func (c *messageClient) FindUserMsg(ctx context.Context, in *FindUserMsgReq, opts ...grpc.CallOption) (*FindUserMsgRes, error) {
  1348. out := new(FindUserMsgRes)
  1349. err := c.cc.Invoke(ctx, "/message.Message/FindUserMsg", in, out, opts...)
  1350. if err != nil {
  1351. return nil, err
  1352. }
  1353. return out, nil
  1354. }
  1355. func (c *messageClient) GetClassUnreadCount(ctx context.Context, in *GetClassUnreadCountReq, opts ...grpc.CallOption) (*GetUnreadCountResponse, error) {
  1356. out := new(GetUnreadCountResponse)
  1357. err := c.cc.Invoke(ctx, "/message.Message/GetClassUnreadCount", in, out, opts...)
  1358. if err != nil {
  1359. return nil, err
  1360. }
  1361. return out, nil
  1362. }
  1363. func (c *messageClient) FindMessageDetail(ctx context.Context, in *MessageDetailReq, opts ...grpc.CallOption) (*MessageDetailResp, error) {
  1364. out := new(MessageDetailResp)
  1365. err := c.cc.Invoke(ctx, "/message.Message/FindMessageDetail", in, out, opts...)
  1366. if err != nil {
  1367. return nil, err
  1368. }
  1369. return out, nil
  1370. }
  1371. // MessageServer is the server API for Message service.
  1372. type MessageServer interface {
  1373. // 修改消息阅读状态
  1374. ChangeReadStatus(context.Context, *ChangeReadStatusRequest) (*Response, error)
  1375. //指定用户发消息
  1376. SendUserMsg(context.Context, *SendMsgRequest) (*Response, error)
  1377. // 删除单一消息
  1378. DeleteSingleMessage(context.Context, *DeleteSingleMessageRequest) (*Response, error)
  1379. // 删除多条消息
  1380. DeleteMultipleMessage(context.Context, *DeleteMultipleMessageRequest) (*Response, error)
  1381. // 查询指定用户未读消息合计
  1382. GetUnreadCount(context.Context, *GetUnreadCountRequest) (*GetUnreadCountResponse, error)
  1383. //查询指定用户的历史消息记录
  1384. FindUserMsg(context.Context, *FindUserMsgReq) (*FindUserMsgRes, error)
  1385. // 查询指定用户指定分类的未读消息合计
  1386. GetClassUnreadCount(context.Context, *GetClassUnreadCountReq) (*GetUnreadCountResponse, error)
  1387. //查看详细详情
  1388. FindMessageDetail(context.Context, *MessageDetailReq) (*MessageDetailResp, error)
  1389. }
  1390. // UnimplementedMessageServer can be embedded to have forward compatible implementations.
  1391. type UnimplementedMessageServer struct {
  1392. }
  1393. func (*UnimplementedMessageServer) ChangeReadStatus(context.Context, *ChangeReadStatusRequest) (*Response, error) {
  1394. return nil, status.Errorf(codes.Unimplemented, "method ChangeReadStatus not implemented")
  1395. }
  1396. func (*UnimplementedMessageServer) SendUserMsg(context.Context, *SendMsgRequest) (*Response, error) {
  1397. return nil, status.Errorf(codes.Unimplemented, "method SendUserMsg not implemented")
  1398. }
  1399. func (*UnimplementedMessageServer) DeleteSingleMessage(context.Context, *DeleteSingleMessageRequest) (*Response, error) {
  1400. return nil, status.Errorf(codes.Unimplemented, "method DeleteSingleMessage not implemented")
  1401. }
  1402. func (*UnimplementedMessageServer) DeleteMultipleMessage(context.Context, *DeleteMultipleMessageRequest) (*Response, error) {
  1403. return nil, status.Errorf(codes.Unimplemented, "method DeleteMultipleMessage not implemented")
  1404. }
  1405. func (*UnimplementedMessageServer) GetUnreadCount(context.Context, *GetUnreadCountRequest) (*GetUnreadCountResponse, error) {
  1406. return nil, status.Errorf(codes.Unimplemented, "method GetUnreadCount not implemented")
  1407. }
  1408. func (*UnimplementedMessageServer) FindUserMsg(context.Context, *FindUserMsgReq) (*FindUserMsgRes, error) {
  1409. return nil, status.Errorf(codes.Unimplemented, "method FindUserMsg not implemented")
  1410. }
  1411. func (*UnimplementedMessageServer) GetClassUnreadCount(context.Context, *GetClassUnreadCountReq) (*GetUnreadCountResponse, error) {
  1412. return nil, status.Errorf(codes.Unimplemented, "method GetClassUnreadCount not implemented")
  1413. }
  1414. func (*UnimplementedMessageServer) FindMessageDetail(context.Context, *MessageDetailReq) (*MessageDetailResp, error) {
  1415. return nil, status.Errorf(codes.Unimplemented, "method FindMessageDetail not implemented")
  1416. }
  1417. func RegisterMessageServer(s *grpc.Server, srv MessageServer) {
  1418. s.RegisterService(&_Message_serviceDesc, srv)
  1419. }
  1420. func _Message_ChangeReadStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1421. in := new(ChangeReadStatusRequest)
  1422. if err := dec(in); err != nil {
  1423. return nil, err
  1424. }
  1425. if interceptor == nil {
  1426. return srv.(MessageServer).ChangeReadStatus(ctx, in)
  1427. }
  1428. info := &grpc.UnaryServerInfo{
  1429. Server: srv,
  1430. FullMethod: "/message.Message/ChangeReadStatus",
  1431. }
  1432. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1433. return srv.(MessageServer).ChangeReadStatus(ctx, req.(*ChangeReadStatusRequest))
  1434. }
  1435. return interceptor(ctx, in, info, handler)
  1436. }
  1437. func _Message_SendUserMsg_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1438. in := new(SendMsgRequest)
  1439. if err := dec(in); err != nil {
  1440. return nil, err
  1441. }
  1442. if interceptor == nil {
  1443. return srv.(MessageServer).SendUserMsg(ctx, in)
  1444. }
  1445. info := &grpc.UnaryServerInfo{
  1446. Server: srv,
  1447. FullMethod: "/message.Message/SendUserMsg",
  1448. }
  1449. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1450. return srv.(MessageServer).SendUserMsg(ctx, req.(*SendMsgRequest))
  1451. }
  1452. return interceptor(ctx, in, info, handler)
  1453. }
  1454. func _Message_DeleteSingleMessage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1455. in := new(DeleteSingleMessageRequest)
  1456. if err := dec(in); err != nil {
  1457. return nil, err
  1458. }
  1459. if interceptor == nil {
  1460. return srv.(MessageServer).DeleteSingleMessage(ctx, in)
  1461. }
  1462. info := &grpc.UnaryServerInfo{
  1463. Server: srv,
  1464. FullMethod: "/message.Message/DeleteSingleMessage",
  1465. }
  1466. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1467. return srv.(MessageServer).DeleteSingleMessage(ctx, req.(*DeleteSingleMessageRequest))
  1468. }
  1469. return interceptor(ctx, in, info, handler)
  1470. }
  1471. func _Message_DeleteMultipleMessage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1472. in := new(DeleteMultipleMessageRequest)
  1473. if err := dec(in); err != nil {
  1474. return nil, err
  1475. }
  1476. if interceptor == nil {
  1477. return srv.(MessageServer).DeleteMultipleMessage(ctx, in)
  1478. }
  1479. info := &grpc.UnaryServerInfo{
  1480. Server: srv,
  1481. FullMethod: "/message.Message/DeleteMultipleMessage",
  1482. }
  1483. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1484. return srv.(MessageServer).DeleteMultipleMessage(ctx, req.(*DeleteMultipleMessageRequest))
  1485. }
  1486. return interceptor(ctx, in, info, handler)
  1487. }
  1488. func _Message_GetUnreadCount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1489. in := new(GetUnreadCountRequest)
  1490. if err := dec(in); err != nil {
  1491. return nil, err
  1492. }
  1493. if interceptor == nil {
  1494. return srv.(MessageServer).GetUnreadCount(ctx, in)
  1495. }
  1496. info := &grpc.UnaryServerInfo{
  1497. Server: srv,
  1498. FullMethod: "/message.Message/GetUnreadCount",
  1499. }
  1500. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1501. return srv.(MessageServer).GetUnreadCount(ctx, req.(*GetUnreadCountRequest))
  1502. }
  1503. return interceptor(ctx, in, info, handler)
  1504. }
  1505. func _Message_FindUserMsg_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1506. in := new(FindUserMsgReq)
  1507. if err := dec(in); err != nil {
  1508. return nil, err
  1509. }
  1510. if interceptor == nil {
  1511. return srv.(MessageServer).FindUserMsg(ctx, in)
  1512. }
  1513. info := &grpc.UnaryServerInfo{
  1514. Server: srv,
  1515. FullMethod: "/message.Message/FindUserMsg",
  1516. }
  1517. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1518. return srv.(MessageServer).FindUserMsg(ctx, req.(*FindUserMsgReq))
  1519. }
  1520. return interceptor(ctx, in, info, handler)
  1521. }
  1522. func _Message_GetClassUnreadCount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1523. in := new(GetClassUnreadCountReq)
  1524. if err := dec(in); err != nil {
  1525. return nil, err
  1526. }
  1527. if interceptor == nil {
  1528. return srv.(MessageServer).GetClassUnreadCount(ctx, in)
  1529. }
  1530. info := &grpc.UnaryServerInfo{
  1531. Server: srv,
  1532. FullMethod: "/message.Message/GetClassUnreadCount",
  1533. }
  1534. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1535. return srv.(MessageServer).GetClassUnreadCount(ctx, req.(*GetClassUnreadCountReq))
  1536. }
  1537. return interceptor(ctx, in, info, handler)
  1538. }
  1539. func _Message_FindMessageDetail_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1540. in := new(MessageDetailReq)
  1541. if err := dec(in); err != nil {
  1542. return nil, err
  1543. }
  1544. if interceptor == nil {
  1545. return srv.(MessageServer).FindMessageDetail(ctx, in)
  1546. }
  1547. info := &grpc.UnaryServerInfo{
  1548. Server: srv,
  1549. FullMethod: "/message.Message/FindMessageDetail",
  1550. }
  1551. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1552. return srv.(MessageServer).FindMessageDetail(ctx, req.(*MessageDetailReq))
  1553. }
  1554. return interceptor(ctx, in, info, handler)
  1555. }
  1556. var _Message_serviceDesc = grpc.ServiceDesc{
  1557. ServiceName: "message.Message",
  1558. HandlerType: (*MessageServer)(nil),
  1559. Methods: []grpc.MethodDesc{
  1560. {
  1561. MethodName: "ChangeReadStatus",
  1562. Handler: _Message_ChangeReadStatus_Handler,
  1563. },
  1564. {
  1565. MethodName: "SendUserMsg",
  1566. Handler: _Message_SendUserMsg_Handler,
  1567. },
  1568. {
  1569. MethodName: "DeleteSingleMessage",
  1570. Handler: _Message_DeleteSingleMessage_Handler,
  1571. },
  1572. {
  1573. MethodName: "DeleteMultipleMessage",
  1574. Handler: _Message_DeleteMultipleMessage_Handler,
  1575. },
  1576. {
  1577. MethodName: "GetUnreadCount",
  1578. Handler: _Message_GetUnreadCount_Handler,
  1579. },
  1580. {
  1581. MethodName: "FindUserMsg",
  1582. Handler: _Message_FindUserMsg_Handler,
  1583. },
  1584. {
  1585. MethodName: "GetClassUnreadCount",
  1586. Handler: _Message_GetClassUnreadCount_Handler,
  1587. },
  1588. {
  1589. MethodName: "FindMessageDetail",
  1590. Handler: _Message_FindMessageDetail_Handler,
  1591. },
  1592. },
  1593. Streams: []grpc.StreamDesc{},
  1594. Metadata: "message.proto",
  1595. }