go_dreamfactory/pb/gameinvite_db.pb.go
2023-11-16 15:29:15 +08:00

367 lines
13 KiB
Go

// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.28.0
// protoc v3.20.0
// source: gameinvite/gameinvite_db.proto
package pb
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
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 GameInviteQiecuoInvite struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Uid string `protobuf:"bytes,1,opt,name=uid,proto3" json:"uid"`
Timestamp int64 `protobuf:"varint,2,opt,name=timestamp,proto3" json:"timestamp"`
}
func (x *GameInviteQiecuoInvite) Reset() {
*x = GameInviteQiecuoInvite{}
if protoimpl.UnsafeEnabled {
mi := &file_gameinvite_gameinvite_db_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GameInviteQiecuoInvite) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GameInviteQiecuoInvite) ProtoMessage() {}
func (x *GameInviteQiecuoInvite) ProtoReflect() protoreflect.Message {
mi := &file_gameinvite_gameinvite_db_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 GameInviteQiecuoInvite.ProtoReflect.Descriptor instead.
func (*GameInviteQiecuoInvite) Descriptor() ([]byte, []int) {
return file_gameinvite_gameinvite_db_proto_rawDescGZIP(), []int{0}
}
func (x *GameInviteQiecuoInvite) GetUid() string {
if x != nil {
return x.Uid
}
return ""
}
func (x *GameInviteQiecuoInvite) GetTimestamp() int64 {
if x != nil {
return x.Timestamp
}
return 0
}
type GameInviteData struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Targets []*GameInviteQiecuoInvite `protobuf:"bytes,1,rep,name=targets,proto3" json:"targets"` //目标
Member []string `protobuf:"bytes,2,rep,name=member,proto3" json:"member"` //接受方id
Rules string `protobuf:"bytes,3,opt,name=rules,proto3" json:"rules"` //规则json
}
func (x *GameInviteData) Reset() {
*x = GameInviteData{}
if protoimpl.UnsafeEnabled {
mi := &file_gameinvite_gameinvite_db_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GameInviteData) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GameInviteData) ProtoMessage() {}
func (x *GameInviteData) ProtoReflect() protoreflect.Message {
mi := &file_gameinvite_gameinvite_db_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 GameInviteData.ProtoReflect.Descriptor instead.
func (*GameInviteData) Descriptor() ([]byte, []int) {
return file_gameinvite_gameinvite_db_proto_rawDescGZIP(), []int{1}
}
func (x *GameInviteData) GetTargets() []*GameInviteQiecuoInvite {
if x != nil {
return x.Targets
}
return nil
}
func (x *GameInviteData) GetMember() []string {
if x != nil {
return x.Member
}
return nil
}
func (x *GameInviteData) GetRules() string {
if x != nil {
return x.Rules
}
return ""
}
//切磋请求记录
type GameInviteQiecuoRecord struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id" bson:"_id"` //id
Uid string `protobuf:"bytes,2,opt,name=uid,proto3" json:"uid"` //发起人id
Status int32 `protobuf:"varint,3,opt,name=status,proto3" json:"status"` //0邀请中 1战斗中
Gtype int32 `protobuf:"varint,4,opt,name=gtype,proto3" json:"gtype"` //当前游戏类型 0 武馆切磋 3 猜颜色
Roomid string `protobuf:"bytes,5,opt,name=roomid,proto3" json:"roomid"` //房间id
Spath string `protobuf:"bytes,6,opt,name=spath,proto3" json:"spath"` //服务地址
Invite map[int32]*GameInviteData `protobuf:"bytes,7,rep,name=Invite,proto3" json:"Invite" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` //邀请数据
}
func (x *GameInviteQiecuoRecord) Reset() {
*x = GameInviteQiecuoRecord{}
if protoimpl.UnsafeEnabled {
mi := &file_gameinvite_gameinvite_db_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GameInviteQiecuoRecord) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GameInviteQiecuoRecord) ProtoMessage() {}
func (x *GameInviteQiecuoRecord) ProtoReflect() protoreflect.Message {
mi := &file_gameinvite_gameinvite_db_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 GameInviteQiecuoRecord.ProtoReflect.Descriptor instead.
func (*GameInviteQiecuoRecord) Descriptor() ([]byte, []int) {
return file_gameinvite_gameinvite_db_proto_rawDescGZIP(), []int{2}
}
func (x *GameInviteQiecuoRecord) GetId() string {
if x != nil {
return x.Id
}
return ""
}
func (x *GameInviteQiecuoRecord) GetUid() string {
if x != nil {
return x.Uid
}
return ""
}
func (x *GameInviteQiecuoRecord) GetStatus() int32 {
if x != nil {
return x.Status
}
return 0
}
func (x *GameInviteQiecuoRecord) GetGtype() int32 {
if x != nil {
return x.Gtype
}
return 0
}
func (x *GameInviteQiecuoRecord) GetRoomid() string {
if x != nil {
return x.Roomid
}
return ""
}
func (x *GameInviteQiecuoRecord) GetSpath() string {
if x != nil {
return x.Spath
}
return ""
}
func (x *GameInviteQiecuoRecord) GetInvite() map[int32]*GameInviteData {
if x != nil {
return x.Invite
}
return nil
}
var File_gameinvite_gameinvite_db_proto protoreflect.FileDescriptor
var file_gameinvite_gameinvite_db_proto_rawDesc = []byte{
0x0a, 0x1e, 0x67, 0x61, 0x6d, 0x65, 0x69, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x2f, 0x67, 0x61, 0x6d,
0x65, 0x69, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x5f, 0x64, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x22, 0x48, 0x0a, 0x16, 0x47, 0x61, 0x6d, 0x65, 0x49, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x51, 0x69,
0x65, 0x63, 0x75, 0x6f, 0x49, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69,
0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x1c, 0x0a, 0x09,
0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52,
0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x22, 0x71, 0x0a, 0x0e, 0x47, 0x61,
0x6d, 0x65, 0x49, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x12, 0x31, 0x0a, 0x07,
0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e,
0x47, 0x61, 0x6d, 0x65, 0x49, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x51, 0x69, 0x65, 0x63, 0x75, 0x6f,
0x49, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x52, 0x07, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x73, 0x12,
0x16, 0x0a, 0x06, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52,
0x06, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x72, 0x75, 0x6c, 0x65, 0x73,
0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x22, 0x9f, 0x02,
0x0a, 0x16, 0x47, 0x61, 0x6d, 0x65, 0x49, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x51, 0x69, 0x65, 0x63,
0x75, 0x6f, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01,
0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18,
0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74,
0x61, 0x74, 0x75, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74,
0x75, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x67, 0x74, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28,
0x05, 0x52, 0x05, 0x67, 0x74, 0x79, 0x70, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x6f, 0x6f, 0x6d,
0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, 0x6f, 0x6f, 0x6d, 0x69, 0x64,
0x12, 0x14, 0x0a, 0x05, 0x73, 0x70, 0x61, 0x74, 0x68, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52,
0x05, 0x73, 0x70, 0x61, 0x74, 0x68, 0x12, 0x3b, 0x0a, 0x06, 0x49, 0x6e, 0x76, 0x69, 0x74, 0x65,
0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x47, 0x61, 0x6d, 0x65, 0x49, 0x6e, 0x76,
0x69, 0x74, 0x65, 0x51, 0x69, 0x65, 0x63, 0x75, 0x6f, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x2e,
0x49, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x49, 0x6e, 0x76,
0x69, 0x74, 0x65, 0x1a, 0x4a, 0x0a, 0x0b, 0x49, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x45, 0x6e, 0x74,
0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52,
0x03, 0x6b, 0x65, 0x79, 0x12, 0x25, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20,
0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x47, 0x61, 0x6d, 0x65, 0x49, 0x6e, 0x76, 0x69, 0x74, 0x65,
0x44, 0x61, 0x74, 0x61, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x42,
0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_gameinvite_gameinvite_db_proto_rawDescOnce sync.Once
file_gameinvite_gameinvite_db_proto_rawDescData = file_gameinvite_gameinvite_db_proto_rawDesc
)
func file_gameinvite_gameinvite_db_proto_rawDescGZIP() []byte {
file_gameinvite_gameinvite_db_proto_rawDescOnce.Do(func() {
file_gameinvite_gameinvite_db_proto_rawDescData = protoimpl.X.CompressGZIP(file_gameinvite_gameinvite_db_proto_rawDescData)
})
return file_gameinvite_gameinvite_db_proto_rawDescData
}
var file_gameinvite_gameinvite_db_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
var file_gameinvite_gameinvite_db_proto_goTypes = []interface{}{
(*GameInviteQiecuoInvite)(nil), // 0: GameInviteQiecuoInvite
(*GameInviteData)(nil), // 1: GameInviteData
(*GameInviteQiecuoRecord)(nil), // 2: GameInviteQiecuoRecord
nil, // 3: GameInviteQiecuoRecord.InviteEntry
}
var file_gameinvite_gameinvite_db_proto_depIdxs = []int32{
0, // 0: GameInviteData.targets:type_name -> GameInviteQiecuoInvite
3, // 1: GameInviteQiecuoRecord.Invite:type_name -> GameInviteQiecuoRecord.InviteEntry
1, // 2: GameInviteQiecuoRecord.InviteEntry.value:type_name -> GameInviteData
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_gameinvite_gameinvite_db_proto_init() }
func file_gameinvite_gameinvite_db_proto_init() {
if File_gameinvite_gameinvite_db_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_gameinvite_gameinvite_db_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*GameInviteQiecuoInvite); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_gameinvite_gameinvite_db_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*GameInviteData); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_gameinvite_gameinvite_db_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*GameInviteQiecuoRecord); 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_gameinvite_gameinvite_db_proto_rawDesc,
NumEnums: 0,
NumMessages: 4,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_gameinvite_gameinvite_db_proto_goTypes,
DependencyIndexes: file_gameinvite_gameinvite_db_proto_depIdxs,
MessageInfos: file_gameinvite_gameinvite_db_proto_msgTypes,
}.Build()
File_gameinvite_gameinvite_db_proto = out.File
file_gameinvite_gameinvite_db_proto_rawDesc = nil
file_gameinvite_gameinvite_db_proto_goTypes = nil
file_gameinvite_gameinvite_db_proto_depIdxs = nil
}