diff --git a/dlp/src/main/java/dlp/snippets/InspectFile.java b/dlp/src/main/java/dlp/snippets/InspectFile.java index 1bb3846ab3e..6b1d57fdcda 100644 --- a/dlp/src/main/java/dlp/snippets/InspectFile.java +++ b/dlp/src/main/java/dlp/snippets/InspectFile.java @@ -75,8 +75,10 @@ public static void inspectFile(String projectId, String filePath, String fileTyp .setInspectConfig(config) .build(); - // Use the client to send the request and parse results + // Use the client to send the API request InspectContentResponse response = dlp.inspectContent(request); + + // Parse the response and process results System.out.println("Findings: " + response.getResult().getFindingsCount()); for (Finding f : response.getResult().getFindingsList()) { System.out.println("\tQuote: " + f.getQuote()); diff --git a/dlp/src/main/java/dlp/snippets/InspectString.java b/dlp/src/main/java/dlp/snippets/InspectString.java index 68e1cf91a44..2e8452762b3 100644 --- a/dlp/src/main/java/dlp/snippets/InspectString.java +++ b/dlp/src/main/java/dlp/snippets/InspectString.java @@ -70,8 +70,10 @@ public static void inspectString(String projectId, String textToInspect) { .setInspectConfig(config) .build(); - // Run request and parse response + // Use the client to send the API request InspectContentResponse response = dlp.inspectContent(request); + + // Parse the response and process results System.out.println("Findings: " + response.getResult().getFindingsCount()); for (Finding f : response.getResult().getFindingsList()) { System.out.println("\tQuote: " + f.getQuote());