317 lines
9.4 KiB
Go
317 lines
9.4 KiB
Go
// 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)
|
||
)
|
||
|
||
// 房间匹配
|
||
type ReqMatchRoom struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
GameId ServiceTypeId `protobuf:"varint,1,opt,name=gameId,proto3,enum=ServiceTypeId" json:"gameId,omitempty"` // 玩法id
|
||
RoomType int32 `protobuf:"varint,2,opt,name=roomType,proto3" json:"roomType,omitempty"` // 房间类型,低级,中级,高级等
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *ReqMatchRoom) Reset() {
|
||
*x = ReqMatchRoom{}
|
||
mi := &file_match_proto_msgTypes[0]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *ReqMatchRoom) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*ReqMatchRoom) ProtoMessage() {}
|
||
|
||
func (x *ReqMatchRoom) ProtoReflect() protoreflect.Message {
|
||
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)
|
||
}
|
||
|
||
// Deprecated: Use ReqMatchRoom.ProtoReflect.Descriptor instead.
|
||
func (*ReqMatchRoom) Descriptor() ([]byte, []int) {
|
||
return file_match_proto_rawDescGZIP(), []int{0}
|
||
}
|
||
|
||
func (x *ReqMatchRoom) GetGameId() ServiceTypeId {
|
||
if x != nil {
|
||
return x.GameId
|
||
}
|
||
return ServiceTypeId_STI_Unknown
|
||
}
|
||
|
||
func (x *ReqMatchRoom) GetRoomType() int32 {
|
||
if x != nil {
|
||
return x.RoomType
|
||
}
|
||
return 0
|
||
}
|
||
|
||
// 玩家进房间返回 匹配服返回该消息,假房间。匹配成功后发给对应玩法服,玩法服发NotifyUserEnterRoom才是真房间
|
||
type RspMatchRoom struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Code ErrCode `protobuf:"varint,1,opt,name=code,proto3,enum=ErrCode" json:"code,omitempty"`
|
||
GameId ServiceTypeId `protobuf:"varint,2,opt,name=gameId,proto3,enum=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玩法配置信息
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *RspMatchRoom) Reset() {
|
||
*x = RspMatchRoom{}
|
||
mi := &file_match_proto_msgTypes[1]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *RspMatchRoom) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*RspMatchRoom) ProtoMessage() {}
|
||
|
||
func (x *RspMatchRoom) ProtoReflect() protoreflect.Message {
|
||
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)
|
||
}
|
||
|
||
// Deprecated: Use RspMatchRoom.ProtoReflect.Descriptor instead.
|
||
func (*RspMatchRoom) Descriptor() ([]byte, []int) {
|
||
return file_match_proto_rawDescGZIP(), []int{1}
|
||
}
|
||
|
||
func (x *RspMatchRoom) GetCode() ErrCode {
|
||
if x != nil {
|
||
return x.Code
|
||
}
|
||
return ErrCode_OK
|
||
}
|
||
|
||
func (x *RspMatchRoom) GetGameId() ServiceTypeId {
|
||
if x != nil {
|
||
return x.GameId
|
||
}
|
||
return ServiceTypeId_STI_Unknown
|
||
}
|
||
|
||
func (x *RspMatchRoom) GetRoomType() int32 {
|
||
if x != nil {
|
||
return x.RoomType
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *RspMatchRoom) GetUser() *GameUser {
|
||
if x != nil {
|
||
return x.User
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (x *RspMatchRoom) GetColorInfo() *RspMatchRoom_ColorInfo {
|
||
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玩法配置信息
|
||
type RspMatchRoom_ColorInfo struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *RspMatchRoom_ColorInfo) Reset() {
|
||
*x = RspMatchRoom_ColorInfo{}
|
||
mi := &file_match_proto_msgTypes[3]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *RspMatchRoom_ColorInfo) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*RspMatchRoom_ColorInfo) ProtoMessage() {}
|
||
|
||
func (x *RspMatchRoom_ColorInfo) ProtoReflect() protoreflect.Message {
|
||
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)
|
||
}
|
||
|
||
// Deprecated: Use RspMatchRoom_ColorInfo.ProtoReflect.Descriptor instead.
|
||
func (*RspMatchRoom_ColorInfo) Descriptor() ([]byte, []int) {
|
||
return file_match_proto_rawDescGZIP(), []int{1, 0}
|
||
}
|
||
|
||
var File_match_proto protoreflect.FileDescriptor
|
||
|
||
const file_match_proto_rawDesc = "" +
|
||
"\n" +
|
||
"\vmatch.proto\x1a\n" +
|
||
"code.proto\x1a\n" +
|
||
"user.proto\x1a\rservice.proto\"R\n" +
|
||
"\fReqMatchRoom\x12&\n" +
|
||
"\x06gameId\x18\x01 \x01(\x0e2\x0e.ServiceTypeIdR\x06gameId\x12\x1a\n" +
|
||
"\broomType\x18\x02 \x01(\x05R\broomType\"\xd3\x01\n" +
|
||
"\fRspMatchRoom\x12\x1c\n" +
|
||
"\x04code\x18\x01 \x01(\x0e2\b.ErrCodeR\x04code\x12&\n" +
|
||
"\x06gameId\x18\x02 \x01(\x0e2\x0e.ServiceTypeIdR\x06gameId\x12\x1a\n" +
|
||
"\broomType\x18\x03 \x01(\x05R\broomType\x12\x1d\n" +
|
||
"\x04User\x18\x04 \x01(\v2\t.GameUserR\x04User\x125\n" +
|
||
"\tcolorInfo\x18\x14 \x01(\v2\x17.RspMatchRoom.ColorInfoR\tcolorInfo\x1a\v\n" +
|
||
"\tColorInfo\"4\n" +
|
||
"\x13NotifyUserEnterRoom\x12\x1d\n" +
|
||
"\x04User\x18\x01 \x03(\v2\t.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{
|
||
(*ReqMatchRoom)(nil), // 0: ReqMatchRoom
|
||
(*RspMatchRoom)(nil), // 1: RspMatchRoom
|
||
(*NotifyUserEnterRoom)(nil), // 2: NotifyUserEnterRoom
|
||
(*RspMatchRoom_ColorInfo)(nil), // 3: RspMatchRoom.ColorInfo
|
||
(ServiceTypeId)(0), // 4: ServiceTypeId
|
||
(ErrCode)(0), // 5: ErrCode
|
||
(*GameUser)(nil), // 6: GameUser
|
||
}
|
||
var file_match_proto_depIdxs = []int32{
|
||
4, // 0: ReqMatchRoom.gameId:type_name -> ServiceTypeId
|
||
5, // 1: RspMatchRoom.code:type_name -> ErrCode
|
||
4, // 2: RspMatchRoom.gameId:type_name -> ServiceTypeId
|
||
6, // 3: RspMatchRoom.User:type_name -> GameUser
|
||
3, // 4: RspMatchRoom.colorInfo:type_name -> RspMatchRoom.ColorInfo
|
||
6, // 5: NotifyUserEnterRoom.User:type_name -> 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
|
||
}
|
||
|
||
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()
|
||
file_service_proto_init()
|
||
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
|
||
}
|