// 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) } 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 } // 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) 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) 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) } // 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, }, }, Streams: []grpc.StreamDesc{}, Metadata: "user_center.proto", }