Hello Mohammed,
Can you please elaborate, how you have deployed your website on GCE? Are you using WordPress - Google click to deploy the solution to host your website on GCE?
Meanwhile, you may want to try the recommendations provided in these stack articles[1][2][3] about hiding the source code.
[1]:https://stackoverflow.com/questions/14230411/how-to-hide-wordpress-details-from-view-source-code
[2]: https://stackoverflow.com/questions/12543704/how-to-hide-my-source-code-so-to-not-be-copied
[3]:https://stackoverflow.com/questions/214886/how-do-i-hide-directories-in-apache-specifically-source-controYou may want to try Plesk Onyx on CentOS 7 WebHost Edition to host your website on GCE. Plesk is the leading WebOps platform to build, secure, and run websites and applications. It includes a control panel with an intuitive interface along with a complete set of security tools and features to protect your websites.
I understand you are looking for a similar solution on GCE as you already have with Hostgator server along with cpanel. Please let me know if I misunderstood and you looking something else.
You can find detailed information about Google cloud launcher in this documentation[1].
I hope this resolves your query?