// Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: // - protoc-gen-go-grpc v1.2.0 // - protoc v3.19.4 // source: user_center.proto package pb import ( context "context" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" ) // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. // Requires gRPC-Go v1.32.0 or later. const _ = grpc.SupportPackageIsVersion7 // UserCenterClient is the client API for UserCenter service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. type UserCenterClient interface { // user RetrievePlatformUser(ctx context.Context, in *PlatformUserReq, opts ...grpc.CallOption) (*PlatformUserResp, error) // statistics StatPvpDamage(ctx context.Context, in *StatPvPDamageReq, opts ...grpc.CallOption) (*Empty, error) StatPvpKillUnit(ctx context.Context, in *StatPvPKillUnitReq, opts ...grpc.CallOption) (*Empty, error) StatPvpKill(ctx context.Context, in *StatPvPKillReq, opts ...grpc.CallOption) (*Empty, error) StatPvpFirstBlood(ctx context.Context, in *StatPvPFirstBloodReq, opts ...grpc.CallOption) (*Empty, error) StatPvpReport(ctx context.Context, in *StatPvPReportReq, opts ...grpc.CallOption) (*Empty, error) // rank RankPvp(ctx context.Context, in *RankPvpReq, opts ...grpc.CallOption) (*RankPvpResp, error) } type userCenterClient struct { cc grpc.ClientConnInterface } func NewUserCenterClient(cc grpc.ClientConnInterface) UserCenterClient { return &userCenterClient{cc} } func (c *userCenterClient) RetrievePlatformUser(ctx context.Context, in *PlatformUserReq, opts ...grpc.CallOption) (*PlatformUserResp, error) { out := new(PlatformUserResp) err := c.cc.Invoke(ctx, "/pb.userCenter/retrievePlatformUser", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *userCenterClient) StatPvpDamage(ctx context.Context, in *StatPvPDamageReq, opts ...grpc.CallOption) (*Empty, error) { out := new(Empty) err := c.cc.Invoke(ctx, "/pb.userCenter/statPvpDamage", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *userCenterClient) StatPvpKillUnit(ctx context.Context, in *StatPvPKillUnitReq, opts ...grpc.CallOption) (*Empty, error) { out := new(Empty) err := c.cc.Invoke(ctx, "/pb.userCenter/statPvpKillUnit", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *userCenterClient) StatPvpKill(ctx context.Context, in *StatPvPKillReq, opts ...grpc.CallOption) (*Empty, error) { out := new(Empty) err := c.cc.Invoke(ctx, "/pb.userCenter/statPvpKill", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *userCenterClient) StatPvpFirstBlood(ctx context.Context, in *StatPvPFirstBloodReq, opts ...grpc.CallOption) (*Empty, error) { out := new(Empty) err := c.cc.Invoke(ctx, "/pb.userCenter/statPvpFirstBlood", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *userCenterClient) StatPvpReport(ctx context.Context, in *StatPvPReportReq, opts ...grpc.CallOption) (*Empty, error) { out := new(Empty) err := c.cc.Invoke(ctx, "/pb.userCenter/statPvpReport", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *userCenterClient) RankPvp(ctx context.Context, in *RankPvpReq, opts ...grpc.CallOption) (*RankPvpResp, error) { out := new(RankPvpResp) err := c.cc.Invoke(ctx, "/pb.userCenter/rankPvp", in, out, opts...) if err != nil { return nil, err } return out, nil } // UserCenterServer is the server API for UserCenter service. // All implementations must embed UnimplementedUserCenterServer // for forward compatibility type UserCenterServer interface { // user RetrievePlatformUser(context.Context, *PlatformUserReq) (*PlatformUserResp, error) // statistics StatPvpDamage(context.Context, *StatPvPDamageReq) (*Empty, error) StatPvpKillUnit(context.Context, *StatPvPKillUnitReq) (*Empty, error) StatPvpKill(context.Context, *StatPvPKillReq) (*Empty, error) StatPvpFirstBlood(context.Context, *StatPvPFirstBloodReq) (*Empty, error) StatPvpReport(context.Context, *StatPvPReportReq) (*Empty, error) // rank RankPvp(context.Context, *RankPvpReq) (*RankPvpResp, error) mustEmbedUnimplementedUserCenterServer() } // UnimplementedUserCenterServer must be embedded to have forward compatible implementations. type UnimplementedUserCenterServer struct { } func (UnimplementedUserCenterServer) RetrievePlatformUser(context.Context, *PlatformUserReq) (*PlatformUserResp, error) { return nil, status.Errorf(codes.Unimplemented, "method RetrievePlatformUser not implemented") } func (UnimplementedUserCenterServer) StatPvpDamage(context.Context, *StatPvPDamageReq) (*Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method StatPvpDamage not implemented") } func (UnimplementedUserCenterServer) StatPvpKillUnit(context.Context, *StatPvPKillUnitReq) (*Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method StatPvpKillUnit not implemented") } func (UnimplementedUserCenterServer) StatPvpKill(context.Context, *StatPvPKillReq) (*Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method StatPvpKill not implemented") } func (UnimplementedUserCenterServer) StatPvpFirstBlood(context.Context, *StatPvPFirstBloodReq) (*Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method StatPvpFirstBlood not implemented") } func (UnimplementedUserCenterServer) StatPvpReport(context.Context, *StatPvPReportReq) (*Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method StatPvpReport not implemented") } func (UnimplementedUserCenterServer) RankPvp(context.Context, *RankPvpReq) (*RankPvpResp, error) { return nil, status.Errorf(codes.Unimplemented, "method RankPvp not implemented") } func (UnimplementedUserCenterServer) mustEmbedUnimplementedUserCenterServer() {} // UnsafeUserCenterServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to UserCenterServer will // result in compilation errors. type UnsafeUserCenterServer interface { mustEmbedUnimplementedUserCenterServer() } func RegisterUserCenterServer(s grpc.ServiceRegistrar, srv UserCenterServer) { s.RegisterService(&UserCenter_ServiceDesc, srv) } func _UserCenter_RetrievePlatformUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(PlatformUserReq) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(UserCenterServer).RetrievePlatformUser(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/pb.userCenter/retrievePlatformUser", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(UserCenterServer).RetrievePlatformUser(ctx, req.(*PlatformUserReq)) } return interceptor(ctx, in, info, handler) } func _UserCenter_StatPvpDamage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(StatPvPDamageReq) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(UserCenterServer).StatPvpDamage(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/pb.userCenter/statPvpDamage", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(UserCenterServer).StatPvpDamage(ctx, req.(*StatPvPDamageReq)) } return interceptor(ctx, in, info, handler) } func _UserCenter_StatPvpKillUnit_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(StatPvPKillUnitReq) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(UserCenterServer).StatPvpKillUnit(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/pb.userCenter/statPvpKillUnit", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(UserCenterServer).StatPvpKillUnit(ctx, req.(*StatPvPKillUnitReq)) } return interceptor(ctx, in, info, handler) } func _UserCenter_StatPvpKill_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(StatPvPKillReq) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(UserCenterServer).StatPvpKill(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/pb.userCenter/statPvpKill", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(UserCenterServer).StatPvpKill(ctx, req.(*StatPvPKillReq)) } return interceptor(ctx, in, info, handler) } func _UserCenter_StatPvpFirstBlood_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(StatPvPFirstBloodReq) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(UserCenterServer).StatPvpFirstBlood(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/pb.userCenter/statPvpFirstBlood", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(UserCenterServer).StatPvpFirstBlood(ctx, req.(*StatPvPFirstBloodReq)) } return interceptor(ctx, in, info, handler) } func _UserCenter_StatPvpReport_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(StatPvPReportReq) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(UserCenterServer).StatPvpReport(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/pb.userCenter/statPvpReport", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(UserCenterServer).StatPvpReport(ctx, req.(*StatPvPReportReq)) } return interceptor(ctx, in, info, handler) } func _UserCenter_RankPvp_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(RankPvpReq) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(UserCenterServer).RankPvp(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/pb.userCenter/rankPvp", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(UserCenterServer).RankPvp(ctx, req.(*RankPvpReq)) } return interceptor(ctx, in, info, handler) } // UserCenter_ServiceDesc is the grpc.ServiceDesc for UserCenter service. // It's only intended for direct use with grpc.RegisterService, // and not to be introspected or modified (even as a copy) var UserCenter_ServiceDesc = grpc.ServiceDesc{ ServiceName: "pb.userCenter", HandlerType: (*UserCenterServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "retrievePlatformUser", Handler: _UserCenter_RetrievePlatformUser_Handler, }, { MethodName: "statPvpDamage", Handler: _UserCenter_StatPvpDamage_Handler, }, { MethodName: "statPvpKillUnit", Handler: _UserCenter_StatPvpKillUnit_Handler, }, { MethodName: "statPvpKill", Handler: _UserCenter_StatPvpKill_Handler, }, { MethodName: "statPvpFirstBlood", Handler: _UserCenter_StatPvpFirstBlood_Handler, }, { MethodName: "statPvpReport", Handler: _UserCenter_StatPvpReport_Handler, }, { MethodName: "rankPvp", Handler: _UserCenter_RankPvp_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "user_center.proto", }