| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886 |
- // message结构的属性名请使用 驼峰小写字母开始
- // Code generated by protoc-gen-go. DO NOT EDIT.
- // versions:
- // protoc-gen-go v1.36.8
- // protoc v6.31.1
- // source: battle_report.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 ReportInfo struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- // 个人收藏战报列表
- List []*ReportLike `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"`
- // 未读战报数量
- Count int32 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
- }
- func (x *ReportInfo) Reset() {
- *x = ReportInfo{}
- mi := &file_battle_report_proto_msgTypes[0]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- func (x *ReportInfo) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*ReportInfo) ProtoMessage() {}
- func (x *ReportInfo) ProtoReflect() protoreflect.Message {
- mi := &file_battle_report_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 ReportInfo.ProtoReflect.Descriptor instead.
- func (*ReportInfo) Descriptor() ([]byte, []int) {
- return file_battle_report_proto_rawDescGZIP(), []int{0}
- }
- func (x *ReportInfo) GetList() []*ReportLike {
- if x != nil {
- return x.List
- }
- return nil
- }
- func (x *ReportInfo) GetCount() int32 {
- if x != nil {
- return x.Count
- }
- return 0
- }
- // 战报组列表
- type ReportGroupList struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- List []*ReportGroup `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
- }
- func (x *ReportGroupList) Reset() {
- *x = ReportGroupList{}
- mi := &file_battle_report_proto_msgTypes[1]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- func (x *ReportGroupList) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*ReportGroupList) ProtoMessage() {}
- func (x *ReportGroupList) ProtoReflect() protoreflect.Message {
- mi := &file_battle_report_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 ReportGroupList.ProtoReflect.Descriptor instead.
- func (*ReportGroupList) Descriptor() ([]byte, []int) {
- return file_battle_report_proto_rawDescGZIP(), []int{1}
- }
- func (x *ReportGroupList) GetList() []*ReportGroup {
- if x != nil {
- return x.List
- }
- return nil
- }
- // 收藏战报信息
- type ReportLike struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- // 收藏类型 1:战报组 2:单个战报
- LikeType int32 `protobuf:"varint,1,opt,name=likeType,proto3" json:"likeType,omitempty"`
- // 收藏ID
- LikeID string `protobuf:"bytes,2,opt,name=likeID,proto3" json:"likeID,omitempty"`
- // 战报列表, likeType=2时,只会有一个战报
- List []*Report `protobuf:"bytes,3,rep,name=list,proto3" json:"list,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
- }
- func (x *ReportLike) Reset() {
- *x = ReportLike{}
- mi := &file_battle_report_proto_msgTypes[2]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- func (x *ReportLike) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*ReportLike) ProtoMessage() {}
- func (x *ReportLike) ProtoReflect() protoreflect.Message {
- mi := &file_battle_report_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 ReportLike.ProtoReflect.Descriptor instead.
- func (*ReportLike) Descriptor() ([]byte, []int) {
- return file_battle_report_proto_rawDescGZIP(), []int{2}
- }
- func (x *ReportLike) GetLikeType() int32 {
- if x != nil {
- return x.LikeType
- }
- return 0
- }
- func (x *ReportLike) GetLikeID() string {
- if x != nil {
- return x.LikeID
- }
- return ""
- }
- func (x *ReportLike) GetList() []*Report {
- if x != nil {
- return x.List
- }
- return nil
- }
- // 战报组
- type ReportGroup struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- // 战报组ID
- GroupID string `protobuf:"bytes,1,opt,name=groupID,proto3" json:"groupID,omitempty"`
- // 分类ID 1:开拓 2:交战
- Category int32 `protobuf:"varint,2,opt,name=category,proto3" json:"category,omitempty"`
- // 战报列表
- List []*Report `protobuf:"bytes,3,rep,name=list,proto3" json:"list,omitempty"`
- // 是否已读
- IsRead bool `protobuf:"varint,4,opt,name=isRead,proto3" json:"isRead,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
- }
- func (x *ReportGroup) Reset() {
- *x = ReportGroup{}
- mi := &file_battle_report_proto_msgTypes[3]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- func (x *ReportGroup) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*ReportGroup) ProtoMessage() {}
- func (x *ReportGroup) ProtoReflect() protoreflect.Message {
- mi := &file_battle_report_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 ReportGroup.ProtoReflect.Descriptor instead.
- func (*ReportGroup) Descriptor() ([]byte, []int) {
- return file_battle_report_proto_rawDescGZIP(), []int{3}
- }
- func (x *ReportGroup) GetGroupID() string {
- if x != nil {
- return x.GroupID
- }
- return ""
- }
- func (x *ReportGroup) GetCategory() int32 {
- if x != nil {
- return x.Category
- }
- return 0
- }
- func (x *ReportGroup) GetList() []*Report {
- if x != nil {
- return x.List
- }
- return nil
- }
- func (x *ReportGroup) GetIsRead() bool {
- if x != nil {
- return x.IsRead
- }
- return false
- }
- // 战报信息
- type Report struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- // 战报ID
- ReportID string `protobuf:"bytes,1,opt,name=reportID,proto3" json:"reportID,omitempty"`
- // 战斗类型 1:遭遇战 2:守军战 3: 攻城-驻城部队战 4:攻城-耐久战
- BattleType int32 `protobuf:"varint,2,opt,name=battleType,proto3" json:"battleType,omitempty"`
- // 坐标点
- Point *Point `protobuf:"bytes,3,opt,name=point,proto3" json:"point,omitempty"`
- // 地块配置ID 显示地块对象名称
- ConfigID int32 `protobuf:"varint,4,opt,name=configID,proto3" json:"configID,omitempty"`
- // 时间
- Time int64 `protobuf:"varint,5,opt,name=time,proto3" json:"time,omitempty"`
- // 是否是防守方
- IsDefender bool `protobuf:"varint,6,opt,name=isDefender,proto3" json:"isDefender,omitempty"`
- // 进攻方
- Attacker *BattleReportTeam `protobuf:"bytes,7,opt,name=attacker,proto3" json:"attacker,omitempty"`
- // 防守方
- Defender *BattleReportTeam `protobuf:"bytes,8,opt,name=defender,proto3" json:"defender,omitempty"`
- // 战斗结果 0:胜利 1:失败 -1:平局
- Result int32 `protobuf:"varint,9,opt,name=result,proto3" json:"result,omitempty"`
- // 战果
- ReportResult *ReportResult `protobuf:"bytes,10,opt,name=reportResult,proto3" json:"reportResult,omitempty"`
- // 战斗录像ID
- BattleRecordID string `protobuf:"bytes,11,opt,name=battleRecordID,proto3" json:"battleRecordID,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
- }
- func (x *Report) Reset() {
- *x = Report{}
- mi := &file_battle_report_proto_msgTypes[4]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- func (x *Report) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*Report) ProtoMessage() {}
- func (x *Report) ProtoReflect() protoreflect.Message {
- mi := &file_battle_report_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 Report.ProtoReflect.Descriptor instead.
- func (*Report) Descriptor() ([]byte, []int) {
- return file_battle_report_proto_rawDescGZIP(), []int{4}
- }
- func (x *Report) GetReportID() string {
- if x != nil {
- return x.ReportID
- }
- return ""
- }
- func (x *Report) GetBattleType() int32 {
- if x != nil {
- return x.BattleType
- }
- return 0
- }
- func (x *Report) GetPoint() *Point {
- if x != nil {
- return x.Point
- }
- return nil
- }
- func (x *Report) GetConfigID() int32 {
- if x != nil {
- return x.ConfigID
- }
- return 0
- }
- func (x *Report) GetTime() int64 {
- if x != nil {
- return x.Time
- }
- return 0
- }
- func (x *Report) GetIsDefender() bool {
- if x != nil {
- return x.IsDefender
- }
- return false
- }
- func (x *Report) GetAttacker() *BattleReportTeam {
- if x != nil {
- return x.Attacker
- }
- return nil
- }
- func (x *Report) GetDefender() *BattleReportTeam {
- if x != nil {
- return x.Defender
- }
- return nil
- }
- func (x *Report) GetResult() int32 {
- if x != nil {
- return x.Result
- }
- return 0
- }
- func (x *Report) GetReportResult() *ReportResult {
- if x != nil {
- return x.ReportResult
- }
- return nil
- }
- func (x *Report) GetBattleRecordID() string {
- if x != nil {
- return x.BattleRecordID
- }
- return ""
- }
- // 战果
- type ReportResult struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- // 资源列表
- Rewards *AssetList `protobuf:"bytes,1,opt,name=rewards,proto3" json:"rewards,omitempty"`
- // 耐久扣除数量
- Durability int32 `protobuf:"varint,2,opt,name=durability,proto3" json:"durability,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
- }
- func (x *ReportResult) Reset() {
- *x = ReportResult{}
- mi := &file_battle_report_proto_msgTypes[5]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- func (x *ReportResult) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*ReportResult) ProtoMessage() {}
- func (x *ReportResult) ProtoReflect() protoreflect.Message {
- mi := &file_battle_report_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 ReportResult.ProtoReflect.Descriptor instead.
- func (*ReportResult) Descriptor() ([]byte, []int) {
- return file_battle_report_proto_rawDescGZIP(), []int{5}
- }
- func (x *ReportResult) GetRewards() *AssetList {
- if x != nil {
- return x.Rewards
- }
- return nil
- }
- func (x *ReportResult) GetDurability() int32 {
- if x != nil {
- return x.Durability
- }
- return 0
- }
- // 战报队伍
- type BattleReportTeam struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- // 玩家ID
- PlayerID int64 `protobuf:"varint,1,opt,name=playerID,proto3" json:"playerID,omitempty"`
- // 玩家昵称
- PlayerName string `protobuf:"bytes,2,opt,name=playerName,proto3" json:"playerName,omitempty"`
- // 联盟ID
- LeagueID int64 `protobuf:"varint,3,opt,name=leagueID,proto3" json:"leagueID,omitempty"`
- // 联盟名称
- LeagueName string `protobuf:"bytes,4,opt,name=leagueName,proto3" json:"leagueName,omitempty"`
- // 战斗对象列表
- List []*BattleReportObject `protobuf:"bytes,5,rep,name=list,proto3" json:"list,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
- }
- func (x *BattleReportTeam) Reset() {
- *x = BattleReportTeam{}
- mi := &file_battle_report_proto_msgTypes[6]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- func (x *BattleReportTeam) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*BattleReportTeam) ProtoMessage() {}
- func (x *BattleReportTeam) ProtoReflect() protoreflect.Message {
- mi := &file_battle_report_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 BattleReportTeam.ProtoReflect.Descriptor instead.
- func (*BattleReportTeam) Descriptor() ([]byte, []int) {
- return file_battle_report_proto_rawDescGZIP(), []int{6}
- }
- func (x *BattleReportTeam) GetPlayerID() int64 {
- if x != nil {
- return x.PlayerID
- }
- return 0
- }
- func (x *BattleReportTeam) GetPlayerName() string {
- if x != nil {
- return x.PlayerName
- }
- return ""
- }
- func (x *BattleReportTeam) GetLeagueID() int64 {
- if x != nil {
- return x.LeagueID
- }
- return 0
- }
- func (x *BattleReportTeam) GetLeagueName() string {
- if x != nil {
- return x.LeagueName
- }
- return ""
- }
- func (x *BattleReportTeam) GetList() []*BattleReportObject {
- if x != nil {
- return x.List
- }
- return nil
- }
- // 战报的基础战斗对象
- type BattleReportObject struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- // 对象唯一ID
- Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
- // 对象配置表ID
- ObjConfigID int32 `protobuf:"varint,2,opt,name=objConfigID,proto3" json:"objConfigID,omitempty"`
- // 对象类型 1:英雄 2:怪物
- BattleObjType int32 `protobuf:"varint,3,opt,name=battleObjType,proto3" json:"battleObjType,omitempty"`
- // 等级
- Level int32 `protobuf:"varint,4,opt,name=level,proto3" json:"level,omitempty"`
- // 星级
- Star int32 `protobuf:"varint,5,opt,name=star,proto3" json:"star,omitempty"`
- // 阵容ID
- LineupID int32 `protobuf:"varint,6,opt,name=lineupID,proto3" json:"lineupID,omitempty"`
- // 是否阵亡
- IsDead bool `protobuf:"varint,7,opt,name=isDead,proto3" json:"isDead,omitempty"`
- // 兵种ID 士兵-兵种表兵种ID
- TroopsID int32 `protobuf:"varint,8,opt,name=troopsID,proto3" json:"troopsID,omitempty"`
- // 总兵力
- TotalSoldier int32 `protobuf:"varint,9,opt,name=totalSoldier,proto3" json:"totalSoldier,omitempty"`
- // 剩余兵力
- RemainSoldier int32 `protobuf:"varint,10,opt,name=remainSoldier,proto3" json:"remainSoldier,omitempty"`
- // 最大生命值
- MaxHealth int64 `protobuf:"varint,11,opt,name=maxHealth,proto3" json:"maxHealth,omitempty"`
- // 剩余生命值万分比
- Health int32 `protobuf:"varint,12,opt,name=health,proto3" json:"health,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
- }
- func (x *BattleReportObject) Reset() {
- *x = BattleReportObject{}
- mi := &file_battle_report_proto_msgTypes[7]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- func (x *BattleReportObject) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*BattleReportObject) ProtoMessage() {}
- func (x *BattleReportObject) ProtoReflect() protoreflect.Message {
- mi := &file_battle_report_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 BattleReportObject.ProtoReflect.Descriptor instead.
- func (*BattleReportObject) Descriptor() ([]byte, []int) {
- return file_battle_report_proto_rawDescGZIP(), []int{7}
- }
- func (x *BattleReportObject) GetId() int64 {
- if x != nil {
- return x.Id
- }
- return 0
- }
- func (x *BattleReportObject) GetObjConfigID() int32 {
- if x != nil {
- return x.ObjConfigID
- }
- return 0
- }
- func (x *BattleReportObject) GetBattleObjType() int32 {
- if x != nil {
- return x.BattleObjType
- }
- return 0
- }
- func (x *BattleReportObject) GetLevel() int32 {
- if x != nil {
- return x.Level
- }
- return 0
- }
- func (x *BattleReportObject) GetStar() int32 {
- if x != nil {
- return x.Star
- }
- return 0
- }
- func (x *BattleReportObject) GetLineupID() int32 {
- if x != nil {
- return x.LineupID
- }
- return 0
- }
- func (x *BattleReportObject) GetIsDead() bool {
- if x != nil {
- return x.IsDead
- }
- return false
- }
- func (x *BattleReportObject) GetTroopsID() int32 {
- if x != nil {
- return x.TroopsID
- }
- return 0
- }
- func (x *BattleReportObject) GetTotalSoldier() int32 {
- if x != nil {
- return x.TotalSoldier
- }
- return 0
- }
- func (x *BattleReportObject) GetRemainSoldier() int32 {
- if x != nil {
- return x.RemainSoldier
- }
- return 0
- }
- func (x *BattleReportObject) GetMaxHealth() int64 {
- if x != nil {
- return x.MaxHealth
- }
- return 0
- }
- func (x *BattleReportObject) GetHealth() int32 {
- if x != nil {
- return x.Health
- }
- return 0
- }
- // 收藏战报请求
- type ReportLikeRequest struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- // 收藏类型 1:战报组 2:单个战报
- LikeType int32 `protobuf:"varint,1,opt,name=likeType,proto3" json:"likeType,omitempty"`
- // 收藏ID likeType=1时,值为战报组ID; likeType=2时,值为战报ID
- LikeID string `protobuf:"bytes,2,opt,name=likeID,proto3" json:"likeID,omitempty"`
- // 是否收藏 true:收藏 false:取消收藏
- IsLike bool `protobuf:"varint,3,opt,name=isLike,proto3" json:"isLike,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
- }
- func (x *ReportLikeRequest) Reset() {
- *x = ReportLikeRequest{}
- mi := &file_battle_report_proto_msgTypes[8]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- func (x *ReportLikeRequest) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*ReportLikeRequest) ProtoMessage() {}
- func (x *ReportLikeRequest) ProtoReflect() protoreflect.Message {
- mi := &file_battle_report_proto_msgTypes[8]
- 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 ReportLikeRequest.ProtoReflect.Descriptor instead.
- func (*ReportLikeRequest) Descriptor() ([]byte, []int) {
- return file_battle_report_proto_rawDescGZIP(), []int{8}
- }
- func (x *ReportLikeRequest) GetLikeType() int32 {
- if x != nil {
- return x.LikeType
- }
- return 0
- }
- func (x *ReportLikeRequest) GetLikeID() string {
- if x != nil {
- return x.LikeID
- }
- return ""
- }
- func (x *ReportLikeRequest) GetIsLike() bool {
- if x != nil {
- return x.IsLike
- }
- return false
- }
- var File_battle_report_proto protoreflect.FileDescriptor
- const file_battle_report_proto_rawDesc = "" +
- "\n" +
- "\x13battle_report.proto\x12\x02pb\x1a\x0fbase_type.proto\"F\n" +
- "\n" +
- "ReportInfo\x12\"\n" +
- "\x04list\x18\x01 \x03(\v2\x0e.pb.ReportLikeR\x04list\x12\x14\n" +
- "\x05count\x18\x02 \x01(\x05R\x05count\"6\n" +
- "\x0fReportGroupList\x12#\n" +
- "\x04list\x18\x01 \x03(\v2\x0f.pb.ReportGroupR\x04list\"`\n" +
- "\n" +
- "ReportLike\x12\x1a\n" +
- "\blikeType\x18\x01 \x01(\x05R\blikeType\x12\x16\n" +
- "\x06likeID\x18\x02 \x01(\tR\x06likeID\x12\x1e\n" +
- "\x04list\x18\x03 \x03(\v2\n" +
- ".pb.ReportR\x04list\"{\n" +
- "\vReportGroup\x12\x18\n" +
- "\agroupID\x18\x01 \x01(\tR\agroupID\x12\x1a\n" +
- "\bcategory\x18\x02 \x01(\x05R\bcategory\x12\x1e\n" +
- "\x04list\x18\x03 \x03(\v2\n" +
- ".pb.ReportR\x04list\x12\x16\n" +
- "\x06isRead\x18\x04 \x01(\bR\x06isRead\"\x8f\x03\n" +
- "\x06Report\x12\x1a\n" +
- "\breportID\x18\x01 \x01(\tR\breportID\x12\x1e\n" +
- "\n" +
- "battleType\x18\x02 \x01(\x05R\n" +
- "battleType\x12\x1f\n" +
- "\x05point\x18\x03 \x01(\v2\t.pb.PointR\x05point\x12\x1a\n" +
- "\bconfigID\x18\x04 \x01(\x05R\bconfigID\x12\x12\n" +
- "\x04time\x18\x05 \x01(\x03R\x04time\x12\x1e\n" +
- "\n" +
- "isDefender\x18\x06 \x01(\bR\n" +
- "isDefender\x120\n" +
- "\battacker\x18\a \x01(\v2\x14.pb.BattleReportTeamR\battacker\x120\n" +
- "\bdefender\x18\b \x01(\v2\x14.pb.BattleReportTeamR\bdefender\x12\x16\n" +
- "\x06result\x18\t \x01(\x05R\x06result\x124\n" +
- "\freportResult\x18\n" +
- " \x01(\v2\x10.pb.ReportResultR\freportResult\x12&\n" +
- "\x0ebattleRecordID\x18\v \x01(\tR\x0ebattleRecordID\"W\n" +
- "\fReportResult\x12'\n" +
- "\arewards\x18\x01 \x01(\v2\r.pb.AssetListR\arewards\x12\x1e\n" +
- "\n" +
- "durability\x18\x02 \x01(\x05R\n" +
- "durability\"\xb6\x01\n" +
- "\x10BattleReportTeam\x12\x1a\n" +
- "\bplayerID\x18\x01 \x01(\x03R\bplayerID\x12\x1e\n" +
- "\n" +
- "playerName\x18\x02 \x01(\tR\n" +
- "playerName\x12\x1a\n" +
- "\bleagueID\x18\x03 \x01(\x03R\bleagueID\x12\x1e\n" +
- "\n" +
- "leagueName\x18\x04 \x01(\tR\n" +
- "leagueName\x12*\n" +
- "\x04list\x18\x05 \x03(\v2\x16.pb.BattleReportObjectR\x04list\"\xe6\x02\n" +
- "\x12BattleReportObject\x12\x0e\n" +
- "\x02id\x18\x01 \x01(\x03R\x02id\x12 \n" +
- "\vobjConfigID\x18\x02 \x01(\x05R\vobjConfigID\x12$\n" +
- "\rbattleObjType\x18\x03 \x01(\x05R\rbattleObjType\x12\x14\n" +
- "\x05level\x18\x04 \x01(\x05R\x05level\x12\x12\n" +
- "\x04star\x18\x05 \x01(\x05R\x04star\x12\x1a\n" +
- "\blineupID\x18\x06 \x01(\x05R\blineupID\x12\x16\n" +
- "\x06isDead\x18\a \x01(\bR\x06isDead\x12\x1a\n" +
- "\btroopsID\x18\b \x01(\x05R\btroopsID\x12\"\n" +
- "\ftotalSoldier\x18\t \x01(\x05R\ftotalSoldier\x12$\n" +
- "\rremainSoldier\x18\n" +
- " \x01(\x05R\rremainSoldier\x12\x1c\n" +
- "\tmaxHealth\x18\v \x01(\x03R\tmaxHealth\x12\x16\n" +
- "\x06health\x18\f \x01(\x05R\x06health\"_\n" +
- "\x11ReportLikeRequest\x12\x1a\n" +
- "\blikeType\x18\x01 \x01(\x05R\blikeType\x12\x16\n" +
- "\x06likeID\x18\x02 \x01(\tR\x06likeID\x12\x16\n" +
- "\x06isLike\x18\x03 \x01(\bR\x06isLikeB\x05Z\x03/pbb\x06proto3"
- var (
- file_battle_report_proto_rawDescOnce sync.Once
- file_battle_report_proto_rawDescData []byte
- )
- func file_battle_report_proto_rawDescGZIP() []byte {
- file_battle_report_proto_rawDescOnce.Do(func() {
- file_battle_report_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_battle_report_proto_rawDesc), len(file_battle_report_proto_rawDesc)))
- })
- return file_battle_report_proto_rawDescData
- }
- var file_battle_report_proto_msgTypes = make([]protoimpl.MessageInfo, 9)
- var file_battle_report_proto_goTypes = []any{
- (*ReportInfo)(nil), // 0: pb.ReportInfo
- (*ReportGroupList)(nil), // 1: pb.ReportGroupList
- (*ReportLike)(nil), // 2: pb.ReportLike
- (*ReportGroup)(nil), // 3: pb.ReportGroup
- (*Report)(nil), // 4: pb.Report
- (*ReportResult)(nil), // 5: pb.ReportResult
- (*BattleReportTeam)(nil), // 6: pb.BattleReportTeam
- (*BattleReportObject)(nil), // 7: pb.BattleReportObject
- (*ReportLikeRequest)(nil), // 8: pb.ReportLikeRequest
- (*Point)(nil), // 9: pb.Point
- (*AssetList)(nil), // 10: pb.AssetList
- }
- var file_battle_report_proto_depIdxs = []int32{
- 2, // 0: pb.ReportInfo.list:type_name -> pb.ReportLike
- 3, // 1: pb.ReportGroupList.list:type_name -> pb.ReportGroup
- 4, // 2: pb.ReportLike.list:type_name -> pb.Report
- 4, // 3: pb.ReportGroup.list:type_name -> pb.Report
- 9, // 4: pb.Report.point:type_name -> pb.Point
- 6, // 5: pb.Report.attacker:type_name -> pb.BattleReportTeam
- 6, // 6: pb.Report.defender:type_name -> pb.BattleReportTeam
- 5, // 7: pb.Report.reportResult:type_name -> pb.ReportResult
- 10, // 8: pb.ReportResult.rewards:type_name -> pb.AssetList
- 7, // 9: pb.BattleReportTeam.list:type_name -> pb.BattleReportObject
- 10, // [10:10] is the sub-list for method output_type
- 10, // [10:10] is the sub-list for method input_type
- 10, // [10:10] is the sub-list for extension type_name
- 10, // [10:10] is the sub-list for extension extendee
- 0, // [0:10] is the sub-list for field type_name
- }
- func init() { file_battle_report_proto_init() }
- func file_battle_report_proto_init() {
- if File_battle_report_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_battle_report_proto_rawDesc), len(file_battle_report_proto_rawDesc)),
- NumEnums: 0,
- NumMessages: 9,
- NumExtensions: 0,
- NumServices: 0,
- },
- GoTypes: file_battle_report_proto_goTypes,
- DependencyIndexes: file_battle_report_proto_depIdxs,
- MessageInfos: file_battle_report_proto_msgTypes,
- }.Build()
- File_battle_report_proto = out.File
- file_battle_report_proto_goTypes = nil
- file_battle_report_proto_depIdxs = nil
- }
|