251 lines
8.2 KiB
Go
251 lines
8.2 KiB
Go
// 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中定义,前缀需有Req,Rsp,Ntf三种之一,后缀统一为Id
|
||
// 2. 所有错误码都在code.proto的ErrCode中定义
|
||
// 3. 所有消息名为对应消息id去掉后缀Id组成
|
||
type MsgId int32
|
||
|
||
const (
|
||
MsgId_MI_Unknown MsgId = 0
|
||
MsgId_NtfMaintainId MsgId = 1000 // 通知维护
|
||
MsgId_NtfKickOutUserId MsgId = 1001 // 踢出玩家
|
||
MsgId_ReqEnterRoomId MsgId = 1002 // 进入房间
|
||
MsgId_RspEnterRoomId MsgId = 1003
|
||
MsgId_ReqLeaveRoomId MsgId = 1004 // 离开房间
|
||
MsgId_RspLeaveRoomId MsgId = 1005
|
||
MsgId_NtfPayoutFailId MsgId = 1010 // 加减钱失败
|
||
// 聊天服 2000-2099
|
||
MsgId_ReqChatId MsgId = 2000 // 玩家聊天消息
|
||
MsgId_RspChatId MsgId = 2001 // 复用C2SChatMsg
|
||
// 登陆服 2100-2199
|
||
MsgId_ReqUserLoginId MsgId = 2100 // 玩家登陆
|
||
MsgId_RspUserLoginId MsgId = 2101
|
||
MsgId_NtfUserOnlineId MsgId = 2102
|
||
MsgId_NtfUserInServiceId MsgId = 2103 // 将玩家之前呆的服务同步给玩家,方便玩家重连进来
|
||
MsgId_ReqUserLogoutId MsgId = 2104
|
||
MsgId_RspUserLogoutId MsgId = 2105
|
||
MsgId_NtfUserOfflineId MsgId = 2106
|
||
// 匹配服 2200-2299
|
||
MsgId_ReqMatchRoomId MsgId = 2200 // 匹配服
|
||
MsgId_RspMatchRoomId MsgId = 2201
|
||
MsgId_NtfUserEnterRoomId MsgId = 2202 // 玩家进入房间 所有玩法共用此消息
|
||
// color game 2300-2399
|
||
MsgId_NtfColorRoomInfoId MsgId = 2300 // 进房间推送房间所有信息
|
||
MsgId_NtfColorGameStartId MsgId = 2305 // 游戏开始
|
||
MsgId_NtfColorBettingId MsgId = 2310 // 通知可以下注
|
||
MsgId_ReqColorBettingId MsgId = 2315 // 下注
|
||
MsgId_RspColorBettingId MsgId = 2320
|
||
MsgId_NtfColorBetAreaInfoId MsgId = 2325 // 每秒更新投注区域信息
|
||
MsgId_NtfColorEndBettingId MsgId = 2330 // 通知下注结束
|
||
MsgId_NtfColorOpenThreeDiceId MsgId = 2335 // 开三个骰子
|
||
MsgId_NtfColorSettleId MsgId = 2340 // 结算
|
||
MsgId_NtfColorBigUserId MsgId = 2345 // 大客数据
|
||
MsgId_NtfColorTrendId MsgId = 2350 // 路途数据
|
||
)
|
||
|
||
// Enum value maps for MsgId.
|
||
var (
|
||
MsgId_name = map[int32]string{
|
||
0: "MI_Unknown",
|
||
1000: "NtfMaintainId",
|
||
1001: "NtfKickOutUserId",
|
||
1002: "ReqEnterRoomId",
|
||
1003: "RspEnterRoomId",
|
||
1004: "ReqLeaveRoomId",
|
||
1005: "RspLeaveRoomId",
|
||
1010: "NtfPayoutFailId",
|
||
2000: "ReqChatId",
|
||
2001: "RspChatId",
|
||
2100: "ReqUserLoginId",
|
||
2101: "RspUserLoginId",
|
||
2102: "NtfUserOnlineId",
|
||
2103: "NtfUserInServiceId",
|
||
2104: "ReqUserLogoutId",
|
||
2105: "RspUserLogoutId",
|
||
2106: "NtfUserOfflineId",
|
||
2200: "ReqMatchRoomId",
|
||
2201: "RspMatchRoomId",
|
||
2202: "NtfUserEnterRoomId",
|
||
2300: "NtfColorRoomInfoId",
|
||
2305: "NtfColorGameStartId",
|
||
2310: "NtfColorBettingId",
|
||
2315: "ReqColorBettingId",
|
||
2320: "RspColorBettingId",
|
||
2325: "NtfColorBetAreaInfoId",
|
||
2330: "NtfColorEndBettingId",
|
||
2335: "NtfColorOpenThreeDiceId",
|
||
2340: "NtfColorSettleId",
|
||
2345: "NtfColorBigUserId",
|
||
2350: "NtfColorTrendId",
|
||
}
|
||
MsgId_value = map[string]int32{
|
||
"MI_Unknown": 0,
|
||
"NtfMaintainId": 1000,
|
||
"NtfKickOutUserId": 1001,
|
||
"ReqEnterRoomId": 1002,
|
||
"RspEnterRoomId": 1003,
|
||
"ReqLeaveRoomId": 1004,
|
||
"RspLeaveRoomId": 1005,
|
||
"NtfPayoutFailId": 1010,
|
||
"ReqChatId": 2000,
|
||
"RspChatId": 2001,
|
||
"ReqUserLoginId": 2100,
|
||
"RspUserLoginId": 2101,
|
||
"NtfUserOnlineId": 2102,
|
||
"NtfUserInServiceId": 2103,
|
||
"ReqUserLogoutId": 2104,
|
||
"RspUserLogoutId": 2105,
|
||
"NtfUserOfflineId": 2106,
|
||
"ReqMatchRoomId": 2200,
|
||
"RspMatchRoomId": 2201,
|
||
"NtfUserEnterRoomId": 2202,
|
||
"NtfColorRoomInfoId": 2300,
|
||
"NtfColorGameStartId": 2305,
|
||
"NtfColorBettingId": 2310,
|
||
"ReqColorBettingId": 2315,
|
||
"RspColorBettingId": 2320,
|
||
"NtfColorBetAreaInfoId": 2325,
|
||
"NtfColorEndBettingId": 2330,
|
||
"NtfColorOpenThreeDiceId": 2335,
|
||
"NtfColorSettleId": 2340,
|
||
"NtfColorBigUserId": 2345,
|
||
"NtfColorTrendId": 2350,
|
||
}
|
||
)
|
||
|
||
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*\xc0\x05\n" +
|
||
"\x05MsgId\x12\x0e\n" +
|
||
"\n" +
|
||
"MI_Unknown\x10\x00\x12\x12\n" +
|
||
"\rNtfMaintainId\x10\xe8\a\x12\x15\n" +
|
||
"\x10NtfKickOutUserId\x10\xe9\a\x12\x13\n" +
|
||
"\x0eReqEnterRoomId\x10\xea\a\x12\x13\n" +
|
||
"\x0eRspEnterRoomId\x10\xeb\a\x12\x13\n" +
|
||
"\x0eReqLeaveRoomId\x10\xec\a\x12\x13\n" +
|
||
"\x0eRspLeaveRoomId\x10\xed\a\x12\x14\n" +
|
||
"\x0fNtfPayoutFailId\x10\xf2\a\x12\x0e\n" +
|
||
"\tReqChatId\x10\xd0\x0f\x12\x0e\n" +
|
||
"\tRspChatId\x10\xd1\x0f\x12\x13\n" +
|
||
"\x0eReqUserLoginId\x10\xb4\x10\x12\x13\n" +
|
||
"\x0eRspUserLoginId\x10\xb5\x10\x12\x14\n" +
|
||
"\x0fNtfUserOnlineId\x10\xb6\x10\x12\x17\n" +
|
||
"\x12NtfUserInServiceId\x10\xb7\x10\x12\x14\n" +
|
||
"\x0fReqUserLogoutId\x10\xb8\x10\x12\x14\n" +
|
||
"\x0fRspUserLogoutId\x10\xb9\x10\x12\x15\n" +
|
||
"\x10NtfUserOfflineId\x10\xba\x10\x12\x13\n" +
|
||
"\x0eReqMatchRoomId\x10\x98\x11\x12\x13\n" +
|
||
"\x0eRspMatchRoomId\x10\x99\x11\x12\x17\n" +
|
||
"\x12NtfUserEnterRoomId\x10\x9a\x11\x12\x17\n" +
|
||
"\x12NtfColorRoomInfoId\x10\xfc\x11\x12\x18\n" +
|
||
"\x13NtfColorGameStartId\x10\x81\x12\x12\x16\n" +
|
||
"\x11NtfColorBettingId\x10\x86\x12\x12\x16\n" +
|
||
"\x11ReqColorBettingId\x10\x8b\x12\x12\x16\n" +
|
||
"\x11RspColorBettingId\x10\x90\x12\x12\x1a\n" +
|
||
"\x15NtfColorBetAreaInfoId\x10\x95\x12\x12\x19\n" +
|
||
"\x14NtfColorEndBettingId\x10\x9a\x12\x12\x1c\n" +
|
||
"\x17NtfColorOpenThreeDiceId\x10\x9f\x12\x12\x15\n" +
|
||
"\x10NtfColorSettleId\x10\xa4\x12\x12\x16\n" +
|
||
"\x11NtfColorBigUserId\x10\xa9\x12\x12\x14\n" +
|
||
"\x0fNtfColorTrendId\x10\xae\x12B\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: 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
|
||
}
|