diff --git a/dlp/src/main/java/dlp/snippets/InspectFile.java b/dlp/src/main/java/dlp/snippets/InspectFile.java index fef3dd4bfab..1bb3846ab3e 100644 --- a/dlp/src/main/java/dlp/snippets/InspectFile.java +++ b/dlp/src/main/java/dlp/snippets/InspectFile.java @@ -80,7 +80,7 @@ public static void inspectFile(String projectId, String filePath, String fileTyp System.out.println("Findings: " + response.getResult().getFindingsCount()); for (Finding f : response.getResult().getFindingsList()) { System.out.println("\tQuote: " + f.getQuote()); - System.out.println("\tInfo type: " + f.getInfoType()); + System.out.println("\tInfo type: " + f.getInfoType().getName()); System.out.println("\tLikelihood: " + f.getLikelihood()); } } catch (Exception e) { diff --git a/dlp/src/main/java/dlp/snippets/InspectString.java b/dlp/src/main/java/dlp/snippets/InspectString.java index f2fb1a70ece..68e1cf91a44 100644 --- a/dlp/src/main/java/dlp/snippets/InspectString.java +++ b/dlp/src/main/java/dlp/snippets/InspectString.java @@ -75,7 +75,7 @@ public static void inspectString(String projectId, String textToInspect) { System.out.println("Findings: " + response.getResult().getFindingsCount()); for (Finding f : response.getResult().getFindingsList()) { System.out.println("\tQuote: " + f.getQuote()); - System.out.println("\tInfo type: " + f.getInfoType()); + System.out.println("\tInfo type: " + f.getInfoType().getName()); System.out.println("\tLikelihood: " + f.getLikelihood()); } } catch (Exception e) {