2019-10-22 04:39:20 +03:00
|
|
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
|
|
// source: msg.proto
|
|
|
|
|
|
|
|
package pingtunnel
|
|
|
|
|
|
|
|
import (
|
|
|
|
fmt "fmt"
|
|
|
|
proto "github.com/golang/protobuf/proto"
|
|
|
|
math "math"
|
|
|
|
)
|
|
|
|
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
|
|
var _ = proto.Marshal
|
|
|
|
var _ = fmt.Errorf
|
|
|
|
var _ = math.Inf
|
|
|
|
|
|
|
|
// This is a compile-time assertion to ensure that this generated file
|
|
|
|
// is compatible with the proto package it is being compiled against.
|
|
|
|
// A compilation error at this line likely means your copy of the
|
|
|
|
// proto package needs to be updated.
|
|
|
|
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
|
|
|
|
|
2019-10-22 05:14:00 +03:00
|
|
|
type MyMsg_TYPE int32
|
|
|
|
|
|
|
|
const (
|
2019-10-25 16:28:30 +03:00
|
|
|
MyMsg_DATA MyMsg_TYPE = 0
|
|
|
|
MyMsg_PING MyMsg_TYPE = 1
|
|
|
|
MyMsg_MAGIC MyMsg_TYPE = 57005
|
2019-10-22 05:14:00 +03:00
|
|
|
)
|
|
|
|
|
|
|
|
var MyMsg_TYPE_name = map[int32]string{
|
2019-10-25 16:28:30 +03:00
|
|
|
0: "DATA",
|
|
|
|
1: "PING",
|
|
|
|
57005: "MAGIC",
|
2019-10-22 05:14:00 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
var MyMsg_TYPE_value = map[string]int32{
|
2019-10-25 16:28:30 +03:00
|
|
|
"DATA": 0,
|
|
|
|
"PING": 1,
|
|
|
|
"MAGIC": 57005,
|
2019-10-22 05:14:00 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
func (x MyMsg_TYPE) String() string {
|
|
|
|
return proto.EnumName(MyMsg_TYPE_name, int32(x))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (MyMsg_TYPE) EnumDescriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_c06e4cca6c2cc899, []int{0, 0}
|
|
|
|
}
|
|
|
|
|
2019-10-22 16:27:21 +03:00
|
|
|
type Frame_TYPE int32
|
|
|
|
|
|
|
|
const (
|
|
|
|
Frame_DATA Frame_TYPE = 0
|
|
|
|
Frame_REQ Frame_TYPE = 1
|
|
|
|
Frame_ACK Frame_TYPE = 2
|
|
|
|
)
|
|
|
|
|
|
|
|
var Frame_TYPE_name = map[int32]string{
|
|
|
|
0: "DATA",
|
|
|
|
1: "REQ",
|
|
|
|
2: "ACK",
|
|
|
|
}
|
|
|
|
|
|
|
|
var Frame_TYPE_value = map[string]int32{
|
|
|
|
"DATA": 0,
|
|
|
|
"REQ": 1,
|
|
|
|
"ACK": 2,
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x Frame_TYPE) String() string {
|
|
|
|
return proto.EnumName(Frame_TYPE_name, int32(x))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (Frame_TYPE) EnumDescriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_c06e4cca6c2cc899, []int{1, 0}
|
|
|
|
}
|
|
|
|
|
2019-10-22 04:39:20 +03:00
|
|
|
type MyMsg struct {
|
|
|
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
|
|
Type int32 `protobuf:"varint,2,opt,name=type,proto3" json:"type,omitempty"`
|
|
|
|
Target string `protobuf:"bytes,3,opt,name=target,proto3" json:"target,omitempty"`
|
|
|
|
Data []byte `protobuf:"bytes,4,opt,name=data,proto3" json:"data,omitempty"`
|
|
|
|
Rproto int32 `protobuf:"varint,5,opt,name=rproto,proto3" json:"rproto,omitempty"`
|
2019-10-25 16:28:30 +03:00
|
|
|
Magic int32 `protobuf:"varint,6,opt,name=magic,proto3" json:"magic,omitempty"`
|
2019-10-22 04:39:20 +03:00
|
|
|
Key int32 `protobuf:"varint,7,opt,name=key,proto3" json:"key,omitempty"`
|
|
|
|
Tcpmode int32 `protobuf:"varint,8,opt,name=tcpmode,proto3" json:"tcpmode,omitempty"`
|
|
|
|
TcpmodeBuffersize int32 `protobuf:"varint,9,opt,name=tcpmode_buffersize,json=tcpmodeBuffersize,proto3" json:"tcpmode_buffersize,omitempty"`
|
|
|
|
TcpmodeMaxwin int32 `protobuf:"varint,10,opt,name=tcpmode_maxwin,json=tcpmodeMaxwin,proto3" json:"tcpmode_maxwin,omitempty"`
|
|
|
|
TcpmodeResendTimems int32 `protobuf:"varint,11,opt,name=tcpmode_resend_timems,json=tcpmodeResendTimems,proto3" json:"tcpmode_resend_timems,omitempty"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *MyMsg) Reset() { *m = MyMsg{} }
|
|
|
|
func (m *MyMsg) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*MyMsg) ProtoMessage() {}
|
|
|
|
func (*MyMsg) Descriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_c06e4cca6c2cc899, []int{0}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *MyMsg) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_MyMsg.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *MyMsg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_MyMsg.Marshal(b, m, deterministic)
|
|
|
|
}
|
|
|
|
func (m *MyMsg) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_MyMsg.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *MyMsg) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_MyMsg.Size(m)
|
|
|
|
}
|
|
|
|
func (m *MyMsg) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_MyMsg.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_MyMsg proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *MyMsg) GetId() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Id
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *MyMsg) GetType() int32 {
|
|
|
|
if m != nil {
|
|
|
|
return m.Type
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *MyMsg) GetTarget() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Target
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *MyMsg) GetData() []byte {
|
|
|
|
if m != nil {
|
|
|
|
return m.Data
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *MyMsg) GetRproto() int32 {
|
|
|
|
if m != nil {
|
|
|
|
return m.Rproto
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2019-10-25 16:28:30 +03:00
|
|
|
func (m *MyMsg) GetMagic() int32 {
|
|
|
|
if m != nil {
|
|
|
|
return m.Magic
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2019-10-22 04:39:20 +03:00
|
|
|
func (m *MyMsg) GetKey() int32 {
|
|
|
|
if m != nil {
|
|
|
|
return m.Key
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *MyMsg) GetTcpmode() int32 {
|
|
|
|
if m != nil {
|
|
|
|
return m.Tcpmode
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *MyMsg) GetTcpmodeBuffersize() int32 {
|
|
|
|
if m != nil {
|
|
|
|
return m.TcpmodeBuffersize
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *MyMsg) GetTcpmodeMaxwin() int32 {
|
|
|
|
if m != nil {
|
|
|
|
return m.TcpmodeMaxwin
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *MyMsg) GetTcpmodeResendTimems() int32 {
|
|
|
|
if m != nil {
|
|
|
|
return m.TcpmodeResendTimems
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
type Frame struct {
|
|
|
|
Type int32 `protobuf:"varint,1,opt,name=type,proto3" json:"type,omitempty"`
|
|
|
|
Resend bool `protobuf:"varint,2,opt,name=resend,proto3" json:"resend,omitempty"`
|
|
|
|
Sendtime int64 `protobuf:"varint,3,opt,name=sendtime,proto3" json:"sendtime,omitempty"`
|
|
|
|
Id int32 `protobuf:"varint,4,opt,name=id,proto3" json:"id,omitempty"`
|
|
|
|
Data []byte `protobuf:"bytes,5,opt,name=data,proto3" json:"data,omitempty"`
|
|
|
|
Dataid []int32 `protobuf:"varint,6,rep,packed,name=dataid,proto3" json:"dataid,omitempty"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Frame) Reset() { *m = Frame{} }
|
|
|
|
func (m *Frame) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*Frame) ProtoMessage() {}
|
|
|
|
func (*Frame) Descriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_c06e4cca6c2cc899, []int{1}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Frame) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_Frame.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *Frame) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_Frame.Marshal(b, m, deterministic)
|
|
|
|
}
|
|
|
|
func (m *Frame) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_Frame.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *Frame) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_Frame.Size(m)
|
|
|
|
}
|
|
|
|
func (m *Frame) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_Frame.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_Frame proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *Frame) GetType() int32 {
|
|
|
|
if m != nil {
|
|
|
|
return m.Type
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Frame) GetResend() bool {
|
|
|
|
if m != nil {
|
|
|
|
return m.Resend
|
|
|
|
}
|
|
|
|
return false
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Frame) GetSendtime() int64 {
|
|
|
|
if m != nil {
|
|
|
|
return m.Sendtime
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Frame) GetId() int32 {
|
|
|
|
if m != nil {
|
|
|
|
return m.Id
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Frame) GetData() []byte {
|
|
|
|
if m != nil {
|
|
|
|
return m.Data
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Frame) GetDataid() []int32 {
|
|
|
|
if m != nil {
|
|
|
|
return m.Dataid
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func init() {
|
2019-10-22 05:14:00 +03:00
|
|
|
proto.RegisterEnum("MyMsg_TYPE", MyMsg_TYPE_name, MyMsg_TYPE_value)
|
2019-10-22 16:27:21 +03:00
|
|
|
proto.RegisterEnum("Frame_TYPE", Frame_TYPE_name, Frame_TYPE_value)
|
2019-10-22 04:39:20 +03:00
|
|
|
proto.RegisterType((*MyMsg)(nil), "MyMsg")
|
|
|
|
proto.RegisterType((*Frame)(nil), "Frame")
|
|
|
|
}
|
|
|
|
|
|
|
|
func init() { proto.RegisterFile("msg.proto", fileDescriptor_c06e4cca6c2cc899) }
|
|
|
|
|
|
|
|
var fileDescriptor_c06e4cca6c2cc899 = []byte{
|
2019-10-25 16:28:30 +03:00
|
|
|
// 357 bytes of a gzipped FileDescriptorProto
|
|
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x64, 0x51, 0xdb, 0x4e, 0xc2, 0x30,
|
|
|
|
0x18, 0xb6, 0x3b, 0x31, 0x7e, 0x90, 0xcc, 0x7a, 0x48, 0xe3, 0xd5, 0xb2, 0xc4, 0xc8, 0x8d, 0x5e,
|
|
|
|
0xe8, 0x13, 0x0c, 0x44, 0x42, 0xcc, 0x0c, 0x2e, 0xdc, 0xe8, 0x0d, 0x19, 0xac, 0x2c, 0x8d, 0x6e,
|
|
|
|
0x2c, 0x5b, 0x89, 0xe2, 0x3b, 0x19, 0x9f, 0xc0, 0xb7, 0xf1, 0x41, 0x4c, 0x7f, 0x0a, 0x09, 0xf1,
|
|
|
|
0xaa, 0xdf, 0x29, 0x6d, 0xf3, 0x7d, 0xd0, 0xcc, 0xeb, 0xec, 0xba, 0xac, 0x96, 0x72, 0x19, 0xfc,
|
|
|
|
0x1a, 0x60, 0x47, 0xeb, 0xa8, 0xce, 0x68, 0x07, 0x0c, 0x91, 0x32, 0xe2, 0x93, 0x6e, 0x33, 0x36,
|
|
|
|
0x44, 0x4a, 0x29, 0x58, 0x72, 0x5d, 0x72, 0x66, 0xf8, 0xa4, 0x6b, 0xc7, 0x88, 0xe9, 0x19, 0x38,
|
|
|
|
0x32, 0xa9, 0x32, 0x2e, 0x99, 0x89, 0x39, 0xcd, 0x54, 0x36, 0x4d, 0x64, 0xc2, 0x2c, 0x9f, 0x74,
|
|
|
|
0xdb, 0x31, 0x62, 0x95, 0xad, 0xf0, 0x0d, 0x66, 0xe3, 0x0d, 0x9a, 0xd1, 0x13, 0xb0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