// message结构的属性名请使用 驼峰小写字母开始 // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.36.8 // protoc v6.31.1 // source: rank.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 RankData struct { state protoimpl.MessageState `protogen:"open.v1"` // 名次 Rank int32 `protobuf:"varint,1,opt,name=rank,proto3" json:"rank,omitempty"` // 值 Value int64 `protobuf:"varint,2,opt,name=value,proto3" json:"value,omitempty"` // 更新时间戳 单位毫秒 UpdateTime int64 `protobuf:"varint,3,opt,name=updateTime,proto3" json:"updateTime,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *RankData) Reset() { *x = RankData{} mi := &file_rank_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *RankData) String() string { return protoimpl.X.MessageStringOf(x) } func (*RankData) ProtoMessage() {} func (x *RankData) ProtoReflect() protoreflect.Message { mi := &file_rank_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 RankData.ProtoReflect.Descriptor instead. func (*RankData) Descriptor() ([]byte, []int) { return file_rank_proto_rawDescGZIP(), []int{0} } func (x *RankData) GetRank() int32 { if x != nil { return x.Rank } return 0 } func (x *RankData) GetValue() int64 { if x != nil { return x.Value } return 0 } func (x *RankData) GetUpdateTime() int64 { if x != nil { return x.UpdateTime } return 0 } // 玩家排行榜 type PlayerRanklist struct { state protoimpl.MessageState `protogen:"open.v1"` // 排行榜ID P-排行榜表排行榜ID RankID int32 `protobuf:"varint,1,opt,name=rankID,proto3" json:"rankID,omitempty"` // 排行榜列表 List []*RankPlayer `protobuf:"bytes,2,rep,name=list,proto3" json:"list,omitempty"` // 我的排名 0没有上榜 MyRank int32 `protobuf:"varint,3,opt,name=myRank,proto3" json:"myRank,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *PlayerRanklist) Reset() { *x = PlayerRanklist{} mi := &file_rank_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *PlayerRanklist) String() string { return protoimpl.X.MessageStringOf(x) } func (*PlayerRanklist) ProtoMessage() {} func (x *PlayerRanklist) ProtoReflect() protoreflect.Message { mi := &file_rank_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 PlayerRanklist.ProtoReflect.Descriptor instead. func (*PlayerRanklist) Descriptor() ([]byte, []int) { return file_rank_proto_rawDescGZIP(), []int{1} } func (x *PlayerRanklist) GetRankID() int32 { if x != nil { return x.RankID } return 0 } func (x *PlayerRanklist) GetList() []*RankPlayer { if x != nil { return x.List } return nil } func (x *PlayerRanklist) GetMyRank() int32 { if x != nil { return x.MyRank } return 0 } // 排行榜数据 type RankPlayer 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"` // 头像 IconID int32 `protobuf:"varint,3,opt,name=IconID,proto3" json:"IconID,omitempty"` // 头像框 FrameID int32 `protobuf:"varint,4,opt,name=frameID,proto3" json:"frameID,omitempty"` // 玩家主城坐标 Point *Point `protobuf:"bytes,5,opt,name=point,proto3" json:"point,omitempty"` // 联盟ID LeagueID int64 `protobuf:"varint,6,opt,name=leagueID,proto3" json:"leagueID,omitempty"` // 联盟名称 LeagueName string `protobuf:"bytes,7,opt,name=leagueName,proto3" json:"leagueName,omitempty"` // 排行数据 Data *RankData `protobuf:"bytes,10,opt,name=data,proto3" json:"data,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *RankPlayer) Reset() { *x = RankPlayer{} mi := &file_rank_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *RankPlayer) String() string { return protoimpl.X.MessageStringOf(x) } func (*RankPlayer) ProtoMessage() {} func (x *RankPlayer) ProtoReflect() protoreflect.Message { mi := &file_rank_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 RankPlayer.ProtoReflect.Descriptor instead. func (*RankPlayer) Descriptor() ([]byte, []int) { return file_rank_proto_rawDescGZIP(), []int{2} } func (x *RankPlayer) GetPlayerID() int64 { if x != nil { return x.PlayerID } return 0 } func (x *RankPlayer) GetPlayerName() string { if x != nil { return x.PlayerName } return "" } func (x *RankPlayer) GetIconID() int32 { if x != nil { return x.IconID } return 0 } func (x *RankPlayer) GetFrameID() int32 { if x != nil { return x.FrameID } return 0 } func (x *RankPlayer) GetPoint() *Point { if x != nil { return x.Point } return nil } func (x *RankPlayer) GetLeagueID() int64 { if x != nil { return x.LeagueID } return 0 } func (x *RankPlayer) GetLeagueName() string { if x != nil { return x.LeagueName } return "" } func (x *RankPlayer) GetData() *RankData { if x != nil { return x.Data } return nil } // 联盟排行榜 type LeagueRanklist struct { state protoimpl.MessageState `protogen:"open.v1"` // 排行榜ID P-排行榜表排行榜ID RankID int32 `protobuf:"varint,1,opt,name=rankID,proto3" json:"rankID,omitempty"` // 排行榜列表 List []*RankLeague `protobuf:"bytes,2,rep,name=list,proto3" json:"list,omitempty"` // 我联盟的排名 0没有上榜 MyRank int32 `protobuf:"varint,3,opt,name=myRank,proto3" json:"myRank,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *LeagueRanklist) Reset() { *x = LeagueRanklist{} mi := &file_rank_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *LeagueRanklist) String() string { return protoimpl.X.MessageStringOf(x) } func (*LeagueRanklist) ProtoMessage() {} func (x *LeagueRanklist) ProtoReflect() protoreflect.Message { mi := &file_rank_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 LeagueRanklist.ProtoReflect.Descriptor instead. func (*LeagueRanklist) Descriptor() ([]byte, []int) { return file_rank_proto_rawDescGZIP(), []int{3} } func (x *LeagueRanklist) GetRankID() int32 { if x != nil { return x.RankID } return 0 } func (x *LeagueRanklist) GetList() []*RankLeague { if x != nil { return x.List } return nil } func (x *LeagueRanklist) GetMyRank() int32 { if x != nil { return x.MyRank } return 0 } // 排行榜数据 type RankLeague struct { state protoimpl.MessageState `protogen:"open.v1"` // 联盟ID LeagueID int64 `protobuf:"varint,1,opt,name=leagueID,proto3" json:"leagueID,omitempty"` // 联盟名称 LeagueName string `protobuf:"bytes,2,opt,name=leagueName,proto3" json:"leagueName,omitempty"` // 联盟简称 LeagueAbbName string `protobuf:"bytes,3,opt,name=leagueAbbName,proto3" json:"leagueAbbName,omitempty"` // 盟主玩家ID LeaderID int64 `protobuf:"varint,4,opt,name=leaderID,proto3" json:"leaderID,omitempty"` // 联盟盟主玩家名0 PlayerName string `protobuf:"bytes,5,opt,name=playerName,proto3" json:"playerName,omitempty"` // 联盟驻地坐标 Point *Point `protobuf:"bytes,6,opt,name=point,proto3" json:"point,omitempty"` // 当前联盟成员数量 MemberCount int32 `protobuf:"varint,7,opt,name=memberCount,proto3" json:"memberCount,omitempty"` // 联盟成员上限 MemberLimit int32 `protobuf:"varint,8,opt,name=memberLimit,proto3" json:"memberLimit,omitempty"` // 排行数据 Data *RankData `protobuf:"bytes,15,opt,name=data,proto3" json:"data,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *RankLeague) Reset() { *x = RankLeague{} mi := &file_rank_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *RankLeague) String() string { return protoimpl.X.MessageStringOf(x) } func (*RankLeague) ProtoMessage() {} func (x *RankLeague) ProtoReflect() protoreflect.Message { mi := &file_rank_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 RankLeague.ProtoReflect.Descriptor instead. func (*RankLeague) Descriptor() ([]byte, []int) { return file_rank_proto_rawDescGZIP(), []int{4} } func (x *RankLeague) GetLeagueID() int64 { if x != nil { return x.LeagueID } return 0 } func (x *RankLeague) GetLeagueName() string { if x != nil { return x.LeagueName } return "" } func (x *RankLeague) GetLeagueAbbName() string { if x != nil { return x.LeagueAbbName } return "" } func (x *RankLeague) GetLeaderID() int64 { if x != nil { return x.LeaderID } return 0 } func (x *RankLeague) GetPlayerName() string { if x != nil { return x.PlayerName } return "" } func (x *RankLeague) GetPoint() *Point { if x != nil { return x.Point } return nil } func (x *RankLeague) GetMemberCount() int32 { if x != nil { return x.MemberCount } return 0 } func (x *RankLeague) GetMemberLimit() int32 { if x != nil { return x.MemberLimit } return 0 } func (x *RankLeague) GetData() *RankData { if x != nil { return x.Data } return nil } // 攻占城池列表 type OccupyCastleList struct { state protoimpl.MessageState `protogen:"open.v1"` List []*OccupyCastle `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *OccupyCastleList) Reset() { *x = OccupyCastleList{} mi := &file_rank_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *OccupyCastleList) String() string { return protoimpl.X.MessageStringOf(x) } func (*OccupyCastleList) ProtoMessage() {} func (x *OccupyCastleList) ProtoReflect() protoreflect.Message { mi := &file_rank_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 OccupyCastleList.ProtoReflect.Descriptor instead. func (*OccupyCastleList) Descriptor() ([]byte, []int) { return file_rank_proto_rawDescGZIP(), []int{5} } func (x *OccupyCastleList) GetList() []*OccupyCastle { if x != nil { return x.List } return nil } // 攻占城池 type OccupyCastle struct { state protoimpl.MessageState `protogen:"open.v1"` // 城池ID D-地图-城池表城池配置ID CastleID int32 `protobuf:"varint,1,opt,name=castleID,proto3" json:"castleID,omitempty"` // 占领联盟ID LeagueID int64 `protobuf:"varint,2,opt,name=leagueID,proto3" json:"leagueID,omitempty"` // 占领联盟名称 LeagueName string `protobuf:"bytes,3,opt,name=leagueName,proto3" json:"leagueName,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *OccupyCastle) Reset() { *x = OccupyCastle{} mi := &file_rank_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *OccupyCastle) String() string { return protoimpl.X.MessageStringOf(x) } func (*OccupyCastle) ProtoMessage() {} func (x *OccupyCastle) ProtoReflect() protoreflect.Message { mi := &file_rank_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 OccupyCastle.ProtoReflect.Descriptor instead. func (*OccupyCastle) Descriptor() ([]byte, []int) { return file_rank_proto_rawDescGZIP(), []int{6} } func (x *OccupyCastle) GetCastleID() int32 { if x != nil { return x.CastleID } return 0 } func (x *OccupyCastle) GetLeagueID() int64 { if x != nil { return x.LeagueID } return 0 } func (x *OccupyCastle) GetLeagueName() string { if x != nil { return x.LeagueName } return "" } var File_rank_proto protoreflect.FileDescriptor const file_rank_proto_rawDesc = "" + "\n" + "\n" + "rank.proto\x12\x02pb\x1a\x0fbase_type.proto\"T\n" + "\bRankData\x12\x12\n" + "\x04rank\x18\x01 \x01(\x05R\x04rank\x12\x14\n" + "\x05value\x18\x02 \x01(\x03R\x05value\x12\x1e\n" + "\n" + "updateTime\x18\x03 \x01(\x03R\n" + "updateTime\"d\n" + "\x0ePlayerRanklist\x12\x16\n" + "\x06rankID\x18\x01 \x01(\x05R\x06rankID\x12\"\n" + "\x04list\x18\x02 \x03(\v2\x0e.pb.RankPlayerR\x04list\x12\x16\n" + "\x06myRank\x18\x03 \x01(\x05R\x06myRank\"\xf9\x01\n" + "\n" + "RankPlayer\x12\x1a\n" + "\bplayerID\x18\x01 \x01(\x03R\bplayerID\x12\x1e\n" + "\n" + "playerName\x18\x02 \x01(\tR\n" + "playerName\x12\x16\n" + "\x06IconID\x18\x03 \x01(\x05R\x06IconID\x12\x18\n" + "\aframeID\x18\x04 \x01(\x05R\aframeID\x12\x1f\n" + "\x05point\x18\x05 \x01(\v2\t.pb.PointR\x05point\x12\x1a\n" + "\bleagueID\x18\x06 \x01(\x03R\bleagueID\x12\x1e\n" + "\n" + "leagueName\x18\a \x01(\tR\n" + "leagueName\x12 \n" + "\x04data\x18\n" + " \x01(\v2\f.pb.RankDataR\x04data\"d\n" + "\x0eLeagueRanklist\x12\x16\n" + "\x06rankID\x18\x01 \x01(\x05R\x06rankID\x12\"\n" + "\x04list\x18\x02 \x03(\v2\x0e.pb.RankLeagueR\x04list\x12\x16\n" + "\x06myRank\x18\x03 \x01(\x05R\x06myRank\"\xb1\x02\n" + "\n" + "RankLeague\x12\x1a\n" + "\bleagueID\x18\x01 \x01(\x03R\bleagueID\x12\x1e\n" + "\n" + "leagueName\x18\x02 \x01(\tR\n" + "leagueName\x12$\n" + "\rleagueAbbName\x18\x03 \x01(\tR\rleagueAbbName\x12\x1a\n" + "\bleaderID\x18\x04 \x01(\x03R\bleaderID\x12\x1e\n" + "\n" + "playerName\x18\x05 \x01(\tR\n" + "playerName\x12\x1f\n" + "\x05point\x18\x06 \x01(\v2\t.pb.PointR\x05point\x12 \n" + "\vmemberCount\x18\a \x01(\x05R\vmemberCount\x12 \n" + "\vmemberLimit\x18\b \x01(\x05R\vmemberLimit\x12 \n" + "\x04data\x18\x0f \x01(\v2\f.pb.RankDataR\x04data\"8\n" + "\x10OccupyCastleList\x12$\n" + "\x04list\x18\x01 \x03(\v2\x10.pb.OccupyCastleR\x04list\"f\n" + "\fOccupyCastle\x12\x1a\n" + "\bcastleID\x18\x01 \x01(\x05R\bcastleID\x12\x1a\n" + "\bleagueID\x18\x02 \x01(\x03R\bleagueID\x12\x1e\n" + "\n" + "leagueName\x18\x03 \x01(\tR\n" + "leagueNameB\x05Z\x03/pbb\x06proto3" var ( file_rank_proto_rawDescOnce sync.Once file_rank_proto_rawDescData []byte ) func file_rank_proto_rawDescGZIP() []byte { file_rank_proto_rawDescOnce.Do(func() { file_rank_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_rank_proto_rawDesc), len(file_rank_proto_rawDesc))) }) return file_rank_proto_rawDescData } var file_rank_proto_msgTypes = make([]protoimpl.MessageInfo, 7) var file_rank_proto_goTypes = []any{ (*RankData)(nil), // 0: pb.RankData (*PlayerRanklist)(nil), // 1: pb.PlayerRanklist (*RankPlayer)(nil), // 2: pb.RankPlayer (*LeagueRanklist)(nil), // 3: pb.LeagueRanklist (*RankLeague)(nil), // 4: pb.RankLeague (*OccupyCastleList)(nil), // 5: pb.OccupyCastleList (*OccupyCastle)(nil), // 6: pb.OccupyCastle (*Point)(nil), // 7: pb.Point } var file_rank_proto_depIdxs = []int32{ 2, // 0: pb.PlayerRanklist.list:type_name -> pb.RankPlayer 7, // 1: pb.RankPlayer.point:type_name -> pb.Point 0, // 2: pb.RankPlayer.data:type_name -> pb.RankData 4, // 3: pb.LeagueRanklist.list:type_name -> pb.RankLeague 7, // 4: pb.RankLeague.point:type_name -> pb.Point 0, // 5: pb.RankLeague.data:type_name -> pb.RankData 6, // 6: pb.OccupyCastleList.list:type_name -> pb.OccupyCastle 7, // [7:7] is the sub-list for method output_type 7, // [7:7] is the sub-list for method input_type 7, // [7:7] is the sub-list for extension type_name 7, // [7:7] is the sub-list for extension extendee 0, // [0:7] is the sub-list for field type_name } func init() { file_rank_proto_init() } func file_rank_proto_init() { if File_rank_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_rank_proto_rawDesc), len(file_rank_proto_rawDesc)), NumEnums: 0, NumMessages: 7, NumExtensions: 0, NumServices: 0, }, GoTypes: file_rank_proto_goTypes, DependencyIndexes: file_rank_proto_depIdxs, MessageInfos: file_rank_proto_msgTypes, }.Build() File_rank_proto = out.File file_rank_proto_goTypes = nil file_rank_proto_depIdxs = nil }