websocket.pb.go 22 KB

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