-
Notifications
You must be signed in to change notification settings - Fork 0
/
pingpong.pb.go
65 lines (53 loc) · 1.58 KB
/
pingpong.pb.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
// Code generated by protoc-gen-go.
// source: protocol/pingpong.proto
// DO NOT EDIT!
package protocol
import proto "code.google.com/p/goprotobuf/proto"
import json "encoding/json"
import math "math"
// Reference proto, json, and math imports to suppress error if they are not otherwise used.
var _ = proto.Marshal
var _ = &json.SyntaxError{}
var _ = math.Inf
type CSPacketPing struct {
TimeStamb *int64 `protobuf:"varint,1,req" json:"TimeStamb,omitempty"`
Message []byte `protobuf:"bytes,2,req" json:"Message,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *CSPacketPing) Reset() { *m = CSPacketPing{} }
func (m *CSPacketPing) String() string { return proto.CompactTextString(m) }
func (*CSPacketPing) ProtoMessage() {}
func (m *CSPacketPing) GetTimeStamb() int64 {
if m != nil && m.TimeStamb != nil {
return *m.TimeStamb
}
return 0
}
func (m *CSPacketPing) GetMessage() []byte {
if m != nil {
return m.Message
}
return nil
}
type SCPacketPong struct {
TimeStamb *int64 `protobuf:"varint,1,req" json:"TimeStamb,omitempty"`
Message []byte `protobuf:"bytes,2,req" json:"Message,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *SCPacketPong) Reset() { *m = SCPacketPong{} }
func (m *SCPacketPong) String() string { return proto.CompactTextString(m) }
func (*SCPacketPong) ProtoMessage() {}
func (m *SCPacketPong) GetTimeStamb() int64 {
if m != nil && m.TimeStamb != nil {
return *m.TimeStamb
}
return 0
}
func (m *SCPacketPong) GetMessage() []byte {
if m != nil {
return m.Message
}
return nil
}
func init() {
}