// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.28.0
// 	protoc        v3.20.0
// source: growtask/growtask_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 GrowtaskStatus int32

const (
	GrowtaskStatus_Lock    GrowtaskStatus = 0 //锁定
	GrowtaskStatus_Ongoing GrowtaskStatus = 1 //进行中
	GrowtaskStatus_Wait    GrowtaskStatus = 2 //待领奖
	GrowtaskStatus_Finish  GrowtaskStatus = 3 //完成
)

// Enum value maps for GrowtaskStatus.
var (
	GrowtaskStatus_name = map[int32]string{
		0: "Lock",
		1: "Ongoing",
		2: "Wait",
		3: "Finish",
	}
	GrowtaskStatus_value = map[string]int32{
		"Lock":    0,
		"Ongoing": 1,
		"Wait":    2,
		"Finish":  3,
	}
)

func (x GrowtaskStatus) Enum() *GrowtaskStatus {
	p := new(GrowtaskStatus)
	*p = x
	return p
}

func (x GrowtaskStatus) String() string {
	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}

func (GrowtaskStatus) Descriptor() protoreflect.EnumDescriptor {
	return file_growtask_growtask_db_proto_enumTypes[0].Descriptor()
}

func (GrowtaskStatus) Type() protoreflect.EnumType {
	return &file_growtask_growtask_db_proto_enumTypes[0]
}

func (x GrowtaskStatus) Number() protoreflect.EnumNumber {
	return protoreflect.EnumNumber(x)
}

// Deprecated: Use GrowtaskStatus.Descriptor instead.
func (GrowtaskStatus) EnumDescriptor() ([]byte, []int) {
	return file_growtask_growtask_db_proto_rawDescGZIP(), []int{0}
}

type DBGrowtask struct {
	state         protoimpl.MessageState
	sizeCache     protoimpl.SizeCache
	unknownFields protoimpl.UnknownFields

	Uid          string      `protobuf:"bytes,1,opt,name=uid,proto3" json:"uid" bson:"uid"`                            //用户ID
	InitTaskList []*Growtask `protobuf:"bytes,2,rep,name=initTaskList,proto3" json:"initTaskList" bson:"initTaskList"` //初级任务列表
	MidTaskList  []*Growtask `protobuf:"bytes,3,rep,name=midTaskList,proto3" json:"midTaskList" bson:"midTaskList"`    //中级任务列表
	HighTaskList []*Growtask `protobuf:"bytes,4,rep,name=highTaskList,proto3" json:"highTaskList" bson:"highTaskList"` //高级任务列表
	CurTaskType  int32       `protobuf:"varint,5,opt,name=curTaskType,proto3" json:"curTaskType" bson:"curTaskType"`   //进行中的任务类型
	AdvReceive   int32       `protobuf:"varint,6,opt,name=advReceive,proto3" json:"advReceive" bson:"advReceive"`      //已领取的进阶奖励ID
}

func (x *DBGrowtask) Reset() {
	*x = DBGrowtask{}
	if protoimpl.UnsafeEnabled {
		mi := &file_growtask_growtask_db_proto_msgTypes[0]
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		ms.StoreMessageInfo(mi)
	}
}

func (x *DBGrowtask) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*DBGrowtask) ProtoMessage() {}

