websocket.pb.go 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505
  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 MessageInfo struct {
  21. state protoimpl.MessageState
  22. sizeCache protoimpl.SizeCache
  23. unknownFields protoimpl.UnknownFields
  24. RoomId int64 `protobuf:"varint,1,opt,name=roomId,proto3" json:"roomId"` // 房间ID
  25. Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message"` // 发送的消息
  26. MsgType string `protobuf:"bytes,3,opt,name=msgType,proto3" json:"msgType"` // 消息类型
  27. }
  28. func (x *MessageInfo) Reset() {
  29. *x = MessageInfo{}
  30. if protoimpl.UnsafeEnabled {
  31. mi := &file_websocket_proto_msgTypes[0]
  32. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  33. ms.StoreMessageInfo(mi)
  34. }
  35. }
  36. func (x *MessageInfo) String() string {
  37. return protoimpl.X.MessageStringOf(x)
  38. }
  39. func (*MessageInfo) ProtoMessage() {}
  40. func (x *MessageInfo) ProtoReflect() protoreflect.Message {
  41. mi := &file_websocket_proto_msgTypes[0]
  42. if protoimpl.UnsafeEnabled && x != nil {
  43. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  44. if ms.LoadMessageInfo() == nil {
  45. ms.StoreMessageInfo(mi)
  46. }
  47. return ms
  48. }
  49. return mi.MessageOf(x)
  50. }
  51. // Deprecated: Use MessageInfo.ProtoReflect.Descriptor instead.
  52. func (*MessageInfo) Descriptor() ([]byte, []int) {
  53. return file_websocket_proto_rawDescGZIP(), []int{0}
  54. }
  55. func (x *MessageInfo) GetRoomId() int64 {
  56. if x != nil {
  57. return x.RoomId
  58. }
  59. return 0
  60. }
  61. func (x *MessageInfo) GetMessage() string {
  62. if x != nil {
  63. return x.Message
  64. }
  65. return ""
  66. }
  67. func (x *MessageInfo) GetMsgType() string {
  68. if x != nil {
  69. return x.MsgType
  70. }
  71. return ""
  72. }
  73. type SendMsgRequest struct {
  74. state protoimpl.MessageState
  75. sizeCache protoimpl.SizeCache
  76. unknownFields protoimpl.UnknownFields
  77. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id"`
  78. Method string `protobuf:"bytes,2,opt,name=method,proto3" json:"method"`
  79. Data []byte `protobuf:"bytes,3,opt,name=data,proto3" json:"data"`
  80. Code int32 `protobuf:"varint,4,opt,name=code,proto3" json:"code"`
  81. Message string `protobuf:"bytes,5,opt,name=message,proto3" json:"message"`
  82. WebsocketTag string `protobuf:"bytes,6,opt,name=websocketTag,proto3" json:"websocketTag"`
  83. }
  84. func (x *SendMsgRequest) Reset() {
  85. *x = SendMsgRequest{}
  86. if protoimpl.UnsafeEnabled {
  87. mi := &file_websocket_proto_msgTypes[1]
  88. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  89. ms.StoreMessageInfo(mi)
  90. }
  91. }
  92. func (x *SendMsgRequest) String() string {
  93. return protoimpl.X.MessageStringOf(x)
  94. }
  95. func (*SendMsgRequest) ProtoMessage() {}
  96. func (x *SendMsgRequest) ProtoReflect() protoreflect.Message {
  97. mi := &file_websocket_proto_msgTypes[1]
  98. if protoimpl.UnsafeEnabled && x != nil {
  99. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  100. if ms.LoadMessageInfo() == nil {
  101. ms.StoreMessageInfo(mi)
  102. }
  103. return ms
  104. }
  105. return mi.MessageOf(x)
  106. }
  107. // Deprecated: Use SendMsgRequest.ProtoReflect.Descriptor instead.
  108. func (*SendMsgRequest) Descriptor() ([]byte, []int) {
  109. return file_websocket_proto_rawDescGZIP(), []int{1}
  110. }
  111. func (x *SendMsgRequest) GetId() string {
  112. if x != nil {
  113. return x.Id
  114. }
  115. return ""
  116. }
  117. func (x *SendMsgRequest) GetMethod() string {
  118. if x != nil {
  119. return x.Method
  120. }
  121. return ""
  122. }
  123. func (x *SendMsgRequest) GetData() []byte {
  124. if x != nil {
  125. return x.Data
  126. }
  127. return nil
  128. }
  129. func (x *SendMsgRequest) GetCode() int32 {
  130. if x != nil {
  131. return x.Code
  132. }
  133. return 0
  134. }
  135. func (x *SendMsgRequest) GetMessage() string {
  136. if x != nil {
  137. return x.Message
  138. }
  139. return ""
  140. }
  141. func (x *SendMsgRequest) GetWebsocketTag() string {
  142. if x != nil {
  143. return x.WebsocketTag
  144. }
  145. return ""
  146. }
  147. type SendMsgReply struct {
  148. state protoimpl.MessageState
  149. sizeCache protoimpl.SizeCache
  150. unknownFields protoimpl.UnknownFields
  151. }
  152. func (x *SendMsgReply) Reset() {
  153. *x = SendMsgReply{}
  154. if protoimpl.UnsafeEnabled {
  155. mi := &file_websocket_proto_msgTypes[2]
  156. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  157. ms.StoreMessageInfo(mi)
  158. }
  159. }
  160. func (x *SendMsgReply) String() string {
  161. return protoimpl.X.MessageStringOf(x)
  162. }
  163. func (*SendMsgReply) ProtoMessage() {}
  164. func (x *SendMsgReply) ProtoReflect() protoreflect.Message {
  165. mi := &file_websocket_proto_msgTypes[2]
  166. if protoimpl.UnsafeEnabled && x != nil {
  167. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  168. if ms.LoadMessageInfo() == nil {
  169. ms.StoreMessageInfo(mi)
  170. }
  171. return ms
  172. }
  173. return mi.MessageOf(x)
  174. }
  175. // Deprecated: Use SendMsgReply.ProtoReflect.Descriptor instead.
  176. func (*SendMsgReply) Descriptor() ([]byte, []int) {
  177. return file_websocket_proto_rawDescGZIP(), []int{2}
  178. }
  179. type FindOnlinePersonReply struct {
  180. state protoimpl.MessageState
  181. sizeCache protoimpl.SizeCache
  182. unknownFields protoimpl.UnknownFields
  183. List []*OnlinePersonInfo `protobuf:"bytes,1,rep,name=list,proto3" json:"list"`
  184. }
  185. func (x *FindOnlinePersonReply) Reset() {
  186. *x = FindOnlinePersonReply{}
  187. if protoimpl.UnsafeEnabled {
  188. mi := &file_websocket_proto_msgTypes[3]
  189. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  190. ms.StoreMessageInfo(mi)
  191. }
  192. }
  193. func (x *FindOnlinePersonReply) String() string {
  194. return protoimpl.X.MessageStringOf(x)
  195. }
  196. func (*FindOnlinePersonReply) ProtoMessage() {}
  197. func (x *FindOnlinePersonReply) ProtoReflect() protoreflect.Message {
  198. mi := &file_websocket_proto_msgTypes[3]
  199. if protoimpl.UnsafeEnabled && x != nil {
  200. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  201. if ms.LoadMessageInfo() == nil {
  202. ms.StoreMessageInfo(mi)
  203. }
  204. return ms
  205. }
  206. return mi.MessageOf(x)
  207. }
  208. // Deprecated: Use FindOnlinePersonReply.ProtoReflect.Descriptor instead.
  209. func (*FindOnlinePersonReply) Descriptor() ([]byte, []int) {
  210. return file_websocket_proto_rawDescGZIP(), []int{3}
  211. }
  212. func (x *FindOnlinePersonReply) GetList() []*OnlinePersonInfo {
  213. if x != nil {
  214. return x.List
  215. }
  216. return nil
  217. }
  218. type OnlinePersonInfo struct {
  219. state protoimpl.MessageState
  220. sizeCache protoimpl.SizeCache
  221. unknownFields protoimpl.UnknownFields
  222. PersonType string `protobuf:"bytes,1,opt,name=personType,proto3" json:"personType"`
  223. PersonId string `protobuf:"bytes,2,opt,name=personId,proto3" json:"personId"`
  224. Weight int64 `protobuf:"varint,3,opt,name=weight,proto3" json:"weight"` // 权重
  225. WorkingStatus string `protobuf:"bytes,4,opt,name=workingStatus,proto3" json:"workingStatus"` // 工作状态
  226. }
  227. func (x *OnlinePersonInfo) Reset() {
  228. *x = OnlinePersonInfo{}
  229. if protoimpl.UnsafeEnabled {
  230. mi := &file_websocket_proto_msgTypes[4]
  231. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  232. ms.StoreMessageInfo(mi)
  233. }
  234. }
  235. func (x *OnlinePersonInfo) String() string {
  236. return protoimpl.X.MessageStringOf(x)
  237. }
  238. func (*OnlinePersonInfo) ProtoMessage() {}
  239. func (x *OnlinePersonInfo) ProtoReflect() protoreflect.Message {
  240. mi := &file_websocket_proto_msgTypes[4]
  241. if protoimpl.UnsafeEnabled && x != nil {
  242. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  243. if ms.LoadMessageInfo() == nil {
  244. ms.StoreMessageInfo(mi)
  245. }
  246. return ms
  247. }
  248. return mi.MessageOf(x)
  249. }
  250. // Deprecated: Use OnlinePersonInfo.ProtoReflect.Descriptor instead.
  251. func (*OnlinePersonInfo) Descriptor() ([]byte, []int) {
  252. return file_websocket_proto_rawDescGZIP(), []int{4}
  253. }
  254. func (x *OnlinePersonInfo) GetPersonType() string {
  255. if x != nil {
  256. return x.PersonType
  257. }
  258. return ""
  259. }
  260. func (x *OnlinePersonInfo) GetPersonId() string {
  261. if x != nil {
  262. return x.PersonId
  263. }
  264. return ""
  265. }
  266. func (x *OnlinePersonInfo) GetWeight() int64 {
  267. if x != nil {
  268. return x.Weight
  269. }
  270. return 0
  271. }
  272. func (x *OnlinePersonInfo) GetWorkingStatus() string {
  273. if x != nil {
  274. return x.WorkingStatus
  275. }
  276. return ""
  277. }
  278. var File_websocket_proto protoreflect.FileDescriptor
  279. var file_websocket_proto_rawDesc = []byte{
  280. 0x0a, 0x0f, 0x77, 0x65, 0x62, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74,
  281. 0x6f, 0x12, 0x0d, 0x61, 0x70, 0x69, 0x2e, 0x77, 0x65, 0x62, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74,
  282. 0x1a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
  283. 0x66, 0x2f, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x59, 0x0a,
  284. 0x0b, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x16, 0x0a, 0x06,
  285. 0x72, 0x6f, 0x6f, 0x6d, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x72, 0x6f,
  286. 0x6f, 0x6d, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18,
  287. 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x18,
  288. 0x0a, 0x07, 0x6d, 0x73, 0x67, 0x54, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52,
  289. 0x07, 0x6d, 0x73, 0x67, 0x54, 0x79, 0x70, 0x65, 0x22, 0x9e, 0x01, 0x0a, 0x0e, 0x53, 0x65, 0x6e,
  290. 0x64, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69,
  291. 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x6d,
  292. 0x65, 0x74, 0x68, 0x6f, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6d, 0x65, 0x74,
  293. 0x68, 0x6f, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28,
  294. 0x0c, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18,
  295. 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6d,
  296. 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65,
  297. 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x22, 0x0a, 0x0c, 0x77, 0x65, 0x62, 0x73, 0x6f, 0x63, 0x6b,
  298. 0x65, 0x74, 0x54, 0x61, 0x67, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x77, 0x65, 0x62,
  299. 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x54, 0x61, 0x67, 0x22, 0x0e, 0x0a, 0x0c, 0x53, 0x65, 0x6e,
  300. 0x64, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x4c, 0x0a, 0x15, 0x46, 0x69, 0x6e,
  301. 0x64, 0x4f, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x50, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x52, 0x65, 0x70,
  302. 0x6c, 0x79, 0x12, 0x33, 0x0a, 0x04, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b,
  303. 0x32, 0x1f, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x77, 0x65, 0x62, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74,
  304. 0x2e, 0x4f, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x50, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x49, 0x6e, 0x66,
  305. 0x6f, 0x52, 0x04, 0x6c, 0x69, 0x73, 0x74, 0x22, 0x8c, 0x01, 0x0a, 0x10, 0x4f, 0x6e, 0x6c, 0x69,
  306. 0x6e, 0x65, 0x50, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x1e, 0x0a, 0x0a,
  307. 0x70, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
  308. 0x52, 0x0a, 0x70, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1a, 0x0a, 0x08,
  309. 0x70, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08,
  310. 0x70, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x77, 0x65, 0x69, 0x67,
  311. 0x68, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x77, 0x65, 0x69, 0x67, 0x68, 0x74,
  312. 0x12, 0x24, 0x0a, 0x0d, 0x77, 0x6f, 0x72, 0x6b, 0x69, 0x6e, 0x67, 0x53, 0x74, 0x61, 0x74, 0x75,
  313. 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x77, 0x6f, 0x72, 0x6b, 0x69, 0x6e, 0x67,
  314. 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x32, 0xa6, 0x01, 0x0a, 0x09, 0x57, 0x65, 0x62, 0x73, 0x6f,
  315. 0x63, 0x6b, 0x65, 0x74, 0x12, 0x50, 0x0a, 0x10, 0x46, 0x69, 0x6e, 0x64, 0x4f, 0x6e, 0x6c, 0x69,
  316. 0x6e, 0x65, 0x50, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
  317. 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79,
  318. 0x1a, 0x24, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x77, 0x65, 0x62, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74,
  319. 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x4f, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x50, 0x65, 0x72, 0x73, 0x6f,
  320. 0x6e, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, 0x47, 0x0a, 0x07, 0x53, 0x65, 0x6e, 0x64, 0x4d, 0x73,
  321. 0x67, 0x12, 0x1d, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x77, 0x65, 0x62, 0x73, 0x6f, 0x63, 0x6b, 0x65,
  322. 0x74, 0x2e, 0x53, 0x65, 0x6e, 0x64, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
  323. 0x1a, 0x1b, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x77, 0x65, 0x62, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74,
  324. 0x2e, 0x53, 0x65, 0x6e, 0x64, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x00, 0x42,
  325. 0x4c, 0x0a, 0x0d, 0x61, 0x70, 0x69, 0x2e, 0x77, 0x65, 0x62, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74,
  326. 0x50, 0x01, 0x5a, 0x39, 0x67, 0x69, 0x74, 0x2e, 0x69, 0x6b, 0x75, 0x62, 0x61, 0x6e, 0x2e, 0x63,
  327. 0x6f, 0x6d, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2f, 0x70, 0x77, 0x2d, 0x70, 0x72, 0x6f,
  328. 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x77, 0x65, 0x62, 0x73, 0x6f, 0x63,
  329. 0x6b, 0x65, 0x74, 0x3b, 0x77, 0x65, 0x62, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x62, 0x06, 0x70,
  330. 0x72, 0x6f, 0x74, 0x6f, 0x33,
  331. }
  332. var (
  333. file_websocket_proto_rawDescOnce sync.Once
  334. file_websocket_proto_rawDescData = file_websocket_proto_rawDesc
  335. )
  336. func file_websocket_proto_rawDescGZIP() []byte {
  337. file_websocket_proto_rawDescOnce.Do(func() {
  338. file_websocket_proto_rawDescData = protoimpl.X.CompressGZIP(file_websocket_proto_rawDescData)
  339. })
  340. return file_websocket_proto_rawDescData
  341. }
  342. var file_websocket_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
  343. var file_websocket_proto_goTypes = []interface{}{
  344. (*MessageInfo)(nil), // 0: api.websocket.MessageInfo
  345. (*SendMsgRequest)(nil), // 1: api.websocket.SendMsgRequest
  346. (*SendMsgReply)(nil), // 2: api.websocket.SendMsgReply
  347. (*FindOnlinePersonReply)(nil), // 3: api.websocket.FindOnlinePersonReply
  348. (*OnlinePersonInfo)(nil), // 4: api.websocket.OnlinePersonInfo
  349. (*emptypb.Empty)(nil), // 5: google.protobuf.Empty
  350. }
  351. var file_websocket_proto_depIdxs = []int32{
  352. 4, // 0: api.websocket.FindOnlinePersonReply.list:type_name -> api.websocket.OnlinePersonInfo
  353. 5, // 1: api.websocket.Websocket.FindOnlinePerson:input_type -> google.protobuf.Empty
  354. 1, // 2: api.websocket.Websocket.SendMsg:input_type -> api.websocket.SendMsgRequest
  355. 3, // 3: api.websocket.Websocket.FindOnlinePerson:output_type -> api.websocket.FindOnlinePersonReply
  356. 2, // 4: api.websocket.Websocket.SendMsg:output_type -> api.websocket.SendMsgReply
  357. 3, // [3:5] is the sub-list for method output_type
  358. 1, // [1:3] is the sub-list for method input_type
  359. 1, // [1:1] is the sub-list for extension type_name
  360. 1, // [1:1] is the sub-list for extension extendee
  361. 0, // [0:1] is the sub-list for field type_name
  362. }
  363. func init() { file_websocket_proto_init() }
  364. func file_websocket_proto_init() {
  365. if File_websocket_proto != nil {
  366. return
  367. }
  368. if !protoimpl.UnsafeEnabled {
  369. file_websocket_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  370. switch v := v.(*MessageInfo); i {
  371. case 0:
  372. return &v.state
  373. case 1:
  374. return &v.sizeCache
  375. case 2:
  376. return &v.unknownFields
  377. default:
  378. return nil
  379. }
  380. }
  381. file_websocket_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  382. switch v := v.(*SendMsgRequest); i {
  383. case 0:
  384. return &v.state
  385. case 1:
  386. return &v.sizeCache
  387. case 2:
  388. return &v.unknownFields
  389. default:
  390. return nil
  391. }
  392. }
  393. file_websocket_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  394. switch v := v.(*SendMsgReply); i {
  395. case 0:
  396. return &v.state
  397. case 1:
  398. return &v.sizeCache
  399. case 2:
  400. return &v.unknownFields
  401. default:
  402. return nil
  403. }
  404. }
  405. file_websocket_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
  406. switch v := v.(*FindOnlinePersonReply); i {
  407. case 0:
  408. return &v.state
  409. case 1:
  410. return &v.sizeCache
  411. case 2:
  412. return &v.unknownFields
  413. default:
  414. return nil
  415. }
  416. }
  417. file_websocket_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
  418. switch v := v.(*OnlinePersonInfo); i {
  419. case 0:
  420. return &v.state
  421. case 1:
  422. return &v.sizeCache
  423. case 2:
  424. return &v.unknownFields
  425. default:
  426. return nil
  427. }
  428. }
  429. }
  430. type x struct{}
  431. out := protoimpl.TypeBuilder{
  432. File: protoimpl.DescBuilder{
  433. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  434. RawDescriptor: file_websocket_proto_rawDesc,
  435. NumEnums: 0,
  436. NumMessages: 5,
  437. NumExtensions: 0,
  438. NumServices: 1,
  439. },
  440. GoTypes: file_websocket_proto_goTypes,
  441. DependencyIndexes: file_websocket_proto_depIdxs,
  442. MessageInfos: file_websocket_proto_msgTypes,
  443. }.Build()
  444. File_websocket_proto = out.File
  445. file_websocket_proto_rawDesc = nil
  446. file_websocket_proto_goTypes = nil
  447. file_websocket_proto_depIdxs = nil
  448. }