message.pb.go 90 KB

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