Synchronize new proto changes.

This commit is contained in:
Google APIs 2017-08-11 09:02:57 -07:00
parent 8c51a7ebb5
commit e82030716b
1 changed files with 42 additions and 0 deletions

View File

@ -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 {