/
MSG_Server.pb.go
130 lines (109 loc) · 4.86 KB
/
MSG_Server.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
// Code generated by protoc-gen-go.
// source: MSG_Server.proto
// DO NOT EDIT!
/*
Package MSG_Server is a generated protocol buffer package.
It is generated from these files:
MSG_Server.proto
It has these top-level messages:
CS_ServerRegister_Req
SC_ServerRegister_Rsp
*/
package MSG_Server
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
// add by stefanchen
// server
type SUBMSG int32
const (
SUBMSG_Begin SUBMSG = 0
SUBMSG_CS_ServerRegister SUBMSG = 1
SUBMSG_SC_ServerRegister SUBMSG = 2
)
var SUBMSG_name = map[int32]string{
0: "Begin",
1: "CS_ServerRegister",
2: "SC_ServerRegister",
}
var SUBMSG_value = map[string]int32{
"Begin": 0,
"CS_ServerRegister": 1,
"SC_ServerRegister": 2,
}
func (x SUBMSG) String() string {
return proto.EnumName(SUBMSG_name, int32(x))
}
func (SUBMSG) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
type ErrorCode int32
const (
ErrorCode_Invalid ErrorCode = 0
ErrorCode_Success ErrorCode = 1
ErrorCode_Fail ErrorCode = 2
)
var ErrorCode_name = map[int32]string{
0: "Invalid",
1: "Success",
2: "Fail",
}
var ErrorCode_value = map[string]int32{
"Invalid": 0,
"Success": 1,
"Fail": 2,
}
func (x ErrorCode) String() string {
return proto.EnumName(ErrorCode_name, int32(x))
}
func (ErrorCode) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
// CS_ServerRegister
type CS_ServerRegister_Req struct {
ServerType int32 `protobuf:"varint,1,opt,name=ServerType" json:"ServerType,omitempty"`
Msgs []uint32 `protobuf:"varint,2,rep,name=Msgs" json:"Msgs,omitempty"`
}
func (m *CS_ServerRegister_Req) Reset() { *m = CS_ServerRegister_Req{} }
func (m *CS_ServerRegister_Req) String() string { return proto.CompactTextString(m) }
func (*CS_ServerRegister_Req) ProtoMessage() {}
func (*CS_ServerRegister_Req) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
// SC_ServerRegister
type SC_ServerRegister_Rsp struct {
Ret ErrorCode `protobuf:"varint,1,opt,name=Ret,enum=MSG_Server.ErrorCode" json:"Ret,omitempty"`
Identify string `protobuf:"bytes,2,opt,name=Identify" json:"Identify,omitempty"`
}
func (m *SC_ServerRegister_Rsp) Reset() { *m = SC_ServerRegister_Rsp{} }
func (m *SC_ServerRegister_Rsp) String() string { return proto.CompactTextString(m) }
func (*SC_ServerRegister_Rsp) ProtoMessage() {}
func (*SC_ServerRegister_Rsp) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
func init() {
proto.RegisterType((*CS_ServerRegister_Req)(nil), "MSG_Server.CS_ServerRegister_Req")
proto.RegisterType((*SC_ServerRegister_Rsp)(nil), "MSG_Server.SC_ServerRegister_Rsp")
proto.RegisterEnum("MSG_Server.SUBMSG", SUBMSG_name, SUBMSG_value)
proto.RegisterEnum("MSG_Server.ErrorCode", ErrorCode_name, ErrorCode_value)
}
func init() { proto.RegisterFile("MSG_Server.proto", fileDescriptor0) }
var fileDescriptor0 = []byte{
// 238 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00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