baseproto.pb.go 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: baseproto.proto
  3. package baseproto
  4. import (
  5. fmt "fmt"
  6. proto "github.com/golang/protobuf/proto"
  7. math "math"
  8. )
  9. // Reference imports to suppress errors if they are not otherwise used.
  10. var _ = proto.Marshal
  11. var _ = fmt.Errorf
  12. var _ = math.Inf
  13. // This is a compile-time assertion to ensure that this generated file
  14. // is compatible with the proto package it is being compiled against.
  15. // A compilation error at this line likely means your copy of the
  16. // proto package needs to be updated.
  17. const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
  18. //通信包装
  19. type TransPack struct {
  20. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
  21. Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
  22. Error string `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"`
  23. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  24. XXX_unrecognized []byte `json:"-"`
  25. XXX_sizecache int32 `json:"-"`
  26. }
  27. func (m *TransPack) Reset() { *m = TransPack{} }
  28. func (m *TransPack) String() string { return proto.CompactTextString(m) }
  29. func (*TransPack) ProtoMessage() {}
  30. func (*TransPack) Descriptor() ([]byte, []int) {
  31. return fileDescriptor_822e52c9a4a56588, []int{0}
  32. }
  33. func (m *TransPack) XXX_Unmarshal(b []byte) error {
  34. return xxx_messageInfo_TransPack.Unmarshal(m, b)
  35. }
  36. func (m *TransPack) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  37. return xxx_messageInfo_TransPack.Marshal(b, m, deterministic)
  38. }
  39. func (m *TransPack) XXX_Merge(src proto.Message) {
  40. xxx_messageInfo_TransPack.Merge(m, src)
  41. }
  42. func (m *TransPack) XXX_Size() int {
  43. return xxx_messageInfo_TransPack.Size(m)
  44. }
  45. func (m *TransPack) XXX_DiscardUnknown() {
  46. xxx_messageInfo_TransPack.DiscardUnknown(m)
  47. }
  48. var xxx_messageInfo_TransPack proto.InternalMessageInfo
  49. func (m *TransPack) GetId() string {
  50. if m != nil {
  51. return m.Id
  52. }
  53. return ""
  54. }
  55. func (m *TransPack) GetData() []byte {
  56. if m != nil {
  57. return m.Data
  58. }
  59. return nil
  60. }
  61. func (m *TransPack) GetError() string {
  62. if m != nil {
  63. return m.Error
  64. }
  65. return ""
  66. }
  67. //连接检测
  68. type PingPang struct {
  69. Timestamp int64 `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
  70. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  71. XXX_unrecognized []byte `json:"-"`
  72. XXX_sizecache int32 `json:"-"`
  73. }
  74. func (m *PingPang) Reset() { *m = PingPang{} }
  75. func (m *PingPang) String() string { return proto.CompactTextString(m) }
  76. func (*PingPang) ProtoMessage() {}
  77. func (*PingPang) Descriptor() ([]byte, []int) {
  78. return fileDescriptor_822e52c9a4a56588, []int{1}
  79. }
  80. func (m *PingPang) XXX_Unmarshal(b []byte) error {
  81. return xxx_messageInfo_PingPang.Unmarshal(m, b)
  82. }
  83. func (m *PingPang) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  84. return xxx_messageInfo_PingPang.Marshal(b, m, deterministic)
  85. }
  86. func (m *PingPang) XXX_Merge(src proto.Message) {
  87. xxx_messageInfo_PingPang.Merge(m, src)
  88. }
  89. func (m *PingPang) XXX_Size() int {
  90. return xxx_messageInfo_PingPang.Size(m)
  91. }
  92. func (m *PingPang) XXX_DiscardUnknown() {
  93. xxx_messageInfo_PingPang.DiscardUnknown(m)
  94. }
  95. var xxx_messageInfo_PingPang proto.InternalMessageInfo
  96. func (m *PingPang) GetTimestamp() int64 {
  97. if m != nil {
  98. return m.Timestamp
  99. }
  100. return 0
  101. }
  102. func init() {
  103. proto.RegisterType((*TransPack)(nil), "baseproto.TransPack")
  104. proto.RegisterType((*PingPang)(nil), "baseproto.PingPang")
  105. }
  106. func init() { proto.RegisterFile("baseproto.proto", fileDescriptor_822e52c9a4a56588) }
  107. var fileDescriptor_822e52c9a4a56588 = []byte{
  108. // 138 bytes of a gzipped FileDescriptorProto
  109. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xe2, 0x4f, 0x4a, 0x2c, 0x4e,
  110. 0x2d, 0x28, 0xca, 0x2f, 0xc9, 0xd7, 0x03, 0x93, 0x42, 0x9c, 0x70, 0x01, 0x25, 0x57, 0x2e, 0xce,
  111. 0x90, 0xa2, 0xc4, 0xbc, 0xe2, 0x80, 0xc4, 0xe4, 0x6c, 0x21, 0x3e, 0x2e, 0xa6, 0xcc, 0x14, 0x09,
  112. 0x46, 0x05, 0x46, 0x0d, 0xce, 0x20, 0xa6, 0xcc, 0x14, 0x21, 0x21, 0x2e, 0x96, 0x94, 0xc4, 0x92,
  113. 0x44, 0x09, 0x26, 0x05, 0x46, 0x0d, 0x9e, 0x20, 0x30, 0x5b, 0x48, 0x84, 0x8b, 0x35, 0xb5, 0xa8,
  114. 0x28, 0xbf, 0x48, 0x82, 0x19, 0xac, 0x0c, 0xc2, 0x51, 0xd2, 0xe0, 0xe2, 0x08, 0xc8, 0xcc, 0x4b,
  115. 0x0f, 0x48, 0xcc, 0x4b, 0x17, 0x92, 0xe1, 0xe2, 0x2c, 0xc9, 0xcc, 0x4d, 0x2d, 0x2e, 0x49, 0xcc,
  116. 0x2d, 0x00, 0x1b, 0xc6, 0x1c, 0x84, 0x10, 0x48, 0x62, 0x03, 0xdb, 0x6b, 0x0c, 0x08, 0x00, 0x00,
  117. 0xff, 0xff, 0xf9, 0xc6, 0xa2, 0xc1, 0x95, 0x00, 0x00, 0x00,
  118. }