This is a good question
This is a good (although commonly debated question) among bodybuilders and athletes alike. There are two sides to this debate.
One school of thought claims that whole food is better than protein shakes. I believe that the argument for this is that whole foods contain more vitamines, minerals and amino acids etc, than a protein shake. I think that there is also a sort of attitude among these thinkers that "protein shakes are an easy way out" almost like they are a way of cheating, because they offer a quick simple shot of protein with very little work. I dont think anyone would admit that they feel that way, but its just a vibe I get.
The other school of thought believse that protein shakes are equal to and perhaps greater than consuming whole foods. There are benefits to protien shakes. They are quick and easy. They are much more portable and more publicly presentable than a container of chicken breasts or tuna fish. Not everyone enjoys the smell of someone elses food.
My personal opinion is that protein shakes are great. I usually get 3 or 4 a day when I am bulking and 1 or 2 when cutting. I do not particularly like the artificial sweetener found in some shakes. but that is personal preference. I consume first thing, pre and post workout and pre bed. If my day is a little slower, i consume just pre and post.