Skip to content
Permalink
Browse files
feat: add WORD and PDF file type enums and new MetadataLocation proto (
…#176)

* Release new file type enums and new MetadataLocation proto.

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

* ci(java): switch to GitHub Actions (#533)

* ci: switch to GitHub Actions

* update based on comment

Source-Author: Stephanie Wang <stephaniewang526@users.noreply.github.com>
Source-Date: Mon May 11 12:54:00 2020 -0400
Source-Repo: googleapis/synthtool
Source-Sha: 55cdc844877d97139f25004229842624a6a86a02
Source-Link: googleapis/synthtool@55cdc84

* chore: move ci.yaml to workflows dir (#535)

Source-Author: Stephanie Wang <stephaniewang526@users.noreply.github.com>
Source-Date: Mon May 11 16:24:04 2020 -0400
Source-Repo: googleapis/synthtool
Source-Sha: 98c50772ec23295c64cf0d2ddf199ea52961fd4c
Source-Link: googleapis/synthtool@98c5077
  • Loading branch information
yoshi-automation committed May 12, 2020
1 parent a1b65d4 commit 12aeb68a7626eecccc877bdc993e89150991718c
Showing with 4,713 additions and 2,033 deletions.
  1. +76 −0 .github/workflows/ci.yaml
  2. +1 −1 .kokoro/build.bat
  3. +45 −1 proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ByteContentItem.java
  4. +51 −0 proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CloudStorageOptions.java
  5. +15 −0 proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CloudStorageOptionsOrBuilder.java
  6. +300 −0 proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ContentLocation.java
  7. +35 −0 proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ContentLocationOrBuilder.java
  8. +16 −20 proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DateShiftConfig.java
  9. +4 −5 proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DateShiftConfigOrBuilder.java
  10. +14 −21 ...-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DeleteDeidentifyTemplateRequest.java
  11. +4 −6 ...loud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DeleteDeidentifyTemplateRequestOrBuilder.java
  12. +21 −21 proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DeleteInspectTemplateRequest.java
  13. +6 −6 ...e-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DeleteInspectTemplateRequestOrBuilder.java
  14. +14 −14 proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DeleteStoredInfoTypeRequest.java
  15. +4 −4 ...le-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DeleteStoredInfoTypeRequestOrBuilder.java
  16. +1 −1 proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DlpJobType.java
  17. +1,165 −1,131 proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DlpProto.java
  18. +7 −7 proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DlpStorage.java
  19. +50 −0 proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/FileType.java
  20. +25 −81 proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/Finding.java
  21. +210 −0 proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/FindingName.java
  22. +9 −25 proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/FindingOrBuilder.java
  23. +80 −80 proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/FixedSizeBucketingConfig.java
  24. +20 −20 ...oogle-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/FixedSizeBucketingConfigOrBuilder.java
  25. +21 −21 proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/GetDeidentifyTemplateRequest.java
  26. +6 −6 ...e-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/GetDeidentifyTemplateRequestOrBuilder.java
  27. +14 −14 proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/GetInspectTemplateRequest.java
  28. +4 −4 ...ogle-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/GetInspectTemplateRequestOrBuilder.java
  29. +14 −14 proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/GetStoredInfoTypeRequest.java
  30. +4 −4 ...oogle-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/GetStoredInfoTypeRequestOrBuilder.java
  31. +14 −14 proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/HybridInspectDlpJobRequest.java
  32. +4 −4 ...gle-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/HybridInspectDlpJobRequestOrBuilder.java
  33. +14 −14 ...o-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/HybridInspectJobTriggerRequest.java
  34. +4 −4 ...cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/HybridInspectJobTriggerRequestOrBuilder.java
  35. +2 −2 proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/HybridInspectStatistics.java
  36. +1 −1 proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InfoTypeSupportedBy.java
  37. +14 −0 proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InspectContentRequest.java
  38. +4 −0 ...o-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InspectContentRequestOrBuilder.java
  39. +46 −46 proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/JobTrigger.java
  40. +10 −10 proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/JobTriggerOrBuilder.java
  41. +973 −0 proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/MetadataLocation.java
  42. +87 −0 proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/MetadataLocationOrBuilder.java
  43. +150 −0 proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/MetadataType.java
  44. +142 −142 proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/PrivacyMetric.java
  45. +7 −0 proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/RedactImageRequest.java
  46. +2 −0 proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/RedactImageRequestOrBuilder.java
  47. +24 −24 proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/StatisticalTable.java
  48. +6 −6 proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/StatisticalTableOrBuilder.java
  49. +590 −0 proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/StorageMetadataLabel.java
  50. +38 −0 proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/StorageMetadataLabelOrBuilder.java
  51. +1 −1 proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/StoredInfoTypeState.java
  52. +24 −4 proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TableLocation.java
  53. +6 −1 proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TableLocationOrBuilder.java
  54. +14 −21 ...-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/UpdateDeidentifyTemplateRequest.java
  55. +4 −6 ...loud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/UpdateDeidentifyTemplateRequestOrBuilder.java
  56. +14 −14 proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/UpdateInspectTemplateRequest.java
  57. +4 −4 ...e-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/UpdateInspectTemplateRequestOrBuilder.java
  58. +14 −14 proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/UpdateStoredInfoTypeRequest.java
  59. +4 −4 ...le-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/UpdateStoredInfoTypeRequestOrBuilder.java
  60. +241 −185 proto-google-cloud-dlp-v2/src/main/proto/google/privacy/dlp/v2/dlp.proto
  61. +15 −1 proto-google-cloud-dlp-v2/src/main/proto/google/privacy/dlp/v2/storage.proto
  62. +4 −4 synth.metadata
@@ -0,0 +1,76 @@
on:
push:
branches:
- master
pull_request:
name: ci
jobs:
units:
runs-on: ubuntu-latest
strategy:
matrix:
java: [7, 8, 11]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: ${{matrix.java}}
- run: java -version
- run: .kokoro/build.sh
env:
JOB_TYPE: test
- name: coverage
uses: codecov/codecov-action@v1
with:
name: actions ${{matrix.java}}
windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: 8
- run: java -version
- run: .kokoro/build.bat
env:
JOB_TYPE: test
dependencies:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: 8
- run: java -version
- run: .kokoro/dependencies.sh
linkage-monitor:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: 8
- run: java -version
- run: .kokoro/linkage-monitor.sh
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: 8
- run: java -version
- run: .kokoro/build.sh
env:
JOB_TYPE: lint
clirr:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: 8
- run: java -version
- run: .kokoro/build.sh
env:
JOB_TYPE: clirr
@@ -1,3 +1,3 @@
:: See documentation in type-shell-output.bat

"C:\Program Files\Git\bin\bash.exe" github/java-dlp/.kokoro/build.sh
"C:\Program Files\Git\bin\bash.exe" %~dp0build.sh
@@ -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}
@@ -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),
/**
*
*
@@ -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;
/**
*
*
@@ -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:
@@ -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>
@@ -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>
@@ -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>
@@ -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>
@@ -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>
@@ -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>
@@ -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>
@@ -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>
@@ -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>
@@ -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>
@@ -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>
@@ -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>
@@ -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>
@@ -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>
@@ -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>
@@ -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>
@@ -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>
@@ -97,6 +97,9 @@
* 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>
@@ -112,6 +115,9 @@
* 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>
@@ -127,6 +133,9 @@
* 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>
@@ -143,6 +152,9 @@
* 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>
@@ -158,6 +170,9 @@
* 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>

0 comments on commit 12aeb68

Please sign in to comment.