// message结构的属性名请使用 驼峰小写字母开始 // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.36.8 // protoc v6.31.1 // source: mail.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 Mail struct { state protoimpl.MessageState `protogen:"open.v1"` // 邮件id MailID int64 `protobuf:"varint,1,opt,name=mailID,proto3" json:"mailID,omitempty"` // 发送玩家id(0为系统) FromPlayerID int64 `protobuf:"varint,2,opt,name=fromPlayerID,proto3" json:"fromPlayerID,omitempty"` // 发送玩家名 FromPlayerName string `protobuf:"bytes,3,opt,name=fromPlayerName,proto3" json:"fromPlayerName,omitempty"` // 系统邮件信息 SystemMail *SystemMail `protobuf:"bytes,4,opt,name=systemMail,proto3" json:"systemMail,omitempty"` // 同盟邮件信息 LeagueMail *LeagueMail `protobuf:"bytes,5,opt,name=leagueMail,proto3" json:"leagueMail,omitempty"` // 是否阅读 IsRead bool `protobuf:"varint,6,opt,name=isRead,proto3" json:"isRead,omitempty"` // 发送时间 SendTime int64 `protobuf:"varint,7,opt,name=sendTime,proto3" json:"sendTime,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *Mail) Reset() { *x = Mail{} mi := &file_mail_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *Mail) String() string { return protoimpl.X.MessageStringOf(x) } func (*Mail) ProtoMessage() {} func (x *Mail) ProtoReflect() protoreflect.Message { mi := &file_mail_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 Mail.ProtoReflect.Descriptor instead. func (*Mail) Descriptor() ([]byte, []int) { return file_mail_proto_rawDescGZIP(), []int{0} } func (x *Mail) GetMailID() int64 { if x != nil { return x.MailID } return 0 } func (x *Mail) GetFromPlayerID() int64 { if x != nil { return x.FromPlayerID } return 0 } func (x *Mail) GetFromPlayerName() string { if x != nil { return x.FromPlayerName } return "" } func (x *Mail) GetSystemMail() *SystemMail { if x != nil { return x.SystemMail } return nil } func (x *Mail) GetLeagueMail() *LeagueMail { if x != nil { return x.LeagueMail } return nil } func (x *Mail) GetIsRead() bool { if x != nil { return x.IsRead } return false } func (x *Mail) GetSendTime() int64 { if x != nil { return x.SendTime } return 0 } // 系统邮件 type SystemMail struct { state protoimpl.MessageState `protogen:"open.v1"` // 邮件模板id TemplateID int32 `protobuf:"varint,1,opt,name=templateID,proto3" json:"templateID,omitempty"` // 邮件模板参数 TemplateParams []string `protobuf:"bytes,2,rep,name=templateParams,proto3" json:"templateParams,omitempty"` // 过期时间 ExpireTime int64 `protobuf:"varint,3,opt,name=expireTime,proto3" json:"expireTime,omitempty"` // 是否领奖励 IsReward bool `protobuf:"varint,4,opt,name=isReward,proto3" json:"isReward,omitempty"` // 附件列表 Rewards []*Asset `protobuf:"bytes,5,rep,name=rewards,proto3" json:"rewards,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *SystemMail) Reset() { *x = SystemMail{} mi := &file_mail_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *SystemMail) String() string { return protoimpl.X.MessageStringOf(x) } func (*SystemMail) ProtoMessage() {} func (x *SystemMail) ProtoReflect() protoreflect.Message { mi := &file_mail_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 SystemMail.ProtoReflect.Descriptor instead. func (*SystemMail) Descriptor() ([]byte, []int) { return file_mail_proto_rawDescGZIP(), []int{1} } func (x *SystemMail) GetTemplateID() int32 { if x != nil { return x.TemplateID } return 0 } func (x *SystemMail) GetTemplateParams() []string { if x != nil { return x.TemplateParams } return nil } func (x *SystemMail) GetExpireTime() int64 { if x != nil { return x.ExpireTime } return 0 } func (x *SystemMail) GetIsReward() bool { if x != nil { return x.IsReward } return false } func (x *SystemMail) GetRewards() []*Asset { if x != nil { return x.Rewards } return nil } // 联盟邮件 type LeagueMail struct { state protoimpl.MessageState `protogen:"open.v1"` // 邮件标题 Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` // 邮件内容 Content string `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"` // 发送人职位ID 暂时不使用 Job int32 `protobuf:"varint,3,opt,name=job,proto3" json:"job,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *LeagueMail) Reset() { *x = LeagueMail{} mi := &file_mail_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *LeagueMail) String() string { return protoimpl.X.MessageStringOf(x) } func (*LeagueMail) ProtoMessage() {} func (x *LeagueMail) ProtoReflect() protoreflect.Message { mi := &file_mail_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 LeagueMail.ProtoReflect.Descriptor instead. func (*LeagueMail) Descriptor() ([]byte, []int) { return file_mail_proto_rawDescGZIP(), []int{2} } func (x *LeagueMail) GetTitle() string { if x != nil { return x.Title } return "" } func (x *LeagueMail) GetContent() string { if x != nil { return x.Content } return "" } func (x *LeagueMail) GetJob() int32 { if x != nil { return x.Job } return 0 } type MailTypeList struct { state protoimpl.MessageState `protogen:"open.v1"` // 邮件列表 List []*MailList `protobuf:"bytes,2,rep,name=list,proto3" json:"list,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *MailTypeList) Reset() { *x = MailTypeList{} mi := &file_mail_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *MailTypeList) String() string { return protoimpl.X.MessageStringOf(x) } func (*MailTypeList) ProtoMessage() {} func (x *MailTypeList) ProtoReflect() protoreflect.Message { mi := &file_mail_proto_msgTypes[3] 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 MailTypeList.ProtoReflect.Descriptor instead. func (*MailTypeList) Descriptor() ([]byte, []int) { return file_mail_proto_rawDescGZIP(), []int{3} } func (x *MailTypeList) GetList() []*MailList { if x != nil { return x.List } return nil } // 邮件列表 type MailList struct { state protoimpl.MessageState `protogen:"open.v1"` // 邮件类型 0系统 1法令 2同盟 3指挥 MailType int32 `protobuf:"varint,1,opt,name=mailType,proto3" json:"mailType,omitempty"` // 置顶法令邮件ID 0为没有置顶 TopMailID int64 `protobuf:"varint,2,opt,name=topMailID,proto3" json:"topMailID,omitempty"` // 邮件列表 List []*Mail `protobuf:"bytes,3,rep,name=list,proto3" json:"list,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *MailList) Reset() { *x = MailList{} mi := &file_mail_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *MailList) String() string { return protoimpl.X.MessageStringOf(x) } func (*MailList) ProtoMessage() {} func (x *MailList) ProtoReflect() protoreflect.Message { mi := &file_mail_proto_msgTypes[4] 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 MailList.ProtoReflect.Descriptor instead. func (*MailList) Descriptor() ([]byte, []int) { return file_mail_proto_rawDescGZIP(), []int{4} } func (x *MailList) GetMailType() int32 { if x != nil { return x.MailType } return 0 } func (x *MailList) GetTopMailID() int64 { if x != nil { return x.TopMailID } return 0 } func (x *MailList) GetList() []*Mail { if x != nil { return x.List } return nil } // 领取邮件奖励 type TakeMailReward struct { state protoimpl.MessageState `protogen:"open.v1"` // 领取邮件id列表 MailIDs []int64 `protobuf:"varint,2,rep,packed,name=mailIDs,proto3" json:"mailIDs,omitempty"` // 领取奖励 List []*Asset `protobuf:"bytes,3,rep,name=list,proto3" json:"list,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *TakeMailReward) Reset() { *x = TakeMailReward{} mi := &file_mail_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *TakeMailReward) String() string { return protoimpl.X.MessageStringOf(x) } func (*TakeMailReward) ProtoMessage() {} func (x *TakeMailReward) ProtoReflect() protoreflect.Message { mi := &file_mail_proto_msgTypes[5] 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 TakeMailReward.ProtoReflect.Descriptor instead. func (*TakeMailReward) Descriptor() ([]byte, []int) { return file_mail_proto_rawDescGZIP(), []int{5} } func (x *TakeMailReward) GetMailIDs() []int64 { if x != nil { return x.MailIDs } return nil } func (x *TakeMailReward) GetList() []*Asset { if x != nil { return x.List } return nil } // 删除邮件列表 type MailDelList struct { state protoimpl.MessageState `protogen:"open.v1"` // 删除邮件类型 0系统 1法令 2同盟 3指挥 MailType int32 `protobuf:"varint,1,opt,name=mailType,proto3" json:"mailType,omitempty"` // 删除邮件唯一ID列表 MailIDs []int64 `protobuf:"varint,2,rep,packed,name=mailIDs,proto3" json:"mailIDs,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *MailDelList) Reset() { *x = MailDelList{} mi := &file_mail_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *MailDelList) String() string { return protoimpl.X.MessageStringOf(x) } func (*MailDelList) ProtoMessage() {} func (x *MailDelList) ProtoReflect() protoreflect.Message { mi := &file_mail_proto_msgTypes[6] 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 MailDelList.ProtoReflect.Descriptor instead. func (*MailDelList) Descriptor() ([]byte, []int) { return file_mail_proto_rawDescGZIP(), []int{6} } func (x *MailDelList) GetMailType() int32 { if x != nil { return x.MailType } return 0 } func (x *MailDelList) GetMailIDs() []int64 { if x != nil { return x.MailIDs } return nil } // 发送/更新联盟邮件 type LeagueMailSend struct { state protoimpl.MessageState `protogen:"open.v1"` // 邮件唯一ID 如果是更新邮件则需要,新增邮件不需要 MailID int64 `protobuf:"varint,1,opt,name=mailID,proto3" json:"mailID,omitempty"` // 联盟邮件类型 1法令 2同盟 3指挥 MailType int32 `protobuf:"varint,2,opt,name=mailType,proto3" json:"mailType,omitempty"` // 联盟邮件标题 Title string `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"` // 联盟邮件内容 Content string `protobuf:"bytes,4,opt,name=content,proto3" json:"content,omitempty"` // 是否置顶 IsTop bool `protobuf:"varint,5,opt,name=isTop,proto3" json:"isTop,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *LeagueMailSend) Reset() { *x = LeagueMailSend{} mi := &file_mail_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *LeagueMailSend) String() string { return protoimpl.X.MessageStringOf(x) } func (*LeagueMailSend) ProtoMessage() {} func (x *LeagueMailSend) ProtoReflect() protoreflect.Message { mi := &file_mail_proto_msgTypes[7] 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 LeagueMailSend.ProtoReflect.Descriptor instead. func (*LeagueMailSend) Descriptor() ([]byte, []int) { return file_mail_proto_rawDescGZIP(), []int{7} } func (x *LeagueMailSend) GetMailID() int64 { if x != nil { return x.MailID } return 0 } func (x *LeagueMailSend) GetMailType() int32 { if x != nil { return x.MailType } return 0 } func (x *LeagueMailSend) GetTitle() string { if x != nil { return x.Title } return "" } func (x *LeagueMailSend) GetContent() string { if x != nil { return x.Content } return "" } func (x *LeagueMailSend) GetIsTop() bool { if x != nil { return x.IsTop } return false } var File_mail_proto protoreflect.FileDescriptor const file_mail_proto_rawDesc = "" + "\n" + "\n" + "mail.proto\x12\x02pb\x1a\x0fbase_type.proto\"\xfe\x01\n" + "\x04Mail\x12\x16\n" + "\x06mailID\x18\x01 \x01(\x03R\x06mailID\x12\"\n" + "\ffromPlayerID\x18\x02 \x01(\x03R\ffromPlayerID\x12&\n" + "\x0efromPlayerName\x18\x03 \x01(\tR\x0efromPlayerName\x12.\n" + "\n" + "systemMail\x18\x04 \x01(\v2\x0e.pb.SystemMailR\n" + "systemMail\x12.\n" + "\n" + "leagueMail\x18\x05 \x01(\v2\x0e.pb.LeagueMailR\n" + "leagueMail\x12\x16\n" + "\x06isRead\x18\x06 \x01(\bR\x06isRead\x12\x1a\n" + "\bsendTime\x18\a \x01(\x03R\bsendTime\"\xb5\x01\n" + "\n" + "SystemMail\x12\x1e\n" + "\n" + "templateID\x18\x01 \x01(\x05R\n" + "templateID\x12&\n" + "\x0etemplateParams\x18\x02 \x03(\tR\x0etemplateParams\x12\x1e\n" + "\n" + "expireTime\x18\x03 \x01(\x03R\n" + "expireTime\x12\x1a\n" + "\bisReward\x18\x04 \x01(\bR\bisReward\x12#\n" + "\arewards\x18\x05 \x03(\v2\t.pb.AssetR\arewards\"N\n" + "\n" + "LeagueMail\x12\x14\n" + "\x05title\x18\x01 \x01(\tR\x05title\x12\x18\n" + "\acontent\x18\x02 \x01(\tR\acontent\x12\x10\n" + "\x03job\x18\x03 \x01(\x05R\x03job\"0\n" + "\fMailTypeList\x12 \n" + "\x04list\x18\x02 \x03(\v2\f.pb.MailListR\x04list\"b\n" + "\bMailList\x12\x1a\n" + "\bmailType\x18\x01 \x01(\x05R\bmailType\x12\x1c\n" + "\ttopMailID\x18\x02 \x01(\x03R\ttopMailID\x12\x1c\n" + "\x04list\x18\x03 \x03(\v2\b.pb.MailR\x04list\"I\n" + "\x0eTakeMailReward\x12\x18\n" + "\amailIDs\x18\x02 \x03(\x03R\amailIDs\x12\x1d\n" + "\x04list\x18\x03 \x03(\v2\t.pb.AssetR\x04list\"C\n" + "\vMailDelList\x12\x1a\n" + "\bmailType\x18\x01 \x01(\x05R\bmailType\x12\x18\n" + "\amailIDs\x18\x02 \x03(\x03R\amailIDs\"\x8a\x01\n" + "\x0eLeagueMailSend\x12\x16\n" + "\x06mailID\x18\x01 \x01(\x03R\x06mailID\x12\x1a\n" + "\bmailType\x18\x02 \x01(\x05R\bmailType\x12\x14\n" + "\x05title\x18\x03 \x01(\tR\x05title\x12\x18\n" + "\acontent\x18\x04 \x01(\tR\acontent\x12\x14\n" + "\x05isTop\x18\x05 \x01(\bR\x05isTopB\x05Z\x03/pbb\x06proto3" var ( file_mail_proto_rawDescOnce sync.Once file_mail_proto_rawDescData []byte ) func file_mail_proto_rawDescGZIP() []byte { file_mail_proto_rawDescOnce.Do(func() { file_mail_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_mail_proto_rawDesc), len(file_mail_proto_rawDesc))) }) return file_mail_proto_rawDescData } var file_mail_proto_msgTypes = make([]protoimpl.MessageInfo, 8) var file_mail_proto_goTypes = []any{ (*Mail)(nil), // 0: pb.Mail (*SystemMail)(nil), // 1: pb.SystemMail (*LeagueMail)(nil), // 2: pb.LeagueMail (*MailTypeList)(nil), // 3: pb.MailTypeList (*MailList)(nil), // 4: pb.MailList (*TakeMailReward)(nil), // 5: pb.TakeMailReward (*MailDelList)(nil), // 6: pb.MailDelList (*LeagueMailSend)(nil), // 7: pb.LeagueMailSend (*Asset)(nil), // 8: pb.Asset } var file_mail_proto_depIdxs = []int32{ 1, // 0: pb.Mail.systemMail:type_name -> pb.SystemMail 2, // 1: pb.Mail.leagueMail:type_name -> pb.LeagueMail 8, // 2: pb.SystemMail.rewards:type_name -> pb.Asset 4, // 3: pb.MailTypeList.list:type_name -> pb.MailList 0, // 4: pb.MailList.list:type_name -> pb.Mail 8, // 5: pb.TakeMailReward.list:type_name -> pb.Asset 6, // [6:6] is the sub-list for method output_type 6, // [6:6] is the sub-list for method input_type 6, // [6:6] is the sub-list for extension type_name 6, // [6:6] is the sub-list for extension extendee 0, // [0:6] is the sub-list for field type_name } func init() { file_mail_proto_init() } func file_mail_proto_init() { if File_mail_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_mail_proto_rawDesc), len(file_mail_proto_rawDesc)), NumEnums: 0, NumMessages: 8, NumExtensions: 0, NumServices: 0, }, GoTypes: file_mail_proto_goTypes, DependencyIndexes: file_mail_proto_depIdxs, MessageInfos: file_mail_proto_msgTypes, }.Build() File_mail_proto = out.File file_mail_proto_goTypes = nil file_mail_proto_depIdxs = nil }