go_dreamfactory/pb/realarena_db.pb.go
2024-03-08 10:25:46 +08:00

481 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: realarena/realarena_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 DBRealArena struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id" bson:"_id"`
Uid string `protobuf:"bytes,2,opt,name=uid,proto3" json:"uid"` //uid
Uinfo *BaseUserInfo `protobuf:"bytes,3,opt,name=uinfo,proto3" json:"uinfo"` //用户基础
Rank int32 `protobuf:"varint,4,opt,name=rank,proto3" json:"rank"` //排名
Dan int32 `protobuf:"varint,5,opt,name=dan,proto3" json:"dan"` //段位
Integral int32 `protobuf:"varint,6,opt,name=integral,proto3" json:"integral"` //积分
Danaward map[int32]int32 `protobuf:"bytes,7,rep,name=danaward,proto3" json:"danaward" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` //段位奖励
State int32 `protobuf:"varint,8,opt,name=state,proto3" json:"state"` //队伍状态 0 空闲 1匹配中 2游戏中
Roompath string `protobuf:"bytes,9,opt,name=roompath,proto3" json:"roompath"` //房间地址
Roomid string `protobuf:"bytes,10,opt,name=roomid,proto3" json:"roomid"` //房间id
}
func (x *DBRealArena) Reset() {
*x = DBRealArena{}
if protoimpl.UnsafeEnabled {
mi := &file_realarena_realarena_db_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *DBRealArena) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DBRealArena) ProtoMessage() {}
func (x *DBRealArena) ProtoReflect() protoreflect.Message {
mi := &file_realarena_realarena_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 DBRealArena.ProtoReflect.Descriptor instead.
func (*DBRealArena) Descriptor() ([]byte, []int) {
return file_realarena_realarena_db_proto_rawDescGZIP(), []int{0}
}
func (x *DBRealArena) GetId() string {
if x != nil {
return x.Id
}
return ""
}
func (x *DBRealArena) GetUid() string {
if x != nil {
return x.Uid
}
return ""
}
func (x *DBRealArena) GetUinfo() *BaseUserInfo {
if x != nil {
return x.Uinfo
}
return nil
}
func (x *DBRealArena) GetRank() int32 {
if x != nil {
return x.Rank
}
return 0
}
func (x *DBRealArena) GetDan() int32 {
if x != nil {
return x.Dan
}
return 0
}
func (x *DBRealArena) GetIntegral() int32 {
if x != nil {
return x.Integral
}
return 0
}
func (x *DBRealArena) GetDanaward() map[int32]int32 {
if x != nil {
return x.Danaward
}
return nil
}
func (x *DBRealArena) GetState() int32 {
if x != nil {
return x.State
}
return 0
}
func (x *DBRealArena) GetRoompath() string {
if x != nil {
return x.Roompath
}
return ""
}
func (x *DBRealArena) GetRoomid() string {
if x != nil {
return x.Roomid
}
return ""
}
//队员信息
type DBRealArenaMember struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
User *BaseUserInfo `protobuf:"bytes,1,opt,name=user,proto3" json:"user"` //发起者信息
Rank int32 `protobuf:"varint,2,opt,name=rank,proto3" json:"rank"` //排名
Dan int32 `protobuf:"varint,3,opt,name=dan,proto3" json:"dan"` //段位
Integral int32 `protobuf:"varint,4,opt,name=integral,proto3" json:"integral"` //积分
Heros []string `protobuf:"bytes,5,rep,name=heros,proto3" json:"heros"` //队伍
Disable int32 `protobuf:"varint,6,opt,name=disable,proto3" json:"disable"` //禁用
Leader int32 `protobuf:"varint,7,opt,name=leader,proto3" json:"leader"` //队长
Addintegral int32 `protobuf:"varint,8,opt,name=addintegral,proto3" json:"addintegral"` //当局获得积分
Award []*UserAtno `protobuf:"bytes,9,rep,name=award,proto3" json:"award"` //奖励
}
func (x *DBRealArenaMember) Reset() {
*x = DBRealArenaMember{}
if protoimpl.UnsafeEnabled {
mi := &file_realarena_realarena_db_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *DBRealArenaMember) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DBRealArenaMember) ProtoMessage() {}
func (x *DBRealArenaMember) ProtoReflect() protoreflect.Message {
mi := &file_realarena_realarena_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 DBRealArenaMember.ProtoReflect.Descriptor instead.
func (*DBRealArenaMember) Descriptor() ([]byte, []int) {
return file_realarena_realarena_db_proto_rawDescGZIP(), []int{1}
}
func (x *DBRealArenaMember) GetUser() *BaseUserInfo {
if x != nil {
return x.User
}
return nil
}
func (x *DBRealArenaMember) GetRank() int32 {
if x != nil {
return x.Rank
}
return 0
}
func (x *DBRealArenaMember) GetDan() int32 {
if x != nil {
return x.Dan
}
return 0
}
func (x *DBRealArenaMember) GetIntegral() int32 {
if x != nil {
return x.Integral
}
return 0
}
func (x *DBRealArenaMember) GetHeros() []string {
if x != nil {
return x.Heros
}
return nil
}
func (x *DBRealArenaMember) GetDisable() int32 {
if x != nil {
return x.Disable
}
return 0
}
func (x *DBRealArenaMember) GetLeader() int32 {
if x != nil {
return x.Leader
}
return 0
}
func (x *DBRealArenaMember) GetAddintegral() int32 {
if x != nil {
return x.Addintegral
}
return 0
}
func (x *DBRealArenaMember) GetAward() []*UserAtno {
if x != nil {
return x.Award
}
return nil
}
//竞技场比赛对象
type DBRealArenaRace struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id" bson:"_id"`
ServicePath string `protobuf:"bytes,2,opt,name=servicePath,proto3" json:"servicePath"` //比赛所在服务
Red *DBRealArenaMember `protobuf:"bytes,3,opt,name=red,proto3" json:"red"`
Bule *DBRealArenaMember `protobuf:"bytes,4,opt,name=bule,proto3" json:"bule"`
}
func (x *DBRealArenaRace) Reset() {
*x = DBRealArenaRace{}
if protoimpl.UnsafeEnabled {
mi := &file_realarena_realarena_db_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *DBRealArenaRace) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DBRealArenaRace) ProtoMessage() {}
func (x *DBRealArenaRace) ProtoReflect() protoreflect.Message {
mi := &file_realarena_realarena_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 DBRealArenaRace.ProtoReflect.Descriptor instead.
func (*DBRealArenaRace) Descriptor() ([]byte, []int) {
return file_realarena_realarena_db_proto_rawDescGZIP(), []int{2}
}
func (x *DBRealArenaRace) GetId() string {
if x != nil {
return x.Id
}
return ""
}
func (x *DBRealArenaRace) GetServicePath() string {
if x != nil {
return x.ServicePath
}
return ""
}
func (x *DBRealArenaRace) GetRed() *DBRealArenaMember {
if x != nil {
return x.Red
}
return nil
}
func (x *DBRealArenaRace) GetBule() *DBRealArenaMember {
if x != nil {
return x.Bule
}
return nil
}
var File_realarena_realarena_db_proto protoreflect.FileDescriptor
var file_realarena_realarena_db_proto_rawDesc = []byte{
0x0a, 0x1c, 0x72, 0x65, 0x61, 0x6c, 0x61, 0x72, 0x65, 0x6e, 0x61, 0x2f, 0x72, 0x65, 0x61, 0x6c,
0x61, 0x72, 0x65, 0x6e, 0x61, 0x5f, 0x64, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0a,
0x63, 0x6f, 0x6d, 0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xd5, 0x02, 0x0a, 0x0b, 0x44,
0x42, 0x52, 0x65, 0x61, 0x6c, 0x41, 0x72, 0x65, 0x6e, 0x61, 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, 0x23, 0x0a, 0x05,
0x75, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x42, 0x61,
0x73, 0x65, 0x55, 0x73, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x05, 0x75, 0x69, 0x6e, 0x66,
0x6f, 0x12, 0x12, 0x0a, 0x04, 0x72, 0x61, 0x6e, 0x6b, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52,
0x04, 0x72, 0x61, 0x6e, 0x6b, 0x12, 0x10, 0x0a, 0x03, 0x64, 0x61, 0x6e, 0x18, 0x05, 0x20, 0x01,
0x28, 0x05, 0x52, 0x03, 0x64, 0x61, 0x6e, 0x12, 0x1a, 0x0a, 0x08, 0x69, 0x6e, 0x74, 0x65, 0x67,
0x72, 0x61, 0x6c, 0x18, 0x06, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x69, 0x6e, 0x74, 0x65, 0x67,
0x72, 0x61, 0x6c, 0x12, 0x36, 0x0a, 0x08, 0x64, 0x61, 0x6e, 0x61, 0x77, 0x61, 0x72, 0x64, 0x18,
0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x44, 0x42, 0x52, 0x65, 0x61, 0x6c, 0x41, 0x72,
0x65, 0x6e, 0x61, 0x2e, 0x44, 0x61, 0x6e, 0x61, 0x77, 0x61, 0x72, 0x64, 0x45, 0x6e, 0x74, 0x72,
0x79, 0x52, 0x08, 0x64, 0x61, 0x6e, 0x61, 0x77, 0x61, 0x72, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x73,
0x74, 0x61, 0x74, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74,
0x65, 0x12, 0x1a, 0x0a, 0x08, 0x72, 0x6f, 0x6f, 0x6d, 0x70, 0x61, 0x74, 0x68, 0x18, 0x09, 0x20,
0x01, 0x28, 0x09, 0x52, 0x08, 0x72, 0x6f, 0x6f, 0x6d, 0x70, 0x61, 0x74, 0x68, 0x12, 0x16, 0x0a,
0x06, 0x72, 0x6f, 0x6f, 0x6d, 0x69, 0x64, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x72,
0x6f, 0x6f, 0x6d, 0x69, 0x64, 0x1a, 0x3b, 0x0a, 0x0d, 0x44, 0x61, 0x6e, 0x61, 0x77, 0x61, 0x72,
0x64, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20,
0x01, 0x28, 0x05, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75,
0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02,
0x38, 0x01, 0x22, 0x83, 0x02, 0x0a, 0x11, 0x44, 0x42, 0x52, 0x65, 0x61, 0x6c, 0x41, 0x72, 0x65,
0x6e, 0x61, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x21, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72,
0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x42, 0x61, 0x73, 0x65, 0x55, 0x73, 0x65,
0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x72,
0x61, 0x6e, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x72, 0x61, 0x6e, 0x6b, 0x12,
0x10, 0x0a, 0x03, 0x64, 0x61, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x64, 0x61,
0x6e, 0x12, 0x1a, 0x0a, 0x08, 0x69, 0x6e, 0x74, 0x65, 0x67, 0x72, 0x61, 0x6c, 0x18, 0x04, 0x20,
0x01, 0x28, 0x05, 0x52, 0x08, 0x69, 0x6e, 0x74, 0x65, 0x67, 0x72, 0x61, 0x6c, 0x12, 0x14, 0x0a,
0x05, 0x68, 0x65, 0x72, 0x6f, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x68, 0x65,
0x72, 0x6f, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x06,
0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x16, 0x0a,
0x06, 0x6c, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x07, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x6c,
0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x20, 0x0a, 0x0b, 0x61, 0x64, 0x64, 0x69, 0x6e, 0x74, 0x65,
0x67, 0x72, 0x61, 0x6c, 0x18, 0x08, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0b, 0x61, 0x64, 0x64, 0x69,
0x6e, 0x74, 0x65, 0x67, 0x72, 0x61, 0x6c, 0x12, 0x1f, 0x0a, 0x05, 0x61, 0x77, 0x61, 0x72, 0x64,
0x18, 0x09, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x09, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x41, 0x74, 0x6e,
0x6f, 0x52, 0x05, 0x61, 0x77, 0x61, 0x72, 0x64, 0x22, 0x91, 0x01, 0x0a, 0x0f, 0x44, 0x42, 0x52,
0x65, 0x61, 0x6c, 0x41, 0x72, 0x65, 0x6e, 0x61, 0x52, 0x61, 0x63, 0x65, 0x12, 0x0e, 0x0a, 0x02,
0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x20, 0x0a, 0x0b,
0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x50, 0x61, 0x74, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28,
0x09, 0x52, 0x0b, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x50, 0x61, 0x74, 0x68, 0x12, 0x24,
0x0a, 0x03, 0x72, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x44, 0x42,
0x52, 0x65, 0x61, 0x6c, 0x41, 0x72, 0x65, 0x6e, 0x61, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x52,
0x03, 0x72, 0x65, 0x64, 0x12, 0x26, 0x0a, 0x04, 0x62, 0x75, 0x6c, 0x65, 0x18, 0x04, 0x20, 0x01,
0x28, 0x0b, 0x32, 0x12, 0x2e, 0x44, 0x42, 0x52, 0x65, 0x61, 0x6c, 0x41, 0x72, 0x65, 0x6e, 0x61,
0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x52, 0x04, 0x62, 0x75, 0x6c, 0x65, 0x42, 0x06, 0x5a, 0x04,
0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_realarena_realarena_db_proto_rawDescOnce sync.Once
file_realarena_realarena_db_proto_rawDescData = file_realarena_realarena_db_proto_rawDesc
)
func file_realarena_realarena_db_proto_rawDescGZIP() []byte {
file_realarena_realarena_db_proto_rawDescOnce.Do(func() {
file_realarena_realarena_db_proto_rawDescData = protoimpl.X.CompressGZIP(file_realarena_realarena_db_proto_rawDescData)
})
return file_realarena_realarena_db_proto_rawDescData
}
var file_realarena_realarena_db_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
var file_realarena_realarena_db_proto_goTypes = []interface{}{
(*DBRealArena)(nil), // 0: DBRealArena
(*DBRealArenaMember)(nil), // 1: DBRealArenaMember
(*DBRealArenaRace)(nil), // 2: DBRealArenaRace
nil, // 3: DBRealArena.DanawardEntry
(*BaseUserInfo)(nil), // 4: BaseUserInfo
(*UserAtno)(nil), // 5: UserAtno
}
var file_realarena_realarena_db_proto_depIdxs = []int32{
4, // 0: DBRealArena.uinfo:type_name -> BaseUserInfo
3, // 1: DBRealArena.danaward:type_name -> DBRealArena.DanawardEntry
4, // 2: DBRealArenaMember.user:type_name -> BaseUserInfo
5, // 3: DBRealArenaMember.award:type_name -> UserAtno
1, // 4: DBRealArenaRace.red:type_name -> DBRealArenaMember
1, // 5: DBRealArenaRace.bule:type_name -> DBRealArenaMember
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_realarena_realarena_db_proto_init() }
func file_realarena_realarena_db_proto_init() {
if File_realarena_realarena_db_proto != nil {
return
}
file_comm_proto_init()
if !protoimpl.UnsafeEnabled {
file_realarena_realarena_db_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*DBRealArena); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_realarena_realarena_db_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*DBRealArenaMember); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_realarena_realarena_db_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*DBRealArenaRace); 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_realarena_realarena_db_proto_rawDesc,
NumEnums: 0,
NumMessages: 4,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_realarena_realarena_db_proto_goTypes,
DependencyIndexes: file_realarena_realarena_db_proto_depIdxs,
MessageInfos: file_realarena_realarena_db_proto_msgTypes,
}.Build()
File_realarena_realarena_db_proto = out.File
file_realarena_realarena_db_proto_rawDesc = nil
file_realarena_realarena_db_proto_goTypes = nil
file_realarena_realarena_db_proto_depIdxs = nil
}