recruit.pb.go 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197
  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: recruit.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 Recruit struct {
  23. state protoimpl.MessageState `protogen:"open.v1"`
  24. // 免费招募已使用次数
  25. FreeUsedNum int32 `protobuf:"varint,1,opt,name=freeUsedNum,proto3" json:"freeUsedNum,omitempty"`
  26. // 最后一次招募时间(utc毫秒)
  27. LastTime int64 `protobuf:"varint,2,opt,name=lastTime,proto3" json:"lastTime,omitempty"`
  28. unknownFields protoimpl.UnknownFields
  29. sizeCache protoimpl.SizeCache
  30. }
  31. func (x *Recruit) Reset() {
  32. *x = Recruit{}
  33. mi := &file_recruit_proto_msgTypes[0]
  34. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  35. ms.StoreMessageInfo(mi)
  36. }
  37. func (x *Recruit) String() string {
  38. return protoimpl.X.MessageStringOf(x)
  39. }
  40. func (*Recruit) ProtoMessage() {}
  41. func (x *Recruit) ProtoReflect() protoreflect.Message {
  42. mi := &file_recruit_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 Recruit.ProtoReflect.Descriptor instead.
  53. func (*Recruit) Descriptor() ([]byte, []int) {
  54. return file_recruit_proto_rawDescGZIP(), []int{0}
  55. }
  56. func (x *Recruit) GetFreeUsedNum() int32 {
  57. if x != nil {
  58. return x.FreeUsedNum
  59. }
  60. return 0
  61. }
  62. func (x *Recruit) GetLastTime() int64 {
  63. if x != nil {
  64. return x.LastTime
  65. }
  66. return 0
  67. }
  68. // [响应] 英雄招募
  69. type RecruitResponse struct {
  70. state protoimpl.MessageState `protogen:"open.v1"`
  71. Rewards []*Asset `protobuf:"bytes,1,rep,name=rewards,proto3" json:"rewards,omitempty"`
  72. Recruit *Recruit `protobuf:"bytes,2,opt,name=recruit,proto3" json:"recruit,omitempty"`
  73. unknownFields protoimpl.UnknownFields
  74. sizeCache protoimpl.SizeCache
  75. }
  76. func (x *RecruitResponse) Reset() {
  77. *x = RecruitResponse{}
  78. mi := &file_recruit_proto_msgTypes[1]
  79. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  80. ms.StoreMessageInfo(mi)
  81. }
  82. func (x *RecruitResponse) String() string {
  83. return protoimpl.X.MessageStringOf(x)
  84. }
  85. func (*RecruitResponse) ProtoMessage() {}
  86. func (x *RecruitResponse) ProtoReflect() protoreflect.Message {
  87. mi := &file_recruit_proto_msgTypes[1]
  88. if x != nil {
  89. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  90. if ms.LoadMessageInfo() == nil {
  91. ms.StoreMessageInfo(mi)
  92. }
  93. return ms
  94. }
  95. return mi.MessageOf(x)
  96. }
  97. // Deprecated: Use RecruitResponse.ProtoReflect.Descriptor instead.
  98. func (*RecruitResponse) Descriptor() ([]byte, []int) {
  99. return file_recruit_proto_rawDescGZIP(), []int{1}
  100. }
  101. func (x *RecruitResponse) GetRewards() []*Asset {
  102. if x != nil {
  103. return x.Rewards
  104. }
  105. return nil
  106. }
  107. func (x *RecruitResponse) GetRecruit() *Recruit {
  108. if x != nil {
  109. return x.Recruit
  110. }
  111. return nil
  112. }
  113. var File_recruit_proto protoreflect.FileDescriptor
  114. const file_recruit_proto_rawDesc = "" +
  115. "\n" +
  116. "\rrecruit.proto\x12\x02pb\x1a\x0fbase_type.proto\"G\n" +
  117. "\aRecruit\x12 \n" +
  118. "\vfreeUsedNum\x18\x01 \x01(\x05R\vfreeUsedNum\x12\x1a\n" +
  119. "\blastTime\x18\x02 \x01(\x03R\blastTime\"]\n" +
  120. "\x0fRecruitResponse\x12#\n" +
  121. "\arewards\x18\x01 \x03(\v2\t.pb.AssetR\arewards\x12%\n" +
  122. "\arecruit\x18\x02 \x01(\v2\v.pb.RecruitR\arecruitB\x05Z\x03/pbb\x06proto3"
  123. var (
  124. file_recruit_proto_rawDescOnce sync.Once
  125. file_recruit_proto_rawDescData []byte
  126. )
  127. func file_recruit_proto_rawDescGZIP() []byte {
  128. file_recruit_proto_rawDescOnce.Do(func() {
  129. file_recruit_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_recruit_proto_rawDesc), len(file_recruit_proto_rawDesc)))
  130. })
  131. return file_recruit_proto_rawDescData
  132. }
  133. var file_recruit_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
  134. var file_recruit_proto_goTypes = []any{
  135. (*Recruit)(nil), // 0: pb.Recruit
  136. (*RecruitResponse)(nil), // 1: pb.RecruitResponse
  137. (*Asset)(nil), // 2: pb.Asset
  138. }
  139. var file_recruit_proto_depIdxs = []int32{
  140. 2, // 0: pb.RecruitResponse.rewards:type_name -> pb.Asset
  141. 0, // 1: pb.RecruitResponse.recruit:type_name -> pb.Recruit
  142. 2, // [2:2] is the sub-list for method output_type
  143. 2, // [2:2] is the sub-list for method input_type
  144. 2, // [2:2] is the sub-list for extension type_name
  145. 2, // [2:2] is the sub-list for extension extendee
  146. 0, // [0:2] is the sub-list for field type_name
  147. }
  148. func init() { file_recruit_proto_init() }
  149. func file_recruit_proto_init() {
  150. if File_recruit_proto != nil {
  151. return
  152. }
  153. file_base_type_proto_init()
  154. type x struct{}
  155. out := protoimpl.TypeBuilder{
  156. File: protoimpl.DescBuilder{
  157. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  158. RawDescriptor: unsafe.Slice(unsafe.StringData(file_recruit_proto_rawDesc), len(file_recruit_proto_rawDesc)),
  159. NumEnums: 0,
  160. NumMessages: 2,
  161. NumExtensions: 0,
  162. NumServices: 0,
  163. },
  164. GoTypes: file_recruit_proto_goTypes,
  165. DependencyIndexes: file_recruit_proto_depIdxs,
  166. MessageInfos: file_recruit_proto_msgTypes,
  167. }.Build()
  168. File_recruit_proto = out.File
  169. file_recruit_proto_goTypes = nil
  170. file_recruit_proto_depIdxs = nil
  171. }