forked from topfreegames/pitaya
/
msg.pb.go
142 lines (123 loc) · 4.4 KB
/
msg.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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: msg.proto
package protos
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import 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.ProtoPackageIsVersion2 // please upgrade the proto package
type MsgType int32
const (
MsgType_MsgRequest MsgType = 0
MsgType_MsgNotify MsgType = 1
MsgType_MsgResponse MsgType = 2
MsgType_MsgPush MsgType = 3
)
var MsgType_name = map[int32]string{
0: "MsgRequest",
1: "MsgNotify",
2: "MsgResponse",
3: "MsgPush",
}
var MsgType_value = map[string]int32{
"MsgRequest": 0,
"MsgNotify": 1,
"MsgResponse": 2,
"MsgPush": 3,
}
func (x MsgType) String() string {
return proto.EnumName(MsgType_name, int32(x))
}
func (MsgType) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_msg_40ab112f05d06c13, []int{0}
}
type Msg struct {
Id uint64 `protobuf:"varint,1,opt,name=id" json:"id,omitempty"`
Route string `protobuf:"bytes,2,opt,name=route" json:"route,omitempty"`
Data []byte `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
Reply string `protobuf:"bytes,4,opt,name=reply" json:"reply,omitempty"`
Type MsgType `protobuf:"varint,5,opt,name=type,enum=protos.MsgType" json:"type,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Msg) Reset() { *m = Msg{} }
func (m *Msg) String() string { return proto.CompactTextString(m) }
func (*Msg) ProtoMessage() {}
func (*Msg) Descriptor() ([]byte, []int) {
return fileDescriptor_msg_40ab112f05d06c13, []int{0}
}
func (m *Msg) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Msg.Unmarshal(m, b)
}
func (m *Msg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Msg.Marshal(b, m, deterministic)
}
func (dst *Msg) XXX_Merge(src proto.Message) {
xxx_messageInfo_Msg.Merge(dst, src)
}
func (m *Msg) XXX_Size() int {
return xxx_messageInfo_Msg.Size(m)
}
func (m *Msg) XXX_DiscardUnknown() {
xxx_messageInfo_Msg.DiscardUnknown(m)
}
var xxx_messageInfo_Msg proto.InternalMessageInfo
func (m *Msg) GetId() uint64 {
if m != nil {
return m.Id
}
return 0
}
func (m *Msg) GetRoute() string {
if m != nil {
return m.Route
}
return ""
}
func (m *Msg) GetData() []byte {
if m != nil {
return m.Data
}
return nil
}
func (m *Msg) GetReply() string {
if m != nil {
return m.Reply
}
return ""
}
func (m *Msg) GetType() MsgType {
if m != nil {
return m.Type
}
return MsgType_MsgRequest
}
func init() {
proto.RegisterType((*Msg)(nil), "protos.Msg")
proto.RegisterEnum("protos.MsgType", MsgType_name, MsgType_value)
}
func init() { proto.RegisterFile("msg.proto", fileDescriptor_msg_40ab112f05d06c13) }
var fileDescriptor_msg_40ab112f05d06c13 = []byte{
// 196 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x2c, 0x8f, 0xc1, 0x4e, 0xc6, 0x20,
0x0c, 0xc7, 0x85, 0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