What are the principal differences between 'to be to', 'to be going to', 'to be set to'?

Thank you in advance.