quest.pb.go 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265
  1. // message结构的属性名请使用 驼峰小写字母开始
  2. // Code generated by protoc-gen-go. DO NOT EDIT.
  3. // versions:
  4. // protoc-gen-go v1.36.8
  5. // protoc v6.31.1
  6. // source: quest.proto
  7. package pb
  8. import (
  9. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  10. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  11. reflect "reflect"
  12. sync "sync"
  13. unsafe "unsafe"
  14. )
  15. const (
  16. // Verify that this generated code is sufficiently up-to-date.
  17. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  18. // Verify that runtime/protoimpl is sufficiently up-to-date.
  19. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  20. )
  21. // 任务
  22. type Quest struct {
  23. state protoimpl.MessageState `protogen:"open.v1"`
  24. // 任务组id
  25. GroupID int32 `protobuf:"varint,1,opt,name=groupID,proto3" json:"groupID,omitempty"`
  26. // 任务配置id
  27. QuestID int32 `protobuf:"varint,2,opt,name=questID,proto3" json:"questID,omitempty"`
  28. // 任务状态 0:进行中,1:已完成未领取,2:已完成已领取
  29. Status int32 `protobuf:"varint,3,opt,name=status,proto3" json:"status,omitempty"`
  30. // 任务数据
  31. Data int32 `protobuf:"varint,4,opt,name=data,proto3" json:"data,omitempty"`
  32. unknownFields protoimpl.UnknownFields
  33. sizeCache protoimpl.SizeCache
  34. }
  35. func (x *Quest) Reset() {
  36. *x = Quest{}
  37. mi := &file_quest_proto_msgTypes[0]
  38. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  39. ms.StoreMessageInfo(mi)
  40. }
  41. func (x *Quest) String() string {
  42. return protoimpl.X.MessageStringOf(x)
  43. }
  44. func (*Quest) ProtoMessage() {}
  45. func (x *Quest) ProtoReflect() protoreflect.Message {
  46. mi := &file_quest_proto_msgTypes[0]
  47. if x != nil {
  48. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  49. if ms.LoadMessageInfo() == nil {
  50. ms.StoreMessageInfo(mi)
  51. }
  52. return ms
  53. }
  54. return mi.MessageOf(x)
  55. }
  56. // Deprecated: Use Quest.ProtoReflect.Descriptor instead.
  57. func (*Quest) Descriptor() ([]byte, []int) {
  58. return file_quest_proto_rawDescGZIP(), []int{0}
  59. }
  60. func (x *Quest) GetGroupID() int32 {
  61. if x != nil {
  62. return x.GroupID
  63. }
  64. return 0
  65. }
  66. func (x *Quest) GetQuestID() int32 {
  67. if x != nil {
  68. return x.QuestID
  69. }
  70. return 0
  71. }
  72. func (x *Quest) GetStatus() int32 {
  73. if x != nil {
  74. return x.Status
  75. }
  76. return 0
  77. }
  78. func (x *Quest) GetData() int32 {
  79. if x != nil {
  80. return x.Data
  81. }
  82. return 0
  83. }
  84. // 任务列表
  85. type QuestList struct {
  86. state protoimpl.MessageState `protogen:"open.v1"`
  87. // 所有任务列表
  88. Quests []*Quest `protobuf:"bytes,1,rep,name=quests,proto3" json:"quests,omitempty"`
  89. unknownFields protoimpl.UnknownFields
  90. sizeCache protoimpl.SizeCache
  91. }
  92. func (x *QuestList) Reset() {
  93. *x = QuestList{}
  94. mi := &file_quest_proto_msgTypes[1]
  95. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  96. ms.StoreMessageInfo(mi)
  97. }
  98. func (x *QuestList) String() string {
  99. return protoimpl.X.MessageStringOf(x)
  100. }
  101. func (*QuestList) ProtoMessage() {}
  102. func (x *QuestList) ProtoReflect() protoreflect.Message {
  103. mi := &file_quest_proto_msgTypes[1]
  104. if x != nil {
  105. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  106. if ms.LoadMessageInfo() == nil {
  107. ms.StoreMessageInfo(mi)
  108. }
  109. return ms
  110. }
  111. return mi.MessageOf(x)
  112. }
  113. // Deprecated: Use QuestList.ProtoReflect.Descriptor instead.
  114. func (*QuestList) Descriptor() ([]byte, []int) {
  115. return file_quest_proto_rawDescGZIP(), []int{1}
  116. }
  117. func (x *QuestList) GetQuests() []*Quest {
  118. if x != nil {
  119. return x.Quests
  120. }
  121. return nil
  122. }
  123. // 章节奖励领取
  124. type QuestChapterReward struct {
  125. state protoimpl.MessageState `protogen:"open.v1"`
  126. // 当前主线章节ID Z-任务-主线表chapterID
  127. ChapterID int32 `protobuf:"varint,1,opt,name=chapterID,proto3" json:"chapterID,omitempty"`
  128. // 是否已领取
  129. IsMainReward bool `protobuf:"varint,2,opt,name=isMainReward,proto3" json:"isMainReward,omitempty"`
  130. unknownFields protoimpl.UnknownFields
  131. sizeCache protoimpl.SizeCache
  132. }
  133. func (x *QuestChapterReward) Reset() {
  134. *x = QuestChapterReward{}
  135. mi := &file_quest_proto_msgTypes[2]
  136. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  137. ms.StoreMessageInfo(mi)
  138. }
  139. func (x *QuestChapterReward) String() string {
  140. return protoimpl.X.MessageStringOf(x)
  141. }
  142. func (*QuestChapterReward) ProtoMessage() {}
  143. func (x *QuestChapterReward) ProtoReflect() protoreflect.Message {
  144. mi := &file_quest_proto_msgTypes[2]
  145. if x != nil {
  146. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  147. if ms.LoadMessageInfo() == nil {
  148. ms.StoreMessageInfo(mi)
  149. }
  150. return ms
  151. }
  152. return mi.MessageOf(x)
  153. }
  154. // Deprecated: Use QuestChapterReward.ProtoReflect.Descriptor instead.
  155. func (*QuestChapterReward) Descriptor() ([]byte, []int) {
  156. return file_quest_proto_rawDescGZIP(), []int{2}
  157. }
  158. func (x *QuestChapterReward) GetChapterID() int32 {
  159. if x != nil {
  160. return x.ChapterID
  161. }
  162. return 0
  163. }
  164. func (x *QuestChapterReward) GetIsMainReward() bool {
  165. if x != nil {
  166. return x.IsMainReward
  167. }
  168. return false
  169. }
  170. var File_quest_proto protoreflect.FileDescriptor
  171. const file_quest_proto_rawDesc = "" +
  172. "\n" +
  173. "\vquest.proto\x12\x02pb\"g\n" +
  174. "\x05Quest\x12\x18\n" +
  175. "\agroupID\x18\x01 \x01(\x05R\agroupID\x12\x18\n" +
  176. "\aquestID\x18\x02 \x01(\x05R\aquestID\x12\x16\n" +
  177. "\x06status\x18\x03 \x01(\x05R\x06status\x12\x12\n" +
  178. "\x04data\x18\x04 \x01(\x05R\x04data\".\n" +
  179. "\tQuestList\x12!\n" +
  180. "\x06quests\x18\x01 \x03(\v2\t.pb.QuestR\x06quests\"V\n" +
  181. "\x12QuestChapterReward\x12\x1c\n" +
  182. "\tchapterID\x18\x01 \x01(\x05R\tchapterID\x12\"\n" +
  183. "\fisMainReward\x18\x02 \x01(\bR\fisMainRewardB\x05Z\x03/pbb\x06proto3"
  184. var (
  185. file_quest_proto_rawDescOnce sync.Once
  186. file_quest_proto_rawDescData []byte
  187. )
  188. func file_quest_proto_rawDescGZIP() []byte {
  189. file_quest_proto_rawDescOnce.Do(func() {
  190. file_quest_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_quest_proto_rawDesc), len(file_quest_proto_rawDesc)))
  191. })
  192. return file_quest_proto_rawDescData
  193. }
  194. var file_quest_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
  195. var file_quest_proto_goTypes = []any{
  196. (*Quest)(nil), // 0: pb.Quest
  197. (*QuestList)(nil), // 1: pb.QuestList
  198. (*QuestChapterReward)(nil), // 2: pb.QuestChapterReward
  199. }
  200. var file_quest_proto_depIdxs = []int32{
  201. 0, // 0: pb.QuestList.quests:type_name -> pb.Quest
  202. 1, // [1:1] is the sub-list for method output_type
  203. 1, // [1:1] is the sub-list for method input_type
  204. 1, // [1:1] is the sub-list for extension type_name
  205. 1, // [1:1] is the sub-list for extension extendee
  206. 0, // [0:1] is the sub-list for field type_name
  207. }
  208. func init() { file_quest_proto_init() }
  209. func file_quest_proto_init() {
  210. if File_quest_proto != nil {
  211. return
  212. }
  213. type x struct{}
  214. out := protoimpl.TypeBuilder{
  215. File: protoimpl.DescBuilder{
  216. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  217. RawDescriptor: unsafe.Slice(unsafe.StringData(file_quest_proto_rawDesc), len(file_quest_proto_rawDesc)),
  218. NumEnums: 0,
  219. NumMessages: 3,
  220. NumExtensions: 0,
  221. NumServices: 0,
  222. },
  223. GoTypes: file_quest_proto_goTypes,
  224. DependencyIndexes: file_quest_proto_depIdxs,
  225. MessageInfos: file_quest_proto_msgTypes,
  226. }.Build()
  227. File_quest_proto = out.File
  228. file_quest_proto_goTypes = nil
  229. file_quest_proto_depIdxs = nil
  230. }