func (x *DBGrowtask) ProtoReflect() protoreflect.Message {
	mi := &file_growtask_growtask_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 DBGrowtask.ProtoReflect.Descriptor instead.
func (*DBGrowtask) Descriptor() ([]byte, []int) {
	return file_growtask_growtask_db_proto_rawDescGZIP(), []int{0}
}

func (x *DBGrowtask) GetUid() string {
	if x != nil {
		return x.Uid
	}
	return ""
}

func (x *DBGrowtask) GetInitTaskList() []*Growtask {
	if x != nil {
		return x.InitTaskList
	}
	return nil
}

func (x *DBGrowtask) GetMidTaskList() []*Growtask {
	if x != nil {
		return x.MidTaskList
	}
	return nil
}

func (x *DBGrowtask) GetHighTaskList() []*Growtask {
	if x != nil {
		return x.HighTaskList
	}
	return nil
}

func (x *DBGrowtask) GetCurTaskType() int32 {
	if x != nil {
		return x.CurTaskType
	}
	return 0
}

func (x *DBGrowtask) GetAdvReceive() int32 {
	if x != nil {
		return x.AdvReceive
	}
	return 0
}

type Growtask struct {
	state         protoimpl.MessageState
	sizeCache     protoimpl.SizeCache
	unknownFields protoimpl.UnknownFields

	Id       int32          `protobuf:"varint,1,opt,name=id,proto3" json:"id" bson:"id"`                                 //配置ID
	TaskType int32          `protobuf:"varint,2,opt,name=taskType,proto3" json:"taskType" bson:"taskType"`               //任务类型
	Status   GrowtaskStatus `protobuf:"varint,3,opt,name=status,proto3,enum=GrowtaskStatus" json:"status" bson:"status"` //任务状态
	Fstask   int32          `protobuf:"varint,4,opt,name=fstask,proto3" json:"fstask" bson:"fstask"`                     //任务条件
	PreTask  int32          `protobuf:"varint,5,opt,name=preTask,proto3" json:"preTask" bson:"preTask"`                  //前置任务ID
}

func (x *Growtask) Reset() {
	*x = Growtask{}
	if protoimpl.UnsafeEnabled {
		mi := &file_growtask_growtask_db_proto_msgTypes[1]
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		ms.StoreMessageInfo(mi)
	}
}

func (x *Growtask) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*Growtask) ProtoMessage() {}

