go_dreamfactory/pb/matchpool_msg.pb.go
2023-10-23 16:41:21 +08:00

521 lines
17 KiB
Go

// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.28.0
// protoc v3.20.0
// source: matchpool/matchpool_msg.proto
package pb
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
anypb "google.golang.org/protobuf/types/known/anypb"
reflect "reflect"
sync "sync"
)
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 JoinMatchPoolReq struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Poolname string `protobuf:"bytes,1,opt,name=poolname,proto3" json:"poolname"`
Uid string `protobuf:"bytes,2,opt,name=uid,proto3" json:"uid"`
Dan int32 `protobuf:"varint,3,opt,name=dan,proto3" json:"dan"` //段位
Data *anypb.Any `protobuf:"bytes,4,opt,name=data,proto3" json:"data"`
Matchnum int32 `protobuf:"varint,5,opt,name=matchnum,proto3" json:"matchnum"` //匹配人数
Timeout int32 `protobuf:"varint,6,opt,name=timeout,proto3" json:"timeout"` //秒级单位
}
func (x *JoinMatchPoolReq) Reset() {
*x = JoinMatchPoolReq{}
if protoimpl.UnsafeEnabled {
mi := &file_matchpool_matchpool_msg_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *JoinMatchPoolReq) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*JoinMatchPoolReq) ProtoMessage() {}
func (x *JoinMatchPoolReq) ProtoReflect() protoreflect.Message {
mi := &file_matchpool_matchpool_msg_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use JoinMatchPoolReq.ProtoReflect.Descriptor instead.
func (*JoinMatchPoolReq) Descriptor() ([]byte, []int) {
return file_matchpool_matchpool_msg_proto_rawDescGZIP(), []int{0}
}
func (x *JoinMatchPoolReq) GetPoolname() string {
if x != nil {
return x.Poolname
}
return ""
}
func (x *JoinMatchPoolReq) GetUid() string {
if x != nil {
return x.Uid
}
return ""
}
func (x *JoinMatchPoolReq) GetDan() int32 {
if x != nil {
return x.Dan
}
return 0
}
func (x *JoinMatchPoolReq) GetData() *anypb.Any {
if x != nil {
return x.Data
}
return nil
}
func (x *JoinMatchPoolReq) GetMatchnum() int32 {
if x != nil {
return x.Matchnum
}
return 0
}
func (x *JoinMatchPoolReq) GetTimeout() int32 {
if x != nil {
return x.Timeout
}
return 0
}
type JoinMatchPoolResp struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
}
func (x *JoinMatchPoolResp) Reset() {
*x = JoinMatchPoolResp{}
if protoimpl.UnsafeEnabled {
mi := &file_matchpool_matchpool_msg_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *JoinMatchPoolResp) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*JoinMatchPoolResp) ProtoMessage() {}
func (x *JoinMatchPoolResp) ProtoReflect() protoreflect.Message {
mi := &file_matchpool_matchpool_msg_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use JoinMatchPoolResp.ProtoReflect.Descriptor instead.
func (*JoinMatchPoolResp) Descriptor() ([]byte, []int) {
return file_matchpool_matchpool_msg_proto_rawDescGZIP(), []int{1}
}
//取消匹配请求
type CancelMatchReq struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Poolname string `protobuf:"bytes,1,opt,name=poolname,proto3" json:"poolname"`
Uid string `protobuf:"bytes,2,opt,name=uid,proto3" json:"uid"`
}
func (x *CancelMatchReq) Reset() {
*x = CancelMatchReq{}
if protoimpl.UnsafeEnabled {
mi := &file_matchpool_matchpool_msg_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *CancelMatchReq) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CancelMatchReq) ProtoMessage() {}
func (x *CancelMatchReq) ProtoReflect() protoreflect.Message {
mi := &file_matchpool_matchpool_msg_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use CancelMatchReq.ProtoReflect.Descriptor instead.
func (*CancelMatchReq) Descriptor() ([]byte, []int) {
return file_matchpool_matchpool_msg_proto_rawDescGZIP(), []int{2}
}
func (x *CancelMatchReq) GetPoolname() string {
if x != nil {
return x.Poolname
}
return ""
}
func (x *CancelMatchReq) GetUid() string {
if x != nil {
return x.Uid
}
return ""
}
type CancelMatchResp struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
}
func (x *CancelMatchResp) Reset() {
*x = CancelMatchResp{}
if protoimpl.UnsafeEnabled {
mi := &file_matchpool_matchpool_msg_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *CancelMatchResp) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CancelMatchResp) ProtoMessage() {}
func (x *CancelMatchResp) ProtoReflect() protoreflect.Message {
mi := &file_matchpool_matchpool_msg_proto_msgTypes[3]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use CancelMatchResp.ProtoReflect.Descriptor instead.
func (*CancelMatchResp) Descriptor() ([]byte, []int) {
return file_matchpool_matchpool_msg_proto_rawDescGZIP(), []int{3}
}
//成功匹配通知请求
type SuccMatchNoticeReq struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Poolname string `protobuf:"bytes,1,opt,name=poolname,proto3" json:"poolname"` //匹配池
Players map[string]*anypb.Any `protobuf:"bytes,2,rep,name=players,proto3" json:"players" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` //匹配玩家
Missnum int32 `protobuf:"varint,3,opt,name=missnum,proto3" json:"missnum"` //缺失人数
}
func (x *SuccMatchNoticeReq) Reset() {
*x = SuccMatchNoticeReq{}
if protoimpl.UnsafeEnabled {
mi := &file_matchpool_matchpool_msg_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *SuccMatchNoticeReq) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SuccMatchNoticeReq) ProtoMessage() {}
func (x *SuccMatchNoticeReq) ProtoReflect() protoreflect.Message {
mi := &file_matchpool_matchpool_msg_proto_msgTypes[4]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use SuccMatchNoticeReq.ProtoReflect.Descriptor instead.
func (*SuccMatchNoticeReq) Descriptor() ([]byte, []int) {
return file_matchpool_matchpool_msg_proto_rawDescGZIP(), []int{4}
}
func (x *SuccMatchNoticeReq) GetPoolname() string {
if x != nil {
return x.Poolname
}
return ""
}
func (x *SuccMatchNoticeReq) GetPlayers() map[string]*anypb.Any {
if x != nil {
return x.Players
}
return nil
}
func (x *SuccMatchNoticeReq) GetMissnum() int32 {
if x != nil {
return x.Missnum
}
return 0
}
type SuccMatchNoticeResp struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
}
func (x *SuccMatchNoticeResp) Reset() {
*x = SuccMatchNoticeResp{}
if protoimpl.UnsafeEnabled {
mi := &file_matchpool_matchpool_msg_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *SuccMatchNoticeResp) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SuccMatchNoticeResp) ProtoMessage() {}
func (x *SuccMatchNoticeResp) ProtoReflect() protoreflect.Message {
mi := &file_matchpool_matchpool_msg_proto_msgTypes[5]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use SuccMatchNoticeResp.ProtoReflect.Descriptor instead.
func (*SuccMatchNoticeResp) Descriptor() ([]byte, []int) {
return file_matchpool_matchpool_msg_proto_rawDescGZIP(), []int{5}
}
var File_matchpool_matchpool_msg_proto protoreflect.FileDescriptor
var file_matchpool_matchpool_msg_proto_rawDesc = []byte{
0x0a, 0x1d, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x70, 0x6f, 0x6f, 0x6c, 0x2f, 0x6d, 0x61, 0x74, 0x63,
0x68, 0x70, 0x6f, 0x6f, 0x6c, 0x5f, 0x6d, 0x73, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a,
0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66,
0x2f, 0x61, 0x6e, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xb2, 0x01, 0x0a, 0x10, 0x4a,
0x6f, 0x69, 0x6e, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x50, 0x6f, 0x6f, 0x6c, 0x52, 0x65, 0x71, 0x12,
0x1a, 0x0a, 0x08, 0x70, 0x6f, 0x6f, 0x6c, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
0x09, 0x52, 0x08, 0x70, 0x6f, 0x6f, 0x6c, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x75,
0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x10, 0x0a,
0x03, 0x64, 0x61, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x64, 0x61, 0x6e, 0x12,
0x28, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e,
0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e,
0x41, 0x6e, 0x79, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x1a, 0x0a, 0x08, 0x6d, 0x61, 0x74,
0x63, 0x68, 0x6e, 0x75, 0x6d, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x6d, 0x61, 0x74,
0x63, 0x68, 0x6e, 0x75, 0x6d, 0x12, 0x18, 0x0a, 0x07, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74,
0x18, 0x06, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x22,
0x13, 0x0a, 0x11, 0x4a, 0x6f, 0x69, 0x6e, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x50, 0x6f, 0x6f, 0x6c,
0x52, 0x65, 0x73, 0x70, 0x22, 0x3e, 0x0a, 0x0e, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x4d, 0x61,
0x74, 0x63, 0x68, 0x52, 0x65, 0x71, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x6f, 0x6f, 0x6c, 0x6e, 0x61,
0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x6f, 0x6f, 0x6c, 0x6e, 0x61,
0x6d, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,
0x03, 0x75, 0x69, 0x64, 0x22, 0x11, 0x0a, 0x0f, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x4d, 0x61,
0x74, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, 0x22, 0xd8, 0x01, 0x0a, 0x12, 0x53, 0x75, 0x63, 0x63,
0x4d, 0x61, 0x74, 0x63, 0x68, 0x4e, 0x6f, 0x74, 0x69, 0x63, 0x65, 0x52, 0x65, 0x71, 0x12, 0x1a,
0x0a, 0x08, 0x70, 0x6f, 0x6f, 0x6c, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
0x52, 0x08, 0x70, 0x6f, 0x6f, 0x6c, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x3a, 0x0a, 0x07, 0x70, 0x6c,
0x61, 0x79, 0x65, 0x72, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x53, 0x75,
0x63, 0x63, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x4e, 0x6f, 0x74, 0x69, 0x63, 0x65, 0x52, 0x65, 0x71,
0x2e, 0x50, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x07, 0x70,
0x6c, 0x61, 0x79, 0x65, 0x72, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x69, 0x73, 0x73, 0x6e, 0x75,
0x6d, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x6d, 0x69, 0x73, 0x73, 0x6e, 0x75, 0x6d,
0x1a, 0x50, 0x0a, 0x0c, 0x50, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79,
0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b,
0x65, 0x79, 0x12, 0x2a, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,
0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02,
0x38, 0x01, 0x22, 0x15, 0x0a, 0x13, 0x53, 0x75, 0x63, 0x63, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x4e,
0x6f, 0x74, 0x69, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70,
0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_matchpool_matchpool_msg_proto_rawDescOnce sync.Once
file_matchpool_matchpool_msg_proto_rawDescData = file_matchpool_matchpool_msg_proto_rawDesc
)
func file_matchpool_matchpool_msg_proto_rawDescGZIP() []byte {
file_matchpool_matchpool_msg_proto_rawDescOnce.Do(func() {
file_matchpool_matchpool_msg_proto_rawDescData = protoimpl.X.CompressGZIP(file_matchpool_matchpool_msg_proto_rawDescData)
})
return file_matchpool_matchpool_msg_proto_rawDescData
}
var file_matchpool_matchpool_msg_proto_msgTypes = make([]protoimpl.MessageInfo, 7)
var file_matchpool_matchpool_msg_proto_goTypes = []interface{}{
(*JoinMatchPoolReq)(nil), // 0: JoinMatchPoolReq
(*JoinMatchPoolResp)(nil), // 1: JoinMatchPoolResp
(*CancelMatchReq)(nil), // 2: CancelMatchReq
(*CancelMatchResp)(nil), // 3: CancelMatchResp
(*SuccMatchNoticeReq)(nil), // 4: SuccMatchNoticeReq
(*SuccMatchNoticeResp)(nil), // 5: SuccMatchNoticeResp
nil, // 6: SuccMatchNoticeReq.PlayersEntry
(*anypb.Any)(nil), // 7: google.protobuf.Any
}
var file_matchpool_matchpool_msg_proto_depIdxs = []int32{
7, // 0: JoinMatchPoolReq.data:type_name -> google.protobuf.Any
6, // 1: SuccMatchNoticeReq.players:type_name -> SuccMatchNoticeReq.PlayersEntry
7, // 2: SuccMatchNoticeReq.PlayersEntry.value:type_name -> google.protobuf.Any
3, // [3:3] is the sub-list for method output_type
3, // [3:3] is the sub-list for method input_type
3, // [3:3] is the sub-list for extension type_name
3, // [3:3] is the sub-list for extension extendee
0, // [0:3] is the sub-list for field type_name
}
func init() { file_matchpool_matchpool_msg_proto_init() }
func file_matchpool_matchpool_msg_proto_init() {
if File_matchpool_matchpool_msg_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_matchpool_matchpool_msg_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*JoinMatchPoolReq); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_matchpool_matchpool_msg_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*JoinMatchPoolResp); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_matchpool_matchpool_msg_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*CancelMatchReq); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_matchpool_matchpool_msg_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*CancelMatchResp); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_matchpool_matchpool_msg_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*SuccMatchNoticeReq); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_matchpool_matchpool_msg_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*SuccMatchNoticeResp); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_matchpool_matchpool_msg_proto_rawDesc,
NumEnums: 0,
NumMessages: 7,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_matchpool_matchpool_msg_proto_goTypes,
DependencyIndexes: file_matchpool_matchpool_msg_proto_depIdxs,
MessageInfos: file_matchpool_matchpool_msg_proto_msgTypes,
}.Build()
File_matchpool_matchpool_msg_proto = out.File
file_matchpool_matchpool_msg_proto_rawDesc = nil
file_matchpool_matchpool_msg_proto_goTypes = nil
file_matchpool_matchpool_msg_proto_depIdxs = nil
}