| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197 |
- // message结构的属性名请使用 驼峰小写字母开始
- // Code generated by protoc-gen-go. DO NOT EDIT.
- // versions:
- // protoc-gen-go v1.36.8
- // protoc v6.31.1
- // source: recruit.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 Recruit struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- // 免费招募已使用次数
- FreeUsedNum int32 `protobuf:"varint,1,opt,name=freeUsedNum,proto3" json:"freeUsedNum,omitempty"`
- // 最后一次招募时间(utc毫秒)
- LastTime int64 `protobuf:"varint,2,opt,name=lastTime,proto3" json:"lastTime,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
- }
- func (x *Recruit) Reset() {
- *x = Recruit{}
- mi := &file_recruit_proto_msgTypes[0]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- func (x *Recruit) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*Recruit) ProtoMessage() {}
- func (x *Recruit) ProtoReflect() protoreflect.Message {
- mi := &file_recruit_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 Recruit.ProtoReflect.Descriptor instead.
- func (*Recruit) Descriptor() ([]byte, []int) {
- return file_recruit_proto_rawDescGZIP(), []int{0}
- }
- func (x *Recruit) GetFreeUsedNum() int32 {
- if x != nil {
- return x.FreeUsedNum
- }
- return 0
- }
- func (x *Recruit) GetLastTime() int64 {
- if x != nil {
- return x.LastTime
- }
- return 0
- }
- // [响应] 英雄招募
- type RecruitResponse struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- Rewards []*Asset `protobuf:"bytes,1,rep,name=rewards,proto3" json:"rewards,omitempty"`
- Recruit *Recruit `protobuf:"bytes,2,opt,name=recruit,proto3" json:"recruit,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
- }
- func (x *RecruitResponse) Reset() {
- *x = RecruitResponse{}
- mi := &file_recruit_proto_msgTypes[1]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- func (x *RecruitResponse) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*RecruitResponse) ProtoMessage() {}
- func (x *RecruitResponse) ProtoReflect() protoreflect.Message {
- mi := &file_recruit_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 RecruitResponse.ProtoReflect.Descriptor instead.
- func (*RecruitResponse) Descriptor() ([]byte, []int) {
- return file_recruit_proto_rawDescGZIP(), []int{1}
- }
- func (x *RecruitResponse) GetRewards() []*Asset {
- if x != nil {
- return x.Rewards
- }
- return nil
- }
- func (x *RecruitResponse) GetRecruit() *Recruit {
- if x != nil {
- return x.Recruit
- }
- return nil
- }
- var File_recruit_proto protoreflect.FileDescriptor
- const file_recruit_proto_rawDesc = "" +
- "\n" +
- "\rrecruit.proto\x12\x02pb\x1a\x0fbase_type.proto\"G\n" +
- "\aRecruit\x12 \n" +
- "\vfreeUsedNum\x18\x01 \x01(\x05R\vfreeUsedNum\x12\x1a\n" +
- "\blastTime\x18\x02 \x01(\x03R\blastTime\"]\n" +
- "\x0fRecruitResponse\x12#\n" +
- "\arewards\x18\x01 \x03(\v2\t.pb.AssetR\arewards\x12%\n" +
- "\arecruit\x18\x02 \x01(\v2\v.pb.RecruitR\arecruitB\x05Z\x03/pbb\x06proto3"
- var (
- file_recruit_proto_rawDescOnce sync.Once
- file_recruit_proto_rawDescData []byte
- )
- func file_recruit_proto_rawDescGZIP() []byte {
- file_recruit_proto_rawDescOnce.Do(func() {
- file_recruit_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_recruit_proto_rawDesc), len(file_recruit_proto_rawDesc)))
- })
- return file_recruit_proto_rawDescData
- }
- var file_recruit_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
- var file_recruit_proto_goTypes = []any{
- (*Recruit)(nil), // 0: pb.Recruit
- (*RecruitResponse)(nil), // 1: pb.RecruitResponse
- (*Asset)(nil), // 2: pb.Asset
- }
- var file_recruit_proto_depIdxs = []int32{
- 2, // 0: pb.RecruitResponse.rewards:type_name -> pb.Asset
- 0, // 1: pb.RecruitResponse.recruit:type_name -> pb.Recruit
- 2, // [2:2] is the sub-list for method output_type
- 2, // [2:2] is the sub-list for method input_type
- 2, // [2:2] is the sub-list for extension type_name
- 2, // [2:2] is the sub-list for extension extendee
- 0, // [0:2] is the sub-list for field type_name
- }
- func init() { file_recruit_proto_init() }
- func file_recruit_proto_init() {
- if File_recruit_proto != nil {
- return
- }
- file_base_type_proto_init()
- type x struct{}
- out := protoimpl.TypeBuilder{
- File: protoimpl.DescBuilder{
- GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
- RawDescriptor: unsafe.Slice(unsafe.StringData(file_recruit_proto_rawDesc), len(file_recruit_proto_rawDesc)),
- NumEnums: 0,
- NumMessages: 2,
- NumExtensions: 0,
- NumServices: 0,
- },
- GoTypes: file_recruit_proto_goTypes,
- DependencyIndexes: file_recruit_proto_depIdxs,
- MessageInfos: file_recruit_proto_msgTypes,
- }.Build()
- File_recruit_proto = out.File
- file_recruit_proto_goTypes = nil
- file_recruit_proto_depIdxs = nil
- }
|