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

Commit

Permalink
Release new file type enums and new MetadataLocation proto.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 310622219

Source-Author: Google APIs <noreply@google.com>
Source-Date: Fri May 8 13:49:57 2020 -0700
Source-Repo: googleapis/googleapis
Source-Sha: 1019b0d9dbd999e1107f90247fcc478678d1105c
Source-Link: googleapis/googleapis@1019b0d
  • Loading branch information
yoshi-automation committed May 10, 2020
1 parent a1b65d4 commit ab16039
Show file tree
Hide file tree
Showing 60 changed files with 4,636 additions and 2,032 deletions.
Expand Up @@ -121,7 +121,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
*
* <pre>
* The type of data being sent to in data.
* The type of data being sent for inspection.
* </pre>
*
* Protobuf enum {@code google.privacy.dlp.v2.ByteContentItem.BytesType}
Expand Down Expand Up @@ -197,6 +197,26 @@ public enum BytesType implements com.google.protobuf.ProtocolMessageEnum {
* <code>TEXT_UTF8 = 5;</code>
*/
TEXT_UTF8(5),
/**
*
*
* <pre>
* docx, docm, dotx, dotm
* </pre>
*
* <code>WORD_DOCUMENT = 7;</code>
*/
WORD_DOCUMENT(7),
/**
*
*
* <pre>
* pdf
* </pre>
*
* <code>PDF = 8;</code>
*/
PDF(8),
/**
*
*
Expand Down Expand Up @@ -280,6 +300,26 @@ public enum BytesType implements com.google.protobuf.ProtocolMessageEnum {
* <code>TEXT_UTF8 = 5;</code>
*/
public static final int TEXT_UTF8_VALUE = 5;
/**
*
*
* <pre>
* docx, docm, dotx, dotm
* </pre>
*
* <code>WORD_DOCUMENT = 7;</code>
*/
public static final int WORD_DOCUMENT_VALUE = 7;
/**
*
*
* <pre>
* pdf
* </pre>
*
* <code>PDF = 8;</code>
*/
public static final int PDF_VALUE = 8;
/**
*
*
Expand Down Expand Up @@ -329,6 +369,10 @@ public static BytesType forNumber(int value) {
return IMAGE_SVG;
case 5:
return TEXT_UTF8;
case 7:
return WORD_DOCUMENT;
case 8:
return PDF;
case 11:
return AVRO;
default:
Expand Down
Expand Up @@ -1462,6 +1462,9 @@ public com.google.privacy.dlp.v2.FileType convert(java.lang.Integer from) {
* If empty, all files are scanned and available data format processors
* are applied. In addition, the binary content of the selected files
* is always scanned as well.
* Images are scanned only as binary if the specified region
* does not support image inspection and no file_types were specified.
* Image inspection is restricted to 'global', 'us', 'asia', and 'europe'.
* </pre>
*
* <code>repeated .google.privacy.dlp.v2.FileType file_types = 5;</code>
Expand All @@ -1480,6 +1483,9 @@ public java.util.List<com.google.privacy.dlp.v2.FileType> getFileTypesList() {
* If empty, all files are scanned and available data format processors
* are applied. In addition, the binary content of the selected files
* is always scanned as well.
* Images are scanned only as binary if the specified region
* does not support image inspection and no file_types were specified.
* Image inspection is restricted to 'global', 'us', 'asia', and 'europe'.
* </pre>
*
* <code>repeated .google.privacy.dlp.v2.FileType file_types = 5;</code>
Expand All @@ -1497,6 +1503,9 @@ public int getFileTypesCount() {
* If empty, all files are scanned and available data format processors
* are applied. In addition, the binary content of the selected files
* is always scanned as well.
* Images are scanned only as binary if the specified region
* does not support image inspection and no file_types were specified.
* Image inspection is restricted to 'global', 'us', 'asia', and 'europe'.
* </pre>
*
* <code>repeated .google.privacy.dlp.v2.FileType file_types = 5;</code>
Expand All @@ -1515,6 +1524,9 @@ public com.google.privacy.dlp.v2.FileType getFileTypes(int index) {
* If empty, all files are scanned and available data format processors
* are applied. In addition, the binary content of the selected files
* is always scanned as well.
* Images are scanned only as binary if the specified region
* does not support image inspection and no file_types were specified.
* Image inspection is restricted to 'global', 'us', 'asia', and 'europe'.
* </pre>
*
* <code>repeated .google.privacy.dlp.v2.FileType file_types = 5;</code>
Expand All @@ -1532,6 +1544,9 @@ public java.util.List<java.lang.Integer> getFileTypesValueList() {
* If empty, all files are scanned and available data format processors
* are applied. In addition, the binary content of the selected files
* is always scanned as well.
* Images are scanned only as binary if the specified region
* does not support image inspection and no file_types were specified.
* Image inspection is restricted to 'global', 'us', 'asia', and 'europe'.
* </pre>
*
* <code>repeated .google.privacy.dlp.v2.FileType file_types = 5;</code>
Expand Down Expand Up @@ -2345,6 +2360,9 @@ private void ensureFileTypesIsMutable() {
* If empty, all files are scanned and available data format processors
* are applied. In addition, the binary content of the selected files
* is always scanned as well.
* Images are scanned only as binary if the specified region
* does not support image inspection and no file_types were specified.
* Image inspection is restricted to 'global', 'us', 'asia', and 'europe'.
* </pre>
*
* <code>repeated .google.privacy.dlp.v2.FileType file_types = 5;</code>
Expand All @@ -2363,6 +2381,9 @@ public java.util.List<com.google.privacy.dlp.v2.FileType> getFileTypesList() {
* If empty, all files are scanned and available data format processors
* are applied. In addition, the binary content of the selected files
* is always scanned as well.
* Images are scanned only as binary if the specified region
* does not support image inspection and no file_types were specified.
* Image inspection is restricted to 'global', 'us', 'asia', and 'europe'.
* </pre>
*
* <code>repeated .google.privacy.dlp.v2.FileType file_types = 5;</code>
Expand All @@ -2380,6 +2401,9 @@ public int getFileTypesCount() {
* If empty, all files are scanned and available data format processors
* are applied. In addition, the binary content of the selected files
* is always scanned as well.
* Images are scanned only as binary if the specified region
* does not support image inspection and no file_types were specified.
* Image inspection is restricted to 'global', 'us', 'asia', and 'europe'.
* </pre>
*
* <code>repeated .google.privacy.dlp.v2.FileType file_types = 5;</code>
Expand All @@ -2398,6 +2422,9 @@ public com.google.privacy.dlp.v2.FileType getFileTypes(int index) {
* If empty, all files are scanned and available data format processors
* are applied. In addition, the binary content of the selected files
* is always scanned as well.
* Images are scanned only as binary if the specified region
* does not support image inspection and no file_types were specified.
* Image inspection is restricted to 'global', 'us', 'asia', and 'europe'.
* </pre>
*
* <code>repeated .google.privacy.dlp.v2.FileType file_types = 5;</code>
Expand All @@ -2423,6 +2450,9 @@ public Builder setFileTypes(int index, com.google.privacy.dlp.v2.FileType value)
* If empty, all files are scanned and available data format processors
* are applied. In addition, the binary content of the selected files
* is always scanned as well.
* Images are scanned only as binary if the specified region
* does not support image inspection and no file_types were specified.
* Image inspection is restricted to 'global', 'us', 'asia', and 'europe'.
* </pre>
*
* <code>repeated .google.privacy.dlp.v2.FileType file_types = 5;</code>
Expand All @@ -2447,6 +2477,9 @@ public Builder addFileTypes(com.google.privacy.dlp.v2.FileType value) {
* If empty, all files are scanned and available data format processors
* are applied. In addition, the binary content of the selected files
* is always scanned as well.
* Images are scanned only as binary if the specified region
* does not support image inspection and no file_types were specified.
* Image inspection is restricted to 'global', 'us', 'asia', and 'europe'.
* </pre>
*
* <code>repeated .google.privacy.dlp.v2.FileType file_types = 5;</code>
Expand All @@ -2471,6 +2504,9 @@ public Builder addAllFileTypes(
* If empty, all files are scanned and available data format processors
* are applied. In addition, the binary content of the selected files
* is always scanned as well.
* Images are scanned only as binary if the specified region
* does not support image inspection and no file_types were specified.
* Image inspection is restricted to 'global', 'us', 'asia', and 'europe'.
* </pre>
*
* <code>repeated .google.privacy.dlp.v2.FileType file_types = 5;</code>
Expand All @@ -2491,6 +2527,9 @@ public Builder clearFileTypes() {
* If empty, all files are scanned and available data format processors
* are applied. In addition, the binary content of the selected files
* is always scanned as well.
* Images are scanned only as binary if the specified region
* does not support image inspection and no file_types were specified.
* Image inspection is restricted to 'global', 'us', 'asia', and 'europe'.
* </pre>
*
* <code>repeated .google.privacy.dlp.v2.FileType file_types = 5;</code>
Expand All @@ -2508,6 +2547,9 @@ public java.util.List<java.lang.Integer> getFileTypesValueList() {
* If empty, all files are scanned and available data format processors
* are applied. In addition, the binary content of the selected files
* is always scanned as well.
* Images are scanned only as binary if the specified region
* does not support image inspection and no file_types were specified.
* Image inspection is restricted to 'global', 'us', 'asia', and 'europe'.
* </pre>
*
* <code>repeated .google.privacy.dlp.v2.FileType file_types = 5;</code>
Expand All @@ -2526,6 +2568,9 @@ public int getFileTypesValue(int index) {
* If empty, all files are scanned and available data format processors
* are applied. In addition, the binary content of the selected files
* is always scanned as well.
* Images are scanned only as binary if the specified region
* does not support image inspection and no file_types were specified.
* Image inspection is restricted to 'global', 'us', 'asia', and 'europe'.
* </pre>
*
* <code>repeated .google.privacy.dlp.v2.FileType file_types = 5;</code>
Expand All @@ -2548,6 +2593,9 @@ public Builder setFileTypesValue(int index, int value) {
* If empty, all files are scanned and available data format processors
* are applied. In addition, the binary content of the selected files
* is always scanned as well.
* Images are scanned only as binary if the specified region
* does not support image inspection and no file_types were specified.
* Image inspection is restricted to 'global', 'us', 'asia', and 'europe'.
* </pre>
*
* <code>repeated .google.privacy.dlp.v2.FileType file_types = 5;</code>
Expand All @@ -2569,6 +2617,9 @@ public Builder addFileTypesValue(int value) {
* If empty, all files are scanned and available data format processors
* are applied. In addition, the binary content of the selected files
* is always scanned as well.
* Images are scanned only as binary if the specified region
* does not support image inspection and no file_types were specified.
* Image inspection is restricted to 'global', 'us', 'asia', and 'europe'.
* </pre>
*
* <code>repeated .google.privacy.dlp.v2.FileType file_types = 5;</code>
Expand Down
Expand Up @@ -97,6 +97,9 @@ public interface CloudStorageOptionsOrBuilder
* If empty, all files are scanned and available data format processors
* are applied. In addition, the binary content of the selected files
* is always scanned as well.
* Images are scanned only as binary if the specified region
* does not support image inspection and no file_types were specified.
* Image inspection is restricted to 'global', 'us', 'asia', and 'europe'.
* </pre>
*
* <code>repeated .google.privacy.dlp.v2.FileType file_types = 5;</code>
Expand All @@ -112,6 +115,9 @@ public interface CloudStorageOptionsOrBuilder
* If empty, all files are scanned and available data format processors
* are applied. In addition, the binary content of the selected files
* is always scanned as well.
* Images are scanned only as binary if the specified region
* does not support image inspection and no file_types were specified.
* Image inspection is restricted to 'global', 'us', 'asia', and 'europe'.
* </pre>
*
* <code>repeated .google.privacy.dlp.v2.FileType file_types = 5;</code>
Expand All @@ -127,6 +133,9 @@ public interface CloudStorageOptionsOrBuilder
* If empty, all files are scanned and available data format processors
* are applied. In addition, the binary content of the selected files
* is always scanned as well.
* Images are scanned only as binary if the specified region
* does not support image inspection and no file_types were specified.
* Image inspection is restricted to 'global', 'us', 'asia', and 'europe'.
* </pre>
*
* <code>repeated .google.privacy.dlp.v2.FileType file_types = 5;</code>
Expand All @@ -143,6 +152,9 @@ public interface CloudStorageOptionsOrBuilder
* If empty, all files are scanned and available data format processors
* are applied. In addition, the binary content of the selected files
* is always scanned as well.
* Images are scanned only as binary if the specified region
* does not support image inspection and no file_types were specified.
* Image inspection is restricted to 'global', 'us', 'asia', and 'europe'.
* </pre>
*
* <code>repeated .google.privacy.dlp.v2.FileType file_types = 5;</code>
Expand All @@ -158,6 +170,9 @@ public interface CloudStorageOptionsOrBuilder
* If empty, all files are scanned and available data format processors
* are applied. In addition, the binary content of the selected files
* is always scanned as well.
* Images are scanned only as binary if the specified region
* does not support image inspection and no file_types were specified.
* Image inspection is restricted to 'global', 'us', 'asia', and 'europe'.
* </pre>
*
* <code>repeated .google.privacy.dlp.v2.FileType file_types = 5;</code>
Expand Down

0 comments on commit ab16039

Please sign in to comment.