message.pb.go 86 KB

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