go_dreamfactory/pb/mainline_db.pb.go
2022-12-31 11:48:36 +08:00

267 lines
8.8 KiB
Go

// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.28.0
// protoc v3.20.0
// source: mainline/mainline_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 AwaredType int32
const (
AwaredType_TypeNil AwaredType = 0
AwaredType_TypeAvailable AwaredType = 1 // 可领取
AwaredType_TypeReceived AwaredType = 2 // 已领取
)
// Enum value maps for AwaredType.
var (
AwaredType_name = map[int32]string{
0: "TypeNil",
1: "TypeAvailable",
2: "TypeReceived",
}
AwaredType_value = map[string]int32{
"TypeNil": 0,
"TypeAvailable": 1,
"TypeReceived": 2,
}
)
func (x AwaredType) Enum() *AwaredType {
p := new(AwaredType)
*p = x
return p
}
func (x AwaredType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (AwaredType) Descriptor() protoreflect.EnumDescriptor {
return file_mainline_mainline_db_proto_enumTypes[0].Descriptor()
}
func (AwaredType) Type() protoreflect.EnumType {
return &file_mainline_mainline_db_proto_enumTypes[0]
}
func (x AwaredType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use AwaredType.Descriptor instead.
func (AwaredType) EnumDescriptor() ([]byte, []int) {
return file_mainline_mainline_db_proto_rawDescGZIP(), []int{0}
}
type DBMainline 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" bson:"uid"` //用户ID
ChapterId int32 `protobuf:"varint,3,opt,name=chapterId,proto3" json:"chapterId" bson:"chapterId"` //章节ID
MainlineId int32 `protobuf:"varint,4,opt,name=mainlineId,proto3" json:"mainlineId" bson:"mainlineId"` //主线关卡ID
AwaredID AwaredType `protobuf:"varint,5,opt,name=awaredID,proto3,enum=AwaredType" json:"awaredID" bson:"awaredID"` //是否领奖(设置int是考虑后续扩展有多个宝箱情况)
BranchID []int32 `protobuf:"varint,6,rep,packed,name=branchID,proto3" json:"branchID" bson:"branchID"` // 记录所有通关的关卡数据
Intensity int32 `protobuf:"varint,7,opt,name=intensity,proto3" json:"intensity"` // 难度
Ps int32 `protobuf:"varint,8,opt,name=ps,proto3" json:"ps"` // 预扣的体力
}
func (x *DBMainline) Reset() {
*x = DBMainline{}
if protoimpl.UnsafeEnabled {
mi := &file_mainline_mainline_db_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *DBMainline) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DBMainline) ProtoMessage() {}
func (x *DBMainline) ProtoReflect() protoreflect.Message {
mi := &file_mainline_mainline_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 DBMainline.ProtoReflect.Descriptor instead.
func (*DBMainline) Descriptor() ([]byte, []int) {
return file_mainline_mainline_db_proto_rawDescGZIP(), []int{0}
}
func (x *DBMainline) GetId() string {
if x != nil {
return x.Id
}
return ""
}
func (x *DBMainline) GetUid() string {
if x != nil {
return x.Uid
}
return ""
}
func (x *DBMainline) GetChapterId() int32 {
if x != nil {
return x.ChapterId
}
return 0
}
func (x *DBMainline) GetMainlineId() int32 {
if x != nil {
return x.MainlineId
}
return 0
}
func (x *DBMainline) GetAwaredID() AwaredType {
if x != nil {
return x.AwaredID
}
return AwaredType_TypeNil
}
func (x *DBMainline) GetBranchID() []int32 {
if x != nil {
return x.BranchID
}
return nil
}
func (x *DBMainline) GetIntensity() int32 {
if x != nil {
return x.Intensity
}
return 0
}
func (x *DBMainline) GetPs() int32 {
if x != nil {
return x.Ps
}
return 0
}
var File_mainline_mainline_db_proto protoreflect.FileDescriptor
var file_mainline_mainline_db_proto_rawDesc = []byte{
0x0a, 0x1a, 0x6d, 0x61, 0x69, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x2f, 0x6d, 0x61, 0x69, 0x6e, 0x6c,
0x69, 0x6e, 0x65, 0x5f, 0x64, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xdf, 0x01, 0x0a,
0x0a, 0x44, 0x42, 0x4d, 0x61, 0x69, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 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, 0x1c, 0x0a,
0x09, 0x63, 0x68, 0x61, 0x70, 0x74, 0x65, 0x72, 0x49, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05,
0x52, 0x09, 0x63, 0x68, 0x61, 0x70, 0x74, 0x65, 0x72, 0x49, 0x64, 0x12, 0x1e, 0x0a, 0x0a, 0x6d,
0x61, 0x69, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x49, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52,
0x0a, 0x6d, 0x61, 0x69, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x49, 0x64, 0x12, 0x27, 0x0a, 0x08, 0x61,
0x77, 0x61, 0x72, 0x65, 0x64, 0x49, 0x44, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0b, 0x2e,
0x41, 0x77, 0x61, 0x72, 0x65, 0x64, 0x54, 0x79, 0x70, 0x65, 0x52, 0x08, 0x61, 0x77, 0x61, 0x72,
0x65, 0x64, 0x49, 0x44, 0x12, 0x1a, 0x0a, 0x08, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x49, 0x44,
0x18, 0x06, 0x20, 0x03, 0x28, 0x05, 0x52, 0x08, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x49, 0x44,
0x12, 0x1c, 0x0a, 0x09, 0x69, 0x6e, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x74, 0x79, 0x18, 0x07, 0x20,
0x01, 0x28, 0x05, 0x52, 0x09, 0x69, 0x6e, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x74, 0x79, 0x12, 0x0e,
0x0a, 0x02, 0x70, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x05, 0x52, 0x02, 0x70, 0x73, 0x2a, 0x3e,
0x0a, 0x0a, 0x41, 0x77, 0x61, 0x72, 0x65, 0x64, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0b, 0x0a, 0x07,
0x54, 0x79, 0x70, 0x65, 0x4e, 0x69, 0x6c, 0x10, 0x00, 0x12, 0x11, 0x0a, 0x0d, 0x54, 0x79, 0x70,
0x65, 0x41, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x10, 0x01, 0x12, 0x10, 0x0a, 0x0c,
0x54, 0x79, 0x70, 0x65, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x10, 0x02, 0x42, 0x06,
0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_mainline_mainline_db_proto_rawDescOnce sync.Once
file_mainline_mainline_db_proto_rawDescData = file_mainline_mainline_db_proto_rawDesc
)
func file_mainline_mainline_db_proto_rawDescGZIP() []byte {
file_mainline_mainline_db_proto_rawDescOnce.Do(func() {
file_mainline_mainline_db_proto_rawDescData = protoimpl.X.CompressGZIP(file_mainline_mainline_db_proto_rawDescData)
})
return file_mainline_mainline_db_proto_rawDescData
}
var file_mainline_mainline_db_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_mainline_mainline_db_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_mainline_mainline_db_proto_goTypes = []interface{}{
(AwaredType)(0), // 0: AwaredType
(*DBMainline)(nil), // 1: DBMainline
}
var file_mainline_mainline_db_proto_depIdxs = []int32{
0, // 0: DBMainline.awaredID:type_name -> AwaredType
1, // [1:1] is the sub-list for method output_type
1, // [1:1] is the sub-list for method input_type
1, // [1:1] is the sub-list for extension type_name
1, // [1:1] is the sub-list for extension extendee
0, // [0:1] is the sub-list for field type_name
}
func init() { file_mainline_mainline_db_proto_init() }
func file_mainline_mainline_db_proto_init() {
if File_mainline_mainline_db_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_mainline_mainline_db_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*DBMainline); 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_mainline_mainline_db_proto_rawDesc,
NumEnums: 1,
NumMessages: 1,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_mainline_mainline_db_proto_goTypes,
DependencyIndexes: file_mainline_mainline_db_proto_depIdxs,
EnumInfos: file_mainline_mainline_db_proto_enumTypes,
MessageInfos: file_mainline_mainline_db_proto_msgTypes,
}.Build()
File_mainline_mainline_db_proto = out.File
file_mainline_mainline_db_proto_rawDesc = nil
file_mainline_mainline_db_proto_goTypes = nil
file_mainline_mainline_db_proto_depIdxs = nil
}