func (x *Growtask) ProtoReflect() protoreflect.Message {
	mi := &file_growtask_growtask_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 Growtask.ProtoReflect.Descriptor instead.
func (*Growtask) Descriptor() ([]byte, []int) {
	return file_growtask_growtask_db_proto_rawDescGZIP(), []int{1}
}

func (x *Growtask) GetId() int32 {
	if x != nil {
		return x.Id
	}
	return 0
}

func (x *Growtask) GetTaskType() int32 {
	if x != nil {
		return x.TaskType
	}
	return 0
}

func (x *Growtask) GetStatus() GrowtaskStatus {
	if x != nil {
		return x.Status
	}
	return GrowtaskStatus_Lock
}

func (x *Growtask) GetFstask() int32 {
	if x != nil {
		return x.Fstask
	}
	return 0
}

func (x *Growtask) GetPreTask() int32 {
	if x != nil {
		return x.PreTask
	}
	return 0
}

var File_growtask_growtask_db_proto protoreflect.FileDescriptor

var file_growtask_growtask_db_proto_rawDesc = []byte{
	0x0a, 0x1a, 0x67, 0x72, 0x6f, 0x77, 0x74, 0x61, 0x73, 0x6b, 0x2f, 0x67, 0x72, 0x6f, 0x77, 0x74,
	0x61, 0x73, 0x6b, 0x5f, 0x64, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xeb, 0x01, 0x0a,
	0x0a, 0x44, 0x42, 0x47, 0x72, 0x6f, 0x77, 0x74, 0x61, 0x73, 0x6b, 0x12, 0x10, 0x0a, 0x03, 0x75,
	0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x2d, 0x0a,
	0x0c, 0x69, 0x6e, 0x69, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x18, 0x02, 0x20,
	0x03, 0x28, 0x0b, 0x32, 0x09, 0x2e, 0x47, 0x72, 0x6f, 0x77, 0x74, 0x61, 0x73, 0x6b, 0x52, 0x0c,
	0x69, 0x6e, 0x69, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x2b, 0x0a, 0x0b,
	0x6d, 0x69, 0x64, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x18, 0x03, 0x20, 0x03, 0x28,
	0x0b, 0x32, 0x09, 0x2e, 0x47, 0x72, 0x6f, 0x77, 0x74, 0x61, 0x73, 0x6b, 0x52, 0x0b, 0x6d, 0x69,
	0x64, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x2d, 0x0a, 0x0c, 0x68, 0x69, 0x67,
	0x68, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32,
	0x09, 0x2e, 0x47, 0x72, 0x6f, 0x77, 0x74, 0x61, 0x73, 0x6b, 0x52, 0x0c, 0x68, 0x69, 0x67, 0x68,
	0x54, 0x61, 0x73, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x75, 0x72, 0x54,
	0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0b, 0x63,
	0x75, 0x72, 0x54, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x61, 0x64,
	0x76, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a,
	0x61, 0x64, 0x76, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x22, 0x91, 0x01, 0x0a, 0x08, 0x47,
	0x72, 0x6f, 0x77, 0x74, 0x61, 0x73, 0x6b, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20,
	0x01, 0x28, 0x05, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x74, 0x61, 0x73, 0x6b, 0x54,
	0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x74, 0x61, 0x73, 0x6b, 0x54,
	0x79, 0x70, 0x65, 0x12, 0x27, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x03, 0x20,
	0x01, 0x28, 0x0e, 0x32, 0x0f, 0x2e, 0x47, 0x72, 0x6f, 0x77, 0x74, 0x61, 0x73, 0x6b, 0x53, 0x74,
	0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x16, 0x0a, 0x06,
	0x66, 0x73, 0x74, 0x61, 0x73, 0x6b, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x66, 0x73,
	0x74, 0x61, 0x73, 0x6b, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x72, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x18,
	0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x70, 0x72, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x2a, 0x3d,
	0x0a, 0x0e, 0x47, 0x72, 0x6f, 0x77, 0x74, 0x61, 0x73, 0x6b, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73,
	0x12, 0x08, 0x0a, 0x04, 0x4c, 0x6f, 0x63, 0x6b, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x4f, 0x6e,
	0x67, 0x6f, 0x69, 0x6e, 0x67, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x57, 0x61, 0x69, 0x74, 0x10,
	0x02, 0x12, 0x0a, 0x0a, 0x06, 0x46, 0x69, 0x6e, 0x69, 0x73, 0x68, 0x10, 0x03, 0x42, 0x06, 0x5a,
	0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}

var (
	file_growtask_growtask_db_proto_rawDescOnce sync.Once
	file_growtask_growtask_db_proto_rawDescData = file_growtask_growtask_db_proto_rawDesc
)

func file_growtask_growtask_db_proto_rawDescGZIP() []byte {
	file_growtask_growtask_db_proto_rawDescOnce.Do(func() {
		file_growtask_growtask_db_proto_rawDescData = protoimpl.X.CompressGZIP(file_growtask_growtask_db_proto_rawDescData)
	})
	return file_growtask_growtask_db_proto_rawDescData
}

var file_growtask_growtask_db_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_growtask_growtask_db_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_growtask_growtask_db_proto_goTypes = []interface{}{
	(GrowtaskStatus)(0), // 0: GrowtaskStatus
	(*DBGrowtask)(nil),  // 1: DBGrowtask
	(*Growtask)(nil),    // 2: Growtask
}
var file_growtask_growtask_db_proto_depIdxs = []int32{
	2, // 0: DBGrowtask.initTaskList:type_name -> Growtask
	2, // 1: DBGrowtask.midTaskList:type_name -> Growtask
	2, // 2: DBGrowtask.highTaskList:type_name -> Growtask
	0, // 3: Growtask.status:type_name -> GrowtaskStatus
	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_growtask_growtask_db_proto_init() }
func file_growtask_growtask_db_proto_init() {
	if File_growtask_growtask_db_proto != nil {
		return
	}
	if !protoimpl.UnsafeEnabled {
		file_growtask_growtask_db_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
			switch v := v.(*DBGrowtask); i {
			case 0:
				return &v.state
			case 1:
				return &v.sizeCache
			case 2:
				return &v.unknownFields
			default:
				return nil
			}
		}
		file_growtask_growtask_db_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
			switch v := v.(*Growtask); 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_growtask_growtask_db_proto_rawDesc,
			NumEnums:      1,
			NumMessages:   2,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_growtask_growtask_db_proto_goTypes,
		DependencyIndexes: file_growtask_growtask_db_proto_depIdxs,
		EnumInfos:         file_growtask_growtask_db_proto_enumTypes,
		MessageInfos:      file_growtask_growtask_db_proto_msgTypes,
	}.Build()
	File_growtask_growtask_db_proto = out.File
	file_growtask_growtask_db_proto_rawDesc = nil
	file_growtask_growtask_db_proto_goTypes = nil
	file_growtask_growtask_db_proto_depIdxs = nil
}
