Uses the Data Loss Prevention API to de-identify sensitive data in a string by replacing matched input values with a value that you specify.
Explore further
For detailed documentation that includes this code sample, see the following:
Code sample
Java
To learn how to install and use the client library for Cloud DLP, see Cloud DLP client libraries.
Node.js
To learn how to install and use the client library for Cloud DLP, see Cloud DLP client libraries.
Python
To learn how to install and use the client library for Cloud DLP, see Cloud DLP client libraries.
What's next
To search and filter code samples for other Google Cloud products, see the Google Cloud sample browser.