| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265 |
- // message结构的属性名请使用 驼峰小写字母开始
- // Code generated by protoc-gen-go. DO NOT EDIT.
- // versions:
- // protoc-gen-go v1.36.8
- // protoc v6.31.1
- // source: quest.proto
- package pb
- import (
- protoreflect "google.golang.org/protobuf/reflect/protoreflect"
- protoimpl "google.golang.org/protobuf/runtime/protoimpl"
- reflect "reflect"
- sync "sync"
- unsafe "unsafe"
- )
- 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 Quest struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- // 任务组id
- GroupID int32 `protobuf:"varint,1,opt,name=groupID,proto3" json:"groupID,omitempty"`
- // 任务配置id
- QuestID int32 `protobuf:"varint,2,opt,name=questID,proto3" json:"questID,omitempty"`
- // 任务状态 0:进行中,1:已完成未领取,2:已完成已领取
- Status int32 `protobuf:"varint,3,opt,name=status,proto3" json:"status,omitempty"`
- // 任务数据
- Data int32 `protobuf:"varint,4,opt,name=data,proto3" json:"data,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
- }
- func (x *Quest) Reset() {
- *x = Quest{}
- mi := &file_quest_proto_msgTypes[0]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- func (x *Quest) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*Quest) ProtoMessage() {}
- func (x *Quest) ProtoReflect() protoreflect.Message {
- mi := &file_quest_proto_msgTypes[0]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use Quest.ProtoReflect.Descriptor instead.
- func (*Quest) Descriptor() ([]byte, []int) {
- return file_quest_proto_rawDescGZIP(), []int{0}
- }
- func (x *Quest) GetGroupID() int32 {
- if x != nil {
- return x.GroupID
- }
- return 0
- }
- func (x *Quest) GetQuestID() int32 {
- if x != nil {
- return x.QuestID
- }
- return 0
- }
- func (x *Quest) GetStatus() int32 {
- if x != nil {
- return x.Status
- }
- return 0
- }
- func (x *Quest) GetData() int32 {
- if x != nil {
- return x.Data
- }
- return 0
- }
- // 任务列表
- type QuestList struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- // 所有任务列表
- Quests []*Quest `protobuf:"bytes,1,rep,name=quests,proto3" json:"quests,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
- }
- func (x *QuestList) Reset() {
- *x = QuestList{}
- mi := &file_quest_proto_msgTypes[1]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- func (x *QuestList) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*QuestList) ProtoMessage() {}
- func (x *QuestList) ProtoReflect() protoreflect.Message {
- mi := &file_quest_proto_msgTypes[1]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use QuestList.ProtoReflect.Descriptor instead.
- func (*QuestList) Descriptor() ([]byte, []int) {
- return file_quest_proto_rawDescGZIP(), []int{1}
- }
- func (x *QuestList) GetQuests() []*Quest {
- if x != nil {
- return x.Quests
- }
- return nil
- }
- // 章节奖励领取
- type QuestChapterReward struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- // 当前主线章节ID Z-任务-主线表chapterID
- ChapterID int32 `protobuf:"varint,1,opt,name=chapterID,proto3" json:"chapterID,omitempty"`
- // 是否已领取
- IsMainReward bool `protobuf:"varint,2,opt,name=isMainReward,proto3" json:"isMainReward,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
- }
- func (x *QuestChapterReward) Reset() {
- *x = QuestChapterReward{}
- mi := &file_quest_proto_msgTypes[2]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- func (x *QuestChapterReward) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*QuestChapterReward) ProtoMessage() {}
- func (x *QuestChapterReward) ProtoReflect() protoreflect.Message {
- mi := &file_quest_proto_msgTypes[2]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use QuestChapterReward.ProtoReflect.Descriptor instead.
- func (*QuestChapterReward) Descriptor() ([]byte, []int) {
- return file_quest_proto_rawDescGZIP(), []int{2}
- }
- func (x *QuestChapterReward) GetChapterID() int32 {
- if x != nil {
- return x.ChapterID
- }
- return 0
- }
- func (x *QuestChapterReward) GetIsMainReward() bool {
- if x != nil {
- return x.IsMainReward
- }
- return false
- }
- var File_quest_proto protoreflect.FileDescriptor
- const file_quest_proto_rawDesc = "" +
- "\n" +
- "\vquest.proto\x12\x02pb\"g\n" +
- "\x05Quest\x12\x18\n" +
- "\agroupID\x18\x01 \x01(\x05R\agroupID\x12\x18\n" +
- "\aquestID\x18\x02 \x01(\x05R\aquestID\x12\x16\n" +
- "\x06status\x18\x03 \x01(\x05R\x06status\x12\x12\n" +
- "\x04data\x18\x04 \x01(\x05R\x04data\".\n" +
- "\tQuestList\x12!\n" +
- "\x06quests\x18\x01 \x03(\v2\t.pb.QuestR\x06quests\"V\n" +
- "\x12QuestChapterReward\x12\x1c\n" +
- "\tchapterID\x18\x01 \x01(\x05R\tchapterID\x12\"\n" +
- "\fisMainReward\x18\x02 \x01(\bR\fisMainRewardB\x05Z\x03/pbb\x06proto3"
- var (
- file_quest_proto_rawDescOnce sync.Once
- file_quest_proto_rawDescData []byte
- )
- func file_quest_proto_rawDescGZIP() []byte {
- file_quest_proto_rawDescOnce.Do(func() {
- file_quest_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_quest_proto_rawDesc), len(file_quest_proto_rawDesc)))
- })
- return file_quest_proto_rawDescData
- }
- var file_quest_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
- var file_quest_proto_goTypes = []any{
- (*Quest)(nil), // 0: pb.Quest
- (*QuestList)(nil), // 1: pb.QuestList
- (*QuestChapterReward)(nil), // 2: pb.QuestChapterReward
- }
- var file_quest_proto_depIdxs = []int32{
- 0, // 0: pb.QuestList.quests:type_name -> pb.Quest
- 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_quest_proto_init() }
- func file_quest_proto_init() {
- if File_quest_proto != nil {
- return
- }
- type x struct{}
- out := protoimpl.TypeBuilder{
- File: protoimpl.DescBuilder{
- GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
- RawDescriptor: unsafe.Slice(unsafe.StringData(file_quest_proto_rawDesc), len(file_quest_proto_rawDesc)),
- NumEnums: 0,
- NumMessages: 3,
- NumExtensions: 0,
- NumServices: 0,
- },
- GoTypes: file_quest_proto_goTypes,
- DependencyIndexes: file_quest_proto_depIdxs,
- MessageInfos: file_quest_proto_msgTypes,
- }.Build()
- File_quest_proto = out.File
- file_quest_proto_goTypes = nil
- file_quest_proto_depIdxs = nil
- }
|