websocket.pb.go 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.26.0-devel
  4. // protoc v3.15.8
  5. // source: websocket.proto
  6. package websocket
  7. import (
  8. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  9. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  10. emptypb "google.golang.org/protobuf/types/known/emptypb"
  11. reflect "reflect"
  12. sync "sync"
  13. )
  14. const (
  15. // Verify that this generated code is sufficiently up-to-date.
  16. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  17. // Verify that runtime/protoimpl is sufficiently up-to-date.
  18. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  19. )
  20. type CheckIsOnlineRequest struct {
  21. state protoimpl.MessageState
  22. sizeCache protoimpl.SizeCache
  23. unknownFields protoimpl.UnknownFields
  24. IdentifyId string `protobuf:"bytes,1,opt,name=identifyId,proto3" json:"identifyId"` // 身份ID
  25. }
  26. func (x *CheckIsOnlineRequest) Reset() {
  27. *x = CheckIsOnlineRequest{}
  28. if protoimpl.UnsafeEnabled {
  29. mi := &file_websocket_proto_msgTypes[0]
  30. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  31. ms.StoreMessageInfo(mi)
  32. }
  33. }
  34. func (x *CheckIsOnlineRequest) String() string {
  35. return protoimpl.X.MessageStringOf(x)
  36. }
  37. func (*CheckIsOnlineRequest) ProtoMessage() {}
  38. func (x *CheckIsOnlineRequest) ProtoReflect() protoreflect.Message {
  39. mi := &file_websocket_proto_msgTypes[0]
  40. if protoimpl.UnsafeEnabled && x != nil {
  41. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  42. if ms.LoadMessageInfo() == nil {
  43. ms.StoreMessageInfo(mi)
  44. }
  45. return ms
  46. }
  47. return mi.MessageOf(x)
  48. }
  49. // Deprecated: Use CheckIsOnlineRequest.ProtoReflect.Descriptor instead.
  50. func (*CheckIsOnlineRequest) Descriptor() ([]byte, []int) {
  51. return file_websocket_proto_rawDescGZIP(), []int{0}
  52. }
  53. func (x *CheckIsOnlineRequest) GetIdentifyId() string {
  54. if x != nil {
  55. return x.IdentifyId
  56. }
  57. return ""
  58. }
  59. type CheckIsOnlineReply struct {
  60. state protoimpl.MessageState
  61. sizeCache protoimpl.SizeCache
  62. unknownFields protoimpl.UnknownFields
  63. IsOnline bool `protobuf:"varint,1,opt,name=isOnline,proto3" json:"isOnline"` // 是否在线
  64. }
  65. func (x *CheckIsOnlineReply) Reset() {
  66. *x = CheckIsOnlineReply{}
  67. if protoimpl.UnsafeEnabled {
  68. mi := &file_websocket_proto_msgTypes[1]
  69. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  70. ms.StoreMessageInfo(mi)
  71. }
  72. }
  73. func (x *CheckIsOnlineReply) String() string {
  74. return protoimpl.X.MessageStringOf(x)
  75. }
  76. func (*CheckIsOnlineReply) ProtoMessage() {}
  77. func (x *CheckIsOnlineReply) ProtoReflect() protoreflect.Message {
  78. mi := &file_websocket_proto_msgTypes[1]
  79. if protoimpl.UnsafeEnabled && x != nil {
  80. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  81. if ms.LoadMessageInfo() == nil {
  82. ms.StoreMessageInfo(mi)
  83. }
  84. return ms
  85. }
  86. return mi.MessageOf(x)
  87. }
  88. // Deprecated: Use CheckIsOnlineReply.ProtoReflect.Descriptor instead.
  89. func (*CheckIsOnlineReply) Descriptor() ([]byte, []int) {
  90. return file_websocket_proto_rawDescGZIP(), []int{1}
  91. }
  92. func (x *CheckIsOnlineReply) GetIsOnline() bool {
  93. if x != nil {
  94. return x.IsOnline
  95. }
  96. return false
  97. }
  98. type UpdateWorkingStatusRequest struct {
  99. state protoimpl.MessageState
  100. sizeCache protoimpl.SizeCache
  101. unknownFields protoimpl.UnknownFields
  102. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id"`
  103. WorkingStatus string `protobuf:"bytes,2,opt,name=workingStatus,proto3" json:"workingStatus"`
  104. }
  105. func (x *UpdateWorkingStatusRequest) Reset() {
  106. *x = UpdateWorkingStatusRequest{}
  107. if protoimpl.UnsafeEnabled {
  108. mi := &file_websocket_proto_msgTypes[2]
  109. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  110. ms.StoreMessageInfo(mi)
  111. }
  112. }
  113. func (x *UpdateWorkingStatusRequest) String() string {
  114. return protoimpl.X.MessageStringOf(x)
  115. }
  116. func (*UpdateWorkingStatusRequest) ProtoMessage() {}
  117. func (x *UpdateWorkingStatusRequest) ProtoReflect() protoreflect.Message {
  118. mi := &file_websocket_proto_msgTypes[2]
  119. if protoimpl.UnsafeEnabled && x != nil {
  120. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  121. if ms.LoadMessageInfo() == nil {
  122. ms.StoreMessageInfo(mi)
  123. }
  124. return ms
  125. }
  126. return mi.MessageOf(x)
  127. }
  128. // Deprecated: Use UpdateWorkingStatusRequest.ProtoReflect.Descriptor instead.
  129. func (*UpdateWorkingStatusRequest) Descriptor() ([]byte, []int) {
  130. return file_websocket_proto_rawDescGZIP(), []int{2}
  131. }
  132. func (x *UpdateWorkingStatusRequest) GetId() string {
  133. if x != nil {
  134. return x.Id
  135. }
  136. return ""
  137. }
  138. func (x *UpdateWorkingStatusRequest) GetWorkingStatus() string {
  139. if x != nil {
  140. return x.WorkingStatus
  141. }
  142. return ""
  143. }
  144. type UpdateWeightRequest struct {
  145. state protoimpl.MessageState
  146. sizeCache protoimpl.SizeCache
  147. unknownFields protoimpl.UnknownFields
  148. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id"`
  149. Weight int64 `protobuf:"varint,2,opt,name=weight,proto3" json:"weight"`
  150. }
  151. func (x *UpdateWeightRequest) Reset() {
  152. *x = UpdateWeightRequest{}
  153. if protoimpl.UnsafeEnabled {
  154. mi := &file_websocket_proto_msgTypes[3]
  155. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  156. ms.StoreMessageInfo(mi)
  157. }
  158. }
  159. func (x *UpdateWeightRequest) String() string {
  160. return protoimpl.X.MessageStringOf(x)
  161. }
  162. func (*UpdateWeightRequest) ProtoMessage() {}
  163. func (x *UpdateWeightRequest) ProtoReflect() protoreflect.Message {
  164. mi := &file_websocket_proto_msgTypes[3]
  165. if protoimpl.UnsafeEnabled && x != nil {
  166. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  167. if ms.LoadMessageInfo() == nil {
  168. ms.StoreMessageInfo(mi)
  169. }
  170. return ms
  171. }
  172. return mi.MessageOf(x)
  173. }
  174. // Deprecated: Use UpdateWeightRequest.ProtoReflect.Descriptor instead.
  175. func (*UpdateWeightRequest) Descriptor() ([]byte, []int) {
  176. return file_websocket_proto_rawDescGZIP(), []int{3}
  177. }
  178. func (x *UpdateWeightRequest) GetId() string {
  179. if x != nil {
  180. return x.Id
  181. }
  182. return ""
  183. }
  184. func (x *UpdateWeightRequest) GetWeight() int64 {
  185. if x != nil {
  186. return x.Weight
  187. }
  188. return 0
  189. }
  190. type MessageInfo struct {
  191. state protoimpl.MessageState
  192. sizeCache protoimpl.SizeCache
  193. unknownFields protoimpl.UnknownFields
  194. RoomId int64 `protobuf:"varint,1,opt,name=roomId,proto3" json:"roomId"` // 房间ID
  195. Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message"` // 发送的消息
  196. MsgType string `protobuf:"bytes,3,opt,name=msgType,proto3" json:"msgType"` // 消息类型
  197. }
  198. func (x *MessageInfo) Reset() {
  199. *x = MessageInfo{}
  200. if protoimpl.UnsafeEnabled {
  201. mi := &file_websocket_proto_msgTypes[4]
  202. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  203. ms.StoreMessageInfo(mi)
  204. }
  205. }
  206. func (x *MessageInfo) String() string {
  207. return protoimpl.X.MessageStringOf(x)
  208. }
  209. func (*MessageInfo) ProtoMessage() {}
  210. func (x *MessageInfo) ProtoReflect() protoreflect.Message {
  211. mi := &file_websocket_proto_msgTypes[4]
  212. if protoimpl.UnsafeEnabled && x != nil {
  213. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  214. if ms.LoadMessageInfo() == nil {
  215. ms.StoreMessageInfo(mi)
  216. }
  217. return ms
  218. }
  219. return mi.MessageOf(x)
  220. }
  221. // Deprecated: Use MessageInfo.ProtoReflect.Descriptor instead.
  222. func (*MessageInfo) Descriptor() ([]byte, []int) {
  223. return file_websocket_proto_rawDescGZIP(), []int{4}
  224. }
  225. func (x *MessageInfo) GetRoomId() int64 {
  226. if x != nil {
  227. return x.RoomId
  228. }
  229. return 0
  230. }
  231. func (x *MessageInfo) GetMessage() string {
  232. if x != nil {
  233. return x.Message
  234. }
  235. return ""
  236. }
  237. func (x *MessageInfo) GetMsgType() string {
  238. if x != nil {
  239. return x.MsgType
  240. }
  241. return ""
  242. }
  243. type SendMsgRequest struct {
  244. state protoimpl.MessageState
  245. sizeCache protoimpl.SizeCache
  246. unknownFields protoimpl.UnknownFields
  247. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id"`
  248. Method string `protobuf:"bytes,2,opt,name=method,proto3" json:"method"`
  249. Data []byte `protobuf:"bytes,3,opt,name=data,proto3" json:"data"`
  250. Code int32 `protobuf:"varint,4,opt,name=code,proto3" json:"code"`
  251. Message string `protobuf:"bytes,5,opt,name=message,proto3" json:"message"`
  252. WebsocketTag string `protobuf:"bytes,6,opt,name=websocketTag,proto3" json:"websocketTag"`
  253. }
  254. func (x *SendMsgRequest) Reset() {
  255. *x = SendMsgRequest{}
  256. if protoimpl.UnsafeEnabled {
  257. mi := &file_websocket_proto_msgTypes[5]
  258. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  259. ms.StoreMessageInfo(mi)
  260. }
  261. }
  262. func (x *SendMsgRequest) String() string {
  263. return protoimpl.X.MessageStringOf(x)
  264. }
  265. func (*SendMsgRequest) ProtoMessage() {}
  266. func (x *SendMsgRequest) ProtoReflect() protoreflect.Message {
  267. mi := &file_websocket_proto_msgTypes[5]
  268. if protoimpl.UnsafeEnabled && x != nil {
  269. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  270. if ms.LoadMessageInfo() == nil {
  271. ms.StoreMessageInfo(mi)
  272. }
  273. return ms
  274. }
  275. return mi.MessageOf(x)
  276. }
  277. // Deprecated: Use SendMsgRequest.ProtoReflect.Descriptor instead.
  278. func (*SendMsgRequest) Descriptor() ([]byte, []int) {
  279. return file_websocket_proto_rawDescGZIP(), []int{5}
  280. }
  281. func (x *SendMsgRequest) GetId() string {
  282. if x != nil {
  283. return x.Id
  284. }
  285. return ""
  286. }
  287. func (x *SendMsgRequest) GetMethod() string {
  288. if x != nil {
  289. return x.Method
  290. }
  291. return ""
  292. }
  293. func (x *SendMsgRequest) GetData() []byte {
  294. if x != nil {
  295. return x.Data
  296. }
  297. return nil
  298. }
  299. func (x *SendMsgRequest) GetCode() int32 {
  300. if x != nil {
  301. return x.Code
  302. }
  303. return 0
  304. }
  305. func (x *SendMsgRequest) GetMessage() string {
  306. if x != nil {
  307. return x.Message
  308. }
  309. return ""
  310. }
  311. func (x *SendMsgRequest) GetWebsocketTag() string {
  312. if x != nil {
  313. return x.WebsocketTag
  314. }
  315. return ""
  316. }
  317. type SendMsgReply struct {
  318. state protoimpl.MessageState
  319. sizeCache protoimpl.SizeCache
  320. unknownFields protoimpl.UnknownFields
  321. }
  322. func (x *SendMsgReply) Reset() {
  323. *x = SendMsgReply{}
  324. if protoimpl.UnsafeEnabled {
  325. mi := &file_websocket_proto_msgTypes[6]
  326. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  327. ms.StoreMessageInfo(mi)
  328. }
  329. }
  330. func (x *SendMsgReply) String() string {
  331. return protoimpl.X.MessageStringOf(x)
  332. }
  333. func (*SendMsgReply) ProtoMessage() {}
  334. func (x *SendMsgReply) ProtoReflect() protoreflect.Message {
  335. mi := &file_websocket_proto_msgTypes[6]
  336. if protoimpl.UnsafeEnabled && x != nil {
  337. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  338. if ms.LoadMessageInfo() == nil {
  339. ms.StoreMessageInfo(mi)
  340. }
  341. return ms
  342. }
  343. return mi.MessageOf(x)
  344. }
  345. // Deprecated: Use SendMsgReply.ProtoReflect.Descriptor instead.
  346. func (*SendMsgReply) Descriptor() ([]byte, []int) {
  347. return file_websocket_proto_rawDescGZIP(), []int{6}
  348. }
  349. type FindOnlinePersonReply struct {
  350. state protoimpl.MessageState
  351. sizeCache protoimpl.SizeCache
  352. unknownFields protoimpl.UnknownFields
  353. List []*OnlinePersonInfo `protobuf:"bytes,1,rep,name=list,proto3" json:"list"`
  354. }
  355. func (x *FindOnlinePersonReply) Reset() {
  356. *x = FindOnlinePersonReply{}
  357. if protoimpl.UnsafeEnabled {
  358. mi := &file_websocket_proto_msgTypes[7]
  359. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  360. ms.StoreMessageInfo(mi)
  361. }
  362. }
  363. func (x *FindOnlinePersonReply) String() string {
  364. return protoimpl.X.MessageStringOf(x)
  365. }
  366. func (*FindOnlinePersonReply) ProtoMessage() {}
  367. func (x *FindOnlinePersonReply) ProtoReflect() protoreflect.Message {
  368. mi := &file_websocket_proto_msgTypes[7]
  369. if protoimpl.UnsafeEnabled && x != nil {
  370. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  371. if ms.LoadMessageInfo() == nil {
  372. ms.StoreMessageInfo(mi)
  373. }
  374. return ms
  375. }
  376. return mi.MessageOf(x)
  377. }
  378. // Deprecated: Use FindOnlinePersonReply.ProtoReflect.Descriptor instead.
  379. func (*FindOnlinePersonReply) Descriptor() ([]byte, []int) {
  380. return file_websocket_proto_rawDescGZIP(), []int{7}
  381. }
  382. func (x *FindOnlinePersonReply) GetList() []*OnlinePersonInfo {
  383. if x != nil {
  384. return x.List
  385. }
  386. return nil
  387. }
  388. type OnlinePersonInfo struct {
  389. state protoimpl.MessageState
  390. sizeCache protoimpl.SizeCache
  391. unknownFields protoimpl.UnknownFields
  392. PersonType string `protobuf:"bytes,1,opt,name=personType,proto3" json:"personType"`
  393. PersonId string `protobuf:"bytes,2,opt,name=personId,proto3" json:"personId"`
  394. Weight int64 `protobuf:"varint,3,opt,name=weight,proto3" json:"weight"` // 权重
  395. WorkingStatus string `protobuf:"bytes,4,opt,name=workingStatus,proto3" json:"workingStatus"` // 工作状态
  396. Sex int64 `protobuf:"varint,5,opt,name=sex,proto3" json:"sex"` // 性别
  397. }
  398. func (x *OnlinePersonInfo) Reset() {
  399. *x = OnlinePersonInfo{}
  400. if protoimpl.UnsafeEnabled {
  401. mi := &file_websocket_proto_msgTypes[8]
  402. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  403. ms.StoreMessageInfo(mi)
  404. }
  405. }
  406. func (x *OnlinePersonInfo) String() string {
  407. return protoimpl.X.MessageStringOf(x)
  408. }
  409. func (*OnlinePersonInfo) ProtoMessage() {}
  410. func (x *OnlinePersonInfo) ProtoReflect() protoreflect.Message {
  411. mi := &file_websocket_proto_msgTypes[8]
  412. if protoimpl.UnsafeEnabled && x != nil {
  413. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  414. if ms.LoadMessageInfo() == nil {
  415. ms.StoreMessageInfo(mi)
  416. }
  417. return ms
  418. }
  419. return mi.MessageOf(x)
  420. }
  421. // Deprecated: Use OnlinePersonInfo.ProtoReflect.Descriptor instead.
  422. func (*OnlinePersonInfo) Descriptor() ([]byte, []int) {
  423. return file_websocket_proto_rawDescGZIP(), []int{8}
  424. }
  425. func (x *OnlinePersonInfo) GetPersonType() string {
  426. if x != nil {
  427. return x.PersonType
  428. }
  429. return ""
  430. }
  431. func (x *OnlinePersonInfo) GetPersonId() string {
  432. if x != nil {
  433. return x.PersonId
  434. }
  435. return ""
  436. }
  437. func (x *OnlinePersonInfo) GetWeight() int64 {
  438. if x != nil {
  439. return x.Weight
  440. }
  441. return 0
  442. }
  443. func (x *OnlinePersonInfo) GetWorkingStatus() string {
  444. if x != nil {
  445. return x.WorkingStatus
  446. }
  447. return ""
  448. }
  449. func (x *OnlinePersonInfo) GetSex() int64 {
  450. if x != nil {
  451. return x.Sex
  452. }
  453. return 0
  454. }
  455. var File_websocket_proto protoreflect.FileDescriptor
  456. var file_websocket_proto_rawDesc = []byte{
  457. 0x0a, 0x0f, 0x77, 0x65, 0x62, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74,
  458. 0x6f, 0x12, 0x0d, 0x61, 0x70, 0x69, 0x2e, 0x77, 0x65, 0x62, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74,
  459. 0x1a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
  460. 0x66, 0x2f, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x36, 0x0a,
  461. 0x14, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x49, 0x73, 0x4f, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x52, 0x65,
  462. 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66,
  463. 0x79, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x69, 0x64, 0x65, 0x6e, 0x74,
  464. 0x69, 0x66, 0x79, 0x49, 0x64, 0x22, 0x30, 0x0a, 0x12, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x49, 0x73,
  465. 0x4f, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, 0x1a, 0x0a, 0x08, 0x69,
  466. 0x73, 0x4f, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x69,
  467. 0x73, 0x4f, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x22, 0x52, 0x0a, 0x1a, 0x55, 0x70, 0x64, 0x61, 0x74,
  468. 0x65, 0x57, 0x6f, 0x72, 0x6b, 0x69, 0x6e, 0x67, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65,
  469. 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
  470. 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x24, 0x0a, 0x0d, 0x77, 0x6f, 0x72, 0x6b, 0x69, 0x6e, 0x67,
  471. 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x77, 0x6f,
  472. 0x72, 0x6b, 0x69, 0x6e, 0x67, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0x3d, 0x0a, 0x13, 0x55,
  473. 0x70, 0x64, 0x61, 0x74, 0x65, 0x57, 0x65, 0x69, 0x67, 0x68, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65,
  474. 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02,
  475. 0x69, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x77, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x02, 0x20, 0x01,
  476. 0x28, 0x03, 0x52, 0x06, 0x77, 0x65, 0x69, 0x67, 0x68, 0x74, 0x22, 0x59, 0x0a, 0x0b, 0x4d, 0x65,
  477. 0x73, 0x73, 0x61, 0x67, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x6f, 0x6f,
  478. 0x6d, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x72, 0x6f, 0x6f, 0x6d, 0x49,
  479. 0x64, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01,
  480. 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6d,
  481. 0x73, 0x67, 0x54, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x73,
  482. 0x67, 0x54, 0x79, 0x70, 0x65, 0x22, 0x9e, 0x01, 0x0a, 0x0e, 0x53, 0x65, 0x6e, 0x64, 0x4d, 0x73,
  483. 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01,
  484. 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x6d, 0x65, 0x74, 0x68,
  485. 0x6f, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64,
  486. 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04,
  487. 0x64, 0x61, 0x74, 0x61, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x04, 0x20, 0x01,
  488. 0x28, 0x05, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73,
  489. 0x61, 0x67, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61,
  490. 0x67, 0x65, 0x12, 0x22, 0x0a, 0x0c, 0x77, 0x65, 0x62, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x54,
  491. 0x61, 0x67, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x77, 0x65, 0x62, 0x73, 0x6f, 0x63,
  492. 0x6b, 0x65, 0x74, 0x54, 0x61, 0x67, 0x22, 0x0e, 0x0a, 0x0c, 0x53, 0x65, 0x6e, 0x64, 0x4d, 0x73,
  493. 0x67, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x4c, 0x0a, 0x15, 0x46, 0x69, 0x6e, 0x64, 0x4f, 0x6e,
  494. 0x6c, 0x69, 0x6e, 0x65, 0x50, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12,
  495. 0x33, 0x0a, 0x04, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e,
  496. 0x61, 0x70, 0x69, 0x2e, 0x77, 0x65, 0x62, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x4f, 0x6e,
  497. 0x6c, 0x69, 0x6e, 0x65, 0x50, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x04,
  498. 0x6c, 0x69, 0x73, 0x74, 0x22, 0x9e, 0x01, 0x0a, 0x10, 0x4f, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x50,
  499. 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x1e, 0x0a, 0x0a, 0x70, 0x65, 0x72,
  500. 0x73, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x70,
  501. 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x65, 0x72,
  502. 0x73, 0x6f, 0x6e, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x65, 0x72,
  503. 0x73, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x77, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18,
  504. 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x77, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x24, 0x0a,
  505. 0x0d, 0x77, 0x6f, 0x72, 0x6b, 0x69, 0x6e, 0x67, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x04,
  506. 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x77, 0x6f, 0x72, 0x6b, 0x69, 0x6e, 0x67, 0x53, 0x74, 0x61,
  507. 0x74, 0x75, 0x73, 0x12, 0x10, 0x0a, 0x03, 0x73, 0x65, 0x78, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03,
  508. 0x52, 0x03, 0x73, 0x65, 0x78, 0x32, 0xab, 0x03, 0x0a, 0x09, 0x57, 0x65, 0x62, 0x73, 0x6f, 0x63,
  509. 0x6b, 0x65, 0x74, 0x12, 0x50, 0x0a, 0x10, 0x46, 0x69, 0x6e, 0x64, 0x4f, 0x6e, 0x6c, 0x69, 0x6e,
  510. 0x65, 0x50, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
  511. 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a,
  512. 0x24, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x77, 0x65, 0x62, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x2e,
  513. 0x46, 0x69, 0x6e, 0x64, 0x4f, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x50, 0x65, 0x72, 0x73, 0x6f, 0x6e,
  514. 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, 0x47, 0x0a, 0x07, 0x53, 0x65, 0x6e, 0x64, 0x4d, 0x73, 0x67,
  515. 0x12, 0x1d, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x77, 0x65, 0x62, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74,
  516. 0x2e, 0x53, 0x65, 0x6e, 0x64, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
  517. 0x1b, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x77, 0x65, 0x62, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x2e,
  518. 0x53, 0x65, 0x6e, 0x64, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x00, 0x12, 0x5a,
  519. 0x0a, 0x13, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x57, 0x6f, 0x72, 0x6b, 0x69, 0x6e, 0x67, 0x53,
  520. 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x29, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x77, 0x65, 0x62, 0x73,
  521. 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x57, 0x6f, 0x72, 0x6b,
  522. 0x69, 0x6e, 0x67, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
  523. 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
  524. 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x00, 0x12, 0x4c, 0x0a, 0x0c, 0x55, 0x70,
  525. 0x64, 0x61, 0x74, 0x65, 0x57, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x22, 0x2e, 0x61, 0x70, 0x69,
  526. 0x2e, 0x77, 0x65, 0x62, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74,
  527. 0x65, 0x57, 0x65, 0x69, 0x67, 0x68, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16,
  528. 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66,
  529. 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x00, 0x12, 0x59, 0x0a, 0x0d, 0x43, 0x68, 0x65, 0x63,
  530. 0x6b, 0x49, 0x73, 0x4f, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x12, 0x23, 0x2e, 0x61, 0x70, 0x69, 0x2e,
  531. 0x77, 0x65, 0x62, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x49,
  532. 0x73, 0x4f, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21,
  533. 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x77, 0x65, 0x62, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x43,
  534. 0x68, 0x65, 0x63, 0x6b, 0x49, 0x73, 0x4f, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x52, 0x65, 0x70, 0x6c,
  535. 0x79, 0x22, 0x00, 0x42, 0x4c, 0x0a, 0x0d, 0x61, 0x70, 0x69, 0x2e, 0x77, 0x65, 0x62, 0x73, 0x6f,
  536. 0x63, 0x6b, 0x65, 0x74, 0x50, 0x01, 0x5a, 0x39, 0x67, 0x69, 0x74, 0x2e, 0x69, 0x6b, 0x75, 0x62,
  537. 0x61, 0x6e, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2f, 0x70, 0x77,
  538. 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x77, 0x65,
  539. 0x62, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x3b, 0x77, 0x65, 0x62, 0x73, 0x6f, 0x63, 0x6b, 0x65,
  540. 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  541. }
  542. var (
  543. file_websocket_proto_rawDescOnce sync.Once
  544. file_websocket_proto_rawDescData = file_websocket_proto_rawDesc
  545. )
  546. func file_websocket_proto_rawDescGZIP() []byte {
  547. file_websocket_proto_rawDescOnce.Do(func() {
  548. file_websocket_proto_rawDescData = protoimpl.X.CompressGZIP(file_websocket_proto_rawDescData)
  549. })
  550. return file_websocket_proto_rawDescData
  551. }
  552. var file_websocket_proto_msgTypes = make([]protoimpl.MessageInfo, 9)
  553. var file_websocket_proto_goTypes = []interface{}{
  554. (*CheckIsOnlineRequest)(nil), // 0: api.websocket.CheckIsOnlineRequest
  555. (*CheckIsOnlineReply)(nil), // 1: api.websocket.CheckIsOnlineReply
  556. (*UpdateWorkingStatusRequest)(nil), // 2: api.websocket.UpdateWorkingStatusRequest
  557. (*UpdateWeightRequest)(nil), // 3: api.websocket.UpdateWeightRequest
  558. (*MessageInfo)(nil), // 4: api.websocket.MessageInfo
  559. (*SendMsgRequest)(nil), // 5: api.websocket.SendMsgRequest
  560. (*SendMsgReply)(nil), // 6: api.websocket.SendMsgReply
  561. (*FindOnlinePersonReply)(nil), // 7: api.websocket.FindOnlinePersonReply
  562. (*OnlinePersonInfo)(nil), // 8: api.websocket.OnlinePersonInfo
  563. (*emptypb.Empty)(nil), // 9: google.protobuf.Empty
  564. }
  565. var file_websocket_proto_depIdxs = []int32{
  566. 8, // 0: api.websocket.FindOnlinePersonReply.list:type_name -> api.websocket.OnlinePersonInfo
  567. 9, // 1: api.websocket.Websocket.FindOnlinePerson:input_type -> google.protobuf.Empty
  568. 5, // 2: api.websocket.Websocket.SendMsg:input_type -> api.websocket.SendMsgRequest
  569. 2, // 3: api.websocket.Websocket.UpdateWorkingStatus:input_type -> api.websocket.UpdateWorkingStatusRequest
  570. 3, // 4: api.websocket.Websocket.UpdateWeight:input_type -> api.websocket.UpdateWeightRequest
  571. 0, // 5: api.websocket.Websocket.CheckIsOnline:input_type -> api.websocket.CheckIsOnlineRequest
  572. 7, // 6: api.websocket.Websocket.FindOnlinePerson:output_type -> api.websocket.FindOnlinePersonReply
  573. 6, // 7: api.websocket.Websocket.SendMsg:output_type -> api.websocket.SendMsgReply
  574. 9, // 8: api.websocket.Websocket.UpdateWorkingStatus:output_type -> google.protobuf.Empty
  575. 9, // 9: api.websocket.Websocket.UpdateWeight:output_type -> google.protobuf.Empty
  576. 1, // 10: api.websocket.Websocket.CheckIsOnline:output_type -> api.websocket.CheckIsOnlineReply
  577. 6, // [6:11] is the sub-list for method output_type
  578. 1, // [1:6] is the sub-list for method input_type
  579. 1, // [1:1] is the sub-list for extension type_name
  580. 1, // [1:1] is the sub-list for extension extendee
  581. 0, // [0:1] is the sub-list for field type_name
  582. }
  583. func init() { file_websocket_proto_init() }
  584. func file_websocket_proto_init() {
  585. if File_websocket_proto != nil {
  586. return
  587. }
  588. if !protoimpl.UnsafeEnabled {
  589. file_websocket_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  590. switch v := v.(*CheckIsOnlineRequest); i {
  591. case 0:
  592. return &v.state
  593. case 1:
  594. return &v.sizeCache
  595. case 2:
  596. return &v.unknownFields
  597. default:
  598. return nil
  599. }
  600. }
  601. file_websocket_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  602. switch v := v.(*CheckIsOnlineReply); i {
  603. case 0:
  604. return &v.state
  605. case 1:
  606. return &v.sizeCache
  607. case 2:
  608. return &v.unknownFields
  609. default:
  610. return nil
  611. }
  612. }
  613. file_websocket_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  614. switch v := v.(*UpdateWorkingStatusRequest); i {
  615. case 0:
  616. return &v.state
  617. case 1:
  618. return &v.sizeCache
  619. case 2:
  620. return &v.unknownFields
  621. default:
  622. return nil
  623. }
  624. }
  625. file_websocket_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
  626. switch v := v.(*UpdateWeightRequest); i {
  627. case 0:
  628. return &v.state
  629. case 1:
  630. return &v.sizeCache
  631. case 2:
  632. return &v.unknownFields
  633. default:
  634. return nil
  635. }
  636. }
  637. file_websocket_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
  638. switch v := v.(*MessageInfo); i {
  639. case 0:
  640. return &v.state
  641. case 1:
  642. return &v.sizeCache
  643. case 2:
  644. return &v.unknownFields
  645. default:
  646. return nil
  647. }
  648. }
  649. file_websocket_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
  650. switch v := v.(*SendMsgRequest); i {
  651. case 0:
  652. return &v.state
  653. case 1:
  654. return &v.sizeCache
  655. case 2:
  656. return &v.unknownFields
  657. default:
  658. return nil
  659. }
  660. }
  661. file_websocket_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
  662. switch v := v.(*SendMsgReply); i {
  663. case 0:
  664. return &v.state
  665. case 1:
  666. return &v.sizeCache
  667. case 2:
  668. return &v.unknownFields
  669. default:
  670. return nil
  671. }
  672. }
  673. file_websocket_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
  674. switch v := v.(*FindOnlinePersonReply); i {
  675. case 0:
  676. return &v.state
  677. case 1:
  678. return &v.sizeCache
  679. case 2:
  680. return &v.unknownFields
  681. default:
  682. return nil
  683. }
  684. }
  685. file_websocket_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
  686. switch v := v.(*OnlinePersonInfo); i {
  687. case 0:
  688. return &v.state
  689. case 1:
  690. return &v.sizeCache
  691. case 2:
  692. return &v.unknownFields
  693. default:
  694. return nil
  695. }
  696. }
  697. }
  698. type x struct{}
  699. out := protoimpl.TypeBuilder{
  700. File: protoimpl.DescBuilder{
  701. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  702. RawDescriptor: file_websocket_proto_rawDesc,
  703. NumEnums: 0,
  704. NumMessages: 9,
  705. NumExtensions: 0,
  706. NumServices: 1,
  707. },
  708. GoTypes: file_websocket_proto_goTypes,
  709. DependencyIndexes: file_websocket_proto_depIdxs,
  710. MessageInfos: file_websocket_proto_msgTypes,
  711. }.Build()
  712. File_websocket_proto = out.File
  713. file_websocket_proto_rawDesc = nil
  714. file_websocket_proto_goTypes = nil
  715. file_websocket_proto_depIdxs = nil
  716. }