Cloud SQL
Google Cloud SQL for PostgreSQL is functionally equivalent to a standard PostgreSQL instance. To emulate this service locally, use the official PostgreSQL Docker container documented in the PostgreSQL lab.
PostgreSQL Lab Complete setup and usage instructions for PostgreSQL — also valid for Google Cloud SQL.