message.pb.go 91 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640
  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 string `protobuf:"bytes,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() string {
  165. if x != nil {
  166. return x.Id
  167. }
  168. return ""
  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 string `protobuf:"bytes,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() string {
  264. if x != nil {
  265. return x.Id
  266. }
  267. return ""
  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 string `protobuf:"bytes,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() string {
  667. if x != nil {
  668. return x.Id
  669. }
  670. return ""
  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 string `protobuf:"bytes,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() string {
  820. if x != nil {
  821. return x.Id
  822. }
  823. return ""
  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. IsRead int64 `protobuf:"varint,4,opt,name=isRead,proto3" json:"isRead,omitempty"` // 0:未读 1:已读 -1 不区分
  886. }
  887. func (x *GetLastMessageReq) Reset() {
  888. *x = GetLastMessageReq{}
  889. if protoimpl.UnsafeEnabled {
  890. mi := &file_message_proto_msgTypes[14]
  891. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  892. ms.StoreMessageInfo(mi)
  893. }
  894. }
  895. func (x *GetLastMessageReq) String() string {
  896. return protoimpl.X.MessageStringOf(x)
  897. }
  898. func (*GetLastMessageReq) ProtoMessage() {}
  899. func (x *GetLastMessageReq) ProtoReflect() protoreflect.Message {
  900. mi := &file_message_proto_msgTypes[14]
  901. if protoimpl.UnsafeEnabled && x != nil {
  902. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  903. if ms.LoadMessageInfo() == nil {
  904. ms.StoreMessageInfo(mi)
  905. }
  906. return ms
  907. }
  908. return mi.MessageOf(x)
  909. }
  910. // Deprecated: Use GetLastMessageReq.ProtoReflect.Descriptor instead.
  911. func (*GetLastMessageReq) Descriptor() ([]byte, []int) {
  912. return file_message_proto_rawDescGZIP(), []int{14}
  913. }
  914. func (x *GetLastMessageReq) GetUserId() string {
  915. if x != nil {
  916. return x.UserId
  917. }
  918. return ""
  919. }
  920. func (x *GetLastMessageReq) GetMsgType() int64 {
  921. if x != nil {
  922. return x.MsgType
  923. }
  924. return 0
  925. }
  926. func (x *GetLastMessageReq) GetAppid() string {
  927. if x != nil {
  928. return x.Appid
  929. }
  930. return ""
  931. }
  932. func (x *GetLastMessageReq) GetIsRead() int64 {
  933. if x != nil {
  934. return x.IsRead
  935. }
  936. return 0
  937. }
  938. type GetLastMessageRes struct {
  939. state protoimpl.MessageState
  940. sizeCache protoimpl.SizeCache
  941. unknownFields protoimpl.UnknownFields
  942. Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` //状态码
  943. Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` //响应消息
  944. Data *Messages `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` //
  945. }
  946. func (x *GetLastMessageRes) Reset() {
  947. *x = GetLastMessageRes{}
  948. if protoimpl.UnsafeEnabled {
  949. mi := &file_message_proto_msgTypes[15]
  950. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  951. ms.StoreMessageInfo(mi)
  952. }
  953. }
  954. func (x *GetLastMessageRes) String() string {
  955. return protoimpl.X.MessageStringOf(x)
  956. }
  957. func (*GetLastMessageRes) ProtoMessage() {}
  958. func (x *GetLastMessageRes) ProtoReflect() protoreflect.Message {
  959. mi := &file_message_proto_msgTypes[15]
  960. if protoimpl.UnsafeEnabled && x != nil {
  961. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  962. if ms.LoadMessageInfo() == nil {
  963. ms.StoreMessageInfo(mi)
  964. }
  965. return ms
  966. }
  967. return mi.MessageOf(x)
  968. }
  969. // Deprecated: Use GetLastMessageRes.ProtoReflect.Descriptor instead.
  970. func (*GetLastMessageRes) Descriptor() ([]byte, []int) {
  971. return file_message_proto_rawDescGZIP(), []int{15}
  972. }
  973. func (x *GetLastMessageRes) GetCode() int64 {
  974. if x != nil {
  975. return x.Code
  976. }
  977. return 0
  978. }
  979. func (x *GetLastMessageRes) GetMessage() string {
  980. if x != nil {
  981. return x.Message
  982. }
  983. return ""
  984. }
  985. func (x *GetLastMessageRes) GetData() *Messages {
  986. if x != nil {
  987. return x.Data
  988. }
  989. return nil
  990. }
  991. // 获取用户分类的的未读消息分类及数量 及分类下最新的消息
  992. type GetUnreadClassCountReq struct {
  993. state protoimpl.MessageState
  994. sizeCache protoimpl.SizeCache
  995. unknownFields protoimpl.UnknownFields
  996. UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"` // 用户id
  997. Appid string `protobuf:"bytes,2,opt,name=appid,proto3" json:"appid,omitempty"` //应用标识
  998. NeedMsg bool `protobuf:"varint,3,opt,name=needMsg,proto3" json:"needMsg,omitempty"` //是否需要分类下的最新一条消息
  999. }
  1000. func (x *GetUnreadClassCountReq) Reset() {
  1001. *x = GetUnreadClassCountReq{}
  1002. if protoimpl.UnsafeEnabled {
  1003. mi := &file_message_proto_msgTypes[16]
  1004. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1005. ms.StoreMessageInfo(mi)
  1006. }
  1007. }
  1008. func (x *GetUnreadClassCountReq) String() string {
  1009. return protoimpl.X.MessageStringOf(x)
  1010. }
  1011. func (*GetUnreadClassCountReq) ProtoMessage() {}
  1012. func (x *GetUnreadClassCountReq) ProtoReflect() protoreflect.Message {
  1013. mi := &file_message_proto_msgTypes[16]
  1014. if protoimpl.UnsafeEnabled && x != nil {
  1015. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1016. if ms.LoadMessageInfo() == nil {
  1017. ms.StoreMessageInfo(mi)
  1018. }
  1019. return ms
  1020. }
  1021. return mi.MessageOf(x)
  1022. }
  1023. // Deprecated: Use GetUnreadClassCountReq.ProtoReflect.Descriptor instead.
  1024. func (*GetUnreadClassCountReq) Descriptor() ([]byte, []int) {
  1025. return file_message_proto_rawDescGZIP(), []int{16}
  1026. }
  1027. func (x *GetUnreadClassCountReq) GetUserId() string {
  1028. if x != nil {
  1029. return x.UserId
  1030. }
  1031. return ""
  1032. }
  1033. func (x *GetUnreadClassCountReq) GetAppid() string {
  1034. if x != nil {
  1035. return x.Appid
  1036. }
  1037. return ""
  1038. }
  1039. func (x *GetUnreadClassCountReq) GetNeedMsg() bool {
  1040. if x != nil {
  1041. return x.NeedMsg
  1042. }
  1043. return false
  1044. }
  1045. type GetUnreadClassCountRes struct {
  1046. state protoimpl.MessageState
  1047. sizeCache protoimpl.SizeCache
  1048. unknownFields protoimpl.UnknownFields
  1049. Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` //状态码
  1050. Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` //响应消息
  1051. Data []*ResCount `protobuf:"bytes,3,rep,name=data,proto3" json:"data,omitempty"` //
  1052. Info []*Messages `protobuf:"bytes,4,rep,name=info,proto3" json:"info,omitempty"` // 每个类型最新消息列表
  1053. }
  1054. func (x *GetUnreadClassCountRes) Reset() {
  1055. *x = GetUnreadClassCountRes{}
  1056. if protoimpl.UnsafeEnabled {
  1057. mi := &file_message_proto_msgTypes[17]
  1058. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1059. ms.StoreMessageInfo(mi)
  1060. }
  1061. }
  1062. func (x *GetUnreadClassCountRes) String() string {
  1063. return protoimpl.X.MessageStringOf(x)
  1064. }
  1065. func (*GetUnreadClassCountRes) ProtoMessage() {}
  1066. func (x *GetUnreadClassCountRes) ProtoReflect() protoreflect.Message {
  1067. mi := &file_message_proto_msgTypes[17]
  1068. if protoimpl.UnsafeEnabled && x != nil {
  1069. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1070. if ms.LoadMessageInfo() == nil {
  1071. ms.StoreMessageInfo(mi)
  1072. }
  1073. return ms
  1074. }
  1075. return mi.MessageOf(x)
  1076. }
  1077. // Deprecated: Use GetUnreadClassCountRes.ProtoReflect.Descriptor instead.
  1078. func (*GetUnreadClassCountRes) Descriptor() ([]byte, []int) {
  1079. return file_message_proto_rawDescGZIP(), []int{17}
  1080. }
  1081. func (x *GetUnreadClassCountRes) GetCode() int64 {
  1082. if x != nil {
  1083. return x.Code
  1084. }
  1085. return 0
  1086. }
  1087. func (x *GetUnreadClassCountRes) GetMessage() string {
  1088. if x != nil {
  1089. return x.Message
  1090. }
  1091. return ""
  1092. }
  1093. func (x *GetUnreadClassCountRes) GetData() []*ResCount {
  1094. if x != nil {
  1095. return x.Data
  1096. }
  1097. return nil
  1098. }
  1099. func (x *GetUnreadClassCountRes) GetInfo() []*Messages {
  1100. if x != nil {
  1101. return x.Info
  1102. }
  1103. return nil
  1104. }
  1105. type GetMsgTypeReq struct {
  1106. state protoimpl.MessageState
  1107. sizeCache protoimpl.SizeCache
  1108. unknownFields protoimpl.UnknownFields
  1109. UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"` // 用户id
  1110. Appid string `protobuf:"bytes,2,opt,name=appid,proto3" json:"appid,omitempty"` //应用标识
  1111. }
  1112. func (x *GetMsgTypeReq) Reset() {
  1113. *x = GetMsgTypeReq{}
  1114. if protoimpl.UnsafeEnabled {
  1115. mi := &file_message_proto_msgTypes[18]
  1116. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1117. ms.StoreMessageInfo(mi)
  1118. }
  1119. }
  1120. func (x *GetMsgTypeReq) String() string {
  1121. return protoimpl.X.MessageStringOf(x)
  1122. }
  1123. func (*GetMsgTypeReq) ProtoMessage() {}
  1124. func (x *GetMsgTypeReq) ProtoReflect() protoreflect.Message {
  1125. mi := &file_message_proto_msgTypes[18]
  1126. if protoimpl.UnsafeEnabled && x != nil {
  1127. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1128. if ms.LoadMessageInfo() == nil {
  1129. ms.StoreMessageInfo(mi)
  1130. }
  1131. return ms
  1132. }
  1133. return mi.MessageOf(x)
  1134. }
  1135. // Deprecated: Use GetMsgTypeReq.ProtoReflect.Descriptor instead.
  1136. func (*GetMsgTypeReq) Descriptor() ([]byte, []int) {
  1137. return file_message_proto_rawDescGZIP(), []int{18}
  1138. }
  1139. func (x *GetMsgTypeReq) GetUserId() string {
  1140. if x != nil {
  1141. return x.UserId
  1142. }
  1143. return ""
  1144. }
  1145. func (x *GetMsgTypeReq) GetAppid() string {
  1146. if x != nil {
  1147. return x.Appid
  1148. }
  1149. return ""
  1150. }
  1151. type GetMsgTypeRes struct {
  1152. state protoimpl.MessageState
  1153. sizeCache protoimpl.SizeCache
  1154. unknownFields protoimpl.UnknownFields
  1155. Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` //状态码
  1156. Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` //响应消息
  1157. Data []int64 `protobuf:"varint,3,rep,packed,name=data,proto3" json:"data,omitempty"` //
  1158. }
  1159. func (x *GetMsgTypeRes) Reset() {
  1160. *x = GetMsgTypeRes{}
  1161. if protoimpl.UnsafeEnabled {
  1162. mi := &file_message_proto_msgTypes[19]
  1163. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1164. ms.StoreMessageInfo(mi)
  1165. }
  1166. }
  1167. func (x *GetMsgTypeRes) String() string {
  1168. return protoimpl.X.MessageStringOf(x)
  1169. }
  1170. func (*GetMsgTypeRes) ProtoMessage() {}
  1171. func (x *GetMsgTypeRes) ProtoReflect() protoreflect.Message {
  1172. mi := &file_message_proto_msgTypes[19]
  1173. if protoimpl.UnsafeEnabled && x != nil {
  1174. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1175. if ms.LoadMessageInfo() == nil {
  1176. ms.StoreMessageInfo(mi)
  1177. }
  1178. return ms
  1179. }
  1180. return mi.MessageOf(x)
  1181. }
  1182. // Deprecated: Use GetMsgTypeRes.ProtoReflect.Descriptor instead.
  1183. func (*GetMsgTypeRes) Descriptor() ([]byte, []int) {
  1184. return file_message_proto_rawDescGZIP(), []int{19}
  1185. }
  1186. func (x *GetMsgTypeRes) GetCode() int64 {
  1187. if x != nil {
  1188. return x.Code
  1189. }
  1190. return 0
  1191. }
  1192. func (x *GetMsgTypeRes) GetMessage() string {
  1193. if x != nil {
  1194. return x.Message
  1195. }
  1196. return ""
  1197. }
  1198. func (x *GetMsgTypeRes) GetData() []int64 {
  1199. if x != nil {
  1200. return x.Data
  1201. }
  1202. return nil
  1203. }
  1204. //更新分类下消息状态 已读、未读
  1205. type UpdateMessageReadReq struct {
  1206. state protoimpl.MessageState
  1207. sizeCache protoimpl.SizeCache
  1208. unknownFields protoimpl.UnknownFields
  1209. MsgType int64 `protobuf:"varint,1,opt,name=msgType,proto3" json:"msgType,omitempty"`
  1210. ReceiveUserid string `protobuf:"bytes,2,opt,name=receiveUserid,proto3" json:"receiveUserid,omitempty"`
  1211. AppId string `protobuf:"bytes,3,opt,name=appId,proto3" json:"appId,omitempty"`
  1212. }
  1213. func (x *UpdateMessageReadReq) Reset() {
  1214. *x = UpdateMessageReadReq{}
  1215. if protoimpl.UnsafeEnabled {
  1216. mi := &file_message_proto_msgTypes[20]
  1217. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1218. ms.StoreMessageInfo(mi)
  1219. }
  1220. }
  1221. func (x *UpdateMessageReadReq) String() string {
  1222. return protoimpl.X.MessageStringOf(x)
  1223. }
  1224. func (*UpdateMessageReadReq) ProtoMessage() {}
  1225. func (x *UpdateMessageReadReq) ProtoReflect() protoreflect.Message {
  1226. mi := &file_message_proto_msgTypes[20]
  1227. if protoimpl.UnsafeEnabled && x != nil {
  1228. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1229. if ms.LoadMessageInfo() == nil {
  1230. ms.StoreMessageInfo(mi)
  1231. }
  1232. return ms
  1233. }
  1234. return mi.MessageOf(x)
  1235. }
  1236. // Deprecated: Use UpdateMessageReadReq.ProtoReflect.Descriptor instead.
  1237. func (*UpdateMessageReadReq) Descriptor() ([]byte, []int) {
  1238. return file_message_proto_rawDescGZIP(), []int{20}
  1239. }
  1240. func (x *UpdateMessageReadReq) GetMsgType() int64 {
  1241. if x != nil {
  1242. return x.MsgType
  1243. }
  1244. return 0
  1245. }
  1246. func (x *UpdateMessageReadReq) GetReceiveUserid() string {
  1247. if x != nil {
  1248. return x.ReceiveUserid
  1249. }
  1250. return ""
  1251. }
  1252. func (x *UpdateMessageReadReq) GetAppId() string {
  1253. if x != nil {
  1254. return x.AppId
  1255. }
  1256. return ""
  1257. }
  1258. type UpdateMessageReadResp struct {
  1259. state protoimpl.MessageState
  1260. sizeCache protoimpl.SizeCache
  1261. unknownFields protoimpl.UnknownFields
  1262. Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` //状态码
  1263. Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` //响应消息
  1264. Status int64 `protobuf:"varint,3,opt,name=status,proto3" json:"status,omitempty"`
  1265. }
  1266. func (x *UpdateMessageReadResp) Reset() {
  1267. *x = UpdateMessageReadResp{}
  1268. if protoimpl.UnsafeEnabled {
  1269. mi := &file_message_proto_msgTypes[21]
  1270. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1271. ms.StoreMessageInfo(mi)
  1272. }
  1273. }
  1274. func (x *UpdateMessageReadResp) String() string {
  1275. return protoimpl.X.MessageStringOf(x)
  1276. }
  1277. func (*UpdateMessageReadResp) ProtoMessage() {}
  1278. func (x *UpdateMessageReadResp) ProtoReflect() protoreflect.Message {
  1279. mi := &file_message_proto_msgTypes[21]
  1280. if protoimpl.UnsafeEnabled && x != nil {
  1281. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1282. if ms.LoadMessageInfo() == nil {
  1283. ms.StoreMessageInfo(mi)
  1284. }
  1285. return ms
  1286. }
  1287. return mi.MessageOf(x)
  1288. }
  1289. // Deprecated: Use UpdateMessageReadResp.ProtoReflect.Descriptor instead.
  1290. func (*UpdateMessageReadResp) Descriptor() ([]byte, []int) {
  1291. return file_message_proto_rawDescGZIP(), []int{21}
  1292. }
  1293. func (x *UpdateMessageReadResp) GetCode() int64 {
  1294. if x != nil {
  1295. return x.Code
  1296. }
  1297. return 0
  1298. }
  1299. func (x *UpdateMessageReadResp) GetMessage() string {
  1300. if x != nil {
  1301. return x.Message
  1302. }
  1303. return ""
  1304. }
  1305. func (x *UpdateMessageReadResp) GetStatus() int64 {
  1306. if x != nil {
  1307. return x.Status
  1308. }
  1309. return 0
  1310. }
  1311. var File_message_proto protoreflect.FileDescriptor
  1312. var file_message_proto_rawDesc = []byte{
  1313. 0x0a, 0x0d, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
  1314. 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0xa0, 0x02, 0x0a, 0x0e, 0x53, 0x65, 0x6e,
  1315. 0x64, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x24, 0x0a, 0x0d, 0x72,
  1316. 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01,
  1317. 0x28, 0x09, 0x52, 0x0d, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x55, 0x73, 0x65, 0x72, 0x49,
  1318. 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x4e, 0x61, 0x6d, 0x65,
  1319. 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x4e,
  1320. 0x61, 0x6d, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x73, 0x65, 0x6e, 0x64, 0x55, 0x73, 0x65, 0x72, 0x49,
  1321. 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x65, 0x6e, 0x64, 0x55, 0x73, 0x65,
  1322. 0x72, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x65, 0x6e, 0x64, 0x4e, 0x61, 0x6d, 0x65, 0x18,
  1323. 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x73, 0x65, 0x6e, 0x64, 0x4e, 0x61, 0x6d, 0x65, 0x12,
  1324. 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05,
  1325. 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74,
  1326. 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x12,
  1327. 0x18, 0x0a, 0x07, 0x6d, 0x73, 0x67, 0x54, 0x79, 0x70, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03,
  1328. 0x52, 0x07, 0x6d, 0x73, 0x67, 0x54, 0x79, 0x70, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6c, 0x69, 0x6e,
  1329. 0x6b, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6c, 0x69, 0x6e, 0x6b, 0x12, 0x16, 0x0a,
  1330. 0x06, 0x63, 0x69, 0x74, 0x65, 0x49, 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x63,
  1331. 0x69, 0x74, 0x65, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x18, 0x0a,
  1332. 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x22, 0x5f, 0x0a, 0x17, 0x43,
  1333. 0x68, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x65, 0x61, 0x64, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52,
  1334. 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01,
  1335. 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1e, 0x0a, 0x0a, 0x72, 0x65, 0x61, 0x64, 0x53, 0x74,
  1336. 0x61, 0x74, 0x75, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x72, 0x65, 0x61, 0x64,
  1337. 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x18,
  1338. 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x22, 0x3a, 0x0a, 0x08,
  1339. 0x52, 0x65, 0x73, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x73, 0x67, 0x54,
  1340. 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x6d, 0x73, 0x67, 0x54, 0x79,
  1341. 0x70, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28,
  1342. 0x03, 0x52, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x42, 0x0a, 0x1a, 0x44, 0x65, 0x6c, 0x65,
  1343. 0x74, 0x65, 0x53, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52,
  1344. 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01,
  1345. 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x18,
  1346. 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x22, 0x44, 0x0a, 0x1c,
  1347. 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x70, 0x6c, 0x65, 0x4d, 0x65,
  1348. 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02,
  1349. 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05,
  1350. 0x61, 0x70, 0x70, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x70, 0x70,
  1351. 0x69, 0x64, 0x22, 0x45, 0x0a, 0x15, 0x47, 0x65, 0x74, 0x55, 0x6e, 0x72, 0x65, 0x61, 0x64, 0x43,
  1352. 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x75,
  1353. 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65,
  1354. 0x72, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01,
  1355. 0x28, 0x09, 0x52, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x22, 0x38, 0x0a, 0x08, 0x52, 0x65, 0x73,
  1356. 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20,
  1357. 0x01, 0x28, 0x03, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73,
  1358. 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73,
  1359. 0x61, 0x67, 0x65, 0x22, 0x5c, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x55, 0x6e, 0x72, 0x65, 0x61, 0x64,
  1360. 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a,
  1361. 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x63, 0x6f, 0x64,
  1362. 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01,
  1363. 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x63,
  1364. 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x63, 0x6f, 0x75, 0x6e,
  1365. 0x74, 0x22, 0xc6, 0x01, 0x0a, 0x0e, 0x46, 0x69, 0x6e, 0x64, 0x55, 0x73, 0x65, 0x72, 0x4d, 0x73,
  1366. 0x67, 0x52, 0x65, 0x71, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01,
  1367. 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x24, 0x0a, 0x0d,
  1368. 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x02, 0x20,
  1369. 0x01, 0x28, 0x09, 0x52, 0x0d, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x55, 0x73, 0x65, 0x72,
  1370. 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28,
  1371. 0x09, 0x52, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x66, 0x66, 0x53,
  1372. 0x65, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x6f, 0x66, 0x66, 0x53, 0x65, 0x74,
  1373. 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x18, 0x05, 0x20, 0x01,
  1374. 0x28, 0x03, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x18, 0x0a, 0x07,
  1375. 0x6d, 0x73, 0x67, 0x54, 0x79, 0x70, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x6d,
  1376. 0x73, 0x67, 0x54, 0x79, 0x70, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x72, 0x65, 0x61, 0x64, 0x18, 0x07,
  1377. 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x72, 0x65, 0x61, 0x64, 0x22, 0xe2, 0x02, 0x0a, 0x08, 0x4d,
  1378. 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x12, 0x24, 0x0a, 0x0d, 0x72, 0x65, 0x63, 0x65, 0x69,
  1379. 0x76, 0x65, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d,
  1380. 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x20, 0x0a,
  1381. 0x0b, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01,
  1382. 0x28, 0x09, 0x52, 0x0b, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12,
  1383. 0x1e, 0x0a, 0x0a, 0x73, 0x65, 0x6e, 0x64, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x03, 0x20,
  1384. 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x65, 0x6e, 0x64, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12,
  1385. 0x1a, 0x0a, 0x08, 0x73, 0x65, 0x6e, 0x64, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28,
  1386. 0x09, 0x52, 0x08, 0x73, 0x65, 0x6e, 0x64, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x74,
  1387. 0x69, 0x74, 0x6c, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c,
  1388. 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x18, 0x06, 0x20, 0x01,
  1389. 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x6d,
  1390. 0x73, 0x67, 0x54, 0x79, 0x70, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x6d, 0x73,
  1391. 0x67, 0x54, 0x79, 0x70, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6c, 0x69, 0x6e, 0x6b, 0x18, 0x08, 0x20,
  1392. 0x01, 0x28, 0x09, 0x52, 0x04, 0x6c, 0x69, 0x6e, 0x6b, 0x12, 0x16, 0x0a, 0x06, 0x63, 0x69, 0x74,
  1393. 0x65, 0x49, 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x63, 0x69, 0x74, 0x65, 0x49,
  1394. 0x64, 0x12, 0x16, 0x0a, 0x06, 0x69, 0x73, 0x52, 0x65, 0x61, 0x64, 0x18, 0x0a, 0x20, 0x01, 0x28,
  1395. 0x03, 0x52, 0x06, 0x69, 0x73, 0x52, 0x65, 0x61, 0x64, 0x12, 0x1e, 0x0a, 0x0a, 0x63, 0x72, 0x65,
  1396. 0x61, 0x74, 0x65, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63,
  1397. 0x72, 0x65, 0x61, 0x74, 0x65, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70,
  1398. 0x69, 0x64, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x12,
  1399. 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22,
  1400. 0x7b, 0x0a, 0x0e, 0x46, 0x69, 0x6e, 0x64, 0x55, 0x73, 0x65, 0x72, 0x4d, 0x73, 0x67, 0x52, 0x65,
  1401. 0x73, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52,
  1402. 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
  1403. 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12,
  1404. 0x25, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x11, 0x2e,
  1405. 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73,
  1406. 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18,
  1407. 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x60, 0x0a, 0x16,
  1408. 0x47, 0x65, 0x74, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x55, 0x6e, 0x72, 0x65, 0x61, 0x64, 0x43, 0x6f,
  1409. 0x75, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64,
  1410. 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x18,
  1411. 0x0a, 0x07, 0x6d, 0x73, 0x67, 0x54, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52,
  1412. 0x07, 0x6d, 0x73, 0x67, 0x54, 0x79, 0x70, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70, 0x69,
  1413. 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x22, 0x22,
  1414. 0x0a, 0x10, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x52,
  1415. 0x65, 0x71, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02,
  1416. 0x69, 0x64, 0x22, 0x68, 0x0a, 0x11, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x44, 0x65, 0x74,
  1417. 0x61, 0x69, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18,
  1418. 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6d,
  1419. 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65,
  1420. 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x25, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20,
  1421. 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x4d, 0x65,
  1422. 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x73, 0x0a, 0x11,
  1423. 0x47, 0x65, 0x74, 0x4c, 0x61, 0x73, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65,
  1424. 0x71, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
  1425. 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x73, 0x67,
  1426. 0x54, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x6d, 0x73, 0x67, 0x54,
  1427. 0x79, 0x70, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01,
  1428. 0x28, 0x09, 0x52, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x69, 0x73, 0x52,
  1429. 0x65, 0x61, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x69, 0x73, 0x52, 0x65, 0x61,
  1430. 0x64, 0x22, 0x68, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x4c, 0x61, 0x73, 0x74, 0x4d, 0x65, 0x73, 0x73,
  1431. 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01,
  1432. 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65,
  1433. 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73,
  1434. 0x73, 0x61, 0x67, 0x65, 0x12, 0x25, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x01,
  1435. 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x4d, 0x65, 0x73,
  1436. 0x73, 0x61, 0x67, 0x65, 0x73, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x60, 0x0a, 0x16, 0x47,
  1437. 0x65, 0x74, 0x55, 0x6e, 0x72, 0x65, 0x61, 0x64, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x43, 0x6f, 0x75,
  1438. 0x6e, 0x74, 0x52, 0x65, 0x71, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18,
  1439. 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x14, 0x0a,
  1440. 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x70,
  1441. 0x70, 0x69, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x6e, 0x65, 0x65, 0x64, 0x4d, 0x73, 0x67, 0x18, 0x03,
  1442. 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x6e, 0x65, 0x65, 0x64, 0x4d, 0x73, 0x67, 0x22, 0x94, 0x01,
  1443. 0x0a, 0x16, 0x47, 0x65, 0x74, 0x55, 0x6e, 0x72, 0x65, 0x61, 0x64, 0x43, 0x6c, 0x61, 0x73, 0x73,
  1444. 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65,
  1445. 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x18, 0x0a, 0x07,
  1446. 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d,
  1447. 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x25, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03,
  1448. 0x20, 0x03, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x52,
  1449. 0x65, 0x73, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x25, 0x0a,
  1450. 0x04, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x6d, 0x65,
  1451. 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x52, 0x04,
  1452. 0x69, 0x6e, 0x66, 0x6f, 0x22, 0x3d, 0x0a, 0x0d, 0x47, 0x65, 0x74, 0x4d, 0x73, 0x67, 0x54, 0x79,
  1453. 0x70, 0x65, 0x52, 0x65, 0x71, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18,
  1454. 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x14, 0x0a,
  1455. 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x70,
  1456. 0x70, 0x69, 0x64, 0x22, 0x51, 0x0a, 0x0d, 0x47, 0x65, 0x74, 0x4d, 0x73, 0x67, 0x54, 0x79, 0x70,
  1457. 0x65, 0x52, 0x65, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01,
  1458. 0x28, 0x03, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73,
  1459. 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61,
  1460. 0x67, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x03, 0x28, 0x03,
  1461. 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x6c, 0x0a, 0x14, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65,
  1462. 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x61, 0x64, 0x52, 0x65, 0x71, 0x12, 0x18,
  1463. 0x0a, 0x07, 0x6d, 0x73, 0x67, 0x54, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52,
  1464. 0x07, 0x6d, 0x73, 0x67, 0x54, 0x79, 0x70, 0x65, 0x12, 0x24, 0x0a, 0x0d, 0x72, 0x65, 0x63, 0x65,
  1465. 0x69, 0x76, 0x65, 0x55, 0x73, 0x65, 0x72, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,
  1466. 0x0d, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x55, 0x73, 0x65, 0x72, 0x69, 0x64, 0x12, 0x14,
  1467. 0x0a, 0x05, 0x61, 0x70, 0x70, 0x49, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61,
  1468. 0x70, 0x70, 0x49, 0x64, 0x22, 0x5d, 0x0a, 0x15, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x65,
  1469. 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x61, 0x64, 0x52, 0x65, 0x73, 0x70, 0x12, 0x12, 0x0a,
  1470. 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x63, 0x6f, 0x64,
  1471. 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01,
  1472. 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x73,
  1473. 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x73, 0x74, 0x61,
  1474. 0x74, 0x75, 0x73, 0x32, 0x9d, 0x07, 0x0a, 0x07, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12,
  1475. 0x47, 0x0a, 0x10, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x65, 0x61, 0x64, 0x53, 0x74, 0x61,
  1476. 0x74, 0x75, 0x73, 0x12, 0x20, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x43, 0x68,
  1477. 0x61, 0x6e, 0x67, 0x65, 0x52, 0x65, 0x61, 0x64, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65,
  1478. 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x11, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e,
  1479. 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x39, 0x0a, 0x0b, 0x53, 0x65, 0x6e, 0x64,
  1480. 0x55, 0x73, 0x65, 0x72, 0x4d, 0x73, 0x67, 0x12, 0x17, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67,
  1481. 0x65, 0x2e, 0x53, 0x65, 0x6e, 0x64, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
  1482. 0x1a, 0x11, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f,
  1483. 0x6e, 0x73, 0x65, 0x12, 0x4d, 0x0a, 0x13, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53, 0x69, 0x6e,
  1484. 0x67, 0x6c, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x23, 0x2e, 0x6d, 0x65, 0x73,
  1485. 0x73, 0x61, 0x67, 0x65, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53, 0x69, 0x6e, 0x67, 0x6c,
  1486. 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
  1487. 0x11, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
  1488. 0x73, 0x65, 0x12, 0x51, 0x0a, 0x15, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4d, 0x75, 0x6c, 0x74,
  1489. 0x69, 0x70, 0x6c, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x25, 0x2e, 0x6d, 0x65,
  1490. 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4d, 0x75, 0x6c, 0x74,
  1491. 0x69, 0x70, 0x6c, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65,
  1492. 0x73, 0x74, 0x1a, 0x11, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x52, 0x65, 0x73,
  1493. 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x51, 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x55, 0x6e, 0x72, 0x65,
  1494. 0x61, 0x64, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x1e, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67,
  1495. 0x65, 0x2e, 0x47, 0x65, 0x74, 0x55, 0x6e, 0x72, 0x65, 0x61, 0x64, 0x43, 0x6f, 0x75, 0x6e, 0x74,
  1496. 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67,
  1497. 0x65, 0x2e, 0x47, 0x65, 0x74, 0x55, 0x6e, 0x72, 0x65, 0x61, 0x64, 0x43, 0x6f, 0x75, 0x6e, 0x74,
  1498. 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3f, 0x0a, 0x0b, 0x46, 0x69, 0x6e, 0x64,
  1499. 0x55, 0x73, 0x65, 0x72, 0x4d, 0x73, 0x67, 0x12, 0x17, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67,
  1500. 0x65, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x55, 0x73, 0x65, 0x72, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x71,
  1501. 0x1a, 0x17, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x55,
  1502. 0x73, 0x65, 0x72, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x73, 0x12, 0x57, 0x0a, 0x13, 0x47, 0x65, 0x74,
  1503. 0x43, 0x6c, 0x61, 0x73, 0x73, 0x55, 0x6e, 0x72, 0x65, 0x61, 0x64, 0x43, 0x6f, 0x75, 0x6e, 0x74,
  1504. 0x12, 0x1f, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x47, 0x65, 0x74, 0x43, 0x6c,
  1505. 0x61, 0x73, 0x73, 0x55, 0x6e, 0x72, 0x65, 0x61, 0x64, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65,
  1506. 0x71, 0x1a, 0x1f, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x47, 0x65, 0x74, 0x55,
  1507. 0x6e, 0x72, 0x65, 0x61, 0x64, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
  1508. 0x73, 0x65, 0x12, 0x48, 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x4c, 0x61, 0x73, 0x74, 0x4d, 0x65, 0x73,
  1509. 0x73, 0x61, 0x67, 0x65, 0x12, 0x1a, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x47,
  1510. 0x65, 0x74, 0x4c, 0x61, 0x73, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71,
  1511. 0x1a, 0x1a, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x47, 0x65, 0x74, 0x4c, 0x61,
  1512. 0x73, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x12, 0x4a, 0x0a, 0x11,
  1513. 0x46, 0x69, 0x6e, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x44, 0x65, 0x74, 0x61, 0x69,
  1514. 0x6c, 0x12, 0x19, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x4d, 0x65, 0x73, 0x73,
  1515. 0x61, 0x67, 0x65, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x52, 0x65, 0x71, 0x1a, 0x1a, 0x2e, 0x6d,
  1516. 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x44, 0x65,
  1517. 0x74, 0x61, 0x69, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x12, 0x57, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x55,
  1518. 0x6e, 0x72, 0x65, 0x61, 0x64, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12,
  1519. 0x1f, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x47, 0x65, 0x74, 0x55, 0x6e, 0x72,
  1520. 0x65, 0x61, 0x64, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x71,
  1521. 0x1a, 0x1f, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x47, 0x65, 0x74, 0x55, 0x6e,
  1522. 0x72, 0x65, 0x61, 0x64, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65,
  1523. 0x73, 0x12, 0x3c, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x4d, 0x73, 0x67, 0x54, 0x79, 0x70, 0x65, 0x12,
  1524. 0x16, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x47, 0x65, 0x74, 0x4d, 0x73, 0x67,
  1525. 0x54, 0x79, 0x70, 0x65, 0x52, 0x65, 0x71, 0x1a, 0x16, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67,
  1526. 0x65, 0x2e, 0x47, 0x65, 0x74, 0x4d, 0x73, 0x67, 0x54, 0x79, 0x70, 0x65, 0x52, 0x65, 0x73, 0x12,
  1527. 0x52, 0x0a, 0x11, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
  1528. 0x52, 0x65, 0x61, 0x64, 0x12, 0x1d, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x55,
  1529. 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x61, 0x64,
  1530. 0x52, 0x65, 0x71, 0x1a, 0x1e, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x55, 0x70,
  1531. 0x64, 0x61, 0x74, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x61, 0x64, 0x52,
  1532. 0x65, 0x73, 0x70, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  1533. }
  1534. var (
  1535. file_message_proto_rawDescOnce sync.Once
  1536. file_message_proto_rawDescData = file_message_proto_rawDesc
  1537. )
  1538. func file_message_proto_rawDescGZIP() []byte {
  1539. file_message_proto_rawDescOnce.Do(func() {
  1540. file_message_proto_rawDescData = protoimpl.X.CompressGZIP(file_message_proto_rawDescData)
  1541. })
  1542. return file_message_proto_rawDescData
  1543. }
  1544. var file_message_proto_msgTypes = make([]protoimpl.MessageInfo, 22)
  1545. var file_message_proto_goTypes = []interface{}{
  1546. (*SendMsgRequest)(nil), // 0: message.SendMsgRequest
  1547. (*ChangeReadStatusRequest)(nil), // 1: message.ChangeReadStatusRequest
  1548. (*ResCount)(nil), // 2: message.ResCount
  1549. (*DeleteSingleMessageRequest)(nil), // 3: message.DeleteSingleMessageRequest
  1550. (*DeleteMultipleMessageRequest)(nil), // 4: message.DeleteMultipleMessageRequest
  1551. (*GetUnreadCountRequest)(nil), // 5: message.GetUnreadCountRequest
  1552. (*Response)(nil), // 6: message.Response
  1553. (*GetUnreadCountResponse)(nil), // 7: message.GetUnreadCountResponse
  1554. (*FindUserMsgReq)(nil), // 8: message.FindUserMsgReq
  1555. (*Messages)(nil), // 9: message.Messages
  1556. (*FindUserMsgRes)(nil), // 10: message.FindUserMsgRes
  1557. (*GetClassUnreadCountReq)(nil), // 11: message.GetClassUnreadCountReq
  1558. (*MessageDetailReq)(nil), // 12: message.MessageDetailReq
  1559. (*MessageDetailResp)(nil), // 13: message.MessageDetailResp
  1560. (*GetLastMessageReq)(nil), // 14: message.GetLastMessageReq
  1561. (*GetLastMessageRes)(nil), // 15: message.GetLastMessageRes
  1562. (*GetUnreadClassCountReq)(nil), // 16: message.GetUnreadClassCountReq
  1563. (*GetUnreadClassCountRes)(nil), // 17: message.GetUnreadClassCountRes
  1564. (*GetMsgTypeReq)(nil), // 18: message.GetMsgTypeReq
  1565. (*GetMsgTypeRes)(nil), // 19: message.GetMsgTypeRes
  1566. (*UpdateMessageReadReq)(nil), // 20: message.UpdateMessageReadReq
  1567. (*UpdateMessageReadResp)(nil), // 21: message.UpdateMessageReadResp
  1568. }
  1569. var file_message_proto_depIdxs = []int32{
  1570. 9, // 0: message.FindUserMsgRes.data:type_name -> message.Messages
  1571. 9, // 1: message.MessageDetailResp.data:type_name -> message.Messages
  1572. 9, // 2: message.GetLastMessageRes.data:type_name -> message.Messages
  1573. 2, // 3: message.GetUnreadClassCountRes.data:type_name -> message.ResCount
  1574. 9, // 4: message.GetUnreadClassCountRes.info:type_name -> message.Messages
  1575. 1, // 5: message.Message.ChangeReadStatus:input_type -> message.ChangeReadStatusRequest
  1576. 0, // 6: message.Message.SendUserMsg:input_type -> message.SendMsgRequest
  1577. 3, // 7: message.Message.DeleteSingleMessage:input_type -> message.DeleteSingleMessageRequest
  1578. 4, // 8: message.Message.DeleteMultipleMessage:input_type -> message.DeleteMultipleMessageRequest
  1579. 5, // 9: message.Message.GetUnreadCount:input_type -> message.GetUnreadCountRequest
  1580. 8, // 10: message.Message.FindUserMsg:input_type -> message.FindUserMsgReq
  1581. 11, // 11: message.Message.GetClassUnreadCount:input_type -> message.GetClassUnreadCountReq
  1582. 14, // 12: message.Message.GetLastMessage:input_type -> message.GetLastMessageReq
  1583. 12, // 13: message.Message.FindMessageDetail:input_type -> message.MessageDetailReq
  1584. 16, // 14: message.Message.GetUnreadClassCount:input_type -> message.GetUnreadClassCountReq
  1585. 18, // 15: message.Message.GetMsgType:input_type -> message.GetMsgTypeReq
  1586. 20, // 16: message.Message.UpdateMessageRead:input_type -> message.UpdateMessageReadReq
  1587. 6, // 17: message.Message.ChangeReadStatus:output_type -> message.Response
  1588. 6, // 18: message.Message.SendUserMsg:output_type -> message.Response
  1589. 6, // 19: message.Message.DeleteSingleMessage:output_type -> message.Response
  1590. 6, // 20: message.Message.DeleteMultipleMessage:output_type -> message.Response
  1591. 7, // 21: message.Message.GetUnreadCount:output_type -> message.GetUnreadCountResponse
  1592. 10, // 22: message.Message.FindUserMsg:output_type -> message.FindUserMsgRes
  1593. 7, // 23: message.Message.GetClassUnreadCount:output_type -> message.GetUnreadCountResponse
  1594. 15, // 24: message.Message.GetLastMessage:output_type -> message.GetLastMessageRes
  1595. 13, // 25: message.Message.FindMessageDetail:output_type -> message.MessageDetailResp
  1596. 17, // 26: message.Message.GetUnreadClassCount:output_type -> message.GetUnreadClassCountRes
  1597. 19, // 27: message.Message.GetMsgType:output_type -> message.GetMsgTypeRes
  1598. 21, // 28: message.Message.UpdateMessageRead:output_type -> message.UpdateMessageReadResp
  1599. 17, // [17:29] is the sub-list for method output_type
  1600. 5, // [5:17] is the sub-list for method input_type
  1601. 5, // [5:5] is the sub-list for extension type_name
  1602. 5, // [5:5] is the sub-list for extension extendee
  1603. 0, // [0:5] is the sub-list for field type_name
  1604. }
  1605. func init() { file_message_proto_init() }
  1606. func file_message_proto_init() {
  1607. if File_message_proto != nil {
  1608. return
  1609. }
  1610. if !protoimpl.UnsafeEnabled {
  1611. file_message_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  1612. switch v := v.(*SendMsgRequest); i {
  1613. case 0:
  1614. return &v.state
  1615. case 1:
  1616. return &v.sizeCache
  1617. case 2:
  1618. return &v.unknownFields
  1619. default:
  1620. return nil
  1621. }
  1622. }
  1623. file_message_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  1624. switch v := v.(*ChangeReadStatusRequest); i {
  1625. case 0:
  1626. return &v.state
  1627. case 1:
  1628. return &v.sizeCache
  1629. case 2:
  1630. return &v.unknownFields
  1631. default:
  1632. return nil
  1633. }
  1634. }
  1635. file_message_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  1636. switch v := v.(*ResCount); i {
  1637. case 0:
  1638. return &v.state
  1639. case 1:
  1640. return &v.sizeCache
  1641. case 2:
  1642. return &v.unknownFields
  1643. default:
  1644. return nil
  1645. }
  1646. }
  1647. file_message_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
  1648. switch v := v.(*DeleteSingleMessageRequest); i {
  1649. case 0:
  1650. return &v.state
  1651. case 1:
  1652. return &v.sizeCache
  1653. case 2:
  1654. return &v.unknownFields
  1655. default:
  1656. return nil
  1657. }
  1658. }
  1659. file_message_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
  1660. switch v := v.(*DeleteMultipleMessageRequest); i {
  1661. case 0:
  1662. return &v.state
  1663. case 1:
  1664. return &v.sizeCache
  1665. case 2:
  1666. return &v.unknownFields
  1667. default:
  1668. return nil
  1669. }
  1670. }
  1671. file_message_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
  1672. switch v := v.(*GetUnreadCountRequest); i {
  1673. case 0:
  1674. return &v.state
  1675. case 1:
  1676. return &v.sizeCache
  1677. case 2:
  1678. return &v.unknownFields
  1679. default:
  1680. return nil
  1681. }
  1682. }
  1683. file_message_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
  1684. switch v := v.(*Response); i {
  1685. case 0:
  1686. return &v.state
  1687. case 1:
  1688. return &v.sizeCache
  1689. case 2:
  1690. return &v.unknownFields
  1691. default:
  1692. return nil
  1693. }
  1694. }
  1695. file_message_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
  1696. switch v := v.(*GetUnreadCountResponse); i {
  1697. case 0:
  1698. return &v.state
  1699. case 1:
  1700. return &v.sizeCache
  1701. case 2:
  1702. return &v.unknownFields
  1703. default:
  1704. return nil
  1705. }
  1706. }
  1707. file_message_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
  1708. switch v := v.(*FindUserMsgReq); i {
  1709. case 0:
  1710. return &v.state
  1711. case 1:
  1712. return &v.sizeCache
  1713. case 2:
  1714. return &v.unknownFields
  1715. default:
  1716. return nil
  1717. }
  1718. }
  1719. file_message_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
  1720. switch v := v.(*Messages); i {
  1721. case 0:
  1722. return &v.state
  1723. case 1:
  1724. return &v.sizeCache
  1725. case 2:
  1726. return &v.unknownFields
  1727. default:
  1728. return nil
  1729. }
  1730. }
  1731. file_message_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
  1732. switch v := v.(*FindUserMsgRes); i {
  1733. case 0:
  1734. return &v.state
  1735. case 1:
  1736. return &v.sizeCache
  1737. case 2:
  1738. return &v.unknownFields
  1739. default:
  1740. return nil
  1741. }
  1742. }
  1743. file_message_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
  1744. switch v := v.(*GetClassUnreadCountReq); i {
  1745. case 0:
  1746. return &v.state
  1747. case 1:
  1748. return &v.sizeCache
  1749. case 2:
  1750. return &v.unknownFields
  1751. default:
  1752. return nil
  1753. }
  1754. }
  1755. file_message_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} {
  1756. switch v := v.(*MessageDetailReq); i {
  1757. case 0:
  1758. return &v.state
  1759. case 1:
  1760. return &v.sizeCache
  1761. case 2:
  1762. return &v.unknownFields
  1763. default:
  1764. return nil
  1765. }
  1766. }
  1767. file_message_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} {
  1768. switch v := v.(*MessageDetailResp); i {
  1769. case 0:
  1770. return &v.state
  1771. case 1:
  1772. return &v.sizeCache
  1773. case 2:
  1774. return &v.unknownFields
  1775. default:
  1776. return nil
  1777. }
  1778. }
  1779. file_message_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} {
  1780. switch v := v.(*GetLastMessageReq); i {
  1781. case 0:
  1782. return &v.state
  1783. case 1:
  1784. return &v.sizeCache
  1785. case 2:
  1786. return &v.unknownFields
  1787. default:
  1788. return nil
  1789. }
  1790. }
  1791. file_message_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} {
  1792. switch v := v.(*GetLastMessageRes); i {
  1793. case 0:
  1794. return &v.state
  1795. case 1:
  1796. return &v.sizeCache
  1797. case 2:
  1798. return &v.unknownFields
  1799. default:
  1800. return nil
  1801. }
  1802. }
  1803. file_message_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} {
  1804. switch v := v.(*GetUnreadClassCountReq); i {
  1805. case 0:
  1806. return &v.state
  1807. case 1:
  1808. return &v.sizeCache
  1809. case 2:
  1810. return &v.unknownFields
  1811. default:
  1812. return nil
  1813. }
  1814. }
  1815. file_message_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} {
  1816. switch v := v.(*GetUnreadClassCountRes); i {
  1817. case 0:
  1818. return &v.state
  1819. case 1:
  1820. return &v.sizeCache
  1821. case 2:
  1822. return &v.unknownFields
  1823. default:
  1824. return nil
  1825. }
  1826. }
  1827. file_message_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} {
  1828. switch v := v.(*GetMsgTypeReq); i {
  1829. case 0:
  1830. return &v.state
  1831. case 1:
  1832. return &v.sizeCache
  1833. case 2:
  1834. return &v.unknownFields
  1835. default:
  1836. return nil
  1837. }
  1838. }
  1839. file_message_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} {
  1840. switch v := v.(*GetMsgTypeRes); i {
  1841. case 0:
  1842. return &v.state
  1843. case 1:
  1844. return &v.sizeCache
  1845. case 2:
  1846. return &v.unknownFields
  1847. default:
  1848. return nil
  1849. }
  1850. }
  1851. file_message_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} {
  1852. switch v := v.(*UpdateMessageReadReq); i {
  1853. case 0:
  1854. return &v.state
  1855. case 1:
  1856. return &v.sizeCache
  1857. case 2:
  1858. return &v.unknownFields
  1859. default:
  1860. return nil
  1861. }
  1862. }
  1863. file_message_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} {
  1864. switch v := v.(*UpdateMessageReadResp); i {
  1865. case 0:
  1866. return &v.state
  1867. case 1:
  1868. return &v.sizeCache
  1869. case 2:
  1870. return &v.unknownFields
  1871. default:
  1872. return nil
  1873. }
  1874. }
  1875. }
  1876. type x struct{}
  1877. out := protoimpl.TypeBuilder{
  1878. File: protoimpl.DescBuilder{
  1879. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  1880. RawDescriptor: file_message_proto_rawDesc,
  1881. NumEnums: 0,
  1882. NumMessages: 22,
  1883. NumExtensions: 0,
  1884. NumServices: 1,
  1885. },
  1886. GoTypes: file_message_proto_goTypes,
  1887. DependencyIndexes: file_message_proto_depIdxs,
  1888. MessageInfos: file_message_proto_msgTypes,
  1889. }.Build()
  1890. File_message_proto = out.File
  1891. file_message_proto_rawDesc = nil
  1892. file_message_proto_goTypes = nil
  1893. file_message_proto_depIdxs = nil
  1894. }
  1895. // Reference imports to suppress errors if they are not otherwise used.
  1896. var _ context.Context
  1897. var _ grpc.ClientConnInterface
  1898. // This is a compile-time assertion to ensure that this generated file
  1899. // is compatible with the grpc package it is being compiled against.
  1900. const _ = grpc.SupportPackageIsVersion6
  1901. // MessageClient is the client API for Message service.
  1902. //
  1903. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  1904. type MessageClient interface {
  1905. // 修改消息阅读状态
  1906. ChangeReadStatus(ctx context.Context, in *ChangeReadStatusRequest, opts ...grpc.CallOption) (*Response, error)
  1907. //指定用户发消息
  1908. SendUserMsg(ctx context.Context, in *SendMsgRequest, opts ...grpc.CallOption) (*Response, error)
  1909. // 删除单一消息
  1910. DeleteSingleMessage(ctx context.Context, in *DeleteSingleMessageRequest, opts ...grpc.CallOption) (*Response, error)
  1911. // 删除多条消息
  1912. DeleteMultipleMessage(ctx context.Context, in *DeleteMultipleMessageRequest, opts ...grpc.CallOption) (*Response, error)
  1913. // 查询指定用户未读消息合计
  1914. GetUnreadCount(ctx context.Context, in *GetUnreadCountRequest, opts ...grpc.CallOption) (*GetUnreadCountResponse, error)
  1915. // 查询指定用户的历史消息记录
  1916. FindUserMsg(ctx context.Context, in *FindUserMsgReq, opts ...grpc.CallOption) (*FindUserMsgRes, error)
  1917. // 查询指定用户指定分类的未读消息合计
  1918. GetClassUnreadCount(ctx context.Context, in *GetClassUnreadCountReq, opts ...grpc.CallOption) (*GetUnreadCountResponse, error)
  1919. // 获取指定用户指定分类的最新一条消息
  1920. GetLastMessage(ctx context.Context, in *GetLastMessageReq, opts ...grpc.CallOption) (*GetLastMessageRes, error)
  1921. //查看详细详情
  1922. FindMessageDetail(ctx context.Context, in *MessageDetailReq, opts ...grpc.CallOption) (*MessageDetailResp, error)
  1923. // 获取指定用户的分类及未读消息数量
  1924. GetUnreadClassCount(ctx context.Context, in *GetUnreadClassCountReq, opts ...grpc.CallOption) (*GetUnreadClassCountRes, error)
  1925. // 获取指定用户收到消息的分类
  1926. GetMsgType(ctx context.Context, in *GetMsgTypeReq, opts ...grpc.CallOption) (*GetMsgTypeRes, error)
  1927. //修改用户指定分类下的消息已读未读
  1928. UpdateMessageRead(ctx context.Context, in *UpdateMessageReadReq, opts ...grpc.CallOption) (*UpdateMessageReadResp, error)
  1929. }
  1930. type messageClient struct {
  1931. cc grpc.ClientConnInterface
  1932. }
  1933. func NewMessageClient(cc grpc.ClientConnInterface) MessageClient {
  1934. return &messageClient{cc}
  1935. }
  1936. func (c *messageClient) ChangeReadStatus(ctx context.Context, in *ChangeReadStatusRequest, opts ...grpc.CallOption) (*Response, error) {
  1937. out := new(Response)
  1938. err := c.cc.Invoke(ctx, "/message.Message/ChangeReadStatus", in, out, opts...)
  1939. if err != nil {
  1940. return nil, err
  1941. }
  1942. return out, nil
  1943. }
  1944. func (c *messageClient) SendUserMsg(ctx context.Context, in *SendMsgRequest, opts ...grpc.CallOption) (*Response, error) {
  1945. out := new(Response)
  1946. err := c.cc.Invoke(ctx, "/message.Message/SendUserMsg", in, out, opts...)
  1947. if err != nil {
  1948. return nil, err
  1949. }
  1950. return out, nil
  1951. }
  1952. func (c *messageClient) DeleteSingleMessage(ctx context.Context, in *DeleteSingleMessageRequest, opts ...grpc.CallOption) (*Response, error) {
  1953. out := new(Response)
  1954. err := c.cc.Invoke(ctx, "/message.Message/DeleteSingleMessage", in, out, opts...)
  1955. if err != nil {
  1956. return nil, err
  1957. }
  1958. return out, nil
  1959. }
  1960. func (c *messageClient) DeleteMultipleMessage(ctx context.Context, in *DeleteMultipleMessageRequest, opts ...grpc.CallOption) (*Response, error) {
  1961. out := new(Response)
  1962. err := c.cc.Invoke(ctx, "/message.Message/DeleteMultipleMessage", in, out, opts...)
  1963. if err != nil {
  1964. return nil, err
  1965. }
  1966. return out, nil
  1967. }
  1968. func (c *messageClient) GetUnreadCount(ctx context.Context, in *GetUnreadCountRequest, opts ...grpc.CallOption) (*GetUnreadCountResponse, error) {
  1969. out := new(GetUnreadCountResponse)
  1970. err := c.cc.Invoke(ctx, "/message.Message/GetUnreadCount", in, out, opts...)
  1971. if err != nil {
  1972. return nil, err
  1973. }
  1974. return out, nil
  1975. }
  1976. func (c *messageClient) FindUserMsg(ctx context.Context, in *FindUserMsgReq, opts ...grpc.CallOption) (*FindUserMsgRes, error) {
  1977. out := new(FindUserMsgRes)
  1978. err := c.cc.Invoke(ctx, "/message.Message/FindUserMsg", in, out, opts...)
  1979. if err != nil {
  1980. return nil, err
  1981. }
  1982. return out, nil
  1983. }
  1984. func (c *messageClient) GetClassUnreadCount(ctx context.Context, in *GetClassUnreadCountReq, opts ...grpc.CallOption) (*GetUnreadCountResponse, error) {
  1985. out := new(GetUnreadCountResponse)
  1986. err := c.cc.Invoke(ctx, "/message.Message/GetClassUnreadCount", in, out, opts...)
  1987. if err != nil {
  1988. return nil, err
  1989. }
  1990. return out, nil
  1991. }
  1992. func (c *messageClient) GetLastMessage(ctx context.Context, in *GetLastMessageReq, opts ...grpc.CallOption) (*GetLastMessageRes, error) {
  1993. out := new(GetLastMessageRes)
  1994. err := c.cc.Invoke(ctx, "/message.Message/GetLastMessage", in, out, opts...)
  1995. if err != nil {
  1996. return nil, err
  1997. }
  1998. return out, nil
  1999. }
  2000. func (c *messageClient) FindMessageDetail(ctx context.Context, in *MessageDetailReq, opts ...grpc.CallOption) (*MessageDetailResp, error) {
  2001. out := new(MessageDetailResp)
  2002. err := c.cc.Invoke(ctx, "/message.Message/FindMessageDetail", in, out, opts...)
  2003. if err != nil {
  2004. return nil, err
  2005. }
  2006. return out, nil
  2007. }
  2008. func (c *messageClient) GetUnreadClassCount(ctx context.Context, in *GetUnreadClassCountReq, opts ...grpc.CallOption) (*GetUnreadClassCountRes, error) {
  2009. out := new(GetUnreadClassCountRes)
  2010. err := c.cc.Invoke(ctx, "/message.Message/GetUnreadClassCount", in, out, opts...)
  2011. if err != nil {
  2012. return nil, err
  2013. }
  2014. return out, nil
  2015. }
  2016. func (c *messageClient) GetMsgType(ctx context.Context, in *GetMsgTypeReq, opts ...grpc.CallOption) (*GetMsgTypeRes, error) {
  2017. out := new(GetMsgTypeRes)
  2018. err := c.cc.Invoke(ctx, "/message.Message/GetMsgType", in, out, opts...)
  2019. if err != nil {
  2020. return nil, err
  2021. }
  2022. return out, nil
  2023. }
  2024. func (c *messageClient) UpdateMessageRead(ctx context.Context, in *UpdateMessageReadReq, opts ...grpc.CallOption) (*UpdateMessageReadResp, error) {
  2025. out := new(UpdateMessageReadResp)
  2026. err := c.cc.Invoke(ctx, "/message.Message/UpdateMessageRead", in, out, opts...)
  2027. if err != nil {
  2028. return nil, err
  2029. }
  2030. return out, nil
  2031. }
  2032. // MessageServer is the server API for Message service.
  2033. type MessageServer interface {
  2034. // 修改消息阅读状态
  2035. ChangeReadStatus(context.Context, *ChangeReadStatusRequest) (*Response, error)
  2036. //指定用户发消息
  2037. SendUserMsg(context.Context, *SendMsgRequest) (*Response, error)
  2038. // 删除单一消息
  2039. DeleteSingleMessage(context.Context, *DeleteSingleMessageRequest) (*Response, error)
  2040. // 删除多条消息
  2041. DeleteMultipleMessage(context.Context, *DeleteMultipleMessageRequest) (*Response, error)
  2042. // 查询指定用户未读消息合计
  2043. GetUnreadCount(context.Context, *GetUnreadCountRequest) (*GetUnreadCountResponse, error)
  2044. // 查询指定用户的历史消息记录
  2045. FindUserMsg(context.Context, *FindUserMsgReq) (*FindUserMsgRes, error)
  2046. // 查询指定用户指定分类的未读消息合计
  2047. GetClassUnreadCount(context.Context, *GetClassUnreadCountReq) (*GetUnreadCountResponse, error)
  2048. // 获取指定用户指定分类的最新一条消息
  2049. GetLastMessage(context.Context, *GetLastMessageReq) (*GetLastMessageRes, error)
  2050. //查看详细详情
  2051. FindMessageDetail(context.Context, *MessageDetailReq) (*MessageDetailResp, error)
  2052. // 获取指定用户的分类及未读消息数量
  2053. GetUnreadClassCount(context.Context, *GetUnreadClassCountReq) (*GetUnreadClassCountRes, error)
  2054. // 获取指定用户收到消息的分类
  2055. GetMsgType(context.Context, *GetMsgTypeReq) (*GetMsgTypeRes, error)
  2056. //修改用户指定分类下的消息已读未读
  2057. UpdateMessageRead(context.Context, *UpdateMessageReadReq) (*UpdateMessageReadResp, error)
  2058. }
  2059. // UnimplementedMessageServer can be embedded to have forward compatible implementations.
  2060. type UnimplementedMessageServer struct {
  2061. }
  2062. func (*UnimplementedMessageServer) ChangeReadStatus(context.Context, *ChangeReadStatusRequest) (*Response, error) {
  2063. return nil, status.Errorf(codes.Unimplemented, "method ChangeReadStatus not implemented")
  2064. }
  2065. func (*UnimplementedMessageServer) SendUserMsg(context.Context, *SendMsgRequest) (*Response, error) {
  2066. return nil, status.Errorf(codes.Unimplemented, "method SendUserMsg not implemented")
  2067. }
  2068. func (*UnimplementedMessageServer) DeleteSingleMessage(context.Context, *DeleteSingleMessageRequest) (*Response, error) {
  2069. return nil, status.Errorf(codes.Unimplemented, "method DeleteSingleMessage not implemented")
  2070. }
  2071. func (*UnimplementedMessageServer) DeleteMultipleMessage(context.Context, *DeleteMultipleMessageRequest) (*Response, error) {
  2072. return nil, status.Errorf(codes.Unimplemented, "method DeleteMultipleMessage not implemented")
  2073. }
  2074. func (*UnimplementedMessageServer) GetUnreadCount(context.Context, *GetUnreadCountRequest) (*GetUnreadCountResponse, error) {
  2075. return nil, status.Errorf(codes.Unimplemented, "method GetUnreadCount not implemented")
  2076. }
  2077. func (*UnimplementedMessageServer) FindUserMsg(context.Context, *FindUserMsgReq) (*FindUserMsgRes, error) {
  2078. return nil, status.Errorf(codes.Unimplemented, "method FindUserMsg not implemented")
  2079. }
  2080. func (*UnimplementedMessageServer) GetClassUnreadCount(context.Context, *GetClassUnreadCountReq) (*GetUnreadCountResponse, error) {
  2081. return nil, status.Errorf(codes.Unimplemented, "method GetClassUnreadCount not implemented")
  2082. }
  2083. func (*UnimplementedMessageServer) GetLastMessage(context.Context, *GetLastMessageReq) (*GetLastMessageRes, error) {
  2084. return nil, status.Errorf(codes.Unimplemented, "method GetLastMessage not implemented")
  2085. }
  2086. func (*UnimplementedMessageServer) FindMessageDetail(context.Context, *MessageDetailReq) (*MessageDetailResp, error) {
  2087. return nil, status.Errorf(codes.Unimplemented, "method FindMessageDetail not implemented")
  2088. }
  2089. func (*UnimplementedMessageServer) GetUnreadClassCount(context.Context, *GetUnreadClassCountReq) (*GetUnreadClassCountRes, error) {
  2090. return nil, status.Errorf(codes.Unimplemented, "method GetUnreadClassCount not implemented")
  2091. }
  2092. func (*UnimplementedMessageServer) GetMsgType(context.Context, *GetMsgTypeReq) (*GetMsgTypeRes, error) {
  2093. return nil, status.Errorf(codes.Unimplemented, "method GetMsgType not implemented")
  2094. }
  2095. func (*UnimplementedMessageServer) UpdateMessageRead(context.Context, *UpdateMessageReadReq) (*UpdateMessageReadResp, error) {
  2096. return nil, status.Errorf(codes.Unimplemented, "method UpdateMessageRead not implemented")
  2097. }
  2098. func RegisterMessageServer(s *grpc.Server, srv MessageServer) {
  2099. s.RegisterService(&_Message_serviceDesc, srv)
  2100. }
  2101. func _Message_ChangeReadStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  2102. in := new(ChangeReadStatusRequest)
  2103. if err := dec(in); err != nil {
  2104. return nil, err
  2105. }
  2106. if interceptor == nil {
  2107. return srv.(MessageServer).ChangeReadStatus(ctx, in)
  2108. }
  2109. info := &grpc.UnaryServerInfo{
  2110. Server: srv,
  2111. FullMethod: "/message.Message/ChangeReadStatus",
  2112. }
  2113. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  2114. return srv.(MessageServer).ChangeReadStatus(ctx, req.(*ChangeReadStatusRequest))
  2115. }
  2116. return interceptor(ctx, in, info, handler)
  2117. }
  2118. func _Message_SendUserMsg_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  2119. in := new(SendMsgRequest)
  2120. if err := dec(in); err != nil {
  2121. return nil, err
  2122. }
  2123. if interceptor == nil {
  2124. return srv.(MessageServer).SendUserMsg(ctx, in)
  2125. }
  2126. info := &grpc.UnaryServerInfo{
  2127. Server: srv,
  2128. FullMethod: "/message.Message/SendUserMsg",
  2129. }
  2130. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  2131. return srv.(MessageServer).SendUserMsg(ctx, req.(*SendMsgRequest))
  2132. }
  2133. return interceptor(ctx, in, info, handler)
  2134. }
  2135. func _Message_DeleteSingleMessage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  2136. in := new(DeleteSingleMessageRequest)
  2137. if err := dec(in); err != nil {
  2138. return nil, err
  2139. }
  2140. if interceptor == nil {
  2141. return srv.(MessageServer).DeleteSingleMessage(ctx, in)
  2142. }
  2143. info := &grpc.UnaryServerInfo{
  2144. Server: srv,
  2145. FullMethod: "/message.Message/DeleteSingleMessage",
  2146. }
  2147. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  2148. return srv.(MessageServer).DeleteSingleMessage(ctx, req.(*DeleteSingleMessageRequest))
  2149. }
  2150. return interceptor(ctx, in, info, handler)
  2151. }
  2152. func _Message_DeleteMultipleMessage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  2153. in := new(DeleteMultipleMessageRequest)
  2154. if err := dec(in); err != nil {
  2155. return nil, err
  2156. }
  2157. if interceptor == nil {
  2158. return srv.(MessageServer).DeleteMultipleMessage(ctx, in)
  2159. }
  2160. info := &grpc.UnaryServerInfo{
  2161. Server: srv,
  2162. FullMethod: "/message.Message/DeleteMultipleMessage",
  2163. }
  2164. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  2165. return srv.(MessageServer).DeleteMultipleMessage(ctx, req.(*DeleteMultipleMessageRequest))
  2166. }
  2167. return interceptor(ctx, in, info, handler)
  2168. }
  2169. func _Message_GetUnreadCount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  2170. in := new(GetUnreadCountRequest)
  2171. if err := dec(in); err != nil {
  2172. return nil, err
  2173. }
  2174. if interceptor == nil {
  2175. return srv.(MessageServer).GetUnreadCount(ctx, in)
  2176. }
  2177. info := &grpc.UnaryServerInfo{
  2178. Server: srv,
  2179. FullMethod: "/message.Message/GetUnreadCount",
  2180. }
  2181. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  2182. return srv.(MessageServer).GetUnreadCount(ctx, req.(*GetUnreadCountRequest))
  2183. }
  2184. return interceptor(ctx, in, info, handler)
  2185. }
  2186. func _Message_FindUserMsg_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  2187. in := new(FindUserMsgReq)
  2188. if err := dec(in); err != nil {
  2189. return nil, err
  2190. }
  2191. if interceptor == nil {
  2192. return srv.(MessageServer).FindUserMsg(ctx, in)
  2193. }
  2194. info := &grpc.UnaryServerInfo{
  2195. Server: srv,
  2196. FullMethod: "/message.Message/FindUserMsg",
  2197. }
  2198. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  2199. return srv.(MessageServer).FindUserMsg(ctx, req.(*FindUserMsgReq))
  2200. }
  2201. return interceptor(ctx, in, info, handler)
  2202. }
  2203. func _Message_GetClassUnreadCount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  2204. in := new(GetClassUnreadCountReq)
  2205. if err := dec(in); err != nil {
  2206. return nil, err
  2207. }
  2208. if interceptor == nil {
  2209. return srv.(MessageServer).GetClassUnreadCount(ctx, in)
  2210. }
  2211. info := &grpc.UnaryServerInfo{
  2212. Server: srv,
  2213. FullMethod: "/message.Message/GetClassUnreadCount",
  2214. }
  2215. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  2216. return srv.(MessageServer).GetClassUnreadCount(ctx, req.(*GetClassUnreadCountReq))
  2217. }
  2218. return interceptor(ctx, in, info, handler)
  2219. }
  2220. func _Message_GetLastMessage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  2221. in := new(GetLastMessageReq)
  2222. if err := dec(in); err != nil {
  2223. return nil, err
  2224. }
  2225. if interceptor == nil {
  2226. return srv.(MessageServer).GetLastMessage(ctx, in)
  2227. }
  2228. info := &grpc.UnaryServerInfo{
  2229. Server: srv,
  2230. FullMethod: "/message.Message/GetLastMessage",
  2231. }
  2232. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  2233. return srv.(MessageServer).GetLastMessage(ctx, req.(*GetLastMessageReq))
  2234. }
  2235. return interceptor(ctx, in, info, handler)
  2236. }
  2237. func _Message_FindMessageDetail_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  2238. in := new(MessageDetailReq)
  2239. if err := dec(in); err != nil {
  2240. return nil, err
  2241. }
  2242. if interceptor == nil {
  2243. return srv.(MessageServer).FindMessageDetail(ctx, in)
  2244. }
  2245. info := &grpc.UnaryServerInfo{
  2246. Server: srv,
  2247. FullMethod: "/message.Message/FindMessageDetail",
  2248. }
  2249. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  2250. return srv.(MessageServer).FindMessageDetail(ctx, req.(*MessageDetailReq))
  2251. }
  2252. return interceptor(ctx, in, info, handler)
  2253. }
  2254. func _Message_GetUnreadClassCount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  2255. in := new(GetUnreadClassCountReq)
  2256. if err := dec(in); err != nil {
  2257. return nil, err
  2258. }
  2259. if interceptor == nil {
  2260. return srv.(MessageServer).GetUnreadClassCount(ctx, in)
  2261. }
  2262. info := &grpc.UnaryServerInfo{
  2263. Server: srv,
  2264. FullMethod: "/message.Message/GetUnreadClassCount",
  2265. }
  2266. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  2267. return srv.(MessageServer).GetUnreadClassCount(ctx, req.(*GetUnreadClassCountReq))
  2268. }
  2269. return interceptor(ctx, in, info, handler)
  2270. }
  2271. func _Message_GetMsgType_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  2272. in := new(GetMsgTypeReq)
  2273. if err := dec(in); err != nil {
  2274. return nil, err
  2275. }
  2276. if interceptor == nil {
  2277. return srv.(MessageServer).GetMsgType(ctx, in)
  2278. }
  2279. info := &grpc.UnaryServerInfo{
  2280. Server: srv,
  2281. FullMethod: "/message.Message/GetMsgType",
  2282. }
  2283. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  2284. return srv.(MessageServer).GetMsgType(ctx, req.(*GetMsgTypeReq))
  2285. }
  2286. return interceptor(ctx, in, info, handler)
  2287. }
  2288. func _Message_UpdateMessageRead_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  2289. in := new(UpdateMessageReadReq)
  2290. if err := dec(in); err != nil {
  2291. return nil, err
  2292. }
  2293. if interceptor == nil {
  2294. return srv.(MessageServer).UpdateMessageRead(ctx, in)
  2295. }
  2296. info := &grpc.UnaryServerInfo{
  2297. Server: srv,
  2298. FullMethod: "/message.Message/UpdateMessageRead",
  2299. }
  2300. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  2301. return srv.(MessageServer).UpdateMessageRead(ctx, req.(*UpdateMessageReadReq))
  2302. }
  2303. return interceptor(ctx, in, info, handler)
  2304. }
  2305. var _Message_serviceDesc = grpc.ServiceDesc{
  2306. ServiceName: "message.Message",
  2307. HandlerType: (*MessageServer)(nil),
  2308. Methods: []grpc.MethodDesc{
  2309. {
  2310. MethodName: "ChangeReadStatus",
  2311. Handler: _Message_ChangeReadStatus_Handler,
  2312. },
  2313. {
  2314. MethodName: "SendUserMsg",
  2315. Handler: _Message_SendUserMsg_Handler,
  2316. },
  2317. {
  2318. MethodName: "DeleteSingleMessage",
  2319. Handler: _Message_DeleteSingleMessage_Handler,
  2320. },
  2321. {
  2322. MethodName: "DeleteMultipleMessage",
  2323. Handler: _Message_DeleteMultipleMessage_Handler,
  2324. },
  2325. {
  2326. MethodName: "GetUnreadCount",
  2327. Handler: _Message_GetUnreadCount_Handler,
  2328. },
  2329. {
  2330. MethodName: "FindUserMsg",
  2331. Handler: _Message_FindUserMsg_Handler,
  2332. },
  2333. {
  2334. MethodName: "GetClassUnreadCount",
  2335. Handler: _Message_GetClassUnreadCount_Handler,
  2336. },
  2337. {
  2338. MethodName: "GetLastMessage",
  2339. Handler: _Message_GetLastMessage_Handler,
  2340. },
  2341. {
  2342. MethodName: "FindMessageDetail",
  2343. Handler: _Message_FindMessageDetail_Handler,
  2344. },
  2345. {
  2346. MethodName: "GetUnreadClassCount",
  2347. Handler: _Message_GetUnreadClassCount_Handler,
  2348. },
  2349. {
  2350. MethodName: "GetMsgType",
  2351. Handler: _Message_GetMsgType_Handler,
  2352. },
  2353. {
  2354. MethodName: "UpdateMessageRead",
  2355. Handler: _Message_UpdateMessageRead_Handler,
  2356. },
  2357. },
  2358. Streams: []grpc.StreamDesc{},
  2359. Metadata: "message.proto",
  2360. }