message.pb.go 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834
  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 Request struct {
  28. state protoimpl.MessageState
  29. sizeCache protoimpl.SizeCache
  30. unknownFields protoimpl.UnknownFields
  31. Ping string `protobuf:"bytes,1,opt,name=ping,proto3" json:"ping,omitempty"`
  32. }
  33. func (x *Request) Reset() {
  34. *x = Request{}
  35. if protoimpl.UnsafeEnabled {
  36. mi := &file_message_proto_msgTypes[0]
  37. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  38. ms.StoreMessageInfo(mi)
  39. }
  40. }
  41. func (x *Request) String() string {
  42. return protoimpl.X.MessageStringOf(x)
  43. }
  44. func (*Request) ProtoMessage() {}
  45. func (x *Request) ProtoReflect() protoreflect.Message {
  46. mi := &file_message_proto_msgTypes[0]
  47. if protoimpl.UnsafeEnabled && x != nil {
  48. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  49. if ms.LoadMessageInfo() == nil {
  50. ms.StoreMessageInfo(mi)
  51. }
  52. return ms
  53. }
  54. return mi.MessageOf(x)
  55. }
  56. // Deprecated: Use Request.ProtoReflect.Descriptor instead.
  57. func (*Request) Descriptor() ([]byte, []int) {
  58. return file_message_proto_rawDescGZIP(), []int{0}
  59. }
  60. func (x *Request) GetPing() string {
  61. if x != nil {
  62. return x.Ping
  63. }
  64. return ""
  65. }
  66. // 修改消息阅读状态
  67. type ChangeReadStatusRequest struct {
  68. state protoimpl.MessageState
  69. sizeCache protoimpl.SizeCache
  70. unknownFields protoimpl.UnknownFields
  71. Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // 消息id
  72. ReadStatus int64 `protobuf:"varint,2,opt,name=readStatus,proto3" json:"readStatus,omitempty"` // 阅读状态 0-未读 1-已读
  73. }
  74. func (x *ChangeReadStatusRequest) Reset() {
  75. *x = ChangeReadStatusRequest{}
  76. if protoimpl.UnsafeEnabled {
  77. mi := &file_message_proto_msgTypes[1]
  78. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  79. ms.StoreMessageInfo(mi)
  80. }
  81. }
  82. func (x *ChangeReadStatusRequest) String() string {
  83. return protoimpl.X.MessageStringOf(x)
  84. }
  85. func (*ChangeReadStatusRequest) ProtoMessage() {}
  86. func (x *ChangeReadStatusRequest) ProtoReflect() protoreflect.Message {
  87. mi := &file_message_proto_msgTypes[1]
  88. if protoimpl.UnsafeEnabled && x != nil {
  89. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  90. if ms.LoadMessageInfo() == nil {
  91. ms.StoreMessageInfo(mi)
  92. }
  93. return ms
  94. }
  95. return mi.MessageOf(x)
  96. }
  97. // Deprecated: Use ChangeReadStatusRequest.ProtoReflect.Descriptor instead.
  98. func (*ChangeReadStatusRequest) Descriptor() ([]byte, []int) {
  99. return file_message_proto_rawDescGZIP(), []int{1}
  100. }
  101. func (x *ChangeReadStatusRequest) GetId() int64 {
  102. if x != nil {
  103. return x.Id
  104. }
  105. return 0
  106. }
  107. func (x *ChangeReadStatusRequest) GetReadStatus() int64 {
  108. if x != nil {
  109. return x.ReadStatus
  110. }
  111. return 0
  112. }
  113. // 删除单一消息
  114. type DeleteSingleMessageRequest struct {
  115. state protoimpl.MessageState
  116. sizeCache protoimpl.SizeCache
  117. unknownFields protoimpl.UnknownFields
  118. Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // 消息id
  119. }
  120. func (x *DeleteSingleMessageRequest) Reset() {
  121. *x = DeleteSingleMessageRequest{}
  122. if protoimpl.UnsafeEnabled {
  123. mi := &file_message_proto_msgTypes[2]
  124. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  125. ms.StoreMessageInfo(mi)
  126. }
  127. }
  128. func (x *DeleteSingleMessageRequest) String() string {
  129. return protoimpl.X.MessageStringOf(x)
  130. }
  131. func (*DeleteSingleMessageRequest) ProtoMessage() {}
  132. func (x *DeleteSingleMessageRequest) ProtoReflect() protoreflect.Message {
  133. mi := &file_message_proto_msgTypes[2]
  134. if protoimpl.UnsafeEnabled && x != nil {
  135. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  136. if ms.LoadMessageInfo() == nil {
  137. ms.StoreMessageInfo(mi)
  138. }
  139. return ms
  140. }
  141. return mi.MessageOf(x)
  142. }
  143. // Deprecated: Use DeleteSingleMessageRequest.ProtoReflect.Descriptor instead.
  144. func (*DeleteSingleMessageRequest) Descriptor() ([]byte, []int) {
  145. return file_message_proto_rawDescGZIP(), []int{2}
  146. }
  147. func (x *DeleteSingleMessageRequest) GetId() int64 {
  148. if x != nil {
  149. return x.Id
  150. }
  151. return 0
  152. }
  153. // 批量删除消息
  154. type DeleteMultipleMessageRequest struct {
  155. state protoimpl.MessageState
  156. sizeCache protoimpl.SizeCache
  157. unknownFields protoimpl.UnknownFields
  158. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // 多条消息id, 逗号分隔
  159. }
  160. func (x *DeleteMultipleMessageRequest) Reset() {
  161. *x = DeleteMultipleMessageRequest{}
  162. if protoimpl.UnsafeEnabled {
  163. mi := &file_message_proto_msgTypes[3]
  164. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  165. ms.StoreMessageInfo(mi)
  166. }
  167. }
  168. func (x *DeleteMultipleMessageRequest) String() string {
  169. return protoimpl.X.MessageStringOf(x)
  170. }
  171. func (*DeleteMultipleMessageRequest) ProtoMessage() {}
  172. func (x *DeleteMultipleMessageRequest) ProtoReflect() protoreflect.Message {
  173. mi := &file_message_proto_msgTypes[3]
  174. if protoimpl.UnsafeEnabled && x != nil {
  175. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  176. if ms.LoadMessageInfo() == nil {
  177. ms.StoreMessageInfo(mi)
  178. }
  179. return ms
  180. }
  181. return mi.MessageOf(x)
  182. }
  183. // Deprecated: Use DeleteMultipleMessageRequest.ProtoReflect.Descriptor instead.
  184. func (*DeleteMultipleMessageRequest) Descriptor() ([]byte, []int) {
  185. return file_message_proto_rawDescGZIP(), []int{3}
  186. }
  187. func (x *DeleteMultipleMessageRequest) GetId() string {
  188. if x != nil {
  189. return x.Id
  190. }
  191. return ""
  192. }
  193. // 查询指定用户未读消息合计
  194. type GetUnreadCountRequest struct {
  195. state protoimpl.MessageState
  196. sizeCache protoimpl.SizeCache
  197. unknownFields protoimpl.UnknownFields
  198. UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"` // 用户id
  199. }
  200. func (x *GetUnreadCountRequest) Reset() {
  201. *x = GetUnreadCountRequest{}
  202. if protoimpl.UnsafeEnabled {
  203. mi := &file_message_proto_msgTypes[4]
  204. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  205. ms.StoreMessageInfo(mi)
  206. }
  207. }
  208. func (x *GetUnreadCountRequest) String() string {
  209. return protoimpl.X.MessageStringOf(x)
  210. }
  211. func (*GetUnreadCountRequest) ProtoMessage() {}
  212. func (x *GetUnreadCountRequest) ProtoReflect() protoreflect.Message {
  213. mi := &file_message_proto_msgTypes[4]
  214. if protoimpl.UnsafeEnabled && x != nil {
  215. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  216. if ms.LoadMessageInfo() == nil {
  217. ms.StoreMessageInfo(mi)
  218. }
  219. return ms
  220. }
  221. return mi.MessageOf(x)
  222. }
  223. // Deprecated: Use GetUnreadCountRequest.ProtoReflect.Descriptor instead.
  224. func (*GetUnreadCountRequest) Descriptor() ([]byte, []int) {
  225. return file_message_proto_rawDescGZIP(), []int{4}
  226. }
  227. func (x *GetUnreadCountRequest) GetUserId() string {
  228. if x != nil {
  229. return x.UserId
  230. }
  231. return ""
  232. }
  233. type Response struct {
  234. state protoimpl.MessageState
  235. sizeCache protoimpl.SizeCache
  236. unknownFields protoimpl.UnknownFields
  237. Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` //状态码
  238. Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` //响应消息
  239. }
  240. func (x *Response) Reset() {
  241. *x = Response{}
  242. if protoimpl.UnsafeEnabled {
  243. mi := &file_message_proto_msgTypes[5]
  244. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  245. ms.StoreMessageInfo(mi)
  246. }
  247. }
  248. func (x *Response) String() string {
  249. return protoimpl.X.MessageStringOf(x)
  250. }
  251. func (*Response) ProtoMessage() {}
  252. func (x *Response) ProtoReflect() protoreflect.Message {
  253. mi := &file_message_proto_msgTypes[5]
  254. if protoimpl.UnsafeEnabled && x != nil {
  255. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  256. if ms.LoadMessageInfo() == nil {
  257. ms.StoreMessageInfo(mi)
  258. }
  259. return ms
  260. }
  261. return mi.MessageOf(x)
  262. }
  263. // Deprecated: Use Response.ProtoReflect.Descriptor instead.
  264. func (*Response) Descriptor() ([]byte, []int) {
  265. return file_message_proto_rawDescGZIP(), []int{5}
  266. }
  267. func (x *Response) GetCode() int64 {
  268. if x != nil {
  269. return x.Code
  270. }
  271. return 0
  272. }
  273. func (x *Response) GetMessage() string {
  274. if x != nil {
  275. return x.Message
  276. }
  277. return ""
  278. }
  279. type GetUnreadCountResponse struct {
  280. state protoimpl.MessageState
  281. sizeCache protoimpl.SizeCache
  282. unknownFields protoimpl.UnknownFields
  283. Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` //状态码
  284. Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` //响应消息
  285. Count int64 `protobuf:"varint,3,opt,name=count,proto3" json:"count,omitempty"` //
  286. }
  287. func (x *GetUnreadCountResponse) Reset() {
  288. *x = GetUnreadCountResponse{}
  289. if protoimpl.UnsafeEnabled {
  290. mi := &file_message_proto_msgTypes[6]
  291. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  292. ms.StoreMessageInfo(mi)
  293. }
  294. }
  295. func (x *GetUnreadCountResponse) String() string {
  296. return protoimpl.X.MessageStringOf(x)
  297. }
  298. func (*GetUnreadCountResponse) ProtoMessage() {}
  299. func (x *GetUnreadCountResponse) ProtoReflect() protoreflect.Message {
  300. mi := &file_message_proto_msgTypes[6]
  301. if protoimpl.UnsafeEnabled && x != nil {
  302. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  303. if ms.LoadMessageInfo() == nil {
  304. ms.StoreMessageInfo(mi)
  305. }
  306. return ms
  307. }
  308. return mi.MessageOf(x)
  309. }
  310. // Deprecated: Use GetUnreadCountResponse.ProtoReflect.Descriptor instead.
  311. func (*GetUnreadCountResponse) Descriptor() ([]byte, []int) {
  312. return file_message_proto_rawDescGZIP(), []int{6}
  313. }
  314. func (x *GetUnreadCountResponse) GetCode() int64 {
  315. if x != nil {
  316. return x.Code
  317. }
  318. return 0
  319. }
  320. func (x *GetUnreadCountResponse) GetMessage() string {
  321. if x != nil {
  322. return x.Message
  323. }
  324. return ""
  325. }
  326. func (x *GetUnreadCountResponse) GetCount() int64 {
  327. if x != nil {
  328. return x.Count
  329. }
  330. return 0
  331. }
  332. var File_message_proto protoreflect.FileDescriptor
  333. var file_message_proto_rawDesc = []byte{
  334. 0x0a, 0x0d, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
  335. 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0x1d, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75,
  336. 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x69, 0x6e, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28,
  337. 0x09, 0x52, 0x04, 0x70, 0x69, 0x6e, 0x67, 0x22, 0x49, 0x0a, 0x17, 0x43, 0x68, 0x61, 0x6e, 0x67,
  338. 0x65, 0x52, 0x65, 0x61, 0x64, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65,
  339. 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02,
  340. 0x69, 0x64, 0x12, 0x1e, 0x0a, 0x0a, 0x72, 0x65, 0x61, 0x64, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73,
  341. 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x72, 0x65, 0x61, 0x64, 0x53, 0x74, 0x61, 0x74,
  342. 0x75, 0x73, 0x22, 0x2c, 0x0a, 0x1a, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53, 0x69, 0x6e, 0x67,
  343. 0x6c, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
  344. 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64,
  345. 0x22, 0x2e, 0x0a, 0x1c, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x70,
  346. 0x6c, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
  347. 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64,
  348. 0x22, 0x2f, 0x0a, 0x15, 0x47, 0x65, 0x74, 0x55, 0x6e, 0x72, 0x65, 0x61, 0x64, 0x43, 0x6f, 0x75,
  349. 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65,
  350. 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49,
  351. 0x64, 0x22, 0x38, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a,
  352. 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x63, 0x6f, 0x64,
  353. 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01,
  354. 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0x5c, 0x0a, 0x16, 0x47,
  355. 0x65, 0x74, 0x55, 0x6e, 0x72, 0x65, 0x61, 0x64, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73,
  356. 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20,
  357. 0x01, 0x28, 0x03, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73,
  358. 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73,
  359. 0x61, 0x67, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01,
  360. 0x28, 0x03, 0x52, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x32, 0xfb, 0x02, 0x0a, 0x07, 0x4d, 0x65,
  361. 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x2b, 0x0a, 0x04, 0x50, 0x69, 0x6e, 0x67, 0x12, 0x10, 0x2e,
  362. 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
  363. 0x11, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
  364. 0x73, 0x65, 0x12, 0x47, 0x0a, 0x10, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x65, 0x61, 0x64,
  365. 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x20, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
  366. 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x65, 0x61, 0x64, 0x53, 0x74, 0x61, 0x74, 0x75,
  367. 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x11, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61,
  368. 0x67, 0x65, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4d, 0x0a, 0x13, 0x44,
  369. 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61,
  370. 0x67, 0x65, 0x12, 0x23, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x44, 0x65, 0x6c,
  371. 0x65, 0x74, 0x65, 0x53, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
  372. 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x11, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67,
  373. 0x65, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x51, 0x0a, 0x15, 0x44, 0x65,
  374. 0x6c, 0x65, 0x74, 0x65, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x70, 0x6c, 0x65, 0x4d, 0x65, 0x73, 0x73,
  375. 0x61, 0x67, 0x65, 0x12, 0x25, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x44, 0x65,
  376. 0x6c, 0x65, 0x74, 0x65, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x70, 0x6c, 0x65, 0x4d, 0x65, 0x73, 0x73,
  377. 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x11, 0x2e, 0x6d, 0x65, 0x73,
  378. 0x73, 0x61, 0x67, 0x65, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x58, 0x0a,
  379. 0x0e, 0x47, 0x65, 0x74, 0x55, 0x6e, 0x72, 0x65, 0x61, 0x64, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12,
  380. 0x25, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65,
  381. 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x70, 0x6c, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52,
  382. 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
  383. 0x2e, 0x47, 0x65, 0x74, 0x55, 0x6e, 0x72, 0x65, 0x61, 0x64, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x52,
  384. 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  385. }
  386. var (
  387. file_message_proto_rawDescOnce sync.Once
  388. file_message_proto_rawDescData = file_message_proto_rawDesc
  389. )
  390. func file_message_proto_rawDescGZIP() []byte {
  391. file_message_proto_rawDescOnce.Do(func() {
  392. file_message_proto_rawDescData = protoimpl.X.CompressGZIP(file_message_proto_rawDescData)
  393. })
  394. return file_message_proto_rawDescData
  395. }
  396. var file_message_proto_msgTypes = make([]protoimpl.MessageInfo, 7)
  397. var file_message_proto_goTypes = []interface{}{
  398. (*Request)(nil), // 0: message.Request
  399. (*ChangeReadStatusRequest)(nil), // 1: message.ChangeReadStatusRequest
  400. (*DeleteSingleMessageRequest)(nil), // 2: message.DeleteSingleMessageRequest
  401. (*DeleteMultipleMessageRequest)(nil), // 3: message.DeleteMultipleMessageRequest
  402. (*GetUnreadCountRequest)(nil), // 4: message.GetUnreadCountRequest
  403. (*Response)(nil), // 5: message.Response
  404. (*GetUnreadCountResponse)(nil), // 6: message.GetUnreadCountResponse
  405. }
  406. var file_message_proto_depIdxs = []int32{
  407. 0, // 0: message.Message.Ping:input_type -> message.Request
  408. 1, // 1: message.Message.ChangeReadStatus:input_type -> message.ChangeReadStatusRequest
  409. 2, // 2: message.Message.DeleteSingleMessage:input_type -> message.DeleteSingleMessageRequest
  410. 3, // 3: message.Message.DeleteMultipleMessage:input_type -> message.DeleteMultipleMessageRequest
  411. 3, // 4: message.Message.GetUnreadCount:input_type -> message.DeleteMultipleMessageRequest
  412. 5, // 5: message.Message.Ping:output_type -> message.Response
  413. 5, // 6: message.Message.ChangeReadStatus:output_type -> message.Response
  414. 5, // 7: message.Message.DeleteSingleMessage:output_type -> message.Response
  415. 5, // 8: message.Message.DeleteMultipleMessage:output_type -> message.Response
  416. 6, // 9: message.Message.GetUnreadCount:output_type -> message.GetUnreadCountResponse
  417. 5, // [5:10] is the sub-list for method output_type
  418. 0, // [0:5] is the sub-list for method input_type
  419. 0, // [0:0] is the sub-list for extension type_name
  420. 0, // [0:0] is the sub-list for extension extendee
  421. 0, // [0:0] is the sub-list for field type_name
  422. }
  423. func init() { file_message_proto_init() }
  424. func file_message_proto_init() {
  425. if File_message_proto != nil {
  426. return
  427. }
  428. if !protoimpl.UnsafeEnabled {
  429. file_message_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  430. switch v := v.(*Request); i {
  431. case 0:
  432. return &v.state
  433. case 1:
  434. return &v.sizeCache
  435. case 2:
  436. return &v.unknownFields
  437. default:
  438. return nil
  439. }
  440. }
  441. file_message_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  442. switch v := v.(*ChangeReadStatusRequest); i {
  443. case 0:
  444. return &v.state
  445. case 1:
  446. return &v.sizeCache
  447. case 2:
  448. return &v.unknownFields
  449. default:
  450. return nil
  451. }
  452. }
  453. file_message_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  454. switch v := v.(*DeleteSingleMessageRequest); i {
  455. case 0:
  456. return &v.state
  457. case 1:
  458. return &v.sizeCache
  459. case 2:
  460. return &v.unknownFields
  461. default:
  462. return nil
  463. }
  464. }
  465. file_message_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
  466. switch v := v.(*DeleteMultipleMessageRequest); i {
  467. case 0:
  468. return &v.state
  469. case 1:
  470. return &v.sizeCache
  471. case 2:
  472. return &v.unknownFields
  473. default:
  474. return nil
  475. }
  476. }
  477. file_message_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
  478. switch v := v.(*GetUnreadCountRequest); i {
  479. case 0:
  480. return &v.state
  481. case 1:
  482. return &v.sizeCache
  483. case 2:
  484. return &v.unknownFields
  485. default:
  486. return nil
  487. }
  488. }
  489. file_message_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
  490. switch v := v.(*Response); i {
  491. case 0:
  492. return &v.state
  493. case 1:
  494. return &v.sizeCache
  495. case 2:
  496. return &v.unknownFields
  497. default:
  498. return nil
  499. }
  500. }
  501. file_message_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
  502. switch v := v.(*GetUnreadCountResponse); i {
  503. case 0:
  504. return &v.state
  505. case 1:
  506. return &v.sizeCache
  507. case 2:
  508. return &v.unknownFields
  509. default:
  510. return nil
  511. }
  512. }
  513. }
  514. type x struct{}
  515. out := protoimpl.TypeBuilder{
  516. File: protoimpl.DescBuilder{
  517. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  518. RawDescriptor: file_message_proto_rawDesc,
  519. NumEnums: 0,
  520. NumMessages: 7,
  521. NumExtensions: 0,
  522. NumServices: 1,
  523. },
  524. GoTypes: file_message_proto_goTypes,
  525. DependencyIndexes: file_message_proto_depIdxs,
  526. MessageInfos: file_message_proto_msgTypes,
  527. }.Build()
  528. File_message_proto = out.File
  529. file_message_proto_rawDesc = nil
  530. file_message_proto_goTypes = nil
  531. file_message_proto_depIdxs = nil
  532. }
  533. // Reference imports to suppress errors if they are not otherwise used.
  534. var _ context.Context
  535. var _ grpc.ClientConnInterface
  536. // This is a compile-time assertion to ensure that this generated file
  537. // is compatible with the grpc package it is being compiled against.
  538. const _ = grpc.SupportPackageIsVersion6
  539. // MessageClient is the client API for Message service.
  540. //
  541. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  542. type MessageClient interface {
  543. Ping(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error)
  544. // 修改消息阅读状态
  545. ChangeReadStatus(ctx context.Context, in *ChangeReadStatusRequest, opts ...grpc.CallOption) (*Response, error)
  546. // 删除单一消息
  547. DeleteSingleMessage(ctx context.Context, in *DeleteSingleMessageRequest, opts ...grpc.CallOption) (*Response, error)
  548. // 删除多条消息
  549. DeleteMultipleMessage(ctx context.Context, in *DeleteMultipleMessageRequest, opts ...grpc.CallOption) (*Response, error)
  550. // 查询指定用户未读消息合计
  551. GetUnreadCount(ctx context.Context, in *DeleteMultipleMessageRequest, opts ...grpc.CallOption) (*GetUnreadCountResponse, error)
  552. }
  553. type messageClient struct {
  554. cc grpc.ClientConnInterface
  555. }
  556. func NewMessageClient(cc grpc.ClientConnInterface) MessageClient {
  557. return &messageClient{cc}
  558. }
  559. func (c *messageClient) Ping(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error) {
  560. out := new(Response)
  561. err := c.cc.Invoke(ctx, "/message.Message/Ping", in, out, opts...)
  562. if err != nil {
  563. return nil, err
  564. }
  565. return out, nil
  566. }
  567. func (c *messageClient) ChangeReadStatus(ctx context.Context, in *ChangeReadStatusRequest, opts ...grpc.CallOption) (*Response, error) {
  568. out := new(Response)
  569. err := c.cc.Invoke(ctx, "/message.Message/ChangeReadStatus", in, out, opts...)
  570. if err != nil {
  571. return nil, err
  572. }
  573. return out, nil
  574. }
  575. func (c *messageClient) DeleteSingleMessage(ctx context.Context, in *DeleteSingleMessageRequest, opts ...grpc.CallOption) (*Response, error) {
  576. out := new(Response)
  577. err := c.cc.Invoke(ctx, "/message.Message/DeleteSingleMessage", in, out, opts...)
  578. if err != nil {
  579. return nil, err
  580. }
  581. return out, nil
  582. }
  583. func (c *messageClient) DeleteMultipleMessage(ctx context.Context, in *DeleteMultipleMessageRequest, opts ...grpc.CallOption) (*Response, error) {
  584. out := new(Response)
  585. err := c.cc.Invoke(ctx, "/message.Message/DeleteMultipleMessage", in, out, opts...)
  586. if err != nil {
  587. return nil, err
  588. }
  589. return out, nil
  590. }
  591. func (c *messageClient) GetUnreadCount(ctx context.Context, in *DeleteMultipleMessageRequest, opts ...grpc.CallOption) (*GetUnreadCountResponse, error) {
  592. out := new(GetUnreadCountResponse)
  593. err := c.cc.Invoke(ctx, "/message.Message/GetUnreadCount", in, out, opts...)
  594. if err != nil {
  595. return nil, err
  596. }
  597. return out, nil
  598. }
  599. // MessageServer is the server API for Message service.
  600. type MessageServer interface {
  601. Ping(context.Context, *Request) (*Response, error)
  602. // 修改消息阅读状态
  603. ChangeReadStatus(context.Context, *ChangeReadStatusRequest) (*Response, error)
  604. // 删除单一消息
  605. DeleteSingleMessage(context.Context, *DeleteSingleMessageRequest) (*Response, error)
  606. // 删除多条消息
  607. DeleteMultipleMessage(context.Context, *DeleteMultipleMessageRequest) (*Response, error)
  608. // 查询指定用户未读消息合计
  609. GetUnreadCount(context.Context, *DeleteMultipleMessageRequest) (*GetUnreadCountResponse, error)
  610. }
  611. // UnimplementedMessageServer can be embedded to have forward compatible implementations.
  612. type UnimplementedMessageServer struct {
  613. }
  614. func (*UnimplementedMessageServer) Ping(context.Context, *Request) (*Response, error) {
  615. return nil, status.Errorf(codes.Unimplemented, "method Ping not implemented")
  616. }
  617. func (*UnimplementedMessageServer) ChangeReadStatus(context.Context, *ChangeReadStatusRequest) (*Response, error) {
  618. return nil, status.Errorf(codes.Unimplemented, "method ChangeReadStatus not implemented")
  619. }
  620. func (*UnimplementedMessageServer) DeleteSingleMessage(context.Context, *DeleteSingleMessageRequest) (*Response, error) {
  621. return nil, status.Errorf(codes.Unimplemented, "method DeleteSingleMessage not implemented")
  622. }
  623. func (*UnimplementedMessageServer) DeleteMultipleMessage(context.Context, *DeleteMultipleMessageRequest) (*Response, error) {
  624. return nil, status.Errorf(codes.Unimplemented, "method DeleteMultipleMessage not implemented")
  625. }
  626. func (*UnimplementedMessageServer) GetUnreadCount(context.Context, *DeleteMultipleMessageRequest) (*GetUnreadCountResponse, error) {
  627. return nil, status.Errorf(codes.Unimplemented, "method GetUnreadCount not implemented")
  628. }
  629. func RegisterMessageServer(s *grpc.Server, srv MessageServer) {
  630. s.RegisterService(&_Message_serviceDesc, srv)
  631. }
  632. func _Message_Ping_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  633. in := new(Request)
  634. if err := dec(in); err != nil {
  635. return nil, err
  636. }
  637. if interceptor == nil {
  638. return srv.(MessageServer).Ping(ctx, in)
  639. }
  640. info := &grpc.UnaryServerInfo{
  641. Server: srv,
  642. FullMethod: "/message.Message/Ping",
  643. }
  644. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  645. return srv.(MessageServer).Ping(ctx, req.(*Request))
  646. }
  647. return interceptor(ctx, in, info, handler)
  648. }
  649. func _Message_ChangeReadStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  650. in := new(ChangeReadStatusRequest)
  651. if err := dec(in); err != nil {
  652. return nil, err
  653. }
  654. if interceptor == nil {
  655. return srv.(MessageServer).ChangeReadStatus(ctx, in)
  656. }
  657. info := &grpc.UnaryServerInfo{
  658. Server: srv,
  659. FullMethod: "/message.Message/ChangeReadStatus",
  660. }
  661. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  662. return srv.(MessageServer).ChangeReadStatus(ctx, req.(*ChangeReadStatusRequest))
  663. }
  664. return interceptor(ctx, in, info, handler)
  665. }
  666. func _Message_DeleteSingleMessage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  667. in := new(DeleteSingleMessageRequest)
  668. if err := dec(in); err != nil {
  669. return nil, err
  670. }
  671. if interceptor == nil {
  672. return srv.(MessageServer).DeleteSingleMessage(ctx, in)
  673. }
  674. info := &grpc.UnaryServerInfo{
  675. Server: srv,
  676. FullMethod: "/message.Message/DeleteSingleMessage",
  677. }
  678. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  679. return srv.(MessageServer).DeleteSingleMessage(ctx, req.(*DeleteSingleMessageRequest))
  680. }
  681. return interceptor(ctx, in, info, handler)
  682. }
  683. func _Message_DeleteMultipleMessage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  684. in := new(DeleteMultipleMessageRequest)
  685. if err := dec(in); err != nil {
  686. return nil, err
  687. }
  688. if interceptor == nil {
  689. return srv.(MessageServer).DeleteMultipleMessage(ctx, in)
  690. }
  691. info := &grpc.UnaryServerInfo{
  692. Server: srv,
  693. FullMethod: "/message.Message/DeleteMultipleMessage",
  694. }
  695. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  696. return srv.(MessageServer).DeleteMultipleMessage(ctx, req.(*DeleteMultipleMessageRequest))
  697. }
  698. return interceptor(ctx, in, info, handler)
  699. }
  700. func _Message_GetUnreadCount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  701. in := new(DeleteMultipleMessageRequest)
  702. if err := dec(in); err != nil {
  703. return nil, err
  704. }
  705. if interceptor == nil {
  706. return srv.(MessageServer).GetUnreadCount(ctx, in)
  707. }
  708. info := &grpc.UnaryServerInfo{
  709. Server: srv,
  710. FullMethod: "/message.Message/GetUnreadCount",
  711. }
  712. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  713. return srv.(MessageServer).GetUnreadCount(ctx, req.(*DeleteMultipleMessageRequest))
  714. }
  715. return interceptor(ctx, in, info, handler)
  716. }
  717. var _Message_serviceDesc = grpc.ServiceDesc{
  718. ServiceName: "message.Message",
  719. HandlerType: (*MessageServer)(nil),
  720. Methods: []grpc.MethodDesc{
  721. {
  722. MethodName: "Ping",
  723. Handler: _Message_Ping_Handler,
  724. },
  725. {
  726. MethodName: "ChangeReadStatus",
  727. Handler: _Message_ChangeReadStatus_Handler,
  728. },
  729. {
  730. MethodName: "DeleteSingleMessage",
  731. Handler: _Message_DeleteSingleMessage_Handler,
  732. },
  733. {
  734. MethodName: "DeleteMultipleMessage",
  735. Handler: _Message_DeleteMultipleMessage_Handler,
  736. },
  737. {
  738. MethodName: "GetUnreadCount",
  739. Handler: _Message_GetUnreadCount_Handler,
  740. },
  741. },
  742. Streams: []grpc.StreamDesc{},
  743. Metadata: "message.proto",
  744. }