diff --git a/stalker.pb.go b/stalker.pb.go index e20f34c..1a7e3e0 100644 --- a/stalker.pb.go +++ b/stalker.pb.go @@ -2,7 +2,7 @@ // versions: // protoc-gen-go v1.36.11 // protoc v7.34.0 -// source: proto/stalker.proto +// source: stalker.proto package stalker @@ -37,7 +37,7 @@ type Player struct { func (x *Player) Reset() { *x = Player{} - mi := &file_proto_stalker_proto_msgTypes[0] + mi := &file_stalker_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -49,7 +49,7 @@ func (x *Player) String() string { func (*Player) ProtoMessage() {} func (x *Player) ProtoReflect() protoreflect.Message { - mi := &file_proto_stalker_proto_msgTypes[0] + mi := &file_stalker_proto_msgTypes[0] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -62,7 +62,7 @@ func (x *Player) ProtoReflect() protoreflect.Message { // Deprecated: Use Player.ProtoReflect.Descriptor instead. func (*Player) Descriptor() ([]byte, []int) { - return file_proto_stalker_proto_rawDescGZIP(), []int{0} + return file_stalker_proto_rawDescGZIP(), []int{0} } func (x *Player) GetPlayerId() string { @@ -116,7 +116,7 @@ type MatchStats struct { func (x *MatchStats) Reset() { *x = MatchStats{} - mi := &file_proto_stalker_proto_msgTypes[1] + mi := &file_stalker_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -128,7 +128,7 @@ func (x *MatchStats) String() string { func (*MatchStats) ProtoMessage() {} func (x *MatchStats) ProtoReflect() protoreflect.Message { - mi := &file_proto_stalker_proto_msgTypes[1] + mi := &file_stalker_proto_msgTypes[1] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -141,7 +141,7 @@ func (x *MatchStats) ProtoReflect() protoreflect.Message { // Deprecated: Use MatchStats.ProtoReflect.Descriptor instead. func (*MatchStats) Descriptor() ([]byte, []int) { - return file_proto_stalker_proto_rawDescGZIP(), []int{1} + return file_stalker_proto_rawDescGZIP(), []int{1} } func (x *MatchStats) GetKills() int32 { @@ -210,7 +210,7 @@ type TeamPlayer struct { func (x *TeamPlayer) Reset() { *x = TeamPlayer{} - mi := &file_proto_stalker_proto_msgTypes[2] + mi := &file_stalker_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -222,7 +222,7 @@ func (x *TeamPlayer) String() string { func (*TeamPlayer) ProtoMessage() {} func (x *TeamPlayer) ProtoReflect() protoreflect.Message { - mi := &file_proto_stalker_proto_msgTypes[2] + mi := &file_stalker_proto_msgTypes[2] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -235,7 +235,7 @@ func (x *TeamPlayer) ProtoReflect() protoreflect.Message { // Deprecated: Use TeamPlayer.ProtoReflect.Descriptor instead. func (*TeamPlayer) Descriptor() ([]byte, []int) { - return file_proto_stalker_proto_rawDescGZIP(), []int{2} + return file_stalker_proto_rawDescGZIP(), []int{2} } func (x *TeamPlayer) GetPlayerId() string { @@ -308,7 +308,7 @@ type Team struct { func (x *Team) Reset() { *x = Team{} - mi := &file_proto_stalker_proto_msgTypes[3] + mi := &file_stalker_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -320,7 +320,7 @@ func (x *Team) String() string { func (*Team) ProtoMessage() {} func (x *Team) ProtoReflect() protoreflect.Message { - mi := &file_proto_stalker_proto_msgTypes[3] + mi := &file_stalker_proto_msgTypes[3] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -333,7 +333,7 @@ func (x *Team) ProtoReflect() protoreflect.Message { // Deprecated: Use Team.ProtoReflect.Descriptor instead. func (*Team) Descriptor() ([]byte, []int) { - return file_proto_stalker_proto_rawDescGZIP(), []int{3} + return file_stalker_proto_rawDescGZIP(), []int{3} } func (x *Team) GetTeamId() string { @@ -401,7 +401,7 @@ type MatchResult struct { func (x *MatchResult) Reset() { *x = MatchResult{} - mi := &file_proto_stalker_proto_msgTypes[4] + mi := &file_stalker_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -413,7 +413,7 @@ func (x *MatchResult) String() string { func (*MatchResult) ProtoMessage() {} func (x *MatchResult) ProtoReflect() protoreflect.Message { - mi := &file_proto_stalker_proto_msgTypes[4] + mi := &file_stalker_proto_msgTypes[4] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -426,7 +426,7 @@ func (x *MatchResult) ProtoReflect() protoreflect.Message { // Deprecated: Use MatchResult.ProtoReflect.Descriptor instead. func (*MatchResult) Descriptor() ([]byte, []int) { - return file_proto_stalker_proto_rawDescGZIP(), []int{4} + return file_stalker_proto_rawDescGZIP(), []int{4} } func (x *MatchResult) GetMatchId() string { @@ -580,7 +580,7 @@ type MatchResults struct { func (x *MatchResults) Reset() { *x = MatchResults{} - mi := &file_proto_stalker_proto_msgTypes[5] + mi := &file_stalker_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -592,7 +592,7 @@ func (x *MatchResults) String() string { func (*MatchResults) ProtoMessage() {} func (x *MatchResults) ProtoReflect() protoreflect.Message { - mi := &file_proto_stalker_proto_msgTypes[5] + mi := &file_stalker_proto_msgTypes[5] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -605,7 +605,7 @@ func (x *MatchResults) ProtoReflect() protoreflect.Message { // Deprecated: Use MatchResults.ProtoReflect.Descriptor instead. func (*MatchResults) Descriptor() ([]byte, []int) { - return file_proto_stalker_proto_rawDescGZIP(), []int{5} + return file_stalker_proto_rawDescGZIP(), []int{5} } func (x *MatchResults) GetWinner() string { @@ -639,7 +639,7 @@ type MatchDetails struct { func (x *MatchDetails) Reset() { *x = MatchDetails{} - mi := &file_proto_stalker_proto_msgTypes[6] + mi := &file_stalker_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -651,7 +651,7 @@ func (x *MatchDetails) String() string { func (*MatchDetails) ProtoMessage() {} func (x *MatchDetails) ProtoReflect() protoreflect.Message { - mi := &file_proto_stalker_proto_msgTypes[6] + mi := &file_stalker_proto_msgTypes[6] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -664,7 +664,7 @@ func (x *MatchDetails) ProtoReflect() protoreflect.Message { // Deprecated: Use MatchDetails.ProtoReflect.Descriptor instead. func (*MatchDetails) Descriptor() ([]byte, []int) { - return file_proto_stalker_proto_rawDescGZIP(), []int{6} + return file_stalker_proto_rawDescGZIP(), []int{6} } func (x *MatchDetails) GetMatchId() string { @@ -744,7 +744,7 @@ type FaceITMatch struct { func (x *FaceITMatch) Reset() { *x = FaceITMatch{} - mi := &file_proto_stalker_proto_msgTypes[7] + mi := &file_stalker_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -756,7 +756,7 @@ func (x *FaceITMatch) String() string { func (*FaceITMatch) ProtoMessage() {} func (x *FaceITMatch) ProtoReflect() protoreflect.Message { - mi := &file_proto_stalker_proto_msgTypes[7] + mi := &file_stalker_proto_msgTypes[7] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -769,7 +769,7 @@ func (x *FaceITMatch) ProtoReflect() protoreflect.Message { // Deprecated: Use FaceITMatch.ProtoReflect.Descriptor instead. func (*FaceITMatch) Descriptor() ([]byte, []int) { - return file_proto_stalker_proto_rawDescGZIP(), []int{7} + return file_stalker_proto_rawDescGZIP(), []int{7} } func (x *FaceITMatch) GetId() int64 { @@ -873,7 +873,7 @@ type LinkedAccount struct { func (x *LinkedAccount) Reset() { *x = LinkedAccount{} - mi := &file_proto_stalker_proto_msgTypes[8] + mi := &file_stalker_proto_msgTypes[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -885,7 +885,7 @@ func (x *LinkedAccount) String() string { func (*LinkedAccount) ProtoMessage() {} func (x *LinkedAccount) ProtoReflect() protoreflect.Message { - mi := &file_proto_stalker_proto_msgTypes[8] + mi := &file_stalker_proto_msgTypes[8] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -898,7 +898,7 @@ func (x *LinkedAccount) ProtoReflect() protoreflect.Message { // Deprecated: Use LinkedAccount.ProtoReflect.Descriptor instead. func (*LinkedAccount) Descriptor() ([]byte, []int) { - return file_proto_stalker_proto_rawDescGZIP(), []int{8} + return file_stalker_proto_rawDescGZIP(), []int{8} } func (x *LinkedAccount) GetId() int64 { @@ -973,7 +973,7 @@ type UserMatchStats struct { func (x *UserMatchStats) Reset() { *x = UserMatchStats{} - mi := &file_proto_stalker_proto_msgTypes[9] + mi := &file_stalker_proto_msgTypes[9] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -985,7 +985,7 @@ func (x *UserMatchStats) String() string { func (*UserMatchStats) ProtoMessage() {} func (x *UserMatchStats) ProtoReflect() protoreflect.Message { - mi := &file_proto_stalker_proto_msgTypes[9] + mi := &file_stalker_proto_msgTypes[9] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -998,7 +998,7 @@ func (x *UserMatchStats) ProtoReflect() protoreflect.Message { // Deprecated: Use UserMatchStats.ProtoReflect.Descriptor instead. func (*UserMatchStats) Descriptor() ([]byte, []int) { - return file_proto_stalker_proto_rawDescGZIP(), []int{9} + return file_stalker_proto_rawDescGZIP(), []int{9} } func (x *UserMatchStats) GetTotalMatches() int32 { @@ -1060,7 +1060,7 @@ type SearchPlayerRequest struct { func (x *SearchPlayerRequest) Reset() { *x = SearchPlayerRequest{} - mi := &file_proto_stalker_proto_msgTypes[10] + mi := &file_stalker_proto_msgTypes[10] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1072,7 +1072,7 @@ func (x *SearchPlayerRequest) String() string { func (*SearchPlayerRequest) ProtoMessage() {} func (x *SearchPlayerRequest) ProtoReflect() protoreflect.Message { - mi := &file_proto_stalker_proto_msgTypes[10] + mi := &file_stalker_proto_msgTypes[10] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1085,7 +1085,7 @@ func (x *SearchPlayerRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use SearchPlayerRequest.ProtoReflect.Descriptor instead. func (*SearchPlayerRequest) Descriptor() ([]byte, []int) { - return file_proto_stalker_proto_rawDescGZIP(), []int{10} + return file_stalker_proto_rawDescGZIP(), []int{10} } func (x *SearchPlayerRequest) GetNickname() string { @@ -1104,7 +1104,7 @@ type GetPlayerByIDRequest struct { func (x *GetPlayerByIDRequest) Reset() { *x = GetPlayerByIDRequest{} - mi := &file_proto_stalker_proto_msgTypes[11] + mi := &file_stalker_proto_msgTypes[11] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1116,7 +1116,7 @@ func (x *GetPlayerByIDRequest) String() string { func (*GetPlayerByIDRequest) ProtoMessage() {} func (x *GetPlayerByIDRequest) ProtoReflect() protoreflect.Message { - mi := &file_proto_stalker_proto_msgTypes[11] + mi := &file_stalker_proto_msgTypes[11] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1129,7 +1129,7 @@ func (x *GetPlayerByIDRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetPlayerByIDRequest.ProtoReflect.Descriptor instead. func (*GetPlayerByIDRequest) Descriptor() ([]byte, []int) { - return file_proto_stalker_proto_rawDescGZIP(), []int{11} + return file_stalker_proto_rawDescGZIP(), []int{11} } func (x *GetPlayerByIDRequest) GetPlayerId() string { @@ -1149,7 +1149,7 @@ type GetPlayerMatchesRequest struct { func (x *GetPlayerMatchesRequest) Reset() { *x = GetPlayerMatchesRequest{} - mi := &file_proto_stalker_proto_msgTypes[12] + mi := &file_stalker_proto_msgTypes[12] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1161,7 +1161,7 @@ func (x *GetPlayerMatchesRequest) String() string { func (*GetPlayerMatchesRequest) ProtoMessage() {} func (x *GetPlayerMatchesRequest) ProtoReflect() protoreflect.Message { - mi := &file_proto_stalker_proto_msgTypes[12] + mi := &file_stalker_proto_msgTypes[12] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1174,7 +1174,7 @@ func (x *GetPlayerMatchesRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetPlayerMatchesRequest.ProtoReflect.Descriptor instead. func (*GetPlayerMatchesRequest) Descriptor() ([]byte, []int) { - return file_proto_stalker_proto_rawDescGZIP(), []int{12} + return file_stalker_proto_rawDescGZIP(), []int{12} } func (x *GetPlayerMatchesRequest) GetPlayerId() string { @@ -1200,7 +1200,7 @@ type GetPlayerMatchesResponse struct { func (x *GetPlayerMatchesResponse) Reset() { *x = GetPlayerMatchesResponse{} - mi := &file_proto_stalker_proto_msgTypes[13] + mi := &file_stalker_proto_msgTypes[13] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1212,7 +1212,7 @@ func (x *GetPlayerMatchesResponse) String() string { func (*GetPlayerMatchesResponse) ProtoMessage() {} func (x *GetPlayerMatchesResponse) ProtoReflect() protoreflect.Message { - mi := &file_proto_stalker_proto_msgTypes[13] + mi := &file_stalker_proto_msgTypes[13] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1225,7 +1225,7 @@ func (x *GetPlayerMatchesResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use GetPlayerMatchesResponse.ProtoReflect.Descriptor instead. func (*GetPlayerMatchesResponse) Descriptor() ([]byte, []int) { - return file_proto_stalker_proto_rawDescGZIP(), []int{13} + return file_stalker_proto_rawDescGZIP(), []int{13} } func (x *GetPlayerMatchesResponse) GetMatches() []*MatchResult { @@ -1244,7 +1244,7 @@ type GetMatchDetailsRequest struct { func (x *GetMatchDetailsRequest) Reset() { *x = GetMatchDetailsRequest{} - mi := &file_proto_stalker_proto_msgTypes[14] + mi := &file_stalker_proto_msgTypes[14] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1256,7 +1256,7 @@ func (x *GetMatchDetailsRequest) String() string { func (*GetMatchDetailsRequest) ProtoMessage() {} func (x *GetMatchDetailsRequest) ProtoReflect() protoreflect.Message { - mi := &file_proto_stalker_proto_msgTypes[14] + mi := &file_stalker_proto_msgTypes[14] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1269,7 +1269,7 @@ func (x *GetMatchDetailsRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetMatchDetailsRequest.ProtoReflect.Descriptor instead. func (*GetMatchDetailsRequest) Descriptor() ([]byte, []int) { - return file_proto_stalker_proto_rawDescGZIP(), []int{14} + return file_stalker_proto_rawDescGZIP(), []int{14} } func (x *GetMatchDetailsRequest) GetMatchId() string { @@ -1288,7 +1288,7 @@ type SaveMatchesRequest struct { func (x *SaveMatchesRequest) Reset() { *x = SaveMatchesRequest{} - mi := &file_proto_stalker_proto_msgTypes[15] + mi := &file_stalker_proto_msgTypes[15] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1300,7 +1300,7 @@ func (x *SaveMatchesRequest) String() string { func (*SaveMatchesRequest) ProtoMessage() {} func (x *SaveMatchesRequest) ProtoReflect() protoreflect.Message { - mi := &file_proto_stalker_proto_msgTypes[15] + mi := &file_stalker_proto_msgTypes[15] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1313,7 +1313,7 @@ func (x *SaveMatchesRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use SaveMatchesRequest.ProtoReflect.Descriptor instead. func (*SaveMatchesRequest) Descriptor() ([]byte, []int) { - return file_proto_stalker_proto_rawDescGZIP(), []int{15} + return file_stalker_proto_rawDescGZIP(), []int{15} } func (x *SaveMatchesRequest) GetMatches() []*FaceITMatch { @@ -1333,7 +1333,7 @@ type GetUserMatchesRequest struct { func (x *GetUserMatchesRequest) Reset() { *x = GetUserMatchesRequest{} - mi := &file_proto_stalker_proto_msgTypes[16] + mi := &file_stalker_proto_msgTypes[16] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1345,7 +1345,7 @@ func (x *GetUserMatchesRequest) String() string { func (*GetUserMatchesRequest) ProtoMessage() {} func (x *GetUserMatchesRequest) ProtoReflect() protoreflect.Message { - mi := &file_proto_stalker_proto_msgTypes[16] + mi := &file_stalker_proto_msgTypes[16] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1358,7 +1358,7 @@ func (x *GetUserMatchesRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetUserMatchesRequest.ProtoReflect.Descriptor instead. func (*GetUserMatchesRequest) Descriptor() ([]byte, []int) { - return file_proto_stalker_proto_rawDescGZIP(), []int{16} + return file_stalker_proto_rawDescGZIP(), []int{16} } func (x *GetUserMatchesRequest) GetGlobalUserId() int64 { @@ -1384,7 +1384,7 @@ type GetUserMatchesResponse struct { func (x *GetUserMatchesResponse) Reset() { *x = GetUserMatchesResponse{} - mi := &file_proto_stalker_proto_msgTypes[17] + mi := &file_stalker_proto_msgTypes[17] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1396,7 +1396,7 @@ func (x *GetUserMatchesResponse) String() string { func (*GetUserMatchesResponse) ProtoMessage() {} func (x *GetUserMatchesResponse) ProtoReflect() protoreflect.Message { - mi := &file_proto_stalker_proto_msgTypes[17] + mi := &file_stalker_proto_msgTypes[17] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1409,7 +1409,7 @@ func (x *GetUserMatchesResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use GetUserMatchesResponse.ProtoReflect.Descriptor instead. func (*GetUserMatchesResponse) Descriptor() ([]byte, []int) { - return file_proto_stalker_proto_rawDescGZIP(), []int{17} + return file_stalker_proto_rawDescGZIP(), []int{17} } func (x *GetUserMatchesResponse) GetMatches() []*FaceITMatch { @@ -1428,7 +1428,7 @@ type GetUserMatchStatsRequest struct { func (x *GetUserMatchStatsRequest) Reset() { *x = GetUserMatchStatsRequest{} - mi := &file_proto_stalker_proto_msgTypes[18] + mi := &file_stalker_proto_msgTypes[18] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1440,7 +1440,7 @@ func (x *GetUserMatchStatsRequest) String() string { func (*GetUserMatchStatsRequest) ProtoMessage() {} func (x *GetUserMatchStatsRequest) ProtoReflect() protoreflect.Message { - mi := &file_proto_stalker_proto_msgTypes[18] + mi := &file_stalker_proto_msgTypes[18] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1453,7 +1453,7 @@ func (x *GetUserMatchStatsRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetUserMatchStatsRequest.ProtoReflect.Descriptor instead. func (*GetUserMatchStatsRequest) Descriptor() ([]byte, []int) { - return file_proto_stalker_proto_rawDescGZIP(), []int{18} + return file_stalker_proto_rawDescGZIP(), []int{18} } func (x *GetUserMatchStatsRequest) GetGlobalUserId() int64 { @@ -1473,7 +1473,7 @@ type GetMatchesSinceRequest struct { func (x *GetMatchesSinceRequest) Reset() { *x = GetMatchesSinceRequest{} - mi := &file_proto_stalker_proto_msgTypes[19] + mi := &file_stalker_proto_msgTypes[19] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1485,7 +1485,7 @@ func (x *GetMatchesSinceRequest) String() string { func (*GetMatchesSinceRequest) ProtoMessage() {} func (x *GetMatchesSinceRequest) ProtoReflect() protoreflect.Message { - mi := &file_proto_stalker_proto_msgTypes[19] + mi := &file_stalker_proto_msgTypes[19] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1498,7 +1498,7 @@ func (x *GetMatchesSinceRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetMatchesSinceRequest.ProtoReflect.Descriptor instead. func (*GetMatchesSinceRequest) Descriptor() ([]byte, []int) { - return file_proto_stalker_proto_rawDescGZIP(), []int{19} + return file_stalker_proto_rawDescGZIP(), []int{19} } func (x *GetMatchesSinceRequest) GetGlobalUserId() int64 { @@ -1525,7 +1525,7 @@ type GetMatchesLastNDaysRequest struct { func (x *GetMatchesLastNDaysRequest) Reset() { *x = GetMatchesLastNDaysRequest{} - mi := &file_proto_stalker_proto_msgTypes[20] + mi := &file_stalker_proto_msgTypes[20] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1537,7 +1537,7 @@ func (x *GetMatchesLastNDaysRequest) String() string { func (*GetMatchesLastNDaysRequest) ProtoMessage() {} func (x *GetMatchesLastNDaysRequest) ProtoReflect() protoreflect.Message { - mi := &file_proto_stalker_proto_msgTypes[20] + mi := &file_stalker_proto_msgTypes[20] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1550,7 +1550,7 @@ func (x *GetMatchesLastNDaysRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetMatchesLastNDaysRequest.ProtoReflect.Descriptor instead. func (*GetMatchesLastNDaysRequest) Descriptor() ([]byte, []int) { - return file_proto_stalker_proto_rawDescGZIP(), []int{20} + return file_stalker_proto_rawDescGZIP(), []int{20} } func (x *GetMatchesLastNDaysRequest) GetGlobalUserId() int64 { @@ -1579,7 +1579,7 @@ type LinkFaceITAccountRequest struct { func (x *LinkFaceITAccountRequest) Reset() { *x = LinkFaceITAccountRequest{} - mi := &file_proto_stalker_proto_msgTypes[21] + mi := &file_stalker_proto_msgTypes[21] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1591,7 +1591,7 @@ func (x *LinkFaceITAccountRequest) String() string { func (*LinkFaceITAccountRequest) ProtoMessage() {} func (x *LinkFaceITAccountRequest) ProtoReflect() protoreflect.Message { - mi := &file_proto_stalker_proto_msgTypes[21] + mi := &file_stalker_proto_msgTypes[21] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1604,7 +1604,7 @@ func (x *LinkFaceITAccountRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use LinkFaceITAccountRequest.ProtoReflect.Descriptor instead. func (*LinkFaceITAccountRequest) Descriptor() ([]byte, []int) { - return file_proto_stalker_proto_rawDescGZIP(), []int{21} + return file_stalker_proto_rawDescGZIP(), []int{21} } func (x *LinkFaceITAccountRequest) GetGlobalUserId() int64 { @@ -1644,7 +1644,7 @@ type GetLinkedFaceITAccountRequest struct { func (x *GetLinkedFaceITAccountRequest) Reset() { *x = GetLinkedFaceITAccountRequest{} - mi := &file_proto_stalker_proto_msgTypes[22] + mi := &file_stalker_proto_msgTypes[22] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1656,7 +1656,7 @@ func (x *GetLinkedFaceITAccountRequest) String() string { func (*GetLinkedFaceITAccountRequest) ProtoMessage() {} func (x *GetLinkedFaceITAccountRequest) ProtoReflect() protoreflect.Message { - mi := &file_proto_stalker_proto_msgTypes[22] + mi := &file_stalker_proto_msgTypes[22] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1669,7 +1669,7 @@ func (x *GetLinkedFaceITAccountRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetLinkedFaceITAccountRequest.ProtoReflect.Descriptor instead. func (*GetLinkedFaceITAccountRequest) Descriptor() ([]byte, []int) { - return file_proto_stalker_proto_rawDescGZIP(), []int{22} + return file_stalker_proto_rawDescGZIP(), []int{22} } func (x *GetLinkedFaceITAccountRequest) GetGlobalUserId() int64 { @@ -1679,11 +1679,123 @@ func (x *GetLinkedFaceITAccountRequest) GetGlobalUserId() int64 { return 0 } -var File_proto_stalker_proto protoreflect.FileDescriptor +type LinkSteamAccountRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + GlobalUserId int64 `protobuf:"varint,1,opt,name=global_user_id,json=globalUserId,proto3" json:"global_user_id,omitempty"` + SteamId string `protobuf:"bytes,2,opt,name=steam_id,json=steamId,proto3" json:"steam_id,omitempty"` + Username string `protobuf:"bytes,3,opt,name=username,proto3" json:"username,omitempty"` + ProfileUrl string `protobuf:"bytes,4,opt,name=profile_url,json=profileUrl,proto3" json:"profile_url,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} -const file_proto_stalker_proto_rawDesc = "" + +func (x *LinkSteamAccountRequest) Reset() { + *x = LinkSteamAccountRequest{} + mi := &file_stalker_proto_msgTypes[23] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *LinkSteamAccountRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*LinkSteamAccountRequest) ProtoMessage() {} + +func (x *LinkSteamAccountRequest) ProtoReflect() protoreflect.Message { + mi := &file_stalker_proto_msgTypes[23] + 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 LinkSteamAccountRequest.ProtoReflect.Descriptor instead. +func (*LinkSteamAccountRequest) Descriptor() ([]byte, []int) { + return file_stalker_proto_rawDescGZIP(), []int{23} +} + +func (x *LinkSteamAccountRequest) GetGlobalUserId() int64 { + if x != nil { + return x.GlobalUserId + } + return 0 +} + +func (x *LinkSteamAccountRequest) GetSteamId() string { + if x != nil { + return x.SteamId + } + return "" +} + +func (x *LinkSteamAccountRequest) GetUsername() string { + if x != nil { + return x.Username + } + return "" +} + +func (x *LinkSteamAccountRequest) GetProfileUrl() string { + if x != nil { + return x.ProfileUrl + } + return "" +} + +type GetLinkedSteamAccountRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + GlobalUserId int64 `protobuf:"varint,1,opt,name=global_user_id,json=globalUserId,proto3" json:"global_user_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetLinkedSteamAccountRequest) Reset() { + *x = GetLinkedSteamAccountRequest{} + mi := &file_stalker_proto_msgTypes[24] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetLinkedSteamAccountRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetLinkedSteamAccountRequest) ProtoMessage() {} + +func (x *GetLinkedSteamAccountRequest) ProtoReflect() protoreflect.Message { + mi := &file_stalker_proto_msgTypes[24] + 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 GetLinkedSteamAccountRequest.ProtoReflect.Descriptor instead. +func (*GetLinkedSteamAccountRequest) Descriptor() ([]byte, []int) { + return file_stalker_proto_rawDescGZIP(), []int{24} +} + +func (x *GetLinkedSteamAccountRequest) GetGlobalUserId() int64 { + if x != nil { + return x.GlobalUserId + } + return 0 +} + +var File_stalker_proto protoreflect.FileDescriptor + +const file_stalker_proto_rawDesc = "" + "\n" + - "\x13proto/stalker.proto\x12\astalker\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1bgoogle/protobuf/empty.proto\"\x92\x01\n" + + "\rstalker.proto\x12\astalker\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1bgoogle/protobuf/empty.proto\"\x92\x01\n" + "\x06Player\x12\x1b\n" + "\tplayer_id\x18\x01 \x01(\tR\bplayerId\x12\x1a\n" + "\bnickname\x18\x02 \x01(\tR\bnickname\x12\x16\n" + @@ -1845,7 +1957,15 @@ const file_proto_stalker_proto_rawDesc = "" + "\vaccount_url\x18\x04 \x01(\tR\n" + "accountUrl\"E\n" + "\x1dGetLinkedFaceITAccountRequest\x12$\n" + - "\x0eglobal_user_id\x18\x01 \x01(\x03R\fglobalUserId2\xf8\x06\n" + + "\x0eglobal_user_id\x18\x01 \x01(\x03R\fglobalUserId\"\x97\x01\n" + + "\x17LinkSteamAccountRequest\x12$\n" + + "\x0eglobal_user_id\x18\x01 \x01(\x03R\fglobalUserId\x12\x19\n" + + "\bsteam_id\x18\x02 \x01(\tR\asteamId\x12\x1a\n" + + "\busername\x18\x03 \x01(\tR\busername\x12\x1f\n" + + "\vprofile_url\x18\x04 \x01(\tR\n" + + "profileUrl\"D\n" + + "\x1cGetLinkedSteamAccountRequest\x12$\n" + + "\x0eglobal_user_id\x18\x01 \x01(\x03R\fglobalUserId2\x9e\b\n" + "\x0eStalkerService\x12=\n" + "\fSearchPlayer\x12\x1c.stalker.SearchPlayerRequest\x1a\x0f.stalker.Player\x12?\n" + "\rGetPlayerByID\x12\x1d.stalker.GetPlayerByIDRequest\x1a\x0f.stalker.Player\x12W\n" + @@ -1857,22 +1977,24 @@ const file_proto_stalker_proto_rawDesc = "" + "\x0fGetMatchesSince\x12\x1f.stalker.GetMatchesSinceRequest\x1a\x1f.stalker.GetUserMatchesResponse\x12[\n" + "\x13GetMatchesLastNDays\x12#.stalker.GetMatchesLastNDaysRequest\x1a\x1f.stalker.GetUserMatchesResponse\x12N\n" + "\x11LinkFaceITAccount\x12!.stalker.LinkFaceITAccountRequest\x1a\x16.stalker.LinkedAccount\x12X\n" + - "\x16GetLinkedFaceITAccount\x12&.stalker.GetLinkedFaceITAccountRequest\x1a\x16.stalker.LinkedAccountB\x1fZ\x1dstalker-service/proto/stalkerb\x06proto3" + "\x16GetLinkedFaceITAccount\x12&.stalker.GetLinkedFaceITAccountRequest\x1a\x16.stalker.LinkedAccount\x12L\n" + + "\x10LinkSteamAccount\x12 .stalker.LinkSteamAccountRequest\x1a\x16.stalker.LinkedAccount\x12V\n" + + "\x15GetLinkedSteamAccount\x12%.stalker.GetLinkedSteamAccountRequest\x1a\x16.stalker.LinkedAccountB\x1fZ\x1dstalker-service/proto/stalkerb\x06proto3" var ( - file_proto_stalker_proto_rawDescOnce sync.Once - file_proto_stalker_proto_rawDescData []byte + file_stalker_proto_rawDescOnce sync.Once + file_stalker_proto_rawDescData []byte ) -func file_proto_stalker_proto_rawDescGZIP() []byte { - file_proto_stalker_proto_rawDescOnce.Do(func() { - file_proto_stalker_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_proto_stalker_proto_rawDesc), len(file_proto_stalker_proto_rawDesc))) +func file_stalker_proto_rawDescGZIP() []byte { + file_stalker_proto_rawDescOnce.Do(func() { + file_stalker_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_stalker_proto_rawDesc), len(file_stalker_proto_rawDesc))) }) - return file_proto_stalker_proto_rawDescData + return file_stalker_proto_rawDescData } -var file_proto_stalker_proto_msgTypes = make([]protoimpl.MessageInfo, 26) -var file_proto_stalker_proto_goTypes = []any{ +var file_stalker_proto_msgTypes = make([]protoimpl.MessageInfo, 28) +var file_stalker_proto_goTypes = []any{ (*Player)(nil), // 0: stalker.Player (*MatchStats)(nil), // 1: stalker.MatchStats (*TeamPlayer)(nil), // 2: stalker.TeamPlayer @@ -1896,31 +2018,33 @@ var file_proto_stalker_proto_goTypes = []any{ (*GetMatchesLastNDaysRequest)(nil), // 20: stalker.GetMatchesLastNDaysRequest (*LinkFaceITAccountRequest)(nil), // 21: stalker.LinkFaceITAccountRequest (*GetLinkedFaceITAccountRequest)(nil), // 22: stalker.GetLinkedFaceITAccountRequest - nil, // 23: stalker.MatchResult.TeamsEntry - nil, // 24: stalker.MatchResults.ScoreEntry - nil, // 25: stalker.MatchDetails.TeamsEntry - (*timestamppb.Timestamp)(nil), // 26: google.protobuf.Timestamp - (*emptypb.Empty)(nil), // 27: google.protobuf.Empty + (*LinkSteamAccountRequest)(nil), // 23: stalker.LinkSteamAccountRequest + (*GetLinkedSteamAccountRequest)(nil), // 24: stalker.GetLinkedSteamAccountRequest + nil, // 25: stalker.MatchResult.TeamsEntry + nil, // 26: stalker.MatchResults.ScoreEntry + nil, // 27: stalker.MatchDetails.TeamsEntry + (*timestamppb.Timestamp)(nil), // 28: google.protobuf.Timestamp + (*emptypb.Empty)(nil), // 29: google.protobuf.Empty } -var file_proto_stalker_proto_depIdxs = []int32{ +var file_stalker_proto_depIdxs = []int32{ 1, // 0: stalker.TeamPlayer.stats:type_name -> stalker.MatchStats 2, // 1: stalker.Team.players:type_name -> stalker.TeamPlayer - 23, // 2: stalker.MatchResult.teams:type_name -> stalker.MatchResult.TeamsEntry + 25, // 2: stalker.MatchResult.teams:type_name -> stalker.MatchResult.TeamsEntry 5, // 3: stalker.MatchResult.results:type_name -> stalker.MatchResults 1, // 4: stalker.MatchResult.player_stats:type_name -> stalker.MatchStats - 24, // 5: stalker.MatchResults.score:type_name -> stalker.MatchResults.ScoreEntry - 25, // 6: stalker.MatchDetails.teams:type_name -> stalker.MatchDetails.TeamsEntry + 26, // 5: stalker.MatchResults.score:type_name -> stalker.MatchResults.ScoreEntry + 27, // 6: stalker.MatchDetails.teams:type_name -> stalker.MatchDetails.TeamsEntry 5, // 7: stalker.MatchDetails.results:type_name -> stalker.MatchResults - 26, // 8: stalker.FaceITMatch.match_start_time:type_name -> google.protobuf.Timestamp - 26, // 9: stalker.FaceITMatch.match_end_time:type_name -> google.protobuf.Timestamp - 26, // 10: stalker.FaceITMatch.synced_at:type_name -> google.protobuf.Timestamp - 26, // 11: stalker.FaceITMatch.updated_at:type_name -> google.protobuf.Timestamp - 26, // 12: stalker.LinkedAccount.linked_at:type_name -> google.protobuf.Timestamp - 26, // 13: stalker.LinkedAccount.updated_at:type_name -> google.protobuf.Timestamp + 28, // 8: stalker.FaceITMatch.match_start_time:type_name -> google.protobuf.Timestamp + 28, // 9: stalker.FaceITMatch.match_end_time:type_name -> google.protobuf.Timestamp + 28, // 10: stalker.FaceITMatch.synced_at:type_name -> google.protobuf.Timestamp + 28, // 11: stalker.FaceITMatch.updated_at:type_name -> google.protobuf.Timestamp + 28, // 12: stalker.LinkedAccount.linked_at:type_name -> google.protobuf.Timestamp + 28, // 13: stalker.LinkedAccount.updated_at:type_name -> google.protobuf.Timestamp 4, // 14: stalker.GetPlayerMatchesResponse.matches:type_name -> stalker.MatchResult 7, // 15: stalker.SaveMatchesRequest.matches:type_name -> stalker.FaceITMatch 7, // 16: stalker.GetUserMatchesResponse.matches:type_name -> stalker.FaceITMatch - 26, // 17: stalker.GetMatchesSinceRequest.since:type_name -> google.protobuf.Timestamp + 28, // 17: stalker.GetMatchesSinceRequest.since:type_name -> google.protobuf.Timestamp 3, // 18: stalker.MatchResult.TeamsEntry.value:type_name -> stalker.Team 3, // 19: stalker.MatchDetails.TeamsEntry.value:type_name -> stalker.Team 10, // 20: stalker.StalkerService.SearchPlayer:input_type -> stalker.SearchPlayerRequest @@ -1934,44 +2058,48 @@ var file_proto_stalker_proto_depIdxs = []int32{ 20, // 28: stalker.StalkerService.GetMatchesLastNDays:input_type -> stalker.GetMatchesLastNDaysRequest 21, // 29: stalker.StalkerService.LinkFaceITAccount:input_type -> stalker.LinkFaceITAccountRequest 22, // 30: stalker.StalkerService.GetLinkedFaceITAccount:input_type -> stalker.GetLinkedFaceITAccountRequest - 0, // 31: stalker.StalkerService.SearchPlayer:output_type -> stalker.Player - 0, // 32: stalker.StalkerService.GetPlayerByID:output_type -> stalker.Player - 13, // 33: stalker.StalkerService.GetPlayerMatches:output_type -> stalker.GetPlayerMatchesResponse - 6, // 34: stalker.StalkerService.GetMatchDetails:output_type -> stalker.MatchDetails - 27, // 35: stalker.StalkerService.SaveMatches:output_type -> google.protobuf.Empty - 17, // 36: stalker.StalkerService.GetUserMatches:output_type -> stalker.GetUserMatchesResponse - 9, // 37: stalker.StalkerService.GetUserMatchStats:output_type -> stalker.UserMatchStats - 17, // 38: stalker.StalkerService.GetMatchesSince:output_type -> stalker.GetUserMatchesResponse - 17, // 39: stalker.StalkerService.GetMatchesLastNDays:output_type -> stalker.GetUserMatchesResponse - 8, // 40: stalker.StalkerService.LinkFaceITAccount:output_type -> stalker.LinkedAccount - 8, // 41: stalker.StalkerService.GetLinkedFaceITAccount:output_type -> stalker.LinkedAccount - 31, // [31:42] is the sub-list for method output_type - 20, // [20:31] is the sub-list for method input_type + 23, // 31: stalker.StalkerService.LinkSteamAccount:input_type -> stalker.LinkSteamAccountRequest + 24, // 32: stalker.StalkerService.GetLinkedSteamAccount:input_type -> stalker.GetLinkedSteamAccountRequest + 0, // 33: stalker.StalkerService.SearchPlayer:output_type -> stalker.Player + 0, // 34: stalker.StalkerService.GetPlayerByID:output_type -> stalker.Player + 13, // 35: stalker.StalkerService.GetPlayerMatches:output_type -> stalker.GetPlayerMatchesResponse + 6, // 36: stalker.StalkerService.GetMatchDetails:output_type -> stalker.MatchDetails + 29, // 37: stalker.StalkerService.SaveMatches:output_type -> google.protobuf.Empty + 17, // 38: stalker.StalkerService.GetUserMatches:output_type -> stalker.GetUserMatchesResponse + 9, // 39: stalker.StalkerService.GetUserMatchStats:output_type -> stalker.UserMatchStats + 17, // 40: stalker.StalkerService.GetMatchesSince:output_type -> stalker.GetUserMatchesResponse + 17, // 41: stalker.StalkerService.GetMatchesLastNDays:output_type -> stalker.GetUserMatchesResponse + 8, // 42: stalker.StalkerService.LinkFaceITAccount:output_type -> stalker.LinkedAccount + 8, // 43: stalker.StalkerService.GetLinkedFaceITAccount:output_type -> stalker.LinkedAccount + 8, // 44: stalker.StalkerService.LinkSteamAccount:output_type -> stalker.LinkedAccount + 8, // 45: stalker.StalkerService.GetLinkedSteamAccount:output_type -> stalker.LinkedAccount + 33, // [33:46] is the sub-list for method output_type + 20, // [20:33] is the sub-list for method input_type 20, // [20:20] is the sub-list for extension type_name 20, // [20:20] is the sub-list for extension extendee 0, // [0:20] is the sub-list for field type_name } -func init() { file_proto_stalker_proto_init() } -func file_proto_stalker_proto_init() { - if File_proto_stalker_proto != nil { +func init() { file_stalker_proto_init() } +func file_stalker_proto_init() { + if File_stalker_proto != nil { return } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: unsafe.Slice(unsafe.StringData(file_proto_stalker_proto_rawDesc), len(file_proto_stalker_proto_rawDesc)), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_stalker_proto_rawDesc), len(file_stalker_proto_rawDesc)), NumEnums: 0, - NumMessages: 26, + NumMessages: 28, NumExtensions: 0, NumServices: 1, }, - GoTypes: file_proto_stalker_proto_goTypes, - DependencyIndexes: file_proto_stalker_proto_depIdxs, - MessageInfos: file_proto_stalker_proto_msgTypes, + GoTypes: file_stalker_proto_goTypes, + DependencyIndexes: file_stalker_proto_depIdxs, + MessageInfos: file_stalker_proto_msgTypes, }.Build() - File_proto_stalker_proto = out.File - file_proto_stalker_proto_goTypes = nil - file_proto_stalker_proto_depIdxs = nil + File_stalker_proto = out.File + file_stalker_proto_goTypes = nil + file_stalker_proto_depIdxs = nil } diff --git a/stalker.proto b/stalker.proto index a4b8cf1..ee83320 100644 --- a/stalker.proto +++ b/stalker.proto @@ -27,6 +27,8 @@ service StalkerService { // Account linking rpc LinkFaceITAccount(LinkFaceITAccountRequest) returns (LinkedAccount); rpc GetLinkedFaceITAccount(GetLinkedFaceITAccountRequest) returns (LinkedAccount); + rpc LinkSteamAccount(LinkSteamAccountRequest) returns (LinkedAccount); + rpc GetLinkedSteamAccount(GetLinkedSteamAccountRequest) returns (LinkedAccount); } // Player represents a FaceIT player @@ -212,3 +214,14 @@ message LinkFaceITAccountRequest { message GetLinkedFaceITAccountRequest { int64 global_user_id = 1; } + +message LinkSteamAccountRequest { + int64 global_user_id = 1; + string steam_id = 2; + string username = 3; + string profile_url = 4; +} + +message GetLinkedSteamAccountRequest { + int64 global_user_id = 1; +} diff --git a/stalker_grpc.pb.go b/stalker_grpc.pb.go index f2edac2..c18af41 100644 --- a/stalker_grpc.pb.go +++ b/stalker_grpc.pb.go @@ -2,7 +2,7 @@ // versions: // - protoc-gen-go-grpc v1.6.1 // - protoc v7.34.0 -// source: proto/stalker.proto +// source: stalker.proto package stalker @@ -31,6 +31,8 @@ const ( StalkerService_GetMatchesLastNDays_FullMethodName = "/stalker.StalkerService/GetMatchesLastNDays" StalkerService_LinkFaceITAccount_FullMethodName = "/stalker.StalkerService/LinkFaceITAccount" StalkerService_GetLinkedFaceITAccount_FullMethodName = "/stalker.StalkerService/GetLinkedFaceITAccount" + StalkerService_LinkSteamAccount_FullMethodName = "/stalker.StalkerService/LinkSteamAccount" + StalkerService_GetLinkedSteamAccount_FullMethodName = "/stalker.StalkerService/GetLinkedSteamAccount" ) // StalkerServiceClient is the client API for StalkerService service. @@ -54,6 +56,8 @@ type StalkerServiceClient interface { // Account linking LinkFaceITAccount(ctx context.Context, in *LinkFaceITAccountRequest, opts ...grpc.CallOption) (*LinkedAccount, error) GetLinkedFaceITAccount(ctx context.Context, in *GetLinkedFaceITAccountRequest, opts ...grpc.CallOption) (*LinkedAccount, error) + LinkSteamAccount(ctx context.Context, in *LinkSteamAccountRequest, opts ...grpc.CallOption) (*LinkedAccount, error) + GetLinkedSteamAccount(ctx context.Context, in *GetLinkedSteamAccountRequest, opts ...grpc.CallOption) (*LinkedAccount, error) } type stalkerServiceClient struct { @@ -174,6 +178,26 @@ func (c *stalkerServiceClient) GetLinkedFaceITAccount(ctx context.Context, in *G return out, nil } +func (c *stalkerServiceClient) LinkSteamAccount(ctx context.Context, in *LinkSteamAccountRequest, opts ...grpc.CallOption) (*LinkedAccount, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(LinkedAccount) + err := c.cc.Invoke(ctx, StalkerService_LinkSteamAccount_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *stalkerServiceClient) GetLinkedSteamAccount(ctx context.Context, in *GetLinkedSteamAccountRequest, opts ...grpc.CallOption) (*LinkedAccount, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(LinkedAccount) + err := c.cc.Invoke(ctx, StalkerService_GetLinkedSteamAccount_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + // StalkerServiceServer is the server API for StalkerService service. // All implementations must embed UnimplementedStalkerServiceServer // for forward compatibility. @@ -195,6 +219,8 @@ type StalkerServiceServer interface { // Account linking LinkFaceITAccount(context.Context, *LinkFaceITAccountRequest) (*LinkedAccount, error) GetLinkedFaceITAccount(context.Context, *GetLinkedFaceITAccountRequest) (*LinkedAccount, error) + LinkSteamAccount(context.Context, *LinkSteamAccountRequest) (*LinkedAccount, error) + GetLinkedSteamAccount(context.Context, *GetLinkedSteamAccountRequest) (*LinkedAccount, error) mustEmbedUnimplementedStalkerServiceServer() } @@ -238,6 +264,12 @@ func (UnimplementedStalkerServiceServer) LinkFaceITAccount(context.Context, *Lin func (UnimplementedStalkerServiceServer) GetLinkedFaceITAccount(context.Context, *GetLinkedFaceITAccountRequest) (*LinkedAccount, error) { return nil, status.Error(codes.Unimplemented, "method GetLinkedFaceITAccount not implemented") } +func (UnimplementedStalkerServiceServer) LinkSteamAccount(context.Context, *LinkSteamAccountRequest) (*LinkedAccount, error) { + return nil, status.Error(codes.Unimplemented, "method LinkSteamAccount not implemented") +} +func (UnimplementedStalkerServiceServer) GetLinkedSteamAccount(context.Context, *GetLinkedSteamAccountRequest) (*LinkedAccount, error) { + return nil, status.Error(codes.Unimplemented, "method GetLinkedSteamAccount not implemented") +} func (UnimplementedStalkerServiceServer) mustEmbedUnimplementedStalkerServiceServer() {} func (UnimplementedStalkerServiceServer) testEmbeddedByValue() {} @@ -457,6 +489,42 @@ func _StalkerService_GetLinkedFaceITAccount_Handler(srv interface{}, ctx context return interceptor(ctx, in, info, handler) } +func _StalkerService_LinkSteamAccount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(LinkSteamAccountRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(StalkerServiceServer).LinkSteamAccount(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: StalkerService_LinkSteamAccount_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(StalkerServiceServer).LinkSteamAccount(ctx, req.(*LinkSteamAccountRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _StalkerService_GetLinkedSteamAccount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetLinkedSteamAccountRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(StalkerServiceServer).GetLinkedSteamAccount(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: StalkerService_GetLinkedSteamAccount_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(StalkerServiceServer).GetLinkedSteamAccount(ctx, req.(*GetLinkedSteamAccountRequest)) + } + return interceptor(ctx, in, info, handler) +} + // StalkerService_ServiceDesc is the grpc.ServiceDesc for StalkerService service. // It's only intended for direct use with grpc.RegisterService, // and not to be introspected or modified (even as a copy) @@ -508,7 +576,15 @@ var StalkerService_ServiceDesc = grpc.ServiceDesc{ MethodName: "GetLinkedFaceITAccount", Handler: _StalkerService_GetLinkedFaceITAccount_Handler, }, + { + MethodName: "LinkSteamAccount", + Handler: _StalkerService_LinkSteamAccount_Handler, + }, + { + MethodName: "GetLinkedSteamAccount", + Handler: _StalkerService_GetLinkedSteamAccount_Handler, + }, }, Streams: []grpc.StreamDesc{}, - Metadata: "proto/stalker.proto", + Metadata: "stalker.proto", }