Skip to content
This repository has been archived by the owner on Sep 27, 2023. It is now read-only.

feat: new Bytes and File types: POWERPOINT and EXCEL #848

Merged
merged 2 commits into from
Mar 29, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,26 @@ public enum BytesType implements com.google.protobuf.ProtocolMessageEnum {
* <code>PDF = 8;</code>
*/
PDF(8),
/**
*
*
* <pre>
* pptx, pptm, potx, potm, pot
* </pre>
*
* <code>POWERPOINT_DOCUMENT = 9;</code>
*/
POWERPOINT_DOCUMENT(9),
/**
*
*
* <pre>
* xlsx, xlsm, xltx, xltm
* </pre>
*
* <code>EXCEL_DOCUMENT = 10;</code>
*/
EXCEL_DOCUMENT(10),
/**
*
*
Expand Down Expand Up @@ -342,6 +362,26 @@ public enum BytesType implements com.google.protobuf.ProtocolMessageEnum {
* <code>PDF = 8;</code>
*/
public static final int PDF_VALUE = 8;
/**
*
*
* <pre>
* pptx, pptm, potx, potm, pot
* </pre>
*
* <code>POWERPOINT_DOCUMENT = 9;</code>
*/
public static final int POWERPOINT_DOCUMENT_VALUE = 9;
/**
*
*
* <pre>
* xlsx, xlsm, xltx, xltm
* </pre>
*
* <code>EXCEL_DOCUMENT = 10;</code>
*/
public static final int EXCEL_DOCUMENT_VALUE = 10;
/**
*
*
Expand Down Expand Up @@ -415,6 +455,10 @@ public static BytesType forNumber(int value) {
return WORD_DOCUMENT;
case 8:
return PDF;
case 9:
return POWERPOINT_DOCUMENT;
case 10:
return EXCEL_DOCUMENT;
case 11:
return AVRO;
case 12:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,6 @@ public com.google.protobuf.ByteString getIncludeRegexBytes(int index) {
*
*
* <pre>
* [syntax](https://github.com/google/re2/wiki/Syntax); a guide can be found
* A list of regular expressions matching file paths to exclude. All files in
* the bucket that match at least one of these regular expressions will be
* excluded from the scan.
Expand All @@ -329,7 +328,6 @@ public com.google.protobuf.ProtocolStringList getExcludeRegexList() {
*
*
* <pre>
* [syntax](https://github.com/google/re2/wiki/Syntax); a guide can be found
* A list of regular expressions matching file paths to exclude. All files in
* the bucket that match at least one of these regular expressions will be
* excluded from the scan.
Expand All @@ -349,7 +347,6 @@ public int getExcludeRegexCount() {
*
*
* <pre>
* [syntax](https://github.com/google/re2/wiki/Syntax); a guide can be found
* A list of regular expressions matching file paths to exclude. All files in
* the bucket that match at least one of these regular expressions will be
* excluded from the scan.
Expand All @@ -370,7 +367,6 @@ public java.lang.String getExcludeRegex(int index) {
*
*
* <pre>
* [syntax](https://github.com/google/re2/wiki/Syntax); a guide can be found
* A list of regular expressions matching file paths to exclude. All files in
* the bucket that match at least one of these regular expressions will be
* excluded from the scan.
Expand Down Expand Up @@ -1150,7 +1146,6 @@ private void ensureExcludeRegexIsMutable() {
*
*
* <pre>
* [syntax](https://github.com/google/re2/wiki/Syntax); a guide can be found
* A list of regular expressions matching file paths to exclude. All files in
* the bucket that match at least one of these regular expressions will be
* excluded from the scan.
Expand All @@ -1170,7 +1165,6 @@ public com.google.protobuf.ProtocolStringList getExcludeRegexList() {
*
*
* <pre>
* [syntax](https://github.com/google/re2/wiki/Syntax); a guide can be found
* A list of regular expressions matching file paths to exclude. All files in
* the bucket that match at least one of these regular expressions will be
* excluded from the scan.
Expand All @@ -1190,7 +1184,6 @@ public int getExcludeRegexCount() {
*
*
* <pre>
* [syntax](https://github.com/google/re2/wiki/Syntax); a guide can be found
* A list of regular expressions matching file paths to exclude. All files in
* the bucket that match at least one of these regular expressions will be
* excluded from the scan.
Expand All @@ -1211,7 +1204,6 @@ public java.lang.String getExcludeRegex(int index) {
*
*
* <pre>
* [syntax](https://github.com/google/re2/wiki/Syntax); a guide can be found
* A list of regular expressions matching file paths to exclude. All files in
* the bucket that match at least one of these regular expressions will be
* excluded from the scan.
Expand All @@ -1232,7 +1224,6 @@ public com.google.protobuf.ByteString getExcludeRegexBytes(int index) {
*
*
* <pre>
* [syntax](https://github.com/google/re2/wiki/Syntax); a guide can be found
* A list of regular expressions matching file paths to exclude. All files in
* the bucket that match at least one of these regular expressions will be
* excluded from the scan.
Expand Down Expand Up @@ -1260,7 +1251,6 @@ public Builder setExcludeRegex(int index, java.lang.String value) {
*
*
* <pre>
* [syntax](https://github.com/google/re2/wiki/Syntax); a guide can be found
* A list of regular expressions matching file paths to exclude. All files in
* the bucket that match at least one of these regular expressions will be
* excluded from the scan.
Expand All @@ -1287,7 +1277,6 @@ public Builder addExcludeRegex(java.lang.String value) {
*
*
* <pre>
* [syntax](https://github.com/google/re2/wiki/Syntax); a guide can be found
* A list of regular expressions matching file paths to exclude. All files in
* the bucket that match at least one of these regular expressions will be
* excluded from the scan.
Expand All @@ -1311,7 +1300,6 @@ public Builder addAllExcludeRegex(java.lang.Iterable<java.lang.String> values) {
*
*
* <pre>
* [syntax](https://github.com/google/re2/wiki/Syntax); a guide can be found
* A list of regular expressions matching file paths to exclude. All files in
* the bucket that match at least one of these regular expressions will be
* excluded from the scan.
Expand All @@ -1334,7 +1322,6 @@ public Builder clearExcludeRegex() {
*
*
* <pre>
* [syntax](https://github.com/google/re2/wiki/Syntax); a guide can be found
* A list of regular expressions matching file paths to exclude. All files in
* the bucket that match at least one of these regular expressions will be
* excluded from the scan.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,6 @@ public interface CloudStorageRegexFileSetOrBuilder
*
*
* <pre>
* [syntax](https://github.com/google/re2/wiki/Syntax); a guide can be found
* A list of regular expressions matching file paths to exclude. All files in
* the bucket that match at least one of these regular expressions will be
* excluded from the scan.
Expand All @@ -149,7 +148,6 @@ public interface CloudStorageRegexFileSetOrBuilder
*
*
* <pre>
* [syntax](https://github.com/google/re2/wiki/Syntax); a guide can be found
* A list of regular expressions matching file paths to exclude. All files in
* the bucket that match at least one of these regular expressions will be
* excluded from the scan.
Expand All @@ -167,7 +165,6 @@ public interface CloudStorageRegexFileSetOrBuilder
*
*
* <pre>
* [syntax](https://github.com/google/re2/wiki/Syntax); a guide can be found
* A list of regular expressions matching file paths to exclude. All files in
* the bucket that match at least one of these regular expressions will be
* excluded from the scan.
Expand All @@ -186,7 +183,6 @@ public interface CloudStorageRegexFileSetOrBuilder
*
*
* <pre>
* [syntax](https://github.com/google/re2/wiki/Syntax); a guide can be found
* A list of regular expressions matching file paths to exclude. All files in
* the bucket that match at least one of these regular expressions will be
* excluded from the scan.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
*
*
* <pre>
* Options describing which parts of the provided content should be scanned.
* Deprecated and unused.
* </pre>
*
* Protobuf enum {@code google.privacy.dlp.v2.ContentOption}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ public interface DictionaryOrBuilder
* Plane](https://en.wikipedia.org/wiki/Plane_%28Unicode%29#Basic_Multilingual_Plane)
* will be replaced with whitespace when scanning for matches, so the
* dictionary phrase "Sam Johnson" will match all three phrases "sam johnson",
* Plane](https://en.wikipedia.org/wiki/Plane_%28Unicode%29#Basic_Multilingual_Plane)
* "Sam, Johnson", and "Sam (Johnson)". Additionally, the characters
* surrounding any match must be of a different type than the adjacent
* characters within the word, so letters must be next to non-letters and
* digits next to non-digits. For example, the dictionary word "jen" will
Expand All @@ -456,7 +456,7 @@ public interface DictionaryOrBuilder
* [limits](https://cloud.google.com/dlp/limits) page contains details about
* the size limits of dictionaries. For dictionaries that do not fit within
* these constraints, consider using `LargeCustomDictionaryConfig` in the
* [limits](https://cloud.google.com/dlp/limits) page contains details about
* `StoredInfoType` API.
* </pre>
*
* Protobuf type {@code google.privacy.dlp.v2.CustomInfoType.Dictionary}
Expand Down Expand Up @@ -1752,7 +1752,7 @@ protected Builder newBuilderForType(
* Plane](https://en.wikipedia.org/wiki/Plane_%28Unicode%29#Basic_Multilingual_Plane)
* will be replaced with whitespace when scanning for matches, so the
* dictionary phrase "Sam Johnson" will match all three phrases "sam johnson",
* Plane](https://en.wikipedia.org/wiki/Plane_%28Unicode%29#Basic_Multilingual_Plane)
* "Sam, Johnson", and "Sam (Johnson)". Additionally, the characters
* surrounding any match must be of a different type than the adjacent
* characters within the word, so letters must be next to non-letters and
* digits next to non-digits. For example, the dictionary word "jen" will
Expand All @@ -1764,7 +1764,7 @@ protected Builder newBuilderForType(
* [limits](https://cloud.google.com/dlp/limits) page contains details about
* the size limits of dictionaries. For dictionaries that do not fit within
* these constraints, consider using `LargeCustomDictionaryConfig` in the
* [limits](https://cloud.google.com/dlp/limits) page contains details about
* `StoredInfoType` API.
* </pre>
*
* Protobuf type {@code google.privacy.dlp.v2.CustomInfoType.Dictionary}
Expand Down Expand Up @@ -2486,7 +2486,6 @@ public interface RegexOrBuilder
*
*
* <pre>
* (https://github.com/google/re2/wiki/Syntax) can be found under the
* The index of the submatch to extract as findings. When not
* specified, the entire match is returned. No more than 3 may be included.
* </pre>
Expand All @@ -2500,7 +2499,6 @@ public interface RegexOrBuilder
*
*
* <pre>
* (https://github.com/google/re2/wiki/Syntax) can be found under the
* The index of the submatch to extract as findings. When not
* specified, the entire match is returned. No more than 3 may be included.
* </pre>
Expand All @@ -2514,7 +2512,6 @@ public interface RegexOrBuilder
*
*
* <pre>
* (https://github.com/google/re2/wiki/Syntax) can be found under the
* The index of the submatch to extract as findings. When not
* specified, the entire match is returned. No more than 3 may be included.
* </pre>
Expand Down Expand Up @@ -2706,7 +2703,6 @@ public com.google.protobuf.ByteString getPatternBytes() {
*
*
* <pre>
* (https://github.com/google/re2/wiki/Syntax) can be found under the
* The index of the submatch to extract as findings. When not
* specified, the entire match is returned. No more than 3 may be included.
* </pre>
Expand All @@ -2723,7 +2719,6 @@ public java.util.List<java.lang.Integer> getGroupIndexesList() {
*
*
* <pre>
* (https://github.com/google/re2/wiki/Syntax) can be found under the
* The index of the submatch to extract as findings. When not
* specified, the entire match is returned. No more than 3 may be included.
* </pre>
Expand All @@ -2739,7 +2734,6 @@ public int getGroupIndexesCount() {
*
*
* <pre>
* (https://github.com/google/re2/wiki/Syntax) can be found under the
* The index of the submatch to extract as findings. When not
* specified, the entire match is returned. No more than 3 may be included.
* </pre>
Expand Down Expand Up @@ -3250,7 +3244,6 @@ private void ensureGroupIndexesIsMutable() {
*
*
* <pre>
* (https://github.com/google/re2/wiki/Syntax) can be found under the
* The index of the submatch to extract as findings. When not
* specified, the entire match is returned. No more than 3 may be included.
* </pre>
Expand All @@ -3268,7 +3261,6 @@ public java.util.List<java.lang.Integer> getGroupIndexesList() {
*
*
* <pre>
* (https://github.com/google/re2/wiki/Syntax) can be found under the
* The index of the submatch to extract as findings. When not
* specified, the entire match is returned. No more than 3 may be included.
* </pre>
Expand All @@ -3284,7 +3276,6 @@ public int getGroupIndexesCount() {
*
*
* <pre>
* (https://github.com/google/re2/wiki/Syntax) can be found under the
* The index of the submatch to extract as findings. When not
* specified, the entire match is returned. No more than 3 may be included.
* </pre>
Expand All @@ -3301,7 +3292,6 @@ public int getGroupIndexes(int index) {
*
*
* <pre>
* (https://github.com/google/re2/wiki/Syntax) can be found under the
* The index of the submatch to extract as findings. When not
* specified, the entire match is returned. No more than 3 may be included.
* </pre>
Expand All @@ -3322,7 +3312,6 @@ public Builder setGroupIndexes(int index, int value) {
*
*
* <pre>
* (https://github.com/google/re2/wiki/Syntax) can be found under the
* The index of the submatch to extract as findings. When not
* specified, the entire match is returned. No more than 3 may be included.
* </pre>
Expand All @@ -3342,7 +3331,6 @@ public Builder addGroupIndexes(int value) {
*
*
* <pre>
* (https://github.com/google/re2/wiki/Syntax) can be found under the
* The index of the submatch to extract as findings. When not
* specified, the entire match is returned. No more than 3 may be included.
* </pre>
Expand All @@ -3362,7 +3350,6 @@ public Builder addAllGroupIndexes(java.lang.Iterable<? extends java.lang.Integer
*
*
* <pre>
* (https://github.com/google/re2/wiki/Syntax) can be found under the
* The index of the submatch to extract as findings. When not
* specified, the entire match is returned. No more than 3 may be included.
* </pre>
Expand Down Expand Up @@ -3443,7 +3430,7 @@ public interface SurrogateTypeOrBuilder
* [`CryptoReplaceFfxFpeConfig`](https://cloud.google.com/dlp/docs/reference/rest/v2/organizations.deidentifyTemplates#cryptoreplaceffxfpeconfig).
* These types of transformations are
* those that perform pseudonymization, thereby producing a "surrogate" as
* [`CryptoReplaceFfxFpeConfig`](https://cloud.google.com/dlp/docs/reference/rest/v2/organizations.deidentifyTemplates#cryptoreplaceffxfpeconfig).
* output. This should be used in conjunction with a field on the
* transformation such as `surrogate_info_type`. This CustomInfoType does
* not support the use of `detection_rules`.
* </pre>
Expand Down Expand Up @@ -3686,7 +3673,7 @@ protected Builder newBuilderForType(
* [`CryptoReplaceFfxFpeConfig`](https://cloud.google.com/dlp/docs/reference/rest/v2/organizations.deidentifyTemplates#cryptoreplaceffxfpeconfig).
* These types of transformations are
* those that perform pseudonymization, thereby producing a "surrogate" as
* [`CryptoReplaceFfxFpeConfig`](https://cloud.google.com/dlp/docs/reference/rest/v2/organizations.deidentifyTemplates#cryptoreplaceffxfpeconfig).
* output. This should be used in conjunction with a field on the
* transformation such as `surrogate_info_type`. This CustomInfoType does
* not support the use of `detection_rules`.
* </pre>
Expand Down
Loading