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.
Documentation pages that include this code sample
To view the code sample used in context, see the following documentation:
Code sample
Java
To learn how to install and use the client library for Cloud DLP, see the Cloud DLP Client Libraries.
Python
To learn how to install and use the client library for Cloud DLP, see the Cloud DLP Client Libraries.
What's next
To search and filter code samples for other Google Cloud products, see the Google Cloud sample browser