websocket.pb.go 13 KB

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