Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new DLP samples (Bigquery, DeID, Risk Analysis) #841

Merged
merged 13 commits into from
Oct 19, 2017
Prev Previous commit
Next Next commit
Add missing comment
  • Loading branch information
Ace Nassri committed Oct 18, 2017
commit 18038cb00c8b992523d660d5bd5739c361ea3ec7
4 changes: 4 additions & 0 deletions dlp/src/main/java/com/example/dlp/DeIdentification.java
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,8 @@ private static void deIdentifyWithMask(String string, Character maskingCharacter
// Execute the deidentification request
DeidentifyContentResponse response = dlpServiceClient.deidentifyContent(request);

// Print the character-masked input value
// e.g. "My SSN is 123456789" --> "My SSN is *********"
for (ContentItem item : response.getItemsList()) {
System.out.println(item.getValue());
}
Expand Down Expand Up @@ -184,6 +186,8 @@ private static void deIdentifyWithFpe(
// Execute the deidentification request
DeidentifyContentResponse response = dlpServiceClient.deidentifyContent(request);

// Print the deidentified input value
// e.g. "My SSN is 123456789" --> "My SSN is 7261298621"
for (ContentItem item : response.getItemsList()) {
System.out.println(item.getValue());
}
Expand Down