season.pb.go 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245
  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: season.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 SeasonQuestInfo struct {
  23. state protoimpl.MessageState `protogen:"open.v1"`
  24. // key:霸业ID, value:霸业任务数据
  25. Quests map[int32]*SeasonQuest `protobuf:"bytes,1,rep,name=quests,proto3" json:"quests,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
  26. // 当前霸业ID
  27. CurQuestID int32 `protobuf:"varint,2,opt,name=curQuestID,proto3" json:"curQuestID,omitempty"`
  28. unknownFields protoimpl.UnknownFields
  29. sizeCache protoimpl.SizeCache
  30. }
  31. func (x *SeasonQuestInfo) Reset() {
  32. *x = SeasonQuestInfo{}
  33. mi := &file_season_proto_msgTypes[0]
  34. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  35. ms.StoreMessageInfo(mi)
  36. }
  37. func (x *SeasonQuestInfo) String() string {
  38. return protoimpl.X.MessageStringOf(x)
  39. }
  40. func (*SeasonQuestInfo) ProtoMessage() {}
  41. func (x *SeasonQuestInfo) ProtoReflect() protoreflect.Message {
  42. mi := &file_season_proto_msgTypes[0]
  43. if x != nil {
  44. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  45. if ms.LoadMessageInfo() == nil {
  46. ms.StoreMessageInfo(mi)
  47. }
  48. return ms
  49. }
  50. return mi.MessageOf(x)
  51. }
  52. // Deprecated: Use SeasonQuestInfo.ProtoReflect.Descriptor instead.
  53. func (*SeasonQuestInfo) Descriptor() ([]byte, []int) {
  54. return file_season_proto_rawDescGZIP(), []int{0}
  55. }
  56. func (x *SeasonQuestInfo) GetQuests() map[int32]*SeasonQuest {
  57. if x != nil {
  58. return x.Quests
  59. }
  60. return nil
  61. }
  62. func (x *SeasonQuestInfo) GetCurQuestID() int32 {
  63. if x != nil {
  64. return x.CurQuestID
  65. }
  66. return 0
  67. }
  68. // 霸业任务
  69. type SeasonQuest struct {
  70. state protoimpl.MessageState `protogen:"open.v1"`
  71. // 霸业ID
  72. QuestID int32 `protobuf:"varint,1,opt,name=questID,proto3" json:"questID,omitempty"`
  73. // 开始时间 (毫秒)
  74. StartTime int64 `protobuf:"varint,2,opt,name=startTime,proto3" json:"startTime,omitempty"`
  75. // 进度
  76. Progress int32 `protobuf:"varint,3,opt,name=progress,proto3" json:"progress,omitempty"`
  77. // 目标进度
  78. TargetProgress int32 `protobuf:"varint,4,opt,name=targetProgress,proto3" json:"targetProgress,omitempty"`
  79. // 结束时间 (毫秒)
  80. EndTime int64 `protobuf:"varint,5,opt,name=endTime,proto3" json:"endTime,omitempty"`
  81. // 是否已领取奖励
  82. IsRewarded bool `protobuf:"varint,6,opt,name=isRewarded,proto3" json:"isRewarded,omitempty"`
  83. unknownFields protoimpl.UnknownFields
  84. sizeCache protoimpl.SizeCache
  85. }
  86. func (x *SeasonQuest) Reset() {
  87. *x = SeasonQuest{}
  88. mi := &file_season_proto_msgTypes[1]
  89. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  90. ms.StoreMessageInfo(mi)
  91. }
  92. func (x *SeasonQuest) String() string {
  93. return protoimpl.X.MessageStringOf(x)
  94. }
  95. func (*SeasonQuest) ProtoMessage() {}
  96. func (x *SeasonQuest) ProtoReflect() protoreflect.Message {
  97. mi := &file_season_proto_msgTypes[1]
  98. if x != nil {
  99. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  100. if ms.LoadMessageInfo() == nil {
  101. ms.StoreMessageInfo(mi)
  102. }
  103. return ms
  104. }
  105. return mi.MessageOf(x)
  106. }
  107. // Deprecated: Use SeasonQuest.ProtoReflect.Descriptor instead.
  108. func (*SeasonQuest) Descriptor() ([]byte, []int) {
  109. return file_season_proto_rawDescGZIP(), []int{1}
  110. }
  111. func (x *SeasonQuest) GetQuestID() int32 {
  112. if x != nil {
  113. return x.QuestID
  114. }
  115. return 0
  116. }
  117. func (x *SeasonQuest) GetStartTime() int64 {
  118. if x != nil {
  119. return x.StartTime
  120. }
  121. return 0
  122. }
  123. func (x *SeasonQuest) GetProgress() int32 {
  124. if x != nil {
  125. return x.Progress
  126. }
  127. return 0
  128. }
  129. func (x *SeasonQuest) GetTargetProgress() int32 {
  130. if x != nil {
  131. return x.TargetProgress
  132. }
  133. return 0
  134. }
  135. func (x *SeasonQuest) GetEndTime() int64 {
  136. if x != nil {
  137. return x.EndTime
  138. }
  139. return 0
  140. }
  141. func (x *SeasonQuest) GetIsRewarded() bool {
  142. if x != nil {
  143. return x.IsRewarded
  144. }
  145. return false
  146. }
  147. var File_season_proto protoreflect.FileDescriptor
  148. const file_season_proto_rawDesc = "" +
  149. "\n" +
  150. "\fseason.proto\x12\x02pb\"\xb6\x01\n" +
  151. "\x0fSeasonQuestInfo\x127\n" +
  152. "\x06quests\x18\x01 \x03(\v2\x1f.pb.SeasonQuestInfo.QuestsEntryR\x06quests\x12\x1e\n" +
  153. "\n" +
  154. "curQuestID\x18\x02 \x01(\x05R\n" +
  155. "curQuestID\x1aJ\n" +
  156. "\vQuestsEntry\x12\x10\n" +
  157. "\x03key\x18\x01 \x01(\x05R\x03key\x12%\n" +
  158. "\x05value\x18\x02 \x01(\v2\x0f.pb.SeasonQuestR\x05value:\x028\x01\"\xc3\x01\n" +
  159. "\vSeasonQuest\x12\x18\n" +
  160. "\aquestID\x18\x01 \x01(\x05R\aquestID\x12\x1c\n" +
  161. "\tstartTime\x18\x02 \x01(\x03R\tstartTime\x12\x1a\n" +
  162. "\bprogress\x18\x03 \x01(\x05R\bprogress\x12&\n" +
  163. "\x0etargetProgress\x18\x04 \x01(\x05R\x0etargetProgress\x12\x18\n" +
  164. "\aendTime\x18\x05 \x01(\x03R\aendTime\x12\x1e\n" +
  165. "\n" +
  166. "isRewarded\x18\x06 \x01(\bR\n" +
  167. "isRewardedB\x05Z\x03/pbb\x06proto3"
  168. var (
  169. file_season_proto_rawDescOnce sync.Once
  170. file_season_proto_rawDescData []byte
  171. )
  172. func file_season_proto_rawDescGZIP() []byte {
  173. file_season_proto_rawDescOnce.Do(func() {
  174. file_season_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_season_proto_rawDesc), len(file_season_proto_rawDesc)))
  175. })
  176. return file_season_proto_rawDescData
  177. }
  178. var file_season_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
  179. var file_season_proto_goTypes = []any{
  180. (*SeasonQuestInfo)(nil), // 0: pb.SeasonQuestInfo
  181. (*SeasonQuest)(nil), // 1: pb.SeasonQuest
  182. nil, // 2: pb.SeasonQuestInfo.QuestsEntry
  183. }
  184. var file_season_proto_depIdxs = []int32{
  185. 2, // 0: pb.SeasonQuestInfo.quests:type_name -> pb.SeasonQuestInfo.QuestsEntry
  186. 1, // 1: pb.SeasonQuestInfo.QuestsEntry.value:type_name -> pb.SeasonQuest
  187. 2, // [2:2] is the sub-list for method output_type
  188. 2, // [2:2] is the sub-list for method input_type
  189. 2, // [2:2] is the sub-list for extension type_name
  190. 2, // [2:2] is the sub-list for extension extendee
  191. 0, // [0:2] is the sub-list for field type_name
  192. }
  193. func init() { file_season_proto_init() }
  194. func file_season_proto_init() {
  195. if File_season_proto != nil {
  196. return
  197. }
  198. type x struct{}
  199. out := protoimpl.TypeBuilder{
  200. File: protoimpl.DescBuilder{
  201. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  202. RawDescriptor: unsafe.Slice(unsafe.StringData(file_season_proto_rawDesc), len(file_season_proto_rawDesc)),
  203. NumEnums: 0,
  204. NumMessages: 3,
  205. NumExtensions: 0,
  206. NumServices: 0,
  207. },
  208. GoTypes: file_season_proto_goTypes,
  209. DependencyIndexes: file_season_proto_depIdxs,
  210. MessageInfos: file_season_proto_msgTypes,
  211. }.Build()
  212. File_season_proto = out.File
  213. file_season_proto_goTypes = nil
  214. file_season_proto_depIdxs = nil
  215. }