2025-06-07 22:53:54 +08:00
|
|
|
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
|
|
|
// versions:
|
|
|
|
|
// protoc-gen-go v1.36.6
|
|
|
|
|
// protoc v6.31.0
|
|
|
|
|
// source: match.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)
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
// 房间匹配
|
2025-06-08 22:42:58 +08:00
|
|
|
|
type ReqMatchRoom struct {
|
2025-06-07 22:53:54 +08:00
|
|
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
2025-06-15 22:03:16 +08:00
|
|
|
|
GameId ServiceTypeId `protobuf:"varint,1,opt,name=gameId,proto3,enum=pb.ServiceTypeId" json:"gameId,omitempty"` // 玩法id
|
|
|
|
|
RoomType int32 `protobuf:"varint,2,opt,name=roomType,proto3" json:"roomType,omitempty"` // 房间类型,低级,中级,高级等
|
2025-06-07 22:53:54 +08:00
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
|
}
|
|
|
|
|
|
2025-06-08 22:42:58 +08:00
|
|
|
|
func (x *ReqMatchRoom) Reset() {
|
|
|
|
|
*x = ReqMatchRoom{}
|
2025-06-07 22:53:54 +08:00
|
|
|
|
mi := &file_match_proto_msgTypes[0]
|
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
|
}
|
|
|
|
|
|
2025-06-08 22:42:58 +08:00
|
|
|
|
func (x *ReqMatchRoom) String() string {
|
2025-06-07 22:53:54 +08:00
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
|
}
|
|
|
|
|
|
2025-06-08 22:42:58 +08:00
|
|
|
|
func (*ReqMatchRoom) ProtoMessage() {}
|
2025-06-07 22:53:54 +08:00
|
|
|
|
|
2025-06-08 22:42:58 +08:00
|
|
|
|
func (x *ReqMatchRoom) ProtoReflect() protoreflect.Message {
|
2025-06-07 22:53:54 +08:00
|
|
|
|
mi := &file_match_proto_msgTypes[0]
|
|
|
|
|
if x != nil {
|
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
|
}
|
|
|
|
|
return ms
|
|
|
|
|
}
|
|
|
|
|
return mi.MessageOf(x)
|
|
|
|
|
}
|
|
|
|
|
|
2025-06-08 22:42:58 +08:00
|
|
|
|
// Deprecated: Use ReqMatchRoom.ProtoReflect.Descriptor instead.
|
|
|
|
|
func (*ReqMatchRoom) Descriptor() ([]byte, []int) {
|
2025-06-07 22:53:54 +08:00
|
|
|
|
return file_match_proto_rawDescGZIP(), []int{0}
|
|
|
|
|
}
|
|
|
|
|
|
2025-06-15 22:03:16 +08:00
|
|
|
|
func (x *ReqMatchRoom) GetGameId() ServiceTypeId {
|
2025-06-07 22:53:54 +08:00
|
|
|
|
if x != nil {
|
2025-06-14 12:31:57 +08:00
|
|
|
|
return x.GameId
|
2025-06-07 22:53:54 +08:00
|
|
|
|
}
|
2025-06-15 22:03:16 +08:00
|
|
|
|
return ServiceTypeId_STI_Unknown
|
2025-06-07 22:53:54 +08:00
|
|
|
|
}
|
|
|
|
|
|
2025-06-08 22:42:58 +08:00
|
|
|
|
func (x *ReqMatchRoom) GetRoomType() int32 {
|
2025-06-07 22:53:54 +08:00
|
|
|
|
if x != nil {
|
|
|
|
|
return x.RoomType
|
|
|
|
|
}
|
|
|
|
|
return 0
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 玩家进房间返回 匹配服返回该消息,假房间。匹配成功后发给对应玩法服,玩法服发NotifyUserEnterRoom才是真房间
|
2025-06-08 22:42:58 +08:00
|
|
|
|
type RspMatchRoom struct {
|
2025-06-07 22:53:54 +08:00
|
|
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
|
|
|
Code ErrCode `protobuf:"varint,1,opt,name=code,proto3,enum=pb.ErrCode" json:"code,omitempty"`
|
2025-06-15 22:03:16 +08:00
|
|
|
|
GameId ServiceTypeId `protobuf:"varint,2,opt,name=gameId,proto3,enum=pb.ServiceTypeId" json:"gameId,omitempty"` // 玩法id
|
|
|
|
|
RoomType int32 `protobuf:"varint,3,opt,name=roomType,proto3" json:"roomType,omitempty"` // 房间类型,低级,中级,高级等
|
|
|
|
|
User *GameUser `protobuf:"bytes,4,opt,name=User,proto3" json:"User,omitempty"` // 玩家数据
|
|
|
|
|
ColorInfo *RspMatchRoom_ColorInfo `protobuf:"bytes,20,opt,name=colorInfo,proto3" json:"colorInfo,omitempty"` // color玩法配置信息
|
2025-06-07 22:53:54 +08:00
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
|
}
|
|
|
|
|
|
2025-06-08 22:42:58 +08:00
|
|
|
|
func (x *RspMatchRoom) Reset() {
|
|
|
|
|
*x = RspMatchRoom{}
|
2025-06-07 22:53:54 +08:00
|
|
|
|
mi := &file_match_proto_msgTypes[1]
|
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
|
}
|
|
|
|
|
|
2025-06-08 22:42:58 +08:00
|
|
|
|
func (x *RspMatchRoom) String() string {
|
2025-06-07 22:53:54 +08:00
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
|
}
|
|
|
|
|
|
2025-06-08 22:42:58 +08:00
|
|
|
|
func (*RspMatchRoom) ProtoMessage() {}
|
2025-06-07 22:53:54 +08:00
|
|
|
|
|
2025-06-08 22:42:58 +08:00
|
|
|
|
func (x *RspMatchRoom) ProtoReflect() protoreflect.Message {
|
2025-06-07 22:53:54 +08:00
|
|
|
|
mi := &file_match_proto_msgTypes[1]
|
|
|
|
|
if x != nil {
|
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
|
}
|
|
|
|
|
return ms
|
|
|
|
|
}
|
|
|
|
|
return mi.MessageOf(x)
|
|
|
|
|
}
|
|
|
|
|
|
2025-06-08 22:42:58 +08:00
|
|
|
|
// Deprecated: Use RspMatchRoom.ProtoReflect.Descriptor instead.
|
|
|
|
|
func (*RspMatchRoom) Descriptor() ([]byte, []int) {
|
2025-06-07 22:53:54 +08:00
|
|
|
|
return file_match_proto_rawDescGZIP(), []int{1}
|
|
|
|
|
}
|
|
|
|
|
|
2025-06-08 22:42:58 +08:00
|
|
|
|
func (x *RspMatchRoom) GetCode() ErrCode {
|
2025-06-07 22:53:54 +08:00
|
|
|
|
if x != nil {
|
|
|
|
|
return x.Code
|
|
|
|
|
}
|
|
|
|
|
return ErrCode_OK
|
|
|
|
|
}
|
|
|
|
|
|
2025-06-15 22:03:16 +08:00
|
|
|
|
func (x *RspMatchRoom) GetGameId() ServiceTypeId {
|
2025-06-07 22:53:54 +08:00
|
|
|
|
if x != nil {
|
2025-06-14 12:31:57 +08:00
|
|
|
|
return x.GameId
|
2025-06-07 22:53:54 +08:00
|
|
|
|
}
|
2025-06-15 22:03:16 +08:00
|
|
|
|
return ServiceTypeId_STI_Unknown
|
2025-06-07 22:53:54 +08:00
|
|
|
|
}
|
|
|
|
|
|
2025-06-08 22:42:58 +08:00
|
|
|
|
func (x *RspMatchRoom) GetRoomType() int32 {
|
2025-06-07 22:53:54 +08:00
|
|
|
|
if x != nil {
|
|
|
|
|
return x.RoomType
|
|
|
|
|
}
|
|
|
|
|
return 0
|
|
|
|
|
}
|
|
|
|
|
|
2025-06-08 22:42:58 +08:00
|
|
|
|
func (x *RspMatchRoom) GetUser() *GameUser {
|
2025-06-07 22:53:54 +08:00
|
|
|
|
if x != nil {
|
|
|
|
|
return x.User
|
|
|
|
|
}
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
2025-06-08 22:42:58 +08:00
|
|
|
|
func (x *RspMatchRoom) GetColorInfo() *RspMatchRoom_ColorInfo {
|
2025-06-07 22:53:54 +08:00
|
|
|
|
if x != nil {
|
|
|
|
|
return x.ColorInfo
|
|
|
|
|
}
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type NotifyUserEnterRoom struct {
|
|
|
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
|
|
|
User []*GameUser `protobuf:"bytes,1,rep,name=User,proto3" json:"User,omitempty"` // 玩家进房间广播
|
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *NotifyUserEnterRoom) Reset() {
|
|
|
|
|
*x = NotifyUserEnterRoom{}
|
|
|
|
|
mi := &file_match_proto_msgTypes[2]
|
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *NotifyUserEnterRoom) String() string {
|
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (*NotifyUserEnterRoom) ProtoMessage() {}
|
|
|
|
|
|
|
|
|
|
func (x *NotifyUserEnterRoom) ProtoReflect() protoreflect.Message {
|
|
|
|
|
mi := &file_match_proto_msgTypes[2]
|
|
|
|
|
if x != nil {
|
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
|
}
|
|
|
|
|
return ms
|
|
|
|
|
}
|
|
|
|
|
return mi.MessageOf(x)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Deprecated: Use NotifyUserEnterRoom.ProtoReflect.Descriptor instead.
|
|
|
|
|
func (*NotifyUserEnterRoom) Descriptor() ([]byte, []int) {
|
|
|
|
|
return file_match_proto_rawDescGZIP(), []int{2}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *NotifyUserEnterRoom) GetUser() []*GameUser {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.User
|
|
|
|
|
}
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// color玩法配置信息
|
2025-06-08 22:42:58 +08:00
|
|
|
|
type RspMatchRoom_ColorInfo struct {
|
2025-06-07 22:53:54 +08:00
|
|
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
|
}
|
|
|
|
|
|
2025-06-08 22:42:58 +08:00
|
|
|
|
func (x *RspMatchRoom_ColorInfo) Reset() {
|
|
|
|
|
*x = RspMatchRoom_ColorInfo{}
|
2025-06-07 22:53:54 +08:00
|
|
|
|
mi := &file_match_proto_msgTypes[3]
|
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
|
}
|
|
|
|
|
|
2025-06-08 22:42:58 +08:00
|
|
|
|
func (x *RspMatchRoom_ColorInfo) String() string {
|
2025-06-07 22:53:54 +08:00
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
|
}
|
|
|
|
|
|
2025-06-08 22:42:58 +08:00
|
|
|
|
func (*RspMatchRoom_ColorInfo) ProtoMessage() {}
|
2025-06-07 22:53:54 +08:00
|
|
|
|
|
2025-06-08 22:42:58 +08:00
|
|
|
|
func (x *RspMatchRoom_ColorInfo) ProtoReflect() protoreflect.Message {
|
2025-06-07 22:53:54 +08:00
|
|
|
|
mi := &file_match_proto_msgTypes[3]
|
|
|
|
|
if x != nil {
|
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
|
}
|
|
|
|
|
return ms
|
|
|
|
|
}
|
|
|
|
|
return mi.MessageOf(x)
|
|
|
|
|
}
|
|
|
|
|
|
2025-06-08 22:42:58 +08:00
|
|
|
|
// Deprecated: Use RspMatchRoom_ColorInfo.ProtoReflect.Descriptor instead.
|
|
|
|
|
func (*RspMatchRoom_ColorInfo) Descriptor() ([]byte, []int) {
|
2025-06-07 22:53:54 +08:00
|
|
|
|
return file_match_proto_rawDescGZIP(), []int{1, 0}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var File_match_proto protoreflect.FileDescriptor
|
|
|
|
|
|
|
|
|
|
const file_match_proto_rawDesc = "" +
|
|
|
|
|
"\n" +
|
|
|
|
|
"\vmatch.proto\x12\x02pb\x1a\n" +
|
|
|
|
|
"code.proto\x1a\n" +
|
2025-06-15 22:03:16 +08:00
|
|
|
|
"user.proto\x1a\rservice.proto\"U\n" +
|
|
|
|
|
"\fReqMatchRoom\x12)\n" +
|
|
|
|
|
"\x06gameId\x18\x01 \x01(\x0e2\x11.pb.ServiceTypeIdR\x06gameId\x12\x1a\n" +
|
|
|
|
|
"\broomType\x18\x02 \x01(\x05R\broomType\"\xdf\x01\n" +
|
2025-06-08 22:42:58 +08:00
|
|
|
|
"\fRspMatchRoom\x12\x1f\n" +
|
2025-06-15 22:03:16 +08:00
|
|
|
|
"\x04code\x18\x01 \x01(\x0e2\v.pb.ErrCodeR\x04code\x12)\n" +
|
|
|
|
|
"\x06gameId\x18\x02 \x01(\x0e2\x11.pb.ServiceTypeIdR\x06gameId\x12\x1a\n" +
|
2025-06-14 12:31:57 +08:00
|
|
|
|
"\broomType\x18\x03 \x01(\x05R\broomType\x12 \n" +
|
2025-06-07 22:53:54 +08:00
|
|
|
|
"\x04User\x18\x04 \x01(\v2\f.pb.GameUserR\x04User\x128\n" +
|
2025-06-08 22:42:58 +08:00
|
|
|
|
"\tcolorInfo\x18\x14 \x01(\v2\x1a.pb.RspMatchRoom.ColorInfoR\tcolorInfo\x1a\v\n" +
|
2025-06-07 22:53:54 +08:00
|
|
|
|
"\tColorInfo\"7\n" +
|
|
|
|
|
"\x13NotifyUserEnterRoom\x12 \n" +
|
|
|
|
|
"\x04User\x18\x01 \x03(\v2\f.pb.GameUserR\x04UserB\x11Z\x0fcommon/proto/pbb\x06proto3"
|
|
|
|
|
|
|
|
|
|
var (
|
|
|
|
|
file_match_proto_rawDescOnce sync.Once
|
|
|
|
|
file_match_proto_rawDescData []byte
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
func file_match_proto_rawDescGZIP() []byte {
|
|
|
|
|
file_match_proto_rawDescOnce.Do(func() {
|
|
|
|
|
file_match_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_match_proto_rawDesc), len(file_match_proto_rawDesc)))
|
|
|
|
|
})
|
|
|
|
|
return file_match_proto_rawDescData
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var file_match_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
|
|
|
|
|
var file_match_proto_goTypes = []any{
|
2025-06-08 22:42:58 +08:00
|
|
|
|
(*ReqMatchRoom)(nil), // 0: pb.ReqMatchRoom
|
|
|
|
|
(*RspMatchRoom)(nil), // 1: pb.RspMatchRoom
|
2025-06-07 22:53:54 +08:00
|
|
|
|
(*NotifyUserEnterRoom)(nil), // 2: pb.NotifyUserEnterRoom
|
2025-06-08 22:42:58 +08:00
|
|
|
|
(*RspMatchRoom_ColorInfo)(nil), // 3: pb.RspMatchRoom.ColorInfo
|
2025-06-15 22:03:16 +08:00
|
|
|
|
(ServiceTypeId)(0), // 4: pb.ServiceTypeId
|
|
|
|
|
(ErrCode)(0), // 5: pb.ErrCode
|
|
|
|
|
(*GameUser)(nil), // 6: pb.GameUser
|
2025-06-07 22:53:54 +08:00
|
|
|
|
}
|
|
|
|
|
var file_match_proto_depIdxs = []int32{
|
2025-06-15 22:03:16 +08:00
|
|
|
|
4, // 0: pb.ReqMatchRoom.gameId:type_name -> pb.ServiceTypeId
|
|
|
|
|
5, // 1: pb.RspMatchRoom.code:type_name -> pb.ErrCode
|
|
|
|
|
4, // 2: pb.RspMatchRoom.gameId:type_name -> pb.ServiceTypeId
|
|
|
|
|
6, // 3: pb.RspMatchRoom.User:type_name -> pb.GameUser
|
|
|
|
|
3, // 4: pb.RspMatchRoom.colorInfo:type_name -> pb.RspMatchRoom.ColorInfo
|
|
|
|
|
6, // 5: pb.NotifyUserEnterRoom.User:type_name -> pb.GameUser
|
|
|
|
|
6, // [6:6] is the sub-list for method output_type
|
|
|
|
|
6, // [6:6] is the sub-list for method input_type
|
|
|
|
|
6, // [6:6] is the sub-list for extension type_name
|
|
|
|
|
6, // [6:6] is the sub-list for extension extendee
|
|
|
|
|
0, // [0:6] is the sub-list for field type_name
|
2025-06-07 22:53:54 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func init() { file_match_proto_init() }
|
|
|
|
|
func file_match_proto_init() {
|
|
|
|
|
if File_match_proto != nil {
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
file_code_proto_init()
|
|
|
|
|
file_user_proto_init()
|
2025-06-15 22:03:16 +08:00
|
|
|
|
file_service_proto_init()
|
2025-06-07 22:53:54 +08:00
|
|
|
|
type x struct{}
|
|
|
|
|
out := protoimpl.TypeBuilder{
|
|
|
|
|
File: protoimpl.DescBuilder{
|
|
|
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
|
|
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_match_proto_rawDesc), len(file_match_proto_rawDesc)),
|
|
|
|
|
NumEnums: 0,
|
|
|
|
|
NumMessages: 4,
|
|
|
|
|
NumExtensions: 0,
|
|
|
|
|
NumServices: 0,
|
|
|
|
|
},
|
|
|
|
|
GoTypes: file_match_proto_goTypes,
|
|
|
|
|
DependencyIndexes: file_match_proto_depIdxs,
|
|
|
|
|
MessageInfos: file_match_proto_msgTypes,
|
|
|
|
|
}.Build()
|
|
|
|
|
File_match_proto = out.File
|
|
|
|
|
file_match_proto_goTypes = nil
|
|
|
|
|
file_match_proto_depIdxs = nil
|
|
|
|
|
}
|