base.pb.go 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.26.0
  4. // protoc v3.21.1
  5. // source: base.proto
  6. package protocol
  7. import (
  8. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  9. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  10. reflect "reflect"
  11. sync "sync"
  12. )
  13. const (
  14. // Verify that this generated code is sufficiently up-to-date.
  15. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  16. // Verify that runtime/protoimpl is sufficiently up-to-date.
  17. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  18. )
  19. // 通信包装
  20. type TransPack struct {
  21. state protoimpl.MessageState
  22. sizeCache protoimpl.SizeCache
  23. unknownFields protoimpl.UnknownFields
  24. Router string `protobuf:"bytes,1,opt,name=router,proto3" json:"router,omitempty"`
  25. Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
  26. Error string `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"`
  27. }
  28. func (x *TransPack) Reset() {
  29. *x = TransPack{}
  30. if protoimpl.UnsafeEnabled {
  31. mi := &file_base_proto_msgTypes[0]
  32. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  33. ms.StoreMessageInfo(mi)
  34. }
  35. }
  36. func (x *TransPack) String() string {
  37. return protoimpl.X.MessageStringOf(x)
  38. }
  39. func (*TransPack) ProtoMessage() {}
  40. func (x *TransPack) ProtoReflect() protoreflect.Message {
  41. mi := &file_base_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 TransPack.ProtoReflect.Descriptor instead.
  52. func (*TransPack) Descriptor() ([]byte, []int) {
  53. return file_base_proto_rawDescGZIP(), []int{0}
  54. }
  55. func (x *TransPack) GetRouter() string {
  56. if x != nil {
  57. return x.Router
  58. }
  59. return ""
  60. }
  61. func (x *TransPack) GetData() []byte {
  62. if x != nil {
  63. return x.Data
  64. }
  65. return nil
  66. }
  67. func (x *TransPack) GetError() string {
  68. if x != nil {
  69. return x.Error
  70. }
  71. return ""
  72. }
  73. // 连接检测
  74. type PingPang struct {
  75. state protoimpl.MessageState
  76. sizeCache protoimpl.SizeCache
  77. unknownFields protoimpl.UnknownFields
  78. Timestamp int64 `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"` //时间戳
  79. }
  80. func (x *PingPang) Reset() {
  81. *x = PingPang{}
  82. if protoimpl.UnsafeEnabled {
  83. mi := &file_base_proto_msgTypes[1]
  84. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  85. ms.StoreMessageInfo(mi)
  86. }
  87. }
  88. func (x *PingPang) String() string {
  89. return protoimpl.X.MessageStringOf(x)
  90. }
  91. func (*PingPang) ProtoMessage() {}
  92. func (x *PingPang) ProtoReflect() protoreflect.Message {
  93. mi := &file_base_proto_msgTypes[1]
  94. if protoimpl.UnsafeEnabled && x != nil {
  95. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  96. if ms.LoadMessageInfo() == nil {
  97. ms.StoreMessageInfo(mi)
  98. }
  99. return ms
  100. }
  101. return mi.MessageOf(x)
  102. }
  103. // Deprecated: Use PingPang.ProtoReflect.Descriptor instead.
  104. func (*PingPang) Descriptor() ([]byte, []int) {
  105. return file_base_proto_rawDescGZIP(), []int{1}
  106. }
  107. func (x *PingPang) GetTimestamp() int64 {
  108. if x != nil {
  109. return x.Timestamp
  110. }
  111. return 0
  112. }
  113. var File_base_proto protoreflect.FileDescriptor
  114. var file_base_proto_rawDesc = []byte{
  115. 0x0a, 0x0a, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x08, 0x70, 0x72,
  116. 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x22, 0x4d, 0x0a, 0x09, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x50,
  117. 0x61, 0x63, 0x6b, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x18, 0x01, 0x20,
  118. 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x64,
  119. 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12,
  120. 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05,
  121. 0x65, 0x72, 0x72, 0x6f, 0x72, 0x22, 0x28, 0x0a, 0x08, 0x50, 0x69, 0x6e, 0x67, 0x50, 0x61, 0x6e,
  122. 0x67, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x01,
  123. 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42,
  124. 0x27, 0x5a, 0x25, 0x70, 0x6b, 0x67, 0x2f, 0x77, 0x65, 0x62, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74,
  125. 0x2f, 0x63, 0x6f, 0x64, 0x65, 0x63, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f,
  126. 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  127. }
  128. var (
  129. file_base_proto_rawDescOnce sync.Once
  130. file_base_proto_rawDescData = file_base_proto_rawDesc
  131. )
  132. func file_base_proto_rawDescGZIP() []byte {
  133. file_base_proto_rawDescOnce.Do(func() {
  134. file_base_proto_rawDescData = protoimpl.X.CompressGZIP(file_base_proto_rawDescData)
  135. })
  136. return file_base_proto_rawDescData
  137. }
  138. var file_base_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
  139. var file_base_proto_goTypes = []any{
  140. (*TransPack)(nil), // 0: protocol.TransPack
  141. (*PingPang)(nil), // 1: protocol.PingPang
  142. }
  143. var file_base_proto_depIdxs = []int32{
  144. 0, // [0:0] is the sub-list for method output_type
  145. 0, // [0:0] is the sub-list for method input_type
  146. 0, // [0:0] is the sub-list for extension type_name
  147. 0, // [0:0] is the sub-list for extension extendee
  148. 0, // [0:0] is the sub-list for field type_name
  149. }
  150. func init() { file_base_proto_init() }
  151. func file_base_proto_init() {
  152. if File_base_proto != nil {
  153. return
  154. }
  155. if !protoimpl.UnsafeEnabled {
  156. file_base_proto_msgTypes[0].Exporter = func(v any, i int) any {
  157. switch v := v.(*TransPack); i {
  158. case 0:
  159. return &v.state
  160. case 1:
  161. return &v.sizeCache
  162. case 2:
  163. return &v.unknownFields
  164. default:
  165. return nil
  166. }
  167. }
  168. file_base_proto_msgTypes[1].Exporter = func(v any, i int) any {
  169. switch v := v.(*PingPang); i {
  170. case 0:
  171. return &v.state
  172. case 1:
  173. return &v.sizeCache
  174. case 2:
  175. return &v.unknownFields
  176. default:
  177. return nil
  178. }
  179. }
  180. }
  181. type x struct{}
  182. out := protoimpl.TypeBuilder{
  183. File: protoimpl.DescBuilder{
  184. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  185. RawDescriptor: file_base_proto_rawDesc,
  186. NumEnums: 0,
  187. NumMessages: 2,
  188. NumExtensions: 0,
  189. NumServices: 0,
  190. },
  191. GoTypes: file_base_proto_goTypes,
  192. DependencyIndexes: file_base_proto_depIdxs,
  193. MessageInfos: file_base_proto_msgTypes,
  194. }.Build()
  195. File_base_proto = out.File
  196. file_base_proto_rawDesc = nil
  197. file_base_proto_goTypes = nil
  198. file_base_proto_depIdxs = nil
  199. }