To connect to a GCP database not accessible through internet, you need to pass through a proxy provided by GCP. To do so you need to use this command by replacing ${INSTANCE_NAME} by your proxy instance name and ${OTHER_INSTANCE_NAME} by your database instance name.