The data loss prevention (DLP) API provides a programmatic way to classify 90+ types of data. For example, if you have a spreadsheet with financial and/or personal information, parsing this data with the DLP API masks and hides all this sensitive information. With this API, you can easily classify and redact sensitive data. At the time of this writing, only contextual and image-based data can be classified and redacted using the DLP API.
Instead of having to stream all data into the API, the DLP API allows you to do storage classification scans that allow contextual data to be scanned in cloud storage or cloud datastore.