game/common/proto/pb/msgId.pb.go

161 lines
4.4 KiB
Go
Raw Normal View History

// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.36.6
// protoc v6.31.0
// source: msgId.proto
package pb
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
unsafe "unsafe"
)
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
// 聊天服 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",
2000: "C2SChatId",
2001: "S2CChatId",
2100: "C2SUserLoginId",
2101: "S2CUserLoginId",
2102: "NtfUserOnlineId",
2104: "C2SUserLogoutId",
2105: "S2CUserLogoutId",
2106: "NtfUserOfflineId",
}
MsgId_value = map[string]int32{
"MI_Unknown": 0,
"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
const file_msgId_proto_rawDesc = "" +
"\n" +
"\vmsgId.proto\x12\x02pb*\xba\x01\n" +
"\x05MsgId\x12\x0e\n" +
"\n" +
"MI_Unknown\x10\x00\x12\x0e\n" +
"\tC2SChatId\x10\xd0\x0f\x12\x0e\n" +
"\tS2CChatId\x10\xd1\x0f\x12\x13\n" +
"\x0eC2SUserLoginId\x10\xb4\x10\x12\x13\n" +
"\x0eS2CUserLoginId\x10\xb5\x10\x12\x14\n" +
"\x0fNtfUserOnlineId\x10\xb6\x10\x12\x14\n" +
"\x0fC2SUserLogoutId\x10\xb8\x10\x12\x14\n" +
"\x0fS2CUserLogoutId\x10\xb9\x10\x12\x15\n" +
"\x10NtfUserOfflineId\x10\xba\x10B\x11Z\x0fcommon/proto/pbb\x06proto3"
var (
file_msgId_proto_rawDescOnce sync.Once
file_msgId_proto_rawDescData []byte
)
func file_msgId_proto_rawDescGZIP() []byte {
file_msgId_proto_rawDescOnce.Do(func() {
file_msgId_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_msgId_proto_rawDesc), len(file_msgId_proto_rawDesc)))
})
return file_msgId_proto_rawDescData
}
var file_msgId_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_msgId_proto_goTypes = []any{
(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: unsafe.Slice(unsafe.StringData(file_msgId_proto_rawDesc), len(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_goTypes = nil
file_msgId_proto_depIdxs = nil
}