websocket.pb.go 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665
  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. }
  319. func (x *OnlinePersonInfo) Reset() {
  320. *x = OnlinePersonInfo{}
  321. if protoimpl.UnsafeEnabled {
  322. mi := &file_websocket_proto_msgTypes[6]
  323. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  324. ms.StoreMessageInfo(mi)
  325. }
  326. }
  327. func (x *OnlinePersonInfo) String() string {
  328. return protoimpl.X.MessageStringOf(x)
  329. }
  330. func (*OnlinePersonInfo) ProtoMessage() {}
  331. func (x *OnlinePersonInfo) ProtoReflect() protoreflect.Message {
  332. mi := &file_websocket_proto_msgTypes[6]
  333. if protoimpl.UnsafeEnabled && x != nil {
  334. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  335. if ms.LoadMessageInfo() == nil {
  336. ms.StoreMessageInfo(mi)
  337. }
  338. return ms
  339. }
  340. return mi.MessageOf(x)
  341. }
  342. // Deprecated: Use OnlinePersonInfo.ProtoReflect.Descriptor instead.
  343. func (*OnlinePersonInfo) Descriptor() ([]byte, []int) {
  344. return file_websocket_proto_rawDescGZIP(), []int{6}
  345. }
  346. func (x *OnlinePersonInfo) GetPersonType() string {
  347. if x != nil {
  348. return x.PersonType
  349. }
  350. return ""
  351. }
  352. func (x *OnlinePersonInfo) GetPersonId() string {
  353. if x != nil {
  354. return x.PersonId
  355. }
  356. return ""
  357. }
  358. func (x *OnlinePersonInfo) GetWeight() int64 {
  359. if x != nil {
  360. return x.Weight
  361. }
  362. return 0
  363. }
  364. func (x *OnlinePersonInfo) GetWorkingStatus() string {
  365. if x != nil {
  366. return x.WorkingStatus
  367. }
  368. return ""
  369. }
  370. var File_websocket_proto protoreflect.FileDescriptor
  371. var file_websocket_proto_rawDesc = []byte{
  372. 0x0a, 0x0f, 0x77, 0x65, 0x62, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74,
  373. 0x6f, 0x12, 0x0d, 0x61, 0x70, 0x69, 0x2e, 0x77, 0x65, 0x62, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74,
  374. 0x1a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
  375. 0x66, 0x2f, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x52, 0x0a,
  376. 0x1a, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x57, 0x6f, 0x72, 0x6b, 0x69, 0x6e, 0x67, 0x53, 0x74,
  377. 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69,
  378. 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x24, 0x0a, 0x0d, 0x77,
  379. 0x6f, 0x72, 0x6b, 0x69, 0x6e, 0x67, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x02, 0x20, 0x01,
  380. 0x28, 0x09, 0x52, 0x0d, 0x77, 0x6f, 0x72, 0x6b, 0x69, 0x6e, 0x67, 0x53, 0x74, 0x61, 0x74, 0x75,
  381. 0x73, 0x22, 0x3d, 0x0a, 0x13, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x57, 0x65, 0x69, 0x67, 0x68,
  382. 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01,
  383. 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x77, 0x65, 0x69, 0x67,
  384. 0x68, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x77, 0x65, 0x69, 0x67, 0x68, 0x74,
  385. 0x22, 0x59, 0x0a, 0x0b, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x12,
  386. 0x16, 0x0a, 0x06, 0x72, 0x6f, 0x6f, 0x6d, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52,
  387. 0x06, 0x72, 0x6f, 0x6f, 0x6d, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61,
  388. 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67,
  389. 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x73, 0x67, 0x54, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01,
  390. 0x28, 0x09, 0x52, 0x07, 0x6d, 0x73, 0x67, 0x54, 0x79, 0x70, 0x65, 0x22, 0x9e, 0x01, 0x0a, 0x0e,
  391. 0x53, 0x65, 0x6e, 0x64, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e,
  392. 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x16,
  393. 0x0a, 0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06,
  394. 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03,
  395. 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f,
  396. 0x64, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x18,
  397. 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52,
  398. 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x22, 0x0a, 0x0c, 0x77, 0x65, 0x62, 0x73,
  399. 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x54, 0x61, 0x67, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c,
  400. 0x77, 0x65, 0x62, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x54, 0x61, 0x67, 0x22, 0x0e, 0x0a, 0x0c,
  401. 0x53, 0x65, 0x6e, 0x64, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x4c, 0x0a, 0x15,
  402. 0x46, 0x69, 0x6e, 0x64, 0x4f, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x50, 0x65, 0x72, 0x73, 0x6f, 0x6e,
  403. 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, 0x33, 0x0a, 0x04, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x01, 0x20,
  404. 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x77, 0x65, 0x62, 0x73, 0x6f, 0x63,
  405. 0x6b, 0x65, 0x74, 0x2e, 0x4f, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x50, 0x65, 0x72, 0x73, 0x6f, 0x6e,
  406. 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x04, 0x6c, 0x69, 0x73, 0x74, 0x22, 0x8c, 0x01, 0x0a, 0x10, 0x4f,
  407. 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x50, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x12,
  408. 0x1e, 0x0a, 0x0a, 0x70, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20,
  409. 0x01, 0x28, 0x09, 0x52, 0x0a, 0x70, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12,
  410. 0x1a, 0x0a, 0x08, 0x70, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28,
  411. 0x09, 0x52, 0x08, 0x70, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x77,
  412. 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x77, 0x65, 0x69,
  413. 0x67, 0x68, 0x74, 0x12, 0x24, 0x0a, 0x0d, 0x77, 0x6f, 0x72, 0x6b, 0x69, 0x6e, 0x67, 0x53, 0x74,
  414. 0x61, 0x74, 0x75, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x77, 0x6f, 0x72, 0x6b,
  415. 0x69, 0x6e, 0x67, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x32, 0xd0, 0x02, 0x0a, 0x09, 0x57, 0x65,
  416. 0x62, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x12, 0x50, 0x0a, 0x10, 0x46, 0x69, 0x6e, 0x64, 0x4f,
  417. 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x50, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x12, 0x16, 0x2e, 0x67, 0x6f,
  418. 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d,
  419. 0x70, 0x74, 0x79, 0x1a, 0x24, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x77, 0x65, 0x62, 0x73, 0x6f, 0x63,
  420. 0x6b, 0x65, 0x74, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x4f, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x50, 0x65,
  421. 0x72, 0x73, 0x6f, 0x6e, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, 0x47, 0x0a, 0x07, 0x53, 0x65, 0x6e,
  422. 0x64, 0x4d, 0x73, 0x67, 0x12, 0x1d, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x77, 0x65, 0x62, 0x73, 0x6f,
  423. 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x53, 0x65, 0x6e, 0x64, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x71, 0x75,
  424. 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x77, 0x65, 0x62, 0x73, 0x6f, 0x63,
  425. 0x6b, 0x65, 0x74, 0x2e, 0x53, 0x65, 0x6e, 0x64, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x70, 0x6c, 0x79,
  426. 0x22, 0x00, 0x12, 0x5a, 0x0a, 0x13, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x57, 0x6f, 0x72, 0x6b,
  427. 0x69, 0x6e, 0x67, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x29, 0x2e, 0x61, 0x70, 0x69, 0x2e,
  428. 0x77, 0x65, 0x62, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65,
  429. 0x57, 0x6f, 0x72, 0x6b, 0x69, 0x6e, 0x67, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x71,
  430. 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72,
  431. 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x00, 0x12, 0x4c,
  432. 0x0a, 0x0c, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x57, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x22,
  433. 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x77, 0x65, 0x62, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x55,
  434. 0x70, 0x64, 0x61, 0x74, 0x65, 0x57, 0x65, 0x69, 0x67, 0x68, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65,
  435. 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74,
  436. 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x00, 0x42, 0x4c, 0x0a, 0x0d,
  437. 0x61, 0x70, 0x69, 0x2e, 0x77, 0x65, 0x62, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x50, 0x01, 0x5a,
  438. 0x39, 0x67, 0x69, 0x74, 0x2e, 0x69, 0x6b, 0x75, 0x62, 0x61, 0x6e, 0x2e, 0x63, 0x6f, 0x6d, 0x2f,
  439. 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2f, 0x70, 0x77, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
  440. 0x75, 0x66, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x77, 0x65, 0x62, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74,
  441. 0x3b, 0x77, 0x65, 0x62, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
  442. 0x6f, 0x33,
  443. }
  444. var (
  445. file_websocket_proto_rawDescOnce sync.Once
  446. file_websocket_proto_rawDescData = file_websocket_proto_rawDesc
  447. )
  448. func file_websocket_proto_rawDescGZIP() []byte {
  449. file_websocket_proto_rawDescOnce.Do(func() {
  450. file_websocket_proto_rawDescData = protoimpl.X.CompressGZIP(file_websocket_proto_rawDescData)
  451. })
  452. return file_websocket_proto_rawDescData
  453. }
  454. var file_websocket_proto_msgTypes = make([]protoimpl.MessageInfo, 7)
  455. var file_websocket_proto_goTypes = []interface{}{
  456. (*UpdateWorkingStatusRequest)(nil), // 0: api.websocket.UpdateWorkingStatusRequest
  457. (*UpdateWeightRequest)(nil), // 1: api.websocket.UpdateWeightRequest
  458. (*MessageInfo)(nil), // 2: api.websocket.MessageInfo
  459. (*SendMsgRequest)(nil), // 3: api.websocket.SendMsgRequest
  460. (*SendMsgReply)(nil), // 4: api.websocket.SendMsgReply
  461. (*FindOnlinePersonReply)(nil), // 5: api.websocket.FindOnlinePersonReply
  462. (*OnlinePersonInfo)(nil), // 6: api.websocket.OnlinePersonInfo
  463. (*emptypb.Empty)(nil), // 7: google.protobuf.Empty
  464. }
  465. var file_websocket_proto_depIdxs = []int32{
  466. 6, // 0: api.websocket.FindOnlinePersonReply.list:type_name -> api.websocket.OnlinePersonInfo
  467. 7, // 1: api.websocket.Websocket.FindOnlinePerson:input_type -> google.protobuf.Empty
  468. 3, // 2: api.websocket.Websocket.SendMsg:input_type -> api.websocket.SendMsgRequest
  469. 0, // 3: api.websocket.Websocket.UpdateWorkingStatus:input_type -> api.websocket.UpdateWorkingStatusRequest
  470. 1, // 4: api.websocket.Websocket.UpdateWeight:input_type -> api.websocket.UpdateWeightRequest
  471. 5, // 5: api.websocket.Websocket.FindOnlinePerson:output_type -> api.websocket.FindOnlinePersonReply
  472. 4, // 6: api.websocket.Websocket.SendMsg:output_type -> api.websocket.SendMsgReply
  473. 7, // 7: api.websocket.Websocket.UpdateWorkingStatus:output_type -> google.protobuf.Empty
  474. 7, // 8: api.websocket.Websocket.UpdateWeight:output_type -> google.protobuf.Empty
  475. 5, // [5:9] is the sub-list for method output_type
  476. 1, // [1:5] is the sub-list for method input_type
  477. 1, // [1:1] is the sub-list for extension type_name
  478. 1, // [1:1] is the sub-list for extension extendee
  479. 0, // [0:1] is the sub-list for field type_name
  480. }
  481. func init() { file_websocket_proto_init() }
  482. func file_websocket_proto_init() {
  483. if File_websocket_proto != nil {
  484. return
  485. }
  486. if !protoimpl.UnsafeEnabled {
  487. file_websocket_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  488. switch v := v.(*UpdateWorkingStatusRequest); i {
  489. case 0:
  490. return &v.state
  491. case 1:
  492. return &v.sizeCache
  493. case 2:
  494. return &v.unknownFields
  495. default:
  496. return nil
  497. }
  498. }
  499. file_websocket_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  500. switch v := v.(*UpdateWeightRequest); i {
  501. case 0:
  502. return &v.state
  503. case 1:
  504. return &v.sizeCache
  505. case 2:
  506. return &v.unknownFields
  507. default:
  508. return nil
  509. }
  510. }
  511. file_websocket_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  512. switch v := v.(*MessageInfo); i {
  513. case 0:
  514. return &v.state
  515. case 1:
  516. return &v.sizeCache
  517. case 2:
  518. return &v.unknownFields
  519. default:
  520. return nil
  521. }
  522. }
  523. file_websocket_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
  524. switch v := v.(*SendMsgRequest); i {
  525. case 0:
  526. return &v.state
  527. case 1:
  528. return &v.sizeCache
  529. case 2:
  530. return &v.unknownFields
  531. default:
  532. return nil
  533. }
  534. }
  535. file_websocket_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
  536. switch v := v.(*SendMsgReply); i {
  537. case 0:
  538. return &v.state
  539. case 1:
  540. return &v.sizeCache
  541. case 2:
  542. return &v.unknownFields
  543. default:
  544. return nil
  545. }
  546. }
  547. file_websocket_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
  548. switch v := v.(*FindOnlinePersonReply); i {
  549. case 0:
  550. return &v.state
  551. case 1:
  552. return &v.sizeCache
  553. case 2:
  554. return &v.unknownFields
  555. default:
  556. return nil
  557. }
  558. }
  559. file_websocket_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
  560. switch v := v.(*OnlinePersonInfo); i {
  561. case 0:
  562. return &v.state
  563. case 1:
  564. return &v.sizeCache
  565. case 2:
  566. return &v.unknownFields
  567. default:
  568. return nil
  569. }
  570. }
  571. }
  572. type x struct{}
  573. out := protoimpl.TypeBuilder{
  574. File: protoimpl.DescBuilder{
  575. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  576. RawDescriptor: file_websocket_proto_rawDesc,
  577. NumEnums: 0,
  578. NumMessages: 7,
  579. NumExtensions: 0,
  580. NumServices: 1,
  581. },
  582. GoTypes: file_websocket_proto_goTypes,
  583. DependencyIndexes: file_websocket_proto_depIdxs,
  584. MessageInfos: file_websocket_proto_msgTypes,
  585. }.Build()
  586. File_websocket_proto = out.File
  587. file_websocket_proto_rawDesc = nil
  588. file_websocket_proto_goTypes = nil
  589. file_websocket_proto_depIdxs = nil
  590. }