websocket.pb.go 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485
  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. }
  225. func (x *OnlinePersonInfo) Reset() {
  226. *x = OnlinePersonInfo{}
  227. if protoimpl.UnsafeEnabled {
  228. mi := &file_websocket_proto_msgTypes[4]
  229. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  230. ms.StoreMessageInfo(mi)
  231. }
  232. }
  233. func (x *OnlinePersonInfo) String() string {
  234. return protoimpl.X.MessageStringOf(x)
  235. }
  236. func (*OnlinePersonInfo) ProtoMessage() {}
  237. func (x *OnlinePersonInfo) ProtoReflect() protoreflect.Message {
  238. mi := &file_websocket_proto_msgTypes[4]
  239. if protoimpl.UnsafeEnabled && x != nil {
  240. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  241. if ms.LoadMessageInfo() == nil {
  242. ms.StoreMessageInfo(mi)
  243. }
  244. return ms
  245. }
  246. return mi.MessageOf(x)
  247. }
  248. // Deprecated: Use OnlinePersonInfo.ProtoReflect.Descriptor instead.
  249. func (*OnlinePersonInfo) Descriptor() ([]byte, []int) {
  250. return file_websocket_proto_rawDescGZIP(), []int{4}
  251. }
  252. func (x *OnlinePersonInfo) GetPersonType() string {
  253. if x != nil {
  254. return x.PersonType
  255. }
  256. return ""
  257. }
  258. func (x *OnlinePersonInfo) GetPersonId() string {
  259. if x != nil {
  260. return x.PersonId
  261. }
  262. return ""
  263. }
  264. var File_websocket_proto protoreflect.FileDescriptor
  265. var file_websocket_proto_rawDesc = []byte{
  266. 0x0a, 0x0f, 0x77, 0x65, 0x62, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74,
  267. 0x6f, 0x12, 0x0d, 0x61, 0x70, 0x69, 0x2e, 0x77, 0x65, 0x62, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74,
  268. 0x1a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
  269. 0x66, 0x2f, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x59, 0x0a,
  270. 0x0b, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x16, 0x0a, 0x06,
  271. 0x72, 0x6f, 0x6f, 0x6d, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x72, 0x6f,
  272. 0x6f, 0x6d, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18,
  273. 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x18,
  274. 0x0a, 0x07, 0x6d, 0x73, 0x67, 0x54, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52,
  275. 0x07, 0x6d, 0x73, 0x67, 0x54, 0x79, 0x70, 0x65, 0x22, 0x9e, 0x01, 0x0a, 0x0e, 0x53, 0x65, 0x6e,
  276. 0x64, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69,
  277. 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x6d,
  278. 0x65, 0x74, 0x68, 0x6f, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6d, 0x65, 0x74,
  279. 0x68, 0x6f, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28,
  280. 0x0c, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18,
  281. 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6d,
  282. 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65,
  283. 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x22, 0x0a, 0x0c, 0x77, 0x65, 0x62, 0x73, 0x6f, 0x63, 0x6b,
  284. 0x65, 0x74, 0x54, 0x61, 0x67, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x77, 0x65, 0x62,
  285. 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x54, 0x61, 0x67, 0x22, 0x0e, 0x0a, 0x0c, 0x53, 0x65, 0x6e,
  286. 0x64, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x4c, 0x0a, 0x15, 0x46, 0x69, 0x6e,
  287. 0x64, 0x4f, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x50, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x52, 0x65, 0x70,
  288. 0x6c, 0x79, 0x12, 0x33, 0x0a, 0x04, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b,
  289. 0x32, 0x1f, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x77, 0x65, 0x62, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74,
  290. 0x2e, 0x4f, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x50, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x49, 0x6e, 0x66,
  291. 0x6f, 0x52, 0x04, 0x6c, 0x69, 0x73, 0x74, 0x22, 0x4e, 0x0a, 0x10, 0x4f, 0x6e, 0x6c, 0x69, 0x6e,
  292. 0x65, 0x50, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x1e, 0x0a, 0x0a, 0x70,
  293. 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
  294. 0x0a, 0x70, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x70,
  295. 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70,
  296. 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x49, 0x64, 0x32, 0xa6, 0x01, 0x0a, 0x09, 0x57, 0x65, 0x62, 0x73,
  297. 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x12, 0x50, 0x0a, 0x10, 0x46, 0x69, 0x6e, 0x64, 0x4f, 0x6e, 0x6c,
  298. 0x69, 0x6e, 0x65, 0x50, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
  299. 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74,
  300. 0x79, 0x1a, 0x24, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x77, 0x65, 0x62, 0x73, 0x6f, 0x63, 0x6b, 0x65,
  301. 0x74, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x4f, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x50, 0x65, 0x72, 0x73,
  302. 0x6f, 0x6e, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, 0x47, 0x0a, 0x07, 0x53, 0x65, 0x6e, 0x64, 0x4d,
  303. 0x73, 0x67, 0x12, 0x1d, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x77, 0x65, 0x62, 0x73, 0x6f, 0x63, 0x6b,
  304. 0x65, 0x74, 0x2e, 0x53, 0x65, 0x6e, 0x64, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
  305. 0x74, 0x1a, 0x1b, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x77, 0x65, 0x62, 0x73, 0x6f, 0x63, 0x6b, 0x65,
  306. 0x74, 0x2e, 0x53, 0x65, 0x6e, 0x64, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x00,
  307. 0x42, 0x4c, 0x0a, 0x0d, 0x61, 0x70, 0x69, 0x2e, 0x77, 0x65, 0x62, 0x73, 0x6f, 0x63, 0x6b, 0x65,
  308. 0x74, 0x50, 0x01, 0x5a, 0x39, 0x67, 0x69, 0x74, 0x2e, 0x69, 0x6b, 0x75, 0x62, 0x61, 0x6e, 0x2e,
  309. 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2f, 0x70, 0x77, 0x2d, 0x70, 0x72,
  310. 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x77, 0x65, 0x62, 0x73, 0x6f,
  311. 0x63, 0x6b, 0x65, 0x74, 0x3b, 0x77, 0x65, 0x62, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x62, 0x06,
  312. 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  313. }
  314. var (
  315. file_websocket_proto_rawDescOnce sync.Once
  316. file_websocket_proto_rawDescData = file_websocket_proto_rawDesc
  317. )
  318. func file_websocket_proto_rawDescGZIP() []byte {
  319. file_websocket_proto_rawDescOnce.Do(func() {
  320. file_websocket_proto_rawDescData = protoimpl.X.CompressGZIP(file_websocket_proto_rawDescData)
  321. })
  322. return file_websocket_proto_rawDescData
  323. }
  324. var file_websocket_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
  325. var file_websocket_proto_goTypes = []interface{}{
  326. (*MessageInfo)(nil), // 0: api.websocket.MessageInfo
  327. (*SendMsgRequest)(nil), // 1: api.websocket.SendMsgRequest
  328. (*SendMsgReply)(nil), // 2: api.websocket.SendMsgReply
  329. (*FindOnlinePersonReply)(nil), // 3: api.websocket.FindOnlinePersonReply
  330. (*OnlinePersonInfo)(nil), // 4: api.websocket.OnlinePersonInfo
  331. (*emptypb.Empty)(nil), // 5: google.protobuf.Empty
  332. }
  333. var file_websocket_proto_depIdxs = []int32{
  334. 4, // 0: api.websocket.FindOnlinePersonReply.list:type_name -> api.websocket.OnlinePersonInfo
  335. 5, // 1: api.websocket.Websocket.FindOnlinePerson:input_type -> google.protobuf.Empty
  336. 1, // 2: api.websocket.Websocket.SendMsg:input_type -> api.websocket.SendMsgRequest
  337. 3, // 3: api.websocket.Websocket.FindOnlinePerson:output_type -> api.websocket.FindOnlinePersonReply
  338. 2, // 4: api.websocket.Websocket.SendMsg:output_type -> api.websocket.SendMsgReply
  339. 3, // [3:5] is the sub-list for method output_type
  340. 1, // [1:3] is the sub-list for method input_type
  341. 1, // [1:1] is the sub-list for extension type_name
  342. 1, // [1:1] is the sub-list for extension extendee
  343. 0, // [0:1] is the sub-list for field type_name
  344. }
  345. func init() { file_websocket_proto_init() }
  346. func file_websocket_proto_init() {
  347. if File_websocket_proto != nil {
  348. return
  349. }
  350. if !protoimpl.UnsafeEnabled {
  351. file_websocket_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  352. switch v := v.(*MessageInfo); i {
  353. case 0:
  354. return &v.state
  355. case 1:
  356. return &v.sizeCache
  357. case 2:
  358. return &v.unknownFields
  359. default:
  360. return nil
  361. }
  362. }
  363. file_websocket_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  364. switch v := v.(*SendMsgRequest); i {
  365. case 0:
  366. return &v.state
  367. case 1:
  368. return &v.sizeCache
  369. case 2:
  370. return &v.unknownFields
  371. default:
  372. return nil
  373. }
  374. }
  375. file_websocket_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  376. switch v := v.(*SendMsgReply); i {
  377. case 0:
  378. return &v.state
  379. case 1:
  380. return &v.sizeCache
  381. case 2:
  382. return &v.unknownFields
  383. default:
  384. return nil
  385. }
  386. }
  387. file_websocket_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
  388. switch v := v.(*FindOnlinePersonReply); i {
  389. case 0:
  390. return &v.state
  391. case 1:
  392. return &v.sizeCache
  393. case 2:
  394. return &v.unknownFields
  395. default:
  396. return nil
  397. }
  398. }
  399. file_websocket_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
  400. switch v := v.(*OnlinePersonInfo); i {
  401. case 0:
  402. return &v.state
  403. case 1:
  404. return &v.sizeCache
  405. case 2:
  406. return &v.unknownFields
  407. default:
  408. return nil
  409. }
  410. }
  411. }
  412. type x struct{}
  413. out := protoimpl.TypeBuilder{
  414. File: protoimpl.DescBuilder{
  415. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  416. RawDescriptor: file_websocket_proto_rawDesc,
  417. NumEnums: 0,
  418. NumMessages: 5,
  419. NumExtensions: 0,
  420. NumServices: 1,
  421. },
  422. GoTypes: file_websocket_proto_goTypes,
  423. DependencyIndexes: file_websocket_proto_depIdxs,
  424. MessageInfos: file_websocket_proto_msgTypes,
  425. }.Build()
  426. File_websocket_proto = out.File
  427. file_websocket_proto_rawDesc = nil
  428. file_websocket_proto_goTypes = nil
  429. file_websocket_proto_depIdxs = nil
  430. }