168 lines
5.5 KiB
Go
168 lines
5.5 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||
// versions:
|
||
// protoc-gen-go v1.34.1
|
||
// protoc v4.25.2
|
||
// source: msgId.proto
|
||
|
||
package pb
|
||
|
||
import (
|
||
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||
reflect "reflect"
|
||
sync "sync"
|
||
)
|
||
|
||
const (
|
||
// Verify that this generated code is sufficiently up-to-date.
|
||
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
||
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
||
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
||
)
|
||
|
||
// 命名规则:
|
||
// 1. 所有消息id都在msgId.proto的MsgId中定义,前缀需有C2S,S2C,Ntf三种之一,后缀统一为Id
|
||
// 2. 所有错误码都在code.proto的ErrCode中定义
|
||
// 3. 所有消息名为对应消息id去掉后缀Id组成
|
||
type MsgId int32
|
||
|
||
const (
|
||
MsgId_MI_Unknown MsgId = 0
|
||
MsgId_NtfMaintainId MsgId = 1000 // 通知维护
|
||
// 聊天服 2000-2100
|
||
MsgId_C2SChatId MsgId = 2000 // 玩家聊天消息
|
||
MsgId_S2CChatId MsgId = 2001 // 复用C2SChatMsg
|
||
// 登陆服 2100-2200
|
||
MsgId_C2SUserLoginId MsgId = 2100 // 玩家登陆
|
||
MsgId_S2CUserLoginId MsgId = 2101
|
||
MsgId_NtfUserOnlineId MsgId = 2102
|
||
MsgId_C2SUserLogoutId MsgId = 2104
|
||
MsgId_S2CUserLogoutId MsgId = 2105
|
||
MsgId_NtfUserOfflineId MsgId = 2106
|
||
)
|
||
|
||
// Enum value maps for MsgId.
|
||
var (
|
||
MsgId_name = map[int32]string{
|
||
0: "MI_Unknown",
|
||
1000: "NtfMaintainId",
|
||
2000: "C2SChatId",
|
||
2001: "S2CChatId",
|
||
2100: "C2SUserLoginId",
|
||
2101: "S2CUserLoginId",
|
||
2102: "NtfUserOnlineId",
|
||
2104: "C2SUserLogoutId",
|
||
2105: "S2CUserLogoutId",
|
||
2106: "NtfUserOfflineId",
|
||
}
|
||
MsgId_value = map[string]int32{
|
||
"MI_Unknown": 0,
|
||
"NtfMaintainId": 1000,
|
||
"C2SChatId": 2000,
|
||
"S2CChatId": 2001,
|
||
"C2SUserLoginId": 2100,
|
||
"S2CUserLoginId": 2101,
|
||
"NtfUserOnlineId": 2102,
|
||
"C2SUserLogoutId": 2104,
|
||
"S2CUserLogoutId": 2105,
|
||
"NtfUserOfflineId": 2106,
|
||
}
|
||
)
|
||
|
||
func (x MsgId) Enum() *MsgId {
|
||
p := new(MsgId)
|
||
*p = x
|
||
return p
|
||
}
|
||
|
||
func (x MsgId) String() string {
|
||
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
||
}
|
||
|
||
func (MsgId) Descriptor() protoreflect.EnumDescriptor {
|
||
return file_msgId_proto_enumTypes[0].Descriptor()
|
||
}
|
||
|
||
func (MsgId) Type() protoreflect.EnumType {
|
||
return &file_msgId_proto_enumTypes[0]
|
||
}
|
||
|
||
func (x MsgId) Number() protoreflect.EnumNumber {
|
||
return protoreflect.EnumNumber(x)
|
||
}
|
||
|
||
// Deprecated: Use MsgId.Descriptor instead.
|
||
func (MsgId) EnumDescriptor() ([]byte, []int) {
|
||
return file_msgId_proto_rawDescGZIP(), []int{0}
|
||
}
|
||
|
||
var File_msgId_proto protoreflect.FileDescriptor
|
||
|
||
var file_msgId_proto_rawDesc = []byte{
|
||
0x0a, 0x0b, 0x6d, 0x73, 0x67, 0x49, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x02, 0x70,
|
||
0x62, 0x2a, 0xce, 0x01, 0x0a, 0x05, 0x4d, 0x73, 0x67, 0x49, 0x64, 0x12, 0x0e, 0x0a, 0x0a, 0x4d,
|
||
0x49, 0x5f, 0x55, 0x6e, 0x6b, 0x6e, 0x6f, 0x77, 0x6e, 0x10, 0x00, 0x12, 0x12, 0x0a, 0x0d, 0x4e,
|
||
0x74, 0x66, 0x4d, 0x61, 0x69, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x49, 0x64, 0x10, 0xe8, 0x07, 0x12,
|
||
0x0e, 0x0a, 0x09, 0x43, 0x32, 0x53, 0x43, 0x68, 0x61, 0x74, 0x49, 0x64, 0x10, 0xd0, 0x0f, 0x12,
|
||
0x0e, 0x0a, 0x09, 0x53, 0x32, 0x43, 0x43, 0x68, 0x61, 0x74, 0x49, 0x64, 0x10, 0xd1, 0x0f, 0x12,
|
||
0x13, 0x0a, 0x0e, 0x43, 0x32, 0x53, 0x55, 0x73, 0x65, 0x72, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x49,
|
||
0x64, 0x10, 0xb4, 0x10, 0x12, 0x13, 0x0a, 0x0e, 0x53, 0x32, 0x43, 0x55, 0x73, 0x65, 0x72, 0x4c,
|
||
0x6f, 0x67, 0x69, 0x6e, 0x49, 0x64, 0x10, 0xb5, 0x10, 0x12, 0x14, 0x0a, 0x0f, 0x4e, 0x74, 0x66,
|
||
0x55, 0x73, 0x65, 0x72, 0x4f, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x49, 0x64, 0x10, 0xb6, 0x10, 0x12,
|
||
0x14, 0x0a, 0x0f, 0x43, 0x32, 0x53, 0x55, 0x73, 0x65, 0x72, 0x4c, 0x6f, 0x67, 0x6f, 0x75, 0x74,
|
||
0x49, 0x64, 0x10, 0xb8, 0x10, 0x12, 0x14, 0x0a, 0x0f, 0x53, 0x32, 0x43, 0x55, 0x73, 0x65, 0x72,
|
||
0x4c, 0x6f, 0x67, 0x6f, 0x75, 0x74, 0x49, 0x64, 0x10, 0xb9, 0x10, 0x12, 0x15, 0x0a, 0x10, 0x4e,
|
||
0x74, 0x66, 0x55, 0x73, 0x65, 0x72, 0x4f, 0x66, 0x66, 0x6c, 0x69, 0x6e, 0x65, 0x49, 0x64, 0x10,
|
||
0xba, 0x10, 0x42, 0x11, 0x5a, 0x0f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f,
|
||
0x74, 0x6f, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||
}
|
||
|
||
var (
|
||
file_msgId_proto_rawDescOnce sync.Once
|
||
file_msgId_proto_rawDescData = file_msgId_proto_rawDesc
|
||
)
|
||
|
||
func file_msgId_proto_rawDescGZIP() []byte {
|
||
file_msgId_proto_rawDescOnce.Do(func() {
|
||
file_msgId_proto_rawDescData = protoimpl.X.CompressGZIP(file_msgId_proto_rawDescData)
|
||
})
|
||
return file_msgId_proto_rawDescData
|
||
}
|
||
|
||
var file_msgId_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
|
||
var file_msgId_proto_goTypes = []interface{}{
|
||
(MsgId)(0), // 0: pb.MsgId
|
||
}
|
||
var file_msgId_proto_depIdxs = []int32{
|
||
0, // [0:0] is the sub-list for method output_type
|
||
0, // [0:0] is the sub-list for method input_type
|
||
0, // [0:0] is the sub-list for extension type_name
|
||
0, // [0:0] is the sub-list for extension extendee
|
||
0, // [0:0] is the sub-list for field type_name
|
||
}
|
||
|
||
func init() { file_msgId_proto_init() }
|
||
func file_msgId_proto_init() {
|
||
if File_msgId_proto != nil {
|
||
return
|
||
}
|
||
type x struct{}
|
||
out := protoimpl.TypeBuilder{
|
||
File: protoimpl.DescBuilder{
|
||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||
RawDescriptor: file_msgId_proto_rawDesc,
|
||
NumEnums: 1,
|
||
NumMessages: 0,
|
||
NumExtensions: 0,
|
||
NumServices: 0,
|
||
},
|
||
GoTypes: file_msgId_proto_goTypes,
|
||
DependencyIndexes: file_msgId_proto_depIdxs,
|
||
EnumInfos: file_msgId_proto_enumTypes,
|
||
}.Build()
|
||
File_msgId_proto = out.File
|
||
file_msgId_proto_rawDesc = nil
|
||
file_msgId_proto_goTypes = nil
|
||
file_msgId_proto_depIdxs = nil
|
||
}
|