// 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"` PlayType int32 `protobuf:"varint,1,opt,name=PlayType,proto3" json:"PlayType,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) GetPlayType() int32 { if x != nil { return x.PlayType } return 0 } 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=pb.ErrCode" json:"code,omitempty"` PlayType int32 `protobuf:"varint,2,opt,name=PlayType,proto3" json:"PlayType,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) GetPlayType() int32 { if x != nil { return x.PlayType } return 0 } 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\x12\x02pb\x1a\n" + "code.proto\x1a\n" + "user.proto\"F\n" + "\fReqMatchRoom\x12\x1a\n" + "\bPlayType\x18\x01 \x01(\x05R\bPlayType\x12\x1a\n" + "\bRoomType\x18\x02 \x01(\x05R\bRoomType\"\xd0\x01\n" + "\fRspMatchRoom\x12\x1f\n" + "\x04code\x18\x01 \x01(\x0e2\v.pb.ErrCodeR\x04code\x12\x1a\n" + "\bPlayType\x18\x02 \x01(\x05R\bPlayType\x12\x1a\n" + "\bRoomType\x18\x03 \x01(\x05R\bRoomType\x12 \n" + "\x04User\x18\x04 \x01(\v2\f.pb.GameUserR\x04User\x128\n" + "\tcolorInfo\x18\x14 \x01(\v2\x1a.pb.RspMatchRoom.ColorInfoR\tcolorInfo\x1a\v\n" + "\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{ (*ReqMatchRoom)(nil), // 0: pb.ReqMatchRoom (*RspMatchRoom)(nil), // 1: pb.RspMatchRoom (*NotifyUserEnterRoom)(nil), // 2: pb.NotifyUserEnterRoom (*RspMatchRoom_ColorInfo)(nil), // 3: pb.RspMatchRoom.ColorInfo (ErrCode)(0), // 4: pb.ErrCode (*GameUser)(nil), // 5: pb.GameUser } var file_match_proto_depIdxs = []int32{ 4, // 0: pb.RspMatchRoom.code:type_name -> pb.ErrCode 5, // 1: pb.RspMatchRoom.User:type_name -> pb.GameUser 3, // 2: pb.RspMatchRoom.colorInfo:type_name -> pb.RspMatchRoom.ColorInfo 5, // 3: pb.NotifyUserEnterRoom.User:type_name -> pb.GameUser 4, // [4:4] is the sub-list for method output_type 4, // [4:4] is the sub-list for method input_type 4, // [4:4] is the sub-list for extension type_name 4, // [4:4] is the sub-list for extension extendee 0, // [0:4] 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() 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 }