This document describes using Sensitive Data Protection to mitigate the risk of exposing sensitive data stored in Google Cloud databases to users, and yet still let them query meaningful data.
https://cloud.google.com/architecture/example-architecture-dlp-proxy-query-database-sensitive-data