websocket.pb.go 9.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261
  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 FindOnlinePersonReply struct {
  21. state protoimpl.MessageState
  22. sizeCache protoimpl.SizeCache
  23. unknownFields protoimpl.UnknownFields
  24. }
  25. func (x *FindOnlinePersonReply) Reset() {
  26. *x = FindOnlinePersonReply{}
  27. if protoimpl.UnsafeEnabled {
  28. mi := &file_websocket_proto_msgTypes[0]
  29. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  30. ms.StoreMessageInfo(mi)
  31. }
  32. }
  33. func (x *FindOnlinePersonReply) String() string {
  34. return protoimpl.X.MessageStringOf(x)
  35. }
  36. func (*FindOnlinePersonReply) ProtoMessage() {}
  37. func (x *FindOnlinePersonReply) ProtoReflect() protoreflect.Message {
  38. mi := &file_websocket_proto_msgTypes[0]
  39. if protoimpl.UnsafeEnabled && x != nil {
  40. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  41. if ms.LoadMessageInfo() == nil {
  42. ms.StoreMessageInfo(mi)
  43. }
  44. return ms
  45. }
  46. return mi.MessageOf(x)
  47. }
  48. // Deprecated: Use FindOnlinePersonReply.ProtoReflect.Descriptor instead.
  49. func (*FindOnlinePersonReply) Descriptor() ([]byte, []int) {
  50. return file_websocket_proto_rawDescGZIP(), []int{0}
  51. }
  52. type TransmitMessageRequest struct {
  53. state protoimpl.MessageState
  54. sizeCache protoimpl.SizeCache
  55. unknownFields protoimpl.UnknownFields
  56. }
  57. func (x *TransmitMessageRequest) Reset() {
  58. *x = TransmitMessageRequest{}
  59. if protoimpl.UnsafeEnabled {
  60. mi := &file_websocket_proto_msgTypes[1]
  61. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  62. ms.StoreMessageInfo(mi)
  63. }
  64. }
  65. func (x *TransmitMessageRequest) String() string {
  66. return protoimpl.X.MessageStringOf(x)
  67. }
  68. func (*TransmitMessageRequest) ProtoMessage() {}
  69. func (x *TransmitMessageRequest) ProtoReflect() protoreflect.Message {
  70. mi := &file_websocket_proto_msgTypes[1]
  71. if protoimpl.UnsafeEnabled && x != nil {
  72. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  73. if ms.LoadMessageInfo() == nil {
  74. ms.StoreMessageInfo(mi)
  75. }
  76. return ms
  77. }
  78. return mi.MessageOf(x)
  79. }
  80. // Deprecated: Use TransmitMessageRequest.ProtoReflect.Descriptor instead.
  81. func (*TransmitMessageRequest) Descriptor() ([]byte, []int) {
  82. return file_websocket_proto_rawDescGZIP(), []int{1}
  83. }
  84. type TransmitMessageReply struct {
  85. state protoimpl.MessageState
  86. sizeCache protoimpl.SizeCache
  87. unknownFields protoimpl.UnknownFields
  88. }
  89. func (x *TransmitMessageReply) Reset() {
  90. *x = TransmitMessageReply{}
  91. if protoimpl.UnsafeEnabled {
  92. mi := &file_websocket_proto_msgTypes[2]
  93. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  94. ms.StoreMessageInfo(mi)
  95. }
  96. }
  97. func (x *TransmitMessageReply) String() string {
  98. return protoimpl.X.MessageStringOf(x)
  99. }
  100. func (*TransmitMessageReply) ProtoMessage() {}
  101. func (x *TransmitMessageReply) ProtoReflect() protoreflect.Message {
  102. mi := &file_websocket_proto_msgTypes[2]
  103. if protoimpl.UnsafeEnabled && x != nil {
  104. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  105. if ms.LoadMessageInfo() == nil {
  106. ms.StoreMessageInfo(mi)
  107. }
  108. return ms
  109. }
  110. return mi.MessageOf(x)
  111. }
  112. // Deprecated: Use TransmitMessageReply.ProtoReflect.Descriptor instead.
  113. func (*TransmitMessageReply) Descriptor() ([]byte, []int) {
  114. return file_websocket_proto_rawDescGZIP(), []int{2}
  115. }
  116. var File_websocket_proto protoreflect.FileDescriptor
  117. var file_websocket_proto_rawDesc = []byte{
  118. 0x0a, 0x0f, 0x77, 0x65, 0x62, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74,
  119. 0x6f, 0x12, 0x0d, 0x61, 0x70, 0x69, 0x2e, 0x77, 0x65, 0x62, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74,
  120. 0x1a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
  121. 0x66, 0x2f, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x17, 0x0a,
  122. 0x15, 0x46, 0x69, 0x6e, 0x64, 0x4f, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x50, 0x65, 0x72, 0x73, 0x6f,
  123. 0x6e, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x18, 0x0a, 0x16, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x6d,
  124. 0x69, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
  125. 0x22, 0x16, 0x0a, 0x14, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x6d, 0x69, 0x74, 0x4d, 0x65, 0x73, 0x73,
  126. 0x61, 0x67, 0x65, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x32, 0xbc, 0x01, 0x0a, 0x09, 0x57, 0x65, 0x62,
  127. 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x12, 0x5d, 0x0a, 0x0f, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x6d,
  128. 0x69, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x25, 0x2e, 0x61, 0x70, 0x69, 0x2e,
  129. 0x77, 0x65, 0x62, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x6d,
  130. 0x69, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
  131. 0x1a, 0x23, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x77, 0x65, 0x62, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74,
  132. 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x6d, 0x69, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
  133. 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, 0x50, 0x0a, 0x10, 0x46, 0x69, 0x6e, 0x64, 0x4f, 0x6e, 0x6c,
  134. 0x69, 0x6e, 0x65, 0x50, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
  135. 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74,
  136. 0x79, 0x1a, 0x24, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x77, 0x65, 0x62, 0x73, 0x6f, 0x63, 0x6b, 0x65,
  137. 0x74, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x4f, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x50, 0x65, 0x72, 0x73,
  138. 0x6f, 0x6e, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x42, 0x4c, 0x0a, 0x0d, 0x61, 0x70, 0x69, 0x2e, 0x77,
  139. 0x65, 0x62, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x50, 0x01, 0x5a, 0x39, 0x67, 0x69, 0x74, 0x2e,
  140. 0x69, 0x6b, 0x75, 0x62, 0x61, 0x6e, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x65,
  141. 0x72, 0x2f, 0x70, 0x77, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x70,
  142. 0x69, 0x2f, 0x77, 0x65, 0x62, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x3b, 0x77, 0x65, 0x62, 0x73,
  143. 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  144. }
  145. var (
  146. file_websocket_proto_rawDescOnce sync.Once
  147. file_websocket_proto_rawDescData = file_websocket_proto_rawDesc
  148. )
  149. func file_websocket_proto_rawDescGZIP() []byte {
  150. file_websocket_proto_rawDescOnce.Do(func() {
  151. file_websocket_proto_rawDescData = protoimpl.X.CompressGZIP(file_websocket_proto_rawDescData)
  152. })
  153. return file_websocket_proto_rawDescData
  154. }
  155. var file_websocket_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
  156. var file_websocket_proto_goTypes = []interface{}{
  157. (*FindOnlinePersonReply)(nil), // 0: api.websocket.FindOnlinePersonReply
  158. (*TransmitMessageRequest)(nil), // 1: api.websocket.TransmitMessageRequest
  159. (*TransmitMessageReply)(nil), // 2: api.websocket.TransmitMessageReply
  160. (*emptypb.Empty)(nil), // 3: google.protobuf.Empty
  161. }
  162. var file_websocket_proto_depIdxs = []int32{
  163. 1, // 0: api.websocket.Websocket.TransmitMessage:input_type -> api.websocket.TransmitMessageRequest
  164. 3, // 1: api.websocket.Websocket.FindOnlinePerson:input_type -> google.protobuf.Empty
  165. 2, // 2: api.websocket.Websocket.TransmitMessage:output_type -> api.websocket.TransmitMessageReply
  166. 0, // 3: api.websocket.Websocket.FindOnlinePerson:output_type -> api.websocket.FindOnlinePersonReply
  167. 2, // [2:4] is the sub-list for method output_type
  168. 0, // [0:2] is the sub-list for method input_type
  169. 0, // [0:0] is the sub-list for extension type_name
  170. 0, // [0:0] is the sub-list for extension extendee
  171. 0, // [0:0] is the sub-list for field type_name
  172. }
  173. func init() { file_websocket_proto_init() }
  174. func file_websocket_proto_init() {
  175. if File_websocket_proto != nil {
  176. return
  177. }
  178. if !protoimpl.UnsafeEnabled {
  179. file_websocket_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  180. switch v := v.(*FindOnlinePersonReply); i {
  181. case 0:
  182. return &v.state
  183. case 1:
  184. return &v.sizeCache
  185. case 2:
  186. return &v.unknownFields
  187. default:
  188. return nil
  189. }
  190. }
  191. file_websocket_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  192. switch v := v.(*TransmitMessageRequest); i {
  193. case 0:
  194. return &v.state
  195. case 1:
  196. return &v.sizeCache
  197. case 2:
  198. return &v.unknownFields
  199. default:
  200. return nil
  201. }
  202. }
  203. file_websocket_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  204. switch v := v.(*TransmitMessageReply); i {
  205. case 0:
  206. return &v.state
  207. case 1:
  208. return &v.sizeCache
  209. case 2:
  210. return &v.unknownFields
  211. default:
  212. return nil
  213. }
  214. }
  215. }
  216. type x struct{}
  217. out := protoimpl.TypeBuilder{
  218. File: protoimpl.DescBuilder{
  219. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  220. RawDescriptor: file_websocket_proto_rawDesc,
  221. NumEnums: 0,
  222. NumMessages: 3,
  223. NumExtensions: 0,
  224. NumServices: 1,
  225. },
  226. GoTypes: file_websocket_proto_goTypes,
  227. DependencyIndexes: file_websocket_proto_depIdxs,
  228. MessageInfos: file_websocket_proto_msgTypes,
  229. }.Build()
  230. File_websocket_proto = out.File
  231. file_websocket_proto_rawDesc = nil
  232. file_websocket_proto_goTypes = nil
  233. file_websocket_proto_depIdxs = nil
  234. }