From e82030716bf94941c7ac186e61c3a8f82e6c887d Mon Sep 17 00:00:00 2001 From: Google APIs Date: Fri, 11 Aug 2017 09:02:57 -0700 Subject: [PATCH] Synchronize new proto changes. --- google/privacy/dlp/v2beta1/dlp.proto | 42 ++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/google/privacy/dlp/v2beta1/dlp.proto b/google/privacy/dlp/v2beta1/dlp.proto index 9f0e82c5..cb0eb931 100644 --- a/google/privacy/dlp/v2beta1/dlp.proto +++ b/google/privacy/dlp/v2beta1/dlp.proto @@ -109,9 +109,23 @@ message ContentItem { // String data to inspect or redact. string value = 3; + + // Structured content for inspection. + Table table = 4; } } +// Structured content to inspect. Up to 50,000 `Value`s per request allowed. +message Table { + message Row { + repeated Value values = 1; + } + + repeated FieldId headers = 1; + + repeated Row rows = 2; +} + // All the findings for a single scanned item. message InspectResult { // List of findings for an item. @@ -161,6 +175,15 @@ message Location { // Field id of the field containing the finding. FieldId field_id = 5; + + // Location within a `ContentItem.Table`. + TableLocation table_location = 6; +} + +// Location of a finding within a `ContentItem.Table`. +message TableLocation { + // The zero-based index of the row where the finding is located. + int64 row_index = 1; } // Generic half-open interval [start, end) @@ -440,6 +463,25 @@ message ListRootCategoriesResponse { repeated CategoryDescription categories = 1; } +// Set of primitive values supported by the system. +message Value { + oneof type { + int64 integer_value = 1; + + double float_value = 2; + + string string_value = 3; + + bool boolean_value = 4; + + google.protobuf.Timestamp timestamp_value = 5; + + google.type.TimeOfDay time_value = 6; + + google.type.Date date_value = 7; + } +} + // Categorization of results based on how likely they are to represent a match, // based on the number of elements they contain which imply a match. enum Likelihood {