From b718ffa90f4d0e4c20627e6598ec287bd971a99a Mon Sep 17 00:00:00 2001
From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com>
Date: Tue, 6 Sep 2022 20:28:23 +0000
Subject: [PATCH] feat: [dlp] add Deidentify action (#8287)
- [ ] Regenerate this pull request now.
PiperOrigin-RevId: 471923438
Source-Link: https://github.com/googleapis/googleapis/commit/62995d04b95d4da6b691ca6090b394ec67becc8b
Source-Link: https://github.com/googleapis/googleapis-gen/commit/96ba1731c712a693995de75378948781af283739
Copy-Tag: eyJwIjoiamF2YS1kbHAvLk93bEJvdC55YW1sIiwiaCI6Ijk2YmExNzMxYzcxMmE2OTM5OTVkZTc1Mzc4OTQ4NzgxYWYyODM3MzkifQ==
---
java-dlp/README.md | 4 +-
.../google/cloud/dlp/v2/DlpServiceClient.java | 72 +-
.../google/privacy/dlp/v2/DlpServiceGrpc.java | 32 +-
.../com/google/privacy/dlp/v2/Action.java | 2742 ++++++++-
.../privacy/dlp/v2/ActionOrBuilder.java | 41 +-
.../dlp/v2/AnalyzeDataSourceRiskDetails.java | 40 +-
.../privacy/dlp/v2/CharacterMaskConfig.java | 48 +
.../dlp/v2/CharacterMaskConfigOrBuilder.java | 12 +
.../google/privacy/dlp/v2/CharsToIgnore.java | 2 +-
.../privacy/dlp/v2/CloudStorageOptions.java | 4 +-
.../com/google/privacy/dlp/v2/Container.java | 166 +-
.../privacy/dlp/v2/ContainerOrBuilder.java | 44 +-
.../privacy/dlp/v2/ContentLocation.java | 138 +-
.../dlp/v2/ContentLocationOrBuilder.java | 36 +-
.../google/privacy/dlp/v2/ContentOption.java | 2 +-
.../dlp/v2/CryptoDeterministicConfig.java | 24 +-
.../CryptoDeterministicConfigOrBuilder.java | 6 +-
.../dlp/v2/CryptoReplaceFfxFpeConfig.java | 26 +-
.../CryptoReplaceFfxFpeConfigOrBuilder.java | 6 +-
.../dlp/v2/DataProfilePubSubCondition.java | 4 +-
.../dlp/v2/DataProfilePubSubMessage.java | 6 +-
.../google/privacy/dlp/v2/DataRiskLevel.java | 12 +-
.../privacy/dlp/v2/DeidentifyConfig.java | 312 +
.../dlp/v2/DeidentifyConfigOrBuilder.java | 35 +
.../dlp/v2/DeidentifyContentRequest.java | 4 +-
.../com/google/privacy/dlp/v2/DlpJob.java | 8 +-
.../com/google/privacy/dlp/v2/DlpJobType.java | 2 +-
.../com/google/privacy/dlp/v2/DlpProto.java | 2540 ++++----
.../com/google/privacy/dlp/v2/DlpStorage.java | 322 +-
.../privacy/dlp/v2/EncryptionStatus.java | 2 +-
.../privacy/dlp/v2/ExcludeInfoTypes.java | 4 +-
.../privacy/dlp/v2/ImageTransformations.java | 5151 +++++++++++++++++
.../dlp/v2/ImageTransformationsOrBuilder.java | 55 +
.../privacy/dlp/v2/InfoTypeDescription.java | 511 +-
.../dlp/v2/InfoTypeDescriptionOrBuilder.java | 52 +
.../privacy/dlp/v2/InfoTypeSummary.java | 94 +
.../dlp/v2/InfoTypeSummaryOrBuilder.java | 14 +
.../privacy/dlp/v2/InfoTypeSupportedBy.java | 2 +-
.../google/privacy/dlp/v2/InspectConfig.java | 70 +
.../dlp/v2/InspectConfigOrBuilder.java | 15 +
.../dlp/v2/LargeCustomDictionaryConfig.java | 28 +-
.../LargeCustomDictionaryConfigOrBuilder.java | 6 +-
.../v2/ListDeidentifyTemplatesRequest.java | 64 +-
...stDeidentifyTemplatesRequestOrBuilder.java | 18 +-
.../privacy/dlp/v2/ListDlpJobsRequest.java | 112 +-
.../dlp/v2/ListDlpJobsRequestOrBuilder.java | 32 +-
.../dlp/v2/ListInspectTemplatesRequest.java | 64 +-
.../ListInspectTemplatesRequestOrBuilder.java | 18 +-
.../dlp/v2/ListJobTriggersRequest.java | 56 +-
.../v2/ListJobTriggersRequestOrBuilder.java | 16 +-
.../dlp/v2/ListStoredInfoTypesRequest.java | 50 +-
.../ListStoredInfoTypesRequestOrBuilder.java | 14 +-
.../google/privacy/dlp/v2/MatchingType.java | 2 +-
.../google/privacy/dlp/v2/MetadataType.java | 2 +-
.../privacy/dlp/v2/OtherInfoTypeSummary.java | 94 +
.../dlp/v2/OtherInfoTypeSummaryOrBuilder.java | 14 +
.../privacy/dlp/v2/OutputStorageConfig.java | 52 +-
.../dlp/v2/OutputStorageConfigOrBuilder.java | 12 +-
.../privacy/dlp/v2/RecordCondition.java | 4 +-
.../privacy/dlp/v2/RecordTransformation.java | 1166 ++++
.../dlp/v2/RecordTransformationOrBuilder.java | 120 +
.../dlp/v2/ReidentifyContentResponse.java | 4 +-
.../privacy/dlp/v2/RelationalOperator.java | 2 +-
.../privacy/dlp/v2/ResourceVisibility.java | 2 +-
.../com/google/privacy/dlp/v2/Schedule.java | 24 +-
.../privacy/dlp/v2/ScheduleOrBuilder.java | 6 +-
.../privacy/dlp/v2/SensitivityScore.java | 12 +-
.../dlp/v2/SensitivityScoreOrBuilder.java | 2 +-
.../google/privacy/dlp/v2/StorageConfig.java | 283 +-
.../dlp/v2/StorageConfigOrBuilder.java | 6 +-
.../privacy/dlp/v2/StoredInfoTypeState.java | 2 +-
.../privacy/dlp/v2/StoredInfoTypeVersion.java | 46 +-
.../v2/StoredInfoTypeVersionOrBuilder.java | 10 +-
.../privacy/dlp/v2/TransformationConfig.java | 1099 ++++
.../dlp/v2/TransformationConfigOrBuilder.java | 128 +
.../dlp/v2/TransformationContainerType.java | 137 +
.../dlp/v2/TransformationDescription.java | 1324 +++++
.../TransformationDescriptionOrBuilder.java | 157 +
.../privacy/dlp/v2/TransformationDetails.java | 2116 +++++++
.../v2/TransformationDetailsOrBuilder.java | 241 +
.../TransformationDetailsStorageConfig.java | 900 +++
...ormationDetailsStorageConfigOrBuilder.java | 77 +
.../dlp/v2/TransformationLocation.java | 1281 ++++
.../v2/TransformationLocationOrBuilder.java | 138 +
.../dlp/v2/TransformationResultStatus.java | 870 +++
.../TransformationResultStatusOrBuilder.java | 87 +
.../v2/TransformationResultStatusType.java | 219 +
.../privacy/dlp/v2/TransformationType.java | 444 ++
.../privacy/dlp/v2/VersionDescription.java | 815 +++
.../dlp/v2/VersionDescriptionOrBuilder.java | 75 +
.../proto/google/privacy/dlp/v2/dlp.proto | 589 +-
.../proto/google/privacy/dlp/v2/storage.proto | 57 +-
92 files changed, 23495 insertions(+), 2262 deletions(-)
create mode 100644 java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ImageTransformations.java
create mode 100644 java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ImageTransformationsOrBuilder.java
create mode 100644 java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/RecordTransformation.java
create mode 100644 java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/RecordTransformationOrBuilder.java
create mode 100644 java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TransformationConfig.java
create mode 100644 java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TransformationConfigOrBuilder.java
create mode 100644 java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TransformationContainerType.java
create mode 100644 java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TransformationDescription.java
create mode 100644 java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TransformationDescriptionOrBuilder.java
create mode 100644 java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TransformationDetails.java
create mode 100644 java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TransformationDetailsOrBuilder.java
create mode 100644 java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TransformationDetailsStorageConfig.java
create mode 100644 java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TransformationDetailsStorageConfigOrBuilder.java
create mode 100644 java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TransformationLocation.java
create mode 100644 java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TransformationLocationOrBuilder.java
create mode 100644 java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TransformationResultStatus.java
create mode 100644 java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TransformationResultStatusOrBuilder.java
create mode 100644 java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TransformationResultStatusType.java
create mode 100644 java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TransformationType.java
create mode 100644 java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/VersionDescription.java
create mode 100644 java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/VersionDescriptionOrBuilder.java
diff --git a/java-dlp/README.md b/java-dlp/README.md
index 9c15b07045fe..76550c4f6802 100644
--- a/java-dlp/README.md
+++ b/java-dlp/README.md
@@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
Sample code: @@ -554,7 +554,7 @@ public final ListInfoTypesResponse listInfoTypes(String parent) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Returns a list of the sensitive information types that the DLP API supports. See + * Returns a list of the sensitive information types that DLP API supports. See * https://cloud.google.com/dlp/docs/infotypes-reference to learn more. * *
Sample code: @@ -583,7 +583,7 @@ public final ListInfoTypesResponse listInfoTypes(ListInfoTypesRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Returns a list of the sensitive information types that the DLP API supports. See + * Returns a list of the sensitive information types that DLP API supports. See * https://cloud.google.com/dlp/docs/infotypes-reference to learn more. * *
Sample code:
@@ -612,7 +612,7 @@ public final UnaryCallable Sample code:
@@ -657,7 +657,7 @@ public final InspectTemplate createInspectTemplate(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Creates an InspectTemplate for re-using frequently used configuration for inspecting content,
+ * Creates an InspectTemplate for reusing frequently used configuration for inspecting content,
* images, and storage. See https://cloud.google.com/dlp/docs/creating-templates to learn more.
*
* Sample code:
@@ -702,7 +702,7 @@ public final InspectTemplate createInspectTemplate(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Creates an InspectTemplate for re-using frequently used configuration for inspecting content,
+ * Creates an InspectTemplate for reusing frequently used configuration for inspecting content,
* images, and storage. See https://cloud.google.com/dlp/docs/creating-templates to learn more.
*
* Sample code:
@@ -747,7 +747,7 @@ public final InspectTemplate createInspectTemplate(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Creates an InspectTemplate for re-using frequently used configuration for inspecting content,
+ * Creates an InspectTemplate for reusing frequently used configuration for inspecting content,
* images, and storage. See https://cloud.google.com/dlp/docs/creating-templates to learn more.
*
* Sample code:
@@ -792,7 +792,7 @@ public final InspectTemplate createInspectTemplate(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Creates an InspectTemplate for re-using frequently used configuration for inspecting content,
+ * Creates an InspectTemplate for reusing frequently used configuration for inspecting content,
* images, and storage. See https://cloud.google.com/dlp/docs/creating-templates to learn more.
*
* Sample code:
@@ -837,7 +837,7 @@ public final InspectTemplate createInspectTemplate(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Creates an InspectTemplate for re-using frequently used configuration for inspecting content,
+ * Creates an InspectTemplate for reusing frequently used configuration for inspecting content,
* images, and storage. See https://cloud.google.com/dlp/docs/creating-templates to learn more.
*
* Sample code:
@@ -866,7 +866,7 @@ public final InspectTemplate createInspectTemplate(CreateInspectTemplateRequest
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Creates an InspectTemplate for re-using frequently used configuration for inspecting content,
+ * Creates an InspectTemplate for reusing frequently used configuration for inspecting content,
* images, and storage. See https://cloud.google.com/dlp/docs/creating-templates to learn more.
*
* Sample code:
@@ -1589,7 +1589,7 @@ public final UnaryCallable + Projects scope, location specified:<br/>
* `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
* + Projects scope, no location specified (defaults to global):<br/>
- * `projects/`<var>PROJECT_ID</var> + Organizations scope, location
- * specified:<br/>
- * `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var>
- * + Organizations scope, no location specified (defaults to global):<br/>
- * `organizations/`<var>ORG_ID</var>
+ * `projects/`<var>PROJECT_ID</var>
* The following example `parent` string specifies a parent project with the identifier
* `example-project`, and specifies the `europe-west3` location for processing data:
* parent=projects/example-project/locations/europe-west3
@@ -4914,11 +4910,7 @@ public final ListStoredInfoTypesPagedResponse listStoredInfoTypes(LocationName p
* + Projects scope, location specified:<br/>
* `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
* + Projects scope, no location specified (defaults to global):<br/>
- * `projects/`<var>PROJECT_ID</var> + Organizations scope, location
- * specified:<br/>
- * `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var>
- * + Organizations scope, no location specified (defaults to global):<br/>
- * `organizations/`<var>ORG_ID</var>
+ * `projects/`<var>PROJECT_ID</var>
* The following example `parent` string specifies a parent project with the identifier
* `example-project`, and specifies the `europe-west3` location for processing data:
* parent=projects/example-project/locations/europe-west3
@@ -4958,11 +4950,7 @@ public final ListStoredInfoTypesPagedResponse listStoredInfoTypes(
* + Projects scope, location specified:<br/>
* `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
* + Projects scope, no location specified (defaults to global):<br/>
- * `projects/`<var>PROJECT_ID</var> + Organizations scope, location
- * specified:<br/>
- * `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var>
- * + Organizations scope, no location specified (defaults to global):<br/>
- * `organizations/`<var>ORG_ID</var>
+ * `projects/`<var>PROJECT_ID</var>
* The following example `parent` string specifies a parent project with the identifier
* `example-project`, and specifies the `europe-west3` location for processing data:
* parent=projects/example-project/locations/europe-west3
@@ -5001,11 +4989,7 @@ public final ListStoredInfoTypesPagedResponse listStoredInfoTypes(OrganizationNa
* + Projects scope, location specified:<br/>
* `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
* + Projects scope, no location specified (defaults to global):<br/>
- * `projects/`<var>PROJECT_ID</var> + Organizations scope, location
- * specified:<br/>
- * `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var>
- * + Organizations scope, no location specified (defaults to global):<br/>
- * `organizations/`<var>ORG_ID</var>
+ * `projects/`<var>PROJECT_ID</var>
* The following example `parent` string specifies a parent project with the identifier
* `example-project`, and specifies the `europe-west3` location for processing data:
* parent=projects/example-project/locations/europe-west3
@@ -5044,11 +5028,7 @@ public final ListStoredInfoTypesPagedResponse listStoredInfoTypes(ProjectName pa
* + Projects scope, location specified:<br/>
* `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
* + Projects scope, no location specified (defaults to global):<br/>
- * `projects/`<var>PROJECT_ID</var> + Organizations scope, location
- * specified:<br/>
- * `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var>
- * + Organizations scope, no location specified (defaults to global):<br/>
- * `organizations/`<var>ORG_ID</var>
+ * `projects/`<var>PROJECT_ID</var>
* The following example `parent` string specifies a parent project with the identifier
* `example-project`, and specifies the `europe-west3` location for processing data:
* parent=projects/example-project/locations/europe-west3
diff --git a/java-dlp/grpc-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DlpServiceGrpc.java b/java-dlp/grpc-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DlpServiceGrpc.java
index 6f4b5922ea30..d5f3bc09e241 100644
--- a/java-dlp/grpc-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DlpServiceGrpc.java
+++ b/java-dlp/grpc-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DlpServiceGrpc.java
@@ -1725,7 +1725,7 @@ public void reidentifyContent(
*
*
*
- * Returns a list of the sensitive information types that the DLP API
+ * Returns a list of the sensitive information types that DLP API
* supports. See https://cloud.google.com/dlp/docs/infotypes-reference to
* learn more.
*
@@ -1742,7 +1742,7 @@ public void listInfoTypes(
*
*
*
- * Creates an InspectTemplate for re-using frequently used configuration
+ * Creates an InspectTemplate for reusing frequently used configuration
* for inspecting content, images, and storage.
* See https://cloud.google.com/dlp/docs/creating-templates to learn more.
*
@@ -1819,7 +1819,7 @@ public void deleteInspectTemplate(
*
*
*
- * Creates a DeidentifyTemplate for re-using frequently used configuration
+ * Creates a DeidentifyTemplate for reusing frequently used configuration
* for de-identifying content, images, and storage.
* See https://cloud.google.com/dlp/docs/creating-templates-deid to learn
* more.
@@ -2065,7 +2065,7 @@ public void getDlpJob(
*
*
*
@@ -1371,7 +1371,7 @@ public com.google.protobuf.ByteString getRootPathBytes() {
* Examples:
* - For BigQuery table `project_id:dataset_id.table_id`, the root is
* `dataset_id`
- * - For Google Cloud Storage file `gs://bucket/folder/filename.txt`, the root
+ * - For Cloud Storage file `gs://bucket/folder/filename.txt`, the root
* is `gs://bucket`
*
*
@@ -1397,7 +1397,7 @@ public Builder setRootPath(java.lang.String value) {
* Examples:
* - For BigQuery table `project_id:dataset_id.table_id`, the root is
* `dataset_id`
- * - For Google Cloud Storage file `gs://bucket/folder/filename.txt`, the root
+ * - For Cloud Storage file `gs://bucket/folder/filename.txt`, the root
* is `gs://bucket`
*
*
@@ -1419,7 +1419,7 @@ public Builder clearRootPath() {
* Examples:
* - For BigQuery table `project_id:dataset_id.table_id`, the root is
* `dataset_id`
- * - For Google Cloud Storage file `gs://bucket/folder/filename.txt`, the root
+ * - For Cloud Storage file `gs://bucket/folder/filename.txt`, the root
* is `gs://bucket`
*
*
@@ -1448,7 +1448,7 @@ public Builder setRootPathBytes(com.google.protobuf.ByteString value) {
* Examples:
* - For BigQuery table `project_id:dataset_id.table_id`, the relative path is
* `table_id`
- * - Google Cloud Storage file `gs://bucket/folder/filename.txt`, the relative
+ * - For Cloud Storage file `gs://bucket/folder/filename.txt`, the relative
* path is `folder/filename.txt`
*
*
@@ -1475,7 +1475,7 @@ public java.lang.String getRelativePath() {
* Examples:
* - For BigQuery table `project_id:dataset_id.table_id`, the relative path is
* `table_id`
- * - Google Cloud Storage file `gs://bucket/folder/filename.txt`, the relative
+ * - For Cloud Storage file `gs://bucket/folder/filename.txt`, the relative
* path is `folder/filename.txt`
*
*
@@ -1502,7 +1502,7 @@ public com.google.protobuf.ByteString getRelativePathBytes() {
* Examples:
* - For BigQuery table `project_id:dataset_id.table_id`, the relative path is
* `table_id`
- * - Google Cloud Storage file `gs://bucket/folder/filename.txt`, the relative
+ * - For Cloud Storage file `gs://bucket/folder/filename.txt`, the relative
* path is `folder/filename.txt`
*
*
@@ -1528,7 +1528,7 @@ public Builder setRelativePath(java.lang.String value) {
* Examples:
* - For BigQuery table `project_id:dataset_id.table_id`, the relative path is
* `table_id`
- * - Google Cloud Storage file `gs://bucket/folder/filename.txt`, the relative
+ * - For Cloud Storage file `gs://bucket/folder/filename.txt`, the relative
* path is `folder/filename.txt`
*
*
@@ -1550,7 +1550,7 @@ public Builder clearRelativePath() {
* Examples:
* - For BigQuery table `project_id:dataset_id.table_id`, the relative path is
* `table_id`
- * - Google Cloud Storage file `gs://bucket/folder/filename.txt`, the relative
+ * - For Cloud Storage file `gs://bucket/folder/filename.txt`, the relative
* path is `folder/filename.txt`
*
*
@@ -1580,10 +1580,10 @@ public Builder setRelativePathBytes(com.google.protobuf.ByteString value) {
*
*
*
* Deletes a long-running DlpJob. This method indicates that the client is
- * no longer interested in the DlpJob result. The job will be cancelled if
+ * no longer interested in the DlpJob result. The job will be canceled if
* possible.
* See https://cloud.google.com/dlp/docs/inspecting-storage and
* https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more.
@@ -2557,7 +2557,7 @@ public void reidentifyContent(
*
*
*
*
@@ -1344,7 +1344,7 @@ public java.lang.String getRootPath() {
* Examples:
* - For BigQuery table `project_id:dataset_id.table_id`, the root is
* `dataset_id`
- * - For Google Cloud Storage file `gs://bucket/folder/filename.txt`, the root
+ * - For Cloud Storage file `gs://bucket/folder/filename.txt`, the root
* is `gs://bucket`
*
- * Returns a list of the sensitive information types that the DLP API
+ * Returns a list of the sensitive information types that DLP API
* supports. See https://cloud.google.com/dlp/docs/infotypes-reference to
* learn more.
*
@@ -2576,7 +2576,7 @@ public void listInfoTypes(
*
*
*
- * Creates an InspectTemplate for re-using frequently used configuration
+ * Creates an InspectTemplate for reusing frequently used configuration
* for inspecting content, images, and storage.
* See https://cloud.google.com/dlp/docs/creating-templates to learn more.
*
@@ -2663,7 +2663,7 @@ public void deleteInspectTemplate(
*
*
*
- * Creates a DeidentifyTemplate for re-using frequently used configuration
+ * Creates a DeidentifyTemplate for reusing frequently used configuration
* for de-identifying content, images, and storage.
* See https://cloud.google.com/dlp/docs/creating-templates-deid to learn
* more.
@@ -2938,7 +2938,7 @@ public void getDlpJob(
*
*
*
*
* Deletes a long-running DlpJob. This method indicates that the client is
- * no longer interested in the DlpJob result. The job will be cancelled if
+ * no longer interested in the DlpJob result. The job will be canceled if
* possible.
* See https://cloud.google.com/dlp/docs/inspecting-storage and
* https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more.
@@ -3205,7 +3205,7 @@ public com.google.privacy.dlp.v2.ReidentifyContentResponse reidentifyContent(
*
*
*
*
*
- * Returns a list of the sensitive information types that the DLP API
+ * Returns a list of the sensitive information types that DLP API
* supports. See https://cloud.google.com/dlp/docs/infotypes-reference to
* learn more.
*
@@ -3220,7 +3220,7 @@ public com.google.privacy.dlp.v2.ListInfoTypesResponse listInfoTypes(
*
*
*
- * Creates an InspectTemplate for re-using frequently used configuration
+ * Creates an InspectTemplate for reusing frequently used configuration
* for inspecting content, images, and storage.
* See https://cloud.google.com/dlp/docs/creating-templates to learn more.
*
@@ -3291,7 +3291,7 @@ public com.google.protobuf.Empty deleteInspectTemplate(
*
*
*
- * Creates a DeidentifyTemplate for re-using frequently used configuration
+ * Creates a DeidentifyTemplate for reusing frequently used configuration
* for de-identifying content, images, and storage.
* See https://cloud.google.com/dlp/docs/creating-templates-deid to learn
* more.
@@ -3516,7 +3516,7 @@ public com.google.privacy.dlp.v2.DlpJob getDlpJob(
*
*
*
*
* Deletes a long-running DlpJob. This method indicates that the client is
- * no longer interested in the DlpJob result. The job will be cancelled if
+ * no longer interested in the DlpJob result. The job will be canceled if
* possible.
* See https://cloud.google.com/dlp/docs/inspecting-storage and
* https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more.
@@ -3757,7 +3757,7 @@ protected DlpServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOption
*
*
*
*
*
- * Returns a list of the sensitive information types that the DLP API
+ * Returns a list of the sensitive information types that DLP API
* supports. See https://cloud.google.com/dlp/docs/infotypes-reference to
* learn more.
*
@@ -3773,7 +3773,7 @@ protected DlpServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOption
*
*
*
- * Creates an InspectTemplate for re-using frequently used configuration
+ * Creates an InspectTemplate for reusing frequently used configuration
* for inspecting content, images, and storage.
* See https://cloud.google.com/dlp/docs/creating-templates to learn more.
*
@@ -3848,7 +3848,7 @@ protected DlpServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOption
*
*
*
- * Creates a DeidentifyTemplate for re-using frequently used configuration
+ * Creates a DeidentifyTemplate for reusing frequently used configuration
* for de-identifying content, images, and storage.
* See https://cloud.google.com/dlp/docs/creating-templates-deid to learn
* more.
@@ -4083,7 +4083,7 @@ protected DlpServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOption
*
*
*
*
* Deletes a long-running DlpJob. This method indicates that the client is
- * no longer interested in the DlpJob result. The job will be cancelled if
+ * no longer interested in the DlpJob result. The job will be canceled if
* possible.
* See https://cloud.google.com/dlp/docs/inspecting-storage and
* https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more.
diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/Action.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/Action.java
index cf357f4ee8f5..a53a5ea978a4 100644
--- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/Action.java
+++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/Action.java
@@ -142,6 +142,22 @@ private Action(
actionCase_ = 5;
break;
}
+ case 58:
+ {
+ com.google.privacy.dlp.v2.Action.Deidentify.Builder subBuilder = null;
+ if (actionCase_ == 7) {
+ subBuilder = ((com.google.privacy.dlp.v2.Action.Deidentify) action_).toBuilder();
+ }
+ action_ =
+ input.readMessage(
+ com.google.privacy.dlp.v2.Action.Deidentify.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom((com.google.privacy.dlp.v2.Action.Deidentify) action_);
+ action_ = subBuilder.buildPartial();
+ }
+ actionCase_ = 7;
+ break;
+ }
case 66:
{
com.google.privacy.dlp.v2.Action.JobNotificationEmails.Builder subBuilder = null;
@@ -1022,7 +1038,7 @@ public interface PublishToPubSubOrBuilder
*
*
*
*
@@ -448,10 +448,10 @@ public com.google.protobuf.ByteString getRelativePathBytes() {
*
*
*
- * Publish a message into given Pub/Sub topic when DlpJob has completed. The
+ * Publish a message into a given Pub/Sub topic when DlpJob has completed. The
* message contains a single field, `DlpJobName`, which is equal to the
* finished job's
* [`DlpJob.name`](https://cloud.google.com/dlp/docs/reference/rest/v2/projects.dlpJobs#DlpJob).
@@ -1336,7 +1352,7 @@ protected Builder newBuilderForType(
*
*
*
*
* Protobuf type {@code google.privacy.dlp.v2.Action.PublishSummaryToCscc}
@@ -2146,15 +2162,21 @@ public interface PublishFindingsToCloudDataCatalogOrBuilder
*
*
*
- * Publish a message into given Pub/Sub topic when DlpJob has completed. The
+ * Publish a message into a given Pub/Sub topic when DlpJob has completed. The
* message contains a single field, `DlpJobName`, which is equal to the
* finished job's
* [`DlpJob.name`](https://cloud.google.com/dlp/docs/reference/rest/v2/projects.dlpJobs#DlpJob).
@@ -1684,11 +1700,11 @@ public interface PublishSummaryToCsccOrBuilder
* This action is only available for projects which are parts of
* an organization and whitelisted for the alpha Cloud Security Command
* Center.
- * The action will publish count of finding instances and their info types.
- * The summary of findings will be persisted in CSCC and are governed by CSCC
- * service-specific policy, see https://cloud.google.com/terms/service-terms
- * Only a single instance of this action can be specified.
- * Compatible with: Inspect
+ * The action will publish the count of finding instances and their info
+ * types. The summary of findings will be persisted in CSCC and are governed
+ * by CSCC service-specific policy, see
+ * https://cloud.google.com/terms/service-terms Only a single instance of this
+ * action can be specified. Compatible with: Inspect
*
*
* Protobuf type {@code google.privacy.dlp.v2.Action.PublishSummaryToCscc}
@@ -1931,11 +1947,11 @@ protected Builder newBuilderForType(
* This action is only available for projects which are parts of
* an organization and whitelisted for the alpha Cloud Security Command
* Center.
- * The action will publish count of finding instances and their info types.
- * The summary of findings will be persisted in CSCC and are governed by CSCC
- * service-specific policy, see https://cloud.google.com/terms/service-terms
- * Only a single instance of this action can be specified.
- * Compatible with: Inspect
+ * The action will publish the count of finding instances and their info
+ * types. The summary of findings will be persisted in CSCC and are governed
+ * by CSCC service-specific policy, see
+ * https://cloud.google.com/terms/service-terms Only a single instance of this
+ * action can be specified. Compatible with: Inspect
*
- * Publish findings of a DlpJob to Data Catalog. Labels summarizing the
- * results of the DlpJob will be applied to the entry for the resource scanned
- * in Data Catalog. Any labels previously written by another DlpJob will
- * be deleted. InfoType naming patterns are strictly enforced when using this
- * feature. Note that the findings will be persisted in Data Catalog
- * storage and are governed by Data Catalog service-specific policy, see
- * https://cloud.google.com/terms/service-terms
- * Only a single instance of this action can be specified and only allowed if
- * all resources being scanned are BigQuery tables.
+ * Publish findings of a DlpJob to Data Catalog. In Data Catalog, tag
+ * templates are applied to the resource that Cloud DLP scanned. Data
+ * Catalog tag templates are stored in the same project and region where the
+ * BigQuery table exists. For Cloud DLP to create and apply the tag template,
+ * the Cloud DLP service agent must have the
+ * `roles/datacatalog.tagTemplateOwner` permission on the project. The tag
+ * template contains fields summarizing the results of the DlpJob. Any field
+ * values previously written by another DlpJob are deleted. [InfoType naming
+ * patterns][google.privacy.dlp.v2.InfoType] are strictly enforced when using
+ * this feature.
+ * Findings are persisted in Data Catalog storage and are governed by
+ * service-specific policies for Data Catalog. For more information, see
+ * [Service Specific Terms](https://cloud.google.com/terms/service-terms).
+ * Only a single instance of this action can be specified. This action is
+ * allowed only if all resources being scanned are BigQuery tables.
* Compatible with: Inspect
*
*
@@ -2396,15 +2418,21 @@ protected Builder newBuilderForType(
*
*
*
- * Publish findings of a DlpJob to Data Catalog. Labels summarizing the
- * results of the DlpJob will be applied to the entry for the resource scanned
- * in Data Catalog. Any labels previously written by another DlpJob will
- * be deleted. InfoType naming patterns are strictly enforced when using this
- * feature. Note that the findings will be persisted in Data Catalog
- * storage and are governed by Data Catalog service-specific policy, see
- * https://cloud.google.com/terms/service-terms
- * Only a single instance of this action can be specified and only allowed if
- * all resources being scanned are BigQuery tables.
+ * Publish findings of a DlpJob to Data Catalog. In Data Catalog, tag
+ * templates are applied to the resource that Cloud DLP scanned. Data
+ * Catalog tag templates are stored in the same project and region where the
+ * BigQuery table exists. For Cloud DLP to create and apply the tag template,
+ * the Cloud DLP service agent must have the
+ * `roles/datacatalog.tagTemplateOwner` permission on the project. The tag
+ * template contains fields summarizing the results of the DlpJob. Any field
+ * values previously written by another DlpJob are deleted. [InfoType naming
+ * patterns][google.privacy.dlp.v2.InfoType] are strictly enforced when using
+ * this feature.
+ * Findings are persisted in Data Catalog storage and are governed by
+ * service-specific policies for Data Catalog. For more information, see
+ * [Service Specific Terms](https://cloud.google.com/terms/service-terms).
+ * Only a single instance of this action can be specified. This action is
+ * allowed only if all resources being scanned are BigQuery tables.
* Compatible with: Inspect
*
*
@@ -2526,40 +2554,2284 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
return this;
}
}
-
- public Builder mergeFrom(
- com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog other) {
- if (other
- == com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog
- .getDefaultInstance()) return this;
- this.mergeUnknownFields(other.unknownFields);
+
+ public Builder mergeFrom(
+ com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog other) {
+ if (other
+ == com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog
+ .getDefaultInstance()) return this;
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage =
+ (com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog)
+ e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog)
+ private static final com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog();
+ }
+
+ public static com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ * User specified deidentify templates and configs for structured,
+ * unstructured, and image files.
+ *
+ *
+ * .google.privacy.dlp.v2.TransformationConfig transformation_config = 7;
+ *
+ * @return Whether the transformationConfig field is set.
+ */
+ boolean hasTransformationConfig();
+ /**
+ *
+ *
+ *
+ * User specified deidentify templates and configs for structured,
+ * unstructured, and image files.
+ *
+ *
+ * .google.privacy.dlp.v2.TransformationConfig transformation_config = 7;
+ *
+ * @return The transformationConfig.
+ */
+ com.google.privacy.dlp.v2.TransformationConfig getTransformationConfig();
+ /**
+ *
+ *
+ *
+ * User specified deidentify templates and configs for structured,
+ * unstructured, and image files.
+ *
+ *
+ * .google.privacy.dlp.v2.TransformationConfig transformation_config = 7;
+ */
+ com.google.privacy.dlp.v2.TransformationConfigOrBuilder getTransformationConfigOrBuilder();
+
+ /**
+ *
+ *
+ *
+ * Config for storing transformation details. This is separate from the
+ * de-identified content, and contains metadata about the successful
+ * transformations and/or failures that occurred while de-identifying. This
+ * needs to be set in order for users to access information about the status
+ * of each transformation (see
+ * [TransformationDetails][google.privacy.dlp.v2.TransformationDetails]
+ * message for more information about what is noted).
+ *
+ *
+ *
+ * .google.privacy.dlp.v2.TransformationDetailsStorageConfig transformation_details_storage_config = 3;
+ *
+ *
+ * @return Whether the transformationDetailsStorageConfig field is set.
+ */
+ boolean hasTransformationDetailsStorageConfig();
+ /**
+ *
+ *
+ *
+ * Config for storing transformation details. This is separate from the
+ * de-identified content, and contains metadata about the successful
+ * transformations and/or failures that occurred while de-identifying. This
+ * needs to be set in order for users to access information about the status
+ * of each transformation (see
+ * [TransformationDetails][google.privacy.dlp.v2.TransformationDetails]
+ * message for more information about what is noted).
+ *
+ *
+ *
+ * .google.privacy.dlp.v2.TransformationDetailsStorageConfig transformation_details_storage_config = 3;
+ *
+ *
+ * @return The transformationDetailsStorageConfig.
+ */
+ com.google.privacy.dlp.v2.TransformationDetailsStorageConfig
+ getTransformationDetailsStorageConfig();
+ /**
+ *
+ *
+ *
+ * Config for storing transformation details. This is separate from the
+ * de-identified content, and contains metadata about the successful
+ * transformations and/or failures that occurred while de-identifying. This
+ * needs to be set in order for users to access information about the status
+ * of each transformation (see
+ * [TransformationDetails][google.privacy.dlp.v2.TransformationDetails]
+ * message for more information about what is noted).
+ *
+ *
+ *
+ * .google.privacy.dlp.v2.TransformationDetailsStorageConfig transformation_details_storage_config = 3;
+ *
+ */
+ com.google.privacy.dlp.v2.TransformationDetailsStorageConfigOrBuilder
+ getTransformationDetailsStorageConfigOrBuilder();
+
+ /**
+ *
+ *
+ *
+ * Required. User settable Cloud Storage bucket and folders to store de-identified
+ * files. This field must be set for cloud storage deidentification. The
+ * output Cloud Storage bucket must be different from the input bucket.
+ * De-identified files will overwrite files in the output path.
+ * Form of: gs://bucket/folder/ or gs://bucket
+ *
+ *
+ * string cloud_storage_output = 9 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return Whether the cloudStorageOutput field is set.
+ */
+ boolean hasCloudStorageOutput();
+ /**
+ *
+ *
+ *
+ * Required. User settable Cloud Storage bucket and folders to store de-identified
+ * files. This field must be set for cloud storage deidentification. The
+ * output Cloud Storage bucket must be different from the input bucket.
+ * De-identified files will overwrite files in the output path.
+ * Form of: gs://bucket/folder/ or gs://bucket
+ *
+ *
+ * string cloud_storage_output = 9 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The cloudStorageOutput.
+ */
+ java.lang.String getCloudStorageOutput();
+ /**
+ *
+ *
+ *
+ * Required. User settable Cloud Storage bucket and folders to store de-identified
+ * files. This field must be set for cloud storage deidentification. The
+ * output Cloud Storage bucket must be different from the input bucket.
+ * De-identified files will overwrite files in the output path.
+ * Form of: gs://bucket/folder/ or gs://bucket
+ *
+ *
+ * string cloud_storage_output = 9 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The bytes for cloudStorageOutput.
+ */
+ com.google.protobuf.ByteString getCloudStorageOutputBytes();
+
+ /**
+ *
+ *
+ *
+ * List of user-specified file type groups to transform. If specified, only
+ * the files with these filetypes will be transformed. If empty, all
+ * supported files will be transformed. Supported types may be automatically
+ * added over time. If a file type is set in this field that isn't supported
+ * by the Deidentify action then the job will fail and will not be
+ * successfully created/started. Currently the only filetypes supported are:
+ * IMAGES, TEXT_FILES, CSV, TSV.
+ *
+ *
+ * repeated .google.privacy.dlp.v2.FileType file_types_to_transform = 8;
+ *
+ * @return A list containing the fileTypesToTransform.
+ */
+ java.util.List
+ * List of user-specified file type groups to transform. If specified, only
+ * the files with these filetypes will be transformed. If empty, all
+ * supported files will be transformed. Supported types may be automatically
+ * added over time. If a file type is set in this field that isn't supported
+ * by the Deidentify action then the job will fail and will not be
+ * successfully created/started. Currently the only filetypes supported are:
+ * IMAGES, TEXT_FILES, CSV, TSV.
+ *
+ *
+ * repeated .google.privacy.dlp.v2.FileType file_types_to_transform = 8;
+ *
+ * @return The count of fileTypesToTransform.
+ */
+ int getFileTypesToTransformCount();
+ /**
+ *
+ *
+ *
+ * List of user-specified file type groups to transform. If specified, only
+ * the files with these filetypes will be transformed. If empty, all
+ * supported files will be transformed. Supported types may be automatically
+ * added over time. If a file type is set in this field that isn't supported
+ * by the Deidentify action then the job will fail and will not be
+ * successfully created/started. Currently the only filetypes supported are:
+ * IMAGES, TEXT_FILES, CSV, TSV.
+ *
+ *
+ * repeated .google.privacy.dlp.v2.FileType file_types_to_transform = 8;
+ *
+ * @param index The index of the element to return.
+ * @return The fileTypesToTransform at the given index.
+ */
+ com.google.privacy.dlp.v2.FileType getFileTypesToTransform(int index);
+ /**
+ *
+ *
+ *
+ * List of user-specified file type groups to transform. If specified, only
+ * the files with these filetypes will be transformed. If empty, all
+ * supported files will be transformed. Supported types may be automatically
+ * added over time. If a file type is set in this field that isn't supported
+ * by the Deidentify action then the job will fail and will not be
+ * successfully created/started. Currently the only filetypes supported are:
+ * IMAGES, TEXT_FILES, CSV, TSV.
+ *
+ *
+ * repeated .google.privacy.dlp.v2.FileType file_types_to_transform = 8;
+ *
+ * @return A list containing the enum numeric values on the wire for fileTypesToTransform.
+ */
+ java.util.List
+ * List of user-specified file type groups to transform. If specified, only
+ * the files with these filetypes will be transformed. If empty, all
+ * supported files will be transformed. Supported types may be automatically
+ * added over time. If a file type is set in this field that isn't supported
+ * by the Deidentify action then the job will fail and will not be
+ * successfully created/started. Currently the only filetypes supported are:
+ * IMAGES, TEXT_FILES, CSV, TSV.
+ *
+ *
+ * repeated .google.privacy.dlp.v2.FileType file_types_to_transform = 8;
+ *
+ * @param index The index of the value to return.
+ * @return The enum numeric value on the wire of fileTypesToTransform at the given index.
+ */
+ int getFileTypesToTransformValue(int index);
+
+ public com.google.privacy.dlp.v2.Action.Deidentify.OutputCase getOutputCase();
+ }
+ /**
+ *
+ *
+ *
+ * Create a de-identified copy of the requested table or files.
+ * A TransformationDetail will be created for each transformation.
+ * If any rows in BigQuery are skipped during de-identification
+ * (transformation errors or row size exceeds BigQuery insert API limits) they
+ * are placed in the failure output table. If the original row exceeds
+ * the BigQuery insert API limit it will be truncated when written to the
+ * failure output table. The failure output table can be set in the
+ * action.deidentify.output.big_query_output.deidentified_failure_output_table
+ * field, if no table is set, a table will be automatically created in the
+ * same project and dataset as the original table.
+ * Compatible with: Inspect
+ *
+ *
+ * Protobuf type {@code google.privacy.dlp.v2.Action.Deidentify}
+ */
+ public static final class Deidentify extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2.Action.Deidentify)
+ DeidentifyOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use Deidentify.newBuilder() to construct.
+ private Deidentify(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private Deidentify() {
+ fileTypesToTransform_ = java.util.Collections.emptyList();
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new Deidentify();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private Deidentify(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 26:
+ {
+ com.google.privacy.dlp.v2.TransformationDetailsStorageConfig.Builder subBuilder =
+ null;
+ if (transformationDetailsStorageConfig_ != null) {
+ subBuilder = transformationDetailsStorageConfig_.toBuilder();
+ }
+ transformationDetailsStorageConfig_ =
+ input.readMessage(
+ com.google.privacy.dlp.v2.TransformationDetailsStorageConfig.parser(),
+ extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(transformationDetailsStorageConfig_);
+ transformationDetailsStorageConfig_ = subBuilder.buildPartial();
+ }
+
+ break;
+ }
+ case 58:
+ {
+ com.google.privacy.dlp.v2.TransformationConfig.Builder subBuilder = null;
+ if (transformationConfig_ != null) {
+ subBuilder = transformationConfig_.toBuilder();
+ }
+ transformationConfig_ =
+ input.readMessage(
+ com.google.privacy.dlp.v2.TransformationConfig.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(transformationConfig_);
+ transformationConfig_ = subBuilder.buildPartial();
+ }
+
+ break;
+ }
+ case 64:
+ {
+ int rawValue = input.readEnum();
+ if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+ fileTypesToTransform_ = new java.util.ArrayList
+ * User specified deidentify templates and configs for structured,
+ * unstructured, and image files.
+ *
+ *
+ * .google.privacy.dlp.v2.TransformationConfig transformation_config = 7;
+ *
+ * @return Whether the transformationConfig field is set.
+ */
+ @java.lang.Override
+ public boolean hasTransformationConfig() {
+ return transformationConfig_ != null;
+ }
+ /**
+ *
+ *
+ *
+ * User specified deidentify templates and configs for structured,
+ * unstructured, and image files.
+ *
+ *
+ * .google.privacy.dlp.v2.TransformationConfig transformation_config = 7;
+ *
+ * @return The transformationConfig.
+ */
+ @java.lang.Override
+ public com.google.privacy.dlp.v2.TransformationConfig getTransformationConfig() {
+ return transformationConfig_ == null
+ ? com.google.privacy.dlp.v2.TransformationConfig.getDefaultInstance()
+ : transformationConfig_;
+ }
+ /**
+ *
+ *
+ *
+ * User specified deidentify templates and configs for structured,
+ * unstructured, and image files.
+ *
+ *
+ * .google.privacy.dlp.v2.TransformationConfig transformation_config = 7;
+ */
+ @java.lang.Override
+ public com.google.privacy.dlp.v2.TransformationConfigOrBuilder
+ getTransformationConfigOrBuilder() {
+ return getTransformationConfig();
+ }
+
+ public static final int TRANSFORMATION_DETAILS_STORAGE_CONFIG_FIELD_NUMBER = 3;
+ private com.google.privacy.dlp.v2.TransformationDetailsStorageConfig
+ transformationDetailsStorageConfig_;
+ /**
+ *
+ *
+ *
+ * Config for storing transformation details. This is separate from the
+ * de-identified content, and contains metadata about the successful
+ * transformations and/or failures that occurred while de-identifying. This
+ * needs to be set in order for users to access information about the status
+ * of each transformation (see
+ * [TransformationDetails][google.privacy.dlp.v2.TransformationDetails]
+ * message for more information about what is noted).
+ *
+ *
+ *
+ * .google.privacy.dlp.v2.TransformationDetailsStorageConfig transformation_details_storage_config = 3;
+ *
+ *
+ * @return Whether the transformationDetailsStorageConfig field is set.
+ */
+ @java.lang.Override
+ public boolean hasTransformationDetailsStorageConfig() {
+ return transformationDetailsStorageConfig_ != null;
+ }
+ /**
+ *
+ *
+ *
+ * Config for storing transformation details. This is separate from the
+ * de-identified content, and contains metadata about the successful
+ * transformations and/or failures that occurred while de-identifying. This
+ * needs to be set in order for users to access information about the status
+ * of each transformation (see
+ * [TransformationDetails][google.privacy.dlp.v2.TransformationDetails]
+ * message for more information about what is noted).
+ *
+ *
+ *
+ * .google.privacy.dlp.v2.TransformationDetailsStorageConfig transformation_details_storage_config = 3;
+ *
+ *
+ * @return The transformationDetailsStorageConfig.
+ */
+ @java.lang.Override
+ public com.google.privacy.dlp.v2.TransformationDetailsStorageConfig
+ getTransformationDetailsStorageConfig() {
+ return transformationDetailsStorageConfig_ == null
+ ? com.google.privacy.dlp.v2.TransformationDetailsStorageConfig.getDefaultInstance()
+ : transformationDetailsStorageConfig_;
+ }
+ /**
+ *
+ *
+ *
+ * Config for storing transformation details. This is separate from the
+ * de-identified content, and contains metadata about the successful
+ * transformations and/or failures that occurred while de-identifying. This
+ * needs to be set in order for users to access information about the status
+ * of each transformation (see
+ * [TransformationDetails][google.privacy.dlp.v2.TransformationDetails]
+ * message for more information about what is noted).
+ *
+ *
+ *
+ * .google.privacy.dlp.v2.TransformationDetailsStorageConfig transformation_details_storage_config = 3;
+ *
+ */
+ @java.lang.Override
+ public com.google.privacy.dlp.v2.TransformationDetailsStorageConfigOrBuilder
+ getTransformationDetailsStorageConfigOrBuilder() {
+ return getTransformationDetailsStorageConfig();
+ }
+
+ public static final int CLOUD_STORAGE_OUTPUT_FIELD_NUMBER = 9;
+ /**
+ *
+ *
+ *
+ * Required. User settable Cloud Storage bucket and folders to store de-identified
+ * files. This field must be set for cloud storage deidentification. The
+ * output Cloud Storage bucket must be different from the input bucket.
+ * De-identified files will overwrite files in the output path.
+ * Form of: gs://bucket/folder/ or gs://bucket
+ *
+ *
+ * string cloud_storage_output = 9 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return Whether the cloudStorageOutput field is set.
+ */
+ public boolean hasCloudStorageOutput() {
+ return outputCase_ == 9;
+ }
+ /**
+ *
+ *
+ *
+ * Required. User settable Cloud Storage bucket and folders to store de-identified
+ * files. This field must be set for cloud storage deidentification. The
+ * output Cloud Storage bucket must be different from the input bucket.
+ * De-identified files will overwrite files in the output path.
+ * Form of: gs://bucket/folder/ or gs://bucket
+ *
+ *
+ * string cloud_storage_output = 9 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The cloudStorageOutput.
+ */
+ public java.lang.String getCloudStorageOutput() {
+ java.lang.Object ref = "";
+ if (outputCase_ == 9) {
+ ref = output_;
+ }
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (outputCase_ == 9) {
+ output_ = s;
+ }
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Required. User settable Cloud Storage bucket and folders to store de-identified
+ * files. This field must be set for cloud storage deidentification. The
+ * output Cloud Storage bucket must be different from the input bucket.
+ * De-identified files will overwrite files in the output path.
+ * Form of: gs://bucket/folder/ or gs://bucket
+ *
+ *
+ * string cloud_storage_output = 9 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The bytes for cloudStorageOutput.
+ */
+ public com.google.protobuf.ByteString getCloudStorageOutputBytes() {
+ java.lang.Object ref = "";
+ if (outputCase_ == 9) {
+ ref = output_;
+ }
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ if (outputCase_ == 9) {
+ output_ = b;
+ }
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int FILE_TYPES_TO_TRANSFORM_FIELD_NUMBER = 8;
+ private java.util.List
+ * List of user-specified file type groups to transform. If specified, only
+ * the files with these filetypes will be transformed. If empty, all
+ * supported files will be transformed. Supported types may be automatically
+ * added over time. If a file type is set in this field that isn't supported
+ * by the Deidentify action then the job will fail and will not be
+ * successfully created/started. Currently the only filetypes supported are:
+ * IMAGES, TEXT_FILES, CSV, TSV.
+ *
+ *
+ * repeated .google.privacy.dlp.v2.FileType file_types_to_transform = 8;
+ *
+ * @return A list containing the fileTypesToTransform.
+ */
+ @java.lang.Override
+ public java.util.List
+ * List of user-specified file type groups to transform. If specified, only
+ * the files with these filetypes will be transformed. If empty, all
+ * supported files will be transformed. Supported types may be automatically
+ * added over time. If a file type is set in this field that isn't supported
+ * by the Deidentify action then the job will fail and will not be
+ * successfully created/started. Currently the only filetypes supported are:
+ * IMAGES, TEXT_FILES, CSV, TSV.
+ *
+ *
+ * repeated .google.privacy.dlp.v2.FileType file_types_to_transform = 8;
+ *
+ * @return The count of fileTypesToTransform.
+ */
+ @java.lang.Override
+ public int getFileTypesToTransformCount() {
+ return fileTypesToTransform_.size();
+ }
+ /**
+ *
+ *
+ *
+ * List of user-specified file type groups to transform. If specified, only
+ * the files with these filetypes will be transformed. If empty, all
+ * supported files will be transformed. Supported types may be automatically
+ * added over time. If a file type is set in this field that isn't supported
+ * by the Deidentify action then the job will fail and will not be
+ * successfully created/started. Currently the only filetypes supported are:
+ * IMAGES, TEXT_FILES, CSV, TSV.
+ *
+ *
+ * repeated .google.privacy.dlp.v2.FileType file_types_to_transform = 8;
+ *
+ * @param index The index of the element to return.
+ * @return The fileTypesToTransform at the given index.
+ */
+ @java.lang.Override
+ public com.google.privacy.dlp.v2.FileType getFileTypesToTransform(int index) {
+ return fileTypesToTransform_converter_.convert(fileTypesToTransform_.get(index));
+ }
+ /**
+ *
+ *
+ *
+ * List of user-specified file type groups to transform. If specified, only
+ * the files with these filetypes will be transformed. If empty, all
+ * supported files will be transformed. Supported types may be automatically
+ * added over time. If a file type is set in this field that isn't supported
+ * by the Deidentify action then the job will fail and will not be
+ * successfully created/started. Currently the only filetypes supported are:
+ * IMAGES, TEXT_FILES, CSV, TSV.
+ *
+ *
+ * repeated .google.privacy.dlp.v2.FileType file_types_to_transform = 8;
+ *
+ * @return A list containing the enum numeric values on the wire for fileTypesToTransform.
+ */
+ @java.lang.Override
+ public java.util.List
+ * List of user-specified file type groups to transform. If specified, only
+ * the files with these filetypes will be transformed. If empty, all
+ * supported files will be transformed. Supported types may be automatically
+ * added over time. If a file type is set in this field that isn't supported
+ * by the Deidentify action then the job will fail and will not be
+ * successfully created/started. Currently the only filetypes supported are:
+ * IMAGES, TEXT_FILES, CSV, TSV.
+ *
+ *
+ * repeated .google.privacy.dlp.v2.FileType file_types_to_transform = 8;
+ *
+ * @param index The index of the value to return.
+ * @return The enum numeric value on the wire of fileTypesToTransform at the given index.
+ */
+ @java.lang.Override
+ public int getFileTypesToTransformValue(int index) {
+ return fileTypesToTransform_.get(index);
+ }
+
+ private int fileTypesToTransformMemoizedSerializedSize;
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ getSerializedSize();
+ if (transformationDetailsStorageConfig_ != null) {
+ output.writeMessage(3, getTransformationDetailsStorageConfig());
+ }
+ if (transformationConfig_ != null) {
+ output.writeMessage(7, getTransformationConfig());
+ }
+ if (getFileTypesToTransformList().size() > 0) {
+ output.writeUInt32NoTag(66);
+ output.writeUInt32NoTag(fileTypesToTransformMemoizedSerializedSize);
+ }
+ for (int i = 0; i < fileTypesToTransform_.size(); i++) {
+ output.writeEnumNoTag(fileTypesToTransform_.get(i));
+ }
+ if (outputCase_ == 9) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 9, output_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (transformationDetailsStorageConfig_ != null) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 3, getTransformationDetailsStorageConfig());
+ }
+ if (transformationConfig_ != null) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(7, getTransformationConfig());
+ }
+ {
+ int dataSize = 0;
+ for (int i = 0; i < fileTypesToTransform_.size(); i++) {
+ dataSize +=
+ com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(
+ fileTypesToTransform_.get(i));
+ }
+ size += dataSize;
+ if (!getFileTypesToTransformList().isEmpty()) {
+ size += 1;
+ size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize);
+ }
+ fileTypesToTransformMemoizedSerializedSize = dataSize;
+ }
+ if (outputCase_ == 9) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, output_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.privacy.dlp.v2.Action.Deidentify)) {
+ return super.equals(obj);
+ }
+ com.google.privacy.dlp.v2.Action.Deidentify other =
+ (com.google.privacy.dlp.v2.Action.Deidentify) obj;
+
+ if (hasTransformationConfig() != other.hasTransformationConfig()) return false;
+ if (hasTransformationConfig()) {
+ if (!getTransformationConfig().equals(other.getTransformationConfig())) return false;
+ }
+ if (hasTransformationDetailsStorageConfig() != other.hasTransformationDetailsStorageConfig())
+ return false;
+ if (hasTransformationDetailsStorageConfig()) {
+ if (!getTransformationDetailsStorageConfig()
+ .equals(other.getTransformationDetailsStorageConfig())) return false;
+ }
+ if (!fileTypesToTransform_.equals(other.fileTypesToTransform_)) return false;
+ if (!getOutputCase().equals(other.getOutputCase())) return false;
+ switch (outputCase_) {
+ case 9:
+ if (!getCloudStorageOutput().equals(other.getCloudStorageOutput())) return false;
+ break;
+ case 0:
+ default:
+ }
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasTransformationConfig()) {
+ hash = (37 * hash) + TRANSFORMATION_CONFIG_FIELD_NUMBER;
+ hash = (53 * hash) + getTransformationConfig().hashCode();
+ }
+ if (hasTransformationDetailsStorageConfig()) {
+ hash = (37 * hash) + TRANSFORMATION_DETAILS_STORAGE_CONFIG_FIELD_NUMBER;
+ hash = (53 * hash) + getTransformationDetailsStorageConfig().hashCode();
+ }
+ if (getFileTypesToTransformCount() > 0) {
+ hash = (37 * hash) + FILE_TYPES_TO_TRANSFORM_FIELD_NUMBER;
+ hash = (53 * hash) + fileTypesToTransform_.hashCode();
+ }
+ switch (outputCase_) {
+ case 9:
+ hash = (37 * hash) + CLOUD_STORAGE_OUTPUT_FIELD_NUMBER;
+ hash = (53 * hash) + getCloudStorageOutput().hashCode();
+ break;
+ case 0:
+ default:
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.privacy.dlp.v2.Action.Deidentify parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.privacy.dlp.v2.Action.Deidentify parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.privacy.dlp.v2.Action.Deidentify parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.privacy.dlp.v2.Action.Deidentify parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.privacy.dlp.v2.Action.Deidentify parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.privacy.dlp.v2.Action.Deidentify parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.privacy.dlp.v2.Action.Deidentify parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.privacy.dlp.v2.Action.Deidentify parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.privacy.dlp.v2.Action.Deidentify parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.privacy.dlp.v2.Action.Deidentify parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.privacy.dlp.v2.Action.Deidentify parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.privacy.dlp.v2.Action.Deidentify parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(com.google.privacy.dlp.v2.Action.Deidentify prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ *
+ * Create a de-identified copy of the requested table or files.
+ * A TransformationDetail will be created for each transformation.
+ * If any rows in BigQuery are skipped during de-identification
+ * (transformation errors or row size exceeds BigQuery insert API limits) they
+ * are placed in the failure output table. If the original row exceeds
+ * the BigQuery insert API limit it will be truncated when written to the
+ * failure output table. The failure output table can be set in the
+ * action.deidentify.output.big_query_output.deidentified_failure_output_table
+ * field, if no table is set, a table will be automatically created in the
+ * same project and dataset as the original table.
+ * Compatible with: Inspect
+ *
+ *
+ * Protobuf type {@code google.privacy.dlp.v2.Action.Deidentify}
+ */
+ public static final class Builder
+ extends com.google.protobuf.GeneratedMessageV3.Builder
+ * User specified deidentify templates and configs for structured,
+ * unstructured, and image files.
+ *
+ *
+ * .google.privacy.dlp.v2.TransformationConfig transformation_config = 7;
+ *
+ * @return Whether the transformationConfig field is set.
+ */
+ public boolean hasTransformationConfig() {
+ return transformationConfigBuilder_ != null || transformationConfig_ != null;
+ }
+ /**
+ *
+ *
+ *
+ * User specified deidentify templates and configs for structured,
+ * unstructured, and image files.
+ *
+ *
+ * .google.privacy.dlp.v2.TransformationConfig transformation_config = 7;
+ *
+ * @return The transformationConfig.
+ */
+ public com.google.privacy.dlp.v2.TransformationConfig getTransformationConfig() {
+ if (transformationConfigBuilder_ == null) {
+ return transformationConfig_ == null
+ ? com.google.privacy.dlp.v2.TransformationConfig.getDefaultInstance()
+ : transformationConfig_;
+ } else {
+ return transformationConfigBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * User specified deidentify templates and configs for structured,
+ * unstructured, and image files.
+ *
+ *
+ * .google.privacy.dlp.v2.TransformationConfig transformation_config = 7;
+ */
+ public Builder setTransformationConfig(com.google.privacy.dlp.v2.TransformationConfig value) {
+ if (transformationConfigBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ transformationConfig_ = value;
+ onChanged();
+ } else {
+ transformationConfigBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * User specified deidentify templates and configs for structured,
+ * unstructured, and image files.
+ *
+ *
+ * .google.privacy.dlp.v2.TransformationConfig transformation_config = 7;
+ */
+ public Builder setTransformationConfig(
+ com.google.privacy.dlp.v2.TransformationConfig.Builder builderForValue) {
+ if (transformationConfigBuilder_ == null) {
+ transformationConfig_ = builderForValue.build();
+ onChanged();
+ } else {
+ transformationConfigBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * User specified deidentify templates and configs for structured,
+ * unstructured, and image files.
+ *
+ *
+ * .google.privacy.dlp.v2.TransformationConfig transformation_config = 7;
+ */
+ public Builder mergeTransformationConfig(
+ com.google.privacy.dlp.v2.TransformationConfig value) {
+ if (transformationConfigBuilder_ == null) {
+ if (transformationConfig_ != null) {
+ transformationConfig_ =
+ com.google.privacy.dlp.v2.TransformationConfig.newBuilder(transformationConfig_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ transformationConfig_ = value;
+ }
+ onChanged();
+ } else {
+ transformationConfigBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * User specified deidentify templates and configs for structured,
+ * unstructured, and image files.
+ *
+ *
+ * .google.privacy.dlp.v2.TransformationConfig transformation_config = 7;
+ */
+ public Builder clearTransformationConfig() {
+ if (transformationConfigBuilder_ == null) {
+ transformationConfig_ = null;
+ onChanged();
+ } else {
+ transformationConfig_ = null;
+ transformationConfigBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * User specified deidentify templates and configs for structured,
+ * unstructured, and image files.
+ *
+ *
+ * .google.privacy.dlp.v2.TransformationConfig transformation_config = 7;
+ */
+ public com.google.privacy.dlp.v2.TransformationConfig.Builder
+ getTransformationConfigBuilder() {
+
+ onChanged();
+ return getTransformationConfigFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ *
+ * User specified deidentify templates and configs for structured,
+ * unstructured, and image files.
+ *
+ *
+ * .google.privacy.dlp.v2.TransformationConfig transformation_config = 7;
+ */
+ public com.google.privacy.dlp.v2.TransformationConfigOrBuilder
+ getTransformationConfigOrBuilder() {
+ if (transformationConfigBuilder_ != null) {
+ return transformationConfigBuilder_.getMessageOrBuilder();
+ } else {
+ return transformationConfig_ == null
+ ? com.google.privacy.dlp.v2.TransformationConfig.getDefaultInstance()
+ : transformationConfig_;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * User specified deidentify templates and configs for structured,
+ * unstructured, and image files.
+ *
+ *
+ * .google.privacy.dlp.v2.TransformationConfig transformation_config = 7;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.privacy.dlp.v2.TransformationConfig,
+ com.google.privacy.dlp.v2.TransformationConfig.Builder,
+ com.google.privacy.dlp.v2.TransformationConfigOrBuilder>
+ getTransformationConfigFieldBuilder() {
+ if (transformationConfigBuilder_ == null) {
+ transformationConfigBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.privacy.dlp.v2.TransformationConfig,
+ com.google.privacy.dlp.v2.TransformationConfig.Builder,
+ com.google.privacy.dlp.v2.TransformationConfigOrBuilder>(
+ getTransformationConfig(), getParentForChildren(), isClean());
+ transformationConfig_ = null;
+ }
+ return transformationConfigBuilder_;
+ }
+
+ private com.google.privacy.dlp.v2.TransformationDetailsStorageConfig
+ transformationDetailsStorageConfig_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.privacy.dlp.v2.TransformationDetailsStorageConfig,
+ com.google.privacy.dlp.v2.TransformationDetailsStorageConfig.Builder,
+ com.google.privacy.dlp.v2.TransformationDetailsStorageConfigOrBuilder>
+ transformationDetailsStorageConfigBuilder_;
+ /**
+ *
+ *
+ *
+ * Config for storing transformation details. This is separate from the
+ * de-identified content, and contains metadata about the successful
+ * transformations and/or failures that occurred while de-identifying. This
+ * needs to be set in order for users to access information about the status
+ * of each transformation (see
+ * [TransformationDetails][google.privacy.dlp.v2.TransformationDetails]
+ * message for more information about what is noted).
+ *
+ *
+ *
+ * .google.privacy.dlp.v2.TransformationDetailsStorageConfig transformation_details_storage_config = 3;
+ *
+ *
+ * @return Whether the transformationDetailsStorageConfig field is set.
+ */
+ public boolean hasTransformationDetailsStorageConfig() {
+ return transformationDetailsStorageConfigBuilder_ != null
+ || transformationDetailsStorageConfig_ != null;
+ }
+ /**
+ *
+ *
+ *
+ * Config for storing transformation details. This is separate from the
+ * de-identified content, and contains metadata about the successful
+ * transformations and/or failures that occurred while de-identifying. This
+ * needs to be set in order for users to access information about the status
+ * of each transformation (see
+ * [TransformationDetails][google.privacy.dlp.v2.TransformationDetails]
+ * message for more information about what is noted).
+ *
+ *
+ *
+ * .google.privacy.dlp.v2.TransformationDetailsStorageConfig transformation_details_storage_config = 3;
+ *
+ *
+ * @return The transformationDetailsStorageConfig.
+ */
+ public com.google.privacy.dlp.v2.TransformationDetailsStorageConfig
+ getTransformationDetailsStorageConfig() {
+ if (transformationDetailsStorageConfigBuilder_ == null) {
+ return transformationDetailsStorageConfig_ == null
+ ? com.google.privacy.dlp.v2.TransformationDetailsStorageConfig.getDefaultInstance()
+ : transformationDetailsStorageConfig_;
+ } else {
+ return transformationDetailsStorageConfigBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Config for storing transformation details. This is separate from the
+ * de-identified content, and contains metadata about the successful
+ * transformations and/or failures that occurred while de-identifying. This
+ * needs to be set in order for users to access information about the status
+ * of each transformation (see
+ * [TransformationDetails][google.privacy.dlp.v2.TransformationDetails]
+ * message for more information about what is noted).
+ *
+ *
+ *
+ * .google.privacy.dlp.v2.TransformationDetailsStorageConfig transformation_details_storage_config = 3;
+ *
+ */
+ public Builder setTransformationDetailsStorageConfig(
+ com.google.privacy.dlp.v2.TransformationDetailsStorageConfig value) {
+ if (transformationDetailsStorageConfigBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ transformationDetailsStorageConfig_ = value;
+ onChanged();
+ } else {
+ transformationDetailsStorageConfigBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Config for storing transformation details. This is separate from the
+ * de-identified content, and contains metadata about the successful
+ * transformations and/or failures that occurred while de-identifying. This
+ * needs to be set in order for users to access information about the status
+ * of each transformation (see
+ * [TransformationDetails][google.privacy.dlp.v2.TransformationDetails]
+ * message for more information about what is noted).
+ *
+ *
+ *
+ * .google.privacy.dlp.v2.TransformationDetailsStorageConfig transformation_details_storage_config = 3;
+ *
+ */
+ public Builder setTransformationDetailsStorageConfig(
+ com.google.privacy.dlp.v2.TransformationDetailsStorageConfig.Builder builderForValue) {
+ if (transformationDetailsStorageConfigBuilder_ == null) {
+ transformationDetailsStorageConfig_ = builderForValue.build();
+ onChanged();
+ } else {
+ transformationDetailsStorageConfigBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Config for storing transformation details. This is separate from the
+ * de-identified content, and contains metadata about the successful
+ * transformations and/or failures that occurred while de-identifying. This
+ * needs to be set in order for users to access information about the status
+ * of each transformation (see
+ * [TransformationDetails][google.privacy.dlp.v2.TransformationDetails]
+ * message for more information about what is noted).
+ *
+ *
+ *
+ * .google.privacy.dlp.v2.TransformationDetailsStorageConfig transformation_details_storage_config = 3;
+ *
+ */
+ public Builder mergeTransformationDetailsStorageConfig(
+ com.google.privacy.dlp.v2.TransformationDetailsStorageConfig value) {
+ if (transformationDetailsStorageConfigBuilder_ == null) {
+ if (transformationDetailsStorageConfig_ != null) {
+ transformationDetailsStorageConfig_ =
+ com.google.privacy.dlp.v2.TransformationDetailsStorageConfig.newBuilder(
+ transformationDetailsStorageConfig_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ transformationDetailsStorageConfig_ = value;
+ }
+ onChanged();
+ } else {
+ transformationDetailsStorageConfigBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Config for storing transformation details. This is separate from the
+ * de-identified content, and contains metadata about the successful
+ * transformations and/or failures that occurred while de-identifying. This
+ * needs to be set in order for users to access information about the status
+ * of each transformation (see
+ * [TransformationDetails][google.privacy.dlp.v2.TransformationDetails]
+ * message for more information about what is noted).
+ *
+ *
+ *
+ * .google.privacy.dlp.v2.TransformationDetailsStorageConfig transformation_details_storage_config = 3;
+ *
+ */
+ public Builder clearTransformationDetailsStorageConfig() {
+ if (transformationDetailsStorageConfigBuilder_ == null) {
+ transformationDetailsStorageConfig_ = null;
+ onChanged();
+ } else {
+ transformationDetailsStorageConfig_ = null;
+ transformationDetailsStorageConfigBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Config for storing transformation details. This is separate from the
+ * de-identified content, and contains metadata about the successful
+ * transformations and/or failures that occurred while de-identifying. This
+ * needs to be set in order for users to access information about the status
+ * of each transformation (see
+ * [TransformationDetails][google.privacy.dlp.v2.TransformationDetails]
+ * message for more information about what is noted).
+ *
+ *
+ *
+ * .google.privacy.dlp.v2.TransformationDetailsStorageConfig transformation_details_storage_config = 3;
+ *
+ */
+ public com.google.privacy.dlp.v2.TransformationDetailsStorageConfig.Builder
+ getTransformationDetailsStorageConfigBuilder() {
+
+ onChanged();
+ return getTransformationDetailsStorageConfigFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ *
+ * Config for storing transformation details. This is separate from the
+ * de-identified content, and contains metadata about the successful
+ * transformations and/or failures that occurred while de-identifying. This
+ * needs to be set in order for users to access information about the status
+ * of each transformation (see
+ * [TransformationDetails][google.privacy.dlp.v2.TransformationDetails]
+ * message for more information about what is noted).
+ *
+ *
+ *
+ * .google.privacy.dlp.v2.TransformationDetailsStorageConfig transformation_details_storage_config = 3;
+ *
+ */
+ public com.google.privacy.dlp.v2.TransformationDetailsStorageConfigOrBuilder
+ getTransformationDetailsStorageConfigOrBuilder() {
+ if (transformationDetailsStorageConfigBuilder_ != null) {
+ return transformationDetailsStorageConfigBuilder_.getMessageOrBuilder();
+ } else {
+ return transformationDetailsStorageConfig_ == null
+ ? com.google.privacy.dlp.v2.TransformationDetailsStorageConfig.getDefaultInstance()
+ : transformationDetailsStorageConfig_;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Config for storing transformation details. This is separate from the
+ * de-identified content, and contains metadata about the successful
+ * transformations and/or failures that occurred while de-identifying. This
+ * needs to be set in order for users to access information about the status
+ * of each transformation (see
+ * [TransformationDetails][google.privacy.dlp.v2.TransformationDetails]
+ * message for more information about what is noted).
+ *
+ *
+ *
+ * .google.privacy.dlp.v2.TransformationDetailsStorageConfig transformation_details_storage_config = 3;
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.privacy.dlp.v2.TransformationDetailsStorageConfig,
+ com.google.privacy.dlp.v2.TransformationDetailsStorageConfig.Builder,
+ com.google.privacy.dlp.v2.TransformationDetailsStorageConfigOrBuilder>
+ getTransformationDetailsStorageConfigFieldBuilder() {
+ if (transformationDetailsStorageConfigBuilder_ == null) {
+ transformationDetailsStorageConfigBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.privacy.dlp.v2.TransformationDetailsStorageConfig,
+ com.google.privacy.dlp.v2.TransformationDetailsStorageConfig.Builder,
+ com.google.privacy.dlp.v2.TransformationDetailsStorageConfigOrBuilder>(
+ getTransformationDetailsStorageConfig(), getParentForChildren(), isClean());
+ transformationDetailsStorageConfig_ = null;
+ }
+ return transformationDetailsStorageConfigBuilder_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Required. User settable Cloud Storage bucket and folders to store de-identified
+ * files. This field must be set for cloud storage deidentification. The
+ * output Cloud Storage bucket must be different from the input bucket.
+ * De-identified files will overwrite files in the output path.
+ * Form of: gs://bucket/folder/ or gs://bucket
+ *
+ *
+ * string cloud_storage_output = 9 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return Whether the cloudStorageOutput field is set.
+ */
+ @java.lang.Override
+ public boolean hasCloudStorageOutput() {
+ return outputCase_ == 9;
+ }
+ /**
+ *
+ *
+ *
+ * Required. User settable Cloud Storage bucket and folders to store de-identified
+ * files. This field must be set for cloud storage deidentification. The
+ * output Cloud Storage bucket must be different from the input bucket.
+ * De-identified files will overwrite files in the output path.
+ * Form of: gs://bucket/folder/ or gs://bucket
+ *
+ *
+ * string cloud_storage_output = 9 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The cloudStorageOutput.
+ */
+ @java.lang.Override
+ public java.lang.String getCloudStorageOutput() {
+ java.lang.Object ref = "";
+ if (outputCase_ == 9) {
+ ref = output_;
+ }
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (outputCase_ == 9) {
+ output_ = s;
+ }
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Required. User settable Cloud Storage bucket and folders to store de-identified
+ * files. This field must be set for cloud storage deidentification. The
+ * output Cloud Storage bucket must be different from the input bucket.
+ * De-identified files will overwrite files in the output path.
+ * Form of: gs://bucket/folder/ or gs://bucket
+ *
+ *
+ * string cloud_storage_output = 9 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The bytes for cloudStorageOutput.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getCloudStorageOutputBytes() {
+ java.lang.Object ref = "";
+ if (outputCase_ == 9) {
+ ref = output_;
+ }
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ if (outputCase_ == 9) {
+ output_ = b;
+ }
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Required. User settable Cloud Storage bucket and folders to store de-identified
+ * files. This field must be set for cloud storage deidentification. The
+ * output Cloud Storage bucket must be different from the input bucket.
+ * De-identified files will overwrite files in the output path.
+ * Form of: gs://bucket/folder/ or gs://bucket
+ *
+ *
+ * string cloud_storage_output = 9 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param value The cloudStorageOutput to set.
+ * @return This builder for chaining.
+ */
+ public Builder setCloudStorageOutput(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ outputCase_ = 9;
+ output_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Required. User settable Cloud Storage bucket and folders to store de-identified
+ * files. This field must be set for cloud storage deidentification. The
+ * output Cloud Storage bucket must be different from the input bucket.
+ * De-identified files will overwrite files in the output path.
+ * Form of: gs://bucket/folder/ or gs://bucket
+ *
+ *
+ * string cloud_storage_output = 9 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearCloudStorageOutput() {
+ if (outputCase_ == 9) {
+ outputCase_ = 0;
+ output_ = null;
+ onChanged();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Required. User settable Cloud Storage bucket and folders to store de-identified
+ * files. This field must be set for cloud storage deidentification. The
+ * output Cloud Storage bucket must be different from the input bucket.
+ * De-identified files will overwrite files in the output path.
+ * Form of: gs://bucket/folder/ or gs://bucket
+ *
+ *
+ * string cloud_storage_output = 9 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param value The bytes for cloudStorageOutput to set.
+ * @return This builder for chaining.
+ */
+ public Builder setCloudStorageOutputBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ outputCase_ = 9;
+ output_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.util.List
+ * List of user-specified file type groups to transform. If specified, only
+ * the files with these filetypes will be transformed. If empty, all
+ * supported files will be transformed. Supported types may be automatically
+ * added over time. If a file type is set in this field that isn't supported
+ * by the Deidentify action then the job will fail and will not be
+ * successfully created/started. Currently the only filetypes supported are:
+ * IMAGES, TEXT_FILES, CSV, TSV.
+ *
+ *
+ * repeated .google.privacy.dlp.v2.FileType file_types_to_transform = 8;
+ *
+ * @return A list containing the fileTypesToTransform.
+ */
+ public java.util.List
+ * List of user-specified file type groups to transform. If specified, only
+ * the files with these filetypes will be transformed. If empty, all
+ * supported files will be transformed. Supported types may be automatically
+ * added over time. If a file type is set in this field that isn't supported
+ * by the Deidentify action then the job will fail and will not be
+ * successfully created/started. Currently the only filetypes supported are:
+ * IMAGES, TEXT_FILES, CSV, TSV.
+ *
+ *
+ * repeated .google.privacy.dlp.v2.FileType file_types_to_transform = 8;
+ *
+ * @return The count of fileTypesToTransform.
+ */
+ public int getFileTypesToTransformCount() {
+ return fileTypesToTransform_.size();
+ }
+ /**
+ *
+ *
+ *
+ * List of user-specified file type groups to transform. If specified, only
+ * the files with these filetypes will be transformed. If empty, all
+ * supported files will be transformed. Supported types may be automatically
+ * added over time. If a file type is set in this field that isn't supported
+ * by the Deidentify action then the job will fail and will not be
+ * successfully created/started. Currently the only filetypes supported are:
+ * IMAGES, TEXT_FILES, CSV, TSV.
+ *
+ *
+ * repeated .google.privacy.dlp.v2.FileType file_types_to_transform = 8;
+ *
+ * @param index The index of the element to return.
+ * @return The fileTypesToTransform at the given index.
+ */
+ public com.google.privacy.dlp.v2.FileType getFileTypesToTransform(int index) {
+ return fileTypesToTransform_converter_.convert(fileTypesToTransform_.get(index));
+ }
+ /**
+ *
+ *
+ *
+ * List of user-specified file type groups to transform. If specified, only
+ * the files with these filetypes will be transformed. If empty, all
+ * supported files will be transformed. Supported types may be automatically
+ * added over time. If a file type is set in this field that isn't supported
+ * by the Deidentify action then the job will fail and will not be
+ * successfully created/started. Currently the only filetypes supported are:
+ * IMAGES, TEXT_FILES, CSV, TSV.
+ *
+ *
+ * repeated .google.privacy.dlp.v2.FileType file_types_to_transform = 8;
+ *
+ * @param index The index to set the value at.
+ * @param value The fileTypesToTransform to set.
+ * @return This builder for chaining.
+ */
+ public Builder setFileTypesToTransform(int index, com.google.privacy.dlp.v2.FileType value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureFileTypesToTransformIsMutable();
+ fileTypesToTransform_.set(index, value.getNumber());
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * List of user-specified file type groups to transform. If specified, only
+ * the files with these filetypes will be transformed. If empty, all
+ * supported files will be transformed. Supported types may be automatically
+ * added over time. If a file type is set in this field that isn't supported
+ * by the Deidentify action then the job will fail and will not be
+ * successfully created/started. Currently the only filetypes supported are:
+ * IMAGES, TEXT_FILES, CSV, TSV.
+ *
+ *
+ * repeated .google.privacy.dlp.v2.FileType file_types_to_transform = 8;
+ *
+ * @param value The fileTypesToTransform to add.
+ * @return This builder for chaining.
+ */
+ public Builder addFileTypesToTransform(com.google.privacy.dlp.v2.FileType value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureFileTypesToTransformIsMutable();
+ fileTypesToTransform_.add(value.getNumber());
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * List of user-specified file type groups to transform. If specified, only
+ * the files with these filetypes will be transformed. If empty, all
+ * supported files will be transformed. Supported types may be automatically
+ * added over time. If a file type is set in this field that isn't supported
+ * by the Deidentify action then the job will fail and will not be
+ * successfully created/started. Currently the only filetypes supported are:
+ * IMAGES, TEXT_FILES, CSV, TSV.
+ *
+ *
+ * repeated .google.privacy.dlp.v2.FileType file_types_to_transform = 8;
+ *
+ * @param values The fileTypesToTransform to add.
+ * @return This builder for chaining.
+ */
+ public Builder addAllFileTypesToTransform(
+ java.lang.Iterable extends com.google.privacy.dlp.v2.FileType> values) {
+ ensureFileTypesToTransformIsMutable();
+ for (com.google.privacy.dlp.v2.FileType value : values) {
+ fileTypesToTransform_.add(value.getNumber());
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * List of user-specified file type groups to transform. If specified, only
+ * the files with these filetypes will be transformed. If empty, all
+ * supported files will be transformed. Supported types may be automatically
+ * added over time. If a file type is set in this field that isn't supported
+ * by the Deidentify action then the job will fail and will not be
+ * successfully created/started. Currently the only filetypes supported are:
+ * IMAGES, TEXT_FILES, CSV, TSV.
+ *
+ *
+ * repeated .google.privacy.dlp.v2.FileType file_types_to_transform = 8;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearFileTypesToTransform() {
+ fileTypesToTransform_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * List of user-specified file type groups to transform. If specified, only
+ * the files with these filetypes will be transformed. If empty, all
+ * supported files will be transformed. Supported types may be automatically
+ * added over time. If a file type is set in this field that isn't supported
+ * by the Deidentify action then the job will fail and will not be
+ * successfully created/started. Currently the only filetypes supported are:
+ * IMAGES, TEXT_FILES, CSV, TSV.
+ *
+ *
+ * repeated .google.privacy.dlp.v2.FileType file_types_to_transform = 8;
+ *
+ * @return A list containing the enum numeric values on the wire for fileTypesToTransform.
+ */
+ public java.util.List
+ * List of user-specified file type groups to transform. If specified, only
+ * the files with these filetypes will be transformed. If empty, all
+ * supported files will be transformed. Supported types may be automatically
+ * added over time. If a file type is set in this field that isn't supported
+ * by the Deidentify action then the job will fail and will not be
+ * successfully created/started. Currently the only filetypes supported are:
+ * IMAGES, TEXT_FILES, CSV, TSV.
+ *
+ *
+ * repeated .google.privacy.dlp.v2.FileType file_types_to_transform = 8;
+ *
+ * @param index The index of the value to return.
+ * @return The enum numeric value on the wire of fileTypesToTransform at the given index.
+ */
+ public int getFileTypesToTransformValue(int index) {
+ return fileTypesToTransform_.get(index);
+ }
+ /**
+ *
+ *
+ *
+ * List of user-specified file type groups to transform. If specified, only
+ * the files with these filetypes will be transformed. If empty, all
+ * supported files will be transformed. Supported types may be automatically
+ * added over time. If a file type is set in this field that isn't supported
+ * by the Deidentify action then the job will fail and will not be
+ * successfully created/started. Currently the only filetypes supported are:
+ * IMAGES, TEXT_FILES, CSV, TSV.
+ *
+ *
+ * repeated .google.privacy.dlp.v2.FileType file_types_to_transform = 8;
+ *
+ * @param index The index to set the value at.
+ * @param value The enum numeric value on the wire for fileTypesToTransform to set.
+ * @return This builder for chaining.
+ */
+ public Builder setFileTypesToTransformValue(int index, int value) {
+ ensureFileTypesToTransformIsMutable();
+ fileTypesToTransform_.set(index, value);
onChanged();
return this;
}
-
- @java.lang.Override
- public final boolean isInitialized() {
- return true;
+ /**
+ *
+ *
+ *
+ * List of user-specified file type groups to transform. If specified, only
+ * the files with these filetypes will be transformed. If empty, all
+ * supported files will be transformed. Supported types may be automatically
+ * added over time. If a file type is set in this field that isn't supported
+ * by the Deidentify action then the job will fail and will not be
+ * successfully created/started. Currently the only filetypes supported are:
+ * IMAGES, TEXT_FILES, CSV, TSV.
+ *
+ *
+ * repeated .google.privacy.dlp.v2.FileType file_types_to_transform = 8;
+ *
+ * @param value The enum numeric value on the wire for fileTypesToTransform to add.
+ * @return This builder for chaining.
+ */
+ public Builder addFileTypesToTransformValue(int value) {
+ ensureFileTypesToTransformIsMutable();
+ fileTypesToTransform_.add(value);
+ onChanged();
+ return this;
}
-
- @java.lang.Override
- public Builder mergeFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog parsedMessage = null;
- try {
- parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- parsedMessage =
- (com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog)
- e.getUnfinishedMessage();
- throw e.unwrapIOException();
- } finally {
- if (parsedMessage != null) {
- mergeFrom(parsedMessage);
- }
+ /**
+ *
+ *
+ *
+ * List of user-specified file type groups to transform. If specified, only
+ * the files with these filetypes will be transformed. If empty, all
+ * supported files will be transformed. Supported types may be automatically
+ * added over time. If a file type is set in this field that isn't supported
+ * by the Deidentify action then the job will fail and will not be
+ * successfully created/started. Currently the only filetypes supported are:
+ * IMAGES, TEXT_FILES, CSV, TSV.
+ *
+ *
+ * repeated .google.privacy.dlp.v2.FileType file_types_to_transform = 8;
+ *
+ * @param values The enum numeric values on the wire for fileTypesToTransform to add.
+ * @return This builder for chaining.
+ */
+ public Builder addAllFileTypesToTransformValue(java.lang.Iterable
- * Enable email notification to project owners and editors on jobs's
- * completion/failure.
+ * Sends an email when the job completes. The email goes to IAM project owners
+ * and technical [Essential
+ * Contacts](https://cloud.google.com/resource-manager/docs/managing-notification-contacts).
*
*
* Protobuf type {@code google.privacy.dlp.v2.Action.JobNotificationEmails}
@@ -2865,8 +5135,9 @@ protected Builder newBuilderForType(
*
*
*
- * Enable email notification to project owners and editors on jobs's
- * completion/failure.
+ * Sends an email when the job completes. The email goes to IAM project owners
+ * and technical [Essential
+ * Contacts](https://cloud.google.com/resource-manager/docs/managing-notification-contacts).
*
*
* Protobuf type {@code google.privacy.dlp.v2.Action.JobNotificationEmails}
@@ -3535,6 +5806,7 @@ public enum ActionCase
PUB_SUB(2),
PUBLISH_SUMMARY_TO_CSCC(3),
PUBLISH_FINDINGS_TO_CLOUD_DATA_CATALOG(5),
+ DEIDENTIFY(7),
JOB_NOTIFICATION_EMAILS(8),
PUBLISH_TO_STACKDRIVER(9),
ACTION_NOT_SET(0);
@@ -3563,6 +5835,8 @@ public static ActionCase forNumber(int value) {
return PUBLISH_SUMMARY_TO_CSCC;
case 5:
return PUBLISH_FINDINGS_TO_CLOUD_DATA_CATALOG;
+ case 7:
+ return DEIDENTIFY;
case 8:
return JOB_NOTIFICATION_EMAILS;
case 9:
@@ -3639,7 +5913,7 @@ public com.google.privacy.dlp.v2.Action.SaveFindingsOrBuilder getSaveFindingsOrB
*
*
*
- * Publish a notification to a pubsub topic.
+ * Publish a notification to a Pub/Sub topic.
*
*
* .google.privacy.dlp.v2.Action.PublishToPubSub pub_sub = 2;
@@ -3654,7 +5928,7 @@ public boolean hasPubSub() {
*
*
*
- * Publish a notification to a pubsub topic.
+ * Publish a notification to a Pub/Sub topic.
*
*
* .google.privacy.dlp.v2.Action.PublishToPubSub pub_sub = 2;
@@ -3672,7 +5946,7 @@ public com.google.privacy.dlp.v2.Action.PublishToPubSub getPubSub() {
*
*
*
- * Publish a notification to a pubsub topic.
+ * Publish a notification to a Pub/Sub topic.
*
*
* .google.privacy.dlp.v2.Action.PublishToPubSub pub_sub = 2;
@@ -3796,6 +6070,57 @@ public boolean hasPublishFindingsToCloudDataCatalog() {
return com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog.getDefaultInstance();
}
+ public static final int DEIDENTIFY_FIELD_NUMBER = 7;
+ /**
+ *
+ *
+ *
+ * Create a de-identified copy of the input data.
+ *
+ *
+ * .google.privacy.dlp.v2.Action.Deidentify deidentify = 7;
+ *
+ * @return Whether the deidentify field is set.
+ */
+ @java.lang.Override
+ public boolean hasDeidentify() {
+ return actionCase_ == 7;
+ }
+ /**
+ *
+ *
+ *
+ * Create a de-identified copy of the input data.
+ *
+ *
+ * .google.privacy.dlp.v2.Action.Deidentify deidentify = 7;
+ *
+ * @return The deidentify.
+ */
+ @java.lang.Override
+ public com.google.privacy.dlp.v2.Action.Deidentify getDeidentify() {
+ if (actionCase_ == 7) {
+ return (com.google.privacy.dlp.v2.Action.Deidentify) action_;
+ }
+ return com.google.privacy.dlp.v2.Action.Deidentify.getDefaultInstance();
+ }
+ /**
+ *
+ *
+ *
+ * Create a de-identified copy of the input data.
+ *
+ *
+ * .google.privacy.dlp.v2.Action.Deidentify deidentify = 7;
+ */
+ @java.lang.Override
+ public com.google.privacy.dlp.v2.Action.DeidentifyOrBuilder getDeidentifyOrBuilder() {
+ if (actionCase_ == 7) {
+ return (com.google.privacy.dlp.v2.Action.Deidentify) action_;
+ }
+ return com.google.privacy.dlp.v2.Action.Deidentify.getDefaultInstance();
+ }
+
public static final int JOB_NOTIFICATION_EMAILS_FIELD_NUMBER = 8;
/**
*
@@ -3930,6 +6255,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
output.writeMessage(
5, (com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog) action_);
}
+ if (actionCase_ == 7) {
+ output.writeMessage(7, (com.google.privacy.dlp.v2.Action.Deidentify) action_);
+ }
if (actionCase_ == 8) {
output.writeMessage(8, (com.google.privacy.dlp.v2.Action.JobNotificationEmails) action_);
}
@@ -3965,6 +6293,11 @@ public int getSerializedSize() {
com.google.protobuf.CodedOutputStream.computeMessageSize(
5, (com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog) action_);
}
+ if (actionCase_ == 7) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 7, (com.google.privacy.dlp.v2.Action.Deidentify) action_);
+ }
if (actionCase_ == 8) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(
@@ -4005,6 +6338,9 @@ public boolean equals(final java.lang.Object obj) {
if (!getPublishFindingsToCloudDataCatalog()
.equals(other.getPublishFindingsToCloudDataCatalog())) return false;
break;
+ case 7:
+ if (!getDeidentify().equals(other.getDeidentify())) return false;
+ break;
case 8:
if (!getJobNotificationEmails().equals(other.getJobNotificationEmails())) return false;
break;
@@ -4042,6 +6378,10 @@ public int hashCode() {
hash = (37 * hash) + PUBLISH_FINDINGS_TO_CLOUD_DATA_CATALOG_FIELD_NUMBER;
hash = (53 * hash) + getPublishFindingsToCloudDataCatalog().hashCode();
break;
+ case 7:
+ hash = (37 * hash) + DEIDENTIFY_FIELD_NUMBER;
+ hash = (53 * hash) + getDeidentify().hashCode();
+ break;
case 8:
hash = (37 * hash) + JOB_NOTIFICATION_EMAILS_FIELD_NUMBER;
hash = (53 * hash) + getJobNotificationEmails().hashCode();
@@ -4254,6 +6594,13 @@ public com.google.privacy.dlp.v2.Action buildPartial() {
result.action_ = publishFindingsToCloudDataCatalogBuilder_.build();
}
}
+ if (actionCase_ == 7) {
+ if (deidentifyBuilder_ == null) {
+ result.action_ = action_;
+ } else {
+ result.action_ = deidentifyBuilder_.build();
+ }
+ }
if (actionCase_ == 8) {
if (jobNotificationEmailsBuilder_ == null) {
result.action_ = action_;
@@ -4339,6 +6686,11 @@ public Builder mergeFrom(com.google.privacy.dlp.v2.Action other) {
mergePublishFindingsToCloudDataCatalog(other.getPublishFindingsToCloudDataCatalog());
break;
}
+ case DEIDENTIFY:
+ {
+ mergeDeidentify(other.getDeidentify());
+ break;
+ }
case JOB_NOTIFICATION_EMAILS:
{
mergeJobNotificationEmails(other.getJobNotificationEmails());
@@ -4616,7 +6968,7 @@ public com.google.privacy.dlp.v2.Action.SaveFindingsOrBuilder getSaveFindingsOrB
*
*
*
- * Publish a notification to a pubsub topic.
+ * Publish a notification to a Pub/Sub topic.
*
*
* .google.privacy.dlp.v2.Action.PublishToPubSub pub_sub = 2;
@@ -4631,7 +6983,7 @@ public boolean hasPubSub() {
*
*
*
- * Publish a notification to a pubsub topic.
+ * Publish a notification to a Pub/Sub topic.
*
*
* .google.privacy.dlp.v2.Action.PublishToPubSub pub_sub = 2;
@@ -4656,7 +7008,7 @@ public com.google.privacy.dlp.v2.Action.PublishToPubSub getPubSub() {
*
*
*
- * Publish a notification to a pubsub topic.
+ * Publish a notification to a Pub/Sub topic.
*
*
* .google.privacy.dlp.v2.Action.PublishToPubSub pub_sub = 2;
@@ -4678,7 +7030,7 @@ public Builder setPubSub(com.google.privacy.dlp.v2.Action.PublishToPubSub value)
*
*
*
- * Publish a notification to a pubsub topic.
+ * Publish a notification to a Pub/Sub topic.
*
*
* .google.privacy.dlp.v2.Action.PublishToPubSub pub_sub = 2;
@@ -4698,7 +7050,7 @@ public Builder setPubSub(
*
*
*
- * Publish a notification to a pubsub topic.
+ * Publish a notification to a Pub/Sub topic.
*
*
* .google.privacy.dlp.v2.Action.PublishToPubSub pub_sub = 2;
@@ -4730,7 +7082,7 @@ public Builder mergePubSub(com.google.privacy.dlp.v2.Action.PublishToPubSub valu
*
*
*
- * Publish a notification to a pubsub topic.
+ * Publish a notification to a Pub/Sub topic.
*
*
* .google.privacy.dlp.v2.Action.PublishToPubSub pub_sub = 2;
@@ -4755,7 +7107,7 @@ public Builder clearPubSub() {
*
*
*
- * Publish a notification to a pubsub topic.
+ * Publish a notification to a Pub/Sub topic.
*
*
* .google.privacy.dlp.v2.Action.PublishToPubSub pub_sub = 2;
@@ -4767,7 +7119,7 @@ public com.google.privacy.dlp.v2.Action.PublishToPubSub.Builder getPubSubBuilder
*
*
*
- * Publish a notification to a pubsub topic.
+ * Publish a notification to a Pub/Sub topic.
*
*
* .google.privacy.dlp.v2.Action.PublishToPubSub pub_sub = 2;
@@ -4787,7 +7139,7 @@ public com.google.privacy.dlp.v2.Action.PublishToPubSubOrBuilder getPubSubOrBuil
*
*
*
- * Publish a notification to a pubsub topic.
+ * Publish a notification to a Pub/Sub topic.
*
*
* .google.privacy.dlp.v2.Action.PublishToPubSub pub_sub = 2;
@@ -5273,6 +7625,216 @@ public Builder clearPublishFindingsToCloudDataCatalog() {
return publishFindingsToCloudDataCatalogBuilder_;
}
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.privacy.dlp.v2.Action.Deidentify,
+ com.google.privacy.dlp.v2.Action.Deidentify.Builder,
+ com.google.privacy.dlp.v2.Action.DeidentifyOrBuilder>
+ deidentifyBuilder_;
+ /**
+ *
+ *
+ *
+ * Create a de-identified copy of the input data.
+ *
+ *
+ * .google.privacy.dlp.v2.Action.Deidentify deidentify = 7;
+ *
+ * @return Whether the deidentify field is set.
+ */
+ @java.lang.Override
+ public boolean hasDeidentify() {
+ return actionCase_ == 7;
+ }
+ /**
+ *
+ *
+ *
+ * Create a de-identified copy of the input data.
+ *
+ *
+ * .google.privacy.dlp.v2.Action.Deidentify deidentify = 7;
+ *
+ * @return The deidentify.
+ */
+ @java.lang.Override
+ public com.google.privacy.dlp.v2.Action.Deidentify getDeidentify() {
+ if (deidentifyBuilder_ == null) {
+ if (actionCase_ == 7) {
+ return (com.google.privacy.dlp.v2.Action.Deidentify) action_;
+ }
+ return com.google.privacy.dlp.v2.Action.Deidentify.getDefaultInstance();
+ } else {
+ if (actionCase_ == 7) {
+ return deidentifyBuilder_.getMessage();
+ }
+ return com.google.privacy.dlp.v2.Action.Deidentify.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Create a de-identified copy of the input data.
+ *
+ *
+ * .google.privacy.dlp.v2.Action.Deidentify deidentify = 7;
+ */
+ public Builder setDeidentify(com.google.privacy.dlp.v2.Action.Deidentify value) {
+ if (deidentifyBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ action_ = value;
+ onChanged();
+ } else {
+ deidentifyBuilder_.setMessage(value);
+ }
+ actionCase_ = 7;
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Create a de-identified copy of the input data.
+ *
+ *
+ * .google.privacy.dlp.v2.Action.Deidentify deidentify = 7;
+ */
+ public Builder setDeidentify(
+ com.google.privacy.dlp.v2.Action.Deidentify.Builder builderForValue) {
+ if (deidentifyBuilder_ == null) {
+ action_ = builderForValue.build();
+ onChanged();
+ } else {
+ deidentifyBuilder_.setMessage(builderForValue.build());
+ }
+ actionCase_ = 7;
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Create a de-identified copy of the input data.
+ *
+ *
+ * .google.privacy.dlp.v2.Action.Deidentify deidentify = 7;
+ */
+ public Builder mergeDeidentify(com.google.privacy.dlp.v2.Action.Deidentify value) {
+ if (deidentifyBuilder_ == null) {
+ if (actionCase_ == 7
+ && action_ != com.google.privacy.dlp.v2.Action.Deidentify.getDefaultInstance()) {
+ action_ =
+ com.google.privacy.dlp.v2.Action.Deidentify.newBuilder(
+ (com.google.privacy.dlp.v2.Action.Deidentify) action_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ action_ = value;
+ }
+ onChanged();
+ } else {
+ if (actionCase_ == 7) {
+ deidentifyBuilder_.mergeFrom(value);
+ } else {
+ deidentifyBuilder_.setMessage(value);
+ }
+ }
+ actionCase_ = 7;
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Create a de-identified copy of the input data.
+ *
+ *
+ * .google.privacy.dlp.v2.Action.Deidentify deidentify = 7;
+ */
+ public Builder clearDeidentify() {
+ if (deidentifyBuilder_ == null) {
+ if (actionCase_ == 7) {
+ actionCase_ = 0;
+ action_ = null;
+ onChanged();
+ }
+ } else {
+ if (actionCase_ == 7) {
+ actionCase_ = 0;
+ action_ = null;
+ }
+ deidentifyBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Create a de-identified copy of the input data.
+ *
+ *
+ * .google.privacy.dlp.v2.Action.Deidentify deidentify = 7;
+ */
+ public com.google.privacy.dlp.v2.Action.Deidentify.Builder getDeidentifyBuilder() {
+ return getDeidentifyFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ *
+ * Create a de-identified copy of the input data.
+ *
+ *
+ * .google.privacy.dlp.v2.Action.Deidentify deidentify = 7;
+ */
+ @java.lang.Override
+ public com.google.privacy.dlp.v2.Action.DeidentifyOrBuilder getDeidentifyOrBuilder() {
+ if ((actionCase_ == 7) && (deidentifyBuilder_ != null)) {
+ return deidentifyBuilder_.getMessageOrBuilder();
+ } else {
+ if (actionCase_ == 7) {
+ return (com.google.privacy.dlp.v2.Action.Deidentify) action_;
+ }
+ return com.google.privacy.dlp.v2.Action.Deidentify.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Create a de-identified copy of the input data.
+ *
+ *
+ * .google.privacy.dlp.v2.Action.Deidentify deidentify = 7;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.privacy.dlp.v2.Action.Deidentify,
+ com.google.privacy.dlp.v2.Action.Deidentify.Builder,
+ com.google.privacy.dlp.v2.Action.DeidentifyOrBuilder>
+ getDeidentifyFieldBuilder() {
+ if (deidentifyBuilder_ == null) {
+ if (!(actionCase_ == 7)) {
+ action_ = com.google.privacy.dlp.v2.Action.Deidentify.getDefaultInstance();
+ }
+ deidentifyBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.privacy.dlp.v2.Action.Deidentify,
+ com.google.privacy.dlp.v2.Action.Deidentify.Builder,
+ com.google.privacy.dlp.v2.Action.DeidentifyOrBuilder>(
+ (com.google.privacy.dlp.v2.Action.Deidentify) action_,
+ getParentForChildren(),
+ isClean());
+ action_ = null;
+ }
+ actionCase_ = 7;
+ onChanged();
+ ;
+ return deidentifyBuilder_;
+ }
+
private com.google.protobuf.SingleFieldBuilderV3<
com.google.privacy.dlp.v2.Action.JobNotificationEmails,
com.google.privacy.dlp.v2.Action.JobNotificationEmails.Builder,
diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ActionOrBuilder.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ActionOrBuilder.java
index b0179083cb34..6c6bfd38f412 100644
--- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ActionOrBuilder.java
+++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ActionOrBuilder.java
@@ -62,7 +62,7 @@ public interface ActionOrBuilder
*
*
*
- * Publish a notification to a pubsub topic.
+ * Publish a notification to a Pub/Sub topic.
*
*
* .google.privacy.dlp.v2.Action.PublishToPubSub pub_sub = 2;
@@ -74,7 +74,7 @@ public interface ActionOrBuilder
*
*
*
- * Publish a notification to a pubsub topic.
+ * Publish a notification to a Pub/Sub topic.
*
*
* .google.privacy.dlp.v2.Action.PublishToPubSub pub_sub = 2;
@@ -86,7 +86,7 @@ public interface ActionOrBuilder
*
*
*
- * Publish a notification to a pubsub topic.
+ * Publish a notification to a Pub/Sub topic.
*
*
* .google.privacy.dlp.v2.Action.PublishToPubSub pub_sub = 2;
@@ -171,6 +171,41 @@ public interface ActionOrBuilder
com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalogOrBuilder
getPublishFindingsToCloudDataCatalogOrBuilder();
+ /**
+ *
+ *
+ *
+ * Create a de-identified copy of the input data.
+ *
+ *
+ * .google.privacy.dlp.v2.Action.Deidentify deidentify = 7;
+ *
+ * @return Whether the deidentify field is set.
+ */
+ boolean hasDeidentify();
+ /**
+ *
+ *
+ *
+ * Create a de-identified copy of the input data.
+ *
+ *
+ * .google.privacy.dlp.v2.Action.Deidentify deidentify = 7;
+ *
+ * @return The deidentify.
+ */
+ com.google.privacy.dlp.v2.Action.Deidentify getDeidentify();
+ /**
+ *
+ *
+ *
+ * Create a de-identified copy of the input data.
+ *
+ *
+ * .google.privacy.dlp.v2.Action.Deidentify deidentify = 7;
+ */
+ com.google.privacy.dlp.v2.Action.DeidentifyOrBuilder getDeidentifyOrBuilder();
+
/**
*
*
diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/AnalyzeDataSourceRiskDetails.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/AnalyzeDataSourceRiskDetails.java
index 59cd0d249380..33e5025c0168 100644
--- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/AnalyzeDataSourceRiskDetails.java
+++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/AnalyzeDataSourceRiskDetails.java
@@ -17970,10 +17970,10 @@ public interface DeltaPresenceEstimationQuasiIdValuesOrBuilder
*
*
* The estimated probability that a given individual sharing these
- * quasi-identifier values is in the dataset. This value, typically called
- * δ, is the ratio between the number of records in the dataset with these
- * quasi-identifier values, and the total number of individuals (inside
- * *and* outside the dataset) with these quasi-identifier values.
+ * quasi-identifier values is in the dataset. This value, typically
+ * called δ, is the ratio between the number of records in the dataset
+ * with these quasi-identifier values, and the total number of individuals
+ * (inside *and* outside the dataset) with these quasi-identifier values.
* For example, if there are 15 individuals in the dataset who share the
* same quasi-identifier values, and an estimated 100 people in the entire
* population with these values, then δ is 0.15.
@@ -18175,10 +18175,10 @@ public com.google.privacy.dlp.v2.ValueOrBuilder getQuasiIdsValuesOrBuilder(int i
*
*
*
@@ -421,7 +421,7 @@ public java.lang.String getRelativePath() {
* Examples:
* - For BigQuery table `project_id:dataset_id.table_id`, the relative path is
* `table_id`
- * - Google Cloud Storage file `gs://bucket/folder/filename.txt`, the relative
+ * - For Cloud Storage file `gs://bucket/folder/filename.txt`, the relative
* path is `folder/filename.txt`
*
* The estimated probability that a given individual sharing these
- * quasi-identifier values is in the dataset. This value, typically called
- * δ, is the ratio between the number of records in the dataset with these
- * quasi-identifier values, and the total number of individuals (inside
- * *and* outside the dataset) with these quasi-identifier values.
+ * quasi-identifier values is in the dataset. This value, typically
+ * called δ, is the ratio between the number of records in the dataset
+ * with these quasi-identifier values, and the total number of individuals
+ * (inside *and* outside the dataset) with these quasi-identifier values.
* For example, if there are 15 individuals in the dataset who share the
* same quasi-identifier values, and an estimated 100 people in the entire
* population with these values, then δ is 0.15.
@@ -19000,10 +19000,10 @@ public com.google.privacy.dlp.v2.Value.Builder addQuasiIdsValuesBuilder(int inde
*
*
*
@@ -393,7 +393,7 @@ public com.google.protobuf.ByteString getRootPathBytes() {
* Examples:
* - For BigQuery table `project_id:dataset_id.table_id`, the relative path is
* `table_id`
- * - Google Cloud Storage file `gs://bucket/folder/filename.txt`, the relative
+ * - For Cloud Storage file `gs://bucket/folder/filename.txt`, the relative
* path is `folder/filename.txt`
*
* The estimated probability that a given individual sharing these
- * quasi-identifier values is in the dataset. This value, typically called
- * δ, is the ratio between the number of records in the dataset with these
- * quasi-identifier values, and the total number of individuals (inside
- * *and* outside the dataset) with these quasi-identifier values.
+ * quasi-identifier values is in the dataset. This value, typically
+ * called δ, is the ratio between the number of records in the dataset
+ * with these quasi-identifier values, and the total number of individuals
+ * (inside *and* outside the dataset) with these quasi-identifier values.
* For example, if there are 15 individuals in the dataset who share the
* same quasi-identifier values, and an estimated 100 people in the entire
* population with these values, then δ is 0.15.
@@ -19022,10 +19022,10 @@ public double getEstimatedProbability() {
*
*
*
@@ -362,7 +362,7 @@ public java.lang.String getRootPath() {
* Examples:
* - For BigQuery table `project_id:dataset_id.table_id`, the root is
* `dataset_id`
- * - For Google Cloud Storage file `gs://bucket/folder/filename.txt`, the root
+ * - For Cloud Storage file `gs://bucket/folder/filename.txt`, the root
* is `gs://bucket`
*
* The estimated probability that a given individual sharing these
- * quasi-identifier values is in the dataset. This value, typically called
- * δ, is the ratio between the number of records in the dataset with these
- * quasi-identifier values, and the total number of individuals (inside
- * *and* outside the dataset) with these quasi-identifier values.
+ * quasi-identifier values is in the dataset. This value, typically
+ * called δ, is the ratio between the number of records in the dataset
+ * with these quasi-identifier values, and the total number of individuals
+ * (inside *and* outside the dataset) with these quasi-identifier values.
* For example, if there are 15 individuals in the dataset who share the
* same quasi-identifier values, and an estimated 100 people in the entire
* population with these values, then δ is 0.15.
@@ -19047,10 +19047,10 @@ public Builder setEstimatedProbability(double value) {
*
*
*
*
* The estimated probability that a given individual sharing these
- * quasi-identifier values is in the dataset. This value, typically called
- * δ, is the ratio between the number of records in the dataset with these
- * quasi-identifier values, and the total number of individuals (inside
- * *and* outside the dataset) with these quasi-identifier values.
+ * quasi-identifier values is in the dataset. This value, typically
+ * called δ, is the ratio between the number of records in the dataset
+ * with these quasi-identifier values, and the total number of individuals
+ * (inside *and* outside the dataset) with these quasi-identifier values.
* For example, if there are 15 individuals in the dataset who share the
* same quasi-identifier values, and an estimated 100 people in the entire
* population with these values, then δ is 0.15.
diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CharacterMaskConfig.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CharacterMaskConfig.java
index 4e0ba1c0d6fd..7e7f3590080d 100644
--- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CharacterMaskConfig.java
+++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CharacterMaskConfig.java
@@ -208,6 +208,18 @@ public com.google.protobuf.ByteString getMaskingCharacterBytes() {
*
*
*
* Number of characters to mask. If not set, all matching chars will be
* masked. Skipped characters do not count towards this tally.
+ * If `number_to_mask` is negative, this denotes inverse masking. Cloud DLP
+ * masks all but a number of characters.
+ * For example, suppose you have the following values:
+ * - `masking_character` is `*`
+ * - `number_to_mask` is `-4`
+ * - `reverse_order` is `false`
+ * - `CharsToIgnore` includes `-`
+ * - Input string is `1234-5678-9012-3456`
+ * The resulting de-identified string is
+ * `****-****-****-3456`. Cloud DLP masks all but the last four characters.
+ * If `reverse_order` is `true`, all but the first four characters are masked
+ * as `1234-****-****-****`.
*
*
* int32 number_to_mask = 2;
@@ -864,6 +876,18 @@ public Builder setMaskingCharacterBytes(com.google.protobuf.ByteString value) {
*
* Number of characters to mask. If not set, all matching chars will be
* masked. Skipped characters do not count towards this tally.
+ * If `number_to_mask` is negative, this denotes inverse masking. Cloud DLP
+ * masks all but a number of characters.
+ * For example, suppose you have the following values:
+ * - `masking_character` is `*`
+ * - `number_to_mask` is `-4`
+ * - `reverse_order` is `false`
+ * - `CharsToIgnore` includes `-`
+ * - Input string is `1234-5678-9012-3456`
+ * The resulting de-identified string is
+ * `****-****-****-3456`. Cloud DLP masks all but the last four characters.
+ * If `reverse_order` is `true`, all but the first four characters are masked
+ * as `1234-****-****-****`.
*
*
* int32 number_to_mask = 2;
@@ -880,6 +904,18 @@ public int getNumberToMask() {
*
* Number of characters to mask. If not set, all matching chars will be
* masked. Skipped characters do not count towards this tally.
+ * If `number_to_mask` is negative, this denotes inverse masking. Cloud DLP
+ * masks all but a number of characters.
+ * For example, suppose you have the following values:
+ * - `masking_character` is `*`
+ * - `number_to_mask` is `-4`
+ * - `reverse_order` is `false`
+ * - `CharsToIgnore` includes `-`
+ * - Input string is `1234-5678-9012-3456`
+ * The resulting de-identified string is
+ * `****-****-****-3456`. Cloud DLP masks all but the last four characters.
+ * If `reverse_order` is `true`, all but the first four characters are masked
+ * as `1234-****-****-****`.
*
*
* int32 number_to_mask = 2;
@@ -899,6 +935,18 @@ public Builder setNumberToMask(int value) {
*
* Number of characters to mask. If not set, all matching chars will be
* masked. Skipped characters do not count towards this tally.
+ * If `number_to_mask` is negative, this denotes inverse masking. Cloud DLP
+ * masks all but a number of characters.
+ * For example, suppose you have the following values:
+ * - `masking_character` is `*`
+ * - `number_to_mask` is `-4`
+ * - `reverse_order` is `false`
+ * - `CharsToIgnore` includes `-`
+ * - Input string is `1234-5678-9012-3456`
+ * The resulting de-identified string is
+ * `****-****-****-3456`. Cloud DLP masks all but the last four characters.
+ * If `reverse_order` is `true`, all but the first four characters are masked
+ * as `1234-****-****-****`.
*
*
* int32 number_to_mask = 2;
diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CharacterMaskConfigOrBuilder.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CharacterMaskConfigOrBuilder.java
index 3a3f668dd1be..c8b555992f10 100644
--- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CharacterMaskConfigOrBuilder.java
+++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CharacterMaskConfigOrBuilder.java
@@ -60,6 +60,18 @@ public interface CharacterMaskConfigOrBuilder
*
* Number of characters to mask. If not set, all matching chars will be
* masked. Skipped characters do not count towards this tally.
+ * If `number_to_mask` is negative, this denotes inverse masking. Cloud DLP
+ * masks all but a number of characters.
+ * For example, suppose you have the following values:
+ * - `masking_character` is `*`
+ * - `number_to_mask` is `-4`
+ * - `reverse_order` is `false`
+ * - `CharsToIgnore` includes `-`
+ * - Input string is `1234-5678-9012-3456`
+ * The resulting de-identified string is
+ * `****-****-****-3456`. Cloud DLP masks all but the last four characters.
+ * If `reverse_order` is `true`, all but the first four characters are masked
+ * as `1234-****-****-****`.
*
*
* int32 number_to_mask = 2;
diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CharsToIgnore.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CharsToIgnore.java
index 85c5734965c4..db75c520ac7e 100644
--- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CharsToIgnore.java
+++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CharsToIgnore.java
@@ -123,7 +123,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
*
*
- * Convenience enum for indication common characters to not transform.
+ * Convenience enum for indicating common characters to not transform.
*
*
* Protobuf enum {@code google.privacy.dlp.v2.CharsToIgnore.CommonCharsToIgnore}
diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CloudStorageOptions.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CloudStorageOptions.java
index aef6599d570f..ebdbaa78fc06 100644
--- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CloudStorageOptions.java
+++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CloudStorageOptions.java
@@ -22,7 +22,7 @@
*
*
*
- * Options defining a file or a set of files within a Google Cloud Storage
+ * Options defining a file or a set of files within a Cloud Storage
* bucket.
*
*
@@ -1864,7 +1864,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
*
- * Options defining a file or a set of files within a Google Cloud Storage
+ * Options defining a file or a set of files within a Cloud Storage
* bucket.
*
*
diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/Container.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/Container.java
index 4dfedde78689..4f9cbfe2f05b 100644
--- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/Container.java
+++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/Container.java
@@ -175,7 +175,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
*
*
- * Container type, for example BigQuery or Google Cloud Storage.
+ * Container type, for example BigQuery or Cloud Storage.
*
*
* string type = 1;
@@ -198,7 +198,7 @@ public java.lang.String getType() {
*
*
*
- * Container type, for example BigQuery or Google Cloud Storage.
+ * Container type, for example BigQuery or Cloud Storage.
*
*
* string type = 1;
@@ -278,7 +278,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() {
* A string representation of the full container name.
* Examples:
* - BigQuery: 'Project:DataSetId.TableId'
- * - Google Cloud Storage: 'gs://Bucket/folders/filename.txt'
+ * - Cloud Storage: 'gs://Bucket/folders/filename.txt'
* string full_path = 3;
@@ -304,7 +304,7 @@ public java.lang.String getFullPath() {
* A string representation of the full container name.
* Examples:
* - BigQuery: 'Project:DataSetId.TableId'
- * - Google Cloud Storage: 'gs://Bucket/folders/filename.txt'
+ * - Cloud Storage: 'gs://Bucket/folders/filename.txt'
* string full_path = 3;
@@ -334,7 +334,7 @@ public com.google.protobuf.ByteString getFullPathBytes() {
* Examples:
* - For BigQuery table `project_id:dataset_id.table_id`, the root is
* `dataset_id`
- * - For Google Cloud Storage file `gs://bucket/folder/filename.txt`, the root
+ * - For Cloud Storage file `gs://bucket/folder/filename.txt`, the root
* is `gs://bucket`
*
- * Findings container modification timestamp, if applicable.
- * For Google Cloud Storage contains last file modification timestamp.
- * For BigQuery table contains last_modified_time property.
- * For Datastore - not populated.
+ * Findings container modification timestamp, if applicable. For Cloud
+ * Storage, this field contains the last file modification timestamp. For a
+ * BigQuery table, this field contains the last_modified_time property. For
+ * Datastore, this field isn't populated.
*
*
* .google.protobuf.Timestamp update_time = 6;
@@ -466,10 +466,10 @@ public boolean hasUpdateTime() {
*
*
*
- * Findings container modification timestamp, if applicable.
- * For Google Cloud Storage contains last file modification timestamp.
- * For BigQuery table contains last_modified_time property.
- * For Datastore - not populated.
+ * Findings container modification timestamp, if applicable. For Cloud
+ * Storage, this field contains the last file modification timestamp. For a
+ * BigQuery table, this field contains the last_modified_time property. For
+ * Datastore, this field isn't populated.
*
*
* .google.protobuf.Timestamp update_time = 6;
@@ -484,10 +484,10 @@ public com.google.protobuf.Timestamp getUpdateTime() {
*
*
*
- * Findings container modification timestamp, if applicable.
- * For Google Cloud Storage contains last file modification timestamp.
- * For BigQuery table contains last_modified_time property.
- * For Datastore - not populated.
+ * Findings container modification timestamp, if applicable. For Cloud
+ * Storage, this field contains the last file modification timestamp. For a
+ * BigQuery table, this field contains the last_modified_time property. For
+ * Datastore, this field isn't populated.
*
*
* .google.protobuf.Timestamp update_time = 6;
@@ -504,7 +504,7 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
*
*
* Findings container version, if available
- * ("generation" for Google Cloud Storage).
+ * ("generation" for Cloud Storage).
*
*
* string version = 7;
@@ -528,7 +528,7 @@ public java.lang.String getVersion() {
*
*
* Findings container version, if available
- * ("generation" for Google Cloud Storage).
+ * ("generation" for Cloud Storage).
*
*
* string version = 7;
@@ -975,7 +975,7 @@ public Builder mergeFrom(
*
*
*
- * Container type, for example BigQuery or Google Cloud Storage.
+ * Container type, for example BigQuery or Cloud Storage.
*
*
* string type = 1;
@@ -997,7 +997,7 @@ public java.lang.String getType() {
*
*
*
- * Container type, for example BigQuery or Google Cloud Storage.
+ * Container type, for example BigQuery or Cloud Storage.
*
*
* string type = 1;
@@ -1019,7 +1019,7 @@ public com.google.protobuf.ByteString getTypeBytes() {
*
*
*
- * Container type, for example BigQuery or Google Cloud Storage.
+ * Container type, for example BigQuery or Cloud Storage.
*
*
* string type = 1;
@@ -1040,7 +1040,7 @@ public Builder setType(java.lang.String value) {
*
*
*
- * Container type, for example BigQuery or Google Cloud Storage.
+ * Container type, for example BigQuery or Cloud Storage.
*
*
* string type = 1;
@@ -1057,7 +1057,7 @@ public Builder clearType() {
*
*
*
- * Container type, for example BigQuery or Google Cloud Storage.
+ * Container type, for example BigQuery or Cloud Storage.
*
*
* string type = 1;
@@ -1195,7 +1195,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) {
* A string representation of the full container name.
* Examples:
* - BigQuery: 'Project:DataSetId.TableId'
- * - Google Cloud Storage: 'gs://Bucket/folders/filename.txt'
+ * - Cloud Storage: 'gs://Bucket/folders/filename.txt'
* string full_path = 3;
@@ -1220,7 +1220,7 @@ public java.lang.String getFullPath() {
* A string representation of the full container name.
* Examples:
* - BigQuery: 'Project:DataSetId.TableId'
- * - Google Cloud Storage: 'gs://Bucket/folders/filename.txt'
+ * - Cloud Storage: 'gs://Bucket/folders/filename.txt'
* string full_path = 3;
@@ -1245,7 +1245,7 @@ public com.google.protobuf.ByteString getFullPathBytes() {
* A string representation of the full container name.
* Examples:
* - BigQuery: 'Project:DataSetId.TableId'
- * - Google Cloud Storage: 'gs://Bucket/folders/filename.txt'
+ * - Cloud Storage: 'gs://Bucket/folders/filename.txt'
* string full_path = 3;
@@ -1269,7 +1269,7 @@ public Builder setFullPath(java.lang.String value) {
* A string representation of the full container name.
* Examples:
* - BigQuery: 'Project:DataSetId.TableId'
- * - Google Cloud Storage: 'gs://Bucket/folders/filename.txt'
+ * - Cloud Storage: 'gs://Bucket/folders/filename.txt'
* string full_path = 3;
@@ -1289,7 +1289,7 @@ public Builder clearFullPath() {
* A string representation of the full container name.
* Examples:
* - BigQuery: 'Project:DataSetId.TableId'
- * - Google Cloud Storage: 'gs://Bucket/folders/filename.txt'
+ * - Cloud Storage: 'gs://Bucket/folders/filename.txt'
* string full_path = 3;
@@ -1317,7 +1317,7 @@ public Builder setFullPathBytes(com.google.protobuf.ByteString value) {
* Examples:
* - For BigQuery table `project_id:dataset_id.table_id`, the root is
* `dataset_id`
- * - For Google Cloud Storage file `gs://bucket/folder/filename.txt`, the root
+ * - For Cloud Storage file `gs://bucket/folder/filename.txt`, the root
* is `gs://bucket`
*
- * Findings container modification timestamp, if applicable.
- * For Google Cloud Storage contains last file modification timestamp.
- * For BigQuery table contains last_modified_time property.
- * For Datastore - not populated.
+ * Findings container modification timestamp, if applicable. For Cloud
+ * Storage, this field contains the last file modification timestamp. For a
+ * BigQuery table, this field contains the last_modified_time property. For
+ * Datastore, this field isn't populated.
*
*
* .google.protobuf.Timestamp update_time = 6;
@@ -1597,10 +1597,10 @@ public boolean hasUpdateTime() {
*
*
*
- * Findings container modification timestamp, if applicable.
- * For Google Cloud Storage contains last file modification timestamp.
- * For BigQuery table contains last_modified_time property.
- * For Datastore - not populated.
+ * Findings container modification timestamp, if applicable. For Cloud
+ * Storage, this field contains the last file modification timestamp. For a
+ * BigQuery table, this field contains the last_modified_time property. For
+ * Datastore, this field isn't populated.
*
*
* .google.protobuf.Timestamp update_time = 6;
@@ -1620,10 +1620,10 @@ public com.google.protobuf.Timestamp getUpdateTime() {
*
*
*
- * Findings container modification timestamp, if applicable.
- * For Google Cloud Storage contains last file modification timestamp.
- * For BigQuery table contains last_modified_time property.
- * For Datastore - not populated.
+ * Findings container modification timestamp, if applicable. For Cloud
+ * Storage, this field contains the last file modification timestamp. For a
+ * BigQuery table, this field contains the last_modified_time property. For
+ * Datastore, this field isn't populated.
*
*
* .google.protobuf.Timestamp update_time = 6;
@@ -1645,10 +1645,10 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) {
*
*
*
- * Findings container modification timestamp, if applicable.
- * For Google Cloud Storage contains last file modification timestamp.
- * For BigQuery table contains last_modified_time property.
- * For Datastore - not populated.
+ * Findings container modification timestamp, if applicable. For Cloud
+ * Storage, this field contains the last file modification timestamp. For a
+ * BigQuery table, this field contains the last_modified_time property. For
+ * Datastore, this field isn't populated.
*
*
* .google.protobuf.Timestamp update_time = 6;
@@ -1667,10 +1667,10 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal
*
*
*
- * Findings container modification timestamp, if applicable.
- * For Google Cloud Storage contains last file modification timestamp.
- * For BigQuery table contains last_modified_time property.
- * For Datastore - not populated.
+ * Findings container modification timestamp, if applicable. For Cloud
+ * Storage, this field contains the last file modification timestamp. For a
+ * BigQuery table, this field contains the last_modified_time property. For
+ * Datastore, this field isn't populated.
*
*
* .google.protobuf.Timestamp update_time = 6;
@@ -1694,10 +1694,10 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) {
*
*
*
- * Findings container modification timestamp, if applicable.
- * For Google Cloud Storage contains last file modification timestamp.
- * For BigQuery table contains last_modified_time property.
- * For Datastore - not populated.
+ * Findings container modification timestamp, if applicable. For Cloud
+ * Storage, this field contains the last file modification timestamp. For a
+ * BigQuery table, this field contains the last_modified_time property. For
+ * Datastore, this field isn't populated.
*
*
* .google.protobuf.Timestamp update_time = 6;
@@ -1717,10 +1717,10 @@ public Builder clearUpdateTime() {
*
*
*
- * Findings container modification timestamp, if applicable.
- * For Google Cloud Storage contains last file modification timestamp.
- * For BigQuery table contains last_modified_time property.
- * For Datastore - not populated.
+ * Findings container modification timestamp, if applicable. For Cloud
+ * Storage, this field contains the last file modification timestamp. For a
+ * BigQuery table, this field contains the last_modified_time property. For
+ * Datastore, this field isn't populated.
*
*
* .google.protobuf.Timestamp update_time = 6;
@@ -1734,10 +1734,10 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() {
*
*
*
- * Findings container modification timestamp, if applicable.
- * For Google Cloud Storage contains last file modification timestamp.
- * For BigQuery table contains last_modified_time property.
- * For Datastore - not populated.
+ * Findings container modification timestamp, if applicable. For Cloud
+ * Storage, this field contains the last file modification timestamp. For a
+ * BigQuery table, this field contains the last_modified_time property. For
+ * Datastore, this field isn't populated.
*
*
* .google.protobuf.Timestamp update_time = 6;
@@ -1755,10 +1755,10 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
*
*
*
- * Findings container modification timestamp, if applicable.
- * For Google Cloud Storage contains last file modification timestamp.
- * For BigQuery table contains last_modified_time property.
- * For Datastore - not populated.
+ * Findings container modification timestamp, if applicable. For Cloud
+ * Storage, this field contains the last file modification timestamp. For a
+ * BigQuery table, this field contains the last_modified_time property. For
+ * Datastore, this field isn't populated.
*
*
* .google.protobuf.Timestamp update_time = 6;
@@ -1786,7 +1786,7 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
*
*
* Findings container version, if available
- * ("generation" for Google Cloud Storage).
+ * ("generation" for Cloud Storage).
*
*
* string version = 7;
@@ -1809,7 +1809,7 @@ public java.lang.String getVersion() {
*
*
* Findings container version, if available
- * ("generation" for Google Cloud Storage).
+ * ("generation" for Cloud Storage).
*
*
* string version = 7;
@@ -1832,7 +1832,7 @@ public com.google.protobuf.ByteString getVersionBytes() {
*
*
* Findings container version, if available
- * ("generation" for Google Cloud Storage).
+ * ("generation" for Cloud Storage).
*
*
* string version = 7;
@@ -1854,7 +1854,7 @@ public Builder setVersion(java.lang.String value) {
*
*
* Findings container version, if available
- * ("generation" for Google Cloud Storage).
+ * ("generation" for Cloud Storage).
*
*
* string version = 7;
@@ -1872,7 +1872,7 @@ public Builder clearVersion() {
*
*
* Findings container version, if available
- * ("generation" for Google Cloud Storage).
+ * ("generation" for Cloud Storage).
*
*
* string version = 7;
diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ContainerOrBuilder.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ContainerOrBuilder.java
index 074399ded235..2f36fdba755b 100644
--- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ContainerOrBuilder.java
+++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ContainerOrBuilder.java
@@ -27,7 +27,7 @@ public interface ContainerOrBuilder
*
*
*
- * Container type, for example BigQuery or Google Cloud Storage.
+ * Container type, for example BigQuery or Cloud Storage.
*
*
* string type = 1;
@@ -39,7 +39,7 @@ public interface ContainerOrBuilder
*
*
*
- * Container type, for example BigQuery or Google Cloud Storage.
+ * Container type, for example BigQuery or Cloud Storage.
*
*
* string type = 1;
@@ -82,7 +82,7 @@ public interface ContainerOrBuilder
* A string representation of the full container name.
* Examples:
* - BigQuery: 'Project:DataSetId.TableId'
- * - Google Cloud Storage: 'gs://Bucket/folders/filename.txt'
+ * - Cloud Storage: 'gs://Bucket/folders/filename.txt'
*
*
* string full_path = 3;
@@ -97,7 +97,7 @@ public interface ContainerOrBuilder
* A string representation of the full container name.
* Examples:
* - BigQuery: 'Project:DataSetId.TableId'
- * - Google Cloud Storage: 'gs://Bucket/folders/filename.txt'
+ * - Cloud Storage: 'gs://Bucket/folders/filename.txt'
*
*
* string full_path = 3;
@@ -114,7 +114,7 @@ public interface ContainerOrBuilder
* Examples:
* - For BigQuery table `project_id:dataset_id.table_id`, the root is
* `dataset_id`
- * - For Google Cloud Storage file `gs://bucket/folder/filename.txt`, the root
+ * - For Cloud Storage file `gs://bucket/folder/filename.txt`, the root
* is `gs://bucket`
*
*
@@ -131,7 +131,7 @@ public interface ContainerOrBuilder
* Examples:
* - For BigQuery table `project_id:dataset_id.table_id`, the root is
* `dataset_id`
- * - For Google Cloud Storage file `gs://bucket/folder/filename.txt`, the root
+ * - For Cloud Storage file `gs://bucket/folder/filename.txt`, the root
* is `gs://bucket`
*
*
@@ -149,7 +149,7 @@ public interface ContainerOrBuilder
* Examples:
* - For BigQuery table `project_id:dataset_id.table_id`, the relative path is
* `table_id`
- * - Google Cloud Storage file `gs://bucket/folder/filename.txt`, the relative
+ * - For Cloud Storage file `gs://bucket/folder/filename.txt`, the relative
* path is `folder/filename.txt`
*
*
@@ -166,7 +166,7 @@ public interface ContainerOrBuilder
* Examples:
* - For BigQuery table `project_id:dataset_id.table_id`, the relative path is
* `table_id`
- * - Google Cloud Storage file `gs://bucket/folder/filename.txt`, the relative
+ * - For Cloud Storage file `gs://bucket/folder/filename.txt`, the relative
* path is `folder/filename.txt`
*
*
@@ -180,10 +180,10 @@ public interface ContainerOrBuilder
*
*
*
- * Findings container modification timestamp, if applicable.
- * For Google Cloud Storage contains last file modification timestamp.
- * For BigQuery table contains last_modified_time property.
- * For Datastore - not populated.
+ * Findings container modification timestamp, if applicable. For Cloud
+ * Storage, this field contains the last file modification timestamp. For a
+ * BigQuery table, this field contains the last_modified_time property. For
+ * Datastore, this field isn't populated.
*
*
* .google.protobuf.Timestamp update_time = 6;
@@ -195,10 +195,10 @@ public interface ContainerOrBuilder
*
*
*
- * Findings container modification timestamp, if applicable.
- * For Google Cloud Storage contains last file modification timestamp.
- * For BigQuery table contains last_modified_time property.
- * For Datastore - not populated.
+ * Findings container modification timestamp, if applicable. For Cloud
+ * Storage, this field contains the last file modification timestamp. For a
+ * BigQuery table, this field contains the last_modified_time property. For
+ * Datastore, this field isn't populated.
*
*
* .google.protobuf.Timestamp update_time = 6;
@@ -210,10 +210,10 @@ public interface ContainerOrBuilder
*
*
*
- * Findings container modification timestamp, if applicable.
- * For Google Cloud Storage contains last file modification timestamp.
- * For BigQuery table contains last_modified_time property.
- * For Datastore - not populated.
+ * Findings container modification timestamp, if applicable. For Cloud
+ * Storage, this field contains the last file modification timestamp. For a
+ * BigQuery table, this field contains the last_modified_time property. For
+ * Datastore, this field isn't populated.
*
*
* .google.protobuf.Timestamp update_time = 6;
@@ -225,7 +225,7 @@ public interface ContainerOrBuilder
*
*
* Findings container version, if available
- * ("generation" for Google Cloud Storage).
+ * ("generation" for Cloud Storage).
*
*
* string version = 7;
@@ -238,7 +238,7 @@ public interface ContainerOrBuilder
*
*
* Findings container version, if available
- * ("generation" for Google Cloud Storage).
+ * ("generation" for Cloud Storage).
*
*
* string version = 7;
diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ContentLocation.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ContentLocation.java
index 1786d50d3529..cce9249a75e6 100644
--- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ContentLocation.java
+++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ContentLocation.java
@@ -267,7 +267,7 @@ public LocationCase getLocationCase() {
* * Cloud Storage files: `gs://{bucket}/{path}`
* * Datastore namespace: {namespace}
* Nested names could be absent if the embedded object has no string
- * identifier (for an example an image contained within a document).
+ * identifier (for example, an image contained within a document).
*
*
* string container_name = 1;
@@ -297,7 +297,7 @@ public java.lang.String getContainerName() {
* * Cloud Storage files: `gs://{bucket}/{path}`
* * Datastore namespace: {namespace}
* Nested names could be absent if the embedded object has no string
- * identifier (for an example an image contained within a document).
+ * identifier (for example, an image contained within a document).
*
*
* string container_name = 1;
@@ -527,10 +527,10 @@ public com.google.privacy.dlp.v2.MetadataLocationOrBuilder getMetadataLocationOr
*
*
*
- * Findings container modification timestamp, if applicable.
- * For Google Cloud Storage contains last file modification timestamp.
- * For BigQuery table contains last_modified_time property.
- * For Datastore - not populated.
+ * Finding container modification timestamp, if applicable. For Cloud Storage,
+ * this field contains the last file modification timestamp. For a BigQuery
+ * table, this field contains the last_modified_time property. For Datastore,
+ * this field isn't populated.
*
*
* .google.protobuf.Timestamp container_timestamp = 6;
@@ -545,10 +545,10 @@ public boolean hasContainerTimestamp() {
*
*
*
- * Findings container modification timestamp, if applicable.
- * For Google Cloud Storage contains last file modification timestamp.
- * For BigQuery table contains last_modified_time property.
- * For Datastore - not populated.
+ * Finding container modification timestamp, if applicable. For Cloud Storage,
+ * this field contains the last file modification timestamp. For a BigQuery
+ * table, this field contains the last_modified_time property. For Datastore,
+ * this field isn't populated.
*
*
* .google.protobuf.Timestamp container_timestamp = 6;
@@ -565,10 +565,10 @@ public com.google.protobuf.Timestamp getContainerTimestamp() {
*
*
*
- * Findings container modification timestamp, if applicable.
- * For Google Cloud Storage contains last file modification timestamp.
- * For BigQuery table contains last_modified_time property.
- * For Datastore - not populated.
+ * Finding container modification timestamp, if applicable. For Cloud Storage,
+ * this field contains the last file modification timestamp. For a BigQuery
+ * table, this field contains the last_modified_time property. For Datastore,
+ * this field isn't populated.
*
*
* .google.protobuf.Timestamp container_timestamp = 6;
@@ -584,8 +584,8 @@ public com.google.protobuf.TimestampOrBuilder getContainerTimestampOrBuilder() {
*
*
*
- * Findings container version, if available
- * ("generation" for Google Cloud Storage).
+ * Finding container version, if available
+ * ("generation" for Cloud Storage).
*
*
* string container_version = 7;
@@ -608,8 +608,8 @@ public java.lang.String getContainerVersion() {
*
*
*
- * Findings container version, if available
- * ("generation" for Google Cloud Storage).
+ * Finding container version, if available
+ * ("generation" for Cloud Storage).
*
*
* string container_version = 7;
@@ -1142,7 +1142,7 @@ public Builder clearLocation() {
* * Cloud Storage files: `gs://{bucket}/{path}`
* * Datastore namespace: {namespace}
* Nested names could be absent if the embedded object has no string
- * identifier (for an example an image contained within a document).
+ * identifier (for example, an image contained within a document).
*
*
* string container_name = 1;
@@ -1171,7 +1171,7 @@ public java.lang.String getContainerName() {
* * Cloud Storage files: `gs://{bucket}/{path}`
* * Datastore namespace: {namespace}
* Nested names could be absent if the embedded object has no string
- * identifier (for an example an image contained within a document).
+ * identifier (for example, an image contained within a document).
*
*
* string container_name = 1;
@@ -1200,7 +1200,7 @@ public com.google.protobuf.ByteString getContainerNameBytes() {
* * Cloud Storage files: `gs://{bucket}/{path}`
* * Datastore namespace: {namespace}
* Nested names could be absent if the embedded object has no string
- * identifier (for an example an image contained within a document).
+ * identifier (for example, an image contained within a document).
*
*
* string container_name = 1;
@@ -1228,7 +1228,7 @@ public Builder setContainerName(java.lang.String value) {
* * Cloud Storage files: `gs://{bucket}/{path}`
* * Datastore namespace: {namespace}
* Nested names could be absent if the embedded object has no string
- * identifier (for an example an image contained within a document).
+ * identifier (for example, an image contained within a document).
*
*
* string container_name = 1;
@@ -1252,7 +1252,7 @@ public Builder clearContainerName() {
* * Cloud Storage files: `gs://{bucket}/{path}`
* * Datastore namespace: {namespace}
* Nested names could be absent if the embedded object has no string
- * identifier (for an example an image contained within a document).
+ * identifier (for example, an image contained within a document).
*
*
* string container_name = 1;
@@ -2121,10 +2121,10 @@ public com.google.privacy.dlp.v2.MetadataLocationOrBuilder getMetadataLocationOr
*
*
*
- * Findings container modification timestamp, if applicable.
- * For Google Cloud Storage contains last file modification timestamp.
- * For BigQuery table contains last_modified_time property.
- * For Datastore - not populated.
+ * Finding container modification timestamp, if applicable. For Cloud Storage,
+ * this field contains the last file modification timestamp. For a BigQuery
+ * table, this field contains the last_modified_time property. For Datastore,
+ * this field isn't populated.
*
*
* .google.protobuf.Timestamp container_timestamp = 6;
@@ -2138,10 +2138,10 @@ public boolean hasContainerTimestamp() {
*
*
*
- * Findings container modification timestamp, if applicable.
- * For Google Cloud Storage contains last file modification timestamp.
- * For BigQuery table contains last_modified_time property.
- * For Datastore - not populated.
+ * Finding container modification timestamp, if applicable. For Cloud Storage,
+ * this field contains the last file modification timestamp. For a BigQuery
+ * table, this field contains the last_modified_time property. For Datastore,
+ * this field isn't populated.
*
*
* .google.protobuf.Timestamp container_timestamp = 6;
@@ -2161,10 +2161,10 @@ public com.google.protobuf.Timestamp getContainerTimestamp() {
*
*
*
- * Findings container modification timestamp, if applicable.
- * For Google Cloud Storage contains last file modification timestamp.
- * For BigQuery table contains last_modified_time property.
- * For Datastore - not populated.
+ * Finding container modification timestamp, if applicable. For Cloud Storage,
+ * this field contains the last file modification timestamp. For a BigQuery
+ * table, this field contains the last_modified_time property. For Datastore,
+ * this field isn't populated.
*
*
* .google.protobuf.Timestamp container_timestamp = 6;
@@ -2186,10 +2186,10 @@ public Builder setContainerTimestamp(com.google.protobuf.Timestamp value) {
*
*
*
- * Findings container modification timestamp, if applicable.
- * For Google Cloud Storage contains last file modification timestamp.
- * For BigQuery table contains last_modified_time property.
- * For Datastore - not populated.
+ * Finding container modification timestamp, if applicable. For Cloud Storage,
+ * this field contains the last file modification timestamp. For a BigQuery
+ * table, this field contains the last_modified_time property. For Datastore,
+ * this field isn't populated.
*
*
* .google.protobuf.Timestamp container_timestamp = 6;
@@ -2208,10 +2208,10 @@ public Builder setContainerTimestamp(com.google.protobuf.Timestamp.Builder build
*
*
*
- * Findings container modification timestamp, if applicable.
- * For Google Cloud Storage contains last file modification timestamp.
- * For BigQuery table contains last_modified_time property.
- * For Datastore - not populated.
+ * Finding container modification timestamp, if applicable. For Cloud Storage,
+ * this field contains the last file modification timestamp. For a BigQuery
+ * table, this field contains the last_modified_time property. For Datastore,
+ * this field isn't populated.
*
*
* .google.protobuf.Timestamp container_timestamp = 6;
@@ -2237,10 +2237,10 @@ public Builder mergeContainerTimestamp(com.google.protobuf.Timestamp value) {
*
*
*
- * Findings container modification timestamp, if applicable.
- * For Google Cloud Storage contains last file modification timestamp.
- * For BigQuery table contains last_modified_time property.
- * For Datastore - not populated.
+ * Finding container modification timestamp, if applicable. For Cloud Storage,
+ * this field contains the last file modification timestamp. For a BigQuery
+ * table, this field contains the last_modified_time property. For Datastore,
+ * this field isn't populated.
*
*
* .google.protobuf.Timestamp container_timestamp = 6;
@@ -2260,10 +2260,10 @@ public Builder clearContainerTimestamp() {
*
*
*
- * Findings container modification timestamp, if applicable.
- * For Google Cloud Storage contains last file modification timestamp.
- * For BigQuery table contains last_modified_time property.
- * For Datastore - not populated.
+ * Finding container modification timestamp, if applicable. For Cloud Storage,
+ * this field contains the last file modification timestamp. For a BigQuery
+ * table, this field contains the last_modified_time property. For Datastore,
+ * this field isn't populated.
*
*
* .google.protobuf.Timestamp container_timestamp = 6;
@@ -2277,10 +2277,10 @@ public com.google.protobuf.Timestamp.Builder getContainerTimestampBuilder() {
*
*
*
- * Findings container modification timestamp, if applicable.
- * For Google Cloud Storage contains last file modification timestamp.
- * For BigQuery table contains last_modified_time property.
- * For Datastore - not populated.
+ * Finding container modification timestamp, if applicable. For Cloud Storage,
+ * this field contains the last file modification timestamp. For a BigQuery
+ * table, this field contains the last_modified_time property. For Datastore,
+ * this field isn't populated.
*
*
* .google.protobuf.Timestamp container_timestamp = 6;
@@ -2298,10 +2298,10 @@ public com.google.protobuf.TimestampOrBuilder getContainerTimestampOrBuilder() {
*
*
*
- * Findings container modification timestamp, if applicable.
- * For Google Cloud Storage contains last file modification timestamp.
- * For BigQuery table contains last_modified_time property.
- * For Datastore - not populated.
+ * Finding container modification timestamp, if applicable. For Cloud Storage,
+ * this field contains the last file modification timestamp. For a BigQuery
+ * table, this field contains the last_modified_time property. For Datastore,
+ * this field isn't populated.
*
*
* .google.protobuf.Timestamp container_timestamp = 6;
@@ -2328,8 +2328,8 @@ public com.google.protobuf.TimestampOrBuilder getContainerTimestampOrBuilder() {
*
*
*
- * Findings container version, if available
- * ("generation" for Google Cloud Storage).
+ * Finding container version, if available
+ * ("generation" for Cloud Storage).
*
*
* string container_version = 7;
@@ -2351,8 +2351,8 @@ public java.lang.String getContainerVersion() {
*
*
*
- * Findings container version, if available
- * ("generation" for Google Cloud Storage).
+ * Finding container version, if available
+ * ("generation" for Cloud Storage).
*
*
* string container_version = 7;
@@ -2374,8 +2374,8 @@ public com.google.protobuf.ByteString getContainerVersionBytes() {
*
*
*
- * Findings container version, if available
- * ("generation" for Google Cloud Storage).
+ * Finding container version, if available
+ * ("generation" for Cloud Storage).
*
*
* string container_version = 7;
@@ -2396,8 +2396,8 @@ public Builder setContainerVersion(java.lang.String value) {
*
*
*
- * Findings container version, if available
- * ("generation" for Google Cloud Storage).
+ * Finding container version, if available
+ * ("generation" for Cloud Storage).
*
*
* string container_version = 7;
@@ -2414,8 +2414,8 @@ public Builder clearContainerVersion() {
*
*
*
- * Findings container version, if available
- * ("generation" for Google Cloud Storage).
+ * Finding container version, if available
+ * ("generation" for Cloud Storage).
*
*
* string container_version = 7;
diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ContentLocationOrBuilder.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ContentLocationOrBuilder.java
index d37ce023e872..abe65cc512de 100644
--- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ContentLocationOrBuilder.java
+++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ContentLocationOrBuilder.java
@@ -34,7 +34,7 @@ public interface ContentLocationOrBuilder
* * Cloud Storage files: `gs://{bucket}/{path}`
* * Datastore namespace: {namespace}
* Nested names could be absent if the embedded object has no string
- * identifier (for an example an image contained within a document).
+ * identifier (for example, an image contained within a document).
*
*
* string container_name = 1;
@@ -53,7 +53,7 @@ public interface ContentLocationOrBuilder
* * Cloud Storage files: `gs://{bucket}/{path}`
* * Datastore namespace: {namespace}
* Nested names could be absent if the embedded object has no string
- * identifier (for an example an image contained within a document).
+ * identifier (for example, an image contained within a document).
*
*
* string container_name = 1;
@@ -206,10 +206,10 @@ public interface ContentLocationOrBuilder
*
*
*
- * Findings container modification timestamp, if applicable.
- * For Google Cloud Storage contains last file modification timestamp.
- * For BigQuery table contains last_modified_time property.
- * For Datastore - not populated.
+ * Finding container modification timestamp, if applicable. For Cloud Storage,
+ * this field contains the last file modification timestamp. For a BigQuery
+ * table, this field contains the last_modified_time property. For Datastore,
+ * this field isn't populated.
*
*
* .google.protobuf.Timestamp container_timestamp = 6;
@@ -221,10 +221,10 @@ public interface ContentLocationOrBuilder
*
*
*
- * Findings container modification timestamp, if applicable.
- * For Google Cloud Storage contains last file modification timestamp.
- * For BigQuery table contains last_modified_time property.
- * For Datastore - not populated.
+ * Finding container modification timestamp, if applicable. For Cloud Storage,
+ * this field contains the last file modification timestamp. For a BigQuery
+ * table, this field contains the last_modified_time property. For Datastore,
+ * this field isn't populated.
*
*
* .google.protobuf.Timestamp container_timestamp = 6;
@@ -236,10 +236,10 @@ public interface ContentLocationOrBuilder
*
*
*
- * Findings container modification timestamp, if applicable.
- * For Google Cloud Storage contains last file modification timestamp.
- * For BigQuery table contains last_modified_time property.
- * For Datastore - not populated.
+ * Finding container modification timestamp, if applicable. For Cloud Storage,
+ * this field contains the last file modification timestamp. For a BigQuery
+ * table, this field contains the last_modified_time property. For Datastore,
+ * this field isn't populated.
*
*
* .google.protobuf.Timestamp container_timestamp = 6;
@@ -250,8 +250,8 @@ public interface ContentLocationOrBuilder
*
*
*
- * Findings container version, if available
- * ("generation" for Google Cloud Storage).
+ * Finding container version, if available
+ * ("generation" for Cloud Storage).
*
*
* string container_version = 7;
@@ -263,8 +263,8 @@ public interface ContentLocationOrBuilder
*
*
*
- * Findings container version, if available
- * ("generation" for Google Cloud Storage).
+ * Finding container version, if available
+ * ("generation" for Cloud Storage).
*
*
* string container_version = 7;
diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ContentOption.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ContentOption.java
index 488026585aac..c0467b3d4802 100644
--- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ContentOption.java
+++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ContentOption.java
@@ -151,7 +151,7 @@ public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType
}
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
- return com.google.privacy.dlp.v2.DlpProto.getDescriptor().getEnumTypes().get(2);
+ return com.google.privacy.dlp.v2.DlpProto.getDescriptor().getEnumTypes().get(5);
}
private static final ContentOption[] VALUES = values();
diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CryptoDeterministicConfig.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CryptoDeterministicConfig.java
index cbd4989b0904..a81ae48583fa 100644
--- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CryptoDeterministicConfig.java
+++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CryptoDeterministicConfig.java
@@ -348,7 +348,7 @@ public com.google.privacy.dlp.v2.InfoTypeOrBuilder getSurrogateInfoTypeOrBuilder
* 2. the field is not present when transforming a given value,
* plaintext would be used as is for encryption.
* Note that case (1) is expected when an `InfoTypeTransformation` is
- * applied to both structured and non-structured `ContentItem`s.
+ * applied to both structured and unstructured `ContentItem`s.
*
*
* .google.privacy.dlp.v2.FieldId context = 3;
@@ -376,7 +376,7 @@ public boolean hasContext() {
* 2. the field is not present when transforming a given value,
* plaintext would be used as is for encryption.
* Note that case (1) is expected when an `InfoTypeTransformation` is
- * applied to both structured and non-structured `ContentItem`s.
+ * applied to both structured and unstructured `ContentItem`s.
*
*
* .google.privacy.dlp.v2.FieldId context = 3;
@@ -404,7 +404,7 @@ public com.google.privacy.dlp.v2.FieldId getContext() {
* 2. the field is not present when transforming a given value,
* plaintext would be used as is for encryption.
* Note that case (1) is expected when an `InfoTypeTransformation` is
- * applied to both structured and non-structured `ContentItem`s.
+ * applied to both structured and unstructured `ContentItem`s.
*
*
* .google.privacy.dlp.v2.FieldId context = 3;
@@ -1439,7 +1439,7 @@ public com.google.privacy.dlp.v2.InfoTypeOrBuilder getSurrogateInfoTypeOrBuilder
* 2. the field is not present when transforming a given value,
* plaintext would be used as is for encryption.
* Note that case (1) is expected when an `InfoTypeTransformation` is
- * applied to both structured and non-structured `ContentItem`s.
+ * applied to both structured and unstructured `ContentItem`s.
*
*
* .google.privacy.dlp.v2.FieldId context = 3;
@@ -1466,7 +1466,7 @@ public boolean hasContext() {
* 2. the field is not present when transforming a given value,
* plaintext would be used as is for encryption.
* Note that case (1) is expected when an `InfoTypeTransformation` is
- * applied to both structured and non-structured `ContentItem`s.
+ * applied to both structured and unstructured `ContentItem`s.
*
*
* .google.privacy.dlp.v2.FieldId context = 3;
@@ -1497,7 +1497,7 @@ public com.google.privacy.dlp.v2.FieldId getContext() {
* 2. the field is not present when transforming a given value,
* plaintext would be used as is for encryption.
* Note that case (1) is expected when an `InfoTypeTransformation` is
- * applied to both structured and non-structured `ContentItem`s.
+ * applied to both structured and unstructured `ContentItem`s.
*
*
* .google.privacy.dlp.v2.FieldId context = 3;
@@ -1532,7 +1532,7 @@ public Builder setContext(com.google.privacy.dlp.v2.FieldId value) {
* 2. the field is not present when transforming a given value,
* plaintext would be used as is for encryption.
* Note that case (1) is expected when an `InfoTypeTransformation` is
- * applied to both structured and non-structured `ContentItem`s.
+ * applied to both structured and unstructured `ContentItem`s.
*
*
* .google.privacy.dlp.v2.FieldId context = 3;
@@ -1564,7 +1564,7 @@ public Builder setContext(com.google.privacy.dlp.v2.FieldId.Builder builderForVa
* 2. the field is not present when transforming a given value,
* plaintext would be used as is for encryption.
* Note that case (1) is expected when an `InfoTypeTransformation` is
- * applied to both structured and non-structured `ContentItem`s.
+ * applied to both structured and unstructured `ContentItem`s.
*
*
* .google.privacy.dlp.v2.FieldId context = 3;
@@ -1603,7 +1603,7 @@ public Builder mergeContext(com.google.privacy.dlp.v2.FieldId value) {
* 2. the field is not present when transforming a given value,
* plaintext would be used as is for encryption.
* Note that case (1) is expected when an `InfoTypeTransformation` is
- * applied to both structured and non-structured `ContentItem`s.
+ * applied to both structured and unstructured `ContentItem`s.
*
*
* .google.privacy.dlp.v2.FieldId context = 3;
@@ -1636,7 +1636,7 @@ public Builder clearContext() {
* 2. the field is not present when transforming a given value,
* plaintext would be used as is for encryption.
* Note that case (1) is expected when an `InfoTypeTransformation` is
- * applied to both structured and non-structured `ContentItem`s.
+ * applied to both structured and unstructured `ContentItem`s.
*
*
* .google.privacy.dlp.v2.FieldId context = 3;
@@ -1663,7 +1663,7 @@ public com.google.privacy.dlp.v2.FieldId.Builder getContextBuilder() {
* 2. the field is not present when transforming a given value,
* plaintext would be used as is for encryption.
* Note that case (1) is expected when an `InfoTypeTransformation` is
- * applied to both structured and non-structured `ContentItem`s.
+ * applied to both structured and unstructured `ContentItem`s.
*
*
* .google.privacy.dlp.v2.FieldId context = 3;
@@ -1692,7 +1692,7 @@ public com.google.privacy.dlp.v2.FieldIdOrBuilder getContextOrBuilder() {
* 2. the field is not present when transforming a given value,
* plaintext would be used as is for encryption.
* Note that case (1) is expected when an `InfoTypeTransformation` is
- * applied to both structured and non-structured `ContentItem`s.
+ * applied to both structured and unstructured `ContentItem`s.
*
*
* .google.privacy.dlp.v2.FieldId context = 3;
diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CryptoDeterministicConfigOrBuilder.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CryptoDeterministicConfigOrBuilder.java
index 14513ed46188..b3f77dd315c2 100644
--- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CryptoDeterministicConfigOrBuilder.java
+++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CryptoDeterministicConfigOrBuilder.java
@@ -191,7 +191,7 @@ public interface CryptoDeterministicConfigOrBuilder
* 2. the field is not present when transforming a given value,
* plaintext would be used as is for encryption.
* Note that case (1) is expected when an `InfoTypeTransformation` is
- * applied to both structured and non-structured `ContentItem`s.
+ * applied to both structured and unstructured `ContentItem`s.
*
*
* .google.privacy.dlp.v2.FieldId context = 3;
@@ -216,7 +216,7 @@ public interface CryptoDeterministicConfigOrBuilder
* 2. the field is not present when transforming a given value,
* plaintext would be used as is for encryption.
* Note that case (1) is expected when an `InfoTypeTransformation` is
- * applied to both structured and non-structured `ContentItem`s.
+ * applied to both structured and unstructured `ContentItem`s.
*
*
* .google.privacy.dlp.v2.FieldId context = 3;
@@ -241,7 +241,7 @@ public interface CryptoDeterministicConfigOrBuilder
* 2. the field is not present when transforming a given value,
* plaintext would be used as is for encryption.
* Note that case (1) is expected when an `InfoTypeTransformation` is
- * applied to both structured and non-structured `ContentItem`s.
+ * applied to both structured and unstructured `ContentItem`s.
*
*
* .google.privacy.dlp.v2.FieldId context = 3;
diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CryptoReplaceFfxFpeConfig.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CryptoReplaceFfxFpeConfig.java
index dcfeb5fb4e2b..d01d1f7be93c 100644
--- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CryptoReplaceFfxFpeConfig.java
+++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CryptoReplaceFfxFpeConfig.java
@@ -187,7 +187,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
* These are commonly used subsets of the alphabet that the FFX mode
* natively supports. In the algorithm, the alphabet is selected using
- * the "radix". Therefore each corresponds to particular radix.
+ * the "radix". Therefore each corresponds to a particular radix.
*
*
* Protobuf enum {@code google.privacy.dlp.v2.CryptoReplaceFfxFpeConfig.FfxCommonNativeAlphabet}
@@ -507,7 +507,7 @@ public com.google.privacy.dlp.v2.CryptoKeyOrBuilder getCryptoKeyOrBuilder() {
* 1. the field is not present when transforming a given value,
* a default tweak will be used.
* Note that case (1) is expected when an `InfoTypeTransformation` is
- * applied to both structured and non-structured `ContentItem`s.
+ * applied to both structured and unstructured `ContentItem`s.
* Currently, the referenced field may be of value type integer or string.
* The tweak is constructed as a sequence of bytes in big endian byte order
* such that:
@@ -535,7 +535,7 @@ public boolean hasContext() {
* 1. the field is not present when transforming a given value,
* a default tweak will be used.
* Note that case (1) is expected when an `InfoTypeTransformation` is
- * applied to both structured and non-structured `ContentItem`s.
+ * applied to both structured and unstructured `ContentItem`s.
* Currently, the referenced field may be of value type integer or string.
* The tweak is constructed as a sequence of bytes in big endian byte order
* such that:
@@ -563,7 +563,7 @@ public com.google.privacy.dlp.v2.FieldId getContext() {
* 1. the field is not present when transforming a given value,
* a default tweak will be used.
* Note that case (1) is expected when an `InfoTypeTransformation` is
- * applied to both structured and non-structured `ContentItem`s.
+ * applied to both structured and unstructured `ContentItem`s.
* Currently, the referenced field may be of value type integer or string.
* The tweak is constructed as a sequence of bytes in big endian byte order
* such that:
@@ -1603,7 +1603,7 @@ public com.google.privacy.dlp.v2.CryptoKeyOrBuilder getCryptoKeyOrBuilder() {
* 1. the field is not present when transforming a given value,
* a default tweak will be used.
* Note that case (1) is expected when an `InfoTypeTransformation` is
- * applied to both structured and non-structured `ContentItem`s.
+ * applied to both structured and unstructured `ContentItem`s.
* Currently, the referenced field may be of value type integer or string.
* The tweak is constructed as a sequence of bytes in big endian byte order
* such that:
@@ -1630,7 +1630,7 @@ public boolean hasContext() {
* 1. the field is not present when transforming a given value,
* a default tweak will be used.
* Note that case (1) is expected when an `InfoTypeTransformation` is
- * applied to both structured and non-structured `ContentItem`s.
+ * applied to both structured and unstructured `ContentItem`s.
* Currently, the referenced field may be of value type integer or string.
* The tweak is constructed as a sequence of bytes in big endian byte order
* such that:
@@ -1661,7 +1661,7 @@ public com.google.privacy.dlp.v2.FieldId getContext() {
* 1. the field is not present when transforming a given value,
* a default tweak will be used.
* Note that case (1) is expected when an `InfoTypeTransformation` is
- * applied to both structured and non-structured `ContentItem`s.
+ * applied to both structured and unstructured `ContentItem`s.
* Currently, the referenced field may be of value type integer or string.
* The tweak is constructed as a sequence of bytes in big endian byte order
* such that:
@@ -1696,7 +1696,7 @@ public Builder setContext(com.google.privacy.dlp.v2.FieldId value) {
* 1. the field is not present when transforming a given value,
* a default tweak will be used.
* Note that case (1) is expected when an `InfoTypeTransformation` is
- * applied to both structured and non-structured `ContentItem`s.
+ * applied to both structured and unstructured `ContentItem`s.
* Currently, the referenced field may be of value type integer or string.
* The tweak is constructed as a sequence of bytes in big endian byte order
* such that:
@@ -1728,7 +1728,7 @@ public Builder setContext(com.google.privacy.dlp.v2.FieldId.Builder builderForVa
* 1. the field is not present when transforming a given value,
* a default tweak will be used.
* Note that case (1) is expected when an `InfoTypeTransformation` is
- * applied to both structured and non-structured `ContentItem`s.
+ * applied to both structured and unstructured `ContentItem`s.
* Currently, the referenced field may be of value type integer or string.
* The tweak is constructed as a sequence of bytes in big endian byte order
* such that:
@@ -1767,7 +1767,7 @@ public Builder mergeContext(com.google.privacy.dlp.v2.FieldId value) {
* 1. the field is not present when transforming a given value,
* a default tweak will be used.
* Note that case (1) is expected when an `InfoTypeTransformation` is
- * applied to both structured and non-structured `ContentItem`s.
+ * applied to both structured and unstructured `ContentItem`s.
* Currently, the referenced field may be of value type integer or string.
* The tweak is constructed as a sequence of bytes in big endian byte order
* such that:
@@ -1800,7 +1800,7 @@ public Builder clearContext() {
* 1. the field is not present when transforming a given value,
* a default tweak will be used.
* Note that case (1) is expected when an `InfoTypeTransformation` is
- * applied to both structured and non-structured `ContentItem`s.
+ * applied to both structured and unstructured `ContentItem`s.
* Currently, the referenced field may be of value type integer or string.
* The tweak is constructed as a sequence of bytes in big endian byte order
* such that:
@@ -1827,7 +1827,7 @@ public com.google.privacy.dlp.v2.FieldId.Builder getContextBuilder() {
* 1. the field is not present when transforming a given value,
* a default tweak will be used.
* Note that case (1) is expected when an `InfoTypeTransformation` is
- * applied to both structured and non-structured `ContentItem`s.
+ * applied to both structured and unstructured `ContentItem`s.
* Currently, the referenced field may be of value type integer or string.
* The tweak is constructed as a sequence of bytes in big endian byte order
* such that:
@@ -1856,7 +1856,7 @@ public com.google.privacy.dlp.v2.FieldIdOrBuilder getContextOrBuilder() {
* 1. the field is not present when transforming a given value,
* a default tweak will be used.
* Note that case (1) is expected when an `InfoTypeTransformation` is
- * applied to both structured and non-structured `ContentItem`s.
+ * applied to both structured and unstructured `ContentItem`s.
* Currently, the referenced field may be of value type integer or string.
* The tweak is constructed as a sequence of bytes in big endian byte order
* such that:
diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CryptoReplaceFfxFpeConfigOrBuilder.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CryptoReplaceFfxFpeConfigOrBuilder.java
index 0241d7e2c465..247e097361d8 100644
--- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CryptoReplaceFfxFpeConfigOrBuilder.java
+++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CryptoReplaceFfxFpeConfigOrBuilder.java
@@ -76,7 +76,7 @@ public interface CryptoReplaceFfxFpeConfigOrBuilder
* 1. the field is not present when transforming a given value,
* a default tweak will be used.
* Note that case (1) is expected when an `InfoTypeTransformation` is
- * applied to both structured and non-structured `ContentItem`s.
+ * applied to both structured and unstructured `ContentItem`s.
* Currently, the referenced field may be of value type integer or string.
* The tweak is constructed as a sequence of bytes in big endian byte order
* such that:
@@ -101,7 +101,7 @@ public interface CryptoReplaceFfxFpeConfigOrBuilder
* 1. the field is not present when transforming a given value,
* a default tweak will be used.
* Note that case (1) is expected when an `InfoTypeTransformation` is
- * applied to both structured and non-structured `ContentItem`s.
+ * applied to both structured and unstructured `ContentItem`s.
* Currently, the referenced field may be of value type integer or string.
* The tweak is constructed as a sequence of bytes in big endian byte order
* such that:
@@ -126,7 +126,7 @@ public interface CryptoReplaceFfxFpeConfigOrBuilder
* 1. the field is not present when transforming a given value,
* a default tweak will be used.
* Note that case (1) is expected when an `InfoTypeTransformation` is
- * applied to both structured and non-structured `ContentItem`s.
+ * applied to both structured and unstructured `ContentItem`s.
* Currently, the referenced field may be of value type integer or string.
* The tweak is constructed as a sequence of bytes in big endian byte order
* such that:
diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DataProfilePubSubCondition.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DataProfilePubSubCondition.java
index 6f1148727f5d..3104aa0edae5 100644
--- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DataProfilePubSubCondition.java
+++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DataProfilePubSubCondition.java
@@ -22,7 +22,7 @@
*
*
*
- * A condition for determining whether a PubSub should be triggered.
+ * A condition for determining whether a Pub/Sub should be triggered.
*
*
* Protobuf type {@code google.privacy.dlp.v2.DataProfilePubSubCondition}
@@ -3074,7 +3074,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
*
- * A condition for determining whether a PubSub should be triggered.
+ * A condition for determining whether a Pub/Sub should be triggered.
*
*
* Protobuf type {@code google.privacy.dlp.v2.DataProfilePubSubCondition}
diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DataProfilePubSubMessage.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DataProfilePubSubMessage.java
index 4a9bade75398..3c5e18c3da07 100644
--- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DataProfilePubSubMessage.java
+++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DataProfilePubSubMessage.java
@@ -22,10 +22,9 @@
*
*
*
- * The message that will be published to a Pub/Sub topic.
+ * Pub/Sub topic message for a DataProfileAction.PubSubNotification event.
* To receive a message of protocol buffer schema type, convert the message data
* to an object of this proto class.
- * https://cloud.google.com/pubsub/docs/samples/pubsub-subscribe-proto-messages
*
*
* Protobuf type {@code google.privacy.dlp.v2.DataProfilePubSubMessage}
@@ -405,10 +404,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
*
- * The message that will be published to a Pub/Sub topic.
+ * Pub/Sub topic message for a DataProfileAction.PubSubNotification event.
* To receive a message of protocol buffer schema type, convert the message data
* to an object of this proto class.
- * https://cloud.google.com/pubsub/docs/samples/pubsub-subscribe-proto-messages
*
*
* Protobuf type {@code google.privacy.dlp.v2.DataProfilePubSubMessage}
diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DataRiskLevel.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DataRiskLevel.java
index 1a147062d7c9..db7248c2d07d 100644
--- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DataRiskLevel.java
+++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DataRiskLevel.java
@@ -23,7 +23,7 @@
*
*
* Score is a summary of all elements in the data profile.
- * A higher number means more risky.
+ * A higher number means more risk.
*
*
* Protobuf type {@code google.privacy.dlp.v2.DataRiskLevel}
@@ -151,8 +151,8 @@ public enum DataRiskLevelScore implements com.google.protobuf.ProtocolMessageEnu
*
*
* Medium risk - Sensitive data may be present but additional access or fine
- * grain access restrictions appears to be present. Consider limiting
- * access even further or transforming data to mask.
+ * grain access restrictions appear to be present. Consider limiting
+ * access even further or transform data to mask.
*
*
* RISK_MODERATE = 20;
@@ -200,8 +200,8 @@ public enum DataRiskLevelScore implements com.google.protobuf.ProtocolMessageEnu
*
*
* Medium risk - Sensitive data may be present but additional access or fine
- * grain access restrictions appears to be present. Consider limiting
- * access even further or transforming data to mask.
+ * grain access restrictions appear to be present. Consider limiting
+ * access even further or transform data to mask.
*
*
* RISK_MODERATE = 20;
@@ -513,7 +513,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
* Score is a summary of all elements in the data profile.
- * A higher number means more risky.
+ * A higher number means more risk.
*
*
* Protobuf type {@code google.privacy.dlp.v2.DataRiskLevel}
diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DeidentifyConfig.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DeidentifyConfig.java
index 05886c944899..8af0b3eaf841 100644
--- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DeidentifyConfig.java
+++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DeidentifyConfig.java
@@ -121,6 +121,24 @@ private DeidentifyConfig(
transformationErrorHandling_ = subBuilder.buildPartial();
}
+ break;
+ }
+ case 34:
+ {
+ com.google.privacy.dlp.v2.ImageTransformations.Builder subBuilder = null;
+ if (transformationCase_ == 4) {
+ subBuilder =
+ ((com.google.privacy.dlp.v2.ImageTransformations) transformation_).toBuilder();
+ }
+ transformation_ =
+ input.readMessage(
+ com.google.privacy.dlp.v2.ImageTransformations.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(
+ (com.google.privacy.dlp.v2.ImageTransformations) transformation_);
+ transformation_ = subBuilder.buildPartial();
+ }
+ transformationCase_ = 4;
break;
}
default:
@@ -168,6 +186,7 @@ public enum TransformationCase
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
INFO_TYPE_TRANSFORMATIONS(1),
RECORD_TRANSFORMATIONS(2),
+ IMAGE_TRANSFORMATIONS(4),
TRANSFORMATION_NOT_SET(0);
private final int value;
@@ -190,6 +209,8 @@ public static TransformationCase forNumber(int value) {
return INFO_TYPE_TRANSFORMATIONS;
case 2:
return RECORD_TRANSFORMATIONS;
+ case 4:
+ return IMAGE_TRANSFORMATIONS;
case 0:
return TRANSFORMATION_NOT_SET;
default:
@@ -319,6 +340,58 @@ public com.google.privacy.dlp.v2.RecordTransformations getRecordTransformations(
return com.google.privacy.dlp.v2.RecordTransformations.getDefaultInstance();
}
+ public static final int IMAGE_TRANSFORMATIONS_FIELD_NUMBER = 4;
+ /**
+ *
+ *
+ *
+ * Treat the dataset as an image and redact.
+ *
+ *
+ * .google.privacy.dlp.v2.ImageTransformations image_transformations = 4;
+ *
+ * @return Whether the imageTransformations field is set.
+ */
+ @java.lang.Override
+ public boolean hasImageTransformations() {
+ return transformationCase_ == 4;
+ }
+ /**
+ *
+ *
+ *
+ * Treat the dataset as an image and redact.
+ *
+ *
+ * .google.privacy.dlp.v2.ImageTransformations image_transformations = 4;
+ *
+ * @return The imageTransformations.
+ */
+ @java.lang.Override
+ public com.google.privacy.dlp.v2.ImageTransformations getImageTransformations() {
+ if (transformationCase_ == 4) {
+ return (com.google.privacy.dlp.v2.ImageTransformations) transformation_;
+ }
+ return com.google.privacy.dlp.v2.ImageTransformations.getDefaultInstance();
+ }
+ /**
+ *
+ *
+ *
+ * Treat the dataset as an image and redact.
+ *
+ *
+ * .google.privacy.dlp.v2.ImageTransformations image_transformations = 4;
+ */
+ @java.lang.Override
+ public com.google.privacy.dlp.v2.ImageTransformationsOrBuilder
+ getImageTransformationsOrBuilder() {
+ if (transformationCase_ == 4) {
+ return (com.google.privacy.dlp.v2.ImageTransformations) transformation_;
+ }
+ return com.google.privacy.dlp.v2.ImageTransformations.getDefaultInstance();
+ }
+
public static final int TRANSFORMATION_ERROR_HANDLING_FIELD_NUMBER = 3;
private com.google.privacy.dlp.v2.TransformationErrorHandling transformationErrorHandling_;
/**
@@ -397,6 +470,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (transformationErrorHandling_ != null) {
output.writeMessage(3, getTransformationErrorHandling());
}
+ if (transformationCase_ == 4) {
+ output.writeMessage(4, (com.google.privacy.dlp.v2.ImageTransformations) transformation_);
+ }
unknownFields.writeTo(output);
}
@@ -421,6 +497,11 @@ public int getSerializedSize() {
com.google.protobuf.CodedOutputStream.computeMessageSize(
3, getTransformationErrorHandling());
}
+ if (transformationCase_ == 4) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 4, (com.google.privacy.dlp.v2.ImageTransformations) transformation_);
+ }
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
@@ -450,6 +531,9 @@ public boolean equals(final java.lang.Object obj) {
case 2:
if (!getRecordTransformations().equals(other.getRecordTransformations())) return false;
break;
+ case 4:
+ if (!getImageTransformations().equals(other.getImageTransformations())) return false;
+ break;
case 0:
default:
}
@@ -477,6 +561,10 @@ public int hashCode() {
hash = (37 * hash) + RECORD_TRANSFORMATIONS_FIELD_NUMBER;
hash = (53 * hash) + getRecordTransformations().hashCode();
break;
+ case 4:
+ hash = (37 * hash) + IMAGE_TRANSFORMATIONS_FIELD_NUMBER;
+ hash = (53 * hash) + getImageTransformations().hashCode();
+ break;
case 0:
default:
}
@@ -674,6 +762,13 @@ public com.google.privacy.dlp.v2.DeidentifyConfig buildPartial() {
result.transformation_ = recordTransformationsBuilder_.build();
}
}
+ if (transformationCase_ == 4) {
+ if (imageTransformationsBuilder_ == null) {
+ result.transformation_ = transformation_;
+ } else {
+ result.transformation_ = imageTransformationsBuilder_.build();
+ }
+ }
if (transformationErrorHandlingBuilder_ == null) {
result.transformationErrorHandling_ = transformationErrorHandling_;
} else {
@@ -743,6 +838,11 @@ public Builder mergeFrom(com.google.privacy.dlp.v2.DeidentifyConfig other) {
mergeRecordTransformations(other.getRecordTransformations());
break;
}
+ case IMAGE_TRANSFORMATIONS:
+ {
+ mergeImageTransformations(other.getImageTransformations());
+ break;
+ }
case TRANSFORMATION_NOT_SET:
{
break;
@@ -1247,6 +1347,218 @@ public Builder clearRecordTransformations() {
return recordTransformationsBuilder_;
}
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.privacy.dlp.v2.ImageTransformations,
+ com.google.privacy.dlp.v2.ImageTransformations.Builder,
+ com.google.privacy.dlp.v2.ImageTransformationsOrBuilder>
+ imageTransformationsBuilder_;
+ /**
+ *
+ *
+ *
+ * Treat the dataset as an image and redact.
+ *
+ *
+ * .google.privacy.dlp.v2.ImageTransformations image_transformations = 4;
+ *
+ * @return Whether the imageTransformations field is set.
+ */
+ @java.lang.Override
+ public boolean hasImageTransformations() {
+ return transformationCase_ == 4;
+ }
+ /**
+ *
+ *
+ *
+ * Treat the dataset as an image and redact.
+ *
+ *
+ * .google.privacy.dlp.v2.ImageTransformations image_transformations = 4;
+ *
+ * @return The imageTransformations.
+ */
+ @java.lang.Override
+ public com.google.privacy.dlp.v2.ImageTransformations getImageTransformations() {
+ if (imageTransformationsBuilder_ == null) {
+ if (transformationCase_ == 4) {
+ return (com.google.privacy.dlp.v2.ImageTransformations) transformation_;
+ }
+ return com.google.privacy.dlp.v2.ImageTransformations.getDefaultInstance();
+ } else {
+ if (transformationCase_ == 4) {
+ return imageTransformationsBuilder_.getMessage();
+ }
+ return com.google.privacy.dlp.v2.ImageTransformations.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Treat the dataset as an image and redact.
+ *
+ *
+ * .google.privacy.dlp.v2.ImageTransformations image_transformations = 4;
+ */
+ public Builder setImageTransformations(com.google.privacy.dlp.v2.ImageTransformations value) {
+ if (imageTransformationsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ transformation_ = value;
+ onChanged();
+ } else {
+ imageTransformationsBuilder_.setMessage(value);
+ }
+ transformationCase_ = 4;
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Treat the dataset as an image and redact.
+ *
+ *
+ * .google.privacy.dlp.v2.ImageTransformations image_transformations = 4;
+ */
+ public Builder setImageTransformations(
+ com.google.privacy.dlp.v2.ImageTransformations.Builder builderForValue) {
+ if (imageTransformationsBuilder_ == null) {
+ transformation_ = builderForValue.build();
+ onChanged();
+ } else {
+ imageTransformationsBuilder_.setMessage(builderForValue.build());
+ }
+ transformationCase_ = 4;
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Treat the dataset as an image and redact.
+ *
+ *
+ * .google.privacy.dlp.v2.ImageTransformations image_transformations = 4;
+ */
+ public Builder mergeImageTransformations(com.google.privacy.dlp.v2.ImageTransformations value) {
+ if (imageTransformationsBuilder_ == null) {
+ if (transformationCase_ == 4
+ && transformation_
+ != com.google.privacy.dlp.v2.ImageTransformations.getDefaultInstance()) {
+ transformation_ =
+ com.google.privacy.dlp.v2.ImageTransformations.newBuilder(
+ (com.google.privacy.dlp.v2.ImageTransformations) transformation_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ transformation_ = value;
+ }
+ onChanged();
+ } else {
+ if (transformationCase_ == 4) {
+ imageTransformationsBuilder_.mergeFrom(value);
+ } else {
+ imageTransformationsBuilder_.setMessage(value);
+ }
+ }
+ transformationCase_ = 4;
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Treat the dataset as an image and redact.
+ *
+ *
+ * .google.privacy.dlp.v2.ImageTransformations image_transformations = 4;
+ */
+ public Builder clearImageTransformations() {
+ if (imageTransformationsBuilder_ == null) {
+ if (transformationCase_ == 4) {
+ transformationCase_ = 0;
+ transformation_ = null;
+ onChanged();
+ }
+ } else {
+ if (transformationCase_ == 4) {
+ transformationCase_ = 0;
+ transformation_ = null;
+ }
+ imageTransformationsBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Treat the dataset as an image and redact.
+ *
+ *
+ * .google.privacy.dlp.v2.ImageTransformations image_transformations = 4;
+ */
+ public com.google.privacy.dlp.v2.ImageTransformations.Builder getImageTransformationsBuilder() {
+ return getImageTransformationsFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ *
+ * Treat the dataset as an image and redact.
+ *
+ *
+ * .google.privacy.dlp.v2.ImageTransformations image_transformations = 4;
+ */
+ @java.lang.Override
+ public com.google.privacy.dlp.v2.ImageTransformationsOrBuilder
+ getImageTransformationsOrBuilder() {
+ if ((transformationCase_ == 4) && (imageTransformationsBuilder_ != null)) {
+ return imageTransformationsBuilder_.getMessageOrBuilder();
+ } else {
+ if (transformationCase_ == 4) {
+ return (com.google.privacy.dlp.v2.ImageTransformations) transformation_;
+ }
+ return com.google.privacy.dlp.v2.ImageTransformations.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Treat the dataset as an image and redact.
+ *
+ *
+ * .google.privacy.dlp.v2.ImageTransformations image_transformations = 4;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.privacy.dlp.v2.ImageTransformations,
+ com.google.privacy.dlp.v2.ImageTransformations.Builder,
+ com.google.privacy.dlp.v2.ImageTransformationsOrBuilder>
+ getImageTransformationsFieldBuilder() {
+ if (imageTransformationsBuilder_ == null) {
+ if (!(transformationCase_ == 4)) {
+ transformation_ = com.google.privacy.dlp.v2.ImageTransformations.getDefaultInstance();
+ }
+ imageTransformationsBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.privacy.dlp.v2.ImageTransformations,
+ com.google.privacy.dlp.v2.ImageTransformations.Builder,
+ com.google.privacy.dlp.v2.ImageTransformationsOrBuilder>(
+ (com.google.privacy.dlp.v2.ImageTransformations) transformation_,
+ getParentForChildren(),
+ isClean());
+ transformation_ = null;
+ }
+ transformationCase_ = 4;
+ onChanged();
+ ;
+ return imageTransformationsBuilder_;
+ }
+
private com.google.privacy.dlp.v2.TransformationErrorHandling transformationErrorHandling_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.privacy.dlp.v2.TransformationErrorHandling,
diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DeidentifyConfigOrBuilder.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DeidentifyConfigOrBuilder.java
index c9640fb9a89b..6822488a342c 100644
--- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DeidentifyConfigOrBuilder.java
+++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DeidentifyConfigOrBuilder.java
@@ -102,6 +102,41 @@ public interface DeidentifyConfigOrBuilder
*/
com.google.privacy.dlp.v2.RecordTransformationsOrBuilder getRecordTransformationsOrBuilder();
+ /**
+ *
+ *
+ *
+ * Treat the dataset as an image and redact.
+ *
+ *
+ * .google.privacy.dlp.v2.ImageTransformations image_transformations = 4;
+ *
+ * @return Whether the imageTransformations field is set.
+ */
+ boolean hasImageTransformations();
+ /**
+ *
+ *
+ *
+ * Treat the dataset as an image and redact.
+ *
+ *
+ * .google.privacy.dlp.v2.ImageTransformations image_transformations = 4;
+ *
+ * @return The imageTransformations.
+ */
+ com.google.privacy.dlp.v2.ImageTransformations getImageTransformations();
+ /**
+ *
+ *
+ *
+ * Treat the dataset as an image and redact.
+ *
+ *
+ * .google.privacy.dlp.v2.ImageTransformations image_transformations = 4;
+ */
+ com.google.privacy.dlp.v2.ImageTransformationsOrBuilder getImageTransformationsOrBuilder();
+
/**
*
*
diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DeidentifyContentRequest.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DeidentifyContentRequest.java
index d1a5e84c6762..82658168c317 100644
--- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DeidentifyContentRequest.java
+++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DeidentifyContentRequest.java
@@ -22,7 +22,7 @@
*
*
*
- * Request to de-identify a list of items.
+ * Request to de-identify a ContentItem.
*
*
* Protobuf type {@code google.privacy.dlp.v2.DeidentifyContentRequest}
@@ -805,7 +805,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
*
- * Request to de-identify a list of items.
+ * Request to de-identify a ContentItem.
*
*
* Protobuf type {@code google.privacy.dlp.v2.DeidentifyContentRequest}
diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DlpJob.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DlpJob.java
index 0add15681efa..b81c989cc6ec 100644
--- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DlpJob.java
+++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DlpJob.java
@@ -288,7 +288,7 @@ public enum JobState implements com.google.protobuf.ProtocolMessageEnum {
*
*
*
- * The job was canceled before it could complete.
+ * The job was canceled before it could be completed.
*
*
* CANCELED = 4;
@@ -310,7 +310,7 @@ public enum JobState implements com.google.protobuf.ProtocolMessageEnum {
*
* The job is currently accepting findings via hybridInspect.
* A hybrid job in ACTIVE state may continue to have findings added to it
- * through calling of hybridInspect. After the job has finished no more
+ * through the calling of hybridInspect. After the job has finished no more
* calls to hybridInspect may be made. ACTIVE jobs can transition to DONE.
*
*
@@ -365,7 +365,7 @@ public enum JobState implements com.google.protobuf.ProtocolMessageEnum {
*
*
*
- * The job was canceled before it could complete.
+ * The job was canceled before it could be completed.
*
*
* CANCELED = 4;
@@ -387,7 +387,7 @@ public enum JobState implements com.google.protobuf.ProtocolMessageEnum {
*
* The job is currently accepting findings via hybridInspect.
* A hybrid job in ACTIVE state may continue to have findings added to it
- * through calling of hybridInspect. After the job has finished no more
+ * through the calling of hybridInspect. After the job has finished no more
* calls to hybridInspect may be made. ACTIVE jobs can transition to DONE.
*
*
diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DlpJobType.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DlpJobType.java
index ada686bf6295..cc26c0f4a064 100644
--- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DlpJobType.java
+++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DlpJobType.java
@@ -151,7 +151,7 @@ public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType
}
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
- return com.google.privacy.dlp.v2.DlpProto.getDescriptor().getEnumTypes().get(5);
+ return com.google.privacy.dlp.v2.DlpProto.getDescriptor().getEnumTypes().get(8);
}
private static final DlpJobType[] VALUES = values();
diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DlpProto.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DlpProto.java
index 9e114030f6c7..558ceb742f28 100644
--- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DlpProto.java
+++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DlpProto.java
@@ -199,6 +199,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r
internal_static_google_privacy_dlp_v2_InfoTypeCategory_descriptor;
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_google_privacy_dlp_v2_InfoTypeCategory_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_privacy_dlp_v2_VersionDescription_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_privacy_dlp_v2_VersionDescription_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_google_privacy_dlp_v2_ListInfoTypesRequest_descriptor;
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
@@ -355,6 +359,26 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r
internal_static_google_privacy_dlp_v2_DeidentifyConfig_descriptor;
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_google_privacy_dlp_v2_DeidentifyConfig_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_privacy_dlp_v2_ImageTransformations_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_privacy_dlp_v2_ImageTransformations_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_privacy_dlp_v2_ImageTransformations_ImageTransformation_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_privacy_dlp_v2_ImageTransformations_ImageTransformation_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_privacy_dlp_v2_ImageTransformations_ImageTransformation_SelectedInfoTypes_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_privacy_dlp_v2_ImageTransformations_ImageTransformation_SelectedInfoTypes_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_privacy_dlp_v2_ImageTransformations_ImageTransformation_AllInfoTypes_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_privacy_dlp_v2_ImageTransformations_ImageTransformation_AllInfoTypes_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_privacy_dlp_v2_ImageTransformations_ImageTransformation_AllText_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_privacy_dlp_v2_ImageTransformations_ImageTransformation_AllText_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_google_privacy_dlp_v2_TransformationErrorHandling_descriptor;
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
@@ -491,6 +515,30 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r
internal_static_google_privacy_dlp_v2_TransformationSummary_SummaryResult_descriptor;
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_google_privacy_dlp_v2_TransformationSummary_SummaryResult_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_privacy_dlp_v2_TransformationDescription_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_privacy_dlp_v2_TransformationDescription_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_privacy_dlp_v2_TransformationDetails_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_privacy_dlp_v2_TransformationDetails_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_privacy_dlp_v2_TransformationLocation_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_privacy_dlp_v2_TransformationLocation_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_privacy_dlp_v2_RecordTransformation_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_privacy_dlp_v2_RecordTransformation_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_privacy_dlp_v2_TransformationResultStatus_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_privacy_dlp_v2_TransformationResultStatus_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_privacy_dlp_v2_TransformationDetailsStorageConfig_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_privacy_dlp_v2_TransformationDetailsStorageConfig_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_google_privacy_dlp_v2_Schedule_descriptor;
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
@@ -539,6 +587,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r
internal_static_google_privacy_dlp_v2_Action_PublishFindingsToCloudDataCatalog_descriptor;
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_google_privacy_dlp_v2_Action_PublishFindingsToCloudDataCatalog_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_privacy_dlp_v2_Action_Deidentify_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_privacy_dlp_v2_Action_Deidentify_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_google_privacy_dlp_v2_Action_JobNotificationEmails_descriptor;
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
@@ -547,6 +599,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r
internal_static_google_privacy_dlp_v2_Action_PublishToStackdriver_descriptor;
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_google_privacy_dlp_v2_Action_PublishToStackdriver_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_privacy_dlp_v2_TransformationConfig_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_privacy_dlp_v2_TransformationConfig_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_google_privacy_dlp_v2_CreateInspectTemplateRequest_descriptor;
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
@@ -751,10 +807,6 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r
internal_static_google_privacy_dlp_v2_HybridInspectResponse_descriptor;
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_google_privacy_dlp_v2_HybridInspectResponse_fieldAccessorTable;
- static final com.google.protobuf.Descriptors.Descriptor
- internal_static_google_privacy_dlp_v2_SensitivityScore_descriptor;
- static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internal_static_google_privacy_dlp_v2_SensitivityScore_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_google_privacy_dlp_v2_DataRiskLevel_descriptor;
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
@@ -1003,1041 +1055,1114 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "privacy.dlp.v2.HybridInspectStatistics\"`"
+ "\n\027HybridInspectStatistics\022\027\n\017processed_c"
+ "ount\030\001 \001(\003\022\025\n\raborted_count\030\002 \001(\003\022\025\n\rpen"
- + "ding_count\030\003 \001(\003\"\315\001\n\023InfoTypeDescription"
+ + "ding_count\030\003 \001(\003\"\212\002\n\023InfoTypeDescription"
+ "\022\014\n\004name\030\001 \001(\t\022\024\n\014display_name\030\002 \001(\t\022@\n\014"
+ "supported_by\030\003 \003(\0162*.google.privacy.dlp."
+ "v2.InfoTypeSupportedBy\022\023\n\013description\030\004 "
- + "\001(\t\022;\n\ncategories\030\n \003(\0132\'.google.privacy"
- + ".dlp.v2.InfoTypeCategory\"\330\010\n\020InfoTypeCat"
- + "egory\022U\n\021location_category\030\001 \001(\01628.googl"
- + "e.privacy.dlp.v2.InfoTypeCategory.Locati"
- + "onCategoryH\000\022U\n\021industry_category\030\002 \001(\0162"
- + "8.google.privacy.dlp.v2.InfoTypeCategory"
- + ".IndustryCategoryH\000\022M\n\rtype_category\030\003 \001"
- + "(\01624.google.privacy.dlp.v2.InfoTypeCateg"
- + "ory.TypeCategoryH\000\"\303\004\n\020LocationCategory\022"
- + "\030\n\024LOCATION_UNSPECIFIED\020\000\022\n\n\006GLOBAL\020\001\022\r\n"
- + "\tARGENTINA\020\002\022\r\n\tAUSTRALIA\020\003\022\013\n\007BELGIUM\020\004"
- + "\022\n\n\006BRAZIL\020\005\022\n\n\006CANADA\020\006\022\t\n\005CHILE\020\007\022\t\n\005C"
- + "HINA\020\010\022\014\n\010COLOMBIA\020\t\022\013\n\007DENMARK\020\n\022\n\n\006FRA"
- + "NCE\020\013\022\013\n\007FINLAND\020\014\022\013\n\007GERMANY\020\r\022\r\n\tHONG_"
- + "KONG\020\016\022\t\n\005INDIA\020\017\022\r\n\tINDONESIA\020\020\022\013\n\007IREL"
- + "AND\020\021\022\n\n\006ISRAEL\020\022\022\t\n\005ITALY\020\023\022\t\n\005JAPAN\020\024\022"
- + "\t\n\005KOREA\020\025\022\n\n\006MEXICO\020\026\022\023\n\017THE_NETHERLAND"
- + "S\020\027\022\n\n\006NORWAY\020\030\022\014\n\010PARAGUAY\020\031\022\010\n\004PERU\020\032\022"
- + "\n\n\006POLAND\020\033\022\014\n\010PORTUGAL\020\034\022\r\n\tSINGAPORE\020\035"
- + "\022\020\n\014SOUTH_AFRICA\020\036\022\t\n\005SPAIN\020\037\022\n\n\006SWEDEN\020"
- + " \022\n\n\006TAIWAN\020!\022\014\n\010THAILAND\020\"\022\n\n\006TURKEY\020#\022"
- + "\022\n\016UNITED_KINGDOM\020$\022\021\n\rUNITED_STATES\020%\022\013"
- + "\n\007URUGUAY\020&\022\r\n\tVENEZUELA\020\'\022\014\n\010INTERNAL\020("
- + "\"]\n\020IndustryCategory\022\030\n\024INDUSTRY_UNSPECI"
- + "FIED\020\000\022\013\n\007FINANCE\020\001\022\n\n\006HEALTH\020\002\022\026\n\022TELEC"
- + "OMMUNICATIONS\020\003\"\225\001\n\014TypeCategory\022\024\n\020TYPE"
- + "_UNSPECIFIED\020\000\022\007\n\003PII\020\001\022\010\n\004SPII\020\002\022\017\n\013DEM"
- + "OGRAPHIC\020\003\022\016\n\nCREDENTIAL\020\004\022\021\n\rGOVERNMENT"
- + "_ID\020\005\022\014\n\010DOCUMENT\020\006\022\032\n\026CONTEXTUAL_INFORM"
- + "ATION\020\007B\n\n\010category\"b\n\024ListInfoTypesRequ"
- + "est\022\016\n\006parent\030\004 \001(\t\022\025\n\rlanguage_code\030\001 \001"
- + "(\t\022\016\n\006filter\030\002 \001(\t\022\023\n\013location_id\030\003 \001(\t\""
- + "W\n\025ListInfoTypesResponse\022>\n\ninfo_types\030\001"
- + " \003(\0132*.google.privacy.dlp.v2.InfoTypeDes"
- + "cription\"\301\001\n\025RiskAnalysisJobConfig\022<\n\016pr"
- + "ivacy_metric\030\001 \001(\0132$.google.privacy.dlp."
- + "v2.PrivacyMetric\022:\n\014source_table\030\002 \001(\0132$"
- + ".google.privacy.dlp.v2.BigQueryTable\022.\n\007"
- + "actions\030\003 \003(\0132\035.google.privacy.dlp.v2.Ac"
- + "tion\"\274\001\n\007QuasiId\0222\n\005field\030\001 \001(\0132\036.google"
- + ".privacy.dlp.v2.FieldIdB\003\340A\002\0224\n\tinfo_typ"
- + "e\030\002 \001(\0132\037.google.privacy.dlp.v2.InfoType"
- + "H\000\022\024\n\ncustom_tag\030\003 \001(\tH\000\022*\n\010inferred\030\004 \001"
- + "(\0132\026.google.protobuf.EmptyH\000B\005\n\003tag\"\276\002\n\020"
- + "StatisticalTable\0228\n\005table\030\003 \001(\0132$.google"
- + ".privacy.dlp.v2.BigQueryTableB\003\340A\002\022T\n\tqu"
- + "asi_ids\030\001 \003(\0132<.google.privacy.dlp.v2.St"
- + "atisticalTable.QuasiIdentifierFieldB\003\340A\002"
- + "\022?\n\022relative_frequency\030\002 \001(\0132\036.google.pr"
- + "ivacy.dlp.v2.FieldIdB\003\340A\002\032Y\n\024QuasiIdenti"
- + "fierField\022-\n\005field\030\001 \001(\0132\036.google.privac"
- + "y.dlp.v2.FieldId\022\022\n\ncustom_tag\030\002 \001(\t\"\223\017\n"
- + "\rPrivacyMetric\022[\n\026numerical_stats_config"
- + "\030\001 \001(\01329.google.privacy.dlp.v2.PrivacyMe"
- + "tric.NumericalStatsConfigH\000\022_\n\030categoric"
- + "al_stats_config\030\002 \001(\0132;.google.privacy.d"
- + "lp.v2.PrivacyMetric.CategoricalStatsConf"
- + "igH\000\022S\n\022k_anonymity_config\030\003 \001(\01325.googl"
- + "e.privacy.dlp.v2.PrivacyMetric.KAnonymit"
- + "yConfigH\000\022S\n\022l_diversity_config\030\004 \001(\01325."
- + "google.privacy.dlp.v2.PrivacyMetric.LDiv"
- + "ersityConfigH\000\022\\\n\027k_map_estimation_confi"
- + "g\030\005 \001(\01329.google.privacy.dlp.v2.PrivacyM"
- + "etric.KMapEstimationConfigH\000\022n\n delta_pr"
- + "esence_estimation_config\030\006 \001(\0132B.google."
- + "privacy.dlp.v2.PrivacyMetric.DeltaPresen"
- + "ceEstimationConfigH\000\032E\n\024NumericalStatsCo"
- + "nfig\022-\n\005field\030\001 \001(\0132\036.google.privacy.dlp"
- + ".v2.FieldId\032G\n\026CategoricalStatsConfig\022-\n"
- + "\005field\030\001 \001(\0132\036.google.privacy.dlp.v2.Fie"
- + "ldId\032y\n\020KAnonymityConfig\0221\n\tquasi_ids\030\001 "
- + "\003(\0132\036.google.privacy.dlp.v2.FieldId\0222\n\te"
- + "ntity_id\030\002 \001(\0132\037.google.privacy.dlp.v2.E"
- + "ntityId\032\202\001\n\020LDiversityConfig\0221\n\tquasi_id"
- + "s\030\001 \003(\0132\036.google.privacy.dlp.v2.FieldId\022"
- + ";\n\023sensitive_attribute\030\002 \001(\0132\036.google.pr"
- + "ivacy.dlp.v2.FieldId\032\201\006\n\024KMapEstimationC"
- + "onfig\022]\n\tquasi_ids\030\001 \003(\0132E.google.privac"
- + "y.dlp.v2.PrivacyMetric.KMapEstimationCon"
- + "fig.TaggedFieldB\003\340A\002\022\023\n\013region_code\030\002 \001("
- + "\t\022b\n\020auxiliary_tables\030\003 \003(\0132H.google.pri"
- + "vacy.dlp.v2.PrivacyMetric.KMapEstimation"
- + "Config.AuxiliaryTable\032\300\001\n\013TaggedField\0222\n"
- + "\005field\030\001 \001(\0132\036.google.privacy.dlp.v2.Fie"
- + "ldIdB\003\340A\002\0224\n\tinfo_type\030\002 \001(\0132\037.google.pr"
- + "ivacy.dlp.v2.InfoTypeH\000\022\024\n\ncustom_tag\030\003 "
- + "\001(\tH\000\022*\n\010inferred\030\004 \001(\0132\026.google.protobu"
- + "f.EmptyH\000B\005\n\003tag\032\315\002\n\016AuxiliaryTable\0228\n\005t"
- + "able\030\003 \001(\0132$.google.privacy.dlp.v2.BigQu"
- + "eryTableB\003\340A\002\022m\n\tquasi_ids\030\001 \003(\0132U.googl"
- + "e.privacy.dlp.v2.PrivacyMetric.KMapEstim"
- + "ationConfig.AuxiliaryTable.QuasiIdFieldB"
- + "\003\340A\002\022?\n\022relative_frequency\030\002 \001(\0132\036.googl"
- + "e.privacy.dlp.v2.FieldIdB\003\340A\002\032Q\n\014QuasiId"
- + "Field\022-\n\005field\030\001 \001(\0132\036.google.privacy.dl"
- + "p.v2.FieldId\022\022\n\ncustom_tag\030\002 \001(\t\032\257\001\n\035Del"
- + "taPresenceEstimationConfig\0226\n\tquasi_ids\030"
- + "\001 \003(\0132\036.google.privacy.dlp.v2.QuasiIdB\003\340"
- + "A\002\022\023\n\013region_code\030\002 \001(\t\022A\n\020auxiliary_tab"
- + "les\030\003 \003(\0132\'.google.privacy.dlp.v2.Statis"
- + "ticalTableB\006\n\004type\"\301\037\n\034AnalyzeDataSource"
- + "RiskDetails\022F\n\030requested_privacy_metric\030"
- + "\001 \001(\0132$.google.privacy.dlp.v2.PrivacyMet"
- + "ric\022D\n\026requested_source_table\030\002 \001(\0132$.go"
- + "ogle.privacy.dlp.v2.BigQueryTable\022j\n\026num"
- + "erical_stats_result\030\003 \001(\0132H.google.priva"
- + "cy.dlp.v2.AnalyzeDataSourceRiskDetails.N"
- + "umericalStatsResultH\000\022n\n\030categorical_sta"
- + "ts_result\030\004 \001(\0132J.google.privacy.dlp.v2."
- + "AnalyzeDataSourceRiskDetails.Categorical"
- + "StatsResultH\000\022b\n\022k_anonymity_result\030\005 \001("
- + "\0132D.google.privacy.dlp.v2.AnalyzeDataSou"
- + "rceRiskDetails.KAnonymityResultH\000\022b\n\022l_d"
- + "iversity_result\030\006 \001(\0132D.google.privacy.d"
- + "lp.v2.AnalyzeDataSourceRiskDetails.LDive"
- + "rsityResultH\000\022k\n\027k_map_estimation_result"
- + "\030\007 \001(\0132H.google.privacy.dlp.v2.AnalyzeDa"
- + "taSourceRiskDetails.KMapEstimationResult"
- + "H\000\022}\n delta_presence_estimation_result\030\t"
- + " \001(\0132Q.google.privacy.dlp.v2.AnalyzeData"
- + "SourceRiskDetails.DeltaPresenceEstimatio"
- + "nResultH\000\022k\n\021requested_options\030\n \001(\0132P.g"
- + "oogle.privacy.dlp.v2.AnalyzeDataSourceRi"
- + "skDetails.RequestedRiskAnalysisOptions\032\257"
- + "\001\n\024NumericalStatsResult\022/\n\tmin_value\030\001 \001"
- + "(\0132\034.google.privacy.dlp.v2.Value\022/\n\tmax_"
- + "value\030\002 \001(\0132\034.google.privacy.dlp.v2.Valu"
- + "e\0225\n\017quantile_values\030\004 \003(\0132\034.google.priv"
- + "acy.dlp.v2.Value\032\215\003\n\026CategoricalStatsRes"
- + "ult\022\225\001\n!value_frequency_histogram_bucket"
- + "s\030\005 \003(\0132j.google.privacy.dlp.v2.AnalyzeD"
- + "ataSourceRiskDetails.CategoricalStatsRes"
- + "ult.CategoricalStatsHistogramBucket\032\332\001\n\037"
- + "CategoricalStatsHistogramBucket\022#\n\033value"
- + "_frequency_lower_bound\030\001 \001(\003\022#\n\033value_fr"
- + "equency_upper_bound\030\002 \001(\003\022\023\n\013bucket_size"
- + "\030\003 \001(\003\022<\n\rbucket_values\030\004 \003(\0132%.google.p"
- + "rivacy.dlp.v2.ValueFrequency\022\032\n\022bucket_v"
- + "alue_count\030\005 \001(\003\032\265\004\n\020KAnonymityResult\022\213\001"
- + "\n#equivalence_class_histogram_buckets\030\005 "
- + "\003(\0132^.google.privacy.dlp.v2.AnalyzeDataS"
- + "ourceRiskDetails.KAnonymityResult.KAnony"
- + "mityHistogramBucket\032t\n\032KAnonymityEquival"
- + "enceClass\0226\n\020quasi_ids_values\030\001 \003(\0132\034.go"
- + "ogle.privacy.dlp.v2.Value\022\036\n\026equivalence"
- + "_class_size\030\002 \001(\003\032\234\002\n\031KAnonymityHistogra"
- + "mBucket\022*\n\"equivalence_class_size_lower_"
- + "bound\030\001 \001(\003\022*\n\"equivalence_class_size_up"
- + "per_bound\030\002 \001(\003\022\023\n\013bucket_size\030\003 \001(\003\022v\n\r"
- + "bucket_values\030\004 \003(\0132_.google.privacy.dlp"
- + ".v2.AnalyzeDataSourceRiskDetails.KAnonym"
- + "ityResult.KAnonymityEquivalenceClass\022\032\n\022"
- + "bucket_value_count\030\005 \001(\003\032\260\005\n\020LDiversityR"
- + "esult\022\223\001\n+sensitive_value_frequency_hist"
- + "ogram_buckets\030\005 \003(\0132^.google.privacy.dlp"
- + ".v2.AnalyzeDataSourceRiskDetails.LDivers"
- + "ityResult.LDiversityHistogramBucket\032\340\001\n\032"
- + "LDiversityEquivalenceClass\0226\n\020quasi_ids_"
- + "values\030\001 \003(\0132\034.google.privacy.dlp.v2.Val"
- + "ue\022\036\n\026equivalence_class_size\030\002 \001(\003\022%\n\035nu"
- + "m_distinct_sensitive_values\030\003 \001(\003\022C\n\024top"
- + "_sensitive_values\030\004 \003(\0132%.google.privacy"
- + ".dlp.v2.ValueFrequency\032\242\002\n\031LDiversityHis"
- + "togramBucket\022-\n%sensitive_value_frequenc"
- + "y_lower_bound\030\001 \001(\003\022-\n%sensitive_value_f"
+ + "\001(\t\022;\n\010versions\030\t \003(\0132).google.privacy.d"
+ + "lp.v2.VersionDescription\022;\n\ncategories\030\n"
+ + " \003(\0132\'.google.privacy.dlp.v2.InfoTypeCat"
+ + "egory\"\330\010\n\020InfoTypeCategory\022U\n\021location_c"
+ + "ategory\030\001 \001(\01628.google.privacy.dlp.v2.In"
+ + "foTypeCategory.LocationCategoryH\000\022U\n\021ind"
+ + "ustry_category\030\002 \001(\01628.google.privacy.dl"
+ + "p.v2.InfoTypeCategory.IndustryCategoryH\000"
+ + "\022M\n\rtype_category\030\003 \001(\01624.google.privacy"
+ + ".dlp.v2.InfoTypeCategory.TypeCategoryH\000\""
+ + "\303\004\n\020LocationCategory\022\030\n\024LOCATION_UNSPECI"
+ + "FIED\020\000\022\n\n\006GLOBAL\020\001\022\r\n\tARGENTINA\020\002\022\r\n\tAUS"
+ + "TRALIA\020\003\022\013\n\007BELGIUM\020\004\022\n\n\006BRAZIL\020\005\022\n\n\006CAN"
+ + "ADA\020\006\022\t\n\005CHILE\020\007\022\t\n\005CHINA\020\010\022\014\n\010COLOMBIA\020"
+ + "\t\022\013\n\007DENMARK\020\n\022\n\n\006FRANCE\020\013\022\013\n\007FINLAND\020\014\022"
+ + "\013\n\007GERMANY\020\r\022\r\n\tHONG_KONG\020\016\022\t\n\005INDIA\020\017\022\r"
+ + "\n\tINDONESIA\020\020\022\013\n\007IRELAND\020\021\022\n\n\006ISRAEL\020\022\022\t"
+ + "\n\005ITALY\020\023\022\t\n\005JAPAN\020\024\022\t\n\005KOREA\020\025\022\n\n\006MEXIC"
+ + "O\020\026\022\023\n\017THE_NETHERLANDS\020\027\022\n\n\006NORWAY\020\030\022\014\n\010"
+ + "PARAGUAY\020\031\022\010\n\004PERU\020\032\022\n\n\006POLAND\020\033\022\014\n\010PORT"
+ + "UGAL\020\034\022\r\n\tSINGAPORE\020\035\022\020\n\014SOUTH_AFRICA\020\036\022"
+ + "\t\n\005SPAIN\020\037\022\n\n\006SWEDEN\020 \022\n\n\006TAIWAN\020!\022\014\n\010TH"
+ + "AILAND\020\"\022\n\n\006TURKEY\020#\022\022\n\016UNITED_KINGDOM\020$"
+ + "\022\021\n\rUNITED_STATES\020%\022\013\n\007URUGUAY\020&\022\r\n\tVENE"
+ + "ZUELA\020\'\022\014\n\010INTERNAL\020(\"]\n\020IndustryCategor"
+ + "y\022\030\n\024INDUSTRY_UNSPECIFIED\020\000\022\013\n\007FINANCE\020\001"
+ + "\022\n\n\006HEALTH\020\002\022\026\n\022TELECOMMUNICATIONS\020\003\"\225\001\n"
+ + "\014TypeCategory\022\024\n\020TYPE_UNSPECIFIED\020\000\022\007\n\003P"
+ + "II\020\001\022\010\n\004SPII\020\002\022\017\n\013DEMOGRAPHIC\020\003\022\016\n\nCREDE"
+ + "NTIAL\020\004\022\021\n\rGOVERNMENT_ID\020\005\022\014\n\010DOCUMENT\020\006"
+ + "\022\032\n\026CONTEXTUAL_INFORMATION\020\007B\n\n\010category"
+ + "\":\n\022VersionDescription\022\017\n\007version\030\001 \001(\t\022"
+ + "\023\n\013description\030\002 \001(\t\"b\n\024ListInfoTypesReq"
+ + "uest\022\016\n\006parent\030\004 \001(\t\022\025\n\rlanguage_code\030\001 "
+ + "\001(\t\022\016\n\006filter\030\002 \001(\t\022\023\n\013location_id\030\003 \001(\t"
+ + "\"W\n\025ListInfoTypesResponse\022>\n\ninfo_types\030"
+ + "\001 \003(\0132*.google.privacy.dlp.v2.InfoTypeDe"
+ + "scription\"\301\001\n\025RiskAnalysisJobConfig\022<\n\016p"
+ + "rivacy_metric\030\001 \001(\0132$.google.privacy.dlp"
+ + ".v2.PrivacyMetric\022:\n\014source_table\030\002 \001(\0132"
+ + "$.google.privacy.dlp.v2.BigQueryTable\022.\n"
+ + "\007actions\030\003 \003(\0132\035.google.privacy.dlp.v2.A"
+ + "ction\"\274\001\n\007QuasiId\0222\n\005field\030\001 \001(\0132\036.googl"
+ + "e.privacy.dlp.v2.FieldIdB\003\340A\002\0224\n\tinfo_ty"
+ + "pe\030\002 \001(\0132\037.google.privacy.dlp.v2.InfoTyp"
+ + "eH\000\022\024\n\ncustom_tag\030\003 \001(\tH\000\022*\n\010inferred\030\004 "
+ + "\001(\0132\026.google.protobuf.EmptyH\000B\005\n\003tag\"\276\002\n"
+ + "\020StatisticalTable\0228\n\005table\030\003 \001(\0132$.googl"
+ + "e.privacy.dlp.v2.BigQueryTableB\003\340A\002\022T\n\tq"
+ + "uasi_ids\030\001 \003(\0132<.google.privacy.dlp.v2.S"
+ + "tatisticalTable.QuasiIdentifierFieldB\003\340A"
+ + "\002\022?\n\022relative_frequency\030\002 \001(\0132\036.google.p"
+ + "rivacy.dlp.v2.FieldIdB\003\340A\002\032Y\n\024QuasiIdent"
+ + "ifierField\022-\n\005field\030\001 \001(\0132\036.google.priva"
+ + "cy.dlp.v2.FieldId\022\022\n\ncustom_tag\030\002 \001(\t\"\223\017"
+ + "\n\rPrivacyMetric\022[\n\026numerical_stats_confi"
+ + "g\030\001 \001(\01329.google.privacy.dlp.v2.PrivacyM"
+ + "etric.NumericalStatsConfigH\000\022_\n\030categori"
+ + "cal_stats_config\030\002 \001(\0132;.google.privacy."
+ + "dlp.v2.PrivacyMetric.CategoricalStatsCon"
+ + "figH\000\022S\n\022k_anonymity_config\030\003 \001(\01325.goog"
+ + "le.privacy.dlp.v2.PrivacyMetric.KAnonymi"
+ + "tyConfigH\000\022S\n\022l_diversity_config\030\004 \001(\01325"
+ + ".google.privacy.dlp.v2.PrivacyMetric.LDi"
+ + "versityConfigH\000\022\\\n\027k_map_estimation_conf"
+ + "ig\030\005 \001(\01329.google.privacy.dlp.v2.Privacy"
+ + "Metric.KMapEstimationConfigH\000\022n\n delta_p"
+ + "resence_estimation_config\030\006 \001(\0132B.google"
+ + ".privacy.dlp.v2.PrivacyMetric.DeltaPrese"
+ + "nceEstimationConfigH\000\032E\n\024NumericalStatsC"
+ + "onfig\022-\n\005field\030\001 \001(\0132\036.google.privacy.dl"
+ + "p.v2.FieldId\032G\n\026CategoricalStatsConfig\022-"
+ + "\n\005field\030\001 \001(\0132\036.google.privacy.dlp.v2.Fi"
+ + "eldId\032y\n\020KAnonymityConfig\0221\n\tquasi_ids\030\001"
+ + " \003(\0132\036.google.privacy.dlp.v2.FieldId\0222\n\t"
+ + "entity_id\030\002 \001(\0132\037.google.privacy.dlp.v2."
+ + "EntityId\032\202\001\n\020LDiversityConfig\0221\n\tquasi_i"
+ + "ds\030\001 \003(\0132\036.google.privacy.dlp.v2.FieldId"
+ + "\022;\n\023sensitive_attribute\030\002 \001(\0132\036.google.p"
+ + "rivacy.dlp.v2.FieldId\032\201\006\n\024KMapEstimation"
+ + "Config\022]\n\tquasi_ids\030\001 \003(\0132E.google.priva"
+ + "cy.dlp.v2.PrivacyMetric.KMapEstimationCo"
+ + "nfig.TaggedFieldB\003\340A\002\022\023\n\013region_code\030\002 \001"
+ + "(\t\022b\n\020auxiliary_tables\030\003 \003(\0132H.google.pr"
+ + "ivacy.dlp.v2.PrivacyMetric.KMapEstimatio"
+ + "nConfig.AuxiliaryTable\032\300\001\n\013TaggedField\0222"
+ + "\n\005field\030\001 \001(\0132\036.google.privacy.dlp.v2.Fi"
+ + "eldIdB\003\340A\002\0224\n\tinfo_type\030\002 \001(\0132\037.google.p"
+ + "rivacy.dlp.v2.InfoTypeH\000\022\024\n\ncustom_tag\030\003"
+ + " \001(\tH\000\022*\n\010inferred\030\004 \001(\0132\026.google.protob"
+ + "uf.EmptyH\000B\005\n\003tag\032\315\002\n\016AuxiliaryTable\0228\n\005"
+ + "table\030\003 \001(\0132$.google.privacy.dlp.v2.BigQ"
+ + "ueryTableB\003\340A\002\022m\n\tquasi_ids\030\001 \003(\0132U.goog"
+ + "le.privacy.dlp.v2.PrivacyMetric.KMapEsti"
+ + "mationConfig.AuxiliaryTable.QuasiIdField"
+ + "B\003\340A\002\022?\n\022relative_frequency\030\002 \001(\0132\036.goog"
+ + "le.privacy.dlp.v2.FieldIdB\003\340A\002\032Q\n\014QuasiI"
+ + "dField\022-\n\005field\030\001 \001(\0132\036.google.privacy.d"
+ + "lp.v2.FieldId\022\022\n\ncustom_tag\030\002 \001(\t\032\257\001\n\035De"
+ + "ltaPresenceEstimationConfig\0226\n\tquasi_ids"
+ + "\030\001 \003(\0132\036.google.privacy.dlp.v2.QuasiIdB\003"
+ + "\340A\002\022\023\n\013region_code\030\002 \001(\t\022A\n\020auxiliary_ta"
+ + "bles\030\003 \003(\0132\'.google.privacy.dlp.v2.Stati"
+ + "sticalTableB\006\n\004type\"\301\037\n\034AnalyzeDataSourc"
+ + "eRiskDetails\022F\n\030requested_privacy_metric"
+ + "\030\001 \001(\0132$.google.privacy.dlp.v2.PrivacyMe"
+ + "tric\022D\n\026requested_source_table\030\002 \001(\0132$.g"
+ + "oogle.privacy.dlp.v2.BigQueryTable\022j\n\026nu"
+ + "merical_stats_result\030\003 \001(\0132H.google.priv"
+ + "acy.dlp.v2.AnalyzeDataSourceRiskDetails."
+ + "NumericalStatsResultH\000\022n\n\030categorical_st"
+ + "ats_result\030\004 \001(\0132J.google.privacy.dlp.v2"
+ + ".AnalyzeDataSourceRiskDetails.Categorica"
+ + "lStatsResultH\000\022b\n\022k_anonymity_result\030\005 \001"
+ + "(\0132D.google.privacy.dlp.v2.AnalyzeDataSo"
+ + "urceRiskDetails.KAnonymityResultH\000\022b\n\022l_"
+ + "diversity_result\030\006 \001(\0132D.google.privacy."
+ + "dlp.v2.AnalyzeDataSourceRiskDetails.LDiv"
+ + "ersityResultH\000\022k\n\027k_map_estimation_resul"
+ + "t\030\007 \001(\0132H.google.privacy.dlp.v2.AnalyzeD"
+ + "ataSourceRiskDetails.KMapEstimationResul"
+ + "tH\000\022}\n delta_presence_estimation_result\030"
+ + "\t \001(\0132Q.google.privacy.dlp.v2.AnalyzeDat"
+ + "aSourceRiskDetails.DeltaPresenceEstimati"
+ + "onResultH\000\022k\n\021requested_options\030\n \001(\0132P."
+ + "google.privacy.dlp.v2.AnalyzeDataSourceR"
+ + "iskDetails.RequestedRiskAnalysisOptions\032"
+ + "\257\001\n\024NumericalStatsResult\022/\n\tmin_value\030\001 "
+ + "\001(\0132\034.google.privacy.dlp.v2.Value\022/\n\tmax"
+ + "_value\030\002 \001(\0132\034.google.privacy.dlp.v2.Val"
+ + "ue\0225\n\017quantile_values\030\004 \003(\0132\034.google.pri"
+ + "vacy.dlp.v2.Value\032\215\003\n\026CategoricalStatsRe"
+ + "sult\022\225\001\n!value_frequency_histogram_bucke"
+ + "ts\030\005 \003(\0132j.google.privacy.dlp.v2.Analyze"
+ + "DataSourceRiskDetails.CategoricalStatsRe"
+ + "sult.CategoricalStatsHistogramBucket\032\332\001\n"
+ + "\037CategoricalStatsHistogramBucket\022#\n\033valu"
+ + "e_frequency_lower_bound\030\001 \001(\003\022#\n\033value_f"
+ "requency_upper_bound\030\002 \001(\003\022\023\n\013bucket_siz"
- + "e\030\003 \001(\003\022v\n\rbucket_values\030\004 \003(\0132_.google."
- + "privacy.dlp.v2.AnalyzeDataSourceRiskDeta"
- + "ils.LDiversityResult.LDiversityEquivalen"
- + "ceClass\022\032\n\022bucket_value_count\030\005 \001(\003\032\225\004\n\024"
- + "KMapEstimationResult\022\212\001\n\032k_map_estimatio"
- + "n_histogram\030\001 \003(\0132f.google.privacy.dlp.v"
- + "2.AnalyzeDataSourceRiskDetails.KMapEstim"
- + "ationResult.KMapEstimationHistogramBucke"
- + "t\032r\n\033KMapEstimationQuasiIdValues\0226\n\020quas"
- + "i_ids_values\030\001 \003(\0132\034.google.privacy.dlp."
- + "v2.Value\022\033\n\023estimated_anonymity\030\002 \001(\003\032\373\001"
- + "\n\035KMapEstimationHistogramBucket\022\025\n\rmin_a"
- + "nonymity\030\001 \001(\003\022\025\n\rmax_anonymity\030\002 \001(\003\022\023\n"
- + "\013bucket_size\030\005 \001(\003\022{\n\rbucket_values\030\006 \003("
- + "\0132d.google.privacy.dlp.v2.AnalyzeDataSou"
- + "rceRiskDetails.KMapEstimationResult.KMap"
- + "EstimationQuasiIdValues\022\032\n\022bucket_value_"
- + "count\030\007 \001(\003\032\344\004\n\035DeltaPresenceEstimationR"
- + "esult\022\245\001\n#delta_presence_estimation_hist"
- + "ogram\030\001 \003(\0132x.google.privacy.dlp.v2.Anal"
- + "yzeDataSourceRiskDetails.DeltaPresenceEs"
- + "timationResult.DeltaPresenceEstimationHi"
- + "stogramBucket\032}\n$DeltaPresenceEstimation"
- + "QuasiIdValues\0226\n\020quasi_ids_values\030\001 \003(\0132"
- + "\034.google.privacy.dlp.v2.Value\022\035\n\025estimat"
- + "ed_probability\030\002 \001(\001\032\233\002\n&DeltaPresenceEs"
- + "timationHistogramBucket\022\027\n\017min_probabili"
- + "ty\030\001 \001(\001\022\027\n\017max_probability\030\002 \001(\001\022\023\n\013buc"
- + "ket_size\030\005 \001(\003\022\215\001\n\rbucket_values\030\006 \003(\0132v"
- + ".google.privacy.dlp.v2.AnalyzeDataSource"
- + "RiskDetails.DeltaPresenceEstimationResul"
- + "t.DeltaPresenceEstimationQuasiIdValues\022\032"
- + "\n\022bucket_value_count\030\007 \001(\003\032`\n\034RequestedR"
- + "iskAnalysisOptions\022@\n\njob_config\030\001 \001(\0132,"
- + ".google.privacy.dlp.v2.RiskAnalysisJobCo",
- "nfigB\010\n\006result\"L\n\016ValueFrequency\022+\n\005valu"
- + "e\030\001 \001(\0132\034.google.privacy.dlp.v2.Value\022\r\n"
- + "\005count\030\002 \001(\003\"\263\002\n\005Value\022\027\n\rinteger_value\030"
- + "\001 \001(\003H\000\022\025\n\013float_value\030\002 \001(\001H\000\022\026\n\014string"
- + "_value\030\003 \001(\tH\000\022\027\n\rboolean_value\030\004 \001(\010H\000\022"
- + "5\n\017timestamp_value\030\005 \001(\0132\032.google.protob"
- + "uf.TimestampH\000\022,\n\ntime_value\030\006 \001(\0132\026.goo"
- + "gle.type.TimeOfDayH\000\022\'\n\ndate_value\030\007 \001(\013"
- + "2\021.google.type.DateH\000\0223\n\021day_of_week_val"
- + "ue\030\010 \001(\0162\026.google.type.DayOfWeekH\000B\006\n\004ty"
- + "pe\"Q\n\tQuoteInfo\0224\n\tdate_time\030\002 \001(\0132\037.goo"
- + "gle.privacy.dlp.v2.DateTimeH\000B\016\n\014parsed_"
- + "quote\"\337\001\n\010DateTime\022\037\n\004date\030\001 \001(\0132\021.googl"
- + "e.type.Date\022+\n\013day_of_week\030\002 \001(\0162\026.googl"
- + "e.type.DayOfWeek\022$\n\004time\030\003 \001(\0132\026.google."
- + "type.TimeOfDay\022;\n\ttime_zone\030\004 \001(\0132(.goog"
- + "le.privacy.dlp.v2.DateTime.TimeZone\032\"\n\010T"
- + "imeZone\022\026\n\016offset_minutes\030\001 \001(\005\"\244\002\n\020Deid"
- + "entifyConfig\022S\n\031info_type_transformation"
- + "s\030\001 \001(\0132..google.privacy.dlp.v2.InfoType"
- + "TransformationsH\000\022N\n\026record_transformati"
- + "ons\030\002 \001(\0132,.google.privacy.dlp.v2.Record"
- + "TransformationsH\000\022Y\n\035transformation_erro"
- + "r_handling\030\003 \001(\01322.google.privacy.dlp.v2"
- + ".TransformationErrorHandlingB\020\n\016transfor"
- + "mation\"\205\002\n\033TransformationErrorHandling\022T"
- + "\n\013throw_error\030\001 \001(\0132=.google.privacy.dlp"
- + ".v2.TransformationErrorHandling.ThrowErr"
- + "orH\000\022d\n\023leave_untransformed\030\002 \001(\0132E.goog"
- + "le.privacy.dlp.v2.TransformationErrorHan"
- + "dling.LeaveUntransformedH\000\032\014\n\nThrowError"
- + "\032\024\n\022LeaveUntransformedB\006\n\004mode\"\312\007\n\027Primi"
- + "tiveTransformation\022C\n\016replace_config\030\001 \001"
- + "(\0132).google.privacy.dlp.v2.ReplaceValueC"
- + "onfigH\000\022<\n\rredact_config\030\002 \001(\0132#.google."
- + "privacy.dlp.v2.RedactConfigH\000\022K\n\025charact"
- + "er_mask_config\030\003 \001(\0132*.google.privacy.dl"
- + "p.v2.CharacterMaskConfigH\000\022Y\n\035crypto_rep"
- + "lace_ffx_fpe_config\030\004 \001(\01320.google.priva"
- + "cy.dlp.v2.CryptoReplaceFfxFpeConfigH\000\022V\n"
- + "\033fixed_size_bucketing_config\030\005 \001(\0132/.goo"
- + "gle.privacy.dlp.v2.FixedSizeBucketingCon"
- + "figH\000\022B\n\020bucketing_config\030\006 \001(\0132&.google"
- + ".privacy.dlp.v2.BucketingConfigH\000\022Y\n\035rep"
- + "lace_with_info_type_config\030\007 \001(\01320.googl"
- + "e.privacy.dlp.v2.ReplaceWithInfoTypeConf"
- + "igH\000\022A\n\020time_part_config\030\010 \001(\0132%.google."
- + "privacy.dlp.v2.TimePartConfigH\000\022E\n\022crypt"
- + "o_hash_config\030\t \001(\0132\'.google.privacy.dlp"
- + ".v2.CryptoHashConfigH\000\022C\n\021date_shift_con"
- + "fig\030\013 \001(\0132&.google.privacy.dlp.v2.DateSh"
- + "iftConfigH\000\022W\n\033crypto_deterministic_conf"
- + "ig\030\014 \001(\01320.google.privacy.dlp.v2.CryptoD"
- + "eterministicConfigH\000\022S\n\031replace_dictiona"
- + "ry_config\030\r \001(\0132..google.privacy.dlp.v2."
- + "ReplaceDictionaryConfigH\000B\020\n\016transformat"
- + "ion\"\334\001\n\016TimePartConfig\022G\n\017part_to_extrac"
- + "t\030\001 \001(\0162..google.privacy.dlp.v2.TimePart"
- + "Config.TimePart\"\200\001\n\010TimePart\022\031\n\025TIME_PAR"
- + "T_UNSPECIFIED\020\000\022\010\n\004YEAR\020\001\022\t\n\005MONTH\020\002\022\020\n\014"
- + "DAY_OF_MONTH\020\003\022\017\n\013DAY_OF_WEEK\020\004\022\020\n\014WEEK_"
- + "OF_YEAR\020\005\022\017\n\013HOUR_OF_DAY\020\006\"H\n\020CryptoHash"
- + "Config\0224\n\ncrypto_key\030\001 \001(\0132 .google.priv"
- + "acy.dlp.v2.CryptoKey\"\300\001\n\031CryptoDetermini"
- + "sticConfig\0224\n\ncrypto_key\030\001 \001(\0132 .google."
- + "privacy.dlp.v2.CryptoKey\022<\n\023surrogate_in"
- + "fo_type\030\002 \001(\0132\037.google.privacy.dlp.v2.In"
- + "foType\022/\n\007context\030\003 \001(\0132\036.google.privacy"
- + ".dlp.v2.FieldId\"E\n\022ReplaceValueConfig\022/\n"
- + "\tnew_value\030\001 \001(\0132\034.google.privacy.dlp.v2"
- + ".Value\"q\n\027ReplaceDictionaryConfig\022N\n\twor"
- + "d_list\030\001 \001(\01329.google.privacy.dlp.v2.Cus"
- + "tomInfoType.Dictionary.WordListH\000B\006\n\004typ"
- + "e\"\033\n\031ReplaceWithInfoTypeConfig\"\016\n\014Redact"
- + "Config\"\266\002\n\rCharsToIgnore\022\034\n\022characters_t"
- + "o_skip\030\001 \001(\tH\000\022_\n\033common_characters_to_i"
- + "gnore\030\002 \001(\01628.google.privacy.dlp.v2.Char"
- + "sToIgnore.CommonCharsToIgnoreH\000\"\227\001\n\023Comm"
- + "onCharsToIgnore\022&\n\"COMMON_CHARS_TO_IGNOR"
- + "E_UNSPECIFIED\020\000\022\013\n\007NUMERIC\020\001\022\024\n\020ALPHA_UP"
- + "PER_CASE\020\002\022\024\n\020ALPHA_LOWER_CASE\020\003\022\017\n\013PUNC"
- + "TUATION\020\004\022\016\n\nWHITESPACE\020\005B\014\n\ncharacters\""
- + "\243\001\n\023CharacterMaskConfig\022\031\n\021masking_chara"
- + "cter\030\001 \001(\t\022\026\n\016number_to_mask\030\002 \001(\005\022\025\n\rre"
- + "verse_order\030\003 \001(\010\022B\n\024characters_to_ignor"
- + "e\030\004 \003(\0132$.google.privacy.dlp.v2.CharsToI"
- + "gnore\"\244\001\n\030FixedSizeBucketingConfig\0226\n\013lo"
- + "wer_bound\030\001 \001(\0132\034.google.privacy.dlp.v2."
- + "ValueB\003\340A\002\0226\n\013upper_bound\030\002 \001(\0132\034.google"
- + ".privacy.dlp.v2.ValueB\003\340A\002\022\030\n\013bucket_siz"
- + "e\030\003 \001(\001B\003\340A\002\"\360\001\n\017BucketingConfig\022>\n\007buck"
- + "ets\030\001 \003(\0132-.google.privacy.dlp.v2.Bucket"
- + "ingConfig.Bucket\032\234\001\n\006Bucket\022)\n\003min\030\001 \001(\013"
- + "2\034.google.privacy.dlp.v2.Value\022)\n\003max\030\002 "
- + "\001(\0132\034.google.privacy.dlp.v2.Value\022<\n\021rep"
- + "lacement_value\030\003 \001(\0132\034.google.privacy.dl"
- + "p.v2.ValueB\003\340A\002\"\371\003\n\031CryptoReplaceFfxFpeC"
- + "onfig\0229\n\ncrypto_key\030\001 \001(\0132 .google.priva"
- + "cy.dlp.v2.CryptoKeyB\003\340A\002\022/\n\007context\030\002 \001("
- + "\0132\036.google.privacy.dlp.v2.FieldId\022c\n\017com"
- + "mon_alphabet\030\004 \001(\0162H.google.privacy.dlp."
- + "v2.CryptoReplaceFfxFpeConfig.FfxCommonNa"
- + "tiveAlphabetH\000\022\031\n\017custom_alphabet\030\005 \001(\tH"
- + "\000\022\017\n\005radix\030\006 \001(\005H\000\022<\n\023surrogate_info_typ"
- + "e\030\010 \001(\0132\037.google.privacy.dlp.v2.InfoType"
- + "\"\224\001\n\027FfxCommonNativeAlphabet\022*\n&FFX_COMM"
- + "ON_NATIVE_ALPHABET_UNSPECIFIED\020\000\022\013\n\007NUME"
- + "RIC\020\001\022\017\n\013HEXADECIMAL\020\002\022\034\n\030UPPER_CASE_ALP"
- + "HA_NUMERIC\020\003\022\021\n\rALPHA_NUMERIC\020\004B\n\n\010alpha"
- + "bet\"\330\001\n\tCryptoKey\022>\n\ttransient\030\001 \001(\0132).g"
- + "oogle.privacy.dlp.v2.TransientCryptoKeyH"
- + "\000\022>\n\tunwrapped\030\002 \001(\0132).google.privacy.dl"
- + "p.v2.UnwrappedCryptoKeyH\000\022A\n\013kms_wrapped"
- + "\030\003 \001(\0132*.google.privacy.dlp.v2.KmsWrappe"
- + "dCryptoKeyH\000B\010\n\006source\"\'\n\022TransientCrypt"
- + "oKey\022\021\n\004name\030\001 \001(\tB\003\340A\002\"&\n\022UnwrappedCryp"
- + "toKey\022\020\n\003key\030\001 \001(\014B\003\340A\002\"M\n\023KmsWrappedCry"
- + "ptoKey\022\030\n\013wrapped_key\030\001 \001(\014B\003\340A\002\022\034\n\017cryp"
- + "to_key_name\030\002 \001(\tB\003\340A\002\"\302\001\n\017DateShiftConf"
- + "ig\022\035\n\020upper_bound_days\030\001 \001(\005B\003\340A\002\022\035\n\020low"
- + "er_bound_days\030\002 \001(\005B\003\340A\002\022/\n\007context\030\003 \001("
- + "\0132\036.google.privacy.dlp.v2.FieldId\0226\n\ncry"
- + "pto_key\030\004 \001(\0132 .google.privacy.dlp.v2.Cr"
- + "yptoKeyH\000B\010\n\006method\"\245\002\n\027InfoTypeTransfor"
- + "mations\022c\n\017transformations\030\001 \003(\0132E.googl"
- + "e.privacy.dlp.v2.InfoTypeTransformations"
- + ".InfoTypeTransformationB\003\340A\002\032\244\001\n\026InfoTyp"
- + "eTransformation\0223\n\ninfo_types\030\001 \003(\0132\037.go"
- + "ogle.privacy.dlp.v2.InfoType\022U\n\030primitiv"
- + "e_transformation\030\002 \001(\0132..google.privacy."
- + "dlp.v2.PrimitiveTransformationB\003\340A\002\"\300\002\n\023"
- + "FieldTransformation\0223\n\006fields\030\001 \003(\0132\036.go"
- + "ogle.privacy.dlp.v2.FieldIdB\003\340A\002\0229\n\tcond"
- + "ition\030\003 \001(\0132&.google.privacy.dlp.v2.Reco"
- + "rdCondition\022R\n\030primitive_transformation\030"
- + "\004 \001(\0132..google.privacy.dlp.v2.PrimitiveT"
- + "ransformationH\000\022S\n\031info_type_transformat"
- + "ions\030\005 \001(\0132..google.privacy.dlp.v2.InfoT"
- + "ypeTransformationsH\000B\020\n\016transformation\"\251"
- + "\001\n\025RecordTransformations\022I\n\025field_transf"
- + "ormations\030\001 \003(\0132*.google.privacy.dlp.v2."
- + "FieldTransformation\022E\n\023record_suppressio"
- + "ns\030\002 \003(\0132(.google.privacy.dlp.v2.RecordS"
- + "uppression\"N\n\021RecordSuppression\0229\n\tcondi"
- + "tion\030\001 \001(\0132&.google.privacy.dlp.v2.Recor"
- + "dCondition\"\334\004\n\017RecordCondition\022G\n\013expres"
- + "sions\030\003 \001(\01322.google.privacy.dlp.v2.Reco"
- + "rdCondition.Expressions\032\256\001\n\tCondition\0222\n"
- + "\005field\030\001 \001(\0132\036.google.privacy.dlp.v2.Fie"
- + "ldIdB\003\340A\002\022@\n\010operator\030\003 \001(\0162).google.pri"
- + "vacy.dlp.v2.RelationalOperatorB\003\340A\002\022+\n\005v"
- + "alue\030\004 \001(\0132\034.google.privacy.dlp.v2.Value"
- + "\032R\n\nConditions\022D\n\nconditions\030\001 \003(\01320.goo"
- + "gle.privacy.dlp.v2.RecordCondition.Condi"
- + "tion\032\372\001\n\013Expressions\022\\\n\020logical_operator"
- + "\030\001 \001(\0162B.google.privacy.dlp.v2.RecordCon"
- + "dition.Expressions.LogicalOperator\022G\n\nco"
- + "nditions\030\003 \001(\01321.google.privacy.dlp.v2.R"
- + "ecordCondition.ConditionsH\000\"<\n\017LogicalOp"
- + "erator\022 \n\034LOGICAL_OPERATOR_UNSPECIFIED\020\000"
- + "\022\007\n\003AND\020\001B\006\n\004type\"\203\001\n\026TransformationOver"
- + "view\022\031\n\021transformed_bytes\030\002 \001(\003\022N\n\030trans"
- + "formation_summaries\030\003 \003(\0132,.google.priva"
- + "cy.dlp.v2.TransformationSummary\"\237\005\n\025Tran"
- + "sformationSummary\0222\n\tinfo_type\030\001 \001(\0132\037.g"
- + "oogle.privacy.dlp.v2.InfoType\022-\n\005field\030\002"
- + " \001(\0132\036.google.privacy.dlp.v2.FieldId\022F\n\016"
- + "transformation\030\003 \001(\0132..google.privacy.dl"
- + "p.v2.PrimitiveTransformation\022I\n\025field_tr"
- + "ansformations\030\005 \003(\0132*.google.privacy.dlp"
- + ".v2.FieldTransformation\022A\n\017record_suppre"
- + "ss\030\006 \001(\0132(.google.privacy.dlp.v2.RecordS"
- + "uppression\022K\n\007results\030\004 \003(\0132:.google.pri"
- + "vacy.dlp.v2.TransformationSummary.Summar"
- + "yResult\022\031\n\021transformed_bytes\030\007 \001(\003\032\204\001\n\rS"
- + "ummaryResult\022\r\n\005count\030\001 \001(\003\022S\n\004code\030\002 \001("
- + "\0162E.google.privacy.dlp.v2.Transformation"
- + "Summary.TransformationResultCode\022\017\n\007deta"
- + "ils\030\003 \001(\t\"^\n\030TransformationResultCode\022*\n"
- + "&TRANSFORMATION_RESULT_CODE_UNSPECIFIED\020"
- + "\000\022\013\n\007SUCCESS\020\001\022\t\n\005ERROR\020\002\"U\n\010Schedule\022?\n"
- + "\032recurrence_period_duration\030\001 \001(\0132\031.goog"
- + "le.protobuf.DurationH\000B\010\n\006option\"\010\n\006Manu"
- + "al\"\302\004\n\017InspectTemplate\022\021\n\004name\030\001 \001(\tB\003\340A"
- + "\003\022\024\n\014display_name\030\002 \001(\t\022\023\n\013description\030\003"
- + " \001(\t\0224\n\013create_time\030\004 \001(\0132\032.google.proto"
- + "buf.TimestampB\003\340A\003\0224\n\013update_time\030\005 \001(\0132"
- + "\032.google.protobuf.TimestampB\003\340A\003\022<\n\016insp"
- + "ect_config\030\006 \001(\0132$.google.privacy.dlp.v2"
- + ".InspectConfig:\306\002\352A\302\002\n\"dlp.googleapis.co"
- + "m/InspectTemplate\022@organizations/{organi"
- + "zation}/inspectTemplates/{inspect_templa"
- + "te}\0226projects/{project}/inspectTemplates"
- + "/{inspect_template}\022Uorganizations/{orga"
- + "nization}/locations/{location}/inspectTe"
- + "mplates/{inspect_template}\022Kprojects/{pr"
- + "oject}/locations/{location}/inspectTempl"
- + "ates/{inspect_template}\"\346\004\n\022DeidentifyTe"
- + "mplate\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\024\n\014display_nam"
- + "e\030\002 \001(\t\022\023\n\013description\030\003 \001(\t\0224\n\013create_t"
- + "ime\030\004 \001(\0132\032.google.protobuf.TimestampB\003\340"
- + "A\003\0224\n\013update_time\030\005 \001(\0132\032.google.protobu"
- + "f.TimestampB\003\340A\003\022B\n\021deidentify_config\030\006 "
- + "\001(\0132\'.google.privacy.dlp.v2.DeidentifyCo"
- + "nfig:\341\002\352A\335\002\n%dlp.googleapis.com/Deidenti"
- + "fyTemplate\022Forganizations/{organization}"
- + "/deidentifyTemplates/{deidentify_templat"
- + "e}\022
- * List of exclude infoTypes.
+ * List of excluded infoTypes.
*
*
* Protobuf type {@code google.privacy.dlp.v2.ExcludeInfoTypes}
@@ -390,7 +390,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
*
- * List of exclude infoTypes.
+ * List of excluded infoTypes.
*
*
* Protobuf type {@code google.privacy.dlp.v2.ExcludeInfoTypes}
diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ImageTransformations.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ImageTransformations.java
new file mode 100644
index 000000000000..1dd743a524c0
--- /dev/null
+++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ImageTransformations.java
@@ -0,0 +1,5151 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/privacy/dlp/v2/dlp.proto
+
+package com.google.privacy.dlp.v2;
+
+/**
+ *
+ *
+ *
+ * A type of transformation that is applied over images.
+ *
+ *
+ * Protobuf type {@code google.privacy.dlp.v2.ImageTransformations}
+ */
+public final class ImageTransformations extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2.ImageTransformations)
+ ImageTransformationsOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use ImageTransformations.newBuilder() to construct.
+ private ImageTransformations(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private ImageTransformations() {
+ transforms_ = java.util.Collections.emptyList();
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new ImageTransformations();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private ImageTransformations(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 18:
+ {
+ if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+ transforms_ =
+ new java.util.ArrayList<
+ com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation>();
+ mutable_bitField0_ |= 0x00000001;
+ }
+ transforms_.add(
+ input.readMessage(
+ com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.parser(),
+ extensionRegistry));
+ break;
+ }
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+ } finally {
+ if (((mutable_bitField0_ & 0x00000001) != 0)) {
+ transforms_ = java.util.Collections.unmodifiableList(transforms_);
+ }
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.privacy.dlp.v2.DlpProto
+ .internal_static_google_privacy_dlp_v2_ImageTransformations_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.privacy.dlp.v2.DlpProto
+ .internal_static_google_privacy_dlp_v2_ImageTransformations_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.privacy.dlp.v2.ImageTransformations.class,
+ com.google.privacy.dlp.v2.ImageTransformations.Builder.class);
+ }
+
+ public interface ImageTransformationOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.privacy.dlp.v2.ImageTransformations.ImageTransformation)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ *
+ * Apply transformation to the selected info_types.
+ *
+ *
+ *
+ * .google.privacy.dlp.v2.ImageTransformations.ImageTransformation.SelectedInfoTypes selected_info_types = 4;
+ *
+ *
+ * @return Whether the selectedInfoTypes field is set.
+ */
+ boolean hasSelectedInfoTypes();
+ /**
+ *
+ *
+ *
+ * Apply transformation to the selected info_types.
+ *
+ *
+ *
+ * .google.privacy.dlp.v2.ImageTransformations.ImageTransformation.SelectedInfoTypes selected_info_types = 4;
+ *
+ *
+ * @return The selectedInfoTypes.
+ */
+ com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.SelectedInfoTypes
+ getSelectedInfoTypes();
+ /**
+ *
+ *
+ *
+ * Apply transformation to the selected info_types.
+ *
+ *
+ *
+ * .google.privacy.dlp.v2.ImageTransformations.ImageTransformation.SelectedInfoTypes selected_info_types = 4;
+ *
+ */
+ com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.SelectedInfoTypesOrBuilder
+ getSelectedInfoTypesOrBuilder();
+
+ /**
+ *
+ *
+ *
+ * Apply transformation to all findings not specified in other
+ * ImageTransformation's selected_info_types. Only one instance is allowed
+ * within the ImageTransformations message.
+ *
+ *
+ *
+ * .google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllInfoTypes all_info_types = 5;
+ *
+ *
+ * @return Whether the allInfoTypes field is set.
+ */
+ boolean hasAllInfoTypes();
+ /**
+ *
+ *
+ *
+ * Apply transformation to all findings not specified in other
+ * ImageTransformation's selected_info_types. Only one instance is allowed
+ * within the ImageTransformations message.
+ *
+ *
+ *
+ * .google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllInfoTypes all_info_types = 5;
+ *
+ *
+ * @return The allInfoTypes.
+ */
+ com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllInfoTypes
+ getAllInfoTypes();
+ /**
+ *
+ *
+ *
+ * Apply transformation to all findings not specified in other
+ * ImageTransformation's selected_info_types. Only one instance is allowed
+ * within the ImageTransformations message.
+ *
+ *
+ *
+ * .google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllInfoTypes all_info_types = 5;
+ *
+ */
+ com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllInfoTypesOrBuilder
+ getAllInfoTypesOrBuilder();
+
+ /**
+ *
+ *
+ *
+ * Apply transformation to all text that doesn't match an infoType. Only
+ * one instance is allowed within the ImageTransformations message.
+ *
+ *
+ * .google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllText all_text = 6;
+ *
+ *
+ * @return Whether the allText field is set.
+ */
+ boolean hasAllText();
+ /**
+ *
+ *
+ *
+ * Apply transformation to all text that doesn't match an infoType. Only
+ * one instance is allowed within the ImageTransformations message.
+ *
+ *
+ * .google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllText all_text = 6;
+ *
+ *
+ * @return The allText.
+ */
+ com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllText getAllText();
+ /**
+ *
+ *
+ *
+ * Apply transformation to all text that doesn't match an infoType. Only
+ * one instance is allowed within the ImageTransformations message.
+ *
+ *
+ * .google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllText all_text = 6;
+ *
+ */
+ com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllTextOrBuilder
+ getAllTextOrBuilder();
+
+ /**
+ *
+ *
+ *
+ * The color to use when redacting content from an image. If not
+ * specified, the default is black.
+ *
+ *
+ * .google.privacy.dlp.v2.Color redaction_color = 3;
+ *
+ * @return Whether the redactionColor field is set.
+ */
+ boolean hasRedactionColor();
+ /**
+ *
+ *
+ *
+ * The color to use when redacting content from an image. If not
+ * specified, the default is black.
+ *
+ *
+ * .google.privacy.dlp.v2.Color redaction_color = 3;
+ *
+ * @return The redactionColor.
+ */
+ com.google.privacy.dlp.v2.Color getRedactionColor();
+ /**
+ *
+ *
+ *
+ * The color to use when redacting content from an image. If not
+ * specified, the default is black.
+ *
+ *
+ * .google.privacy.dlp.v2.Color redaction_color = 3;
+ */
+ com.google.privacy.dlp.v2.ColorOrBuilder getRedactionColorOrBuilder();
+
+ public com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.TargetCase
+ getTargetCase();
+ }
+ /**
+ *
+ *
+ *
+ * Configuration for determining how redaction of images should occur.
+ *
+ *
+ * Protobuf type {@code google.privacy.dlp.v2.ImageTransformations.ImageTransformation}
+ */
+ public static final class ImageTransformation extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2.ImageTransformations.ImageTransformation)
+ ImageTransformationOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use ImageTransformation.newBuilder() to construct.
+ private ImageTransformation(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private ImageTransformation() {}
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new ImageTransformation();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private ImageTransformation(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 26:
+ {
+ com.google.privacy.dlp.v2.Color.Builder subBuilder = null;
+ if (redactionColor_ != null) {
+ subBuilder = redactionColor_.toBuilder();
+ }
+ redactionColor_ =
+ input.readMessage(com.google.privacy.dlp.v2.Color.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(redactionColor_);
+ redactionColor_ = subBuilder.buildPartial();
+ }
+
+ break;
+ }
+ case 34:
+ {
+ com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.SelectedInfoTypes
+ .Builder
+ subBuilder = null;
+ if (targetCase_ == 4) {
+ subBuilder =
+ ((com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation
+ .SelectedInfoTypes)
+ target_)
+ .toBuilder();
+ }
+ target_ =
+ input.readMessage(
+ com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation
+ .SelectedInfoTypes.parser(),
+ extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(
+ (com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation
+ .SelectedInfoTypes)
+ target_);
+ target_ = subBuilder.buildPartial();
+ }
+ targetCase_ = 4;
+ break;
+ }
+ case 42:
+ {
+ com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllInfoTypes
+ .Builder
+ subBuilder = null;
+ if (targetCase_ == 5) {
+ subBuilder =
+ ((com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation
+ .AllInfoTypes)
+ target_)
+ .toBuilder();
+ }
+ target_ =
+ input.readMessage(
+ com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation
+ .AllInfoTypes.parser(),
+ extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(
+ (com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation
+ .AllInfoTypes)
+ target_);
+ target_ = subBuilder.buildPartial();
+ }
+ targetCase_ = 5;
+ break;
+ }
+ case 50:
+ {
+ com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllText.Builder
+ subBuilder = null;
+ if (targetCase_ == 6) {
+ subBuilder =
+ ((com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllText)
+ target_)
+ .toBuilder();
+ }
+ target_ =
+ input.readMessage(
+ com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllText
+ .parser(),
+ extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(
+ (com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllText)
+ target_);
+ target_ = subBuilder.buildPartial();
+ }
+ targetCase_ = 6;
+ break;
+ }
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.privacy.dlp.v2.DlpProto
+ .internal_static_google_privacy_dlp_v2_ImageTransformations_ImageTransformation_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.privacy.dlp.v2.DlpProto
+ .internal_static_google_privacy_dlp_v2_ImageTransformations_ImageTransformation_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.class,
+ com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.Builder.class);
+ }
+
+ public interface SelectedInfoTypesOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.privacy.dlp.v2.ImageTransformations.ImageTransformation.SelectedInfoTypes)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ *
+ * Required. InfoTypes to apply the transformation to. Required. Provided InfoType
+ * must be unique within the ImageTransformations message.
+ *
+ *
+ *
+ * repeated .google.privacy.dlp.v2.InfoType info_types = 5 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ java.util.List
+ * Required. InfoTypes to apply the transformation to. Required. Provided InfoType
+ * must be unique within the ImageTransformations message.
+ *
+ *
+ *
+ * repeated .google.privacy.dlp.v2.InfoType info_types = 5 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ com.google.privacy.dlp.v2.InfoType getInfoTypes(int index);
+ /**
+ *
+ *
+ *
+ * Required. InfoTypes to apply the transformation to. Required. Provided InfoType
+ * must be unique within the ImageTransformations message.
+ *
+ *
+ *
+ * repeated .google.privacy.dlp.v2.InfoType info_types = 5 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ int getInfoTypesCount();
+ /**
+ *
+ *
+ *
+ * Required. InfoTypes to apply the transformation to. Required. Provided InfoType
+ * must be unique within the ImageTransformations message.
+ *
+ *
+ *
+ * repeated .google.privacy.dlp.v2.InfoType info_types = 5 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ java.util.List extends com.google.privacy.dlp.v2.InfoTypeOrBuilder>
+ getInfoTypesOrBuilderList();
+ /**
+ *
+ *
+ *
+ * Required. InfoTypes to apply the transformation to. Required. Provided InfoType
+ * must be unique within the ImageTransformations message.
+ *
+ *
+ *
+ * repeated .google.privacy.dlp.v2.InfoType info_types = 5 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ com.google.privacy.dlp.v2.InfoTypeOrBuilder getInfoTypesOrBuilder(int index);
+ }
+ /**
+ *
+ *
+ *
+ * Apply transformation to the selected info_types.
+ *
+ *
+ * Protobuf type {@code
+ * google.privacy.dlp.v2.ImageTransformations.ImageTransformation.SelectedInfoTypes}
+ */
+ public static final class SelectedInfoTypes extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2.ImageTransformations.ImageTransformation.SelectedInfoTypes)
+ SelectedInfoTypesOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use SelectedInfoTypes.newBuilder() to construct.
+ private SelectedInfoTypes(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private SelectedInfoTypes() {
+ infoTypes_ = java.util.Collections.emptyList();
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new SelectedInfoTypes();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private SelectedInfoTypes(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 42:
+ {
+ if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+ infoTypes_ = new java.util.ArrayList
+ * Required. InfoTypes to apply the transformation to. Required. Provided InfoType
+ * must be unique within the ImageTransformations message.
+ *
+ *
+ *
+ * repeated .google.privacy.dlp.v2.InfoType info_types = 5 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ @java.lang.Override
+ public java.util.List
+ * Required. InfoTypes to apply the transformation to. Required. Provided InfoType
+ * must be unique within the ImageTransformations message.
+ *
+ *
+ *
+ * repeated .google.privacy.dlp.v2.InfoType info_types = 5 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ @java.lang.Override
+ public java.util.List extends com.google.privacy.dlp.v2.InfoTypeOrBuilder>
+ getInfoTypesOrBuilderList() {
+ return infoTypes_;
+ }
+ /**
+ *
+ *
+ *
+ * Required. InfoTypes to apply the transformation to. Required. Provided InfoType
+ * must be unique within the ImageTransformations message.
+ *
+ *
+ *
+ * repeated .google.privacy.dlp.v2.InfoType info_types = 5 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ @java.lang.Override
+ public int getInfoTypesCount() {
+ return infoTypes_.size();
+ }
+ /**
+ *
+ *
+ *
+ * Required. InfoTypes to apply the transformation to. Required. Provided InfoType
+ * must be unique within the ImageTransformations message.
+ *
+ *
+ *
+ * repeated .google.privacy.dlp.v2.InfoType info_types = 5 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ @java.lang.Override
+ public com.google.privacy.dlp.v2.InfoType getInfoTypes(int index) {
+ return infoTypes_.get(index);
+ }
+ /**
+ *
+ *
+ *
+ * Required. InfoTypes to apply the transformation to. Required. Provided InfoType
+ * must be unique within the ImageTransformations message.
+ *
+ *
+ *
+ * repeated .google.privacy.dlp.v2.InfoType info_types = 5 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ @java.lang.Override
+ public com.google.privacy.dlp.v2.InfoTypeOrBuilder getInfoTypesOrBuilder(int index) {
+ return infoTypes_.get(index);
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ for (int i = 0; i < infoTypes_.size(); i++) {
+ output.writeMessage(5, infoTypes_.get(i));
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ for (int i = 0; i < infoTypes_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, infoTypes_.get(i));
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj
+ instanceof
+ com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.SelectedInfoTypes)) {
+ return super.equals(obj);
+ }
+ com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.SelectedInfoTypes other =
+ (com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.SelectedInfoTypes)
+ obj;
+
+ if (!getInfoTypesList().equals(other.getInfoTypesList())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (getInfoTypesCount() > 0) {
+ hash = (37 * hash) + INFO_TYPES_FIELD_NUMBER;
+ hash = (53 * hash) + getInfoTypesList().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation
+ .SelectedInfoTypes
+ parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation
+ .SelectedInfoTypes
+ parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation
+ .SelectedInfoTypes
+ parseFrom(com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation
+ .SelectedInfoTypes
+ parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation
+ .SelectedInfoTypes
+ parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation
+ .SelectedInfoTypes
+ parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation
+ .SelectedInfoTypes
+ parseFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation
+ .SelectedInfoTypes
+ parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation
+ .SelectedInfoTypes
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation
+ .SelectedInfoTypes
+ parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation
+ .SelectedInfoTypes
+ parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation
+ .SelectedInfoTypes
+ parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(
+ com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.SelectedInfoTypes
+ prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ *
+ * Apply transformation to the selected info_types.
+ *
+ *
+ * Protobuf type {@code
+ * google.privacy.dlp.v2.ImageTransformations.ImageTransformation.SelectedInfoTypes}
+ */
+ public static final class Builder
+ extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Required. InfoTypes to apply the transformation to. Required. Provided InfoType
+ * must be unique within the ImageTransformations message.
+ *
+ *
+ *
+ * repeated .google.privacy.dlp.v2.InfoType info_types = 5 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public java.util.List
+ * Required. InfoTypes to apply the transformation to. Required. Provided InfoType
+ * must be unique within the ImageTransformations message.
+ *
+ *
+ *
+ * repeated .google.privacy.dlp.v2.InfoType info_types = 5 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public int getInfoTypesCount() {
+ if (infoTypesBuilder_ == null) {
+ return infoTypes_.size();
+ } else {
+ return infoTypesBuilder_.getCount();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Required. InfoTypes to apply the transformation to. Required. Provided InfoType
+ * must be unique within the ImageTransformations message.
+ *
+ *
+ *
+ * repeated .google.privacy.dlp.v2.InfoType info_types = 5 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public com.google.privacy.dlp.v2.InfoType getInfoTypes(int index) {
+ if (infoTypesBuilder_ == null) {
+ return infoTypes_.get(index);
+ } else {
+ return infoTypesBuilder_.getMessage(index);
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Required. InfoTypes to apply the transformation to. Required. Provided InfoType
+ * must be unique within the ImageTransformations message.
+ *
+ *
+ *
+ * repeated .google.privacy.dlp.v2.InfoType info_types = 5 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder setInfoTypes(int index, com.google.privacy.dlp.v2.InfoType value) {
+ if (infoTypesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureInfoTypesIsMutable();
+ infoTypes_.set(index, value);
+ onChanged();
+ } else {
+ infoTypesBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Required. InfoTypes to apply the transformation to. Required. Provided InfoType
+ * must be unique within the ImageTransformations message.
+ *
+ *
+ *
+ * repeated .google.privacy.dlp.v2.InfoType info_types = 5 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder setInfoTypes(
+ int index, com.google.privacy.dlp.v2.InfoType.Builder builderForValue) {
+ if (infoTypesBuilder_ == null) {
+ ensureInfoTypesIsMutable();
+ infoTypes_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ infoTypesBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Required. InfoTypes to apply the transformation to. Required. Provided InfoType
+ * must be unique within the ImageTransformations message.
+ *
+ *
+ *
+ * repeated .google.privacy.dlp.v2.InfoType info_types = 5 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder addInfoTypes(com.google.privacy.dlp.v2.InfoType value) {
+ if (infoTypesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureInfoTypesIsMutable();
+ infoTypes_.add(value);
+ onChanged();
+ } else {
+ infoTypesBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Required. InfoTypes to apply the transformation to. Required. Provided InfoType
+ * must be unique within the ImageTransformations message.
+ *
+ *
+ *
+ * repeated .google.privacy.dlp.v2.InfoType info_types = 5 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder addInfoTypes(int index, com.google.privacy.dlp.v2.InfoType value) {
+ if (infoTypesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureInfoTypesIsMutable();
+ infoTypes_.add(index, value);
+ onChanged();
+ } else {
+ infoTypesBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Required. InfoTypes to apply the transformation to. Required. Provided InfoType
+ * must be unique within the ImageTransformations message.
+ *
+ *
+ *
+ * repeated .google.privacy.dlp.v2.InfoType info_types = 5 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder addInfoTypes(com.google.privacy.dlp.v2.InfoType.Builder builderForValue) {
+ if (infoTypesBuilder_ == null) {
+ ensureInfoTypesIsMutable();
+ infoTypes_.add(builderForValue.build());
+ onChanged();
+ } else {
+ infoTypesBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Required. InfoTypes to apply the transformation to. Required. Provided InfoType
+ * must be unique within the ImageTransformations message.
+ *
+ *
+ *
+ * repeated .google.privacy.dlp.v2.InfoType info_types = 5 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder addInfoTypes(
+ int index, com.google.privacy.dlp.v2.InfoType.Builder builderForValue) {
+ if (infoTypesBuilder_ == null) {
+ ensureInfoTypesIsMutable();
+ infoTypes_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ infoTypesBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Required. InfoTypes to apply the transformation to. Required. Provided InfoType
+ * must be unique within the ImageTransformations message.
+ *
+ *
+ *
+ * repeated .google.privacy.dlp.v2.InfoType info_types = 5 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder addAllInfoTypes(
+ java.lang.Iterable extends com.google.privacy.dlp.v2.InfoType> values) {
+ if (infoTypesBuilder_ == null) {
+ ensureInfoTypesIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, infoTypes_);
+ onChanged();
+ } else {
+ infoTypesBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Required. InfoTypes to apply the transformation to. Required. Provided InfoType
+ * must be unique within the ImageTransformations message.
+ *
+ *
+ *
+ * repeated .google.privacy.dlp.v2.InfoType info_types = 5 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder clearInfoTypes() {
+ if (infoTypesBuilder_ == null) {
+ infoTypes_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ infoTypesBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Required. InfoTypes to apply the transformation to. Required. Provided InfoType
+ * must be unique within the ImageTransformations message.
+ *
+ *
+ *
+ * repeated .google.privacy.dlp.v2.InfoType info_types = 5 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder removeInfoTypes(int index) {
+ if (infoTypesBuilder_ == null) {
+ ensureInfoTypesIsMutable();
+ infoTypes_.remove(index);
+ onChanged();
+ } else {
+ infoTypesBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Required. InfoTypes to apply the transformation to. Required. Provided InfoType
+ * must be unique within the ImageTransformations message.
+ *
+ *
+ *
+ * repeated .google.privacy.dlp.v2.InfoType info_types = 5 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public com.google.privacy.dlp.v2.InfoType.Builder getInfoTypesBuilder(int index) {
+ return getInfoTypesFieldBuilder().getBuilder(index);
+ }
+ /**
+ *
+ *
+ *
+ * Required. InfoTypes to apply the transformation to. Required. Provided InfoType
+ * must be unique within the ImageTransformations message.
+ *
+ *
+ *
+ * repeated .google.privacy.dlp.v2.InfoType info_types = 5 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public com.google.privacy.dlp.v2.InfoTypeOrBuilder getInfoTypesOrBuilder(int index) {
+ if (infoTypesBuilder_ == null) {
+ return infoTypes_.get(index);
+ } else {
+ return infoTypesBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Required. InfoTypes to apply the transformation to. Required. Provided InfoType
+ * must be unique within the ImageTransformations message.
+ *
+ *
+ *
+ * repeated .google.privacy.dlp.v2.InfoType info_types = 5 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public java.util.List extends com.google.privacy.dlp.v2.InfoTypeOrBuilder>
+ getInfoTypesOrBuilderList() {
+ if (infoTypesBuilder_ != null) {
+ return infoTypesBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(infoTypes_);
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Required. InfoTypes to apply the transformation to. Required. Provided InfoType
+ * must be unique within the ImageTransformations message.
+ *
+ *
+ *
+ * repeated .google.privacy.dlp.v2.InfoType info_types = 5 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public com.google.privacy.dlp.v2.InfoType.Builder addInfoTypesBuilder() {
+ return getInfoTypesFieldBuilder()
+ .addBuilder(com.google.privacy.dlp.v2.InfoType.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ *
+ * Required. InfoTypes to apply the transformation to. Required. Provided InfoType
+ * must be unique within the ImageTransformations message.
+ *
+ *
+ *
+ * repeated .google.privacy.dlp.v2.InfoType info_types = 5 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public com.google.privacy.dlp.v2.InfoType.Builder addInfoTypesBuilder(int index) {
+ return getInfoTypesFieldBuilder()
+ .addBuilder(index, com.google.privacy.dlp.v2.InfoType.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ *
+ * Required. InfoTypes to apply the transformation to. Required. Provided InfoType
+ * must be unique within the ImageTransformations message.
+ *
+ *
+ *
+ * repeated .google.privacy.dlp.v2.InfoType info_types = 5 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public java.util.List
+ * Apply transformation to all findings.
+ *
+ *
+ * Protobuf type {@code
+ * google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllInfoTypes}
+ */
+ public static final class AllInfoTypes extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllInfoTypes)
+ AllInfoTypesOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use AllInfoTypes.newBuilder() to construct.
+ private AllInfoTypes(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private AllInfoTypes() {}
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new AllInfoTypes();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private AllInfoTypes(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.privacy.dlp.v2.DlpProto
+ .internal_static_google_privacy_dlp_v2_ImageTransformations_ImageTransformation_AllInfoTypes_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.privacy.dlp.v2.DlpProto
+ .internal_static_google_privacy_dlp_v2_ImageTransformations_ImageTransformation_AllInfoTypes_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllInfoTypes
+ .class,
+ com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllInfoTypes
+ .Builder.class);
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj
+ instanceof
+ com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllInfoTypes)) {
+ return super.equals(obj);
+ }
+ com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllInfoTypes other =
+ (com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllInfoTypes) obj;
+
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllInfoTypes
+ parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllInfoTypes
+ parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllInfoTypes
+ parseFrom(com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllInfoTypes
+ parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllInfoTypes
+ parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllInfoTypes
+ parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllInfoTypes
+ parseFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllInfoTypes
+ parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllInfoTypes
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllInfoTypes
+ parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllInfoTypes
+ parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllInfoTypes
+ parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(
+ com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllInfoTypes
+ prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ *
+ * Apply transformation to all findings.
+ *
+ *
+ * Protobuf type {@code
+ * google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllInfoTypes}
+ */
+ public static final class Builder
+ extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Apply to all text.
+ *
+ *
+ * Protobuf type {@code google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllText}
+ */
+ public static final class AllText extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllText)
+ AllTextOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use AllText.newBuilder() to construct.
+ private AllText(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private AllText() {}
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new AllText();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private AllText(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.privacy.dlp.v2.DlpProto
+ .internal_static_google_privacy_dlp_v2_ImageTransformations_ImageTransformation_AllText_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.privacy.dlp.v2.DlpProto
+ .internal_static_google_privacy_dlp_v2_ImageTransformations_ImageTransformation_AllText_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllText.class,
+ com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllText.Builder
+ .class);
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj
+ instanceof
+ com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllText)) {
+ return super.equals(obj);
+ }
+ com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllText other =
+ (com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllText) obj;
+
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllText
+ parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllText
+ parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllText
+ parseFrom(com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllText
+ parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllText
+ parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllText
+ parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllText
+ parseFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllText
+ parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllText
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllText
+ parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllText
+ parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllText
+ parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(
+ com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllText prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ *
+ * Apply to all text.
+ *
+ *
+ * Protobuf type {@code
+ * google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllText}
+ */
+ public static final class Builder
+ extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Apply transformation to the selected info_types.
+ *
+ *
+ *
+ * .google.privacy.dlp.v2.ImageTransformations.ImageTransformation.SelectedInfoTypes selected_info_types = 4;
+ *
+ *
+ * @return Whether the selectedInfoTypes field is set.
+ */
+ @java.lang.Override
+ public boolean hasSelectedInfoTypes() {
+ return targetCase_ == 4;
+ }
+ /**
+ *
+ *
+ *
+ * Apply transformation to the selected info_types.
+ *
+ *
+ *
+ * .google.privacy.dlp.v2.ImageTransformations.ImageTransformation.SelectedInfoTypes selected_info_types = 4;
+ *
+ *
+ * @return The selectedInfoTypes.
+ */
+ @java.lang.Override
+ public com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.SelectedInfoTypes
+ getSelectedInfoTypes() {
+ if (targetCase_ == 4) {
+ return (com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation
+ .SelectedInfoTypes)
+ target_;
+ }
+ return com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.SelectedInfoTypes
+ .getDefaultInstance();
+ }
+ /**
+ *
+ *
+ *
+ * Apply transformation to the selected info_types.
+ *
+ *
+ *
+ * .google.privacy.dlp.v2.ImageTransformations.ImageTransformation.SelectedInfoTypes selected_info_types = 4;
+ *
+ */
+ @java.lang.Override
+ public com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation
+ .SelectedInfoTypesOrBuilder
+ getSelectedInfoTypesOrBuilder() {
+ if (targetCase_ == 4) {
+ return (com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation
+ .SelectedInfoTypes)
+ target_;
+ }
+ return com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.SelectedInfoTypes
+ .getDefaultInstance();
+ }
+
+ public static final int ALL_INFO_TYPES_FIELD_NUMBER = 5;
+ /**
+ *
+ *
+ *
+ * Apply transformation to all findings not specified in other
+ * ImageTransformation's selected_info_types. Only one instance is allowed
+ * within the ImageTransformations message.
+ *
+ *
+ *
+ * .google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllInfoTypes all_info_types = 5;
+ *
+ *
+ * @return Whether the allInfoTypes field is set.
+ */
+ @java.lang.Override
+ public boolean hasAllInfoTypes() {
+ return targetCase_ == 5;
+ }
+ /**
+ *
+ *
+ *
+ * Apply transformation to all findings not specified in other
+ * ImageTransformation's selected_info_types. Only one instance is allowed
+ * within the ImageTransformations message.
+ *
+ *
+ *
+ * .google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllInfoTypes all_info_types = 5;
+ *
+ *
+ * @return The allInfoTypes.
+ */
+ @java.lang.Override
+ public com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllInfoTypes
+ getAllInfoTypes() {
+ if (targetCase_ == 5) {
+ return (com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllInfoTypes)
+ target_;
+ }
+ return com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllInfoTypes
+ .getDefaultInstance();
+ }
+ /**
+ *
+ *
+ *
+ * Apply transformation to all findings not specified in other
+ * ImageTransformation's selected_info_types. Only one instance is allowed
+ * within the ImageTransformations message.
+ *
+ *
+ *
+ * .google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllInfoTypes all_info_types = 5;
+ *
+ */
+ @java.lang.Override
+ public com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllInfoTypesOrBuilder
+ getAllInfoTypesOrBuilder() {
+ if (targetCase_ == 5) {
+ return (com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllInfoTypes)
+ target_;
+ }
+ return com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllInfoTypes
+ .getDefaultInstance();
+ }
+
+ public static final int ALL_TEXT_FIELD_NUMBER = 6;
+ /**
+ *
+ *
+ *
+ * Apply transformation to all text that doesn't match an infoType. Only
+ * one instance is allowed within the ImageTransformations message.
+ *
+ *
+ * .google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllText all_text = 6;
+ *
+ *
+ * @return Whether the allText field is set.
+ */
+ @java.lang.Override
+ public boolean hasAllText() {
+ return targetCase_ == 6;
+ }
+ /**
+ *
+ *
+ *
+ * Apply transformation to all text that doesn't match an infoType. Only
+ * one instance is allowed within the ImageTransformations message.
+ *
+ *
+ * .google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllText all_text = 6;
+ *
+ *
+ * @return The allText.
+ */
+ @java.lang.Override
+ public com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllText getAllText() {
+ if (targetCase_ == 6) {
+ return (com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllText) target_;
+ }
+ return com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllText
+ .getDefaultInstance();
+ }
+ /**
+ *
+ *
+ *
+ * Apply transformation to all text that doesn't match an infoType. Only
+ * one instance is allowed within the ImageTransformations message.
+ *
+ *
+ * .google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllText all_text = 6;
+ *
+ */
+ @java.lang.Override
+ public com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllTextOrBuilder
+ getAllTextOrBuilder() {
+ if (targetCase_ == 6) {
+ return (com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllText) target_;
+ }
+ return com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllText
+ .getDefaultInstance();
+ }
+
+ public static final int REDACTION_COLOR_FIELD_NUMBER = 3;
+ private com.google.privacy.dlp.v2.Color redactionColor_;
+ /**
+ *
+ *
+ *
+ * The color to use when redacting content from an image. If not
+ * specified, the default is black.
+ *
+ *
+ * .google.privacy.dlp.v2.Color redaction_color = 3;
+ *
+ * @return Whether the redactionColor field is set.
+ */
+ @java.lang.Override
+ public boolean hasRedactionColor() {
+ return redactionColor_ != null;
+ }
+ /**
+ *
+ *
+ *
+ * The color to use when redacting content from an image. If not
+ * specified, the default is black.
+ *
+ *
+ * .google.privacy.dlp.v2.Color redaction_color = 3;
+ *
+ * @return The redactionColor.
+ */
+ @java.lang.Override
+ public com.google.privacy.dlp.v2.Color getRedactionColor() {
+ return redactionColor_ == null
+ ? com.google.privacy.dlp.v2.Color.getDefaultInstance()
+ : redactionColor_;
+ }
+ /**
+ *
+ *
+ *
+ * The color to use when redacting content from an image. If not
+ * specified, the default is black.
+ *
+ *
+ * .google.privacy.dlp.v2.Color redaction_color = 3;
+ */
+ @java.lang.Override
+ public com.google.privacy.dlp.v2.ColorOrBuilder getRedactionColorOrBuilder() {
+ return getRedactionColor();
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (redactionColor_ != null) {
+ output.writeMessage(3, getRedactionColor());
+ }
+ if (targetCase_ == 4) {
+ output.writeMessage(
+ 4,
+ (com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.SelectedInfoTypes)
+ target_);
+ }
+ if (targetCase_ == 5) {
+ output.writeMessage(
+ 5,
+ (com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllInfoTypes)
+ target_);
+ }
+ if (targetCase_ == 6) {
+ output.writeMessage(
+ 6,
+ (com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllText) target_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (redactionColor_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getRedactionColor());
+ }
+ if (targetCase_ == 4) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 4,
+ (com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation
+ .SelectedInfoTypes)
+ target_);
+ }
+ if (targetCase_ == 5) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 5,
+ (com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllInfoTypes)
+ target_);
+ }
+ if (targetCase_ == 6) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 6,
+ (com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllText)
+ target_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation)) {
+ return super.equals(obj);
+ }
+ com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation other =
+ (com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation) obj;
+
+ if (hasRedactionColor() != other.hasRedactionColor()) return false;
+ if (hasRedactionColor()) {
+ if (!getRedactionColor().equals(other.getRedactionColor())) return false;
+ }
+ if (!getTargetCase().equals(other.getTargetCase())) return false;
+ switch (targetCase_) {
+ case 4:
+ if (!getSelectedInfoTypes().equals(other.getSelectedInfoTypes())) return false;
+ break;
+ case 5:
+ if (!getAllInfoTypes().equals(other.getAllInfoTypes())) return false;
+ break;
+ case 6:
+ if (!getAllText().equals(other.getAllText())) return false;
+ break;
+ case 0:
+ default:
+ }
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasRedactionColor()) {
+ hash = (37 * hash) + REDACTION_COLOR_FIELD_NUMBER;
+ hash = (53 * hash) + getRedactionColor().hashCode();
+ }
+ switch (targetCase_) {
+ case 4:
+ hash = (37 * hash) + SELECTED_INFO_TYPES_FIELD_NUMBER;
+ hash = (53 * hash) + getSelectedInfoTypes().hashCode();
+ break;
+ case 5:
+ hash = (37 * hash) + ALL_INFO_TYPES_FIELD_NUMBER;
+ hash = (53 * hash) + getAllInfoTypes().hashCode();
+ break;
+ case 6:
+ hash = (37 * hash) + ALL_TEXT_FIELD_NUMBER;
+ hash = (53 * hash) + getAllText().hashCode();
+ break;
+ case 0:
+ default:
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation parseFrom(
+ byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation
+ parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(
+ com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ *
+ * Configuration for determining how redaction of images should occur.
+ *
+ *
+ * Protobuf type {@code google.privacy.dlp.v2.ImageTransformations.ImageTransformation}
+ */
+ public static final class Builder
+ extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Apply transformation to the selected info_types.
+ *
+ *
+ *
+ * .google.privacy.dlp.v2.ImageTransformations.ImageTransformation.SelectedInfoTypes selected_info_types = 4;
+ *
+ *
+ * @return Whether the selectedInfoTypes field is set.
+ */
+ @java.lang.Override
+ public boolean hasSelectedInfoTypes() {
+ return targetCase_ == 4;
+ }
+ /**
+ *
+ *
+ *
+ * Apply transformation to the selected info_types.
+ *
+ *
+ *
+ * .google.privacy.dlp.v2.ImageTransformations.ImageTransformation.SelectedInfoTypes selected_info_types = 4;
+ *
+ *
+ * @return The selectedInfoTypes.
+ */
+ @java.lang.Override
+ public com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.SelectedInfoTypes
+ getSelectedInfoTypes() {
+ if (selectedInfoTypesBuilder_ == null) {
+ if (targetCase_ == 4) {
+ return (com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation
+ .SelectedInfoTypes)
+ target_;
+ }
+ return com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation
+ .SelectedInfoTypes.getDefaultInstance();
+ } else {
+ if (targetCase_ == 4) {
+ return selectedInfoTypesBuilder_.getMessage();
+ }
+ return com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation
+ .SelectedInfoTypes.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Apply transformation to the selected info_types.
+ *
+ *
+ *
+ * .google.privacy.dlp.v2.ImageTransformations.ImageTransformation.SelectedInfoTypes selected_info_types = 4;
+ *
+ */
+ public Builder setSelectedInfoTypes(
+ com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.SelectedInfoTypes
+ value) {
+ if (selectedInfoTypesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ target_ = value;
+ onChanged();
+ } else {
+ selectedInfoTypesBuilder_.setMessage(value);
+ }
+ targetCase_ = 4;
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Apply transformation to the selected info_types.
+ *
+ *
+ *
+ * .google.privacy.dlp.v2.ImageTransformations.ImageTransformation.SelectedInfoTypes selected_info_types = 4;
+ *
+ */
+ public Builder setSelectedInfoTypes(
+ com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.SelectedInfoTypes
+ .Builder
+ builderForValue) {
+ if (selectedInfoTypesBuilder_ == null) {
+ target_ = builderForValue.build();
+ onChanged();
+ } else {
+ selectedInfoTypesBuilder_.setMessage(builderForValue.build());
+ }
+ targetCase_ = 4;
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Apply transformation to the selected info_types.
+ *
+ *
+ *
+ * .google.privacy.dlp.v2.ImageTransformations.ImageTransformation.SelectedInfoTypes selected_info_types = 4;
+ *
+ */
+ public Builder mergeSelectedInfoTypes(
+ com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.SelectedInfoTypes
+ value) {
+ if (selectedInfoTypesBuilder_ == null) {
+ if (targetCase_ == 4
+ && target_
+ != com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation
+ .SelectedInfoTypes.getDefaultInstance()) {
+ target_ =
+ com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.SelectedInfoTypes
+ .newBuilder(
+ (com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation
+ .SelectedInfoTypes)
+ target_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ target_ = value;
+ }
+ onChanged();
+ } else {
+ if (targetCase_ == 4) {
+ selectedInfoTypesBuilder_.mergeFrom(value);
+ } else {
+ selectedInfoTypesBuilder_.setMessage(value);
+ }
+ }
+ targetCase_ = 4;
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Apply transformation to the selected info_types.
+ *
+ *
+ *
+ * .google.privacy.dlp.v2.ImageTransformations.ImageTransformation.SelectedInfoTypes selected_info_types = 4;
+ *
+ */
+ public Builder clearSelectedInfoTypes() {
+ if (selectedInfoTypesBuilder_ == null) {
+ if (targetCase_ == 4) {
+ targetCase_ = 0;
+ target_ = null;
+ onChanged();
+ }
+ } else {
+ if (targetCase_ == 4) {
+ targetCase_ = 0;
+ target_ = null;
+ }
+ selectedInfoTypesBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Apply transformation to the selected info_types.
+ *
+ *
+ *
+ * .google.privacy.dlp.v2.ImageTransformations.ImageTransformation.SelectedInfoTypes selected_info_types = 4;
+ *
+ */
+ public com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.SelectedInfoTypes
+ .Builder
+ getSelectedInfoTypesBuilder() {
+ return getSelectedInfoTypesFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ *
+ * Apply transformation to the selected info_types.
+ *
+ *
+ *
+ * .google.privacy.dlp.v2.ImageTransformations.ImageTransformation.SelectedInfoTypes selected_info_types = 4;
+ *
+ */
+ @java.lang.Override
+ public com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation
+ .SelectedInfoTypesOrBuilder
+ getSelectedInfoTypesOrBuilder() {
+ if ((targetCase_ == 4) && (selectedInfoTypesBuilder_ != null)) {
+ return selectedInfoTypesBuilder_.getMessageOrBuilder();
+ } else {
+ if (targetCase_ == 4) {
+ return (com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation
+ .SelectedInfoTypes)
+ target_;
+ }
+ return com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation
+ .SelectedInfoTypes.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Apply transformation to the selected info_types.
+ *
+ *
+ *
+ * .google.privacy.dlp.v2.ImageTransformations.ImageTransformation.SelectedInfoTypes selected_info_types = 4;
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.SelectedInfoTypes,
+ com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.SelectedInfoTypes
+ .Builder,
+ com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation
+ .SelectedInfoTypesOrBuilder>
+ getSelectedInfoTypesFieldBuilder() {
+ if (selectedInfoTypesBuilder_ == null) {
+ if (!(targetCase_ == 4)) {
+ target_ =
+ com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.SelectedInfoTypes
+ .getDefaultInstance();
+ }
+ selectedInfoTypesBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation
+ .SelectedInfoTypes,
+ com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation
+ .SelectedInfoTypes.Builder,
+ com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation
+ .SelectedInfoTypesOrBuilder>(
+ (com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation
+ .SelectedInfoTypes)
+ target_,
+ getParentForChildren(),
+ isClean());
+ target_ = null;
+ }
+ targetCase_ = 4;
+ onChanged();
+ ;
+ return selectedInfoTypesBuilder_;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllInfoTypes,
+ com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllInfoTypes
+ .Builder,
+ com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation
+ .AllInfoTypesOrBuilder>
+ allInfoTypesBuilder_;
+ /**
+ *
+ *
+ *
+ * Apply transformation to all findings not specified in other
+ * ImageTransformation's selected_info_types. Only one instance is allowed
+ * within the ImageTransformations message.
+ *
+ *
+ *
+ * .google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllInfoTypes all_info_types = 5;
+ *
+ *
+ * @return Whether the allInfoTypes field is set.
+ */
+ @java.lang.Override
+ public boolean hasAllInfoTypes() {
+ return targetCase_ == 5;
+ }
+ /**
+ *
+ *
+ *
+ * Apply transformation to all findings not specified in other
+ * ImageTransformation's selected_info_types. Only one instance is allowed
+ * within the ImageTransformations message.
+ *
+ *
+ *
+ * .google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllInfoTypes all_info_types = 5;
+ *
+ *
+ * @return The allInfoTypes.
+ */
+ @java.lang.Override
+ public com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllInfoTypes
+ getAllInfoTypes() {
+ if (allInfoTypesBuilder_ == null) {
+ if (targetCase_ == 5) {
+ return (com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllInfoTypes)
+ target_;
+ }
+ return com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllInfoTypes
+ .getDefaultInstance();
+ } else {
+ if (targetCase_ == 5) {
+ return allInfoTypesBuilder_.getMessage();
+ }
+ return com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllInfoTypes
+ .getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Apply transformation to all findings not specified in other
+ * ImageTransformation's selected_info_types. Only one instance is allowed
+ * within the ImageTransformations message.
+ *
+ *
+ *
+ * .google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllInfoTypes all_info_types = 5;
+ *
+ */
+ public Builder setAllInfoTypes(
+ com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllInfoTypes value) {
+ if (allInfoTypesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ target_ = value;
+ onChanged();
+ } else {
+ allInfoTypesBuilder_.setMessage(value);
+ }
+ targetCase_ = 5;
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Apply transformation to all findings not specified in other
+ * ImageTransformation's selected_info_types. Only one instance is allowed
+ * within the ImageTransformations message.
+ *
+ *
+ *
+ * .google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllInfoTypes all_info_types = 5;
+ *
+ */
+ public Builder setAllInfoTypes(
+ com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllInfoTypes.Builder
+ builderForValue) {
+ if (allInfoTypesBuilder_ == null) {
+ target_ = builderForValue.build();
+ onChanged();
+ } else {
+ allInfoTypesBuilder_.setMessage(builderForValue.build());
+ }
+ targetCase_ = 5;
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Apply transformation to all findings not specified in other
+ * ImageTransformation's selected_info_types. Only one instance is allowed
+ * within the ImageTransformations message.
+ *
+ *
+ *
+ * .google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllInfoTypes all_info_types = 5;
+ *
+ */
+ public Builder mergeAllInfoTypes(
+ com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllInfoTypes value) {
+ if (allInfoTypesBuilder_ == null) {
+ if (targetCase_ == 5
+ && target_
+ != com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllInfoTypes
+ .getDefaultInstance()) {
+ target_ =
+ com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllInfoTypes
+ .newBuilder(
+ (com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation
+ .AllInfoTypes)
+ target_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ target_ = value;
+ }
+ onChanged();
+ } else {
+ if (targetCase_ == 5) {
+ allInfoTypesBuilder_.mergeFrom(value);
+ } else {
+ allInfoTypesBuilder_.setMessage(value);
+ }
+ }
+ targetCase_ = 5;
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Apply transformation to all findings not specified in other
+ * ImageTransformation's selected_info_types. Only one instance is allowed
+ * within the ImageTransformations message.
+ *
+ *
+ *
+ * .google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllInfoTypes all_info_types = 5;
+ *
+ */
+ public Builder clearAllInfoTypes() {
+ if (allInfoTypesBuilder_ == null) {
+ if (targetCase_ == 5) {
+ targetCase_ = 0;
+ target_ = null;
+ onChanged();
+ }
+ } else {
+ if (targetCase_ == 5) {
+ targetCase_ = 0;
+ target_ = null;
+ }
+ allInfoTypesBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Apply transformation to all findings not specified in other
+ * ImageTransformation's selected_info_types. Only one instance is allowed
+ * within the ImageTransformations message.
+ *
+ *
+ *
+ * .google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllInfoTypes all_info_types = 5;
+ *
+ */
+ public com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllInfoTypes.Builder
+ getAllInfoTypesBuilder() {
+ return getAllInfoTypesFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ *
+ * Apply transformation to all findings not specified in other
+ * ImageTransformation's selected_info_types. Only one instance is allowed
+ * within the ImageTransformations message.
+ *
+ *
+ *
+ * .google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllInfoTypes all_info_types = 5;
+ *
+ */
+ @java.lang.Override
+ public com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation
+ .AllInfoTypesOrBuilder
+ getAllInfoTypesOrBuilder() {
+ if ((targetCase_ == 5) && (allInfoTypesBuilder_ != null)) {
+ return allInfoTypesBuilder_.getMessageOrBuilder();
+ } else {
+ if (targetCase_ == 5) {
+ return (com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllInfoTypes)
+ target_;
+ }
+ return com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllInfoTypes
+ .getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Apply transformation to all findings not specified in other
+ * ImageTransformation's selected_info_types. Only one instance is allowed
+ * within the ImageTransformations message.
+ *
+ *
+ *
+ * .google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllInfoTypes all_info_types = 5;
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllInfoTypes,
+ com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllInfoTypes
+ .Builder,
+ com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation
+ .AllInfoTypesOrBuilder>
+ getAllInfoTypesFieldBuilder() {
+ if (allInfoTypesBuilder_ == null) {
+ if (!(targetCase_ == 5)) {
+ target_ =
+ com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllInfoTypes
+ .getDefaultInstance();
+ }
+ allInfoTypesBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllInfoTypes,
+ com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllInfoTypes
+ .Builder,
+ com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation
+ .AllInfoTypesOrBuilder>(
+ (com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllInfoTypes)
+ target_,
+ getParentForChildren(),
+ isClean());
+ target_ = null;
+ }
+ targetCase_ = 5;
+ onChanged();
+ ;
+ return allInfoTypesBuilder_;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllText,
+ com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllText.Builder,
+ com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllTextOrBuilder>
+ allTextBuilder_;
+ /**
+ *
+ *
+ *
+ * Apply transformation to all text that doesn't match an infoType. Only
+ * one instance is allowed within the ImageTransformations message.
+ *
+ *
+ * .google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllText all_text = 6;
+ *
+ *
+ * @return Whether the allText field is set.
+ */
+ @java.lang.Override
+ public boolean hasAllText() {
+ return targetCase_ == 6;
+ }
+ /**
+ *
+ *
+ *
+ * Apply transformation to all text that doesn't match an infoType. Only
+ * one instance is allowed within the ImageTransformations message.
+ *
+ *
+ * .google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllText all_text = 6;
+ *
+ *
+ * @return The allText.
+ */
+ @java.lang.Override
+ public com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllText
+ getAllText() {
+ if (allTextBuilder_ == null) {
+ if (targetCase_ == 6) {
+ return (com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllText)
+ target_;
+ }
+ return com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllText
+ .getDefaultInstance();
+ } else {
+ if (targetCase_ == 6) {
+ return allTextBuilder_.getMessage();
+ }
+ return com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllText
+ .getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Apply transformation to all text that doesn't match an infoType. Only
+ * one instance is allowed within the ImageTransformations message.
+ *
+ *
+ * .google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllText all_text = 6;
+ *
+ */
+ public Builder setAllText(
+ com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllText value) {
+ if (allTextBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ target_ = value;
+ onChanged();
+ } else {
+ allTextBuilder_.setMessage(value);
+ }
+ targetCase_ = 6;
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Apply transformation to all text that doesn't match an infoType. Only
+ * one instance is allowed within the ImageTransformations message.
+ *
+ *
+ * .google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllText all_text = 6;
+ *
+ */
+ public Builder setAllText(
+ com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllText.Builder
+ builderForValue) {
+ if (allTextBuilder_ == null) {
+ target_ = builderForValue.build();
+ onChanged();
+ } else {
+ allTextBuilder_.setMessage(builderForValue.build());
+ }
+ targetCase_ = 6;
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Apply transformation to all text that doesn't match an infoType. Only
+ * one instance is allowed within the ImageTransformations message.
+ *
+ *
+ * .google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllText all_text = 6;
+ *
+ */
+ public Builder mergeAllText(
+ com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllText value) {
+ if (allTextBuilder_ == null) {
+ if (targetCase_ == 6
+ && target_
+ != com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllText
+ .getDefaultInstance()) {
+ target_ =
+ com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllText
+ .newBuilder(
+ (com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllText)
+ target_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ target_ = value;
+ }
+ onChanged();
+ } else {
+ if (targetCase_ == 6) {
+ allTextBuilder_.mergeFrom(value);
+ } else {
+ allTextBuilder_.setMessage(value);
+ }
+ }
+ targetCase_ = 6;
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Apply transformation to all text that doesn't match an infoType. Only
+ * one instance is allowed within the ImageTransformations message.
+ *
+ *
+ * .google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllText all_text = 6;
+ *
+ */
+ public Builder clearAllText() {
+ if (allTextBuilder_ == null) {
+ if (targetCase_ == 6) {
+ targetCase_ = 0;
+ target_ = null;
+ onChanged();
+ }
+ } else {
+ if (targetCase_ == 6) {
+ targetCase_ = 0;
+ target_ = null;
+ }
+ allTextBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Apply transformation to all text that doesn't match an infoType. Only
+ * one instance is allowed within the ImageTransformations message.
+ *
+ *
+ * .google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllText all_text = 6;
+ *
+ */
+ public com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllText.Builder
+ getAllTextBuilder() {
+ return getAllTextFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ *
+ * Apply transformation to all text that doesn't match an infoType. Only
+ * one instance is allowed within the ImageTransformations message.
+ *
+ *
+ * .google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllText all_text = 6;
+ *
+ */
+ @java.lang.Override
+ public com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllTextOrBuilder
+ getAllTextOrBuilder() {
+ if ((targetCase_ == 6) && (allTextBuilder_ != null)) {
+ return allTextBuilder_.getMessageOrBuilder();
+ } else {
+ if (targetCase_ == 6) {
+ return (com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllText)
+ target_;
+ }
+ return com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllText
+ .getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Apply transformation to all text that doesn't match an infoType. Only
+ * one instance is allowed within the ImageTransformations message.
+ *
+ *
+ * .google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllText all_text = 6;
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllText,
+ com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllText.Builder,
+ com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllTextOrBuilder>
+ getAllTextFieldBuilder() {
+ if (allTextBuilder_ == null) {
+ if (!(targetCase_ == 6)) {
+ target_ =
+ com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllText
+ .getDefaultInstance();
+ }
+ allTextBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllText,
+ com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllText
+ .Builder,
+ com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation
+ .AllTextOrBuilder>(
+ (com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllText)
+ target_,
+ getParentForChildren(),
+ isClean());
+ target_ = null;
+ }
+ targetCase_ = 6;
+ onChanged();
+ ;
+ return allTextBuilder_;
+ }
+
+ private com.google.privacy.dlp.v2.Color redactionColor_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.privacy.dlp.v2.Color,
+ com.google.privacy.dlp.v2.Color.Builder,
+ com.google.privacy.dlp.v2.ColorOrBuilder>
+ redactionColorBuilder_;
+ /**
+ *
+ *
+ *
+ * The color to use when redacting content from an image. If not
+ * specified, the default is black.
+ *
+ *
+ * .google.privacy.dlp.v2.Color redaction_color = 3;
+ *
+ * @return Whether the redactionColor field is set.
+ */
+ public boolean hasRedactionColor() {
+ return redactionColorBuilder_ != null || redactionColor_ != null;
+ }
+ /**
+ *
+ *
+ *
+ * The color to use when redacting content from an image. If not
+ * specified, the default is black.
+ *
+ *
+ * .google.privacy.dlp.v2.Color redaction_color = 3;
+ *
+ * @return The redactionColor.
+ */
+ public com.google.privacy.dlp.v2.Color getRedactionColor() {
+ if (redactionColorBuilder_ == null) {
+ return redactionColor_ == null
+ ? com.google.privacy.dlp.v2.Color.getDefaultInstance()
+ : redactionColor_;
+ } else {
+ return redactionColorBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The color to use when redacting content from an image. If not
+ * specified, the default is black.
+ *
+ *
+ * .google.privacy.dlp.v2.Color redaction_color = 3;
+ */
+ public Builder setRedactionColor(com.google.privacy.dlp.v2.Color value) {
+ if (redactionColorBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ redactionColor_ = value;
+ onChanged();
+ } else {
+ redactionColorBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The color to use when redacting content from an image. If not
+ * specified, the default is black.
+ *
+ *
+ * .google.privacy.dlp.v2.Color redaction_color = 3;
+ */
+ public Builder setRedactionColor(com.google.privacy.dlp.v2.Color.Builder builderForValue) {
+ if (redactionColorBuilder_ == null) {
+ redactionColor_ = builderForValue.build();
+ onChanged();
+ } else {
+ redactionColorBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The color to use when redacting content from an image. If not
+ * specified, the default is black.
+ *
+ *
+ * .google.privacy.dlp.v2.Color redaction_color = 3;
+ */
+ public Builder mergeRedactionColor(com.google.privacy.dlp.v2.Color value) {
+ if (redactionColorBuilder_ == null) {
+ if (redactionColor_ != null) {
+ redactionColor_ =
+ com.google.privacy.dlp.v2.Color.newBuilder(redactionColor_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ redactionColor_ = value;
+ }
+ onChanged();
+ } else {
+ redactionColorBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The color to use when redacting content from an image. If not
+ * specified, the default is black.
+ *
+ *
+ * .google.privacy.dlp.v2.Color redaction_color = 3;
+ */
+ public Builder clearRedactionColor() {
+ if (redactionColorBuilder_ == null) {
+ redactionColor_ = null;
+ onChanged();
+ } else {
+ redactionColor_ = null;
+ redactionColorBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The color to use when redacting content from an image. If not
+ * specified, the default is black.
+ *
+ *
+ * .google.privacy.dlp.v2.Color redaction_color = 3;
+ */
+ public com.google.privacy.dlp.v2.Color.Builder getRedactionColorBuilder() {
+
+ onChanged();
+ return getRedactionColorFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ *
+ * The color to use when redacting content from an image. If not
+ * specified, the default is black.
+ *
+ *
+ * .google.privacy.dlp.v2.Color redaction_color = 3;
+ */
+ public com.google.privacy.dlp.v2.ColorOrBuilder getRedactionColorOrBuilder() {
+ if (redactionColorBuilder_ != null) {
+ return redactionColorBuilder_.getMessageOrBuilder();
+ } else {
+ return redactionColor_ == null
+ ? com.google.privacy.dlp.v2.Color.getDefaultInstance()
+ : redactionColor_;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The color to use when redacting content from an image. If not
+ * specified, the default is black.
+ *
+ *
+ * .google.privacy.dlp.v2.Color redaction_color = 3;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.privacy.dlp.v2.Color,
+ com.google.privacy.dlp.v2.Color.Builder,
+ com.google.privacy.dlp.v2.ColorOrBuilder>
+ getRedactionColorFieldBuilder() {
+ if (redactionColorBuilder_ == null) {
+ redactionColorBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.privacy.dlp.v2.Color,
+ com.google.privacy.dlp.v2.Color.Builder,
+ com.google.privacy.dlp.v2.ColorOrBuilder>(
+ getRedactionColor(), getParentForChildren(), isClean());
+ redactionColor_ = null;
+ }
+ return redactionColorBuilder_;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.privacy.dlp.v2.ImageTransformations.ImageTransformation)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.ImageTransformations.ImageTransformation)
+ private static final com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation();
+ }
+
+ public static com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parserrepeated .google.privacy.dlp.v2.ImageTransformations.ImageTransformation transforms = 2;
+ *
+ */
+ @java.lang.Override
+ public java.util.Listrepeated .google.privacy.dlp.v2.ImageTransformations.ImageTransformation transforms = 2;
+ *
+ */
+ @java.lang.Override
+ public java.util.List<
+ ? extends com.google.privacy.dlp.v2.ImageTransformations.ImageTransformationOrBuilder>
+ getTransformsOrBuilderList() {
+ return transforms_;
+ }
+ /**
+ * repeated .google.privacy.dlp.v2.ImageTransformations.ImageTransformation transforms = 2;
+ *
+ */
+ @java.lang.Override
+ public int getTransformsCount() {
+ return transforms_.size();
+ }
+ /**
+ * repeated .google.privacy.dlp.v2.ImageTransformations.ImageTransformation transforms = 2;
+ *
+ */
+ @java.lang.Override
+ public com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation getTransforms(
+ int index) {
+ return transforms_.get(index);
+ }
+ /**
+ * repeated .google.privacy.dlp.v2.ImageTransformations.ImageTransformation transforms = 2;
+ *
+ */
+ @java.lang.Override
+ public com.google.privacy.dlp.v2.ImageTransformations.ImageTransformationOrBuilder
+ getTransformsOrBuilder(int index) {
+ return transforms_.get(index);
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ for (int i = 0; i < transforms_.size(); i++) {
+ output.writeMessage(2, transforms_.get(i));
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ for (int i = 0; i < transforms_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, transforms_.get(i));
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.privacy.dlp.v2.ImageTransformations)) {
+ return super.equals(obj);
+ }
+ com.google.privacy.dlp.v2.ImageTransformations other =
+ (com.google.privacy.dlp.v2.ImageTransformations) obj;
+
+ if (!getTransformsList().equals(other.getTransformsList())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (getTransformsCount() > 0) {
+ hash = (37 * hash) + TRANSFORMS_FIELD_NUMBER;
+ hash = (53 * hash) + getTransformsList().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.privacy.dlp.v2.ImageTransformations parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.privacy.dlp.v2.ImageTransformations parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.privacy.dlp.v2.ImageTransformations parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.privacy.dlp.v2.ImageTransformations parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.privacy.dlp.v2.ImageTransformations parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.privacy.dlp.v2.ImageTransformations parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.privacy.dlp.v2.ImageTransformations parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.privacy.dlp.v2.ImageTransformations parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.privacy.dlp.v2.ImageTransformations parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.privacy.dlp.v2.ImageTransformations parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.privacy.dlp.v2.ImageTransformations parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.privacy.dlp.v2.ImageTransformations parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(com.google.privacy.dlp.v2.ImageTransformations prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ *
+ * A type of transformation that is applied over images.
+ *
+ *
+ * Protobuf type {@code google.privacy.dlp.v2.ImageTransformations}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * repeated .google.privacy.dlp.v2.ImageTransformations.ImageTransformation transforms = 2;
+ *
+ */
+ public java.util.List
+ * repeated .google.privacy.dlp.v2.ImageTransformations.ImageTransformation transforms = 2;
+ *
+ */
+ public int getTransformsCount() {
+ if (transformsBuilder_ == null) {
+ return transforms_.size();
+ } else {
+ return transformsBuilder_.getCount();
+ }
+ }
+ /**
+ *
+ * repeated .google.privacy.dlp.v2.ImageTransformations.ImageTransformation transforms = 2;
+ *
+ */
+ public com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation getTransforms(
+ int index) {
+ if (transformsBuilder_ == null) {
+ return transforms_.get(index);
+ } else {
+ return transformsBuilder_.getMessage(index);
+ }
+ }
+ /**
+ *
+ * repeated .google.privacy.dlp.v2.ImageTransformations.ImageTransformation transforms = 2;
+ *
+ */
+ public Builder setTransforms(
+ int index, com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation value) {
+ if (transformsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureTransformsIsMutable();
+ transforms_.set(index, value);
+ onChanged();
+ } else {
+ transformsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ * repeated .google.privacy.dlp.v2.ImageTransformations.ImageTransformation transforms = 2;
+ *
+ */
+ public Builder setTransforms(
+ int index,
+ com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.Builder
+ builderForValue) {
+ if (transformsBuilder_ == null) {
+ ensureTransformsIsMutable();
+ transforms_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ transformsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ * repeated .google.privacy.dlp.v2.ImageTransformations.ImageTransformation transforms = 2;
+ *
+ */
+ public Builder addTransforms(
+ com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation value) {
+ if (transformsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureTransformsIsMutable();
+ transforms_.add(value);
+ onChanged();
+ } else {
+ transformsBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ *
+ * repeated .google.privacy.dlp.v2.ImageTransformations.ImageTransformation transforms = 2;
+ *
+ */
+ public Builder addTransforms(
+ int index, com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation value) {
+ if (transformsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureTransformsIsMutable();
+ transforms_.add(index, value);
+ onChanged();
+ } else {
+ transformsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ * repeated .google.privacy.dlp.v2.ImageTransformations.ImageTransformation transforms = 2;
+ *
+ */
+ public Builder addTransforms(
+ com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.Builder
+ builderForValue) {
+ if (transformsBuilder_ == null) {
+ ensureTransformsIsMutable();
+ transforms_.add(builderForValue.build());
+ onChanged();
+ } else {
+ transformsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ * repeated .google.privacy.dlp.v2.ImageTransformations.ImageTransformation transforms = 2;
+ *
+ */
+ public Builder addTransforms(
+ int index,
+ com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.Builder
+ builderForValue) {
+ if (transformsBuilder_ == null) {
+ ensureTransformsIsMutable();
+ transforms_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ transformsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ * repeated .google.privacy.dlp.v2.ImageTransformations.ImageTransformation transforms = 2;
+ *
+ */
+ public Builder addAllTransforms(
+ java.lang.Iterable<
+ ? extends com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation>
+ values) {
+ if (transformsBuilder_ == null) {
+ ensureTransformsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, transforms_);
+ onChanged();
+ } else {
+ transformsBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ *
+ * repeated .google.privacy.dlp.v2.ImageTransformations.ImageTransformation transforms = 2;
+ *
+ */
+ public Builder clearTransforms() {
+ if (transformsBuilder_ == null) {
+ transforms_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ transformsBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ * repeated .google.privacy.dlp.v2.ImageTransformations.ImageTransformation transforms = 2;
+ *
+ */
+ public Builder removeTransforms(int index) {
+ if (transformsBuilder_ == null) {
+ ensureTransformsIsMutable();
+ transforms_.remove(index);
+ onChanged();
+ } else {
+ transformsBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ *
+ * repeated .google.privacy.dlp.v2.ImageTransformations.ImageTransformation transforms = 2;
+ *
+ */
+ public com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.Builder
+ getTransformsBuilder(int index) {
+ return getTransformsFieldBuilder().getBuilder(index);
+ }
+ /**
+ *
+ * repeated .google.privacy.dlp.v2.ImageTransformations.ImageTransformation transforms = 2;
+ *
+ */
+ public com.google.privacy.dlp.v2.ImageTransformations.ImageTransformationOrBuilder
+ getTransformsOrBuilder(int index) {
+ if (transformsBuilder_ == null) {
+ return transforms_.get(index);
+ } else {
+ return transformsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ *
+ * repeated .google.privacy.dlp.v2.ImageTransformations.ImageTransformation transforms = 2;
+ *
+ */
+ public java.util.List<
+ ? extends com.google.privacy.dlp.v2.ImageTransformations.ImageTransformationOrBuilder>
+ getTransformsOrBuilderList() {
+ if (transformsBuilder_ != null) {
+ return transformsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(transforms_);
+ }
+ }
+ /**
+ *
+ * repeated .google.privacy.dlp.v2.ImageTransformations.ImageTransformation transforms = 2;
+ *
+ */
+ public com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.Builder
+ addTransformsBuilder() {
+ return getTransformsFieldBuilder()
+ .addBuilder(
+ com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation
+ .getDefaultInstance());
+ }
+ /**
+ *
+ * repeated .google.privacy.dlp.v2.ImageTransformations.ImageTransformation transforms = 2;
+ *
+ */
+ public com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.Builder
+ addTransformsBuilder(int index) {
+ return getTransformsFieldBuilder()
+ .addBuilder(
+ index,
+ com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation
+ .getDefaultInstance());
+ }
+ /**
+ *
+ * repeated .google.privacy.dlp.v2.ImageTransformations.ImageTransformation transforms = 2;
+ *
+ */
+ public java.util.List<
+ com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.Builder>
+ getTransformsBuilderList() {
+ return getTransformsFieldBuilder().getBuilderList();
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation,
+ com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.Builder,
+ com.google.privacy.dlp.v2.ImageTransformations.ImageTransformationOrBuilder>
+ getTransformsFieldBuilder() {
+ if (transformsBuilder_ == null) {
+ transformsBuilder_ =
+ new com.google.protobuf.RepeatedFieldBuilderV3<
+ com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation,
+ com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.Builder,
+ com.google.privacy.dlp.v2.ImageTransformations.ImageTransformationOrBuilder>(
+ transforms_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
+ transforms_ = null;
+ }
+ return transformsBuilder_;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.privacy.dlp.v2.ImageTransformations)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.ImageTransformations)
+ private static final com.google.privacy.dlp.v2.ImageTransformations DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.privacy.dlp.v2.ImageTransformations();
+ }
+
+ public static com.google.privacy.dlp.v2.ImageTransformations getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parserrepeated .google.privacy.dlp.v2.ImageTransformations.ImageTransformation transforms = 2;
+ *
+ */
+ java.util.Listrepeated .google.privacy.dlp.v2.ImageTransformations.ImageTransformation transforms = 2;
+ *
+ */
+ com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation getTransforms(int index);
+ /**
+ * repeated .google.privacy.dlp.v2.ImageTransformations.ImageTransformation transforms = 2;
+ *
+ */
+ int getTransformsCount();
+ /**
+ * repeated .google.privacy.dlp.v2.ImageTransformations.ImageTransformation transforms = 2;
+ *
+ */
+ java.util.List<
+ ? extends com.google.privacy.dlp.v2.ImageTransformations.ImageTransformationOrBuilder>
+ getTransformsOrBuilderList();
+ /**
+ * repeated .google.privacy.dlp.v2.ImageTransformations.ImageTransformation transforms = 2;
+ *
+ */
+ com.google.privacy.dlp.v2.ImageTransformations.ImageTransformationOrBuilder
+ getTransformsOrBuilder(int index);
+}
diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InfoTypeDescription.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InfoTypeDescription.java
index c27ca6685f14..a8b235c84e8f 100644
--- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InfoTypeDescription.java
+++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InfoTypeDescription.java
@@ -42,6 +42,7 @@ private InfoTypeDescription() {
displayName_ = "";
supportedBy_ = java.util.Collections.emptyList();
description_ = "";
+ versions_ = java.util.Collections.emptyList();
categories_ = java.util.Collections.emptyList();
}
@@ -121,12 +122,23 @@ private InfoTypeDescription(
description_ = s;
break;
}
- case 82:
+ case 74:
{
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
- categories_ = new java.util.ArrayList
+ * A list of available versions for the infotype.
+ *
+ *
+ * repeated .google.privacy.dlp.v2.VersionDescription versions = 9;
+ */
+ @java.lang.Override
+ public java.util.List
+ * A list of available versions for the infotype.
+ *
+ *
+ * repeated .google.privacy.dlp.v2.VersionDescription versions = 9;
+ */
+ @java.lang.Override
+ public java.util.List extends com.google.privacy.dlp.v2.VersionDescriptionOrBuilder>
+ getVersionsOrBuilderList() {
+ return versions_;
+ }
+ /**
+ *
+ *
+ *
+ * A list of available versions for the infotype.
+ *
+ *
+ * repeated .google.privacy.dlp.v2.VersionDescription versions = 9;
+ */
+ @java.lang.Override
+ public int getVersionsCount() {
+ return versions_.size();
+ }
+ /**
+ *
+ *
+ *
+ * A list of available versions for the infotype.
+ *
+ *
+ * repeated .google.privacy.dlp.v2.VersionDescription versions = 9;
+ */
+ @java.lang.Override
+ public com.google.privacy.dlp.v2.VersionDescription getVersions(int index) {
+ return versions_.get(index);
+ }
+ /**
+ *
+ *
+ *
+ * A list of available versions for the infotype.
+ *
+ *
+ * repeated .google.privacy.dlp.v2.VersionDescription versions = 9;
+ */
+ @java.lang.Override
+ public com.google.privacy.dlp.v2.VersionDescriptionOrBuilder getVersionsOrBuilder(int index) {
+ return versions_.get(index);
+ }
+
public static final int CATEGORIES_FIELD_NUMBER = 10;
private java.util.List
+ * A list of available versions for the infotype.
+ *
+ *
+ * repeated .google.privacy.dlp.v2.VersionDescription versions = 9;
+ */
+ public java.util.List
+ * A list of available versions for the infotype.
+ *
+ *
+ * repeated .google.privacy.dlp.v2.VersionDescription versions = 9;
+ */
+ public int getVersionsCount() {
+ if (versionsBuilder_ == null) {
+ return versions_.size();
+ } else {
+ return versionsBuilder_.getCount();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * A list of available versions for the infotype.
+ *
+ *
+ * repeated .google.privacy.dlp.v2.VersionDescription versions = 9;
+ */
+ public com.google.privacy.dlp.v2.VersionDescription getVersions(int index) {
+ if (versionsBuilder_ == null) {
+ return versions_.get(index);
+ } else {
+ return versionsBuilder_.getMessage(index);
+ }
+ }
+ /**
+ *
+ *
+ *
+ * A list of available versions for the infotype.
+ *
+ *
+ * repeated .google.privacy.dlp.v2.VersionDescription versions = 9;
+ */
+ public Builder setVersions(int index, com.google.privacy.dlp.v2.VersionDescription value) {
+ if (versionsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureVersionsIsMutable();
+ versions_.set(index, value);
+ onChanged();
+ } else {
+ versionsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * A list of available versions for the infotype.
+ *
+ *
+ * repeated .google.privacy.dlp.v2.VersionDescription versions = 9;
+ */
+ public Builder setVersions(
+ int index, com.google.privacy.dlp.v2.VersionDescription.Builder builderForValue) {
+ if (versionsBuilder_ == null) {
+ ensureVersionsIsMutable();
+ versions_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ versionsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * A list of available versions for the infotype.
+ *
+ *
+ * repeated .google.privacy.dlp.v2.VersionDescription versions = 9;
+ */
+ public Builder addVersions(com.google.privacy.dlp.v2.VersionDescription value) {
+ if (versionsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureVersionsIsMutable();
+ versions_.add(value);
+ onChanged();
+ } else {
+ versionsBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * A list of available versions for the infotype.
+ *
+ *
+ * repeated .google.privacy.dlp.v2.VersionDescription versions = 9;
+ */
+ public Builder addVersions(int index, com.google.privacy.dlp.v2.VersionDescription value) {
+ if (versionsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureVersionsIsMutable();
+ versions_.add(index, value);
+ onChanged();
+ } else {
+ versionsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * A list of available versions for the infotype.
+ *
+ *
+ * repeated .google.privacy.dlp.v2.VersionDescription versions = 9;
+ */
+ public Builder addVersions(
+ com.google.privacy.dlp.v2.VersionDescription.Builder builderForValue) {
+ if (versionsBuilder_ == null) {
+ ensureVersionsIsMutable();
+ versions_.add(builderForValue.build());
+ onChanged();
+ } else {
+ versionsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * A list of available versions for the infotype.
+ *
+ *
+ * repeated .google.privacy.dlp.v2.VersionDescription versions = 9;
+ */
+ public Builder addVersions(
+ int index, com.google.privacy.dlp.v2.VersionDescription.Builder builderForValue) {
+ if (versionsBuilder_ == null) {
+ ensureVersionsIsMutable();
+ versions_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ versionsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * A list of available versions for the infotype.
+ *
+ *
+ * repeated .google.privacy.dlp.v2.VersionDescription versions = 9;
+ */
+ public Builder addAllVersions(
+ java.lang.Iterable extends com.google.privacy.dlp.v2.VersionDescription> values) {
+ if (versionsBuilder_ == null) {
+ ensureVersionsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, versions_);
+ onChanged();
+ } else {
+ versionsBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * A list of available versions for the infotype.
+ *
+ *
+ * repeated .google.privacy.dlp.v2.VersionDescription versions = 9;
+ */
+ public Builder clearVersions() {
+ if (versionsBuilder_ == null) {
+ versions_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ } else {
+ versionsBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * A list of available versions for the infotype.
+ *
+ *
+ * repeated .google.privacy.dlp.v2.VersionDescription versions = 9;
+ */
+ public Builder removeVersions(int index) {
+ if (versionsBuilder_ == null) {
+ ensureVersionsIsMutable();
+ versions_.remove(index);
+ onChanged();
+ } else {
+ versionsBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * A list of available versions for the infotype.
+ *
+ *
+ * repeated .google.privacy.dlp.v2.VersionDescription versions = 9;
+ */
+ public com.google.privacy.dlp.v2.VersionDescription.Builder getVersionsBuilder(int index) {
+ return getVersionsFieldBuilder().getBuilder(index);
+ }
+ /**
+ *
+ *
+ *
+ * A list of available versions for the infotype.
+ *
+ *
+ * repeated .google.privacy.dlp.v2.VersionDescription versions = 9;
+ */
+ public com.google.privacy.dlp.v2.VersionDescriptionOrBuilder getVersionsOrBuilder(int index) {
+ if (versionsBuilder_ == null) {
+ return versions_.get(index);
+ } else {
+ return versionsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ *
+ *
+ *
+ * A list of available versions for the infotype.
+ *
+ *
+ * repeated .google.privacy.dlp.v2.VersionDescription versions = 9;
+ */
+ public java.util.List extends com.google.privacy.dlp.v2.VersionDescriptionOrBuilder>
+ getVersionsOrBuilderList() {
+ if (versionsBuilder_ != null) {
+ return versionsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(versions_);
+ }
+ }
+ /**
+ *
+ *
+ *
+ * A list of available versions for the infotype.
+ *
+ *
+ * repeated .google.privacy.dlp.v2.VersionDescription versions = 9;
+ */
+ public com.google.privacy.dlp.v2.VersionDescription.Builder addVersionsBuilder() {
+ return getVersionsFieldBuilder()
+ .addBuilder(com.google.privacy.dlp.v2.VersionDescription.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ *
+ * A list of available versions for the infotype.
+ *
+ *
+ * repeated .google.privacy.dlp.v2.VersionDescription versions = 9;
+ */
+ public com.google.privacy.dlp.v2.VersionDescription.Builder addVersionsBuilder(int index) {
+ return getVersionsFieldBuilder()
+ .addBuilder(index, com.google.privacy.dlp.v2.VersionDescription.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ *
+ * A list of available versions for the infotype.
+ *
+ *
+ * repeated .google.privacy.dlp.v2.VersionDescription versions = 9;
+ */
+ public java.util.List
+ * A list of available versions for the infotype.
+ *
+ *
+ * repeated .google.privacy.dlp.v2.VersionDescription versions = 9;
+ */
+ java.util.List
+ * A list of available versions for the infotype.
+ *
+ *
+ * repeated .google.privacy.dlp.v2.VersionDescription versions = 9;
+ */
+ com.google.privacy.dlp.v2.VersionDescription getVersions(int index);
+ /**
+ *
+ *
+ *
+ * A list of available versions for the infotype.
+ *
+ *
+ * repeated .google.privacy.dlp.v2.VersionDescription versions = 9;
+ */
+ int getVersionsCount();
+ /**
+ *
+ *
+ *
+ * A list of available versions for the infotype.
+ *
+ *
+ * repeated .google.privacy.dlp.v2.VersionDescription versions = 9;
+ */
+ java.util.List extends com.google.privacy.dlp.v2.VersionDescriptionOrBuilder>
+ getVersionsOrBuilderList();
+ /**
+ *
+ *
+ *
+ * A list of available versions for the infotype.
+ *
+ *
+ * repeated .google.privacy.dlp.v2.VersionDescription versions = 9;
+ */
+ com.google.privacy.dlp.v2.VersionDescriptionOrBuilder getVersionsOrBuilder(int index);
+
/**
*
*
diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InfoTypeSummary.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InfoTypeSummary.java
index 1b050df72c06..43d1b74ee2b6 100644
--- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InfoTypeSummary.java
+++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InfoTypeSummary.java
@@ -81,6 +81,11 @@ private InfoTypeSummary(
infoType_ = subBuilder.buildPartial();
}
+ break;
+ }
+ case 16:
+ {
+ estimatedPrevalence_ = input.readInt32();
break;
}
default:
@@ -165,6 +170,25 @@ public com.google.privacy.dlp.v2.InfoTypeOrBuilder getInfoTypeOrBuilder() {
return getInfoType();
}
+ public static final int ESTIMATED_PREVALENCE_FIELD_NUMBER = 2;
+ private int estimatedPrevalence_;
+ /**
+ *
+ *
+ *
+ * Approximate percentage of non-null rows that contained data detected by
+ * this infotype.
+ *
+ *
+ * int32 estimated_prevalence = 2;
+ *
+ * @return The estimatedPrevalence.
+ */
+ @java.lang.Override
+ public int getEstimatedPrevalence() {
+ return estimatedPrevalence_;
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -182,6 +206,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (infoType_ != null) {
output.writeMessage(1, getInfoType());
}
+ if (estimatedPrevalence_ != 0) {
+ output.writeInt32(2, estimatedPrevalence_);
+ }
unknownFields.writeTo(output);
}
@@ -194,6 +221,9 @@ public int getSerializedSize() {
if (infoType_ != null) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getInfoType());
}
+ if (estimatedPrevalence_ != 0) {
+ size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, estimatedPrevalence_);
+ }
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
@@ -214,6 +244,7 @@ public boolean equals(final java.lang.Object obj) {
if (hasInfoType()) {
if (!getInfoType().equals(other.getInfoType())) return false;
}
+ if (getEstimatedPrevalence() != other.getEstimatedPrevalence()) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -229,6 +260,8 @@ public int hashCode() {
hash = (37 * hash) + INFO_TYPE_FIELD_NUMBER;
hash = (53 * hash) + getInfoType().hashCode();
}
+ hash = (37 * hash) + ESTIMATED_PREVALENCE_FIELD_NUMBER;
+ hash = (53 * hash) + getEstimatedPrevalence();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
@@ -380,6 +413,8 @@ public Builder clear() {
infoType_ = null;
infoTypeBuilder_ = null;
}
+ estimatedPrevalence_ = 0;
+
return this;
}
@@ -412,6 +447,7 @@ public com.google.privacy.dlp.v2.InfoTypeSummary buildPartial() {
} else {
result.infoType_ = infoTypeBuilder_.build();
}
+ result.estimatedPrevalence_ = estimatedPrevalence_;
onBuilt();
return result;
}
@@ -464,6 +500,9 @@ public Builder mergeFrom(com.google.privacy.dlp.v2.InfoTypeSummary other) {
if (other.hasInfoType()) {
mergeInfoType(other.getInfoType());
}
+ if (other.getEstimatedPrevalence() != 0) {
+ setEstimatedPrevalence(other.getEstimatedPrevalence());
+ }
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
@@ -678,6 +717,61 @@ public com.google.privacy.dlp.v2.InfoTypeOrBuilder getInfoTypeOrBuilder() {
return infoTypeBuilder_;
}
+ private int estimatedPrevalence_;
+ /**
+ *
+ *
+ *
+ * Approximate percentage of non-null rows that contained data detected by
+ * this infotype.
+ *
+ *
+ * int32 estimated_prevalence = 2;
+ *
+ * @return The estimatedPrevalence.
+ */
+ @java.lang.Override
+ public int getEstimatedPrevalence() {
+ return estimatedPrevalence_;
+ }
+ /**
+ *
+ *
+ *
+ * Approximate percentage of non-null rows that contained data detected by
+ * this infotype.
+ *
+ *
+ * int32 estimated_prevalence = 2;
+ *
+ * @param value The estimatedPrevalence to set.
+ * @return This builder for chaining.
+ */
+ public Builder setEstimatedPrevalence(int value) {
+
+ estimatedPrevalence_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Approximate percentage of non-null rows that contained data detected by
+ * this infotype.
+ *
+ *
+ * int32 estimated_prevalence = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearEstimatedPrevalence() {
+
+ estimatedPrevalence_ = 0;
+ onChanged();
+ return this;
+ }
+
@java.lang.Override
public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InfoTypeSummaryOrBuilder.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InfoTypeSummaryOrBuilder.java
index 59cc8e504b31..336a0e8586a3 100644
--- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InfoTypeSummaryOrBuilder.java
+++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InfoTypeSummaryOrBuilder.java
@@ -57,4 +57,18 @@ public interface InfoTypeSummaryOrBuilder
* .google.privacy.dlp.v2.InfoType info_type = 1;
*/
com.google.privacy.dlp.v2.InfoTypeOrBuilder getInfoTypeOrBuilder();
+
+ /**
+ *
+ *
+ *
+ * Approximate percentage of non-null rows that contained data detected by
+ * this infotype.
+ *
+ *
+ * int32 estimated_prevalence = 2;
+ *
+ * @return The estimatedPrevalence.
+ */
+ int getEstimatedPrevalence();
}
diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InfoTypeSupportedBy.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InfoTypeSupportedBy.java
index db393fc4a2fd..405aea6065f3 100644
--- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InfoTypeSupportedBy.java
+++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InfoTypeSupportedBy.java
@@ -153,7 +153,7 @@ public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType
}
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
- return com.google.privacy.dlp.v2.DlpProto.getDescriptor().getEnumTypes().get(4);
+ return com.google.privacy.dlp.v2.DlpProto.getDescriptor().getEnumTypes().get(7);
}
private static final InfoTypeSupportedBy[] VALUES = values();
diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InspectConfig.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InspectConfig.java
index 3d7a375e6676..2f47ce95486c 100644
--- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InspectConfig.java
+++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InspectConfig.java
@@ -326,6 +326,11 @@ com.google.privacy.dlp.v2.InspectConfig.FindingLimits.InfoTypeLimit getMaxFindin
*
* Configuration to control the number of findings returned for inspection.
* This is not used for de-identification or data profiling.
+ * When redacting sensitive data from images, finding limits don't apply. They
+ * can cause unexpected or inconsistent results, where only some data is
+ * redacted. Don't include finding limits in
+ * [RedactImage][google.privacy.dlp.v2.DlpService.RedactImage]
+ * requests. Otherwise, Cloud DLP returns an error.
*
*
* Protobuf type {@code google.privacy.dlp.v2.InspectConfig.FindingLimits}
@@ -1682,6 +1687,11 @@ protected Builder newBuilderForType(
*
* Configuration to control the number of findings returned for inspection.
* This is not used for de-identification or data profiling.
+ * When redacting sensitive data from images, finding limits don't apply. They
+ * can cause unexpected or inconsistent results, where only some data is
+ * redacted. Don't include finding limits in
+ * [RedactImage][google.privacy.dlp.v2.DlpService.RedactImage]
+ * requests. Otherwise, Cloud DLP returns an error.
*
*
* Protobuf type {@code google.privacy.dlp.v2.InspectConfig.FindingLimits}
@@ -2636,6 +2646,11 @@ public com.google.privacy.dlp.v2.Likelihood getMinLikelihood() {
*
* Configuration to control the number of findings returned.
* This is not used for data profiling.
+ * When redacting sensitive data from images, finding limits don't apply. They
+ * can cause unexpected or inconsistent results, where only some data is
+ * redacted. Don't include finding limits in
+ * [RedactImage][google.privacy.dlp.v2.DlpService.RedactImage]
+ * requests. Otherwise, Cloud DLP returns an error.
*
*
* .google.privacy.dlp.v2.InspectConfig.FindingLimits limits = 3;
@@ -2652,6 +2667,11 @@ public boolean hasLimits() {
*
* Configuration to control the number of findings returned.
* This is not used for data profiling.
+ * When redacting sensitive data from images, finding limits don't apply. They
+ * can cause unexpected or inconsistent results, where only some data is
+ * redacted. Don't include finding limits in
+ * [RedactImage][google.privacy.dlp.v2.DlpService.RedactImage]
+ * requests. Otherwise, Cloud DLP returns an error.
*
*
* .google.privacy.dlp.v2.InspectConfig.FindingLimits limits = 3;
@@ -2670,6 +2690,11 @@ public com.google.privacy.dlp.v2.InspectConfig.FindingLimits getLimits() {
*
* Configuration to control the number of findings returned.
* This is not used for data profiling.
+ * When redacting sensitive data from images, finding limits don't apply. They
+ * can cause unexpected or inconsistent results, where only some data is
+ * redacted. Don't include finding limits in
+ * [RedactImage][google.privacy.dlp.v2.DlpService.RedactImage]
+ * requests. Otherwise, Cloud DLP returns an error.
*
*
* .google.privacy.dlp.v2.InspectConfig.FindingLimits limits = 3;
@@ -4155,6 +4180,11 @@ public Builder clearMinLikelihood() {
*
* Configuration to control the number of findings returned.
* This is not used for data profiling.
+ * When redacting sensitive data from images, finding limits don't apply. They
+ * can cause unexpected or inconsistent results, where only some data is
+ * redacted. Don't include finding limits in
+ * [RedactImage][google.privacy.dlp.v2.DlpService.RedactImage]
+ * requests. Otherwise, Cloud DLP returns an error.
*
*
* .google.privacy.dlp.v2.InspectConfig.FindingLimits limits = 3;
@@ -4170,6 +4200,11 @@ public boolean hasLimits() {
*
* Configuration to control the number of findings returned.
* This is not used for data profiling.
+ * When redacting sensitive data from images, finding limits don't apply. They
+ * can cause unexpected or inconsistent results, where only some data is
+ * redacted. Don't include finding limits in
+ * [RedactImage][google.privacy.dlp.v2.DlpService.RedactImage]
+ * requests. Otherwise, Cloud DLP returns an error.
*
*
* .google.privacy.dlp.v2.InspectConfig.FindingLimits limits = 3;
@@ -4191,6 +4226,11 @@ public com.google.privacy.dlp.v2.InspectConfig.FindingLimits getLimits() {
*
* Configuration to control the number of findings returned.
* This is not used for data profiling.
+ * When redacting sensitive data from images, finding limits don't apply. They
+ * can cause unexpected or inconsistent results, where only some data is
+ * redacted. Don't include finding limits in
+ * [RedactImage][google.privacy.dlp.v2.DlpService.RedactImage]
+ * requests. Otherwise, Cloud DLP returns an error.
*
*
* .google.privacy.dlp.v2.InspectConfig.FindingLimits limits = 3;
@@ -4214,6 +4254,11 @@ public Builder setLimits(com.google.privacy.dlp.v2.InspectConfig.FindingLimits v
*
* Configuration to control the number of findings returned.
* This is not used for data profiling.
+ * When redacting sensitive data from images, finding limits don't apply. They
+ * can cause unexpected or inconsistent results, where only some data is
+ * redacted. Don't include finding limits in
+ * [RedactImage][google.privacy.dlp.v2.DlpService.RedactImage]
+ * requests. Otherwise, Cloud DLP returns an error.
*
*
* .google.privacy.dlp.v2.InspectConfig.FindingLimits limits = 3;
@@ -4235,6 +4280,11 @@ public Builder setLimits(
*
* Configuration to control the number of findings returned.
* This is not used for data profiling.
+ * When redacting sensitive data from images, finding limits don't apply. They
+ * can cause unexpected or inconsistent results, where only some data is
+ * redacted. Don't include finding limits in
+ * [RedactImage][google.privacy.dlp.v2.DlpService.RedactImage]
+ * requests. Otherwise, Cloud DLP returns an error.
*
*
* .google.privacy.dlp.v2.InspectConfig.FindingLimits limits = 3;
@@ -4262,6 +4312,11 @@ public Builder mergeLimits(com.google.privacy.dlp.v2.InspectConfig.FindingLimits
*
* Configuration to control the number of findings returned.
* This is not used for data profiling.
+ * When redacting sensitive data from images, finding limits don't apply. They
+ * can cause unexpected or inconsistent results, where only some data is
+ * redacted. Don't include finding limits in
+ * [RedactImage][google.privacy.dlp.v2.DlpService.RedactImage]
+ * requests. Otherwise, Cloud DLP returns an error.
*
*
* .google.privacy.dlp.v2.InspectConfig.FindingLimits limits = 3;
@@ -4283,6 +4338,11 @@ public Builder clearLimits() {
*
* Configuration to control the number of findings returned.
* This is not used for data profiling.
+ * When redacting sensitive data from images, finding limits don't apply. They
+ * can cause unexpected or inconsistent results, where only some data is
+ * redacted. Don't include finding limits in
+ * [RedactImage][google.privacy.dlp.v2.DlpService.RedactImage]
+ * requests. Otherwise, Cloud DLP returns an error.
*
*
* .google.privacy.dlp.v2.InspectConfig.FindingLimits limits = 3;
@@ -4298,6 +4358,11 @@ public com.google.privacy.dlp.v2.InspectConfig.FindingLimits.Builder getLimitsBu
*
* Configuration to control the number of findings returned.
* This is not used for data profiling.
+ * When redacting sensitive data from images, finding limits don't apply. They
+ * can cause unexpected or inconsistent results, where only some data is
+ * redacted. Don't include finding limits in
+ * [RedactImage][google.privacy.dlp.v2.DlpService.RedactImage]
+ * requests. Otherwise, Cloud DLP returns an error.
*
*
* .google.privacy.dlp.v2.InspectConfig.FindingLimits limits = 3;
@@ -4317,6 +4382,11 @@ public com.google.privacy.dlp.v2.InspectConfig.FindingLimitsOrBuilder getLimitsO
*
* Configuration to control the number of findings returned.
* This is not used for data profiling.
+ * When redacting sensitive data from images, finding limits don't apply. They
+ * can cause unexpected or inconsistent results, where only some data is
+ * redacted. Don't include finding limits in
+ * [RedactImage][google.privacy.dlp.v2.DlpService.RedactImage]
+ * requests. Otherwise, Cloud DLP returns an error.
*
*
* .google.privacy.dlp.v2.InspectConfig.FindingLimits limits = 3;
diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InspectConfigOrBuilder.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InspectConfigOrBuilder.java
index a90b9563e7fe..1278105bb75b 100644
--- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InspectConfigOrBuilder.java
+++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InspectConfigOrBuilder.java
@@ -149,6 +149,11 @@ public interface InspectConfigOrBuilder
*
* Configuration to control the number of findings returned.
* This is not used for data profiling.
+ * When redacting sensitive data from images, finding limits don't apply. They
+ * can cause unexpected or inconsistent results, where only some data is
+ * redacted. Don't include finding limits in
+ * [RedactImage][google.privacy.dlp.v2.DlpService.RedactImage]
+ * requests. Otherwise, Cloud DLP returns an error.
*
*
* .google.privacy.dlp.v2.InspectConfig.FindingLimits limits = 3;
@@ -162,6 +167,11 @@ public interface InspectConfigOrBuilder
*
* Configuration to control the number of findings returned.
* This is not used for data profiling.
+ * When redacting sensitive data from images, finding limits don't apply. They
+ * can cause unexpected or inconsistent results, where only some data is
+ * redacted. Don't include finding limits in
+ * [RedactImage][google.privacy.dlp.v2.DlpService.RedactImage]
+ * requests. Otherwise, Cloud DLP returns an error.
*
*
* .google.privacy.dlp.v2.InspectConfig.FindingLimits limits = 3;
@@ -175,6 +185,11 @@ public interface InspectConfigOrBuilder
*
* Configuration to control the number of findings returned.
* This is not used for data profiling.
+ * When redacting sensitive data from images, finding limits don't apply. They
+ * can cause unexpected or inconsistent results, where only some data is
+ * redacted. Don't include finding limits in
+ * [RedactImage][google.privacy.dlp.v2.DlpService.RedactImage]
+ * requests. Otherwise, Cloud DLP returns an error.
*
*
* .google.privacy.dlp.v2.InspectConfig.FindingLimits limits = 3;
diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/LargeCustomDictionaryConfig.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/LargeCustomDictionaryConfig.java
index 1d97aa32e0a8..7b0fc3d93d2a 100644
--- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/LargeCustomDictionaryConfig.java
+++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/LargeCustomDictionaryConfig.java
@@ -25,7 +25,7 @@
* Configuration for a custom dictionary created from a data source of any size
* up to the maximum size defined in the
* [limits](https://cloud.google.com/dlp/limits) page. The artifacts of
- * dictionary creation are stored in the specified Google Cloud Storage
+ * dictionary creation are stored in the specified Cloud Storage
* location. Consider using `CustomInfoType.Dictionary` for smaller dictionaries
* that satisfy the size requirements.
*
@@ -210,7 +210,7 @@ public SourceCase getSourceCase() {
*
*
*
- * Location to store dictionary artifacts in Google Cloud Storage. These files
+ * Location to store dictionary artifacts in Cloud Storage. These files
* will only be accessible by project owners and the DLP API. If any of these
* artifacts are modified, the dictionary is considered invalid and can no
* longer be used.
@@ -228,7 +228,7 @@ public boolean hasOutputPath() {
*
*
*
*
@@ -1694,9 +1694,9 @@ public Builder setOrderBy(java.lang.String value) {
* insignificant.
* Example: `name asc, end_time asc, create_time desc`
* Supported fields are:
- * - `create_time`: corresponds to time the job was created.
- * - `end_time`: corresponds to time the job ended.
- * - `name`: corresponds to job's name.
+ * - `create_time`: corresponds to the time the job was created.
+ * - `end_time`: corresponds to the time the job ended.
+ * - `name`: corresponds to the job's name.
* - `state`: corresponds to `state`
*
*
@@ -1720,9 +1720,9 @@ public Builder clearOrderBy() {
* insignificant.
* Example: `name asc, end_time asc, create_time desc`
* Supported fields are:
- * - `create_time`: corresponds to time the job was created.
- * - `end_time`: corresponds to time the job ended.
- * - `name`: corresponds to job's name.
+ * - `create_time`: corresponds to the time the job was created.
+ * - `end_time`: corresponds to the time the job ended.
+ * - `name`: corresponds to the job's name.
* - `state`: corresponds to `state`
*
*
diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListDlpJobsRequestOrBuilder.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListDlpJobsRequestOrBuilder.java
index e1a95847fdd8..c8cccf797091 100644
--- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListDlpJobsRequestOrBuilder.java
+++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListDlpJobsRequestOrBuilder.java
@@ -87,13 +87,13 @@ public interface ListDlpJobsRequestOrBuilder
* * Supported fields/values for inspect jobs:
* - `state` - PENDING|RUNNING|CANCELED|FINISHED|FAILED
* - `inspected_storage` - DATASTORE|CLOUD_STORAGE|BIGQUERY
- * - `trigger_name` - The resource name of the trigger that created job.
- * - 'end_time` - Corresponds to time the job finished.
- * - 'start_time` - Corresponds to time the job finished.
+ * - `trigger_name` - The name of the trigger that created the job.
+ * - 'end_time` - Corresponds to the time the job finished.
+ * - 'start_time` - Corresponds to the time the job finished.
* * Supported fields for risk analysis jobs:
* - `state` - RUNNING|CANCELED|FINISHED|FAILED
- * - 'end_time` - Corresponds to time the job finished.
- * - 'start_time` - Corresponds to time the job finished.
+ * - 'end_time` - Corresponds to the time the job finished.
+ * - 'start_time` - Corresponds to the time the job finished.
* * The operator must be `=` or `!=`.
* Examples:
* * inspected_storage = cloud_storage AND state = done
@@ -121,13 +121,13 @@ public interface ListDlpJobsRequestOrBuilder
* * Supported fields/values for inspect jobs:
* - `state` - PENDING|RUNNING|CANCELED|FINISHED|FAILED
* - `inspected_storage` - DATASTORE|CLOUD_STORAGE|BIGQUERY
- * - `trigger_name` - The resource name of the trigger that created job.
- * - 'end_time` - Corresponds to time the job finished.
- * - 'start_time` - Corresponds to time the job finished.
+ * - `trigger_name` - The name of the trigger that created the job.
+ * - 'end_time` - Corresponds to the time the job finished.
+ * - 'start_time` - Corresponds to the time the job finished.
* * Supported fields for risk analysis jobs:
* - `state` - RUNNING|CANCELED|FINISHED|FAILED
- * - 'end_time` - Corresponds to time the job finished.
- * - 'start_time` - Corresponds to time the job finished.
+ * - 'end_time` - Corresponds to the time the job finished.
+ * - 'start_time` - Corresponds to the time the job finished.
* * The operator must be `=` or `!=`.
* Examples:
* * inspected_storage = cloud_storage AND state = done
@@ -216,9 +216,9 @@ public interface ListDlpJobsRequestOrBuilder
* insignificant.
* Example: `name asc, end_time asc, create_time desc`
* Supported fields are:
- * - `create_time`: corresponds to time the job was created.
- * - `end_time`: corresponds to time the job ended.
- * - `name`: corresponds to job's name.
+ * - `create_time`: corresponds to the time the job was created.
+ * - `end_time`: corresponds to the time the job ended.
+ * - `name`: corresponds to the job's name.
* - `state`: corresponds to `state`
*
*
@@ -237,9 +237,9 @@ public interface ListDlpJobsRequestOrBuilder
* insignificant.
* Example: `name asc, end_time asc, create_time desc`
* Supported fields are:
- * - `create_time`: corresponds to time the job was created.
- * - `end_time`: corresponds to time the job ended.
- * - `name`: corresponds to job's name.
+ * - `create_time`: corresponds to the time the job was created.
+ * - `end_time`: corresponds to the time the job ended.
+ * - `name`: corresponds to the job's name.
* - `state`: corresponds to `state`
*
*
diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListInspectTemplatesRequest.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListInspectTemplatesRequest.java
index f1b640d3f075..21285f353ed5 100644
--- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListInspectTemplatesRequest.java
+++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListInspectTemplatesRequest.java
@@ -282,7 +282,7 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
*
*
*
- * Location to store dictionary artifacts in Google Cloud Storage. These files
+ * Location to store dictionary artifacts in Cloud Storage. These files
* will only be accessible by project owners and the DLP API. If any of these
* artifacts are modified, the dictionary is considered invalid and can no
* longer be used.
@@ -248,7 +248,7 @@ public com.google.privacy.dlp.v2.CloudStoragePath getOutputPath() {
*
*
*
*
@@ -1664,9 +1664,9 @@ public com.google.protobuf.ByteString getOrderByBytes() {
* insignificant.
* Example: `name asc, end_time asc, create_time desc`
* Supported fields are:
- * - `create_time`: corresponds to time the job was created.
- * - `end_time`: corresponds to time the job ended.
- * - `name`: corresponds to job's name.
+ * - `create_time`: corresponds to the time the job was created.
+ * - `end_time`: corresponds to the time the job ended.
+ * - `name`: corresponds to the job's name.
* - `state`: corresponds to `state`
*
- * Location to store dictionary artifacts in Google Cloud Storage. These files
+ * Location to store dictionary artifacts in Cloud Storage. These files
* will only be accessible by project owners and the DLP API. If any of these
* artifacts are modified, the dictionary is considered invalid and can no
* longer be used.
@@ -574,7 +574,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
* Configuration for a custom dictionary created from a data source of any size
* up to the maximum size defined in the
* [limits](https://cloud.google.com/dlp/limits) page. The artifacts of
- * dictionary creation are stored in the specified Google Cloud Storage
+ * dictionary creation are stored in the specified Cloud Storage
* location. Consider using `CustomInfoType.Dictionary` for smaller dictionaries
* that satisfy the size requirements.
*
@@ -795,7 +795,7 @@ public Builder clearSource() {
*
*
*
- * Location to store dictionary artifacts in Google Cloud Storage. These files
+ * Location to store dictionary artifacts in Cloud Storage. These files
* will only be accessible by project owners and the DLP API. If any of these
* artifacts are modified, the dictionary is considered invalid and can no
* longer be used.
@@ -812,7 +812,7 @@ public boolean hasOutputPath() {
*
*
*
*
@@ -1633,9 +1633,9 @@ public java.lang.String getOrderBy() {
* insignificant.
* Example: `name asc, end_time asc, create_time desc`
* Supported fields are:
- * - `create_time`: corresponds to time the job was created.
- * - `end_time`: corresponds to time the job ended.
- * - `name`: corresponds to job's name.
+ * - `create_time`: corresponds to the time the job was created.
+ * - `end_time`: corresponds to the time the job ended.
+ * - `name`: corresponds to the job's name.
* - `state`: corresponds to `state`
*
- * Location to store dictionary artifacts in Google Cloud Storage. These files
+ * Location to store dictionary artifacts in Cloud Storage. These files
* will only be accessible by project owners and the DLP API. If any of these
* artifacts are modified, the dictionary is considered invalid and can no
* longer be used.
@@ -835,7 +835,7 @@ public com.google.privacy.dlp.v2.CloudStoragePath getOutputPath() {
*
*
*
*
@@ -1140,13 +1140,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
* * Supported fields/values for inspect jobs:
* - `state` - PENDING|RUNNING|CANCELED|FINISHED|FAILED
* - `inspected_storage` - DATASTORE|CLOUD_STORAGE|BIGQUERY
- * - `trigger_name` - The resource name of the trigger that created job.
- * - 'end_time` - Corresponds to time the job finished.
- * - 'start_time` - Corresponds to time the job finished.
+ * - `trigger_name` - The name of the trigger that created the job.
+ * - 'end_time` - Corresponds to the time the job finished.
+ * - 'start_time` - Corresponds to the time the job finished.
* * Supported fields for risk analysis jobs:
* - `state` - RUNNING|CANCELED|FINISHED|FAILED
- * - 'end_time` - Corresponds to time the job finished.
- * - 'start_time` - Corresponds to time the job finished.
+ * - 'end_time` - Corresponds to the time the job finished.
+ * - 'start_time` - Corresponds to the time the job finished.
* * The operator must be `=` or `!=`.
* Examples:
* * inspected_storage = cloud_storage AND state = done
@@ -1184,13 +1184,13 @@ public java.lang.String getFilter() {
* * Supported fields/values for inspect jobs:
* - `state` - PENDING|RUNNING|CANCELED|FINISHED|FAILED
* - `inspected_storage` - DATASTORE|CLOUD_STORAGE|BIGQUERY
- * - `trigger_name` - The resource name of the trigger that created job.
- * - 'end_time` - Corresponds to time the job finished.
- * - 'start_time` - Corresponds to time the job finished.
+ * - `trigger_name` - The name of the trigger that created the job.
+ * - 'end_time` - Corresponds to the time the job finished.
+ * - 'start_time` - Corresponds to the time the job finished.
* * Supported fields for risk analysis jobs:
* - `state` - RUNNING|CANCELED|FINISHED|FAILED
- * - 'end_time` - Corresponds to time the job finished.
- * - 'start_time` - Corresponds to time the job finished.
+ * - 'end_time` - Corresponds to the time the job finished.
+ * - 'start_time` - Corresponds to the time the job finished.
* * The operator must be `=` or `!=`.
* Examples:
* * inspected_storage = cloud_storage AND state = done
@@ -1228,13 +1228,13 @@ public com.google.protobuf.ByteString getFilterBytes() {
* * Supported fields/values for inspect jobs:
* - `state` - PENDING|RUNNING|CANCELED|FINISHED|FAILED
* - `inspected_storage` - DATASTORE|CLOUD_STORAGE|BIGQUERY
- * - `trigger_name` - The resource name of the trigger that created job.
- * - 'end_time` - Corresponds to time the job finished.
- * - 'start_time` - Corresponds to time the job finished.
+ * - `trigger_name` - The name of the trigger that created the job.
+ * - 'end_time` - Corresponds to the time the job finished.
+ * - 'start_time` - Corresponds to the time the job finished.
* * Supported fields for risk analysis jobs:
* - `state` - RUNNING|CANCELED|FINISHED|FAILED
- * - 'end_time` - Corresponds to time the job finished.
- * - 'start_time` - Corresponds to time the job finished.
+ * - 'end_time` - Corresponds to the time the job finished.
+ * - 'start_time` - Corresponds to the time the job finished.
* * The operator must be `=` or `!=`.
* Examples:
* * inspected_storage = cloud_storage AND state = done
@@ -1271,13 +1271,13 @@ public Builder setFilter(java.lang.String value) {
* * Supported fields/values for inspect jobs:
* - `state` - PENDING|RUNNING|CANCELED|FINISHED|FAILED
* - `inspected_storage` - DATASTORE|CLOUD_STORAGE|BIGQUERY
- * - `trigger_name` - The resource name of the trigger that created job.
- * - 'end_time` - Corresponds to time the job finished.
- * - 'start_time` - Corresponds to time the job finished.
+ * - `trigger_name` - The name of the trigger that created the job.
+ * - 'end_time` - Corresponds to the time the job finished.
+ * - 'start_time` - Corresponds to the time the job finished.
* * Supported fields for risk analysis jobs:
* - `state` - RUNNING|CANCELED|FINISHED|FAILED
- * - 'end_time` - Corresponds to time the job finished.
- * - 'start_time` - Corresponds to time the job finished.
+ * - 'end_time` - Corresponds to the time the job finished.
+ * - 'start_time` - Corresponds to the time the job finished.
* * The operator must be `=` or `!=`.
* Examples:
* * inspected_storage = cloud_storage AND state = done
@@ -1310,13 +1310,13 @@ public Builder clearFilter() {
* * Supported fields/values for inspect jobs:
* - `state` - PENDING|RUNNING|CANCELED|FINISHED|FAILED
* - `inspected_storage` - DATASTORE|CLOUD_STORAGE|BIGQUERY
- * - `trigger_name` - The resource name of the trigger that created job.
- * - 'end_time` - Corresponds to time the job finished.
- * - 'start_time` - Corresponds to time the job finished.
+ * - `trigger_name` - The name of the trigger that created the job.
+ * - 'end_time` - Corresponds to the time the job finished.
+ * - 'start_time` - Corresponds to the time the job finished.
* * Supported fields for risk analysis jobs:
* - `state` - RUNNING|CANCELED|FINISHED|FAILED
- * - 'end_time` - Corresponds to time the job finished.
- * - 'start_time` - Corresponds to time the job finished.
+ * - 'end_time` - Corresponds to the time the job finished.
+ * - 'start_time` - Corresponds to the time the job finished.
* * The operator must be `=` or `!=`.
* Examples:
* * inspected_storage = cloud_storage AND state = done
@@ -1602,9 +1602,9 @@ public Builder clearType() {
* insignificant.
* Example: `name asc, end_time asc, create_time desc`
* Supported fields are:
- * - `create_time`: corresponds to time the job was created.
- * - `end_time`: corresponds to time the job ended.
- * - `name`: corresponds to job's name.
+ * - `create_time`: corresponds to the time the job was created.
+ * - `end_time`: corresponds to the time the job ended.
+ * - `name`: corresponds to the job's name.
* - `state`: corresponds to `state`
*
- * Location to store dictionary artifacts in Google Cloud Storage. These files
+ * Location to store dictionary artifacts in Cloud Storage. These files
* will only be accessible by project owners and the DLP API. If any of these
* artifacts are modified, the dictionary is considered invalid and can no
* longer be used.
@@ -860,7 +860,7 @@ public Builder setOutputPath(com.google.privacy.dlp.v2.CloudStoragePath value) {
*
*
*
*
@@ -473,9 +473,9 @@ public java.lang.String getOrderBy() {
* insignificant.
* Example: `name asc, end_time asc, create_time desc`
* Supported fields are:
- * - `create_time`: corresponds to time the job was created.
- * - `end_time`: corresponds to time the job ended.
- * - `name`: corresponds to job's name.
+ * - `create_time`: corresponds to the time the job was created.
+ * - `end_time`: corresponds to the time the job ended.
+ * - `name`: corresponds to the job's name.
* - `state`: corresponds to `state`
*
- * Location to store dictionary artifacts in Google Cloud Storage. These files
+ * Location to store dictionary artifacts in Cloud Storage. These files
* will only be accessible by project owners and the DLP API. If any of these
* artifacts are modified, the dictionary is considered invalid and can no
* longer be used.
@@ -883,7 +883,7 @@ public Builder setOutputPath(
*
*
*
*
*
- * Location to store dictionary artifacts in Google Cloud Storage. These files
+ * Location to store dictionary artifacts in Cloud Storage. These files
* will only be accessible by project owners and the DLP API. If any of these
* artifacts are modified, the dictionary is considered invalid and can no
* longer be used.
@@ -912,7 +912,7 @@ public Builder mergeOutputPath(com.google.privacy.dlp.v2.CloudStoragePath value)
*
*
*
*
*
- * Location to store dictionary artifacts in Google Cloud Storage. These files
+ * Location to store dictionary artifacts in Cloud Storage. These files
* will only be accessible by project owners and the DLP API. If any of these
* artifacts are modified, the dictionary is considered invalid and can no
* longer be used.
@@ -935,7 +935,7 @@ public Builder clearOutputPath() {
*
*
*
*
*
- * Location to store dictionary artifacts in Google Cloud Storage. These files
+ * Location to store dictionary artifacts in Cloud Storage. These files
* will only be accessible by project owners and the DLP API. If any of these
* artifacts are modified, the dictionary is considered invalid and can no
* longer be used.
@@ -952,7 +952,7 @@ public com.google.privacy.dlp.v2.CloudStoragePath.Builder getOutputPathBuilder()
*
*
*
*
*
- * Location to store dictionary artifacts in Google Cloud Storage. These files
+ * Location to store dictionary artifacts in Cloud Storage. These files
* will only be accessible by project owners and the DLP API. If any of these
* artifacts are modified, the dictionary is considered invalid and can no
* longer be used.
@@ -973,7 +973,7 @@ public com.google.privacy.dlp.v2.CloudStoragePathOrBuilder getOutputPathOrBuilde
*
*
*
*
*
- * Location to store dictionary artifacts in Google Cloud Storage. These files
+ * Location to store dictionary artifacts in Cloud Storage. These files
* will only be accessible by project owners and the DLP API. If any of these
* artifacts are modified, the dictionary is considered invalid and can no
* longer be used.
diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/LargeCustomDictionaryConfigOrBuilder.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/LargeCustomDictionaryConfigOrBuilder.java
index 29d55de25186..b32bb12ea586 100644
--- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/LargeCustomDictionaryConfigOrBuilder.java
+++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/LargeCustomDictionaryConfigOrBuilder.java
@@ -27,7 +27,7 @@ public interface LargeCustomDictionaryConfigOrBuilder
*
*
*
*
*
- * Location to store dictionary artifacts in Google Cloud Storage. These files
+ * Location to store dictionary artifacts in Cloud Storage. These files
* will only be accessible by project owners and the DLP API. If any of these
* artifacts are modified, the dictionary is considered invalid and can no
* longer be used.
@@ -42,7 +42,7 @@ public interface LargeCustomDictionaryConfigOrBuilder
*
*
*
*
*
- * Location to store dictionary artifacts in Google Cloud Storage. These files
+ * Location to store dictionary artifacts in Cloud Storage. These files
* will only be accessible by project owners and the DLP API. If any of these
* artifacts are modified, the dictionary is considered invalid and can no
* longer be used.
@@ -57,7 +57,7 @@ public interface LargeCustomDictionaryConfigOrBuilder
*
*
*
*
*
- * Location to store dictionary artifacts in Google Cloud Storage. These files
+ * Location to store dictionary artifacts in Cloud Storage. These files
* will only be accessible by project owners and the DLP API. If any of these
* artifacts are modified, the dictionary is considered invalid and can no
* longer be used.
diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListDeidentifyTemplatesRequest.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListDeidentifyTemplatesRequest.java
index 2babac620730..1b88f38e4bd7 100644
--- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListDeidentifyTemplatesRequest.java
+++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListDeidentifyTemplatesRequest.java
@@ -283,7 +283,7 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
*
*
*
*
*
- * Size of the page, can be limited by server. If zero server returns
+ * Size of the page, can be limited by the server. If zero server returns
* a page of max size 100.
*
*
@@ -308,10 +308,10 @@ public int getPageSize() {
* insignificant.
* Example: `name asc,update_time, create_time desc`
* Supported fields are:
- * - `create_time`: corresponds to time the template was created.
- * - `update_time`: corresponds to time the template was last updated.
- * - `name`: corresponds to template's name.
- * - `display_name`: corresponds to template's display name.
+ * - `create_time`: corresponds to the time the template was created.
+ * - `update_time`: corresponds to the time the template was last updated.
+ * - `name`: corresponds to the template's name.
+ * - `display_name`: corresponds to the template's display name.
* string order_by = 4;
@@ -340,10 +340,10 @@ public java.lang.String getOrderBy() {
* insignificant.
* Example: `name asc,update_time, create_time desc`
* Supported fields are:
- * - `create_time`: corresponds to time the template was created.
- * - `update_time`: corresponds to time the template was last updated.
- * - `name`: corresponds to template's name.
- * - `display_name`: corresponds to template's display name.
+ * - `create_time`: corresponds to the time the template was created.
+ * - `update_time`: corresponds to the time the template was last updated.
+ * - `name`: corresponds to the template's name.
+ * - `display_name`: corresponds to the template's display name.
* string order_by = 4;
@@ -1101,7 +1101,7 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
*
*
*
- * Size of the page, can be limited by server. If zero server returns
+ * Size of the page, can be limited by the server. If zero server returns
* a page of max size 100.
*
*
@@ -1117,7 +1117,7 @@ public int getPageSize() {
*
*
*
- * Size of the page, can be limited by server. If zero server returns
+ * Size of the page, can be limited by the server. If zero server returns
* a page of max size 100.
*
*
@@ -1136,7 +1136,7 @@ public Builder setPageSize(int value) {
*
*
*
- * Size of the page, can be limited by server. If zero server returns
+ * Size of the page, can be limited by the server. If zero server returns
* a page of max size 100.
*
*
@@ -1162,10 +1162,10 @@ public Builder clearPageSize() {
* insignificant.
* Example: `name asc,update_time, create_time desc`
* Supported fields are:
- * - `create_time`: corresponds to time the template was created.
- * - `update_time`: corresponds to time the template was last updated.
- * - `name`: corresponds to template's name.
- * - `display_name`: corresponds to template's display name.
+ * - `create_time`: corresponds to the time the template was created.
+ * - `update_time`: corresponds to the time the template was last updated.
+ * - `name`: corresponds to the template's name.
+ * - `display_name`: corresponds to the template's display name.
* string order_by = 4;
@@ -1193,10 +1193,10 @@ public java.lang.String getOrderBy() {
* insignificant.
* Example: `name asc,update_time, create_time desc`
* Supported fields are:
- * - `create_time`: corresponds to time the template was created.
- * - `update_time`: corresponds to time the template was last updated.
- * - `name`: corresponds to template's name.
- * - `display_name`: corresponds to template's display name.
+ * - `create_time`: corresponds to the time the template was created.
+ * - `update_time`: corresponds to the time the template was last updated.
+ * - `name`: corresponds to the template's name.
+ * - `display_name`: corresponds to the template's display name.
* string order_by = 4;
@@ -1224,10 +1224,10 @@ public com.google.protobuf.ByteString getOrderByBytes() {
* insignificant.
* Example: `name asc,update_time, create_time desc`
* Supported fields are:
- * - `create_time`: corresponds to time the template was created.
- * - `update_time`: corresponds to time the template was last updated.
- * - `name`: corresponds to template's name.
- * - `display_name`: corresponds to template's display name.
+ * - `create_time`: corresponds to the time the template was created.
+ * - `update_time`: corresponds to the time the template was last updated.
+ * - `name`: corresponds to the template's name.
+ * - `display_name`: corresponds to the template's display name.
* string order_by = 4;
@@ -1254,10 +1254,10 @@ public Builder setOrderBy(java.lang.String value) {
* insignificant.
* Example: `name asc,update_time, create_time desc`
* Supported fields are:
- * - `create_time`: corresponds to time the template was created.
- * - `update_time`: corresponds to time the template was last updated.
- * - `name`: corresponds to template's name.
- * - `display_name`: corresponds to template's display name.
+ * - `create_time`: corresponds to the time the template was created.
+ * - `update_time`: corresponds to the time the template was last updated.
+ * - `name`: corresponds to the template's name.
+ * - `display_name`: corresponds to the template's display name.
* string order_by = 4;
@@ -1280,10 +1280,10 @@ public Builder clearOrderBy() {
* insignificant.
* Example: `name asc,update_time, create_time desc`
* Supported fields are:
- * - `create_time`: corresponds to time the template was created.
- * - `update_time`: corresponds to time the template was last updated.
- * - `name`: corresponds to template's name.
- * - `display_name`: corresponds to template's display name.
+ * - `create_time`: corresponds to the time the template was created.
+ * - `update_time`: corresponds to the time the template was last updated.
+ * - `name`: corresponds to the template's name.
+ * - `display_name`: corresponds to the template's display name.
* string order_by = 4;
diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListDeidentifyTemplatesRequestOrBuilder.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListDeidentifyTemplatesRequestOrBuilder.java
index 51f579783245..0344d0403019 100644
--- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListDeidentifyTemplatesRequestOrBuilder.java
+++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListDeidentifyTemplatesRequestOrBuilder.java
@@ -113,7 +113,7 @@ public interface ListDeidentifyTemplatesRequestOrBuilder
*
*
*
- * Size of the page, can be limited by server. If zero server returns
+ * Size of the page, can be limited by the server. If zero server returns
* a page of max size 100.
*
*
@@ -133,10 +133,10 @@ public interface ListDeidentifyTemplatesRequestOrBuilder
* insignificant.
* Example: `name asc,update_time, create_time desc`
* Supported fields are:
- * - `create_time`: corresponds to time the template was created.
- * - `update_time`: corresponds to time the template was last updated.
- * - `name`: corresponds to template's name.
- * - `display_name`: corresponds to template's display name.
+ * - `create_time`: corresponds to the time the template was created.
+ * - `update_time`: corresponds to the time the template was last updated.
+ * - `name`: corresponds to the template's name.
+ * - `display_name`: corresponds to the template's display name.
* string order_by = 4;
@@ -154,10 +154,10 @@ public interface ListDeidentifyTemplatesRequestOrBuilder
* insignificant.
* Example: `name asc,update_time, create_time desc`
* Supported fields are:
- * - `create_time`: corresponds to time the template was created.
- * - `update_time`: corresponds to time the template was last updated.
- * - `name`: corresponds to template's name.
- * - `display_name`: corresponds to template's display name.
+ * - `create_time`: corresponds to the time the template was created.
+ * - `update_time`: corresponds to the time the template was last updated.
+ * - `name`: corresponds to the template's name.
+ * - `display_name`: corresponds to the template's display name.
* string order_by = 4;
diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListDlpJobsRequest.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListDlpJobsRequest.java
index c600b42a881e..f7fc1b20060f 100644
--- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListDlpJobsRequest.java
+++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListDlpJobsRequest.java
@@ -248,13 +248,13 @@ public com.google.protobuf.ByteString getParentBytes() {
* * Supported fields/values for inspect jobs:
* - `state` - PENDING|RUNNING|CANCELED|FINISHED|FAILED
* - `inspected_storage` - DATASTORE|CLOUD_STORAGE|BIGQUERY
- * - `trigger_name` - The resource name of the trigger that created job.
- * - 'end_time` - Corresponds to time the job finished.
- * - 'start_time` - Corresponds to time the job finished.
+ * - `trigger_name` - The name of the trigger that created the job.
+ * - 'end_time` - Corresponds to the time the job finished.
+ * - 'start_time` - Corresponds to the time the job finished.
* * Supported fields for risk analysis jobs:
* - `state` - RUNNING|CANCELED|FINISHED|FAILED
- * - 'end_time` - Corresponds to time the job finished.
- * - 'start_time` - Corresponds to time the job finished.
+ * - 'end_time` - Corresponds to the time the job finished.
+ * - 'start_time` - Corresponds to the time the job finished.
* * The operator must be `=` or `!=`.
* Examples:
* * inspected_storage = cloud_storage AND state = done
@@ -293,13 +293,13 @@ public java.lang.String getFilter() {
* * Supported fields/values for inspect jobs:
* - `state` - PENDING|RUNNING|CANCELED|FINISHED|FAILED
* - `inspected_storage` - DATASTORE|CLOUD_STORAGE|BIGQUERY
- * - `trigger_name` - The resource name of the trigger that created job.
- * - 'end_time` - Corresponds to time the job finished.
- * - 'start_time` - Corresponds to time the job finished.
+ * - `trigger_name` - The name of the trigger that created the job.
+ * - 'end_time` - Corresponds to the time the job finished.
+ * - 'start_time` - Corresponds to the time the job finished.
* * Supported fields for risk analysis jobs:
* - `state` - RUNNING|CANCELED|FINISHED|FAILED
- * - 'end_time` - Corresponds to time the job finished.
- * - 'start_time` - Corresponds to time the job finished.
+ * - 'end_time` - Corresponds to the time the job finished.
+ * - 'start_time` - Corresponds to the time the job finished.
* * The operator must be `=` or `!=`.
* Examples:
* * inspected_storage = cloud_storage AND state = done
@@ -441,9 +441,9 @@ public com.google.privacy.dlp.v2.DlpJobType getType() {
* insignificant.
* Example: `name asc, end_time asc, create_time desc`
* Supported fields are:
- * - `create_time`: corresponds to time the job was created.
- * - `end_time`: corresponds to time the job ended.
- * - `name`: corresponds to job's name.
+ * - `create_time`: corresponds to the time the job was created.
+ * - `end_time`: corresponds to the time the job ended.
+ * - `name`: corresponds to the job's name.
* - `state`: corresponds to `state`
*
- * Size of the page, can be limited by server. If zero server returns
+ * Size of the page, can be limited by the server. If zero server returns
* a page of max size 100.
*
*
@@ -307,10 +307,10 @@ public int getPageSize() {
* insignificant.
* Example: `name asc,update_time, create_time desc`
* Supported fields are:
- * - `create_time`: corresponds to time the template was created.
- * - `update_time`: corresponds to time the template was last updated.
- * - `name`: corresponds to template's name.
- * - `display_name`: corresponds to template's display name.
+ * - `create_time`: corresponds to the time the template was created.
+ * - `update_time`: corresponds to the time the template was last updated.
+ * - `name`: corresponds to the template's name.
+ * - `display_name`: corresponds to the template's display name.
*
*
* string order_by = 4;
@@ -339,10 +339,10 @@ public java.lang.String getOrderBy() {
* insignificant.
* Example: `name asc,update_time, create_time desc`
* Supported fields are:
- * - `create_time`: corresponds to time the template was created.
- * - `update_time`: corresponds to time the template was last updated.
- * - `name`: corresponds to template's name.
- * - `display_name`: corresponds to template's display name.
+ * - `create_time`: corresponds to the time the template was created.
+ * - `update_time`: corresponds to the time the template was last updated.
+ * - `name`: corresponds to the template's name.
+ * - `display_name`: corresponds to the template's display name.
*
*
* string order_by = 4;
@@ -1100,7 +1100,7 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
*
*
*
- * Size of the page, can be limited by server. If zero server returns
+ * Size of the page, can be limited by the server. If zero server returns
* a page of max size 100.
*
*
@@ -1116,7 +1116,7 @@ public int getPageSize() {
*
*
*
- * Size of the page, can be limited by server. If zero server returns
+ * Size of the page, can be limited by the server. If zero server returns
* a page of max size 100.
*
*
@@ -1135,7 +1135,7 @@ public Builder setPageSize(int value) {
*
*
*
- * Size of the page, can be limited by server. If zero server returns
+ * Size of the page, can be limited by the server. If zero server returns
* a page of max size 100.
*
*
@@ -1161,10 +1161,10 @@ public Builder clearPageSize() {
* insignificant.
* Example: `name asc,update_time, create_time desc`
* Supported fields are:
- * - `create_time`: corresponds to time the template was created.
- * - `update_time`: corresponds to time the template was last updated.
- * - `name`: corresponds to template's name.
- * - `display_name`: corresponds to template's display name.
+ * - `create_time`: corresponds to the time the template was created.
+ * - `update_time`: corresponds to the time the template was last updated.
+ * - `name`: corresponds to the template's name.
+ * - `display_name`: corresponds to the template's display name.
*
*
* string order_by = 4;
@@ -1192,10 +1192,10 @@ public java.lang.String getOrderBy() {
* insignificant.
* Example: `name asc,update_time, create_time desc`
* Supported fields are:
- * - `create_time`: corresponds to time the template was created.
- * - `update_time`: corresponds to time the template was last updated.
- * - `name`: corresponds to template's name.
- * - `display_name`: corresponds to template's display name.
+ * - `create_time`: corresponds to the time the template was created.
+ * - `update_time`: corresponds to the time the template was last updated.
+ * - `name`: corresponds to the template's name.
+ * - `display_name`: corresponds to the template's display name.
*
*
* string order_by = 4;
@@ -1223,10 +1223,10 @@ public com.google.protobuf.ByteString getOrderByBytes() {
* insignificant.
* Example: `name asc,update_time, create_time desc`
* Supported fields are:
- * - `create_time`: corresponds to time the template was created.
- * - `update_time`: corresponds to time the template was last updated.
- * - `name`: corresponds to template's name.
- * - `display_name`: corresponds to template's display name.
+ * - `create_time`: corresponds to the time the template was created.
+ * - `update_time`: corresponds to the time the template was last updated.
+ * - `name`: corresponds to the template's name.
+ * - `display_name`: corresponds to the template's display name.
*
*
* string order_by = 4;
@@ -1253,10 +1253,10 @@ public Builder setOrderBy(java.lang.String value) {
* insignificant.
* Example: `name asc,update_time, create_time desc`
* Supported fields are:
- * - `create_time`: corresponds to time the template was created.
- * - `update_time`: corresponds to time the template was last updated.
- * - `name`: corresponds to template's name.
- * - `display_name`: corresponds to template's display name.
+ * - `create_time`: corresponds to the time the template was created.
+ * - `update_time`: corresponds to the time the template was last updated.
+ * - `name`: corresponds to the template's name.
+ * - `display_name`: corresponds to the template's display name.
*
*
* string order_by = 4;
@@ -1279,10 +1279,10 @@ public Builder clearOrderBy() {
* insignificant.
* Example: `name asc,update_time, create_time desc`
* Supported fields are:
- * - `create_time`: corresponds to time the template was created.
- * - `update_time`: corresponds to time the template was last updated.
- * - `name`: corresponds to template's name.
- * - `display_name`: corresponds to template's display name.
+ * - `create_time`: corresponds to the time the template was created.
+ * - `update_time`: corresponds to the time the template was last updated.
+ * - `name`: corresponds to the template's name.
+ * - `display_name`: corresponds to the template's display name.
*
*
* string order_by = 4;
diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListInspectTemplatesRequestOrBuilder.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListInspectTemplatesRequestOrBuilder.java
index 12323ef33a90..3047a260c780 100644
--- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListInspectTemplatesRequestOrBuilder.java
+++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListInspectTemplatesRequestOrBuilder.java
@@ -113,7 +113,7 @@ public interface ListInspectTemplatesRequestOrBuilder
*
*
*
- * Size of the page, can be limited by server. If zero server returns
+ * Size of the page, can be limited by the server. If zero server returns
* a page of max size 100.
*
*
@@ -133,10 +133,10 @@ public interface ListInspectTemplatesRequestOrBuilder
* insignificant.
* Example: `name asc,update_time, create_time desc`
* Supported fields are:
- * - `create_time`: corresponds to time the template was created.
- * - `update_time`: corresponds to time the template was last updated.
- * - `name`: corresponds to template's name.
- * - `display_name`: corresponds to template's display name.
+ * - `create_time`: corresponds to the time the template was created.
+ * - `update_time`: corresponds to the time the template was last updated.
+ * - `name`: corresponds to the template's name.
+ * - `display_name`: corresponds to the template's display name.
*
*
* string order_by = 4;
@@ -154,10 +154,10 @@ public interface ListInspectTemplatesRequestOrBuilder
* insignificant.
* Example: `name asc,update_time, create_time desc`
* Supported fields are:
- * - `create_time`: corresponds to time the template was created.
- * - `update_time`: corresponds to time the template was last updated.
- * - `name`: corresponds to template's name.
- * - `display_name`: corresponds to template's display name.
+ * - `create_time`: corresponds to the time the template was created.
+ * - `update_time`: corresponds to the time the template was last updated.
+ * - `name`: corresponds to the template's name.
+ * - `display_name`: corresponds to the template's display name.
*
*
* string order_by = 4;
diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListJobTriggersRequest.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListJobTriggersRequest.java
index 7974d420a833..fd18c6dbe1a3 100644
--- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListJobTriggersRequest.java
+++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListJobTriggersRequest.java
@@ -316,11 +316,11 @@ public int getPageSize() {
* insignificant.
* Example: `name asc,update_time, create_time desc`
* Supported fields are:
- * - `create_time`: corresponds to time the JobTrigger was created.
- * - `update_time`: corresponds to time the JobTrigger was last updated.
+ * - `create_time`: corresponds to the time the JobTrigger was created.
+ * - `update_time`: corresponds to the time the JobTrigger was last updated.
* - `last_run_time`: corresponds to the last time the JobTrigger ran.
- * - `name`: corresponds to JobTrigger's name.
- * - `display_name`: corresponds to JobTrigger's display name.
+ * - `name`: corresponds to the JobTrigger's name.
+ * - `display_name`: corresponds to the JobTrigger's display name.
* - `status`: corresponds to JobTrigger's status.
*
*
@@ -350,11 +350,11 @@ public java.lang.String getOrderBy() {
* insignificant.
* Example: `name asc,update_time, create_time desc`
* Supported fields are:
- * - `create_time`: corresponds to time the JobTrigger was created.
- * - `update_time`: corresponds to time the JobTrigger was last updated.
+ * - `create_time`: corresponds to the time the JobTrigger was created.
+ * - `update_time`: corresponds to the time the JobTrigger was last updated.
* - `last_run_time`: corresponds to the last time the JobTrigger ran.
- * - `name`: corresponds to JobTrigger's name.
- * - `display_name`: corresponds to JobTrigger's display name.
+ * - `name`: corresponds to the JobTrigger's name.
+ * - `display_name`: corresponds to the JobTrigger's display name.
* - `status`: corresponds to JobTrigger's status.
*
*
@@ -1306,11 +1306,11 @@ public Builder clearPageSize() {
* insignificant.
* Example: `name asc,update_time, create_time desc`
* Supported fields are:
- * - `create_time`: corresponds to time the JobTrigger was created.
- * - `update_time`: corresponds to time the JobTrigger was last updated.
+ * - `create_time`: corresponds to the time the JobTrigger was created.
+ * - `update_time`: corresponds to the time the JobTrigger was last updated.
* - `last_run_time`: corresponds to the last time the JobTrigger ran.
- * - `name`: corresponds to JobTrigger's name.
- * - `display_name`: corresponds to JobTrigger's display name.
+ * - `name`: corresponds to the JobTrigger's name.
+ * - `display_name`: corresponds to the JobTrigger's display name.
* - `status`: corresponds to JobTrigger's status.
*
*
@@ -1339,11 +1339,11 @@ public java.lang.String getOrderBy() {
* insignificant.
* Example: `name asc,update_time, create_time desc`
* Supported fields are:
- * - `create_time`: corresponds to time the JobTrigger was created.
- * - `update_time`: corresponds to time the JobTrigger was last updated.
+ * - `create_time`: corresponds to the time the JobTrigger was created.
+ * - `update_time`: corresponds to the time the JobTrigger was last updated.
* - `last_run_time`: corresponds to the last time the JobTrigger ran.
- * - `name`: corresponds to JobTrigger's name.
- * - `display_name`: corresponds to JobTrigger's display name.
+ * - `name`: corresponds to the JobTrigger's name.
+ * - `display_name`: corresponds to the JobTrigger's display name.
* - `status`: corresponds to JobTrigger's status.
*
*
@@ -1372,11 +1372,11 @@ public com.google.protobuf.ByteString getOrderByBytes() {
* insignificant.
* Example: `name asc,update_time, create_time desc`
* Supported fields are:
- * - `create_time`: corresponds to time the JobTrigger was created.
- * - `update_time`: corresponds to time the JobTrigger was last updated.
+ * - `create_time`: corresponds to the time the JobTrigger was created.
+ * - `update_time`: corresponds to the time the JobTrigger was last updated.
* - `last_run_time`: corresponds to the last time the JobTrigger ran.
- * - `name`: corresponds to JobTrigger's name.
- * - `display_name`: corresponds to JobTrigger's display name.
+ * - `name`: corresponds to the JobTrigger's name.
+ * - `display_name`: corresponds to the JobTrigger's display name.
* - `status`: corresponds to JobTrigger's status.
*
*
@@ -1404,11 +1404,11 @@ public Builder setOrderBy(java.lang.String value) {
* insignificant.
* Example: `name asc,update_time, create_time desc`
* Supported fields are:
- * - `create_time`: corresponds to time the JobTrigger was created.
- * - `update_time`: corresponds to time the JobTrigger was last updated.
+ * - `create_time`: corresponds to the time the JobTrigger was created.
+ * - `update_time`: corresponds to the time the JobTrigger was last updated.
* - `last_run_time`: corresponds to the last time the JobTrigger ran.
- * - `name`: corresponds to JobTrigger's name.
- * - `display_name`: corresponds to JobTrigger's display name.
+ * - `name`: corresponds to the JobTrigger's name.
+ * - `display_name`: corresponds to the JobTrigger's display name.
* - `status`: corresponds to JobTrigger's status.
*
*
@@ -1432,11 +1432,11 @@ public Builder clearOrderBy() {
* insignificant.
* Example: `name asc,update_time, create_time desc`
* Supported fields are:
- * - `create_time`: corresponds to time the JobTrigger was created.
- * - `update_time`: corresponds to time the JobTrigger was last updated.
+ * - `create_time`: corresponds to the time the JobTrigger was created.
+ * - `update_time`: corresponds to the time the JobTrigger was last updated.
* - `last_run_time`: corresponds to the last time the JobTrigger ran.
- * - `name`: corresponds to JobTrigger's name.
- * - `display_name`: corresponds to JobTrigger's display name.
+ * - `name`: corresponds to the JobTrigger's name.
+ * - `display_name`: corresponds to the JobTrigger's display name.
* - `status`: corresponds to JobTrigger's status.
*
*
diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListJobTriggersRequestOrBuilder.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListJobTriggersRequestOrBuilder.java
index b5337bce4ef3..5099ae37ba99 100644
--- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListJobTriggersRequestOrBuilder.java
+++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListJobTriggersRequestOrBuilder.java
@@ -126,11 +126,11 @@ public interface ListJobTriggersRequestOrBuilder
* insignificant.
* Example: `name asc,update_time, create_time desc`
* Supported fields are:
- * - `create_time`: corresponds to time the JobTrigger was created.
- * - `update_time`: corresponds to time the JobTrigger was last updated.
+ * - `create_time`: corresponds to the time the JobTrigger was created.
+ * - `update_time`: corresponds to the time the JobTrigger was last updated.
* - `last_run_time`: corresponds to the last time the JobTrigger ran.
- * - `name`: corresponds to JobTrigger's name.
- * - `display_name`: corresponds to JobTrigger's display name.
+ * - `name`: corresponds to the JobTrigger's name.
+ * - `display_name`: corresponds to the JobTrigger's display name.
* - `status`: corresponds to JobTrigger's status.
*
*
@@ -149,11 +149,11 @@ public interface ListJobTriggersRequestOrBuilder
* insignificant.
* Example: `name asc,update_time, create_time desc`
* Supported fields are:
- * - `create_time`: corresponds to time the JobTrigger was created.
- * - `update_time`: corresponds to time the JobTrigger was last updated.
+ * - `create_time`: corresponds to the time the JobTrigger was created.
+ * - `update_time`: corresponds to the time the JobTrigger was last updated.
* - `last_run_time`: corresponds to the last time the JobTrigger ran.
- * - `name`: corresponds to JobTrigger's name.
- * - `display_name`: corresponds to JobTrigger's display name.
+ * - `name`: corresponds to the JobTrigger's name.
+ * - `display_name`: corresponds to the JobTrigger's display name.
* - `status`: corresponds to JobTrigger's status.
*
*
diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListStoredInfoTypesRequest.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListStoredInfoTypesRequest.java
index af5eb393eaf8..0077ea749bc7 100644
--- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListStoredInfoTypesRequest.java
+++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListStoredInfoTypesRequest.java
@@ -156,10 +156,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
* `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
* + Projects scope, no location specified (defaults to global):<br/>
* `projects/`<var>PROJECT_ID</var>
- * + Organizations scope, location specified:<br/>
- * `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var>
- * + Organizations scope, no location specified (defaults to global):<br/>
- * `organizations/`<var>ORG_ID</var>
* The following example `parent` string specifies a parent project with the
* identifier `example-project`, and specifies the `europe-west3` location
* for processing data:
@@ -196,10 +192,6 @@ public java.lang.String getParent() {
* `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
* + Projects scope, no location specified (defaults to global):<br/>
* `projects/`<var>PROJECT_ID</var>
- * + Organizations scope, location specified:<br/>
- * `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var>
- * + Organizations scope, no location specified (defaults to global):<br/>
- * `organizations/`<var>ORG_ID</var>
* The following example `parent` string specifies a parent project with the
* identifier `example-project`, and specifies the `europe-west3` location
* for processing data:
@@ -282,7 +274,7 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
*
*
*
- * Size of the page, can be limited by server. If zero server returns
+ * Size of the page, can be limited by the server. If zero server returns
* a page of max size 100.
*
*
@@ -307,7 +299,7 @@ public int getPageSize() {
* insignificant.
* Example: `name asc, display_name, create_time desc`
* Supported fields are:
- * - `create_time`: corresponds to time the most recent version of the
+ * - `create_time`: corresponds to the time the most recent version of the
* resource was created.
* - `state`: corresponds to the state of the resource.
* - `name`: corresponds to resource name.
@@ -340,7 +332,7 @@ public java.lang.String getOrderBy() {
* insignificant.
* Example: `name asc, display_name, create_time desc`
* Supported fields are:
- * - `create_time`: corresponds to time the most recent version of the
+ * - `create_time`: corresponds to the time the most recent version of the
* resource was created.
* - `state`: corresponds to the state of the resource.
* - `name`: corresponds to resource name.
@@ -807,10 +799,6 @@ public Builder mergeFrom(
* `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
* + Projects scope, no location specified (defaults to global):<br/>
* `projects/`<var>PROJECT_ID</var>
- * + Organizations scope, location specified:<br/>
- * `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var>
- * + Organizations scope, no location specified (defaults to global):<br/>
- * `organizations/`<var>ORG_ID</var>
* The following example `parent` string specifies a parent project with the
* identifier `example-project`, and specifies the `europe-west3` location
* for processing data:
@@ -846,10 +834,6 @@ public java.lang.String getParent() {
* `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
* + Projects scope, no location specified (defaults to global):<br/>
* `projects/`<var>PROJECT_ID</var>
- * + Organizations scope, location specified:<br/>
- * `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var>
- * + Organizations scope, no location specified (defaults to global):<br/>
- * `organizations/`<var>ORG_ID</var>
* The following example `parent` string specifies a parent project with the
* identifier `example-project`, and specifies the `europe-west3` location
* for processing data:
@@ -885,10 +869,6 @@ public com.google.protobuf.ByteString getParentBytes() {
* `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
* + Projects scope, no location specified (defaults to global):<br/>
* `projects/`<var>PROJECT_ID</var>
- * + Organizations scope, location specified:<br/>
- * `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var>
- * + Organizations scope, no location specified (defaults to global):<br/>
- * `organizations/`<var>ORG_ID</var>
* The following example `parent` string specifies a parent project with the
* identifier `example-project`, and specifies the `europe-west3` location
* for processing data:
@@ -923,10 +903,6 @@ public Builder setParent(java.lang.String value) {
* `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
* + Projects scope, no location specified (defaults to global):<br/>
* `projects/`<var>PROJECT_ID</var>
- * + Organizations scope, location specified:<br/>
- * `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var>
- * + Organizations scope, no location specified (defaults to global):<br/>
- * `organizations/`<var>ORG_ID</var>
* The following example `parent` string specifies a parent project with the
* identifier `example-project`, and specifies the `europe-west3` location
* for processing data:
@@ -957,10 +933,6 @@ public Builder clearParent() {
* `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
* + Projects scope, no location specified (defaults to global):<br/>
* `projects/`<var>PROJECT_ID</var>
- * + Organizations scope, location specified:<br/>
- * `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var>
- * + Organizations scope, no location specified (defaults to global):<br/>
- * `organizations/`<var>ORG_ID</var>
* The following example `parent` string specifies a parent project with the
* identifier `example-project`, and specifies the `europe-west3` location
* for processing data:
@@ -1101,7 +1073,7 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
*
*
*
- * Size of the page, can be limited by server. If zero server returns
+ * Size of the page, can be limited by the server. If zero server returns
* a page of max size 100.
*
*
@@ -1117,7 +1089,7 @@ public int getPageSize() {
*
*
*
- * Size of the page, can be limited by server. If zero server returns
+ * Size of the page, can be limited by the server. If zero server returns
* a page of max size 100.
*
*
@@ -1136,7 +1108,7 @@ public Builder setPageSize(int value) {
*
*
*
- * Size of the page, can be limited by server. If zero server returns
+ * Size of the page, can be limited by the server. If zero server returns
* a page of max size 100.
*
*
@@ -1162,7 +1134,7 @@ public Builder clearPageSize() {
* insignificant.
* Example: `name asc, display_name, create_time desc`
* Supported fields are:
- * - `create_time`: corresponds to time the most recent version of the
+ * - `create_time`: corresponds to the time the most recent version of the
* resource was created.
* - `state`: corresponds to the state of the resource.
* - `name`: corresponds to resource name.
@@ -1194,7 +1166,7 @@ public java.lang.String getOrderBy() {
* insignificant.
* Example: `name asc, display_name, create_time desc`
* Supported fields are:
- * - `create_time`: corresponds to time the most recent version of the
+ * - `create_time`: corresponds to the time the most recent version of the
* resource was created.
* - `state`: corresponds to the state of the resource.
* - `name`: corresponds to resource name.
@@ -1226,7 +1198,7 @@ public com.google.protobuf.ByteString getOrderByBytes() {
* insignificant.
* Example: `name asc, display_name, create_time desc`
* Supported fields are:
- * - `create_time`: corresponds to time the most recent version of the
+ * - `create_time`: corresponds to the time the most recent version of the
* resource was created.
* - `state`: corresponds to the state of the resource.
* - `name`: corresponds to resource name.
@@ -1257,7 +1229,7 @@ public Builder setOrderBy(java.lang.String value) {
* insignificant.
* Example: `name asc, display_name, create_time desc`
* Supported fields are:
- * - `create_time`: corresponds to time the most recent version of the
+ * - `create_time`: corresponds to the time the most recent version of the
* resource was created.
* - `state`: corresponds to the state of the resource.
* - `name`: corresponds to resource name.
@@ -1284,7 +1256,7 @@ public Builder clearOrderBy() {
* insignificant.
* Example: `name asc, display_name, create_time desc`
* Supported fields are:
- * - `create_time`: corresponds to time the most recent version of the
+ * - `create_time`: corresponds to the time the most recent version of the
* resource was created.
* - `state`: corresponds to the state of the resource.
* - `name`: corresponds to resource name.
diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListStoredInfoTypesRequestOrBuilder.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListStoredInfoTypesRequestOrBuilder.java
index 5e85a54a74d3..c354e9ddda75 100644
--- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListStoredInfoTypesRequestOrBuilder.java
+++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListStoredInfoTypesRequestOrBuilder.java
@@ -35,10 +35,6 @@ public interface ListStoredInfoTypesRequestOrBuilder
* `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
* + Projects scope, no location specified (defaults to global):<br/>
* `projects/`<var>PROJECT_ID</var>
- * + Organizations scope, location specified:<br/>
- * `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var>
- * + Organizations scope, no location specified (defaults to global):<br/>
- * `organizations/`<var>ORG_ID</var>
* The following example `parent` string specifies a parent project with the
* identifier `example-project`, and specifies the `europe-west3` location
* for processing data:
@@ -64,10 +60,6 @@ public interface ListStoredInfoTypesRequestOrBuilder
* `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
* + Projects scope, no location specified (defaults to global):<br/>
* `projects/`<var>PROJECT_ID</var>
- * + Organizations scope, location specified:<br/>
- * `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var>
- * + Organizations scope, no location specified (defaults to global):<br/>
- * `organizations/`<var>ORG_ID</var>
* The following example `parent` string specifies a parent project with the
* identifier `example-project`, and specifies the `europe-west3` location
* for processing data:
@@ -113,7 +105,7 @@ public interface ListStoredInfoTypesRequestOrBuilder
*
*
*
- * Size of the page, can be limited by server. If zero server returns
+ * Size of the page, can be limited by the server. If zero server returns
* a page of max size 100.
*
*
@@ -133,7 +125,7 @@ public interface ListStoredInfoTypesRequestOrBuilder
* insignificant.
* Example: `name asc, display_name, create_time desc`
* Supported fields are:
- * - `create_time`: corresponds to time the most recent version of the
+ * - `create_time`: corresponds to the time the most recent version of the
* resource was created.
* - `state`: corresponds to the state of the resource.
* - `name`: corresponds to resource name.
@@ -155,7 +147,7 @@ public interface ListStoredInfoTypesRequestOrBuilder
* insignificant.
* Example: `name asc, display_name, create_time desc`
* Supported fields are:
- * - `create_time`: corresponds to time the most recent version of the
+ * - `create_time`: corresponds to the time the most recent version of the
* resource was created.
* - `state`: corresponds to the state of the resource.
* - `name`: corresponds to resource name.
diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/MatchingType.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/MatchingType.java
index 90d30b094b4c..b57c84af50a9 100644
--- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/MatchingType.java
+++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/MatchingType.java
@@ -193,7 +193,7 @@ public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType
}
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
- return com.google.privacy.dlp.v2.DlpProto.getDescriptor().getEnumTypes().get(1);
+ return com.google.privacy.dlp.v2.DlpProto.getDescriptor().getEnumTypes().get(4);
}
private static final MatchingType[] VALUES = values();
diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/MetadataType.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/MetadataType.java
index ec7c0ce66022..4b6dd93dbc6b 100644
--- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/MetadataType.java
+++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/MetadataType.java
@@ -129,7 +129,7 @@ public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType
}
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
- return com.google.privacy.dlp.v2.DlpProto.getDescriptor().getEnumTypes().get(3);
+ return com.google.privacy.dlp.v2.DlpProto.getDescriptor().getEnumTypes().get(6);
}
private static final MetadataType[] VALUES = values();
diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/OtherInfoTypeSummary.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/OtherInfoTypeSummary.java
index 33293db29ce3..0de4357f4f1a 100644
--- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/OtherInfoTypeSummary.java
+++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/OtherInfoTypeSummary.java
@@ -81,6 +81,11 @@ private OtherInfoTypeSummary(
infoType_ = subBuilder.buildPartial();
}
+ break;
+ }
+ case 16:
+ {
+ estimatedPrevalence_ = input.readInt32();
break;
}
default:
@@ -165,6 +170,25 @@ public com.google.privacy.dlp.v2.InfoTypeOrBuilder getInfoTypeOrBuilder() {
return getInfoType();
}
+ public static final int ESTIMATED_PREVALENCE_FIELD_NUMBER = 2;
+ private int estimatedPrevalence_;
+ /**
+ *
+ *
+ *
+ * Approximate percentage of non-null rows that contained data detected by
+ * this infotype.
+ *
+ *
+ * int32 estimated_prevalence = 2;
+ *
+ * @return The estimatedPrevalence.
+ */
+ @java.lang.Override
+ public int getEstimatedPrevalence() {
+ return estimatedPrevalence_;
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -182,6 +206,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (infoType_ != null) {
output.writeMessage(1, getInfoType());
}
+ if (estimatedPrevalence_ != 0) {
+ output.writeInt32(2, estimatedPrevalence_);
+ }
unknownFields.writeTo(output);
}
@@ -194,6 +221,9 @@ public int getSerializedSize() {
if (infoType_ != null) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getInfoType());
}
+ if (estimatedPrevalence_ != 0) {
+ size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, estimatedPrevalence_);
+ }
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
@@ -214,6 +244,7 @@ public boolean equals(final java.lang.Object obj) {
if (hasInfoType()) {
if (!getInfoType().equals(other.getInfoType())) return false;
}
+ if (getEstimatedPrevalence() != other.getEstimatedPrevalence()) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -229,6 +260,8 @@ public int hashCode() {
hash = (37 * hash) + INFO_TYPE_FIELD_NUMBER;
hash = (53 * hash) + getInfoType().hashCode();
}
+ hash = (37 * hash) + ESTIMATED_PREVALENCE_FIELD_NUMBER;
+ hash = (53 * hash) + getEstimatedPrevalence();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
@@ -380,6 +413,8 @@ public Builder clear() {
infoType_ = null;
infoTypeBuilder_ = null;
}
+ estimatedPrevalence_ = 0;
+
return this;
}
@@ -412,6 +447,7 @@ public com.google.privacy.dlp.v2.OtherInfoTypeSummary buildPartial() {
} else {
result.infoType_ = infoTypeBuilder_.build();
}
+ result.estimatedPrevalence_ = estimatedPrevalence_;
onBuilt();
return result;
}
@@ -464,6 +500,9 @@ public Builder mergeFrom(com.google.privacy.dlp.v2.OtherInfoTypeSummary other) {
if (other.hasInfoType()) {
mergeInfoType(other.getInfoType());
}
+ if (other.getEstimatedPrevalence() != 0) {
+ setEstimatedPrevalence(other.getEstimatedPrevalence());
+ }
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
@@ -678,6 +717,61 @@ public com.google.privacy.dlp.v2.InfoTypeOrBuilder getInfoTypeOrBuilder() {
return infoTypeBuilder_;
}
+ private int estimatedPrevalence_;
+ /**
+ *
+ *
+ *
+ * Approximate percentage of non-null rows that contained data detected by
+ * this infotype.
+ *
+ *
+ * int32 estimated_prevalence = 2;
+ *
+ * @return The estimatedPrevalence.
+ */
+ @java.lang.Override
+ public int getEstimatedPrevalence() {
+ return estimatedPrevalence_;
+ }
+ /**
+ *
+ *
+ *
+ * Approximate percentage of non-null rows that contained data detected by
+ * this infotype.
+ *
+ *
+ * int32 estimated_prevalence = 2;
+ *
+ * @param value The estimatedPrevalence to set.
+ * @return This builder for chaining.
+ */
+ public Builder setEstimatedPrevalence(int value) {
+
+ estimatedPrevalence_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Approximate percentage of non-null rows that contained data detected by
+ * this infotype.
+ *
+ *
+ * int32 estimated_prevalence = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearEstimatedPrevalence() {
+
+ estimatedPrevalence_ = 0;
+ onChanged();
+ return this;
+ }
+
@java.lang.Override
public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/OtherInfoTypeSummaryOrBuilder.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/OtherInfoTypeSummaryOrBuilder.java
index 254dc6ecbe8f..f9f80b3deaf3 100644
--- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/OtherInfoTypeSummaryOrBuilder.java
+++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/OtherInfoTypeSummaryOrBuilder.java
@@ -57,4 +57,18 @@ public interface OtherInfoTypeSummaryOrBuilder
* .google.privacy.dlp.v2.InfoType info_type = 1;
*/
com.google.privacy.dlp.v2.InfoTypeOrBuilder getInfoTypeOrBuilder();
+
+ /**
+ *
+ *
+ *
+ * Approximate percentage of non-null rows that contained data detected by
+ * this infotype.
+ *
+ *
+ * int32 estimated_prevalence = 2;
+ *
+ * @return The estimatedPrevalence.
+ */
+ int getEstimatedPrevalence();
}
diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/OutputStorageConfig.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/OutputStorageConfig.java
index 5ba9ff716e02..664060bd49e3 100644
--- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/OutputStorageConfig.java
+++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/OutputStorageConfig.java
@@ -165,7 +165,7 @@ public enum OutputSchema implements com.google.protobuf.ProtocolMessageEnum {
*
*
*
- * Schema tailored to findings from scanning Google Cloud Storage.
+ * Schema tailored to findings from scanning Cloud Storage.
*
*
* GCS_COLUMNS = 2;
@@ -229,7 +229,7 @@ public enum OutputSchema implements com.google.protobuf.ProtocolMessageEnum {
*
*
*
- * Schema tailored to findings from scanning Google Cloud Storage.
+ * Schema tailored to findings from scanning Cloud Storage.
*
*
* GCS_COLUMNS = 2;
@@ -407,8 +407,8 @@ public TypeCase getTypeCase() {
* Store findings in an existing table or a new table in an existing
* dataset. If table_id is not set a new one will be generated
* for you with the following format:
- * dlp_googleapis_yyyy_mm_dd_[dlp_job_id]. Pacific timezone will be used for
- * generating the date details.
+ * dlp_googleapis_yyyy_mm_dd_[dlp_job_id]. Pacific time zone will be used
+ * for generating the date details.
* For Inspect, each column in an existing output table must have the same
* name, type, and mode of a field in the `Finding` object.
* For Risk, an existing output table should be the output of a previous
@@ -433,8 +433,8 @@ public boolean hasTable() {
* Store findings in an existing table or a new table in an existing
* dataset. If table_id is not set a new one will be generated
* for you with the following format:
- * dlp_googleapis_yyyy_mm_dd_[dlp_job_id]. Pacific timezone will be used for
- * generating the date details.
+ * dlp_googleapis_yyyy_mm_dd_[dlp_job_id]. Pacific time zone will be used
+ * for generating the date details.
* For Inspect, each column in an existing output table must have the same
* name, type, and mode of a field in the `Finding` object.
* For Risk, an existing output table should be the output of a previous
@@ -462,8 +462,8 @@ public com.google.privacy.dlp.v2.BigQueryTable getTable() {
* Store findings in an existing table or a new table in an existing
* dataset. If table_id is not set a new one will be generated
* for you with the following format:
- * dlp_googleapis_yyyy_mm_dd_[dlp_job_id]. Pacific timezone will be used for
- * generating the date details.
+ * dlp_googleapis_yyyy_mm_dd_[dlp_job_id]. Pacific time zone will be used
+ * for generating the date details.
* For Inspect, each column in an existing output table must have the same
* name, type, and mode of a field in the `Finding` object.
* For Risk, an existing output table should be the output of a previous
@@ -927,8 +927,8 @@ public Builder clearType() {
* Store findings in an existing table or a new table in an existing
* dataset. If table_id is not set a new one will be generated
* for you with the following format:
- * dlp_googleapis_yyyy_mm_dd_[dlp_job_id]. Pacific timezone will be used for
- * generating the date details.
+ * dlp_googleapis_yyyy_mm_dd_[dlp_job_id]. Pacific time zone will be used
+ * for generating the date details.
* For Inspect, each column in an existing output table must have the same
* name, type, and mode of a field in the `Finding` object.
* For Risk, an existing output table should be the output of a previous
@@ -953,8 +953,8 @@ public boolean hasTable() {
* Store findings in an existing table or a new table in an existing
* dataset. If table_id is not set a new one will be generated
* for you with the following format:
- * dlp_googleapis_yyyy_mm_dd_[dlp_job_id]. Pacific timezone will be used for
- * generating the date details.
+ * dlp_googleapis_yyyy_mm_dd_[dlp_job_id]. Pacific time zone will be used
+ * for generating the date details.
* For Inspect, each column in an existing output table must have the same
* name, type, and mode of a field in the `Finding` object.
* For Risk, an existing output table should be the output of a previous
@@ -989,8 +989,8 @@ public com.google.privacy.dlp.v2.BigQueryTable getTable() {
* Store findings in an existing table or a new table in an existing
* dataset. If table_id is not set a new one will be generated
* for you with the following format:
- * dlp_googleapis_yyyy_mm_dd_[dlp_job_id]. Pacific timezone will be used for
- * generating the date details.
+ * dlp_googleapis_yyyy_mm_dd_[dlp_job_id]. Pacific time zone will be used
+ * for generating the date details.
* For Inspect, each column in an existing output table must have the same
* name, type, and mode of a field in the `Finding` object.
* For Risk, an existing output table should be the output of a previous
@@ -1022,8 +1022,8 @@ public Builder setTable(com.google.privacy.dlp.v2.BigQueryTable value) {
* Store findings in an existing table or a new table in an existing
* dataset. If table_id is not set a new one will be generated
* for you with the following format:
- * dlp_googleapis_yyyy_mm_dd_[dlp_job_id]. Pacific timezone will be used for
- * generating the date details.
+ * dlp_googleapis_yyyy_mm_dd_[dlp_job_id]. Pacific time zone will be used
+ * for generating the date details.
* For Inspect, each column in an existing output table must have the same
* name, type, and mode of a field in the `Finding` object.
* For Risk, an existing output table should be the output of a previous
@@ -1052,8 +1052,8 @@ public Builder setTable(com.google.privacy.dlp.v2.BigQueryTable.Builder builderF
* Store findings in an existing table or a new table in an existing
* dataset. If table_id is not set a new one will be generated
* for you with the following format:
- * dlp_googleapis_yyyy_mm_dd_[dlp_job_id]. Pacific timezone will be used for
- * generating the date details.
+ * dlp_googleapis_yyyy_mm_dd_[dlp_job_id]. Pacific time zone will be used
+ * for generating the date details.
* For Inspect, each column in an existing output table must have the same
* name, type, and mode of a field in the `Finding` object.
* For Risk, an existing output table should be the output of a previous
@@ -1095,8 +1095,8 @@ public Builder mergeTable(com.google.privacy.dlp.v2.BigQueryTable value) {
* Store findings in an existing table or a new table in an existing
* dataset. If table_id is not set a new one will be generated
* for you with the following format:
- * dlp_googleapis_yyyy_mm_dd_[dlp_job_id]. Pacific timezone will be used for
- * generating the date details.
+ * dlp_googleapis_yyyy_mm_dd_[dlp_job_id]. Pacific time zone will be used
+ * for generating the date details.
* For Inspect, each column in an existing output table must have the same
* name, type, and mode of a field in the `Finding` object.
* For Risk, an existing output table should be the output of a previous
@@ -1131,8 +1131,8 @@ public Builder clearTable() {
* Store findings in an existing table or a new table in an existing
* dataset. If table_id is not set a new one will be generated
* for you with the following format:
- * dlp_googleapis_yyyy_mm_dd_[dlp_job_id]. Pacific timezone will be used for
- * generating the date details.
+ * dlp_googleapis_yyyy_mm_dd_[dlp_job_id]. Pacific time zone will be used
+ * for generating the date details.
* For Inspect, each column in an existing output table must have the same
* name, type, and mode of a field in the `Finding` object.
* For Risk, an existing output table should be the output of a previous
@@ -1154,8 +1154,8 @@ public com.google.privacy.dlp.v2.BigQueryTable.Builder getTableBuilder() {
* Store findings in an existing table or a new table in an existing
* dataset. If table_id is not set a new one will be generated
* for you with the following format:
- * dlp_googleapis_yyyy_mm_dd_[dlp_job_id]. Pacific timezone will be used for
- * generating the date details.
+ * dlp_googleapis_yyyy_mm_dd_[dlp_job_id]. Pacific time zone will be used
+ * for generating the date details.
* For Inspect, each column in an existing output table must have the same
* name, type, and mode of a field in the `Finding` object.
* For Risk, an existing output table should be the output of a previous
@@ -1185,8 +1185,8 @@ public com.google.privacy.dlp.v2.BigQueryTableOrBuilder getTableOrBuilder() {
* Store findings in an existing table or a new table in an existing
* dataset. If table_id is not set a new one will be generated
* for you with the following format:
- * dlp_googleapis_yyyy_mm_dd_[dlp_job_id]. Pacific timezone will be used for
- * generating the date details.
+ * dlp_googleapis_yyyy_mm_dd_[dlp_job_id]. Pacific time zone will be used
+ * for generating the date details.
* For Inspect, each column in an existing output table must have the same
* name, type, and mode of a field in the `Finding` object.
* For Risk, an existing output table should be the output of a previous
diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/OutputStorageConfigOrBuilder.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/OutputStorageConfigOrBuilder.java
index d949dab457de..258fee82f499 100644
--- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/OutputStorageConfigOrBuilder.java
+++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/OutputStorageConfigOrBuilder.java
@@ -30,8 +30,8 @@ public interface OutputStorageConfigOrBuilder
* Store findings in an existing table or a new table in an existing
* dataset. If table_id is not set a new one will be generated
* for you with the following format:
- * dlp_googleapis_yyyy_mm_dd_[dlp_job_id]. Pacific timezone will be used for
- * generating the date details.
+ * dlp_googleapis_yyyy_mm_dd_[dlp_job_id]. Pacific time zone will be used
+ * for generating the date details.
* For Inspect, each column in an existing output table must have the same
* name, type, and mode of a field in the `Finding` object.
* For Risk, an existing output table should be the output of a previous
@@ -53,8 +53,8 @@ public interface OutputStorageConfigOrBuilder
* Store findings in an existing table or a new table in an existing
* dataset. If table_id is not set a new one will be generated
* for you with the following format:
- * dlp_googleapis_yyyy_mm_dd_[dlp_job_id]. Pacific timezone will be used for
- * generating the date details.
+ * dlp_googleapis_yyyy_mm_dd_[dlp_job_id]. Pacific time zone will be used
+ * for generating the date details.
* For Inspect, each column in an existing output table must have the same
* name, type, and mode of a field in the `Finding` object.
* For Risk, an existing output table should be the output of a previous
@@ -76,8 +76,8 @@ public interface OutputStorageConfigOrBuilder
* Store findings in an existing table or a new table in an existing
* dataset. If table_id is not set a new one will be generated
* for you with the following format:
- * dlp_googleapis_yyyy_mm_dd_[dlp_job_id]. Pacific timezone will be used for
- * generating the date details.
+ * dlp_googleapis_yyyy_mm_dd_[dlp_job_id]. Pacific time zone will be used
+ * for generating the date details.
* For Inspect, each column in an existing output table must have the same
* name, type, and mode of a field in the `Finding` object.
* For Risk, an existing output table should be the output of a previous
diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/RecordCondition.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/RecordCondition.java
index dad16cd68206..6fc733559b60 100644
--- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/RecordCondition.java
+++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/RecordCondition.java
@@ -2513,7 +2513,7 @@ public interface ExpressionsOrBuilder
*
*
*
- * An expression, consisting or an operator and conditions.
+ * An expression, consisting of an operator and conditions.
*
*
* Protobuf type {@code google.privacy.dlp.v2.RecordCondition.Expressions}
@@ -3099,7 +3099,7 @@ protected Builder newBuilderForType(
*
*
*
- * An expression, consisting or an operator and conditions.
+ * An expression, consisting of an operator and conditions.
*
*
* Protobuf type {@code google.privacy.dlp.v2.RecordCondition.Expressions}
diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/RecordTransformation.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/RecordTransformation.java
new file mode 100644
index 000000000000..6f59bb29c903
--- /dev/null
+++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/RecordTransformation.java
@@ -0,0 +1,1166 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/privacy/dlp/v2/dlp.proto
+
+package com.google.privacy.dlp.v2;
+
+/** Protobuf type {@code google.privacy.dlp.v2.RecordTransformation} */
+public final class RecordTransformation extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2.RecordTransformation)
+ RecordTransformationOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use RecordTransformation.newBuilder() to construct.
+ private RecordTransformation(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private RecordTransformation() {
+ containerVersion_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new RecordTransformation();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private RecordTransformation(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ com.google.privacy.dlp.v2.FieldId.Builder subBuilder = null;
+ if (fieldId_ != null) {
+ subBuilder = fieldId_.toBuilder();
+ }
+ fieldId_ =
+ input.readMessage(com.google.privacy.dlp.v2.FieldId.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(fieldId_);
+ fieldId_ = subBuilder.buildPartial();
+ }
+
+ break;
+ }
+ case 18:
+ {
+ com.google.protobuf.Timestamp.Builder subBuilder = null;
+ if (containerTimestamp_ != null) {
+ subBuilder = containerTimestamp_.toBuilder();
+ }
+ containerTimestamp_ =
+ input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(containerTimestamp_);
+ containerTimestamp_ = subBuilder.buildPartial();
+ }
+
+ break;
+ }
+ case 26:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ containerVersion_ = s;
+ break;
+ }
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.privacy.dlp.v2.DlpProto
+ .internal_static_google_privacy_dlp_v2_RecordTransformation_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.privacy.dlp.v2.DlpProto
+ .internal_static_google_privacy_dlp_v2_RecordTransformation_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.privacy.dlp.v2.RecordTransformation.class,
+ com.google.privacy.dlp.v2.RecordTransformation.Builder.class);
+ }
+
+ public static final int FIELD_ID_FIELD_NUMBER = 1;
+ private com.google.privacy.dlp.v2.FieldId fieldId_;
+ /**
+ *
+ *
+ *
+ * For record transformations, provide a field.
+ *
+ *
+ * .google.privacy.dlp.v2.FieldId field_id = 1;
+ *
+ * @return Whether the fieldId field is set.
+ */
+ @java.lang.Override
+ public boolean hasFieldId() {
+ return fieldId_ != null;
+ }
+ /**
+ *
+ *
+ *
+ * For record transformations, provide a field.
+ *
+ *
+ * .google.privacy.dlp.v2.FieldId field_id = 1;
+ *
+ * @return The fieldId.
+ */
+ @java.lang.Override
+ public com.google.privacy.dlp.v2.FieldId getFieldId() {
+ return fieldId_ == null ? com.google.privacy.dlp.v2.FieldId.getDefaultInstance() : fieldId_;
+ }
+ /**
+ *
+ *
+ *
+ * For record transformations, provide a field.
+ *
+ *
+ * .google.privacy.dlp.v2.FieldId field_id = 1;
+ */
+ @java.lang.Override
+ public com.google.privacy.dlp.v2.FieldIdOrBuilder getFieldIdOrBuilder() {
+ return getFieldId();
+ }
+
+ public static final int CONTAINER_TIMESTAMP_FIELD_NUMBER = 2;
+ private com.google.protobuf.Timestamp containerTimestamp_;
+ /**
+ *
+ *
+ *
+ * Findings container modification timestamp, if applicable.
+ *
+ *
+ * .google.protobuf.Timestamp container_timestamp = 2;
+ *
+ * @return Whether the containerTimestamp field is set.
+ */
+ @java.lang.Override
+ public boolean hasContainerTimestamp() {
+ return containerTimestamp_ != null;
+ }
+ /**
+ *
+ *
+ *
+ * Findings container modification timestamp, if applicable.
+ *
+ *
+ * .google.protobuf.Timestamp container_timestamp = 2;
+ *
+ * @return The containerTimestamp.
+ */
+ @java.lang.Override
+ public com.google.protobuf.Timestamp getContainerTimestamp() {
+ return containerTimestamp_ == null
+ ? com.google.protobuf.Timestamp.getDefaultInstance()
+ : containerTimestamp_;
+ }
+ /**
+ *
+ *
+ *
+ * Findings container modification timestamp, if applicable.
+ *
+ *
+ * .google.protobuf.Timestamp container_timestamp = 2;
+ */
+ @java.lang.Override
+ public com.google.protobuf.TimestampOrBuilder getContainerTimestampOrBuilder() {
+ return getContainerTimestamp();
+ }
+
+ public static final int CONTAINER_VERSION_FIELD_NUMBER = 3;
+ private volatile java.lang.Object containerVersion_;
+ /**
+ *
+ *
+ *
+ * Container version, if available ("generation" for Cloud Storage).
+ *
+ *
+ * string container_version = 3;
+ *
+ * @return The containerVersion.
+ */
+ @java.lang.Override
+ public java.lang.String getContainerVersion() {
+ java.lang.Object ref = containerVersion_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ containerVersion_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Container version, if available ("generation" for Cloud Storage).
+ *
+ *
+ * string container_version = 3;
+ *
+ * @return The bytes for containerVersion.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getContainerVersionBytes() {
+ java.lang.Object ref = containerVersion_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ containerVersion_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (fieldId_ != null) {
+ output.writeMessage(1, getFieldId());
+ }
+ if (containerTimestamp_ != null) {
+ output.writeMessage(2, getContainerTimestamp());
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(containerVersion_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, containerVersion_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (fieldId_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getFieldId());
+ }
+ if (containerTimestamp_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getContainerTimestamp());
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(containerVersion_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, containerVersion_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.privacy.dlp.v2.RecordTransformation)) {
+ return super.equals(obj);
+ }
+ com.google.privacy.dlp.v2.RecordTransformation other =
+ (com.google.privacy.dlp.v2.RecordTransformation) obj;
+
+ if (hasFieldId() != other.hasFieldId()) return false;
+ if (hasFieldId()) {
+ if (!getFieldId().equals(other.getFieldId())) return false;
+ }
+ if (hasContainerTimestamp() != other.hasContainerTimestamp()) return false;
+ if (hasContainerTimestamp()) {
+ if (!getContainerTimestamp().equals(other.getContainerTimestamp())) return false;
+ }
+ if (!getContainerVersion().equals(other.getContainerVersion())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasFieldId()) {
+ hash = (37 * hash) + FIELD_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getFieldId().hashCode();
+ }
+ if (hasContainerTimestamp()) {
+ hash = (37 * hash) + CONTAINER_TIMESTAMP_FIELD_NUMBER;
+ hash = (53 * hash) + getContainerTimestamp().hashCode();
+ }
+ hash = (37 * hash) + CONTAINER_VERSION_FIELD_NUMBER;
+ hash = (53 * hash) + getContainerVersion().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.privacy.dlp.v2.RecordTransformation parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.privacy.dlp.v2.RecordTransformation parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.privacy.dlp.v2.RecordTransformation parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.privacy.dlp.v2.RecordTransformation parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.privacy.dlp.v2.RecordTransformation parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.privacy.dlp.v2.RecordTransformation parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.privacy.dlp.v2.RecordTransformation parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.privacy.dlp.v2.RecordTransformation parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.privacy.dlp.v2.RecordTransformation parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.privacy.dlp.v2.RecordTransformation parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.privacy.dlp.v2.RecordTransformation parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.privacy.dlp.v2.RecordTransformation parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(com.google.privacy.dlp.v2.RecordTransformation prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /** Protobuf type {@code google.privacy.dlp.v2.RecordTransformation} */
+ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * For record transformations, provide a field.
+ *
+ *
+ * .google.privacy.dlp.v2.FieldId field_id = 1;
+ *
+ * @return Whether the fieldId field is set.
+ */
+ public boolean hasFieldId() {
+ return fieldIdBuilder_ != null || fieldId_ != null;
+ }
+ /**
+ *
+ *
+ *
+ * For record transformations, provide a field.
+ *
+ *
+ * .google.privacy.dlp.v2.FieldId field_id = 1;
+ *
+ * @return The fieldId.
+ */
+ public com.google.privacy.dlp.v2.FieldId getFieldId() {
+ if (fieldIdBuilder_ == null) {
+ return fieldId_ == null ? com.google.privacy.dlp.v2.FieldId.getDefaultInstance() : fieldId_;
+ } else {
+ return fieldIdBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * For record transformations, provide a field.
+ *
+ *
+ * .google.privacy.dlp.v2.FieldId field_id = 1;
+ */
+ public Builder setFieldId(com.google.privacy.dlp.v2.FieldId value) {
+ if (fieldIdBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ fieldId_ = value;
+ onChanged();
+ } else {
+ fieldIdBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * For record transformations, provide a field.
+ *
+ *
+ * .google.privacy.dlp.v2.FieldId field_id = 1;
+ */
+ public Builder setFieldId(com.google.privacy.dlp.v2.FieldId.Builder builderForValue) {
+ if (fieldIdBuilder_ == null) {
+ fieldId_ = builderForValue.build();
+ onChanged();
+ } else {
+ fieldIdBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * For record transformations, provide a field.
+ *
+ *
+ * .google.privacy.dlp.v2.FieldId field_id = 1;
+ */
+ public Builder mergeFieldId(com.google.privacy.dlp.v2.FieldId value) {
+ if (fieldIdBuilder_ == null) {
+ if (fieldId_ != null) {
+ fieldId_ =
+ com.google.privacy.dlp.v2.FieldId.newBuilder(fieldId_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ fieldId_ = value;
+ }
+ onChanged();
+ } else {
+ fieldIdBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * For record transformations, provide a field.
+ *
+ *
+ * .google.privacy.dlp.v2.FieldId field_id = 1;
+ */
+ public Builder clearFieldId() {
+ if (fieldIdBuilder_ == null) {
+ fieldId_ = null;
+ onChanged();
+ } else {
+ fieldId_ = null;
+ fieldIdBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * For record transformations, provide a field.
+ *
+ *
+ * .google.privacy.dlp.v2.FieldId field_id = 1;
+ */
+ public com.google.privacy.dlp.v2.FieldId.Builder getFieldIdBuilder() {
+
+ onChanged();
+ return getFieldIdFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ *
+ * For record transformations, provide a field.
+ *
+ *
+ * .google.privacy.dlp.v2.FieldId field_id = 1;
+ */
+ public com.google.privacy.dlp.v2.FieldIdOrBuilder getFieldIdOrBuilder() {
+ if (fieldIdBuilder_ != null) {
+ return fieldIdBuilder_.getMessageOrBuilder();
+ } else {
+ return fieldId_ == null ? com.google.privacy.dlp.v2.FieldId.getDefaultInstance() : fieldId_;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * For record transformations, provide a field.
+ *
+ *
+ * .google.privacy.dlp.v2.FieldId field_id = 1;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.privacy.dlp.v2.FieldId,
+ com.google.privacy.dlp.v2.FieldId.Builder,
+ com.google.privacy.dlp.v2.FieldIdOrBuilder>
+ getFieldIdFieldBuilder() {
+ if (fieldIdBuilder_ == null) {
+ fieldIdBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.privacy.dlp.v2.FieldId,
+ com.google.privacy.dlp.v2.FieldId.Builder,
+ com.google.privacy.dlp.v2.FieldIdOrBuilder>(
+ getFieldId(), getParentForChildren(), isClean());
+ fieldId_ = null;
+ }
+ return fieldIdBuilder_;
+ }
+
+ private com.google.protobuf.Timestamp containerTimestamp_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>
+ containerTimestampBuilder_;
+ /**
+ *
+ *
+ *
+ * Findings container modification timestamp, if applicable.
+ *
+ *
+ * .google.protobuf.Timestamp container_timestamp = 2;
+ *
+ * @return Whether the containerTimestamp field is set.
+ */
+ public boolean hasContainerTimestamp() {
+ return containerTimestampBuilder_ != null || containerTimestamp_ != null;
+ }
+ /**
+ *
+ *
+ *
+ * Findings container modification timestamp, if applicable.
+ *
+ *
+ * .google.protobuf.Timestamp container_timestamp = 2;
+ *
+ * @return The containerTimestamp.
+ */
+ public com.google.protobuf.Timestamp getContainerTimestamp() {
+ if (containerTimestampBuilder_ == null) {
+ return containerTimestamp_ == null
+ ? com.google.protobuf.Timestamp.getDefaultInstance()
+ : containerTimestamp_;
+ } else {
+ return containerTimestampBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Findings container modification timestamp, if applicable.
+ *
+ *
+ * .google.protobuf.Timestamp container_timestamp = 2;
+ */
+ public Builder setContainerTimestamp(com.google.protobuf.Timestamp value) {
+ if (containerTimestampBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ containerTimestamp_ = value;
+ onChanged();
+ } else {
+ containerTimestampBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Findings container modification timestamp, if applicable.
+ *
+ *
+ * .google.protobuf.Timestamp container_timestamp = 2;
+ */
+ public Builder setContainerTimestamp(com.google.protobuf.Timestamp.Builder builderForValue) {
+ if (containerTimestampBuilder_ == null) {
+ containerTimestamp_ = builderForValue.build();
+ onChanged();
+ } else {
+ containerTimestampBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Findings container modification timestamp, if applicable.
+ *
+ *
+ * .google.protobuf.Timestamp container_timestamp = 2;
+ */
+ public Builder mergeContainerTimestamp(com.google.protobuf.Timestamp value) {
+ if (containerTimestampBuilder_ == null) {
+ if (containerTimestamp_ != null) {
+ containerTimestamp_ =
+ com.google.protobuf.Timestamp.newBuilder(containerTimestamp_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ containerTimestamp_ = value;
+ }
+ onChanged();
+ } else {
+ containerTimestampBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Findings container modification timestamp, if applicable.
+ *
+ *
+ * .google.protobuf.Timestamp container_timestamp = 2;
+ */
+ public Builder clearContainerTimestamp() {
+ if (containerTimestampBuilder_ == null) {
+ containerTimestamp_ = null;
+ onChanged();
+ } else {
+ containerTimestamp_ = null;
+ containerTimestampBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Findings container modification timestamp, if applicable.
+ *
+ *
+ * .google.protobuf.Timestamp container_timestamp = 2;
+ */
+ public com.google.protobuf.Timestamp.Builder getContainerTimestampBuilder() {
+
+ onChanged();
+ return getContainerTimestampFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ *
+ * Findings container modification timestamp, if applicable.
+ *
+ *
+ * .google.protobuf.Timestamp container_timestamp = 2;
+ */
+ public com.google.protobuf.TimestampOrBuilder getContainerTimestampOrBuilder() {
+ if (containerTimestampBuilder_ != null) {
+ return containerTimestampBuilder_.getMessageOrBuilder();
+ } else {
+ return containerTimestamp_ == null
+ ? com.google.protobuf.Timestamp.getDefaultInstance()
+ : containerTimestamp_;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Findings container modification timestamp, if applicable.
+ *
+ *
+ * .google.protobuf.Timestamp container_timestamp = 2;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>
+ getContainerTimestampFieldBuilder() {
+ if (containerTimestampBuilder_ == null) {
+ containerTimestampBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>(
+ getContainerTimestamp(), getParentForChildren(), isClean());
+ containerTimestamp_ = null;
+ }
+ return containerTimestampBuilder_;
+ }
+
+ private java.lang.Object containerVersion_ = "";
+ /**
+ *
+ *
+ *
+ * Container version, if available ("generation" for Cloud Storage).
+ *
+ *
+ * string container_version = 3;
+ *
+ * @return The containerVersion.
+ */
+ public java.lang.String getContainerVersion() {
+ java.lang.Object ref = containerVersion_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ containerVersion_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Container version, if available ("generation" for Cloud Storage).
+ *
+ *
+ * string container_version = 3;
+ *
+ * @return The bytes for containerVersion.
+ */
+ public com.google.protobuf.ByteString getContainerVersionBytes() {
+ java.lang.Object ref = containerVersion_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ containerVersion_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Container version, if available ("generation" for Cloud Storage).
+ *
+ *
+ * string container_version = 3;
+ *
+ * @param value The containerVersion to set.
+ * @return This builder for chaining.
+ */
+ public Builder setContainerVersion(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ containerVersion_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Container version, if available ("generation" for Cloud Storage).
+ *
+ *
+ * string container_version = 3;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearContainerVersion() {
+
+ containerVersion_ = getDefaultInstance().getContainerVersion();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Container version, if available ("generation" for Cloud Storage).
+ *
+ *
+ * string container_version = 3;
+ *
+ * @param value The bytes for containerVersion to set.
+ * @return This builder for chaining.
+ */
+ public Builder setContainerVersionBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ containerVersion_ = value;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.privacy.dlp.v2.RecordTransformation)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.RecordTransformation)
+ private static final com.google.privacy.dlp.v2.RecordTransformation DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.privacy.dlp.v2.RecordTransformation();
+ }
+
+ public static com.google.privacy.dlp.v2.RecordTransformation getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ * For record transformations, provide a field.
+ *
+ *
+ * .google.privacy.dlp.v2.FieldId field_id = 1;
+ *
+ * @return Whether the fieldId field is set.
+ */
+ boolean hasFieldId();
+ /**
+ *
+ *
+ *
+ * For record transformations, provide a field.
+ *
+ *
+ * .google.privacy.dlp.v2.FieldId field_id = 1;
+ *
+ * @return The fieldId.
+ */
+ com.google.privacy.dlp.v2.FieldId getFieldId();
+ /**
+ *
+ *
+ *
+ * For record transformations, provide a field.
+ *
+ *
+ * .google.privacy.dlp.v2.FieldId field_id = 1;
+ */
+ com.google.privacy.dlp.v2.FieldIdOrBuilder getFieldIdOrBuilder();
+
+ /**
+ *
+ *
+ *
+ * Findings container modification timestamp, if applicable.
+ *
+ *
+ * .google.protobuf.Timestamp container_timestamp = 2;
+ *
+ * @return Whether the containerTimestamp field is set.
+ */
+ boolean hasContainerTimestamp();
+ /**
+ *
+ *
+ *
+ * Findings container modification timestamp, if applicable.
+ *
+ *
+ * .google.protobuf.Timestamp container_timestamp = 2;
+ *
+ * @return The containerTimestamp.
+ */
+ com.google.protobuf.Timestamp getContainerTimestamp();
+ /**
+ *
+ *
+ *
+ * Findings container modification timestamp, if applicable.
+ *
+ *
+ * .google.protobuf.Timestamp container_timestamp = 2;
+ */
+ com.google.protobuf.TimestampOrBuilder getContainerTimestampOrBuilder();
+
+ /**
+ *
+ *
+ *
+ * Container version, if available ("generation" for Cloud Storage).
+ *
+ *
+ * string container_version = 3;
+ *
+ * @return The containerVersion.
+ */
+ java.lang.String getContainerVersion();
+ /**
+ *
+ *
+ *
+ * Container version, if available ("generation" for Cloud Storage).
+ *
+ *
+ * string container_version = 3;
+ *
+ * @return The bytes for containerVersion.
+ */
+ com.google.protobuf.ByteString getContainerVersionBytes();
+}
diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ReidentifyContentResponse.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ReidentifyContentResponse.java
index a69ceaa09788..d020c9e28ad6 100644
--- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ReidentifyContentResponse.java
+++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ReidentifyContentResponse.java
@@ -22,7 +22,7 @@
*
*
*
- * Results of re-identifying a item.
+ * Results of re-identifying an item.
*
*
* Protobuf type {@code google.privacy.dlp.v2.ReidentifyContentResponse}
@@ -412,7 +412,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
*
- * Results of re-identifying a item.
+ * Results of re-identifying an item.
*
*
* Protobuf type {@code google.privacy.dlp.v2.ReidentifyContentResponse}
diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/RelationalOperator.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/RelationalOperator.java
index 3057f215c2a3..117e32da8054 100644
--- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/RelationalOperator.java
+++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/RelationalOperator.java
@@ -262,7 +262,7 @@ public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType
}
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
- return com.google.privacy.dlp.v2.DlpProto.getDescriptor().getEnumTypes().get(0);
+ return com.google.privacy.dlp.v2.DlpProto.getDescriptor().getEnumTypes().get(3);
}
private static final RelationalOperator[] VALUES = values();
diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ResourceVisibility.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ResourceVisibility.java
index 292665247e96..4ac4fb7a8ee2 100644
--- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ResourceVisibility.java
+++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ResourceVisibility.java
@@ -153,7 +153,7 @@ public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType
}
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
- return com.google.privacy.dlp.v2.DlpProto.getDescriptor().getEnumTypes().get(7);
+ return com.google.privacy.dlp.v2.DlpProto.getDescriptor().getEnumTypes().get(10);
}
private static final ResourceVisibility[] VALUES = values();
diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/Schedule.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/Schedule.java
index 2cbe42ce37b5..2b0a0c9a74a3 100644
--- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/Schedule.java
+++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/Schedule.java
@@ -167,7 +167,7 @@ public OptionCase getOptionCase() {
*
*
*
- * With this option a job is started a regular periodic basis. For
+ * With this option a job is started on a regular periodic basis. For
* example: every day (86400 seconds).
* A scheduled start time will be skipped if the previous
* execution has not ended when its scheduled time occurs.
@@ -187,7 +187,7 @@ public boolean hasRecurrencePeriodDuration() {
*
*
*
- * With this option a job is started a regular periodic basis. For
+ * With this option a job is started on a regular periodic basis. For
* example: every day (86400 seconds).
* A scheduled start time will be skipped if the previous
* execution has not ended when its scheduled time occurs.
@@ -210,7 +210,7 @@ public com.google.protobuf.Duration getRecurrencePeriodDuration() {
*
*
*
- * With this option a job is started a regular periodic basis. For
+ * With this option a job is started on a regular periodic basis. For
* example: every day (86400 seconds).
* A scheduled start time will be skipped if the previous
* execution has not ended when its scheduled time occurs.
@@ -594,7 +594,7 @@ public Builder clearOption() {
*
*
*
- * With this option a job is started a regular periodic basis. For
+ * With this option a job is started on a regular periodic basis. For
* example: every day (86400 seconds).
* A scheduled start time will be skipped if the previous
* execution has not ended when its scheduled time occurs.
@@ -614,7 +614,7 @@ public boolean hasRecurrencePeriodDuration() {
*
*
*
- * With this option a job is started a regular periodic basis. For
+ * With this option a job is started on a regular periodic basis. For
* example: every day (86400 seconds).
* A scheduled start time will be skipped if the previous
* execution has not ended when its scheduled time occurs.
@@ -644,7 +644,7 @@ public com.google.protobuf.Duration getRecurrencePeriodDuration() {
*
*
*
- * With this option a job is started a regular periodic basis. For
+ * With this option a job is started on a regular periodic basis. For
* example: every day (86400 seconds).
* A scheduled start time will be skipped if the previous
* execution has not ended when its scheduled time occurs.
@@ -671,7 +671,7 @@ public Builder setRecurrencePeriodDuration(com.google.protobuf.Duration value) {
*
*
*
- * With this option a job is started a regular periodic basis. For
+ * With this option a job is started on a regular periodic basis. For
* example: every day (86400 seconds).
* A scheduled start time will be skipped if the previous
* execution has not ended when its scheduled time occurs.
@@ -696,7 +696,7 @@ public Builder setRecurrencePeriodDuration(
*
*
*
- * With this option a job is started a regular periodic basis. For
+ * With this option a job is started on a regular periodic basis. For
* example: every day (86400 seconds).
* A scheduled start time will be skipped if the previous
* execution has not ended when its scheduled time occurs.
@@ -731,7 +731,7 @@ public Builder mergeRecurrencePeriodDuration(com.google.protobuf.Duration value)
*
*
*
- * With this option a job is started a regular periodic basis. For
+ * With this option a job is started on a regular periodic basis. For
* example: every day (86400 seconds).
* A scheduled start time will be skipped if the previous
* execution has not ended when its scheduled time occurs.
@@ -761,7 +761,7 @@ public Builder clearRecurrencePeriodDuration() {
*
*
*
- * With this option a job is started a regular periodic basis. For
+ * With this option a job is started on a regular periodic basis. For
* example: every day (86400 seconds).
* A scheduled start time will be skipped if the previous
* execution has not ended when its scheduled time occurs.
@@ -778,7 +778,7 @@ public com.google.protobuf.Duration.Builder getRecurrencePeriodDurationBuilder()
*
*
*
- * With this option a job is started a regular periodic basis. For
+ * With this option a job is started on a regular periodic basis. For
* example: every day (86400 seconds).
* A scheduled start time will be skipped if the previous
* execution has not ended when its scheduled time occurs.
@@ -803,7 +803,7 @@ public com.google.protobuf.DurationOrBuilder getRecurrencePeriodDurationOrBuilde
*
*
*
*
*
- * With this option a job is started a regular periodic basis. For
+ * With this option a job is started on a regular periodic basis. For
* example: every day (86400 seconds).
* A scheduled start time will be skipped if the previous
* execution has not ended when its scheduled time occurs.
diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ScheduleOrBuilder.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ScheduleOrBuilder.java
index 29d27eb9becb..70d73a970a0a 100644
--- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ScheduleOrBuilder.java
+++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ScheduleOrBuilder.java
@@ -27,7 +27,7 @@ public interface ScheduleOrBuilder
*
*
*
*
*
- * With this option a job is started a regular periodic basis. For
+ * With this option a job is started on a regular periodic basis. For
* example: every day (86400 seconds).
* A scheduled start time will be skipped if the previous
* execution has not ended when its scheduled time occurs.
@@ -44,7 +44,7 @@ public interface ScheduleOrBuilder
*
*
*
*
*
- * With this option a job is started a regular periodic basis. For
+ * With this option a job is started on a regular periodic basis. For
* example: every day (86400 seconds).
* A scheduled start time will be skipped if the previous
* execution has not ended when its scheduled time occurs.
@@ -61,7 +61,7 @@ public interface ScheduleOrBuilder
*
*
*
*
*
- * With this option a job is started a regular periodic basis. For
+ * With this option a job is started on a regular periodic basis. For
* example: every day (86400 seconds).
* A scheduled start time will be skipped if the previous
* execution has not ended when its scheduled time occurs.
diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/SensitivityScore.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/SensitivityScore.java
index 6eee209467cc..6840f3b26766 100644
--- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/SensitivityScore.java
+++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/SensitivityScore.java
@@ -14,7 +14,7 @@
* limitations under the License.
*/
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: google/privacy/dlp/v2/dlp.proto
+// source: google/privacy/dlp/v2/storage.proto
package com.google.privacy.dlp.v2;
@@ -100,14 +100,14 @@ private SensitivityScore(
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return com.google.privacy.dlp.v2.DlpProto
+ return com.google.privacy.dlp.v2.DlpStorage
.internal_static_google_privacy_dlp_v2_SensitivityScore_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
- return com.google.privacy.dlp.v2.DlpProto
+ return com.google.privacy.dlp.v2.DlpStorage
.internal_static_google_privacy_dlp_v2_SensitivityScore_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.privacy.dlp.v2.SensitivityScore.class,
@@ -522,14 +522,14 @@ public static final class Builder extends com.google.protobuf.GeneratedMessageV3
// @@protoc_insertion_point(builder_implements:google.privacy.dlp.v2.SensitivityScore)
com.google.privacy.dlp.v2.SensitivityScoreOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return com.google.privacy.dlp.v2.DlpProto
+ return com.google.privacy.dlp.v2.DlpStorage
.internal_static_google_privacy_dlp_v2_SensitivityScore_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
- return com.google.privacy.dlp.v2.DlpProto
+ return com.google.privacy.dlp.v2.DlpStorage
.internal_static_google_privacy_dlp_v2_SensitivityScore_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.privacy.dlp.v2.SensitivityScore.class,
@@ -560,7 +560,7 @@ public Builder clear() {
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
- return com.google.privacy.dlp.v2.DlpProto
+ return com.google.privacy.dlp.v2.DlpStorage
.internal_static_google_privacy_dlp_v2_SensitivityScore_descriptor;
}
diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/SensitivityScoreOrBuilder.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/SensitivityScoreOrBuilder.java
index 81f41487f8c3..711206d36a90 100644
--- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/SensitivityScoreOrBuilder.java
+++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/SensitivityScoreOrBuilder.java
@@ -14,7 +14,7 @@
* limitations under the License.
*/
// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: google/privacy/dlp/v2/dlp.proto
+// source: google/privacy/dlp/v2/storage.proto
package com.google.privacy.dlp.v2;
diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/StorageConfig.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/StorageConfig.java
index 58892c9b98d7..9939122342a6 100644
--- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/StorageConfig.java
+++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/StorageConfig.java
@@ -272,7 +272,7 @@ public interface TimespanConfigOrBuilder
*
*
*
* Specification of the field containing the timestamp of scanned items.
* Used for data sources like Datastore and BigQuery.
- * For BigQuery:
+ * <b>For BigQuery</b>
* If this value is not specified and the table was modified between the
* given start and end times, the entire table will be scanned. If this
* value is specified, then rows are filtered based on the given start and
@@ -280,11 +280,23 @@ public interface TimespanConfigOrBuilder
* skipped.
* Valid data types of the provided BigQuery column are: `INTEGER`, `DATE`,
* `TIMESTAMP`, and `DATETIME`.
- * For Datastore:
+ * If your BigQuery table is [partitioned at ingestion
+ * time](https://cloud.google.com/bigquery/docs/partitioned-tables#ingestion_time),
+ * you can use any of the following pseudo-columns as your timestamp field.
+ * When used with Cloud DLP, these pseudo-column names are case sensitive.
+ * <ul>
+ * <li><code>_PARTITIONTIME</code></li>
+ * <li><code>_PARTITIONDATE</code></li>
+ * <li><code>_PARTITION_LOAD_TIME</code></li>
+ * </ul>
+ * <b>For Datastore</b>
* If this value is specified, then entities are filtered based on the given
* start and end times. If an entity does not contain the provided timestamp
* property or contains empty or invalid values, then it is included.
* Valid data types of the provided timestamp property are: `TIMESTAMP`.
+ * See the
+ * [known issue](https://cloud.google.com/dlp/docs/known-issues#bq-timespan)
+ * related to this operation.
*
*
* .google.privacy.dlp.v2.FieldId timestamp_field = 3;
@@ -298,7 +310,7 @@ public interface TimespanConfigOrBuilder
*
* Specification of the field containing the timestamp of scanned items.
* Used for data sources like Datastore and BigQuery.
- * For BigQuery:
+ * <b>For BigQuery</b>
* If this value is not specified and the table was modified between the
* given start and end times, the entire table will be scanned. If this
* value is specified, then rows are filtered based on the given start and
@@ -306,11 +318,23 @@ public interface TimespanConfigOrBuilder
* skipped.
* Valid data types of the provided BigQuery column are: `INTEGER`, `DATE`,
* `TIMESTAMP`, and `DATETIME`.
- * For Datastore:
+ * If your BigQuery table is [partitioned at ingestion
+ * time](https://cloud.google.com/bigquery/docs/partitioned-tables#ingestion_time),
+ * you can use any of the following pseudo-columns as your timestamp field.
+ * When used with Cloud DLP, these pseudo-column names are case sensitive.
+ * <ul>
+ * <li><code>_PARTITIONTIME</code></li>
+ * <li><code>_PARTITIONDATE</code></li>
+ * <li><code>_PARTITION_LOAD_TIME</code></li>
+ * </ul>
+ * <b>For Datastore</b>
* If this value is specified, then entities are filtered based on the given
* start and end times. If an entity does not contain the provided timestamp
* property or contains empty or invalid values, then it is included.
* Valid data types of the provided timestamp property are: `TIMESTAMP`.
+ * See the
+ * [known issue](https://cloud.google.com/dlp/docs/known-issues#bq-timespan)
+ * related to this operation.
*
*
* .google.privacy.dlp.v2.FieldId timestamp_field = 3;
@@ -324,7 +348,7 @@ public interface TimespanConfigOrBuilder
*
* Specification of the field containing the timestamp of scanned items.
* Used for data sources like Datastore and BigQuery.
- * For BigQuery:
+ * <b>For BigQuery</b>
* If this value is not specified and the table was modified between the
* given start and end times, the entire table will be scanned. If this
* value is specified, then rows are filtered based on the given start and
@@ -332,11 +356,23 @@ public interface TimespanConfigOrBuilder
* skipped.
* Valid data types of the provided BigQuery column are: `INTEGER`, `DATE`,
* `TIMESTAMP`, and `DATETIME`.
- * For Datastore:
+ * If your BigQuery table is [partitioned at ingestion
+ * time](https://cloud.google.com/bigquery/docs/partitioned-tables#ingestion_time),
+ * you can use any of the following pseudo-columns as your timestamp field.
+ * When used with Cloud DLP, these pseudo-column names are case sensitive.
+ * <ul>
+ * <li><code>_PARTITIONTIME</code></li>
+ * <li><code>_PARTITIONDATE</code></li>
+ * <li><code>_PARTITION_LOAD_TIME</code></li>
+ * </ul>
+ * <b>For Datastore</b>
* If this value is specified, then entities are filtered based on the given
* start and end times. If an entity does not contain the provided timestamp
* property or contains empty or invalid values, then it is included.
* Valid data types of the provided timestamp property are: `TIMESTAMP`.
+ * See the
+ * [known issue](https://cloud.google.com/dlp/docs/known-issues#bq-timespan)
+ * related to this operation.
*
*
* .google.privacy.dlp.v2.FieldId timestamp_field = 3;
@@ -350,7 +386,8 @@ public interface TimespanConfigOrBuilder
* When the job is started by a JobTrigger we will automatically figure out
* a valid start_time to avoid scanning files that have not been modified
* since the last time the JobTrigger executed. This will be based on the
- * time of the execution of the last run of the JobTrigger.
+ * time of the execution of the last run of the JobTrigger or the timespan
+ * end_time used in the last run of the JobTrigger.
* bool enable_auto_population_of_timespan_config = 4;
@@ -364,7 +401,7 @@ public interface TimespanConfigOrBuilder
*
*
* Configuration of the timespan of the items to include in scanning.
- * Currently only supported when inspecting Google Cloud Storage and BigQuery.
+ * Currently only supported when inspecting Cloud Storage and BigQuery.
*
*
* Protobuf type {@code google.privacy.dlp.v2.StorageConfig.TimespanConfig}
@@ -603,7 +640,7 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
*
* Specification of the field containing the timestamp of scanned items.
* Used for data sources like Datastore and BigQuery.
- * For BigQuery:
+ * <b>For BigQuery</b>
* If this value is not specified and the table was modified between the
* given start and end times, the entire table will be scanned. If this
* value is specified, then rows are filtered based on the given start and
@@ -611,11 +648,23 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
* skipped.
* Valid data types of the provided BigQuery column are: `INTEGER`, `DATE`,
* `TIMESTAMP`, and `DATETIME`.
- * For Datastore:
+ * If your BigQuery table is [partitioned at ingestion
+ * time](https://cloud.google.com/bigquery/docs/partitioned-tables#ingestion_time),
+ * you can use any of the following pseudo-columns as your timestamp field.
+ * When used with Cloud DLP, these pseudo-column names are case sensitive.
+ * <ul>
+ * <li><code>_PARTITIONTIME</code></li>
+ * <li><code>_PARTITIONDATE</code></li>
+ * <li><code>_PARTITION_LOAD_TIME</code></li>
+ * </ul>
+ * <b>For Datastore</b>
* If this value is specified, then entities are filtered based on the given
* start and end times. If an entity does not contain the provided timestamp
* property or contains empty or invalid values, then it is included.
* Valid data types of the provided timestamp property are: `TIMESTAMP`.
+ * See the
+ * [known issue](https://cloud.google.com/dlp/docs/known-issues#bq-timespan)
+ * related to this operation.
*
*
* .google.privacy.dlp.v2.FieldId timestamp_field = 3;
@@ -632,7 +681,7 @@ public boolean hasTimestampField() {
*
* Specification of the field containing the timestamp of scanned items.
* Used for data sources like Datastore and BigQuery.
- * For BigQuery:
+ * <b>For BigQuery</b>
* If this value is not specified and the table was modified between the
* given start and end times, the entire table will be scanned. If this
* value is specified, then rows are filtered based on the given start and
@@ -640,11 +689,23 @@ public boolean hasTimestampField() {
* skipped.
* Valid data types of the provided BigQuery column are: `INTEGER`, `DATE`,
* `TIMESTAMP`, and `DATETIME`.
- * For Datastore:
+ * If your BigQuery table is [partitioned at ingestion
+ * time](https://cloud.google.com/bigquery/docs/partitioned-tables#ingestion_time),
+ * you can use any of the following pseudo-columns as your timestamp field.
+ * When used with Cloud DLP, these pseudo-column names are case sensitive.
+ * <ul>
+ * <li><code>_PARTITIONTIME</code></li>
+ * <li><code>_PARTITIONDATE</code></li>
+ * <li><code>_PARTITION_LOAD_TIME</code></li>
+ * </ul>
+ * <b>For Datastore</b>
* If this value is specified, then entities are filtered based on the given
* start and end times. If an entity does not contain the provided timestamp
* property or contains empty or invalid values, then it is included.
* Valid data types of the provided timestamp property are: `TIMESTAMP`.
+ * See the
+ * [known issue](https://cloud.google.com/dlp/docs/known-issues#bq-timespan)
+ * related to this operation.
*
*
* .google.privacy.dlp.v2.FieldId timestamp_field = 3;
@@ -663,7 +724,7 @@ public com.google.privacy.dlp.v2.FieldId getTimestampField() {
*
* Specification of the field containing the timestamp of scanned items.
* Used for data sources like Datastore and BigQuery.
- * For BigQuery:
+ * <b>For BigQuery</b>
* If this value is not specified and the table was modified between the
* given start and end times, the entire table will be scanned. If this
* value is specified, then rows are filtered based on the given start and
@@ -671,11 +732,23 @@ public com.google.privacy.dlp.v2.FieldId getTimestampField() {
* skipped.
* Valid data types of the provided BigQuery column are: `INTEGER`, `DATE`,
* `TIMESTAMP`, and `DATETIME`.
- * For Datastore:
+ * If your BigQuery table is [partitioned at ingestion
+ * time](https://cloud.google.com/bigquery/docs/partitioned-tables#ingestion_time),
+ * you can use any of the following pseudo-columns as your timestamp field.
+ * When used with Cloud DLP, these pseudo-column names are case sensitive.
+ * <ul>
+ * <li><code>_PARTITIONTIME</code></li>
+ * <li><code>_PARTITIONDATE</code></li>
+ * <li><code>_PARTITION_LOAD_TIME</code></li>
+ * </ul>
+ * <b>For Datastore</b>
* If this value is specified, then entities are filtered based on the given
* start and end times. If an entity does not contain the provided timestamp
* property or contains empty or invalid values, then it is included.
* Valid data types of the provided timestamp property are: `TIMESTAMP`.
+ * See the
+ * [known issue](https://cloud.google.com/dlp/docs/known-issues#bq-timespan)
+ * related to this operation.
*
*
* .google.privacy.dlp.v2.FieldId timestamp_field = 3;
@@ -694,7 +767,8 @@ public com.google.privacy.dlp.v2.FieldIdOrBuilder getTimestampFieldOrBuilder() {
* When the job is started by a JobTrigger we will automatically figure out
* a valid start_time to avoid scanning files that have not been modified
* since the last time the JobTrigger executed. This will be based on the
- * time of the execution of the last run of the JobTrigger.
+ * time of the execution of the last run of the JobTrigger or the timespan
+ * end_time used in the last run of the JobTrigger.
* bool enable_auto_population_of_timespan_config = 4;
@@ -919,7 +993,7 @@ protected Builder newBuilderForType(
*
*
* Configuration of the timespan of the items to include in scanning.
- * Currently only supported when inspecting Google Cloud Storage and BigQuery.
+ * Currently only supported when inspecting Cloud Storage and BigQuery.
*
*
* Protobuf type {@code google.privacy.dlp.v2.StorageConfig.TimespanConfig}
@@ -1512,7 +1586,7 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
*
* Specification of the field containing the timestamp of scanned items.
* Used for data sources like Datastore and BigQuery.
- * For BigQuery:
+ * <b>For BigQuery</b>
* If this value is not specified and the table was modified between the
* given start and end times, the entire table will be scanned. If this
* value is specified, then rows are filtered based on the given start and
@@ -1520,11 +1594,23 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
* skipped.
* Valid data types of the provided BigQuery column are: `INTEGER`, `DATE`,
* `TIMESTAMP`, and `DATETIME`.
- * For Datastore:
+ * If your BigQuery table is [partitioned at ingestion
+ * time](https://cloud.google.com/bigquery/docs/partitioned-tables#ingestion_time),
+ * you can use any of the following pseudo-columns as your timestamp field.
+ * When used with Cloud DLP, these pseudo-column names are case sensitive.
+ * <ul>
+ * <li><code>_PARTITIONTIME</code></li>
+ * <li><code>_PARTITIONDATE</code></li>
+ * <li><code>_PARTITION_LOAD_TIME</code></li>
+ * </ul>
+ * <b>For Datastore</b>
* If this value is specified, then entities are filtered based on the given
* start and end times. If an entity does not contain the provided timestamp
* property or contains empty or invalid values, then it is included.
* Valid data types of the provided timestamp property are: `TIMESTAMP`.
+ * See the
+ * [known issue](https://cloud.google.com/dlp/docs/known-issues#bq-timespan)
+ * related to this operation.
*
*
* .google.privacy.dlp.v2.FieldId timestamp_field = 3;
@@ -1540,7 +1626,7 @@ public boolean hasTimestampField() {
*
* Specification of the field containing the timestamp of scanned items.
* Used for data sources like Datastore and BigQuery.
- * For BigQuery:
+ * <b>For BigQuery</b>
* If this value is not specified and the table was modified between the
* given start and end times, the entire table will be scanned. If this
* value is specified, then rows are filtered based on the given start and
@@ -1548,11 +1634,23 @@ public boolean hasTimestampField() {
* skipped.
* Valid data types of the provided BigQuery column are: `INTEGER`, `DATE`,
* `TIMESTAMP`, and `DATETIME`.
- * For Datastore:
+ * If your BigQuery table is [partitioned at ingestion
+ * time](https://cloud.google.com/bigquery/docs/partitioned-tables#ingestion_time),
+ * you can use any of the following pseudo-columns as your timestamp field.
+ * When used with Cloud DLP, these pseudo-column names are case sensitive.
+ * <ul>
+ * <li><code>_PARTITIONTIME</code></li>
+ * <li><code>_PARTITIONDATE</code></li>
+ * <li><code>_PARTITION_LOAD_TIME</code></li>
+ * </ul>
+ * <b>For Datastore</b>
* If this value is specified, then entities are filtered based on the given
* start and end times. If an entity does not contain the provided timestamp
* property or contains empty or invalid values, then it is included.
* Valid data types of the provided timestamp property are: `TIMESTAMP`.
+ * See the
+ * [known issue](https://cloud.google.com/dlp/docs/known-issues#bq-timespan)
+ * related to this operation.
*
*
* .google.privacy.dlp.v2.FieldId timestamp_field = 3;
@@ -1574,7 +1672,7 @@ public com.google.privacy.dlp.v2.FieldId getTimestampField() {
*
* Specification of the field containing the timestamp of scanned items.
* Used for data sources like Datastore and BigQuery.
- * For BigQuery:
+ * <b>For BigQuery</b>
* If this value is not specified and the table was modified between the
* given start and end times, the entire table will be scanned. If this
* value is specified, then rows are filtered based on the given start and
@@ -1582,11 +1680,23 @@ public com.google.privacy.dlp.v2.FieldId getTimestampField() {
* skipped.
* Valid data types of the provided BigQuery column are: `INTEGER`, `DATE`,
* `TIMESTAMP`, and `DATETIME`.
- * For Datastore:
+ * If your BigQuery table is [partitioned at ingestion
+ * time](https://cloud.google.com/bigquery/docs/partitioned-tables#ingestion_time),
+ * you can use any of the following pseudo-columns as your timestamp field.
+ * When used with Cloud DLP, these pseudo-column names are case sensitive.
+ * <ul>
+ * <li><code>_PARTITIONTIME</code></li>
+ * <li><code>_PARTITIONDATE</code></li>
+ * <li><code>_PARTITION_LOAD_TIME</code></li>
+ * </ul>
+ * <b>For Datastore</b>
* If this value is specified, then entities are filtered based on the given
* start and end times. If an entity does not contain the provided timestamp
* property or contains empty or invalid values, then it is included.
* Valid data types of the provided timestamp property are: `TIMESTAMP`.
+ * See the
+ * [known issue](https://cloud.google.com/dlp/docs/known-issues#bq-timespan)
+ * related to this operation.
*
*
* .google.privacy.dlp.v2.FieldId timestamp_field = 3;
@@ -1610,7 +1720,7 @@ public Builder setTimestampField(com.google.privacy.dlp.v2.FieldId value) {
*
* Specification of the field containing the timestamp of scanned items.
* Used for data sources like Datastore and BigQuery.
- * For BigQuery:
+ * <b>For BigQuery</b>
* If this value is not specified and the table was modified between the
* given start and end times, the entire table will be scanned. If this
* value is specified, then rows are filtered based on the given start and
@@ -1618,11 +1728,23 @@ public Builder setTimestampField(com.google.privacy.dlp.v2.FieldId value) {
* skipped.
* Valid data types of the provided BigQuery column are: `INTEGER`, `DATE`,
* `TIMESTAMP`, and `DATETIME`.
- * For Datastore:
+ * If your BigQuery table is [partitioned at ingestion
+ * time](https://cloud.google.com/bigquery/docs/partitioned-tables#ingestion_time),
+ * you can use any of the following pseudo-columns as your timestamp field.
+ * When used with Cloud DLP, these pseudo-column names are case sensitive.
+ * <ul>
+ * <li><code>_PARTITIONTIME</code></li>
+ * <li><code>_PARTITIONDATE</code></li>
+ * <li><code>_PARTITION_LOAD_TIME</code></li>
+ * </ul>
+ * <b>For Datastore</b>
* If this value is specified, then entities are filtered based on the given
* start and end times. If an entity does not contain the provided timestamp
* property or contains empty or invalid values, then it is included.
* Valid data types of the provided timestamp property are: `TIMESTAMP`.
+ * See the
+ * [known issue](https://cloud.google.com/dlp/docs/known-issues#bq-timespan)
+ * related to this operation.
*
*
* .google.privacy.dlp.v2.FieldId timestamp_field = 3;
@@ -1643,7 +1765,7 @@ public Builder setTimestampField(com.google.privacy.dlp.v2.FieldId.Builder build
*
* Specification of the field containing the timestamp of scanned items.
* Used for data sources like Datastore and BigQuery.
- * For BigQuery:
+ * <b>For BigQuery</b>
* If this value is not specified and the table was modified between the
* given start and end times, the entire table will be scanned. If this
* value is specified, then rows are filtered based on the given start and
@@ -1651,11 +1773,23 @@ public Builder setTimestampField(com.google.privacy.dlp.v2.FieldId.Builder build
* skipped.
* Valid data types of the provided BigQuery column are: `INTEGER`, `DATE`,
* `TIMESTAMP`, and `DATETIME`.
- * For Datastore:
+ * If your BigQuery table is [partitioned at ingestion
+ * time](https://cloud.google.com/bigquery/docs/partitioned-tables#ingestion_time),
+ * you can use any of the following pseudo-columns as your timestamp field.
+ * When used with Cloud DLP, these pseudo-column names are case sensitive.
+ * <ul>
+ * <li><code>_PARTITIONTIME</code></li>
+ * <li><code>_PARTITIONDATE</code></li>
+ * <li><code>_PARTITION_LOAD_TIME</code></li>
+ * </ul>
+ * <b>For Datastore</b>
* If this value is specified, then entities are filtered based on the given
* start and end times. If an entity does not contain the provided timestamp
* property or contains empty or invalid values, then it is included.
* Valid data types of the provided timestamp property are: `TIMESTAMP`.
+ * See the
+ * [known issue](https://cloud.google.com/dlp/docs/known-issues#bq-timespan)
+ * related to this operation.
*
*
* .google.privacy.dlp.v2.FieldId timestamp_field = 3;
@@ -1683,7 +1817,7 @@ public Builder mergeTimestampField(com.google.privacy.dlp.v2.FieldId value) {
*
* Specification of the field containing the timestamp of scanned items.
* Used for data sources like Datastore and BigQuery.
- * For BigQuery:
+ * <b>For BigQuery</b>
* If this value is not specified and the table was modified between the
* given start and end times, the entire table will be scanned. If this
* value is specified, then rows are filtered based on the given start and
@@ -1691,11 +1825,23 @@ public Builder mergeTimestampField(com.google.privacy.dlp.v2.FieldId value) {
* skipped.
* Valid data types of the provided BigQuery column are: `INTEGER`, `DATE`,
* `TIMESTAMP`, and `DATETIME`.
- * For Datastore:
+ * If your BigQuery table is [partitioned at ingestion
+ * time](https://cloud.google.com/bigquery/docs/partitioned-tables#ingestion_time),
+ * you can use any of the following pseudo-columns as your timestamp field.
+ * When used with Cloud DLP, these pseudo-column names are case sensitive.
+ * <ul>
+ * <li><code>_PARTITIONTIME</code></li>
+ * <li><code>_PARTITIONDATE</code></li>
+ * <li><code>_PARTITION_LOAD_TIME</code></li>
+ * </ul>
+ * <b>For Datastore</b>
* If this value is specified, then entities are filtered based on the given
* start and end times. If an entity does not contain the provided timestamp
* property or contains empty or invalid values, then it is included.
* Valid data types of the provided timestamp property are: `TIMESTAMP`.
+ * See the
+ * [known issue](https://cloud.google.com/dlp/docs/known-issues#bq-timespan)
+ * related to this operation.
*
*
* .google.privacy.dlp.v2.FieldId timestamp_field = 3;
@@ -1717,7 +1863,7 @@ public Builder clearTimestampField() {
*
* Specification of the field containing the timestamp of scanned items.
* Used for data sources like Datastore and BigQuery.
- * For BigQuery:
+ * <b>For BigQuery</b>
* If this value is not specified and the table was modified between the
* given start and end times, the entire table will be scanned. If this
* value is specified, then rows are filtered based on the given start and
@@ -1725,11 +1871,23 @@ public Builder clearTimestampField() {
* skipped.
* Valid data types of the provided BigQuery column are: `INTEGER`, `DATE`,
* `TIMESTAMP`, and `DATETIME`.
- * For Datastore:
+ * If your BigQuery table is [partitioned at ingestion
+ * time](https://cloud.google.com/bigquery/docs/partitioned-tables#ingestion_time),
+ * you can use any of the following pseudo-columns as your timestamp field.
+ * When used with Cloud DLP, these pseudo-column names are case sensitive.
+ * <ul>
+ * <li><code>_PARTITIONTIME</code></li>
+ * <li><code>_PARTITIONDATE</code></li>
+ * <li><code>_PARTITION_LOAD_TIME</code></li>
+ * </ul>
+ * <b>For Datastore</b>
* If this value is specified, then entities are filtered based on the given
* start and end times. If an entity does not contain the provided timestamp
* property or contains empty or invalid values, then it is included.
* Valid data types of the provided timestamp property are: `TIMESTAMP`.
+ * See the
+ * [known issue](https://cloud.google.com/dlp/docs/known-issues#bq-timespan)
+ * related to this operation.
*
*
* .google.privacy.dlp.v2.FieldId timestamp_field = 3;
@@ -1745,7 +1903,7 @@ public com.google.privacy.dlp.v2.FieldId.Builder getTimestampFieldBuilder() {
*
* Specification of the field containing the timestamp of scanned items.
* Used for data sources like Datastore and BigQuery.
- * For BigQuery:
+ * <b>For BigQuery</b>
* If this value is not specified and the table was modified between the
* given start and end times, the entire table will be scanned. If this
* value is specified, then rows are filtered based on the given start and
@@ -1753,11 +1911,23 @@ public com.google.privacy.dlp.v2.FieldId.Builder getTimestampFieldBuilder() {
* skipped.
* Valid data types of the provided BigQuery column are: `INTEGER`, `DATE`,
* `TIMESTAMP`, and `DATETIME`.
- * For Datastore:
+ * If your BigQuery table is [partitioned at ingestion
+ * time](https://cloud.google.com/bigquery/docs/partitioned-tables#ingestion_time),
+ * you can use any of the following pseudo-columns as your timestamp field.
+ * When used with Cloud DLP, these pseudo-column names are case sensitive.
+ * <ul>
+ * <li><code>_PARTITIONTIME</code></li>
+ * <li><code>_PARTITIONDATE</code></li>
+ * <li><code>_PARTITION_LOAD_TIME</code></li>
+ * </ul>
+ * <b>For Datastore</b>
* If this value is specified, then entities are filtered based on the given
* start and end times. If an entity does not contain the provided timestamp
* property or contains empty or invalid values, then it is included.
* Valid data types of the provided timestamp property are: `TIMESTAMP`.
+ * See the
+ * [known issue](https://cloud.google.com/dlp/docs/known-issues#bq-timespan)
+ * related to this operation.
*
*
* .google.privacy.dlp.v2.FieldId timestamp_field = 3;
@@ -1777,7 +1947,7 @@ public com.google.privacy.dlp.v2.FieldIdOrBuilder getTimestampFieldOrBuilder() {
*
* Specification of the field containing the timestamp of scanned items.
* Used for data sources like Datastore and BigQuery.
- * For BigQuery:
+ * <b>For BigQuery</b>
* If this value is not specified and the table was modified between the
* given start and end times, the entire table will be scanned. If this
* value is specified, then rows are filtered based on the given start and
@@ -1785,11 +1955,23 @@ public com.google.privacy.dlp.v2.FieldIdOrBuilder getTimestampFieldOrBuilder() {
* skipped.
* Valid data types of the provided BigQuery column are: `INTEGER`, `DATE`,
* `TIMESTAMP`, and `DATETIME`.
- * For Datastore:
+ * If your BigQuery table is [partitioned at ingestion
+ * time](https://cloud.google.com/bigquery/docs/partitioned-tables#ingestion_time),
+ * you can use any of the following pseudo-columns as your timestamp field.
+ * When used with Cloud DLP, these pseudo-column names are case sensitive.
+ * <ul>
+ * <li><code>_PARTITIONTIME</code></li>
+ * <li><code>_PARTITIONDATE</code></li>
+ * <li><code>_PARTITION_LOAD_TIME</code></li>
+ * </ul>
+ * <b>For Datastore</b>
* If this value is specified, then entities are filtered based on the given
* start and end times. If an entity does not contain the provided timestamp
* property or contains empty or invalid values, then it is included.
* Valid data types of the provided timestamp property are: `TIMESTAMP`.
+ * See the
+ * [known issue](https://cloud.google.com/dlp/docs/known-issues#bq-timespan)
+ * related to this operation.
*
*
* .google.privacy.dlp.v2.FieldId timestamp_field = 3;
@@ -1819,7 +2001,8 @@ public com.google.privacy.dlp.v2.FieldIdOrBuilder getTimestampFieldOrBuilder() {
* When the job is started by a JobTrigger we will automatically figure out
* a valid start_time to avoid scanning files that have not been modified
* since the last time the JobTrigger executed. This will be based on the
- * time of the execution of the last run of the JobTrigger.
+ * time of the execution of the last run of the JobTrigger or the timespan
+ * end_time used in the last run of the JobTrigger.
* bool enable_auto_population_of_timespan_config = 4;
@@ -1837,7 +2020,8 @@ public boolean getEnableAutoPopulationOfTimespanConfig() {
* When the job is started by a JobTrigger we will automatically figure out
* a valid start_time to avoid scanning files that have not been modified
* since the last time the JobTrigger executed. This will be based on the
- * time of the execution of the last run of the JobTrigger.
+ * time of the execution of the last run of the JobTrigger or the timespan
+ * end_time used in the last run of the JobTrigger.
* bool enable_auto_population_of_timespan_config = 4;
@@ -1858,7 +2042,8 @@ public Builder setEnableAutoPopulationOfTimespanConfig(boolean value) {
* When the job is started by a JobTrigger we will automatically figure out
* a valid start_time to avoid scanning files that have not been modified
* since the last time the JobTrigger executed. This will be based on the
- * time of the execution of the last run of the JobTrigger.
+ * time of the execution of the last run of the JobTrigger or the timespan
+ * end_time used in the last run of the JobTrigger.
* bool enable_auto_population_of_timespan_config = 4;
@@ -2033,7 +2218,7 @@ public com.google.privacy.dlp.v2.DatastoreOptionsOrBuilder getDatastoreOptionsOr
*
*
*
- * Google Cloud Storage options.
+ * Cloud Storage options.
*
*
* .google.privacy.dlp.v2.CloudStorageOptions cloud_storage_options = 3;
@@ -2048,7 +2233,7 @@ public boolean hasCloudStorageOptions() {
*
*
*
- * Google Cloud Storage options.
+ * Cloud Storage options.
*
*
* .google.privacy.dlp.v2.CloudStorageOptions cloud_storage_options = 3;
@@ -2066,7 +2251,7 @@ public com.google.privacy.dlp.v2.CloudStorageOptions getCloudStorageOptions() {
*
*
*
- * Google Cloud Storage options.
+ * Cloud Storage options.
*
*
* .google.privacy.dlp.v2.CloudStorageOptions cloud_storage_options = 3;
@@ -2896,7 +3081,7 @@ public com.google.privacy.dlp.v2.DatastoreOptionsOrBuilder getDatastoreOptionsOr
*
*
*
- * Google Cloud Storage options.
+ * Cloud Storage options.
*
*
* .google.privacy.dlp.v2.CloudStorageOptions cloud_storage_options = 3;
@@ -2911,7 +3096,7 @@ public boolean hasCloudStorageOptions() {
*
*
*
- * Google Cloud Storage options.
+ * Cloud Storage options.
*
*
* .google.privacy.dlp.v2.CloudStorageOptions cloud_storage_options = 3;
@@ -2936,7 +3121,7 @@ public com.google.privacy.dlp.v2.CloudStorageOptions getCloudStorageOptions() {
*
*
*
- * Google Cloud Storage options.
+ * Cloud Storage options.
*
*
* .google.privacy.dlp.v2.CloudStorageOptions cloud_storage_options = 3;
@@ -2958,7 +3143,7 @@ public Builder setCloudStorageOptions(com.google.privacy.dlp.v2.CloudStorageOpti
*
*
*
- * Google Cloud Storage options.
+ * Cloud Storage options.
*
*
* .google.privacy.dlp.v2.CloudStorageOptions cloud_storage_options = 3;
@@ -2978,7 +3163,7 @@ public Builder setCloudStorageOptions(
*
*
*
- * Google Cloud Storage options.
+ * Cloud Storage options.
*
*
* .google.privacy.dlp.v2.CloudStorageOptions cloud_storage_options = 3;
@@ -3010,7 +3195,7 @@ public Builder mergeCloudStorageOptions(com.google.privacy.dlp.v2.CloudStorageOp
*
*
*
- * Google Cloud Storage options.
+ * Cloud Storage options.
*
*
* .google.privacy.dlp.v2.CloudStorageOptions cloud_storage_options = 3;
@@ -3035,7 +3220,7 @@ public Builder clearCloudStorageOptions() {
*
*
*
- * Google Cloud Storage options.
+ * Cloud Storage options.
*
*
* .google.privacy.dlp.v2.CloudStorageOptions cloud_storage_options = 3;
@@ -3047,7 +3232,7 @@ public com.google.privacy.dlp.v2.CloudStorageOptions.Builder getCloudStorageOpti
*
*
*
- * Google Cloud Storage options.
+ * Cloud Storage options.
*
*
* .google.privacy.dlp.v2.CloudStorageOptions cloud_storage_options = 3;
@@ -3068,7 +3253,7 @@ public com.google.privacy.dlp.v2.CloudStorageOptions.Builder getCloudStorageOpti
*
*
*
- * Google Cloud Storage options.
+ * Cloud Storage options.
*
*
* .google.privacy.dlp.v2.CloudStorageOptions cloud_storage_options = 3;
diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/StorageConfigOrBuilder.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/StorageConfigOrBuilder.java
index 172abf1aaf4c..69187e9989c7 100644
--- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/StorageConfigOrBuilder.java
+++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/StorageConfigOrBuilder.java
@@ -62,7 +62,7 @@ public interface StorageConfigOrBuilder
*
*
*
- * Google Cloud Storage options.
+ * Cloud Storage options.
*
*
* .google.privacy.dlp.v2.CloudStorageOptions cloud_storage_options = 3;
@@ -74,7 +74,7 @@ public interface StorageConfigOrBuilder
*
*
*
- * Google Cloud Storage options.
+ * Cloud Storage options.
*
*
* .google.privacy.dlp.v2.CloudStorageOptions cloud_storage_options = 3;
@@ -86,7 +86,7 @@ public interface StorageConfigOrBuilder
*
*
*
- * Google Cloud Storage options.
+ * Cloud Storage options.
*
*
* .google.privacy.dlp.v2.CloudStorageOptions cloud_storage_options = 3;
diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/StoredInfoTypeState.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/StoredInfoTypeState.java
index 0db5f67e9e9b..45d6fd1f374d 100644
--- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/StoredInfoTypeState.java
+++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/StoredInfoTypeState.java
@@ -203,7 +203,7 @@ public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType
}
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
- return com.google.privacy.dlp.v2.DlpProto.getDescriptor().getEnumTypes().get(6);
+ return com.google.privacy.dlp.v2.DlpProto.getDescriptor().getEnumTypes().get(9);
}
private static final StoredInfoTypeState[] VALUES = values();
diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/StoredInfoTypeVersion.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/StoredInfoTypeVersion.java
index f3724a696a9a..b9a8987108af 100644
--- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/StoredInfoTypeVersion.java
+++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/StoredInfoTypeVersion.java
@@ -322,7 +322,7 @@ public com.google.privacy.dlp.v2.StoredInfoTypeState getState() {
* the five most recent errors will be displayed, with the most recent error
* appearing first.
* For example, some of the data for stored custom dictionaries is put in
- * the user's Google Cloud Storage bucket, and if this data is modified or
+ * the user's Cloud Storage bucket, and if this data is modified or
* deleted by the user or another system, the dictionary becomes invalid.
* If any errors occur, fix the problem indicated by the error message and
* use the UpdateStoredInfoType API method to create another version of the
@@ -345,7 +345,7 @@ public java.util.List
+ * User specified templates and configs for how to deidentify structured,
+ * unstructures, and image files. User must provide either a unstructured
+ * deidentify template or at least one redact image config.
+ *
+ *
+ * Protobuf type {@code google.privacy.dlp.v2.TransformationConfig}
+ */
+public final class TransformationConfig extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2.TransformationConfig)
+ TransformationConfigOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use TransformationConfig.newBuilder() to construct.
+ private TransformationConfig(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private TransformationConfig() {
+ deidentifyTemplate_ = "";
+ structuredDeidentifyTemplate_ = "";
+ imageRedactTemplate_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new TransformationConfig();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private TransformationConfig(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ deidentifyTemplate_ = s;
+ break;
+ }
+ case 18:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ structuredDeidentifyTemplate_ = s;
+ break;
+ }
+ case 34:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ imageRedactTemplate_ = s;
+ break;
+ }
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.privacy.dlp.v2.DlpProto
+ .internal_static_google_privacy_dlp_v2_TransformationConfig_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.privacy.dlp.v2.DlpProto
+ .internal_static_google_privacy_dlp_v2_TransformationConfig_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.privacy.dlp.v2.TransformationConfig.class,
+ com.google.privacy.dlp.v2.TransformationConfig.Builder.class);
+ }
+
+ public static final int DEIDENTIFY_TEMPLATE_FIELD_NUMBER = 1;
+ private volatile java.lang.Object deidentifyTemplate_;
+ /**
+ *
+ *
+ *
+ * De-identify template.
+ * If this template is specified, it will serve as the default de-identify
+ * template. This template cannot contain `record_transformations` since it
+ * can be used for unstructured content such as free-form text files. If this
+ * template is not set, a default `ReplaceWithInfoTypeConfig` will be used to
+ * de-identify unstructured content.
+ *
+ *
+ * string deidentify_template = 1;
+ *
+ * @return The deidentifyTemplate.
+ */
+ @java.lang.Override
+ public java.lang.String getDeidentifyTemplate() {
+ java.lang.Object ref = deidentifyTemplate_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ deidentifyTemplate_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * De-identify template.
+ * If this template is specified, it will serve as the default de-identify
+ * template. This template cannot contain `record_transformations` since it
+ * can be used for unstructured content such as free-form text files. If this
+ * template is not set, a default `ReplaceWithInfoTypeConfig` will be used to
+ * de-identify unstructured content.
+ *
+ *
+ * string deidentify_template = 1;
+ *
+ * @return The bytes for deidentifyTemplate.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getDeidentifyTemplateBytes() {
+ java.lang.Object ref = deidentifyTemplate_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ deidentifyTemplate_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int STRUCTURED_DEIDENTIFY_TEMPLATE_FIELD_NUMBER = 2;
+ private volatile java.lang.Object structuredDeidentifyTemplate_;
+ /**
+ *
+ *
+ *
+ * Structured de-identify template.
+ * If this template is specified, it will serve as the de-identify template
+ * for structured content such as delimited files and tables. If this template
+ * is not set but the `deidentify_template` is set, then `deidentify_template`
+ * will also apply to the structured content. If neither template is set, a
+ * default `ReplaceWithInfoTypeConfig` will be used to de-identify structured
+ * content.
+ *
+ *
+ * string structured_deidentify_template = 2;
+ *
+ * @return The structuredDeidentifyTemplate.
+ */
+ @java.lang.Override
+ public java.lang.String getStructuredDeidentifyTemplate() {
+ java.lang.Object ref = structuredDeidentifyTemplate_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ structuredDeidentifyTemplate_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Structured de-identify template.
+ * If this template is specified, it will serve as the de-identify template
+ * for structured content such as delimited files and tables. If this template
+ * is not set but the `deidentify_template` is set, then `deidentify_template`
+ * will also apply to the structured content. If neither template is set, a
+ * default `ReplaceWithInfoTypeConfig` will be used to de-identify structured
+ * content.
+ *
+ *
+ * string structured_deidentify_template = 2;
+ *
+ * @return The bytes for structuredDeidentifyTemplate.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getStructuredDeidentifyTemplateBytes() {
+ java.lang.Object ref = structuredDeidentifyTemplate_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ structuredDeidentifyTemplate_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int IMAGE_REDACT_TEMPLATE_FIELD_NUMBER = 4;
+ private volatile java.lang.Object imageRedactTemplate_;
+ /**
+ *
+ *
+ *
+ * Image redact template.
+ * If this template is specified, it will serve as the de-identify template
+ * for images. If this template is not set, all findings in the image will be
+ * redacted with a black box.
+ *
+ *
+ * string image_redact_template = 4;
+ *
+ * @return The imageRedactTemplate.
+ */
+ @java.lang.Override
+ public java.lang.String getImageRedactTemplate() {
+ java.lang.Object ref = imageRedactTemplate_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ imageRedactTemplate_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Image redact template.
+ * If this template is specified, it will serve as the de-identify template
+ * for images. If this template is not set, all findings in the image will be
+ * redacted with a black box.
+ *
+ *
+ * string image_redact_template = 4;
+ *
+ * @return The bytes for imageRedactTemplate.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getImageRedactTemplateBytes() {
+ java.lang.Object ref = imageRedactTemplate_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ imageRedactTemplate_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(deidentifyTemplate_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, deidentifyTemplate_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(structuredDeidentifyTemplate_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, structuredDeidentifyTemplate_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(imageRedactTemplate_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 4, imageRedactTemplate_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(deidentifyTemplate_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, deidentifyTemplate_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(structuredDeidentifyTemplate_)) {
+ size +=
+ com.google.protobuf.GeneratedMessageV3.computeStringSize(
+ 2, structuredDeidentifyTemplate_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(imageRedactTemplate_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, imageRedactTemplate_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.privacy.dlp.v2.TransformationConfig)) {
+ return super.equals(obj);
+ }
+ com.google.privacy.dlp.v2.TransformationConfig other =
+ (com.google.privacy.dlp.v2.TransformationConfig) obj;
+
+ if (!getDeidentifyTemplate().equals(other.getDeidentifyTemplate())) return false;
+ if (!getStructuredDeidentifyTemplate().equals(other.getStructuredDeidentifyTemplate()))
+ return false;
+ if (!getImageRedactTemplate().equals(other.getImageRedactTemplate())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + DEIDENTIFY_TEMPLATE_FIELD_NUMBER;
+ hash = (53 * hash) + getDeidentifyTemplate().hashCode();
+ hash = (37 * hash) + STRUCTURED_DEIDENTIFY_TEMPLATE_FIELD_NUMBER;
+ hash = (53 * hash) + getStructuredDeidentifyTemplate().hashCode();
+ hash = (37 * hash) + IMAGE_REDACT_TEMPLATE_FIELD_NUMBER;
+ hash = (53 * hash) + getImageRedactTemplate().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.privacy.dlp.v2.TransformationConfig parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.privacy.dlp.v2.TransformationConfig parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.privacy.dlp.v2.TransformationConfig parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.privacy.dlp.v2.TransformationConfig parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.privacy.dlp.v2.TransformationConfig parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.privacy.dlp.v2.TransformationConfig parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.privacy.dlp.v2.TransformationConfig parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.privacy.dlp.v2.TransformationConfig parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.privacy.dlp.v2.TransformationConfig parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.privacy.dlp.v2.TransformationConfig parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.privacy.dlp.v2.TransformationConfig parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.privacy.dlp.v2.TransformationConfig parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(com.google.privacy.dlp.v2.TransformationConfig prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ *
+ * User specified templates and configs for how to deidentify structured,
+ * unstructures, and image files. User must provide either a unstructured
+ * deidentify template or at least one redact image config.
+ *
+ *
+ * Protobuf type {@code google.privacy.dlp.v2.TransformationConfig}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * De-identify template.
+ * If this template is specified, it will serve as the default de-identify
+ * template. This template cannot contain `record_transformations` since it
+ * can be used for unstructured content such as free-form text files. If this
+ * template is not set, a default `ReplaceWithInfoTypeConfig` will be used to
+ * de-identify unstructured content.
+ *
+ *
+ * string deidentify_template = 1;
+ *
+ * @return The deidentifyTemplate.
+ */
+ public java.lang.String getDeidentifyTemplate() {
+ java.lang.Object ref = deidentifyTemplate_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ deidentifyTemplate_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * De-identify template.
+ * If this template is specified, it will serve as the default de-identify
+ * template. This template cannot contain `record_transformations` since it
+ * can be used for unstructured content such as free-form text files. If this
+ * template is not set, a default `ReplaceWithInfoTypeConfig` will be used to
+ * de-identify unstructured content.
+ *
+ *
+ * string deidentify_template = 1;
+ *
+ * @return The bytes for deidentifyTemplate.
+ */
+ public com.google.protobuf.ByteString getDeidentifyTemplateBytes() {
+ java.lang.Object ref = deidentifyTemplate_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ deidentifyTemplate_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * De-identify template.
+ * If this template is specified, it will serve as the default de-identify
+ * template. This template cannot contain `record_transformations` since it
+ * can be used for unstructured content such as free-form text files. If this
+ * template is not set, a default `ReplaceWithInfoTypeConfig` will be used to
+ * de-identify unstructured content.
+ *
+ *
+ * string deidentify_template = 1;
+ *
+ * @param value The deidentifyTemplate to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDeidentifyTemplate(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ deidentifyTemplate_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * De-identify template.
+ * If this template is specified, it will serve as the default de-identify
+ * template. This template cannot contain `record_transformations` since it
+ * can be used for unstructured content such as free-form text files. If this
+ * template is not set, a default `ReplaceWithInfoTypeConfig` will be used to
+ * de-identify unstructured content.
+ *
+ *
+ * string deidentify_template = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearDeidentifyTemplate() {
+
+ deidentifyTemplate_ = getDefaultInstance().getDeidentifyTemplate();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * De-identify template.
+ * If this template is specified, it will serve as the default de-identify
+ * template. This template cannot contain `record_transformations` since it
+ * can be used for unstructured content such as free-form text files. If this
+ * template is not set, a default `ReplaceWithInfoTypeConfig` will be used to
+ * de-identify unstructured content.
+ *
+ *
+ * string deidentify_template = 1;
+ *
+ * @param value The bytes for deidentifyTemplate to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDeidentifyTemplateBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ deidentifyTemplate_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object structuredDeidentifyTemplate_ = "";
+ /**
+ *
+ *
+ *
+ * Structured de-identify template.
+ * If this template is specified, it will serve as the de-identify template
+ * for structured content such as delimited files and tables. If this template
+ * is not set but the `deidentify_template` is set, then `deidentify_template`
+ * will also apply to the structured content. If neither template is set, a
+ * default `ReplaceWithInfoTypeConfig` will be used to de-identify structured
+ * content.
+ *
+ *
+ * string structured_deidentify_template = 2;
+ *
+ * @return The structuredDeidentifyTemplate.
+ */
+ public java.lang.String getStructuredDeidentifyTemplate() {
+ java.lang.Object ref = structuredDeidentifyTemplate_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ structuredDeidentifyTemplate_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Structured de-identify template.
+ * If this template is specified, it will serve as the de-identify template
+ * for structured content such as delimited files and tables. If this template
+ * is not set but the `deidentify_template` is set, then `deidentify_template`
+ * will also apply to the structured content. If neither template is set, a
+ * default `ReplaceWithInfoTypeConfig` will be used to de-identify structured
+ * content.
+ *
+ *
+ * string structured_deidentify_template = 2;
+ *
+ * @return The bytes for structuredDeidentifyTemplate.
+ */
+ public com.google.protobuf.ByteString getStructuredDeidentifyTemplateBytes() {
+ java.lang.Object ref = structuredDeidentifyTemplate_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ structuredDeidentifyTemplate_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Structured de-identify template.
+ * If this template is specified, it will serve as the de-identify template
+ * for structured content such as delimited files and tables. If this template
+ * is not set but the `deidentify_template` is set, then `deidentify_template`
+ * will also apply to the structured content. If neither template is set, a
+ * default `ReplaceWithInfoTypeConfig` will be used to de-identify structured
+ * content.
+ *
+ *
+ * string structured_deidentify_template = 2;
+ *
+ * @param value The structuredDeidentifyTemplate to set.
+ * @return This builder for chaining.
+ */
+ public Builder setStructuredDeidentifyTemplate(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ structuredDeidentifyTemplate_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Structured de-identify template.
+ * If this template is specified, it will serve as the de-identify template
+ * for structured content such as delimited files and tables. If this template
+ * is not set but the `deidentify_template` is set, then `deidentify_template`
+ * will also apply to the structured content. If neither template is set, a
+ * default `ReplaceWithInfoTypeConfig` will be used to de-identify structured
+ * content.
+ *
+ *
+ * string structured_deidentify_template = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearStructuredDeidentifyTemplate() {
+
+ structuredDeidentifyTemplate_ = getDefaultInstance().getStructuredDeidentifyTemplate();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Structured de-identify template.
+ * If this template is specified, it will serve as the de-identify template
+ * for structured content such as delimited files and tables. If this template
+ * is not set but the `deidentify_template` is set, then `deidentify_template`
+ * will also apply to the structured content. If neither template is set, a
+ * default `ReplaceWithInfoTypeConfig` will be used to de-identify structured
+ * content.
+ *
+ *
+ * string structured_deidentify_template = 2;
+ *
+ * @param value The bytes for structuredDeidentifyTemplate to set.
+ * @return This builder for chaining.
+ */
+ public Builder setStructuredDeidentifyTemplateBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ structuredDeidentifyTemplate_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object imageRedactTemplate_ = "";
+ /**
+ *
+ *
+ *
+ * Image redact template.
+ * If this template is specified, it will serve as the de-identify template
+ * for images. If this template is not set, all findings in the image will be
+ * redacted with a black box.
+ *
+ *
+ * string image_redact_template = 4;
+ *
+ * @return The imageRedactTemplate.
+ */
+ public java.lang.String getImageRedactTemplate() {
+ java.lang.Object ref = imageRedactTemplate_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ imageRedactTemplate_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Image redact template.
+ * If this template is specified, it will serve as the de-identify template
+ * for images. If this template is not set, all findings in the image will be
+ * redacted with a black box.
+ *
+ *
+ * string image_redact_template = 4;
+ *
+ * @return The bytes for imageRedactTemplate.
+ */
+ public com.google.protobuf.ByteString getImageRedactTemplateBytes() {
+ java.lang.Object ref = imageRedactTemplate_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ imageRedactTemplate_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Image redact template.
+ * If this template is specified, it will serve as the de-identify template
+ * for images. If this template is not set, all findings in the image will be
+ * redacted with a black box.
+ *
+ *
+ * string image_redact_template = 4;
+ *
+ * @param value The imageRedactTemplate to set.
+ * @return This builder for chaining.
+ */
+ public Builder setImageRedactTemplate(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ imageRedactTemplate_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Image redact template.
+ * If this template is specified, it will serve as the de-identify template
+ * for images. If this template is not set, all findings in the image will be
+ * redacted with a black box.
+ *
+ *
+ * string image_redact_template = 4;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearImageRedactTemplate() {
+
+ imageRedactTemplate_ = getDefaultInstance().getImageRedactTemplate();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Image redact template.
+ * If this template is specified, it will serve as the de-identify template
+ * for images. If this template is not set, all findings in the image will be
+ * redacted with a black box.
+ *
+ *
+ * string image_redact_template = 4;
+ *
+ * @param value The bytes for imageRedactTemplate to set.
+ * @return This builder for chaining.
+ */
+ public Builder setImageRedactTemplateBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ imageRedactTemplate_ = value;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.privacy.dlp.v2.TransformationConfig)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.TransformationConfig)
+ private static final com.google.privacy.dlp.v2.TransformationConfig DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.privacy.dlp.v2.TransformationConfig();
+ }
+
+ public static com.google.privacy.dlp.v2.TransformationConfig getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ * De-identify template.
+ * If this template is specified, it will serve as the default de-identify
+ * template. This template cannot contain `record_transformations` since it
+ * can be used for unstructured content such as free-form text files. If this
+ * template is not set, a default `ReplaceWithInfoTypeConfig` will be used to
+ * de-identify unstructured content.
+ *
+ *
+ * string deidentify_template = 1;
+ *
+ * @return The deidentifyTemplate.
+ */
+ java.lang.String getDeidentifyTemplate();
+ /**
+ *
+ *
+ *
+ * De-identify template.
+ * If this template is specified, it will serve as the default de-identify
+ * template. This template cannot contain `record_transformations` since it
+ * can be used for unstructured content such as free-form text files. If this
+ * template is not set, a default `ReplaceWithInfoTypeConfig` will be used to
+ * de-identify unstructured content.
+ *
+ *
+ * string deidentify_template = 1;
+ *
+ * @return The bytes for deidentifyTemplate.
+ */
+ com.google.protobuf.ByteString getDeidentifyTemplateBytes();
+
+ /**
+ *
+ *
+ *
+ * Structured de-identify template.
+ * If this template is specified, it will serve as the de-identify template
+ * for structured content such as delimited files and tables. If this template
+ * is not set but the `deidentify_template` is set, then `deidentify_template`
+ * will also apply to the structured content. If neither template is set, a
+ * default `ReplaceWithInfoTypeConfig` will be used to de-identify structured
+ * content.
+ *
+ *
+ * string structured_deidentify_template = 2;
+ *
+ * @return The structuredDeidentifyTemplate.
+ */
+ java.lang.String getStructuredDeidentifyTemplate();
+ /**
+ *
+ *
+ *
+ * Structured de-identify template.
+ * If this template is specified, it will serve as the de-identify template
+ * for structured content such as delimited files and tables. If this template
+ * is not set but the `deidentify_template` is set, then `deidentify_template`
+ * will also apply to the structured content. If neither template is set, a
+ * default `ReplaceWithInfoTypeConfig` will be used to de-identify structured
+ * content.
+ *
+ *
+ * string structured_deidentify_template = 2;
+ *
+ * @return The bytes for structuredDeidentifyTemplate.
+ */
+ com.google.protobuf.ByteString getStructuredDeidentifyTemplateBytes();
+
+ /**
+ *
+ *
+ *
+ * Image redact template.
+ * If this template is specified, it will serve as the de-identify template
+ * for images. If this template is not set, all findings in the image will be
+ * redacted with a black box.
+ *
+ *
+ * string image_redact_template = 4;
+ *
+ * @return The imageRedactTemplate.
+ */
+ java.lang.String getImageRedactTemplate();
+ /**
+ *
+ *
+ *
+ * Image redact template.
+ * If this template is specified, it will serve as the de-identify template
+ * for images. If this template is not set, all findings in the image will be
+ * redacted with a black box.
+ *
+ *
+ * string image_redact_template = 4;
+ *
+ * @return The bytes for imageRedactTemplate.
+ */
+ com.google.protobuf.ByteString getImageRedactTemplateBytes();
+}
diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TransformationContainerType.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TransformationContainerType.java
new file mode 100644
index 000000000000..ee9293930b3e
--- /dev/null
+++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TransformationContainerType.java
@@ -0,0 +1,137 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/privacy/dlp/v2/dlp.proto
+
+package com.google.privacy.dlp.v2;
+
+/**
+ *
+ *
+ *
+ * Describes functionality of a given container in its original format.
+ *
+ *
+ * Protobuf enum {@code google.privacy.dlp.v2.TransformationContainerType}
+ */
+public enum TransformationContainerType implements com.google.protobuf.ProtocolMessageEnum {
+ /** TRANSFORM_UNKNOWN_CONTAINER = 0;
*/
+ TRANSFORM_UNKNOWN_CONTAINER(0),
+ /** TRANSFORM_BODY = 1;
*/
+ TRANSFORM_BODY(1),
+ /** TRANSFORM_METADATA = 2;
*/
+ TRANSFORM_METADATA(2),
+ /** TRANSFORM_TABLE = 3;
*/
+ TRANSFORM_TABLE(3),
+ UNRECOGNIZED(-1),
+ ;
+
+ /** TRANSFORM_UNKNOWN_CONTAINER = 0;
*/
+ public static final int TRANSFORM_UNKNOWN_CONTAINER_VALUE = 0;
+ /** TRANSFORM_BODY = 1;
*/
+ public static final int TRANSFORM_BODY_VALUE = 1;
+ /** TRANSFORM_METADATA = 2;
*/
+ public static final int TRANSFORM_METADATA_VALUE = 2;
+ /** TRANSFORM_TABLE = 3;
*/
+ public static final int TRANSFORM_TABLE_VALUE = 3;
+
+ public final int getNumber() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalArgumentException(
+ "Can't get the number of an unknown enum value.");
+ }
+ return value;
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
+ public static TransformationContainerType valueOf(int value) {
+ return forNumber(value);
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ */
+ public static TransformationContainerType forNumber(int value) {
+ switch (value) {
+ case 0:
+ return TRANSFORM_UNKNOWN_CONTAINER;
+ case 1:
+ return TRANSFORM_BODY;
+ case 2:
+ return TRANSFORM_METADATA;
+ case 3:
+ return TRANSFORM_TABLE;
+ default:
+ return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap
+ * A flattened description of a `PrimitiveTransformation` or
+ * `RecordSuppression`.
+ *
+ *
+ * Protobuf type {@code google.privacy.dlp.v2.TransformationDescription}
+ */
+public final class TransformationDescription extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2.TransformationDescription)
+ TransformationDescriptionOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use TransformationDescription.newBuilder() to construct.
+ private TransformationDescription(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private TransformationDescription() {
+ type_ = 0;
+ description_ = "";
+ condition_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new TransformationDescription();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private TransformationDescription(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 8:
+ {
+ int rawValue = input.readEnum();
+
+ type_ = rawValue;
+ break;
+ }
+ case 18:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ description_ = s;
+ break;
+ }
+ case 26:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ condition_ = s;
+ break;
+ }
+ case 34:
+ {
+ com.google.privacy.dlp.v2.InfoType.Builder subBuilder = null;
+ if (infoType_ != null) {
+ subBuilder = infoType_.toBuilder();
+ }
+ infoType_ =
+ input.readMessage(com.google.privacy.dlp.v2.InfoType.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(infoType_);
+ infoType_ = subBuilder.buildPartial();
+ }
+
+ break;
+ }
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.privacy.dlp.v2.DlpProto
+ .internal_static_google_privacy_dlp_v2_TransformationDescription_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.privacy.dlp.v2.DlpProto
+ .internal_static_google_privacy_dlp_v2_TransformationDescription_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.privacy.dlp.v2.TransformationDescription.class,
+ com.google.privacy.dlp.v2.TransformationDescription.Builder.class);
+ }
+
+ public static final int TYPE_FIELD_NUMBER = 1;
+ private int type_;
+ /**
+ *
+ *
+ *
+ * The transformation type.
+ *
+ *
+ * .google.privacy.dlp.v2.TransformationType type = 1;
+ *
+ * @return The enum numeric value on the wire for type.
+ */
+ @java.lang.Override
+ public int getTypeValue() {
+ return type_;
+ }
+ /**
+ *
+ *
+ *
+ * The transformation type.
+ *
+ *
+ * .google.privacy.dlp.v2.TransformationType type = 1;
+ *
+ * @return The type.
+ */
+ @java.lang.Override
+ public com.google.privacy.dlp.v2.TransformationType getType() {
+ @SuppressWarnings("deprecation")
+ com.google.privacy.dlp.v2.TransformationType result =
+ com.google.privacy.dlp.v2.TransformationType.valueOf(type_);
+ return result == null ? com.google.privacy.dlp.v2.TransformationType.UNRECOGNIZED : result;
+ }
+
+ public static final int DESCRIPTION_FIELD_NUMBER = 2;
+ private volatile java.lang.Object description_;
+ /**
+ *
+ *
+ *
+ * A description of the transformation. This is empty for a
+ * RECORD_SUPPRESSION, or is the output of calling toString() on the
+ * `PrimitiveTransformation` protocol buffer message for any other type of
+ * transformation.
+ *
+ *
+ * string description = 2;
+ *
+ * @return The description.
+ */
+ @java.lang.Override
+ public java.lang.String getDescription() {
+ java.lang.Object ref = description_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ description_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * A description of the transformation. This is empty for a
+ * RECORD_SUPPRESSION, or is the output of calling toString() on the
+ * `PrimitiveTransformation` protocol buffer message for any other type of
+ * transformation.
+ *
+ *
+ * string description = 2;
+ *
+ * @return The bytes for description.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getDescriptionBytes() {
+ java.lang.Object ref = description_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ description_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int CONDITION_FIELD_NUMBER = 3;
+ private volatile java.lang.Object condition_;
+ /**
+ *
+ *
+ *
+ * A human-readable string representation of the `RecordCondition`
+ * corresponding to this transformation. Set if a `RecordCondition` was used
+ * to determine whether or not to apply this transformation.
+ * Examples:
+ * * (age_field > 85)
+ * * (age_field <= 18)
+ * * (zip_field exists)
+ * * (zip_field == 01234) && (city_field != "Springville")
+ * * (zip_field == 01234) && (age_field <= 18) && (city_field exists)
+ *
+ *
+ * string condition = 3;
+ *
+ * @return The condition.
+ */
+ @java.lang.Override
+ public java.lang.String getCondition() {
+ java.lang.Object ref = condition_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ condition_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * A human-readable string representation of the `RecordCondition`
+ * corresponding to this transformation. Set if a `RecordCondition` was used
+ * to determine whether or not to apply this transformation.
+ * Examples:
+ * * (age_field > 85)
+ * * (age_field <= 18)
+ * * (zip_field exists)
+ * * (zip_field == 01234) && (city_field != "Springville")
+ * * (zip_field == 01234) && (age_field <= 18) && (city_field exists)
+ *
+ *
+ * string condition = 3;
+ *
+ * @return The bytes for condition.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getConditionBytes() {
+ java.lang.Object ref = condition_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ condition_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int INFO_TYPE_FIELD_NUMBER = 4;
+ private com.google.privacy.dlp.v2.InfoType infoType_;
+ /**
+ *
+ *
+ *
+ * Set if the transformation was limited to a specific `InfoType`.
+ *
+ *
+ * .google.privacy.dlp.v2.InfoType info_type = 4;
+ *
+ * @return Whether the infoType field is set.
+ */
+ @java.lang.Override
+ public boolean hasInfoType() {
+ return infoType_ != null;
+ }
+ /**
+ *
+ *
+ *
+ * Set if the transformation was limited to a specific `InfoType`.
+ *
+ *
+ * .google.privacy.dlp.v2.InfoType info_type = 4;
+ *
+ * @return The infoType.
+ */
+ @java.lang.Override
+ public com.google.privacy.dlp.v2.InfoType getInfoType() {
+ return infoType_ == null ? com.google.privacy.dlp.v2.InfoType.getDefaultInstance() : infoType_;
+ }
+ /**
+ *
+ *
+ *
+ * Set if the transformation was limited to a specific `InfoType`.
+ *
+ *
+ * .google.privacy.dlp.v2.InfoType info_type = 4;
+ */
+ @java.lang.Override
+ public com.google.privacy.dlp.v2.InfoTypeOrBuilder getInfoTypeOrBuilder() {
+ return getInfoType();
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (type_
+ != com.google.privacy.dlp.v2.TransformationType.TRANSFORMATION_TYPE_UNSPECIFIED
+ .getNumber()) {
+ output.writeEnum(1, type_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(condition_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, condition_);
+ }
+ if (infoType_ != null) {
+ output.writeMessage(4, getInfoType());
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (type_
+ != com.google.privacy.dlp.v2.TransformationType.TRANSFORMATION_TYPE_UNSPECIFIED
+ .getNumber()) {
+ size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, type_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(condition_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, condition_);
+ }
+ if (infoType_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getInfoType());
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.privacy.dlp.v2.TransformationDescription)) {
+ return super.equals(obj);
+ }
+ com.google.privacy.dlp.v2.TransformationDescription other =
+ (com.google.privacy.dlp.v2.TransformationDescription) obj;
+
+ if (type_ != other.type_) return false;
+ if (!getDescription().equals(other.getDescription())) return false;
+ if (!getCondition().equals(other.getCondition())) return false;
+ if (hasInfoType() != other.hasInfoType()) return false;
+ if (hasInfoType()) {
+ if (!getInfoType().equals(other.getInfoType())) return false;
+ }
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + TYPE_FIELD_NUMBER;
+ hash = (53 * hash) + type_;
+ hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
+ hash = (53 * hash) + getDescription().hashCode();
+ hash = (37 * hash) + CONDITION_FIELD_NUMBER;
+ hash = (53 * hash) + getCondition().hashCode();
+ if (hasInfoType()) {
+ hash = (37 * hash) + INFO_TYPE_FIELD_NUMBER;
+ hash = (53 * hash) + getInfoType().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.privacy.dlp.v2.TransformationDescription parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.privacy.dlp.v2.TransformationDescription parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.privacy.dlp.v2.TransformationDescription parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.privacy.dlp.v2.TransformationDescription parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.privacy.dlp.v2.TransformationDescription parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.privacy.dlp.v2.TransformationDescription parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.privacy.dlp.v2.TransformationDescription parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.privacy.dlp.v2.TransformationDescription parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.privacy.dlp.v2.TransformationDescription parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.privacy.dlp.v2.TransformationDescription parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.privacy.dlp.v2.TransformationDescription parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.privacy.dlp.v2.TransformationDescription parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(com.google.privacy.dlp.v2.TransformationDescription prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ *
+ * A flattened description of a `PrimitiveTransformation` or
+ * `RecordSuppression`.
+ *
+ *
+ * Protobuf type {@code google.privacy.dlp.v2.TransformationDescription}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * The transformation type.
+ *
+ *
+ * .google.privacy.dlp.v2.TransformationType type = 1;
+ *
+ * @return The enum numeric value on the wire for type.
+ */
+ @java.lang.Override
+ public int getTypeValue() {
+ return type_;
+ }
+ /**
+ *
+ *
+ *
+ * The transformation type.
+ *
+ *
+ * .google.privacy.dlp.v2.TransformationType type = 1;
+ *
+ * @param value The enum numeric value on the wire for type to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTypeValue(int value) {
+
+ type_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The transformation type.
+ *
+ *
+ * .google.privacy.dlp.v2.TransformationType type = 1;
+ *
+ * @return The type.
+ */
+ @java.lang.Override
+ public com.google.privacy.dlp.v2.TransformationType getType() {
+ @SuppressWarnings("deprecation")
+ com.google.privacy.dlp.v2.TransformationType result =
+ com.google.privacy.dlp.v2.TransformationType.valueOf(type_);
+ return result == null ? com.google.privacy.dlp.v2.TransformationType.UNRECOGNIZED : result;
+ }
+ /**
+ *
+ *
+ *
+ * The transformation type.
+ *
+ *
+ * .google.privacy.dlp.v2.TransformationType type = 1;
+ *
+ * @param value The type to set.
+ * @return This builder for chaining.
+ */
+ public Builder setType(com.google.privacy.dlp.v2.TransformationType value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ type_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The transformation type.
+ *
+ *
+ * .google.privacy.dlp.v2.TransformationType type = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearType() {
+
+ type_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object description_ = "";
+ /**
+ *
+ *
+ *
+ * A description of the transformation. This is empty for a
+ * RECORD_SUPPRESSION, or is the output of calling toString() on the
+ * `PrimitiveTransformation` protocol buffer message for any other type of
+ * transformation.
+ *
+ *
+ * string description = 2;
+ *
+ * @return The description.
+ */
+ public java.lang.String getDescription() {
+ java.lang.Object ref = description_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ description_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * A description of the transformation. This is empty for a
+ * RECORD_SUPPRESSION, or is the output of calling toString() on the
+ * `PrimitiveTransformation` protocol buffer message for any other type of
+ * transformation.
+ *
+ *
+ * string description = 2;
+ *
+ * @return The bytes for description.
+ */
+ public com.google.protobuf.ByteString getDescriptionBytes() {
+ java.lang.Object ref = description_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ description_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * A description of the transformation. This is empty for a
+ * RECORD_SUPPRESSION, or is the output of calling toString() on the
+ * `PrimitiveTransformation` protocol buffer message for any other type of
+ * transformation.
+ *
+ *
+ * string description = 2;
+ *
+ * @param value The description to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDescription(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ description_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * A description of the transformation. This is empty for a
+ * RECORD_SUPPRESSION, or is the output of calling toString() on the
+ * `PrimitiveTransformation` protocol buffer message for any other type of
+ * transformation.
+ *
+ *
+ * string description = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearDescription() {
+
+ description_ = getDefaultInstance().getDescription();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * A description of the transformation. This is empty for a
+ * RECORD_SUPPRESSION, or is the output of calling toString() on the
+ * `PrimitiveTransformation` protocol buffer message for any other type of
+ * transformation.
+ *
+ *
+ * string description = 2;
+ *
+ * @param value The bytes for description to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ description_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object condition_ = "";
+ /**
+ *
+ *
+ *
+ * A human-readable string representation of the `RecordCondition`
+ * corresponding to this transformation. Set if a `RecordCondition` was used
+ * to determine whether or not to apply this transformation.
+ * Examples:
+ * * (age_field > 85)
+ * * (age_field <= 18)
+ * * (zip_field exists)
+ * * (zip_field == 01234) && (city_field != "Springville")
+ * * (zip_field == 01234) && (age_field <= 18) && (city_field exists)
+ *
+ *
+ * string condition = 3;
+ *
+ * @return The condition.
+ */
+ public java.lang.String getCondition() {
+ java.lang.Object ref = condition_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ condition_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * A human-readable string representation of the `RecordCondition`
+ * corresponding to this transformation. Set if a `RecordCondition` was used
+ * to determine whether or not to apply this transformation.
+ * Examples:
+ * * (age_field > 85)
+ * * (age_field <= 18)
+ * * (zip_field exists)
+ * * (zip_field == 01234) && (city_field != "Springville")
+ * * (zip_field == 01234) && (age_field <= 18) && (city_field exists)
+ *
+ *
+ * string condition = 3;
+ *
+ * @return The bytes for condition.
+ */
+ public com.google.protobuf.ByteString getConditionBytes() {
+ java.lang.Object ref = condition_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ condition_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * A human-readable string representation of the `RecordCondition`
+ * corresponding to this transformation. Set if a `RecordCondition` was used
+ * to determine whether or not to apply this transformation.
+ * Examples:
+ * * (age_field > 85)
+ * * (age_field <= 18)
+ * * (zip_field exists)
+ * * (zip_field == 01234) && (city_field != "Springville")
+ * * (zip_field == 01234) && (age_field <= 18) && (city_field exists)
+ *
+ *
+ * string condition = 3;
+ *
+ * @param value The condition to set.
+ * @return This builder for chaining.
+ */
+ public Builder setCondition(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ condition_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * A human-readable string representation of the `RecordCondition`
+ * corresponding to this transformation. Set if a `RecordCondition` was used
+ * to determine whether or not to apply this transformation.
+ * Examples:
+ * * (age_field > 85)
+ * * (age_field <= 18)
+ * * (zip_field exists)
+ * * (zip_field == 01234) && (city_field != "Springville")
+ * * (zip_field == 01234) && (age_field <= 18) && (city_field exists)
+ *
+ *
+ * string condition = 3;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearCondition() {
+
+ condition_ = getDefaultInstance().getCondition();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * A human-readable string representation of the `RecordCondition`
+ * corresponding to this transformation. Set if a `RecordCondition` was used
+ * to determine whether or not to apply this transformation.
+ * Examples:
+ * * (age_field > 85)
+ * * (age_field <= 18)
+ * * (zip_field exists)
+ * * (zip_field == 01234) && (city_field != "Springville")
+ * * (zip_field == 01234) && (age_field <= 18) && (city_field exists)
+ *
+ *
+ * string condition = 3;
+ *
+ * @param value The bytes for condition to set.
+ * @return This builder for chaining.
+ */
+ public Builder setConditionBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ condition_ = value;
+ onChanged();
+ return this;
+ }
+
+ private com.google.privacy.dlp.v2.InfoType infoType_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.privacy.dlp.v2.InfoType,
+ com.google.privacy.dlp.v2.InfoType.Builder,
+ com.google.privacy.dlp.v2.InfoTypeOrBuilder>
+ infoTypeBuilder_;
+ /**
+ *
+ *
+ *
+ * Set if the transformation was limited to a specific `InfoType`.
+ *
+ *
+ * .google.privacy.dlp.v2.InfoType info_type = 4;
+ *
+ * @return Whether the infoType field is set.
+ */
+ public boolean hasInfoType() {
+ return infoTypeBuilder_ != null || infoType_ != null;
+ }
+ /**
+ *
+ *
+ *
+ * Set if the transformation was limited to a specific `InfoType`.
+ *
+ *
+ * .google.privacy.dlp.v2.InfoType info_type = 4;
+ *
+ * @return The infoType.
+ */
+ public com.google.privacy.dlp.v2.InfoType getInfoType() {
+ if (infoTypeBuilder_ == null) {
+ return infoType_ == null
+ ? com.google.privacy.dlp.v2.InfoType.getDefaultInstance()
+ : infoType_;
+ } else {
+ return infoTypeBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Set if the transformation was limited to a specific `InfoType`.
+ *
+ *
+ * .google.privacy.dlp.v2.InfoType info_type = 4;
+ */
+ public Builder setInfoType(com.google.privacy.dlp.v2.InfoType value) {
+ if (infoTypeBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ infoType_ = value;
+ onChanged();
+ } else {
+ infoTypeBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Set if the transformation was limited to a specific `InfoType`.
+ *
+ *
+ * .google.privacy.dlp.v2.InfoType info_type = 4;
+ */
+ public Builder setInfoType(com.google.privacy.dlp.v2.InfoType.Builder builderForValue) {
+ if (infoTypeBuilder_ == null) {
+ infoType_ = builderForValue.build();
+ onChanged();
+ } else {
+ infoTypeBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Set if the transformation was limited to a specific `InfoType`.
+ *
+ *
+ * .google.privacy.dlp.v2.InfoType info_type = 4;
+ */
+ public Builder mergeInfoType(com.google.privacy.dlp.v2.InfoType value) {
+ if (infoTypeBuilder_ == null) {
+ if (infoType_ != null) {
+ infoType_ =
+ com.google.privacy.dlp.v2.InfoType.newBuilder(infoType_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ infoType_ = value;
+ }
+ onChanged();
+ } else {
+ infoTypeBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Set if the transformation was limited to a specific `InfoType`.
+ *
+ *
+ * .google.privacy.dlp.v2.InfoType info_type = 4;
+ */
+ public Builder clearInfoType() {
+ if (infoTypeBuilder_ == null) {
+ infoType_ = null;
+ onChanged();
+ } else {
+ infoType_ = null;
+ infoTypeBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Set if the transformation was limited to a specific `InfoType`.
+ *
+ *
+ * .google.privacy.dlp.v2.InfoType info_type = 4;
+ */
+ public com.google.privacy.dlp.v2.InfoType.Builder getInfoTypeBuilder() {
+
+ onChanged();
+ return getInfoTypeFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ *
+ * Set if the transformation was limited to a specific `InfoType`.
+ *
+ *
+ * .google.privacy.dlp.v2.InfoType info_type = 4;
+ */
+ public com.google.privacy.dlp.v2.InfoTypeOrBuilder getInfoTypeOrBuilder() {
+ if (infoTypeBuilder_ != null) {
+ return infoTypeBuilder_.getMessageOrBuilder();
+ } else {
+ return infoType_ == null
+ ? com.google.privacy.dlp.v2.InfoType.getDefaultInstance()
+ : infoType_;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Set if the transformation was limited to a specific `InfoType`.
+ *
+ *
+ * .google.privacy.dlp.v2.InfoType info_type = 4;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.privacy.dlp.v2.InfoType,
+ com.google.privacy.dlp.v2.InfoType.Builder,
+ com.google.privacy.dlp.v2.InfoTypeOrBuilder>
+ getInfoTypeFieldBuilder() {
+ if (infoTypeBuilder_ == null) {
+ infoTypeBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.privacy.dlp.v2.InfoType,
+ com.google.privacy.dlp.v2.InfoType.Builder,
+ com.google.privacy.dlp.v2.InfoTypeOrBuilder>(
+ getInfoType(), getParentForChildren(), isClean());
+ infoType_ = null;
+ }
+ return infoTypeBuilder_;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.privacy.dlp.v2.TransformationDescription)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.TransformationDescription)
+ private static final com.google.privacy.dlp.v2.TransformationDescription DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.privacy.dlp.v2.TransformationDescription();
+ }
+
+ public static com.google.privacy.dlp.v2.TransformationDescription getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ * The transformation type.
+ *
+ *
+ * .google.privacy.dlp.v2.TransformationType type = 1;
+ *
+ * @return The enum numeric value on the wire for type.
+ */
+ int getTypeValue();
+ /**
+ *
+ *
+ *
+ * The transformation type.
+ *
+ *
+ * .google.privacy.dlp.v2.TransformationType type = 1;
+ *
+ * @return The type.
+ */
+ com.google.privacy.dlp.v2.TransformationType getType();
+
+ /**
+ *
+ *
+ *
+ * A description of the transformation. This is empty for a
+ * RECORD_SUPPRESSION, or is the output of calling toString() on the
+ * `PrimitiveTransformation` protocol buffer message for any other type of
+ * transformation.
+ *
+ *
+ * string description = 2;
+ *
+ * @return The description.
+ */
+ java.lang.String getDescription();
+ /**
+ *
+ *
+ *
+ * A description of the transformation. This is empty for a
+ * RECORD_SUPPRESSION, or is the output of calling toString() on the
+ * `PrimitiveTransformation` protocol buffer message for any other type of
+ * transformation.
+ *
+ *
+ * string description = 2;
+ *
+ * @return The bytes for description.
+ */
+ com.google.protobuf.ByteString getDescriptionBytes();
+
+ /**
+ *
+ *
+ *
+ * A human-readable string representation of the `RecordCondition`
+ * corresponding to this transformation. Set if a `RecordCondition` was used
+ * to determine whether or not to apply this transformation.
+ * Examples:
+ * * (age_field > 85)
+ * * (age_field <= 18)
+ * * (zip_field exists)
+ * * (zip_field == 01234) && (city_field != "Springville")
+ * * (zip_field == 01234) && (age_field <= 18) && (city_field exists)
+ *
+ *
+ * string condition = 3;
+ *
+ * @return The condition.
+ */
+ java.lang.String getCondition();
+ /**
+ *
+ *
+ *
+ * A human-readable string representation of the `RecordCondition`
+ * corresponding to this transformation. Set if a `RecordCondition` was used
+ * to determine whether or not to apply this transformation.
+ * Examples:
+ * * (age_field > 85)
+ * * (age_field <= 18)
+ * * (zip_field exists)
+ * * (zip_field == 01234) && (city_field != "Springville")
+ * * (zip_field == 01234) && (age_field <= 18) && (city_field exists)
+ *
+ *
+ * string condition = 3;
+ *
+ * @return The bytes for condition.
+ */
+ com.google.protobuf.ByteString getConditionBytes();
+
+ /**
+ *
+ *
+ *
+ * Set if the transformation was limited to a specific `InfoType`.
+ *
+ *
+ * .google.privacy.dlp.v2.InfoType info_type = 4;
+ *
+ * @return Whether the infoType field is set.
+ */
+ boolean hasInfoType();
+ /**
+ *
+ *
+ *
+ * Set if the transformation was limited to a specific `InfoType`.
+ *
+ *
+ * .google.privacy.dlp.v2.InfoType info_type = 4;
+ *
+ * @return The infoType.
+ */
+ com.google.privacy.dlp.v2.InfoType getInfoType();
+ /**
+ *
+ *
+ *
+ * Set if the transformation was limited to a specific `InfoType`.
+ *
+ *
+ * .google.privacy.dlp.v2.InfoType info_type = 4;
+ */
+ com.google.privacy.dlp.v2.InfoTypeOrBuilder getInfoTypeOrBuilder();
+}
diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TransformationDetails.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TransformationDetails.java
new file mode 100644
index 000000000000..80c6389a36c3
--- /dev/null
+++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TransformationDetails.java
@@ -0,0 +1,2116 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/privacy/dlp/v2/dlp.proto
+
+package com.google.privacy.dlp.v2;
+
+/**
+ *
+ *
+ *
+ * Details about a single transformation. This object contains a description of
+ * the transformation, information about whether the transformation was
+ * successfully applied, and the precise location where the transformation
+ * occurred. These details are stored in a user-specified BigQuery table.
+ *
+ *
+ * Protobuf type {@code google.privacy.dlp.v2.TransformationDetails}
+ */
+public final class TransformationDetails extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2.TransformationDetails)
+ TransformationDetailsOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use TransformationDetails.newBuilder() to construct.
+ private TransformationDetails(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private TransformationDetails() {
+ resourceName_ = "";
+ containerName_ = "";
+ transformation_ = java.util.Collections.emptyList();
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new TransformationDetails();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private TransformationDetails(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ resourceName_ = s;
+ break;
+ }
+ case 18:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ containerName_ = s;
+ break;
+ }
+ case 26:
+ {
+ if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+ transformation_ =
+ new java.util.ArrayList
+ * The name of the job that completed the transformation.
+ *
+ *
+ * string resource_name = 1;
+ *
+ * @return The resourceName.
+ */
+ @java.lang.Override
+ public java.lang.String getResourceName() {
+ java.lang.Object ref = resourceName_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ resourceName_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The name of the job that completed the transformation.
+ *
+ *
+ * string resource_name = 1;
+ *
+ * @return The bytes for resourceName.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getResourceNameBytes() {
+ java.lang.Object ref = resourceName_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ resourceName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int CONTAINER_NAME_FIELD_NUMBER = 2;
+ private volatile java.lang.Object containerName_;
+ /**
+ *
+ *
+ *
+ * The top level name of the container where the transformation is located
+ * (this will be the source file name or table name).
+ *
+ *
+ * string container_name = 2;
+ *
+ * @return The containerName.
+ */
+ @java.lang.Override
+ public java.lang.String getContainerName() {
+ java.lang.Object ref = containerName_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ containerName_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The top level name of the container where the transformation is located
+ * (this will be the source file name or table name).
+ *
+ *
+ * string container_name = 2;
+ *
+ * @return The bytes for containerName.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getContainerNameBytes() {
+ java.lang.Object ref = containerName_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ containerName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int TRANSFORMATION_FIELD_NUMBER = 3;
+ private java.util.List
+ * Description of transformation. This would only contain more than one
+ * element if there were multiple matching transformations and which one to
+ * apply was ambiguous. Not set for states that contain no transformation,
+ * currently only state that contains no transformation is
+ * TransformationResultStateType.METADATA_UNRETRIEVABLE.
+ *
+ *
+ * repeated .google.privacy.dlp.v2.TransformationDescription transformation = 3;
+ */
+ @java.lang.Override
+ public java.util.List
+ * Description of transformation. This would only contain more than one
+ * element if there were multiple matching transformations and which one to
+ * apply was ambiguous. Not set for states that contain no transformation,
+ * currently only state that contains no transformation is
+ * TransformationResultStateType.METADATA_UNRETRIEVABLE.
+ *
+ *
+ * repeated .google.privacy.dlp.v2.TransformationDescription transformation = 3;
+ */
+ @java.lang.Override
+ public java.util.List extends com.google.privacy.dlp.v2.TransformationDescriptionOrBuilder>
+ getTransformationOrBuilderList() {
+ return transformation_;
+ }
+ /**
+ *
+ *
+ *
+ * Description of transformation. This would only contain more than one
+ * element if there were multiple matching transformations and which one to
+ * apply was ambiguous. Not set for states that contain no transformation,
+ * currently only state that contains no transformation is
+ * TransformationResultStateType.METADATA_UNRETRIEVABLE.
+ *
+ *
+ * repeated .google.privacy.dlp.v2.TransformationDescription transformation = 3;
+ */
+ @java.lang.Override
+ public int getTransformationCount() {
+ return transformation_.size();
+ }
+ /**
+ *
+ *
+ *
+ * Description of transformation. This would only contain more than one
+ * element if there were multiple matching transformations and which one to
+ * apply was ambiguous. Not set for states that contain no transformation,
+ * currently only state that contains no transformation is
+ * TransformationResultStateType.METADATA_UNRETRIEVABLE.
+ *
+ *
+ * repeated .google.privacy.dlp.v2.TransformationDescription transformation = 3;
+ */
+ @java.lang.Override
+ public com.google.privacy.dlp.v2.TransformationDescription getTransformation(int index) {
+ return transformation_.get(index);
+ }
+ /**
+ *
+ *
+ *
+ * Description of transformation. This would only contain more than one
+ * element if there were multiple matching transformations and which one to
+ * apply was ambiguous. Not set for states that contain no transformation,
+ * currently only state that contains no transformation is
+ * TransformationResultStateType.METADATA_UNRETRIEVABLE.
+ *
+ *
+ * repeated .google.privacy.dlp.v2.TransformationDescription transformation = 3;
+ */
+ @java.lang.Override
+ public com.google.privacy.dlp.v2.TransformationDescriptionOrBuilder getTransformationOrBuilder(
+ int index) {
+ return transformation_.get(index);
+ }
+
+ public static final int STATUS_DETAILS_FIELD_NUMBER = 4;
+ private com.google.privacy.dlp.v2.TransformationResultStatus statusDetails_;
+ /**
+ *
+ *
+ *
+ * Status of the transformation, if transformation was not successful, this
+ * will specify what caused it to fail, otherwise it will show that the
+ * transformation was successful.
+ *
+ *
+ * .google.privacy.dlp.v2.TransformationResultStatus status_details = 4;
+ *
+ * @return Whether the statusDetails field is set.
+ */
+ @java.lang.Override
+ public boolean hasStatusDetails() {
+ return statusDetails_ != null;
+ }
+ /**
+ *
+ *
+ *
+ * Status of the transformation, if transformation was not successful, this
+ * will specify what caused it to fail, otherwise it will show that the
+ * transformation was successful.
+ *
+ *
+ * .google.privacy.dlp.v2.TransformationResultStatus status_details = 4;
+ *
+ * @return The statusDetails.
+ */
+ @java.lang.Override
+ public com.google.privacy.dlp.v2.TransformationResultStatus getStatusDetails() {
+ return statusDetails_ == null
+ ? com.google.privacy.dlp.v2.TransformationResultStatus.getDefaultInstance()
+ : statusDetails_;
+ }
+ /**
+ *
+ *
+ *
+ * Status of the transformation, if transformation was not successful, this
+ * will specify what caused it to fail, otherwise it will show that the
+ * transformation was successful.
+ *
+ *
+ * .google.privacy.dlp.v2.TransformationResultStatus status_details = 4;
+ */
+ @java.lang.Override
+ public com.google.privacy.dlp.v2.TransformationResultStatusOrBuilder getStatusDetailsOrBuilder() {
+ return getStatusDetails();
+ }
+
+ public static final int TRANSFORMED_BYTES_FIELD_NUMBER = 5;
+ private long transformedBytes_;
+ /**
+ *
+ *
+ *
+ * The number of bytes that were transformed. If transformation was
+ * unsuccessful or did not take place because there was no content to
+ * transform, this will be zero.
+ *
+ *
+ * int64 transformed_bytes = 5;
+ *
+ * @return The transformedBytes.
+ */
+ @java.lang.Override
+ public long getTransformedBytes() {
+ return transformedBytes_;
+ }
+
+ public static final int TRANSFORMATION_LOCATION_FIELD_NUMBER = 6;
+ private com.google.privacy.dlp.v2.TransformationLocation transformationLocation_;
+ /**
+ *
+ *
+ *
+ * The precise location of the transformed content in the original container.
+ *
+ *
+ * .google.privacy.dlp.v2.TransformationLocation transformation_location = 6;
+ *
+ * @return Whether the transformationLocation field is set.
+ */
+ @java.lang.Override
+ public boolean hasTransformationLocation() {
+ return transformationLocation_ != null;
+ }
+ /**
+ *
+ *
+ *
+ * The precise location of the transformed content in the original container.
+ *
+ *
+ * .google.privacy.dlp.v2.TransformationLocation transformation_location = 6;
+ *
+ * @return The transformationLocation.
+ */
+ @java.lang.Override
+ public com.google.privacy.dlp.v2.TransformationLocation getTransformationLocation() {
+ return transformationLocation_ == null
+ ? com.google.privacy.dlp.v2.TransformationLocation.getDefaultInstance()
+ : transformationLocation_;
+ }
+ /**
+ *
+ *
+ *
+ * The precise location of the transformed content in the original container.
+ *
+ *
+ * .google.privacy.dlp.v2.TransformationLocation transformation_location = 6;
+ */
+ @java.lang.Override
+ public com.google.privacy.dlp.v2.TransformationLocationOrBuilder
+ getTransformationLocationOrBuilder() {
+ return getTransformationLocation();
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceName_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resourceName_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(containerName_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, containerName_);
+ }
+ for (int i = 0; i < transformation_.size(); i++) {
+ output.writeMessage(3, transformation_.get(i));
+ }
+ if (statusDetails_ != null) {
+ output.writeMessage(4, getStatusDetails());
+ }
+ if (transformedBytes_ != 0L) {
+ output.writeInt64(5, transformedBytes_);
+ }
+ if (transformationLocation_ != null) {
+ output.writeMessage(6, getTransformationLocation());
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceName_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, resourceName_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(containerName_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, containerName_);
+ }
+ for (int i = 0; i < transformation_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, transformation_.get(i));
+ }
+ if (statusDetails_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getStatusDetails());
+ }
+ if (transformedBytes_ != 0L) {
+ size += com.google.protobuf.CodedOutputStream.computeInt64Size(5, transformedBytes_);
+ }
+ if (transformationLocation_ != null) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(6, getTransformationLocation());
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.privacy.dlp.v2.TransformationDetails)) {
+ return super.equals(obj);
+ }
+ com.google.privacy.dlp.v2.TransformationDetails other =
+ (com.google.privacy.dlp.v2.TransformationDetails) obj;
+
+ if (!getResourceName().equals(other.getResourceName())) return false;
+ if (!getContainerName().equals(other.getContainerName())) return false;
+ if (!getTransformationList().equals(other.getTransformationList())) return false;
+ if (hasStatusDetails() != other.hasStatusDetails()) return false;
+ if (hasStatusDetails()) {
+ if (!getStatusDetails().equals(other.getStatusDetails())) return false;
+ }
+ if (getTransformedBytes() != other.getTransformedBytes()) return false;
+ if (hasTransformationLocation() != other.hasTransformationLocation()) return false;
+ if (hasTransformationLocation()) {
+ if (!getTransformationLocation().equals(other.getTransformationLocation())) return false;
+ }
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + RESOURCE_NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getResourceName().hashCode();
+ hash = (37 * hash) + CONTAINER_NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getContainerName().hashCode();
+ if (getTransformationCount() > 0) {
+ hash = (37 * hash) + TRANSFORMATION_FIELD_NUMBER;
+ hash = (53 * hash) + getTransformationList().hashCode();
+ }
+ if (hasStatusDetails()) {
+ hash = (37 * hash) + STATUS_DETAILS_FIELD_NUMBER;
+ hash = (53 * hash) + getStatusDetails().hashCode();
+ }
+ hash = (37 * hash) + TRANSFORMED_BYTES_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTransformedBytes());
+ if (hasTransformationLocation()) {
+ hash = (37 * hash) + TRANSFORMATION_LOCATION_FIELD_NUMBER;
+ hash = (53 * hash) + getTransformationLocation().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.privacy.dlp.v2.TransformationDetails parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.privacy.dlp.v2.TransformationDetails parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.privacy.dlp.v2.TransformationDetails parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.privacy.dlp.v2.TransformationDetails parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.privacy.dlp.v2.TransformationDetails parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.privacy.dlp.v2.TransformationDetails parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.privacy.dlp.v2.TransformationDetails parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.privacy.dlp.v2.TransformationDetails parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.privacy.dlp.v2.TransformationDetails parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.privacy.dlp.v2.TransformationDetails parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.privacy.dlp.v2.TransformationDetails parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.privacy.dlp.v2.TransformationDetails parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(com.google.privacy.dlp.v2.TransformationDetails prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ *
+ * Details about a single transformation. This object contains a description of
+ * the transformation, information about whether the transformation was
+ * successfully applied, and the precise location where the transformation
+ * occurred. These details are stored in a user-specified BigQuery table.
+ *
+ *
+ * Protobuf type {@code google.privacy.dlp.v2.TransformationDetails}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * The name of the job that completed the transformation.
+ *
+ *
+ * string resource_name = 1;
+ *
+ * @return The resourceName.
+ */
+ public java.lang.String getResourceName() {
+ java.lang.Object ref = resourceName_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ resourceName_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The name of the job that completed the transformation.
+ *
+ *
+ * string resource_name = 1;
+ *
+ * @return The bytes for resourceName.
+ */
+ public com.google.protobuf.ByteString getResourceNameBytes() {
+ java.lang.Object ref = resourceName_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ resourceName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The name of the job that completed the transformation.
+ *
+ *
+ * string resource_name = 1;
+ *
+ * @param value The resourceName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setResourceName(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ resourceName_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The name of the job that completed the transformation.
+ *
+ *
+ * string resource_name = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearResourceName() {
+
+ resourceName_ = getDefaultInstance().getResourceName();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The name of the job that completed the transformation.
+ *
+ *
+ * string resource_name = 1;
+ *
+ * @param value The bytes for resourceName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setResourceNameBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ resourceName_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object containerName_ = "";
+ /**
+ *
+ *
+ *
+ * The top level name of the container where the transformation is located
+ * (this will be the source file name or table name).
+ *
+ *
+ * string container_name = 2;
+ *
+ * @return The containerName.
+ */
+ public java.lang.String getContainerName() {
+ java.lang.Object ref = containerName_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ containerName_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The top level name of the container where the transformation is located
+ * (this will be the source file name or table name).
+ *
+ *
+ * string container_name = 2;
+ *
+ * @return The bytes for containerName.
+ */
+ public com.google.protobuf.ByteString getContainerNameBytes() {
+ java.lang.Object ref = containerName_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ containerName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The top level name of the container where the transformation is located
+ * (this will be the source file name or table name).
+ *
+ *
+ * string container_name = 2;
+ *
+ * @param value The containerName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setContainerName(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ containerName_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The top level name of the container where the transformation is located
+ * (this will be the source file name or table name).
+ *
+ *
+ * string container_name = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearContainerName() {
+
+ containerName_ = getDefaultInstance().getContainerName();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The top level name of the container where the transformation is located
+ * (this will be the source file name or table name).
+ *
+ *
+ * string container_name = 2;
+ *
+ * @param value The bytes for containerName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setContainerNameBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ containerName_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.util.List
+ * Description of transformation. This would only contain more than one
+ * element if there were multiple matching transformations and which one to
+ * apply was ambiguous. Not set for states that contain no transformation,
+ * currently only state that contains no transformation is
+ * TransformationResultStateType.METADATA_UNRETRIEVABLE.
+ *
+ *
+ * repeated .google.privacy.dlp.v2.TransformationDescription transformation = 3;
+ */
+ public java.util.List
+ * Description of transformation. This would only contain more than one
+ * element if there were multiple matching transformations and which one to
+ * apply was ambiguous. Not set for states that contain no transformation,
+ * currently only state that contains no transformation is
+ * TransformationResultStateType.METADATA_UNRETRIEVABLE.
+ *
+ *
+ * repeated .google.privacy.dlp.v2.TransformationDescription transformation = 3;
+ */
+ public int getTransformationCount() {
+ if (transformationBuilder_ == null) {
+ return transformation_.size();
+ } else {
+ return transformationBuilder_.getCount();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Description of transformation. This would only contain more than one
+ * element if there were multiple matching transformations and which one to
+ * apply was ambiguous. Not set for states that contain no transformation,
+ * currently only state that contains no transformation is
+ * TransformationResultStateType.METADATA_UNRETRIEVABLE.
+ *
+ *
+ * repeated .google.privacy.dlp.v2.TransformationDescription transformation = 3;
+ */
+ public com.google.privacy.dlp.v2.TransformationDescription getTransformation(int index) {
+ if (transformationBuilder_ == null) {
+ return transformation_.get(index);
+ } else {
+ return transformationBuilder_.getMessage(index);
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Description of transformation. This would only contain more than one
+ * element if there were multiple matching transformations and which one to
+ * apply was ambiguous. Not set for states that contain no transformation,
+ * currently only state that contains no transformation is
+ * TransformationResultStateType.METADATA_UNRETRIEVABLE.
+ *
+ *
+ * repeated .google.privacy.dlp.v2.TransformationDescription transformation = 3;
+ */
+ public Builder setTransformation(
+ int index, com.google.privacy.dlp.v2.TransformationDescription value) {
+ if (transformationBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureTransformationIsMutable();
+ transformation_.set(index, value);
+ onChanged();
+ } else {
+ transformationBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Description of transformation. This would only contain more than one
+ * element if there were multiple matching transformations and which one to
+ * apply was ambiguous. Not set for states that contain no transformation,
+ * currently only state that contains no transformation is
+ * TransformationResultStateType.METADATA_UNRETRIEVABLE.
+ *
+ *
+ * repeated .google.privacy.dlp.v2.TransformationDescription transformation = 3;
+ */
+ public Builder setTransformation(
+ int index, com.google.privacy.dlp.v2.TransformationDescription.Builder builderForValue) {
+ if (transformationBuilder_ == null) {
+ ensureTransformationIsMutable();
+ transformation_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ transformationBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Description of transformation. This would only contain more than one
+ * element if there were multiple matching transformations and which one to
+ * apply was ambiguous. Not set for states that contain no transformation,
+ * currently only state that contains no transformation is
+ * TransformationResultStateType.METADATA_UNRETRIEVABLE.
+ *
+ *
+ * repeated .google.privacy.dlp.v2.TransformationDescription transformation = 3;
+ */
+ public Builder addTransformation(com.google.privacy.dlp.v2.TransformationDescription value) {
+ if (transformationBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureTransformationIsMutable();
+ transformation_.add(value);
+ onChanged();
+ } else {
+ transformationBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Description of transformation. This would only contain more than one
+ * element if there were multiple matching transformations and which one to
+ * apply was ambiguous. Not set for states that contain no transformation,
+ * currently only state that contains no transformation is
+ * TransformationResultStateType.METADATA_UNRETRIEVABLE.
+ *
+ *
+ * repeated .google.privacy.dlp.v2.TransformationDescription transformation = 3;
+ */
+ public Builder addTransformation(
+ int index, com.google.privacy.dlp.v2.TransformationDescription value) {
+ if (transformationBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureTransformationIsMutable();
+ transformation_.add(index, value);
+ onChanged();
+ } else {
+ transformationBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Description of transformation. This would only contain more than one
+ * element if there were multiple matching transformations and which one to
+ * apply was ambiguous. Not set for states that contain no transformation,
+ * currently only state that contains no transformation is
+ * TransformationResultStateType.METADATA_UNRETRIEVABLE.
+ *
+ *
+ * repeated .google.privacy.dlp.v2.TransformationDescription transformation = 3;
+ */
+ public Builder addTransformation(
+ com.google.privacy.dlp.v2.TransformationDescription.Builder builderForValue) {
+ if (transformationBuilder_ == null) {
+ ensureTransformationIsMutable();
+ transformation_.add(builderForValue.build());
+ onChanged();
+ } else {
+ transformationBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Description of transformation. This would only contain more than one
+ * element if there were multiple matching transformations and which one to
+ * apply was ambiguous. Not set for states that contain no transformation,
+ * currently only state that contains no transformation is
+ * TransformationResultStateType.METADATA_UNRETRIEVABLE.
+ *
+ *
+ * repeated .google.privacy.dlp.v2.TransformationDescription transformation = 3;
+ */
+ public Builder addTransformation(
+ int index, com.google.privacy.dlp.v2.TransformationDescription.Builder builderForValue) {
+ if (transformationBuilder_ == null) {
+ ensureTransformationIsMutable();
+ transformation_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ transformationBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Description of transformation. This would only contain more than one
+ * element if there were multiple matching transformations and which one to
+ * apply was ambiguous. Not set for states that contain no transformation,
+ * currently only state that contains no transformation is
+ * TransformationResultStateType.METADATA_UNRETRIEVABLE.
+ *
+ *
+ * repeated .google.privacy.dlp.v2.TransformationDescription transformation = 3;
+ */
+ public Builder addAllTransformation(
+ java.lang.Iterable extends com.google.privacy.dlp.v2.TransformationDescription> values) {
+ if (transformationBuilder_ == null) {
+ ensureTransformationIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, transformation_);
+ onChanged();
+ } else {
+ transformationBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Description of transformation. This would only contain more than one
+ * element if there were multiple matching transformations and which one to
+ * apply was ambiguous. Not set for states that contain no transformation,
+ * currently only state that contains no transformation is
+ * TransformationResultStateType.METADATA_UNRETRIEVABLE.
+ *
+ *
+ * repeated .google.privacy.dlp.v2.TransformationDescription transformation = 3;
+ */
+ public Builder clearTransformation() {
+ if (transformationBuilder_ == null) {
+ transformation_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ transformationBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Description of transformation. This would only contain more than one
+ * element if there were multiple matching transformations and which one to
+ * apply was ambiguous. Not set for states that contain no transformation,
+ * currently only state that contains no transformation is
+ * TransformationResultStateType.METADATA_UNRETRIEVABLE.
+ *
+ *
+ * repeated .google.privacy.dlp.v2.TransformationDescription transformation = 3;
+ */
+ public Builder removeTransformation(int index) {
+ if (transformationBuilder_ == null) {
+ ensureTransformationIsMutable();
+ transformation_.remove(index);
+ onChanged();
+ } else {
+ transformationBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Description of transformation. This would only contain more than one
+ * element if there were multiple matching transformations and which one to
+ * apply was ambiguous. Not set for states that contain no transformation,
+ * currently only state that contains no transformation is
+ * TransformationResultStateType.METADATA_UNRETRIEVABLE.
+ *
+ *
+ * repeated .google.privacy.dlp.v2.TransformationDescription transformation = 3;
+ */
+ public com.google.privacy.dlp.v2.TransformationDescription.Builder getTransformationBuilder(
+ int index) {
+ return getTransformationFieldBuilder().getBuilder(index);
+ }
+ /**
+ *
+ *
+ *
+ * Description of transformation. This would only contain more than one
+ * element if there were multiple matching transformations and which one to
+ * apply was ambiguous. Not set for states that contain no transformation,
+ * currently only state that contains no transformation is
+ * TransformationResultStateType.METADATA_UNRETRIEVABLE.
+ *
+ *
+ * repeated .google.privacy.dlp.v2.TransformationDescription transformation = 3;
+ */
+ public com.google.privacy.dlp.v2.TransformationDescriptionOrBuilder getTransformationOrBuilder(
+ int index) {
+ if (transformationBuilder_ == null) {
+ return transformation_.get(index);
+ } else {
+ return transformationBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Description of transformation. This would only contain more than one
+ * element if there were multiple matching transformations and which one to
+ * apply was ambiguous. Not set for states that contain no transformation,
+ * currently only state that contains no transformation is
+ * TransformationResultStateType.METADATA_UNRETRIEVABLE.
+ *
+ *
+ * repeated .google.privacy.dlp.v2.TransformationDescription transformation = 3;
+ */
+ public java.util.List extends com.google.privacy.dlp.v2.TransformationDescriptionOrBuilder>
+ getTransformationOrBuilderList() {
+ if (transformationBuilder_ != null) {
+ return transformationBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(transformation_);
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Description of transformation. This would only contain more than one
+ * element if there were multiple matching transformations and which one to
+ * apply was ambiguous. Not set for states that contain no transformation,
+ * currently only state that contains no transformation is
+ * TransformationResultStateType.METADATA_UNRETRIEVABLE.
+ *
+ *
+ * repeated .google.privacy.dlp.v2.TransformationDescription transformation = 3;
+ */
+ public com.google.privacy.dlp.v2.TransformationDescription.Builder addTransformationBuilder() {
+ return getTransformationFieldBuilder()
+ .addBuilder(com.google.privacy.dlp.v2.TransformationDescription.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ *
+ * Description of transformation. This would only contain more than one
+ * element if there were multiple matching transformations and which one to
+ * apply was ambiguous. Not set for states that contain no transformation,
+ * currently only state that contains no transformation is
+ * TransformationResultStateType.METADATA_UNRETRIEVABLE.
+ *
+ *
+ * repeated .google.privacy.dlp.v2.TransformationDescription transformation = 3;
+ */
+ public com.google.privacy.dlp.v2.TransformationDescription.Builder addTransformationBuilder(
+ int index) {
+ return getTransformationFieldBuilder()
+ .addBuilder(
+ index, com.google.privacy.dlp.v2.TransformationDescription.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ *
+ * Description of transformation. This would only contain more than one
+ * element if there were multiple matching transformations and which one to
+ * apply was ambiguous. Not set for states that contain no transformation,
+ * currently only state that contains no transformation is
+ * TransformationResultStateType.METADATA_UNRETRIEVABLE.
+ *
+ *
+ * repeated .google.privacy.dlp.v2.TransformationDescription transformation = 3;
+ */
+ public java.util.List
+ * Status of the transformation, if transformation was not successful, this
+ * will specify what caused it to fail, otherwise it will show that the
+ * transformation was successful.
+ *
+ *
+ * .google.privacy.dlp.v2.TransformationResultStatus status_details = 4;
+ *
+ * @return Whether the statusDetails field is set.
+ */
+ public boolean hasStatusDetails() {
+ return statusDetailsBuilder_ != null || statusDetails_ != null;
+ }
+ /**
+ *
+ *
+ *
+ * Status of the transformation, if transformation was not successful, this
+ * will specify what caused it to fail, otherwise it will show that the
+ * transformation was successful.
+ *
+ *
+ * .google.privacy.dlp.v2.TransformationResultStatus status_details = 4;
+ *
+ * @return The statusDetails.
+ */
+ public com.google.privacy.dlp.v2.TransformationResultStatus getStatusDetails() {
+ if (statusDetailsBuilder_ == null) {
+ return statusDetails_ == null
+ ? com.google.privacy.dlp.v2.TransformationResultStatus.getDefaultInstance()
+ : statusDetails_;
+ } else {
+ return statusDetailsBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Status of the transformation, if transformation was not successful, this
+ * will specify what caused it to fail, otherwise it will show that the
+ * transformation was successful.
+ *
+ *
+ * .google.privacy.dlp.v2.TransformationResultStatus status_details = 4;
+ */
+ public Builder setStatusDetails(com.google.privacy.dlp.v2.TransformationResultStatus value) {
+ if (statusDetailsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ statusDetails_ = value;
+ onChanged();
+ } else {
+ statusDetailsBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Status of the transformation, if transformation was not successful, this
+ * will specify what caused it to fail, otherwise it will show that the
+ * transformation was successful.
+ *
+ *
+ * .google.privacy.dlp.v2.TransformationResultStatus status_details = 4;
+ */
+ public Builder setStatusDetails(
+ com.google.privacy.dlp.v2.TransformationResultStatus.Builder builderForValue) {
+ if (statusDetailsBuilder_ == null) {
+ statusDetails_ = builderForValue.build();
+ onChanged();
+ } else {
+ statusDetailsBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Status of the transformation, if transformation was not successful, this
+ * will specify what caused it to fail, otherwise it will show that the
+ * transformation was successful.
+ *
+ *
+ * .google.privacy.dlp.v2.TransformationResultStatus status_details = 4;
+ */
+ public Builder mergeStatusDetails(com.google.privacy.dlp.v2.TransformationResultStatus value) {
+ if (statusDetailsBuilder_ == null) {
+ if (statusDetails_ != null) {
+ statusDetails_ =
+ com.google.privacy.dlp.v2.TransformationResultStatus.newBuilder(statusDetails_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ statusDetails_ = value;
+ }
+ onChanged();
+ } else {
+ statusDetailsBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Status of the transformation, if transformation was not successful, this
+ * will specify what caused it to fail, otherwise it will show that the
+ * transformation was successful.
+ *
+ *
+ * .google.privacy.dlp.v2.TransformationResultStatus status_details = 4;
+ */
+ public Builder clearStatusDetails() {
+ if (statusDetailsBuilder_ == null) {
+ statusDetails_ = null;
+ onChanged();
+ } else {
+ statusDetails_ = null;
+ statusDetailsBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Status of the transformation, if transformation was not successful, this
+ * will specify what caused it to fail, otherwise it will show that the
+ * transformation was successful.
+ *
+ *
+ * .google.privacy.dlp.v2.TransformationResultStatus status_details = 4;
+ */
+ public com.google.privacy.dlp.v2.TransformationResultStatus.Builder getStatusDetailsBuilder() {
+
+ onChanged();
+ return getStatusDetailsFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ *
+ * Status of the transformation, if transformation was not successful, this
+ * will specify what caused it to fail, otherwise it will show that the
+ * transformation was successful.
+ *
+ *
+ * .google.privacy.dlp.v2.TransformationResultStatus status_details = 4;
+ */
+ public com.google.privacy.dlp.v2.TransformationResultStatusOrBuilder
+ getStatusDetailsOrBuilder() {
+ if (statusDetailsBuilder_ != null) {
+ return statusDetailsBuilder_.getMessageOrBuilder();
+ } else {
+ return statusDetails_ == null
+ ? com.google.privacy.dlp.v2.TransformationResultStatus.getDefaultInstance()
+ : statusDetails_;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Status of the transformation, if transformation was not successful, this
+ * will specify what caused it to fail, otherwise it will show that the
+ * transformation was successful.
+ *
+ *
+ * .google.privacy.dlp.v2.TransformationResultStatus status_details = 4;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.privacy.dlp.v2.TransformationResultStatus,
+ com.google.privacy.dlp.v2.TransformationResultStatus.Builder,
+ com.google.privacy.dlp.v2.TransformationResultStatusOrBuilder>
+ getStatusDetailsFieldBuilder() {
+ if (statusDetailsBuilder_ == null) {
+ statusDetailsBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.privacy.dlp.v2.TransformationResultStatus,
+ com.google.privacy.dlp.v2.TransformationResultStatus.Builder,
+ com.google.privacy.dlp.v2.TransformationResultStatusOrBuilder>(
+ getStatusDetails(), getParentForChildren(), isClean());
+ statusDetails_ = null;
+ }
+ return statusDetailsBuilder_;
+ }
+
+ private long transformedBytes_;
+ /**
+ *
+ *
+ *
+ * The number of bytes that were transformed. If transformation was
+ * unsuccessful or did not take place because there was no content to
+ * transform, this will be zero.
+ *
+ *
+ * int64 transformed_bytes = 5;
+ *
+ * @return The transformedBytes.
+ */
+ @java.lang.Override
+ public long getTransformedBytes() {
+ return transformedBytes_;
+ }
+ /**
+ *
+ *
+ *
+ * The number of bytes that were transformed. If transformation was
+ * unsuccessful or did not take place because there was no content to
+ * transform, this will be zero.
+ *
+ *
+ * int64 transformed_bytes = 5;
+ *
+ * @param value The transformedBytes to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTransformedBytes(long value) {
+
+ transformedBytes_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The number of bytes that were transformed. If transformation was
+ * unsuccessful or did not take place because there was no content to
+ * transform, this will be zero.
+ *
+ *
+ * int64 transformed_bytes = 5;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearTransformedBytes() {
+
+ transformedBytes_ = 0L;
+ onChanged();
+ return this;
+ }
+
+ private com.google.privacy.dlp.v2.TransformationLocation transformationLocation_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.privacy.dlp.v2.TransformationLocation,
+ com.google.privacy.dlp.v2.TransformationLocation.Builder,
+ com.google.privacy.dlp.v2.TransformationLocationOrBuilder>
+ transformationLocationBuilder_;
+ /**
+ *
+ *
+ *
+ * The precise location of the transformed content in the original container.
+ *
+ *
+ * .google.privacy.dlp.v2.TransformationLocation transformation_location = 6;
+ *
+ * @return Whether the transformationLocation field is set.
+ */
+ public boolean hasTransformationLocation() {
+ return transformationLocationBuilder_ != null || transformationLocation_ != null;
+ }
+ /**
+ *
+ *
+ *
+ * The precise location of the transformed content in the original container.
+ *
+ *
+ * .google.privacy.dlp.v2.TransformationLocation transformation_location = 6;
+ *
+ * @return The transformationLocation.
+ */
+ public com.google.privacy.dlp.v2.TransformationLocation getTransformationLocation() {
+ if (transformationLocationBuilder_ == null) {
+ return transformationLocation_ == null
+ ? com.google.privacy.dlp.v2.TransformationLocation.getDefaultInstance()
+ : transformationLocation_;
+ } else {
+ return transformationLocationBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The precise location of the transformed content in the original container.
+ *
+ *
+ * .google.privacy.dlp.v2.TransformationLocation transformation_location = 6;
+ */
+ public Builder setTransformationLocation(
+ com.google.privacy.dlp.v2.TransformationLocation value) {
+ if (transformationLocationBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ transformationLocation_ = value;
+ onChanged();
+ } else {
+ transformationLocationBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The precise location of the transformed content in the original container.
+ *
+ *
+ * .google.privacy.dlp.v2.TransformationLocation transformation_location = 6;
+ */
+ public Builder setTransformationLocation(
+ com.google.privacy.dlp.v2.TransformationLocation.Builder builderForValue) {
+ if (transformationLocationBuilder_ == null) {
+ transformationLocation_ = builderForValue.build();
+ onChanged();
+ } else {
+ transformationLocationBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The precise location of the transformed content in the original container.
+ *
+ *
+ * .google.privacy.dlp.v2.TransformationLocation transformation_location = 6;
+ */
+ public Builder mergeTransformationLocation(
+ com.google.privacy.dlp.v2.TransformationLocation value) {
+ if (transformationLocationBuilder_ == null) {
+ if (transformationLocation_ != null) {
+ transformationLocation_ =
+ com.google.privacy.dlp.v2.TransformationLocation.newBuilder(transformationLocation_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ transformationLocation_ = value;
+ }
+ onChanged();
+ } else {
+ transformationLocationBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The precise location of the transformed content in the original container.
+ *
+ *
+ * .google.privacy.dlp.v2.TransformationLocation transformation_location = 6;
+ */
+ public Builder clearTransformationLocation() {
+ if (transformationLocationBuilder_ == null) {
+ transformationLocation_ = null;
+ onChanged();
+ } else {
+ transformationLocation_ = null;
+ transformationLocationBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The precise location of the transformed content in the original container.
+ *
+ *
+ * .google.privacy.dlp.v2.TransformationLocation transformation_location = 6;
+ */
+ public com.google.privacy.dlp.v2.TransformationLocation.Builder
+ getTransformationLocationBuilder() {
+
+ onChanged();
+ return getTransformationLocationFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ *
+ * The precise location of the transformed content in the original container.
+ *
+ *
+ * .google.privacy.dlp.v2.TransformationLocation transformation_location = 6;
+ */
+ public com.google.privacy.dlp.v2.TransformationLocationOrBuilder
+ getTransformationLocationOrBuilder() {
+ if (transformationLocationBuilder_ != null) {
+ return transformationLocationBuilder_.getMessageOrBuilder();
+ } else {
+ return transformationLocation_ == null
+ ? com.google.privacy.dlp.v2.TransformationLocation.getDefaultInstance()
+ : transformationLocation_;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The precise location of the transformed content in the original container.
+ *
+ *
+ * .google.privacy.dlp.v2.TransformationLocation transformation_location = 6;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.privacy.dlp.v2.TransformationLocation,
+ com.google.privacy.dlp.v2.TransformationLocation.Builder,
+ com.google.privacy.dlp.v2.TransformationLocationOrBuilder>
+ getTransformationLocationFieldBuilder() {
+ if (transformationLocationBuilder_ == null) {
+ transformationLocationBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.privacy.dlp.v2.TransformationLocation,
+ com.google.privacy.dlp.v2.TransformationLocation.Builder,
+ com.google.privacy.dlp.v2.TransformationLocationOrBuilder>(
+ getTransformationLocation(), getParentForChildren(), isClean());
+ transformationLocation_ = null;
+ }
+ return transformationLocationBuilder_;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.privacy.dlp.v2.TransformationDetails)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.TransformationDetails)
+ private static final com.google.privacy.dlp.v2.TransformationDetails DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.privacy.dlp.v2.TransformationDetails();
+ }
+
+ public static com.google.privacy.dlp.v2.TransformationDetails getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ * The name of the job that completed the transformation.
+ *
+ *
+ * string resource_name = 1;
+ *
+ * @return The resourceName.
+ */
+ java.lang.String getResourceName();
+ /**
+ *
+ *
+ *
+ * The name of the job that completed the transformation.
+ *
+ *
+ * string resource_name = 1;
+ *
+ * @return The bytes for resourceName.
+ */
+ com.google.protobuf.ByteString getResourceNameBytes();
+
+ /**
+ *
+ *
+ *
+ * The top level name of the container where the transformation is located
+ * (this will be the source file name or table name).
+ *
+ *
+ * string container_name = 2;
+ *
+ * @return The containerName.
+ */
+ java.lang.String getContainerName();
+ /**
+ *
+ *
+ *
+ * The top level name of the container where the transformation is located
+ * (this will be the source file name or table name).
+ *
+ *
+ * string container_name = 2;
+ *
+ * @return The bytes for containerName.
+ */
+ com.google.protobuf.ByteString getContainerNameBytes();
+
+ /**
+ *
+ *
+ *
+ * Description of transformation. This would only contain more than one
+ * element if there were multiple matching transformations and which one to
+ * apply was ambiguous. Not set for states that contain no transformation,
+ * currently only state that contains no transformation is
+ * TransformationResultStateType.METADATA_UNRETRIEVABLE.
+ *
+ *
+ * repeated .google.privacy.dlp.v2.TransformationDescription transformation = 3;
+ */
+ java.util.List
+ * Description of transformation. This would only contain more than one
+ * element if there were multiple matching transformations and which one to
+ * apply was ambiguous. Not set for states that contain no transformation,
+ * currently only state that contains no transformation is
+ * TransformationResultStateType.METADATA_UNRETRIEVABLE.
+ *
+ *
+ * repeated .google.privacy.dlp.v2.TransformationDescription transformation = 3;
+ */
+ com.google.privacy.dlp.v2.TransformationDescription getTransformation(int index);
+ /**
+ *
+ *
+ *
+ * Description of transformation. This would only contain more than one
+ * element if there were multiple matching transformations and which one to
+ * apply was ambiguous. Not set for states that contain no transformation,
+ * currently only state that contains no transformation is
+ * TransformationResultStateType.METADATA_UNRETRIEVABLE.
+ *
+ *
+ * repeated .google.privacy.dlp.v2.TransformationDescription transformation = 3;
+ */
+ int getTransformationCount();
+ /**
+ *
+ *
+ *
+ * Description of transformation. This would only contain more than one
+ * element if there were multiple matching transformations and which one to
+ * apply was ambiguous. Not set for states that contain no transformation,
+ * currently only state that contains no transformation is
+ * TransformationResultStateType.METADATA_UNRETRIEVABLE.
+ *
+ *
+ * repeated .google.privacy.dlp.v2.TransformationDescription transformation = 3;
+ */
+ java.util.List extends com.google.privacy.dlp.v2.TransformationDescriptionOrBuilder>
+ getTransformationOrBuilderList();
+ /**
+ *
+ *
+ *
+ * Description of transformation. This would only contain more than one
+ * element if there were multiple matching transformations and which one to
+ * apply was ambiguous. Not set for states that contain no transformation,
+ * currently only state that contains no transformation is
+ * TransformationResultStateType.METADATA_UNRETRIEVABLE.
+ *
+ *
+ * repeated .google.privacy.dlp.v2.TransformationDescription transformation = 3;
+ */
+ com.google.privacy.dlp.v2.TransformationDescriptionOrBuilder getTransformationOrBuilder(
+ int index);
+
+ /**
+ *
+ *
+ *
+ * Status of the transformation, if transformation was not successful, this
+ * will specify what caused it to fail, otherwise it will show that the
+ * transformation was successful.
+ *
+ *
+ * .google.privacy.dlp.v2.TransformationResultStatus status_details = 4;
+ *
+ * @return Whether the statusDetails field is set.
+ */
+ boolean hasStatusDetails();
+ /**
+ *
+ *
+ *
+ * Status of the transformation, if transformation was not successful, this
+ * will specify what caused it to fail, otherwise it will show that the
+ * transformation was successful.
+ *
+ *
+ * .google.privacy.dlp.v2.TransformationResultStatus status_details = 4;
+ *
+ * @return The statusDetails.
+ */
+ com.google.privacy.dlp.v2.TransformationResultStatus getStatusDetails();
+ /**
+ *
+ *
+ *
+ * Status of the transformation, if transformation was not successful, this
+ * will specify what caused it to fail, otherwise it will show that the
+ * transformation was successful.
+ *
+ *
+ * .google.privacy.dlp.v2.TransformationResultStatus status_details = 4;
+ */
+ com.google.privacy.dlp.v2.TransformationResultStatusOrBuilder getStatusDetailsOrBuilder();
+
+ /**
+ *
+ *
+ *
+ * The number of bytes that were transformed. If transformation was
+ * unsuccessful or did not take place because there was no content to
+ * transform, this will be zero.
+ *
+ *
+ * int64 transformed_bytes = 5;
+ *
+ * @return The transformedBytes.
+ */
+ long getTransformedBytes();
+
+ /**
+ *
+ *
+ *
+ * The precise location of the transformed content in the original container.
+ *
+ *
+ * .google.privacy.dlp.v2.TransformationLocation transformation_location = 6;
+ *
+ * @return Whether the transformationLocation field is set.
+ */
+ boolean hasTransformationLocation();
+ /**
+ *
+ *
+ *
+ * The precise location of the transformed content in the original container.
+ *
+ *
+ * .google.privacy.dlp.v2.TransformationLocation transformation_location = 6;
+ *
+ * @return The transformationLocation.
+ */
+ com.google.privacy.dlp.v2.TransformationLocation getTransformationLocation();
+ /**
+ *
+ *
+ *
+ * The precise location of the transformed content in the original container.
+ *
+ *
+ * .google.privacy.dlp.v2.TransformationLocation transformation_location = 6;
+ */
+ com.google.privacy.dlp.v2.TransformationLocationOrBuilder getTransformationLocationOrBuilder();
+}
diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TransformationDetailsStorageConfig.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TransformationDetailsStorageConfig.java
new file mode 100644
index 000000000000..0e2e53a6d5e8
--- /dev/null
+++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TransformationDetailsStorageConfig.java
@@ -0,0 +1,900 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/privacy/dlp/v2/dlp.proto
+
+package com.google.privacy.dlp.v2;
+
+/**
+ *
+ *
+ *
+ * Config for storing transformation details.
+ *
+ *
+ * Protobuf type {@code google.privacy.dlp.v2.TransformationDetailsStorageConfig}
+ */
+public final class TransformationDetailsStorageConfig extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2.TransformationDetailsStorageConfig)
+ TransformationDetailsStorageConfigOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use TransformationDetailsStorageConfig.newBuilder() to construct.
+ private TransformationDetailsStorageConfig(
+ com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private TransformationDetailsStorageConfig() {}
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new TransformationDetailsStorageConfig();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private TransformationDetailsStorageConfig(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ com.google.privacy.dlp.v2.BigQueryTable.Builder subBuilder = null;
+ if (typeCase_ == 1) {
+ subBuilder = ((com.google.privacy.dlp.v2.BigQueryTable) type_).toBuilder();
+ }
+ type_ =
+ input.readMessage(
+ com.google.privacy.dlp.v2.BigQueryTable.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom((com.google.privacy.dlp.v2.BigQueryTable) type_);
+ type_ = subBuilder.buildPartial();
+ }
+ typeCase_ = 1;
+ break;
+ }
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.privacy.dlp.v2.DlpProto
+ .internal_static_google_privacy_dlp_v2_TransformationDetailsStorageConfig_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.privacy.dlp.v2.DlpProto
+ .internal_static_google_privacy_dlp_v2_TransformationDetailsStorageConfig_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.privacy.dlp.v2.TransformationDetailsStorageConfig.class,
+ com.google.privacy.dlp.v2.TransformationDetailsStorageConfig.Builder.class);
+ }
+
+ private int typeCase_ = 0;
+ private java.lang.Object type_;
+
+ public enum TypeCase
+ implements
+ com.google.protobuf.Internal.EnumLite,
+ com.google.protobuf.AbstractMessage.InternalOneOfEnum {
+ TABLE(1),
+ TYPE_NOT_SET(0);
+ private final int value;
+
+ private TypeCase(int value) {
+ this.value = value;
+ }
+ /**
+ * @param value The number of the enum to look for.
+ * @return The enum associated with the given number.
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
+ public static TypeCase valueOf(int value) {
+ return forNumber(value);
+ }
+
+ public static TypeCase forNumber(int value) {
+ switch (value) {
+ case 1:
+ return TABLE;
+ case 0:
+ return TYPE_NOT_SET;
+ default:
+ return null;
+ }
+ }
+
+ public int getNumber() {
+ return this.value;
+ }
+ };
+
+ public TypeCase getTypeCase() {
+ return TypeCase.forNumber(typeCase_);
+ }
+
+ public static final int TABLE_FIELD_NUMBER = 1;
+ /**
+ *
+ *
+ *
+ * The BigQuery table in which to store the output. This may be an existing
+ * table or in a new table in an existing dataset.
+ * If table_id is not set a new one will be generated for you with the
+ * following format:
+ * dlp_googleapis_transformation_details_yyyy_mm_dd_[dlp_job_id]. Pacific
+ * time zone will be used for generating the date details.
+ *
+ *
+ * .google.privacy.dlp.v2.BigQueryTable table = 1;
+ *
+ * @return Whether the table field is set.
+ */
+ @java.lang.Override
+ public boolean hasTable() {
+ return typeCase_ == 1;
+ }
+ /**
+ *
+ *
+ *
+ * The BigQuery table in which to store the output. This may be an existing
+ * table or in a new table in an existing dataset.
+ * If table_id is not set a new one will be generated for you with the
+ * following format:
+ * dlp_googleapis_transformation_details_yyyy_mm_dd_[dlp_job_id]. Pacific
+ * time zone will be used for generating the date details.
+ *
+ *
+ * .google.privacy.dlp.v2.BigQueryTable table = 1;
+ *
+ * @return The table.
+ */
+ @java.lang.Override
+ public com.google.privacy.dlp.v2.BigQueryTable getTable() {
+ if (typeCase_ == 1) {
+ return (com.google.privacy.dlp.v2.BigQueryTable) type_;
+ }
+ return com.google.privacy.dlp.v2.BigQueryTable.getDefaultInstance();
+ }
+ /**
+ *
+ *
+ *
+ * The BigQuery table in which to store the output. This may be an existing
+ * table or in a new table in an existing dataset.
+ * If table_id is not set a new one will be generated for you with the
+ * following format:
+ * dlp_googleapis_transformation_details_yyyy_mm_dd_[dlp_job_id]. Pacific
+ * time zone will be used for generating the date details.
+ *
+ *
+ * .google.privacy.dlp.v2.BigQueryTable table = 1;
+ */
+ @java.lang.Override
+ public com.google.privacy.dlp.v2.BigQueryTableOrBuilder getTableOrBuilder() {
+ if (typeCase_ == 1) {
+ return (com.google.privacy.dlp.v2.BigQueryTable) type_;
+ }
+ return com.google.privacy.dlp.v2.BigQueryTable.getDefaultInstance();
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (typeCase_ == 1) {
+ output.writeMessage(1, (com.google.privacy.dlp.v2.BigQueryTable) type_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (typeCase_ == 1) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 1, (com.google.privacy.dlp.v2.BigQueryTable) type_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.privacy.dlp.v2.TransformationDetailsStorageConfig)) {
+ return super.equals(obj);
+ }
+ com.google.privacy.dlp.v2.TransformationDetailsStorageConfig other =
+ (com.google.privacy.dlp.v2.TransformationDetailsStorageConfig) obj;
+
+ if (!getTypeCase().equals(other.getTypeCase())) return false;
+ switch (typeCase_) {
+ case 1:
+ if (!getTable().equals(other.getTable())) return false;
+ break;
+ case 0:
+ default:
+ }
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ switch (typeCase_) {
+ case 1:
+ hash = (37 * hash) + TABLE_FIELD_NUMBER;
+ hash = (53 * hash) + getTable().hashCode();
+ break;
+ case 0:
+ default:
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.privacy.dlp.v2.TransformationDetailsStorageConfig parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.privacy.dlp.v2.TransformationDetailsStorageConfig parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.privacy.dlp.v2.TransformationDetailsStorageConfig parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.privacy.dlp.v2.TransformationDetailsStorageConfig parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.privacy.dlp.v2.TransformationDetailsStorageConfig parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.privacy.dlp.v2.TransformationDetailsStorageConfig parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.privacy.dlp.v2.TransformationDetailsStorageConfig parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.privacy.dlp.v2.TransformationDetailsStorageConfig parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.privacy.dlp.v2.TransformationDetailsStorageConfig parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.privacy.dlp.v2.TransformationDetailsStorageConfig parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.privacy.dlp.v2.TransformationDetailsStorageConfig parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.privacy.dlp.v2.TransformationDetailsStorageConfig parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(
+ com.google.privacy.dlp.v2.TransformationDetailsStorageConfig prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ *
+ * Config for storing transformation details.
+ *
+ *
+ * Protobuf type {@code google.privacy.dlp.v2.TransformationDetailsStorageConfig}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * The BigQuery table in which to store the output. This may be an existing
+ * table or in a new table in an existing dataset.
+ * If table_id is not set a new one will be generated for you with the
+ * following format:
+ * dlp_googleapis_transformation_details_yyyy_mm_dd_[dlp_job_id]. Pacific
+ * time zone will be used for generating the date details.
+ *
+ *
+ * .google.privacy.dlp.v2.BigQueryTable table = 1;
+ *
+ * @return Whether the table field is set.
+ */
+ @java.lang.Override
+ public boolean hasTable() {
+ return typeCase_ == 1;
+ }
+ /**
+ *
+ *
+ *
+ * The BigQuery table in which to store the output. This may be an existing
+ * table or in a new table in an existing dataset.
+ * If table_id is not set a new one will be generated for you with the
+ * following format:
+ * dlp_googleapis_transformation_details_yyyy_mm_dd_[dlp_job_id]. Pacific
+ * time zone will be used for generating the date details.
+ *
+ *
+ * .google.privacy.dlp.v2.BigQueryTable table = 1;
+ *
+ * @return The table.
+ */
+ @java.lang.Override
+ public com.google.privacy.dlp.v2.BigQueryTable getTable() {
+ if (tableBuilder_ == null) {
+ if (typeCase_ == 1) {
+ return (com.google.privacy.dlp.v2.BigQueryTable) type_;
+ }
+ return com.google.privacy.dlp.v2.BigQueryTable.getDefaultInstance();
+ } else {
+ if (typeCase_ == 1) {
+ return tableBuilder_.getMessage();
+ }
+ return com.google.privacy.dlp.v2.BigQueryTable.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The BigQuery table in which to store the output. This may be an existing
+ * table or in a new table in an existing dataset.
+ * If table_id is not set a new one will be generated for you with the
+ * following format:
+ * dlp_googleapis_transformation_details_yyyy_mm_dd_[dlp_job_id]. Pacific
+ * time zone will be used for generating the date details.
+ *
+ *
+ * .google.privacy.dlp.v2.BigQueryTable table = 1;
+ */
+ public Builder setTable(com.google.privacy.dlp.v2.BigQueryTable value) {
+ if (tableBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ type_ = value;
+ onChanged();
+ } else {
+ tableBuilder_.setMessage(value);
+ }
+ typeCase_ = 1;
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The BigQuery table in which to store the output. This may be an existing
+ * table or in a new table in an existing dataset.
+ * If table_id is not set a new one will be generated for you with the
+ * following format:
+ * dlp_googleapis_transformation_details_yyyy_mm_dd_[dlp_job_id]. Pacific
+ * time zone will be used for generating the date details.
+ *
+ *
+ * .google.privacy.dlp.v2.BigQueryTable table = 1;
+ */
+ public Builder setTable(com.google.privacy.dlp.v2.BigQueryTable.Builder builderForValue) {
+ if (tableBuilder_ == null) {
+ type_ = builderForValue.build();
+ onChanged();
+ } else {
+ tableBuilder_.setMessage(builderForValue.build());
+ }
+ typeCase_ = 1;
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The BigQuery table in which to store the output. This may be an existing
+ * table or in a new table in an existing dataset.
+ * If table_id is not set a new one will be generated for you with the
+ * following format:
+ * dlp_googleapis_transformation_details_yyyy_mm_dd_[dlp_job_id]. Pacific
+ * time zone will be used for generating the date details.
+ *
+ *
+ * .google.privacy.dlp.v2.BigQueryTable table = 1;
+ */
+ public Builder mergeTable(com.google.privacy.dlp.v2.BigQueryTable value) {
+ if (tableBuilder_ == null) {
+ if (typeCase_ == 1
+ && type_ != com.google.privacy.dlp.v2.BigQueryTable.getDefaultInstance()) {
+ type_ =
+ com.google.privacy.dlp.v2.BigQueryTable.newBuilder(
+ (com.google.privacy.dlp.v2.BigQueryTable) type_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ type_ = value;
+ }
+ onChanged();
+ } else {
+ if (typeCase_ == 1) {
+ tableBuilder_.mergeFrom(value);
+ } else {
+ tableBuilder_.setMessage(value);
+ }
+ }
+ typeCase_ = 1;
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The BigQuery table in which to store the output. This may be an existing
+ * table or in a new table in an existing dataset.
+ * If table_id is not set a new one will be generated for you with the
+ * following format:
+ * dlp_googleapis_transformation_details_yyyy_mm_dd_[dlp_job_id]. Pacific
+ * time zone will be used for generating the date details.
+ *
+ *
+ * .google.privacy.dlp.v2.BigQueryTable table = 1;
+ */
+ public Builder clearTable() {
+ if (tableBuilder_ == null) {
+ if (typeCase_ == 1) {
+ typeCase_ = 0;
+ type_ = null;
+ onChanged();
+ }
+ } else {
+ if (typeCase_ == 1) {
+ typeCase_ = 0;
+ type_ = null;
+ }
+ tableBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The BigQuery table in which to store the output. This may be an existing
+ * table or in a new table in an existing dataset.
+ * If table_id is not set a new one will be generated for you with the
+ * following format:
+ * dlp_googleapis_transformation_details_yyyy_mm_dd_[dlp_job_id]. Pacific
+ * time zone will be used for generating the date details.
+ *
+ *
+ * .google.privacy.dlp.v2.BigQueryTable table = 1;
+ */
+ public com.google.privacy.dlp.v2.BigQueryTable.Builder getTableBuilder() {
+ return getTableFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ *
+ * The BigQuery table in which to store the output. This may be an existing
+ * table or in a new table in an existing dataset.
+ * If table_id is not set a new one will be generated for you with the
+ * following format:
+ * dlp_googleapis_transformation_details_yyyy_mm_dd_[dlp_job_id]. Pacific
+ * time zone will be used for generating the date details.
+ *
+ *
+ * .google.privacy.dlp.v2.BigQueryTable table = 1;
+ */
+ @java.lang.Override
+ public com.google.privacy.dlp.v2.BigQueryTableOrBuilder getTableOrBuilder() {
+ if ((typeCase_ == 1) && (tableBuilder_ != null)) {
+ return tableBuilder_.getMessageOrBuilder();
+ } else {
+ if (typeCase_ == 1) {
+ return (com.google.privacy.dlp.v2.BigQueryTable) type_;
+ }
+ return com.google.privacy.dlp.v2.BigQueryTable.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The BigQuery table in which to store the output. This may be an existing
+ * table or in a new table in an existing dataset.
+ * If table_id is not set a new one will be generated for you with the
+ * following format:
+ * dlp_googleapis_transformation_details_yyyy_mm_dd_[dlp_job_id]. Pacific
+ * time zone will be used for generating the date details.
+ *
+ *
+ * .google.privacy.dlp.v2.BigQueryTable table = 1;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.privacy.dlp.v2.BigQueryTable,
+ com.google.privacy.dlp.v2.BigQueryTable.Builder,
+ com.google.privacy.dlp.v2.BigQueryTableOrBuilder>
+ getTableFieldBuilder() {
+ if (tableBuilder_ == null) {
+ if (!(typeCase_ == 1)) {
+ type_ = com.google.privacy.dlp.v2.BigQueryTable.getDefaultInstance();
+ }
+ tableBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.privacy.dlp.v2.BigQueryTable,
+ com.google.privacy.dlp.v2.BigQueryTable.Builder,
+ com.google.privacy.dlp.v2.BigQueryTableOrBuilder>(
+ (com.google.privacy.dlp.v2.BigQueryTable) type_, getParentForChildren(), isClean());
+ type_ = null;
+ }
+ typeCase_ = 1;
+ onChanged();
+ ;
+ return tableBuilder_;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.privacy.dlp.v2.TransformationDetailsStorageConfig)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.TransformationDetailsStorageConfig)
+ private static final com.google.privacy.dlp.v2.TransformationDetailsStorageConfig
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.privacy.dlp.v2.TransformationDetailsStorageConfig();
+ }
+
+ public static com.google.privacy.dlp.v2.TransformationDetailsStorageConfig getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ * The BigQuery table in which to store the output. This may be an existing
+ * table or in a new table in an existing dataset.
+ * If table_id is not set a new one will be generated for you with the
+ * following format:
+ * dlp_googleapis_transformation_details_yyyy_mm_dd_[dlp_job_id]. Pacific
+ * time zone will be used for generating the date details.
+ *
+ *
+ * .google.privacy.dlp.v2.BigQueryTable table = 1;
+ *
+ * @return Whether the table field is set.
+ */
+ boolean hasTable();
+ /**
+ *
+ *
+ *
+ * The BigQuery table in which to store the output. This may be an existing
+ * table or in a new table in an existing dataset.
+ * If table_id is not set a new one will be generated for you with the
+ * following format:
+ * dlp_googleapis_transformation_details_yyyy_mm_dd_[dlp_job_id]. Pacific
+ * time zone will be used for generating the date details.
+ *
+ *
+ * .google.privacy.dlp.v2.BigQueryTable table = 1;
+ *
+ * @return The table.
+ */
+ com.google.privacy.dlp.v2.BigQueryTable getTable();
+ /**
+ *
+ *
+ *
+ * The BigQuery table in which to store the output. This may be an existing
+ * table or in a new table in an existing dataset.
+ * If table_id is not set a new one will be generated for you with the
+ * following format:
+ * dlp_googleapis_transformation_details_yyyy_mm_dd_[dlp_job_id]. Pacific
+ * time zone will be used for generating the date details.
+ *
+ *
+ * .google.privacy.dlp.v2.BigQueryTable table = 1;
+ */
+ com.google.privacy.dlp.v2.BigQueryTableOrBuilder getTableOrBuilder();
+
+ public com.google.privacy.dlp.v2.TransformationDetailsStorageConfig.TypeCase getTypeCase();
+}
diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TransformationLocation.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TransformationLocation.java
new file mode 100644
index 000000000000..71f51794cae0
--- /dev/null
+++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TransformationLocation.java
@@ -0,0 +1,1281 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/privacy/dlp/v2/dlp.proto
+
+package com.google.privacy.dlp.v2;
+
+/**
+ *
+ *
+ *
+ * Specifies the location of a transformation.
+ *
+ *
+ * Protobuf type {@code google.privacy.dlp.v2.TransformationLocation}
+ */
+public final class TransformationLocation extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2.TransformationLocation)
+ TransformationLocationOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use TransformationLocation.newBuilder() to construct.
+ private TransformationLocation(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private TransformationLocation() {
+ containerType_ = 0;
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new TransformationLocation();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private TransformationLocation(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+ locationTypeCase_ = 1;
+ locationType_ = s;
+ break;
+ }
+ case 18:
+ {
+ com.google.privacy.dlp.v2.RecordTransformation.Builder subBuilder = null;
+ if (locationTypeCase_ == 2) {
+ subBuilder =
+ ((com.google.privacy.dlp.v2.RecordTransformation) locationType_).toBuilder();
+ }
+ locationType_ =
+ input.readMessage(
+ com.google.privacy.dlp.v2.RecordTransformation.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(
+ (com.google.privacy.dlp.v2.RecordTransformation) locationType_);
+ locationType_ = subBuilder.buildPartial();
+ }
+ locationTypeCase_ = 2;
+ break;
+ }
+ case 24:
+ {
+ int rawValue = input.readEnum();
+
+ containerType_ = rawValue;
+ break;
+ }
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.privacy.dlp.v2.DlpProto
+ .internal_static_google_privacy_dlp_v2_TransformationLocation_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.privacy.dlp.v2.DlpProto
+ .internal_static_google_privacy_dlp_v2_TransformationLocation_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.privacy.dlp.v2.TransformationLocation.class,
+ com.google.privacy.dlp.v2.TransformationLocation.Builder.class);
+ }
+
+ private int locationTypeCase_ = 0;
+ private java.lang.Object locationType_;
+
+ public enum LocationTypeCase
+ implements
+ com.google.protobuf.Internal.EnumLite,
+ com.google.protobuf.AbstractMessage.InternalOneOfEnum {
+ FINDING_ID(1),
+ RECORD_TRANSFORMATION(2),
+ LOCATIONTYPE_NOT_SET(0);
+ private final int value;
+
+ private LocationTypeCase(int value) {
+ this.value = value;
+ }
+ /**
+ * @param value The number of the enum to look for.
+ * @return The enum associated with the given number.
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
+ public static LocationTypeCase valueOf(int value) {
+ return forNumber(value);
+ }
+
+ public static LocationTypeCase forNumber(int value) {
+ switch (value) {
+ case 1:
+ return FINDING_ID;
+ case 2:
+ return RECORD_TRANSFORMATION;
+ case 0:
+ return LOCATIONTYPE_NOT_SET;
+ default:
+ return null;
+ }
+ }
+
+ public int getNumber() {
+ return this.value;
+ }
+ };
+
+ public LocationTypeCase getLocationTypeCase() {
+ return LocationTypeCase.forNumber(locationTypeCase_);
+ }
+
+ public static final int FINDING_ID_FIELD_NUMBER = 1;
+ /**
+ *
+ *
+ *
+ * For infotype transformations, link to the corresponding findings ID so
+ * that location information does not need to be duplicated. Each findings
+ * ID correlates to an entry in the findings output table, this table only
+ * gets created when users specify to save findings (add the save findings
+ * action to the request).
+ *
+ *
+ * string finding_id = 1;
+ *
+ * @return Whether the findingId field is set.
+ */
+ public boolean hasFindingId() {
+ return locationTypeCase_ == 1;
+ }
+ /**
+ *
+ *
+ *
+ * For infotype transformations, link to the corresponding findings ID so
+ * that location information does not need to be duplicated. Each findings
+ * ID correlates to an entry in the findings output table, this table only
+ * gets created when users specify to save findings (add the save findings
+ * action to the request).
+ *
+ *
+ * string finding_id = 1;
+ *
+ * @return The findingId.
+ */
+ public java.lang.String getFindingId() {
+ java.lang.Object ref = "";
+ if (locationTypeCase_ == 1) {
+ ref = locationType_;
+ }
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (locationTypeCase_ == 1) {
+ locationType_ = s;
+ }
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * For infotype transformations, link to the corresponding findings ID so
+ * that location information does not need to be duplicated. Each findings
+ * ID correlates to an entry in the findings output table, this table only
+ * gets created when users specify to save findings (add the save findings
+ * action to the request).
+ *
+ *
+ * string finding_id = 1;
+ *
+ * @return The bytes for findingId.
+ */
+ public com.google.protobuf.ByteString getFindingIdBytes() {
+ java.lang.Object ref = "";
+ if (locationTypeCase_ == 1) {
+ ref = locationType_;
+ }
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ if (locationTypeCase_ == 1) {
+ locationType_ = b;
+ }
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int RECORD_TRANSFORMATION_FIELD_NUMBER = 2;
+ /**
+ *
+ *
+ *
+ * For record transformations, provide a field and container information.
+ *
+ *
+ * .google.privacy.dlp.v2.RecordTransformation record_transformation = 2;
+ *
+ * @return Whether the recordTransformation field is set.
+ */
+ @java.lang.Override
+ public boolean hasRecordTransformation() {
+ return locationTypeCase_ == 2;
+ }
+ /**
+ *
+ *
+ *
+ * For record transformations, provide a field and container information.
+ *
+ *
+ * .google.privacy.dlp.v2.RecordTransformation record_transformation = 2;
+ *
+ * @return The recordTransformation.
+ */
+ @java.lang.Override
+ public com.google.privacy.dlp.v2.RecordTransformation getRecordTransformation() {
+ if (locationTypeCase_ == 2) {
+ return (com.google.privacy.dlp.v2.RecordTransformation) locationType_;
+ }
+ return com.google.privacy.dlp.v2.RecordTransformation.getDefaultInstance();
+ }
+ /**
+ *
+ *
+ *
+ * For record transformations, provide a field and container information.
+ *
+ *
+ * .google.privacy.dlp.v2.RecordTransformation record_transformation = 2;
+ */
+ @java.lang.Override
+ public com.google.privacy.dlp.v2.RecordTransformationOrBuilder
+ getRecordTransformationOrBuilder() {
+ if (locationTypeCase_ == 2) {
+ return (com.google.privacy.dlp.v2.RecordTransformation) locationType_;
+ }
+ return com.google.privacy.dlp.v2.RecordTransformation.getDefaultInstance();
+ }
+
+ public static final int CONTAINER_TYPE_FIELD_NUMBER = 3;
+ private int containerType_;
+ /**
+ *
+ *
+ *
+ * Information about the functionality of the container where this finding
+ * occurred, if available.
+ *
+ *
+ * .google.privacy.dlp.v2.TransformationContainerType container_type = 3;
+ *
+ * @return The enum numeric value on the wire for containerType.
+ */
+ @java.lang.Override
+ public int getContainerTypeValue() {
+ return containerType_;
+ }
+ /**
+ *
+ *
+ *
+ * Information about the functionality of the container where this finding
+ * occurred, if available.
+ *
+ *
+ * .google.privacy.dlp.v2.TransformationContainerType container_type = 3;
+ *
+ * @return The containerType.
+ */
+ @java.lang.Override
+ public com.google.privacy.dlp.v2.TransformationContainerType getContainerType() {
+ @SuppressWarnings("deprecation")
+ com.google.privacy.dlp.v2.TransformationContainerType result =
+ com.google.privacy.dlp.v2.TransformationContainerType.valueOf(containerType_);
+ return result == null
+ ? com.google.privacy.dlp.v2.TransformationContainerType.UNRECOGNIZED
+ : result;
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (locationTypeCase_ == 1) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, locationType_);
+ }
+ if (locationTypeCase_ == 2) {
+ output.writeMessage(2, (com.google.privacy.dlp.v2.RecordTransformation) locationType_);
+ }
+ if (containerType_
+ != com.google.privacy.dlp.v2.TransformationContainerType.TRANSFORM_UNKNOWN_CONTAINER
+ .getNumber()) {
+ output.writeEnum(3, containerType_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (locationTypeCase_ == 1) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, locationType_);
+ }
+ if (locationTypeCase_ == 2) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 2, (com.google.privacy.dlp.v2.RecordTransformation) locationType_);
+ }
+ if (containerType_
+ != com.google.privacy.dlp.v2.TransformationContainerType.TRANSFORM_UNKNOWN_CONTAINER
+ .getNumber()) {
+ size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, containerType_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.privacy.dlp.v2.TransformationLocation)) {
+ return super.equals(obj);
+ }
+ com.google.privacy.dlp.v2.TransformationLocation other =
+ (com.google.privacy.dlp.v2.TransformationLocation) obj;
+
+ if (containerType_ != other.containerType_) return false;
+ if (!getLocationTypeCase().equals(other.getLocationTypeCase())) return false;
+ switch (locationTypeCase_) {
+ case 1:
+ if (!getFindingId().equals(other.getFindingId())) return false;
+ break;
+ case 2:
+ if (!getRecordTransformation().equals(other.getRecordTransformation())) return false;
+ break;
+ case 0:
+ default:
+ }
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + CONTAINER_TYPE_FIELD_NUMBER;
+ hash = (53 * hash) + containerType_;
+ switch (locationTypeCase_) {
+ case 1:
+ hash = (37 * hash) + FINDING_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getFindingId().hashCode();
+ break;
+ case 2:
+ hash = (37 * hash) + RECORD_TRANSFORMATION_FIELD_NUMBER;
+ hash = (53 * hash) + getRecordTransformation().hashCode();
+ break;
+ case 0:
+ default:
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.privacy.dlp.v2.TransformationLocation parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.privacy.dlp.v2.TransformationLocation parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.privacy.dlp.v2.TransformationLocation parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.privacy.dlp.v2.TransformationLocation parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.privacy.dlp.v2.TransformationLocation parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.privacy.dlp.v2.TransformationLocation parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.privacy.dlp.v2.TransformationLocation parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.privacy.dlp.v2.TransformationLocation parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.privacy.dlp.v2.TransformationLocation parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.privacy.dlp.v2.TransformationLocation parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.privacy.dlp.v2.TransformationLocation parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.privacy.dlp.v2.TransformationLocation parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(com.google.privacy.dlp.v2.TransformationLocation prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ *
+ * Specifies the location of a transformation.
+ *
+ *
+ * Protobuf type {@code google.privacy.dlp.v2.TransformationLocation}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * For infotype transformations, link to the corresponding findings ID so
+ * that location information does not need to be duplicated. Each findings
+ * ID correlates to an entry in the findings output table, this table only
+ * gets created when users specify to save findings (add the save findings
+ * action to the request).
+ *
+ *
+ * string finding_id = 1;
+ *
+ * @return Whether the findingId field is set.
+ */
+ @java.lang.Override
+ public boolean hasFindingId() {
+ return locationTypeCase_ == 1;
+ }
+ /**
+ *
+ *
+ *
+ * For infotype transformations, link to the corresponding findings ID so
+ * that location information does not need to be duplicated. Each findings
+ * ID correlates to an entry in the findings output table, this table only
+ * gets created when users specify to save findings (add the save findings
+ * action to the request).
+ *
+ *
+ * string finding_id = 1;
+ *
+ * @return The findingId.
+ */
+ @java.lang.Override
+ public java.lang.String getFindingId() {
+ java.lang.Object ref = "";
+ if (locationTypeCase_ == 1) {
+ ref = locationType_;
+ }
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (locationTypeCase_ == 1) {
+ locationType_ = s;
+ }
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * For infotype transformations, link to the corresponding findings ID so
+ * that location information does not need to be duplicated. Each findings
+ * ID correlates to an entry in the findings output table, this table only
+ * gets created when users specify to save findings (add the save findings
+ * action to the request).
+ *
+ *
+ * string finding_id = 1;
+ *
+ * @return The bytes for findingId.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getFindingIdBytes() {
+ java.lang.Object ref = "";
+ if (locationTypeCase_ == 1) {
+ ref = locationType_;
+ }
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ if (locationTypeCase_ == 1) {
+ locationType_ = b;
+ }
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * For infotype transformations, link to the corresponding findings ID so
+ * that location information does not need to be duplicated. Each findings
+ * ID correlates to an entry in the findings output table, this table only
+ * gets created when users specify to save findings (add the save findings
+ * action to the request).
+ *
+ *
+ * string finding_id = 1;
+ *
+ * @param value The findingId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setFindingId(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ locationTypeCase_ = 1;
+ locationType_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * For infotype transformations, link to the corresponding findings ID so
+ * that location information does not need to be duplicated. Each findings
+ * ID correlates to an entry in the findings output table, this table only
+ * gets created when users specify to save findings (add the save findings
+ * action to the request).
+ *
+ *
+ * string finding_id = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearFindingId() {
+ if (locationTypeCase_ == 1) {
+ locationTypeCase_ = 0;
+ locationType_ = null;
+ onChanged();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * For infotype transformations, link to the corresponding findings ID so
+ * that location information does not need to be duplicated. Each findings
+ * ID correlates to an entry in the findings output table, this table only
+ * gets created when users specify to save findings (add the save findings
+ * action to the request).
+ *
+ *
+ * string finding_id = 1;
+ *
+ * @param value The bytes for findingId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setFindingIdBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ locationTypeCase_ = 1;
+ locationType_ = value;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.privacy.dlp.v2.RecordTransformation,
+ com.google.privacy.dlp.v2.RecordTransformation.Builder,
+ com.google.privacy.dlp.v2.RecordTransformationOrBuilder>
+ recordTransformationBuilder_;
+ /**
+ *
+ *
+ *
+ * For record transformations, provide a field and container information.
+ *
+ *
+ * .google.privacy.dlp.v2.RecordTransformation record_transformation = 2;
+ *
+ * @return Whether the recordTransformation field is set.
+ */
+ @java.lang.Override
+ public boolean hasRecordTransformation() {
+ return locationTypeCase_ == 2;
+ }
+ /**
+ *
+ *
+ *
+ * For record transformations, provide a field and container information.
+ *
+ *
+ * .google.privacy.dlp.v2.RecordTransformation record_transformation = 2;
+ *
+ * @return The recordTransformation.
+ */
+ @java.lang.Override
+ public com.google.privacy.dlp.v2.RecordTransformation getRecordTransformation() {
+ if (recordTransformationBuilder_ == null) {
+ if (locationTypeCase_ == 2) {
+ return (com.google.privacy.dlp.v2.RecordTransformation) locationType_;
+ }
+ return com.google.privacy.dlp.v2.RecordTransformation.getDefaultInstance();
+ } else {
+ if (locationTypeCase_ == 2) {
+ return recordTransformationBuilder_.getMessage();
+ }
+ return com.google.privacy.dlp.v2.RecordTransformation.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * For record transformations, provide a field and container information.
+ *
+ *
+ * .google.privacy.dlp.v2.RecordTransformation record_transformation = 2;
+ */
+ public Builder setRecordTransformation(com.google.privacy.dlp.v2.RecordTransformation value) {
+ if (recordTransformationBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ locationType_ = value;
+ onChanged();
+ } else {
+ recordTransformationBuilder_.setMessage(value);
+ }
+ locationTypeCase_ = 2;
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * For record transformations, provide a field and container information.
+ *
+ *
+ * .google.privacy.dlp.v2.RecordTransformation record_transformation = 2;
+ */
+ public Builder setRecordTransformation(
+ com.google.privacy.dlp.v2.RecordTransformation.Builder builderForValue) {
+ if (recordTransformationBuilder_ == null) {
+ locationType_ = builderForValue.build();
+ onChanged();
+ } else {
+ recordTransformationBuilder_.setMessage(builderForValue.build());
+ }
+ locationTypeCase_ = 2;
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * For record transformations, provide a field and container information.
+ *
+ *
+ * .google.privacy.dlp.v2.RecordTransformation record_transformation = 2;
+ */
+ public Builder mergeRecordTransformation(com.google.privacy.dlp.v2.RecordTransformation value) {
+ if (recordTransformationBuilder_ == null) {
+ if (locationTypeCase_ == 2
+ && locationType_
+ != com.google.privacy.dlp.v2.RecordTransformation.getDefaultInstance()) {
+ locationType_ =
+ com.google.privacy.dlp.v2.RecordTransformation.newBuilder(
+ (com.google.privacy.dlp.v2.RecordTransformation) locationType_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ locationType_ = value;
+ }
+ onChanged();
+ } else {
+ if (locationTypeCase_ == 2) {
+ recordTransformationBuilder_.mergeFrom(value);
+ } else {
+ recordTransformationBuilder_.setMessage(value);
+ }
+ }
+ locationTypeCase_ = 2;
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * For record transformations, provide a field and container information.
+ *
+ *
+ * .google.privacy.dlp.v2.RecordTransformation record_transformation = 2;
+ */
+ public Builder clearRecordTransformation() {
+ if (recordTransformationBuilder_ == null) {
+ if (locationTypeCase_ == 2) {
+ locationTypeCase_ = 0;
+ locationType_ = null;
+ onChanged();
+ }
+ } else {
+ if (locationTypeCase_ == 2) {
+ locationTypeCase_ = 0;
+ locationType_ = null;
+ }
+ recordTransformationBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * For record transformations, provide a field and container information.
+ *
+ *
+ * .google.privacy.dlp.v2.RecordTransformation record_transformation = 2;
+ */
+ public com.google.privacy.dlp.v2.RecordTransformation.Builder getRecordTransformationBuilder() {
+ return getRecordTransformationFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ *
+ * For record transformations, provide a field and container information.
+ *
+ *
+ * .google.privacy.dlp.v2.RecordTransformation record_transformation = 2;
+ */
+ @java.lang.Override
+ public com.google.privacy.dlp.v2.RecordTransformationOrBuilder
+ getRecordTransformationOrBuilder() {
+ if ((locationTypeCase_ == 2) && (recordTransformationBuilder_ != null)) {
+ return recordTransformationBuilder_.getMessageOrBuilder();
+ } else {
+ if (locationTypeCase_ == 2) {
+ return (com.google.privacy.dlp.v2.RecordTransformation) locationType_;
+ }
+ return com.google.privacy.dlp.v2.RecordTransformation.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * For record transformations, provide a field and container information.
+ *
+ *
+ * .google.privacy.dlp.v2.RecordTransformation record_transformation = 2;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.privacy.dlp.v2.RecordTransformation,
+ com.google.privacy.dlp.v2.RecordTransformation.Builder,
+ com.google.privacy.dlp.v2.RecordTransformationOrBuilder>
+ getRecordTransformationFieldBuilder() {
+ if (recordTransformationBuilder_ == null) {
+ if (!(locationTypeCase_ == 2)) {
+ locationType_ = com.google.privacy.dlp.v2.RecordTransformation.getDefaultInstance();
+ }
+ recordTransformationBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.privacy.dlp.v2.RecordTransformation,
+ com.google.privacy.dlp.v2.RecordTransformation.Builder,
+ com.google.privacy.dlp.v2.RecordTransformationOrBuilder>(
+ (com.google.privacy.dlp.v2.RecordTransformation) locationType_,
+ getParentForChildren(),
+ isClean());
+ locationType_ = null;
+ }
+ locationTypeCase_ = 2;
+ onChanged();
+ ;
+ return recordTransformationBuilder_;
+ }
+
+ private int containerType_ = 0;
+ /**
+ *
+ *
+ *
+ * Information about the functionality of the container where this finding
+ * occurred, if available.
+ *
+ *
+ * .google.privacy.dlp.v2.TransformationContainerType container_type = 3;
+ *
+ * @return The enum numeric value on the wire for containerType.
+ */
+ @java.lang.Override
+ public int getContainerTypeValue() {
+ return containerType_;
+ }
+ /**
+ *
+ *
+ *
+ * Information about the functionality of the container where this finding
+ * occurred, if available.
+ *
+ *
+ * .google.privacy.dlp.v2.TransformationContainerType container_type = 3;
+ *
+ * @param value The enum numeric value on the wire for containerType to set.
+ * @return This builder for chaining.
+ */
+ public Builder setContainerTypeValue(int value) {
+
+ containerType_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Information about the functionality of the container where this finding
+ * occurred, if available.
+ *
+ *
+ * .google.privacy.dlp.v2.TransformationContainerType container_type = 3;
+ *
+ * @return The containerType.
+ */
+ @java.lang.Override
+ public com.google.privacy.dlp.v2.TransformationContainerType getContainerType() {
+ @SuppressWarnings("deprecation")
+ com.google.privacy.dlp.v2.TransformationContainerType result =
+ com.google.privacy.dlp.v2.TransformationContainerType.valueOf(containerType_);
+ return result == null
+ ? com.google.privacy.dlp.v2.TransformationContainerType.UNRECOGNIZED
+ : result;
+ }
+ /**
+ *
+ *
+ *
+ * Information about the functionality of the container where this finding
+ * occurred, if available.
+ *
+ *
+ * .google.privacy.dlp.v2.TransformationContainerType container_type = 3;
+ *
+ * @param value The containerType to set.
+ * @return This builder for chaining.
+ */
+ public Builder setContainerType(com.google.privacy.dlp.v2.TransformationContainerType value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ containerType_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Information about the functionality of the container where this finding
+ * occurred, if available.
+ *
+ *
+ * .google.privacy.dlp.v2.TransformationContainerType container_type = 3;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearContainerType() {
+
+ containerType_ = 0;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.privacy.dlp.v2.TransformationLocation)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.TransformationLocation)
+ private static final com.google.privacy.dlp.v2.TransformationLocation DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.privacy.dlp.v2.TransformationLocation();
+ }
+
+ public static com.google.privacy.dlp.v2.TransformationLocation getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ * For infotype transformations, link to the corresponding findings ID so
+ * that location information does not need to be duplicated. Each findings
+ * ID correlates to an entry in the findings output table, this table only
+ * gets created when users specify to save findings (add the save findings
+ * action to the request).
+ *
+ *
+ * string finding_id = 1;
+ *
+ * @return Whether the findingId field is set.
+ */
+ boolean hasFindingId();
+ /**
+ *
+ *
+ *
+ * For infotype transformations, link to the corresponding findings ID so
+ * that location information does not need to be duplicated. Each findings
+ * ID correlates to an entry in the findings output table, this table only
+ * gets created when users specify to save findings (add the save findings
+ * action to the request).
+ *
+ *
+ * string finding_id = 1;
+ *
+ * @return The findingId.
+ */
+ java.lang.String getFindingId();
+ /**
+ *
+ *
+ *
+ * For infotype transformations, link to the corresponding findings ID so
+ * that location information does not need to be duplicated. Each findings
+ * ID correlates to an entry in the findings output table, this table only
+ * gets created when users specify to save findings (add the save findings
+ * action to the request).
+ *
+ *
+ * string finding_id = 1;
+ *
+ * @return The bytes for findingId.
+ */
+ com.google.protobuf.ByteString getFindingIdBytes();
+
+ /**
+ *
+ *
+ *
+ * For record transformations, provide a field and container information.
+ *
+ *
+ * .google.privacy.dlp.v2.RecordTransformation record_transformation = 2;
+ *
+ * @return Whether the recordTransformation field is set.
+ */
+ boolean hasRecordTransformation();
+ /**
+ *
+ *
+ *
+ * For record transformations, provide a field and container information.
+ *
+ *
+ * .google.privacy.dlp.v2.RecordTransformation record_transformation = 2;
+ *
+ * @return The recordTransformation.
+ */
+ com.google.privacy.dlp.v2.RecordTransformation getRecordTransformation();
+ /**
+ *
+ *
+ *
+ * For record transformations, provide a field and container information.
+ *
+ *
+ * .google.privacy.dlp.v2.RecordTransformation record_transformation = 2;
+ */
+ com.google.privacy.dlp.v2.RecordTransformationOrBuilder getRecordTransformationOrBuilder();
+
+ /**
+ *
+ *
+ *
+ * Information about the functionality of the container where this finding
+ * occurred, if available.
+ *
+ *
+ * .google.privacy.dlp.v2.TransformationContainerType container_type = 3;
+ *
+ * @return The enum numeric value on the wire for containerType.
+ */
+ int getContainerTypeValue();
+ /**
+ *
+ *
+ *
+ * Information about the functionality of the container where this finding
+ * occurred, if available.
+ *
+ *
+ * .google.privacy.dlp.v2.TransformationContainerType container_type = 3;
+ *
+ * @return The containerType.
+ */
+ com.google.privacy.dlp.v2.TransformationContainerType getContainerType();
+
+ public com.google.privacy.dlp.v2.TransformationLocation.LocationTypeCase getLocationTypeCase();
+}
diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TransformationResultStatus.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TransformationResultStatus.java
new file mode 100644
index 000000000000..44d5311f608d
--- /dev/null
+++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TransformationResultStatus.java
@@ -0,0 +1,870 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/privacy/dlp/v2/dlp.proto
+
+package com.google.privacy.dlp.v2;
+
+/** Protobuf type {@code google.privacy.dlp.v2.TransformationResultStatus} */
+public final class TransformationResultStatus extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2.TransformationResultStatus)
+ TransformationResultStatusOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use TransformationResultStatus.newBuilder() to construct.
+ private TransformationResultStatus(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private TransformationResultStatus() {
+ resultStatusType_ = 0;
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new TransformationResultStatus();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private TransformationResultStatus(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 8:
+ {
+ int rawValue = input.readEnum();
+
+ resultStatusType_ = rawValue;
+ break;
+ }
+ case 18:
+ {
+ com.google.rpc.Status.Builder subBuilder = null;
+ if (details_ != null) {
+ subBuilder = details_.toBuilder();
+ }
+ details_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(details_);
+ details_ = subBuilder.buildPartial();
+ }
+
+ break;
+ }
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.privacy.dlp.v2.DlpProto
+ .internal_static_google_privacy_dlp_v2_TransformationResultStatus_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.privacy.dlp.v2.DlpProto
+ .internal_static_google_privacy_dlp_v2_TransformationResultStatus_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.privacy.dlp.v2.TransformationResultStatus.class,
+ com.google.privacy.dlp.v2.TransformationResultStatus.Builder.class);
+ }
+
+ public static final int RESULT_STATUS_TYPE_FIELD_NUMBER = 1;
+ private int resultStatusType_;
+ /**
+ *
+ *
+ *
+ * Transformation result status type, this will be either SUCCESS, or it will
+ * be the reason for why the transformation was not completely successful.
+ *
+ *
+ * .google.privacy.dlp.v2.TransformationResultStatusType result_status_type = 1;
+ *
+ * @return The enum numeric value on the wire for resultStatusType.
+ */
+ @java.lang.Override
+ public int getResultStatusTypeValue() {
+ return resultStatusType_;
+ }
+ /**
+ *
+ *
+ *
+ * Transformation result status type, this will be either SUCCESS, or it will
+ * be the reason for why the transformation was not completely successful.
+ *
+ *
+ * .google.privacy.dlp.v2.TransformationResultStatusType result_status_type = 1;
+ *
+ * @return The resultStatusType.
+ */
+ @java.lang.Override
+ public com.google.privacy.dlp.v2.TransformationResultStatusType getResultStatusType() {
+ @SuppressWarnings("deprecation")
+ com.google.privacy.dlp.v2.TransformationResultStatusType result =
+ com.google.privacy.dlp.v2.TransformationResultStatusType.valueOf(resultStatusType_);
+ return result == null
+ ? com.google.privacy.dlp.v2.TransformationResultStatusType.UNRECOGNIZED
+ : result;
+ }
+
+ public static final int DETAILS_FIELD_NUMBER = 2;
+ private com.google.rpc.Status details_;
+ /**
+ *
+ *
+ *
+ * Detailed error codes and messages
+ *
+ *
+ * .google.rpc.Status details = 2;
+ *
+ * @return Whether the details field is set.
+ */
+ @java.lang.Override
+ public boolean hasDetails() {
+ return details_ != null;
+ }
+ /**
+ *
+ *
+ *
+ * Detailed error codes and messages
+ *
+ *
+ * .google.rpc.Status details = 2;
+ *
+ * @return The details.
+ */
+ @java.lang.Override
+ public com.google.rpc.Status getDetails() {
+ return details_ == null ? com.google.rpc.Status.getDefaultInstance() : details_;
+ }
+ /**
+ *
+ *
+ *
+ * Detailed error codes and messages
+ *
+ *
+ * .google.rpc.Status details = 2;
+ */
+ @java.lang.Override
+ public com.google.rpc.StatusOrBuilder getDetailsOrBuilder() {
+ return getDetails();
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (resultStatusType_
+ != com.google.privacy.dlp.v2.TransformationResultStatusType.STATE_TYPE_UNSPECIFIED
+ .getNumber()) {
+ output.writeEnum(1, resultStatusType_);
+ }
+ if (details_ != null) {
+ output.writeMessage(2, getDetails());
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (resultStatusType_
+ != com.google.privacy.dlp.v2.TransformationResultStatusType.STATE_TYPE_UNSPECIFIED
+ .getNumber()) {
+ size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, resultStatusType_);
+ }
+ if (details_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDetails());
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.privacy.dlp.v2.TransformationResultStatus)) {
+ return super.equals(obj);
+ }
+ com.google.privacy.dlp.v2.TransformationResultStatus other =
+ (com.google.privacy.dlp.v2.TransformationResultStatus) obj;
+
+ if (resultStatusType_ != other.resultStatusType_) return false;
+ if (hasDetails() != other.hasDetails()) return false;
+ if (hasDetails()) {
+ if (!getDetails().equals(other.getDetails())) return false;
+ }
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + RESULT_STATUS_TYPE_FIELD_NUMBER;
+ hash = (53 * hash) + resultStatusType_;
+ if (hasDetails()) {
+ hash = (37 * hash) + DETAILS_FIELD_NUMBER;
+ hash = (53 * hash) + getDetails().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.privacy.dlp.v2.TransformationResultStatus parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.privacy.dlp.v2.TransformationResultStatus parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.privacy.dlp.v2.TransformationResultStatus parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.privacy.dlp.v2.TransformationResultStatus parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.privacy.dlp.v2.TransformationResultStatus parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.privacy.dlp.v2.TransformationResultStatus parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.privacy.dlp.v2.TransformationResultStatus parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.privacy.dlp.v2.TransformationResultStatus parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.privacy.dlp.v2.TransformationResultStatus parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.privacy.dlp.v2.TransformationResultStatus parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.privacy.dlp.v2.TransformationResultStatus parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.privacy.dlp.v2.TransformationResultStatus parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(com.google.privacy.dlp.v2.TransformationResultStatus prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /** Protobuf type {@code google.privacy.dlp.v2.TransformationResultStatus} */
+ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Transformation result status type, this will be either SUCCESS, or it will
+ * be the reason for why the transformation was not completely successful.
+ *
+ *
+ * .google.privacy.dlp.v2.TransformationResultStatusType result_status_type = 1;
+ *
+ * @return The enum numeric value on the wire for resultStatusType.
+ */
+ @java.lang.Override
+ public int getResultStatusTypeValue() {
+ return resultStatusType_;
+ }
+ /**
+ *
+ *
+ *
+ * Transformation result status type, this will be either SUCCESS, or it will
+ * be the reason for why the transformation was not completely successful.
+ *
+ *
+ * .google.privacy.dlp.v2.TransformationResultStatusType result_status_type = 1;
+ *
+ * @param value The enum numeric value on the wire for resultStatusType to set.
+ * @return This builder for chaining.
+ */
+ public Builder setResultStatusTypeValue(int value) {
+
+ resultStatusType_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Transformation result status type, this will be either SUCCESS, or it will
+ * be the reason for why the transformation was not completely successful.
+ *
+ *
+ * .google.privacy.dlp.v2.TransformationResultStatusType result_status_type = 1;
+ *
+ * @return The resultStatusType.
+ */
+ @java.lang.Override
+ public com.google.privacy.dlp.v2.TransformationResultStatusType getResultStatusType() {
+ @SuppressWarnings("deprecation")
+ com.google.privacy.dlp.v2.TransformationResultStatusType result =
+ com.google.privacy.dlp.v2.TransformationResultStatusType.valueOf(resultStatusType_);
+ return result == null
+ ? com.google.privacy.dlp.v2.TransformationResultStatusType.UNRECOGNIZED
+ : result;
+ }
+ /**
+ *
+ *
+ *
+ * Transformation result status type, this will be either SUCCESS, or it will
+ * be the reason for why the transformation was not completely successful.
+ *
+ *
+ * .google.privacy.dlp.v2.TransformationResultStatusType result_status_type = 1;
+ *
+ * @param value The resultStatusType to set.
+ * @return This builder for chaining.
+ */
+ public Builder setResultStatusType(
+ com.google.privacy.dlp.v2.TransformationResultStatusType value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ resultStatusType_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Transformation result status type, this will be either SUCCESS, or it will
+ * be the reason for why the transformation was not completely successful.
+ *
+ *
+ * .google.privacy.dlp.v2.TransformationResultStatusType result_status_type = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearResultStatusType() {
+
+ resultStatusType_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private com.google.rpc.Status details_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>
+ detailsBuilder_;
+ /**
+ *
+ *
+ *
+ * Detailed error codes and messages
+ *
+ *
+ * .google.rpc.Status details = 2;
+ *
+ * @return Whether the details field is set.
+ */
+ public boolean hasDetails() {
+ return detailsBuilder_ != null || details_ != null;
+ }
+ /**
+ *
+ *
+ *
+ * Detailed error codes and messages
+ *
+ *
+ * .google.rpc.Status details = 2;
+ *
+ * @return The details.
+ */
+ public com.google.rpc.Status getDetails() {
+ if (detailsBuilder_ == null) {
+ return details_ == null ? com.google.rpc.Status.getDefaultInstance() : details_;
+ } else {
+ return detailsBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Detailed error codes and messages
+ *
+ *
+ * .google.rpc.Status details = 2;
+ */
+ public Builder setDetails(com.google.rpc.Status value) {
+ if (detailsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ details_ = value;
+ onChanged();
+ } else {
+ detailsBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Detailed error codes and messages
+ *
+ *
+ * .google.rpc.Status details = 2;
+ */
+ public Builder setDetails(com.google.rpc.Status.Builder builderForValue) {
+ if (detailsBuilder_ == null) {
+ details_ = builderForValue.build();
+ onChanged();
+ } else {
+ detailsBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Detailed error codes and messages
+ *
+ *
+ * .google.rpc.Status details = 2;
+ */
+ public Builder mergeDetails(com.google.rpc.Status value) {
+ if (detailsBuilder_ == null) {
+ if (details_ != null) {
+ details_ = com.google.rpc.Status.newBuilder(details_).mergeFrom(value).buildPartial();
+ } else {
+ details_ = value;
+ }
+ onChanged();
+ } else {
+ detailsBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Detailed error codes and messages
+ *
+ *
+ * .google.rpc.Status details = 2;
+ */
+ public Builder clearDetails() {
+ if (detailsBuilder_ == null) {
+ details_ = null;
+ onChanged();
+ } else {
+ details_ = null;
+ detailsBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Detailed error codes and messages
+ *
+ *
+ * .google.rpc.Status details = 2;
+ */
+ public com.google.rpc.Status.Builder getDetailsBuilder() {
+
+ onChanged();
+ return getDetailsFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ *
+ * Detailed error codes and messages
+ *
+ *
+ * .google.rpc.Status details = 2;
+ */
+ public com.google.rpc.StatusOrBuilder getDetailsOrBuilder() {
+ if (detailsBuilder_ != null) {
+ return detailsBuilder_.getMessageOrBuilder();
+ } else {
+ return details_ == null ? com.google.rpc.Status.getDefaultInstance() : details_;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Detailed error codes and messages
+ *
+ *
+ * .google.rpc.Status details = 2;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>
+ getDetailsFieldBuilder() {
+ if (detailsBuilder_ == null) {
+ detailsBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.rpc.Status,
+ com.google.rpc.Status.Builder,
+ com.google.rpc.StatusOrBuilder>(getDetails(), getParentForChildren(), isClean());
+ details_ = null;
+ }
+ return detailsBuilder_;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.privacy.dlp.v2.TransformationResultStatus)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.TransformationResultStatus)
+ private static final com.google.privacy.dlp.v2.TransformationResultStatus DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.privacy.dlp.v2.TransformationResultStatus();
+ }
+
+ public static com.google.privacy.dlp.v2.TransformationResultStatus getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ * Transformation result status type, this will be either SUCCESS, or it will
+ * be the reason for why the transformation was not completely successful.
+ *
+ *
+ * .google.privacy.dlp.v2.TransformationResultStatusType result_status_type = 1;
+ *
+ * @return The enum numeric value on the wire for resultStatusType.
+ */
+ int getResultStatusTypeValue();
+ /**
+ *
+ *
+ *
+ * Transformation result status type, this will be either SUCCESS, or it will
+ * be the reason for why the transformation was not completely successful.
+ *
+ *
+ * .google.privacy.dlp.v2.TransformationResultStatusType result_status_type = 1;
+ *
+ * @return The resultStatusType.
+ */
+ com.google.privacy.dlp.v2.TransformationResultStatusType getResultStatusType();
+
+ /**
+ *
+ *
+ *
+ * Detailed error codes and messages
+ *
+ *
+ * .google.rpc.Status details = 2;
+ *
+ * @return Whether the details field is set.
+ */
+ boolean hasDetails();
+ /**
+ *
+ *
+ *
+ * Detailed error codes and messages
+ *
+ *
+ * .google.rpc.Status details = 2;
+ *
+ * @return The details.
+ */
+ com.google.rpc.Status getDetails();
+ /**
+ *
+ *
+ *
+ * Detailed error codes and messages
+ *
+ *
+ * .google.rpc.Status details = 2;
+ */
+ com.google.rpc.StatusOrBuilder getDetailsOrBuilder();
+}
diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TransformationResultStatusType.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TransformationResultStatusType.java
new file mode 100644
index 000000000000..bd2a89148962
--- /dev/null
+++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TransformationResultStatusType.java
@@ -0,0 +1,219 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/privacy/dlp/v2/dlp.proto
+
+package com.google.privacy.dlp.v2;
+
+/**
+ *
+ *
+ *
+ * Enum of possible outcomes of transformations. SUCCESS if transformation and
+ * storing of transformation was successful, otherwise, reason for not
+ * transforming.
+ *
+ *
+ * Protobuf enum {@code google.privacy.dlp.v2.TransformationResultStatusType}
+ */
+public enum TransformationResultStatusType implements com.google.protobuf.ProtocolMessageEnum {
+ /** STATE_TYPE_UNSPECIFIED = 0;
*/
+ STATE_TYPE_UNSPECIFIED(0),
+ /**
+ *
+ *
+ *
+ * This will be set when a finding could not be transformed (i.e. outside user
+ * set bucket range).
+ *
+ *
+ * INVALID_TRANSFORM = 1;
+ */
+ INVALID_TRANSFORM(1),
+ /**
+ *
+ *
+ *
+ * This will be set when a BigQuery transformation was successful but could
+ * not be stored back in BigQuery because the transformed row exceeds
+ * BigQuery's max row size.
+ *
+ *
+ * BIGQUERY_MAX_ROW_SIZE_EXCEEDED = 2;
+ */
+ BIGQUERY_MAX_ROW_SIZE_EXCEEDED(2),
+ /**
+ *
+ *
+ *
+ * This will be set when there is a finding in the custom metadata of a file,
+ * but at the write time of the transformed file, this key / value pair is
+ * unretrievable.
+ *
+ *
+ * METADATA_UNRETRIEVABLE = 3;
+ */
+ METADATA_UNRETRIEVABLE(3),
+ /**
+ *
+ *
+ *
+ * This will be set when the transformation and storing of it is successful.
+ *
+ *
+ * SUCCESS = 4;
+ */
+ SUCCESS(4),
+ UNRECOGNIZED(-1),
+ ;
+
+ /** STATE_TYPE_UNSPECIFIED = 0;
*/
+ public static final int STATE_TYPE_UNSPECIFIED_VALUE = 0;
+ /**
+ *
+ *
+ *
+ * This will be set when a finding could not be transformed (i.e. outside user
+ * set bucket range).
+ *
+ *
+ * INVALID_TRANSFORM = 1;
+ */
+ public static final int INVALID_TRANSFORM_VALUE = 1;
+ /**
+ *
+ *
+ *
+ * This will be set when a BigQuery transformation was successful but could
+ * not be stored back in BigQuery because the transformed row exceeds
+ * BigQuery's max row size.
+ *
+ *
+ * BIGQUERY_MAX_ROW_SIZE_EXCEEDED = 2;
+ */
+ public static final int BIGQUERY_MAX_ROW_SIZE_EXCEEDED_VALUE = 2;
+ /**
+ *
+ *
+ *
+ * This will be set when there is a finding in the custom metadata of a file,
+ * but at the write time of the transformed file, this key / value pair is
+ * unretrievable.
+ *
+ *
+ * METADATA_UNRETRIEVABLE = 3;
+ */
+ public static final int METADATA_UNRETRIEVABLE_VALUE = 3;
+ /**
+ *
+ *
+ *
+ * This will be set when the transformation and storing of it is successful.
+ *
+ *
+ * SUCCESS = 4;
+ */
+ public static final int SUCCESS_VALUE = 4;
+
+ public final int getNumber() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalArgumentException(
+ "Can't get the number of an unknown enum value.");
+ }
+ return value;
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
+ public static TransformationResultStatusType valueOf(int value) {
+ return forNumber(value);
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ */
+ public static TransformationResultStatusType forNumber(int value) {
+ switch (value) {
+ case 0:
+ return STATE_TYPE_UNSPECIFIED;
+ case 1:
+ return INVALID_TRANSFORM;
+ case 2:
+ return BIGQUERY_MAX_ROW_SIZE_EXCEEDED;
+ case 3:
+ return METADATA_UNRETRIEVABLE;
+ case 4:
+ return SUCCESS;
+ default:
+ return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap
+ * An enum of rules that can be used to transform a value. Can be a
+ * record suppression, or one of the transformation rules specified under
+ * `PrimitiveTransformation`.
+ *
+ *
+ * Protobuf enum {@code google.privacy.dlp.v2.TransformationType}
+ */
+public enum TransformationType implements com.google.protobuf.ProtocolMessageEnum {
+ /**
+ *
+ *
+ *
+ * Unused
+ *
+ *
+ * TRANSFORMATION_TYPE_UNSPECIFIED = 0;
+ */
+ TRANSFORMATION_TYPE_UNSPECIFIED(0),
+ /**
+ *
+ *
+ *
+ * Record suppression
+ *
+ *
+ * RECORD_SUPPRESSION = 1;
+ */
+ RECORD_SUPPRESSION(1),
+ /**
+ *
+ *
+ *
+ * Replace value
+ *
+ *
+ * REPLACE_VALUE = 2;
+ */
+ REPLACE_VALUE(2),
+ /**
+ *
+ *
+ *
+ * Replace value using a dictionary.
+ *
+ *
+ * REPLACE_DICTIONARY = 15;
+ */
+ REPLACE_DICTIONARY(15),
+ /**
+ *
+ *
+ *
+ * Redact
+ *
+ *
+ * REDACT = 3;
+ */
+ REDACT(3),
+ /**
+ *
+ *
+ *
+ * Character mask
+ *
+ *
+ * CHARACTER_MASK = 4;
+ */
+ CHARACTER_MASK(4),
+ /**
+ *
+ *
+ *
+ * FFX-FPE
+ *
+ *
+ * CRYPTO_REPLACE_FFX_FPE = 5;
+ */
+ CRYPTO_REPLACE_FFX_FPE(5),
+ /**
+ *
+ *
+ *
+ * Fixed size bucketing
+ *
+ *
+ * FIXED_SIZE_BUCKETING = 6;
+ */
+ FIXED_SIZE_BUCKETING(6),
+ /**
+ *
+ *
+ *
+ * Bucketing
+ *
+ *
+ * BUCKETING = 7;
+ */
+ BUCKETING(7),
+ /**
+ *
+ *
+ *
+ * Replace with info type
+ *
+ *
+ * REPLACE_WITH_INFO_TYPE = 8;
+ */
+ REPLACE_WITH_INFO_TYPE(8),
+ /**
+ *
+ *
+ *
+ * Time part
+ *
+ *
+ * TIME_PART = 9;
+ */
+ TIME_PART(9),
+ /**
+ *
+ *
+ *
+ * Crypto hash
+ *
+ *
+ * CRYPTO_HASH = 10;
+ */
+ CRYPTO_HASH(10),
+ /**
+ *
+ *
+ *
+ * Date shift
+ *
+ *
+ * DATE_SHIFT = 12;
+ */
+ DATE_SHIFT(12),
+ /**
+ *
+ *
+ *
+ * Deterministic crypto
+ *
+ *
+ * CRYPTO_DETERMINISTIC_CONFIG = 13;
+ */
+ CRYPTO_DETERMINISTIC_CONFIG(13),
+ /**
+ *
+ *
+ *
+ * Redact image
+ *
+ *
+ * REDACT_IMAGE = 14;
+ */
+ REDACT_IMAGE(14),
+ UNRECOGNIZED(-1),
+ ;
+
+ /**
+ *
+ *
+ *
+ * Unused
+ *
+ *
+ * TRANSFORMATION_TYPE_UNSPECIFIED = 0;
+ */
+ public static final int TRANSFORMATION_TYPE_UNSPECIFIED_VALUE = 0;
+ /**
+ *
+ *
+ *
+ * Record suppression
+ *
+ *
+ * RECORD_SUPPRESSION = 1;
+ */
+ public static final int RECORD_SUPPRESSION_VALUE = 1;
+ /**
+ *
+ *
+ *
+ * Replace value
+ *
+ *
+ * REPLACE_VALUE = 2;
+ */
+ public static final int REPLACE_VALUE_VALUE = 2;
+ /**
+ *
+ *
+ *
+ * Replace value using a dictionary.
+ *
+ *
+ * REPLACE_DICTIONARY = 15;
+ */
+ public static final int REPLACE_DICTIONARY_VALUE = 15;
+ /**
+ *
+ *
+ *
+ * Redact
+ *
+ *
+ * REDACT = 3;
+ */
+ public static final int REDACT_VALUE = 3;
+ /**
+ *
+ *
+ *
+ * Character mask
+ *
+ *
+ * CHARACTER_MASK = 4;
+ */
+ public static final int CHARACTER_MASK_VALUE = 4;
+ /**
+ *
+ *
+ *
+ * FFX-FPE
+ *
+ *
+ * CRYPTO_REPLACE_FFX_FPE = 5;
+ */
+ public static final int CRYPTO_REPLACE_FFX_FPE_VALUE = 5;
+ /**
+ *
+ *
+ *
+ * Fixed size bucketing
+ *
+ *
+ * FIXED_SIZE_BUCKETING = 6;
+ */
+ public static final int FIXED_SIZE_BUCKETING_VALUE = 6;
+ /**
+ *
+ *
+ *
+ * Bucketing
+ *
+ *
+ * BUCKETING = 7;
+ */
+ public static final int BUCKETING_VALUE = 7;
+ /**
+ *
+ *
+ *
+ * Replace with info type
+ *
+ *
+ * REPLACE_WITH_INFO_TYPE = 8;
+ */
+ public static final int REPLACE_WITH_INFO_TYPE_VALUE = 8;
+ /**
+ *
+ *
+ *
+ * Time part
+ *
+ *
+ * TIME_PART = 9;
+ */
+ public static final int TIME_PART_VALUE = 9;
+ /**
+ *
+ *
+ *
+ * Crypto hash
+ *
+ *
+ * CRYPTO_HASH = 10;
+ */
+ public static final int CRYPTO_HASH_VALUE = 10;
+ /**
+ *
+ *
+ *
+ * Date shift
+ *
+ *
+ * DATE_SHIFT = 12;
+ */
+ public static final int DATE_SHIFT_VALUE = 12;
+ /**
+ *
+ *
+ *
+ * Deterministic crypto
+ *
+ *
+ * CRYPTO_DETERMINISTIC_CONFIG = 13;
+ */
+ public static final int CRYPTO_DETERMINISTIC_CONFIG_VALUE = 13;
+ /**
+ *
+ *
+ *
+ * Redact image
+ *
+ *
+ * REDACT_IMAGE = 14;
+ */
+ public static final int REDACT_IMAGE_VALUE = 14;
+
+ public final int getNumber() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalArgumentException(
+ "Can't get the number of an unknown enum value.");
+ }
+ return value;
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
+ public static TransformationType valueOf(int value) {
+ return forNumber(value);
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ */
+ public static TransformationType forNumber(int value) {
+ switch (value) {
+ case 0:
+ return TRANSFORMATION_TYPE_UNSPECIFIED;
+ case 1:
+ return RECORD_SUPPRESSION;
+ case 2:
+ return REPLACE_VALUE;
+ case 15:
+ return REPLACE_DICTIONARY;
+ case 3:
+ return REDACT;
+ case 4:
+ return CHARACTER_MASK;
+ case 5:
+ return CRYPTO_REPLACE_FFX_FPE;
+ case 6:
+ return FIXED_SIZE_BUCKETING;
+ case 7:
+ return BUCKETING;
+ case 8:
+ return REPLACE_WITH_INFO_TYPE;
+ case 9:
+ return TIME_PART;
+ case 10:
+ return CRYPTO_HASH;
+ case 12:
+ return DATE_SHIFT;
+ case 13:
+ return CRYPTO_DETERMINISTIC_CONFIG;
+ case 14:
+ return REDACT_IMAGE;
+ default:
+ return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap
+ * Details about each available version for an infotype.
+ *
+ *
+ * Protobuf type {@code google.privacy.dlp.v2.VersionDescription}
+ */
+public final class VersionDescription extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2.VersionDescription)
+ VersionDescriptionOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use VersionDescription.newBuilder() to construct.
+ private VersionDescription(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private VersionDescription() {
+ version_ = "";
+ description_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new VersionDescription();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private VersionDescription(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ version_ = s;
+ break;
+ }
+ case 18:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ description_ = s;
+ break;
+ }
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.privacy.dlp.v2.DlpProto
+ .internal_static_google_privacy_dlp_v2_VersionDescription_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.privacy.dlp.v2.DlpProto
+ .internal_static_google_privacy_dlp_v2_VersionDescription_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.privacy.dlp.v2.VersionDescription.class,
+ com.google.privacy.dlp.v2.VersionDescription.Builder.class);
+ }
+
+ public static final int VERSION_FIELD_NUMBER = 1;
+ private volatile java.lang.Object version_;
+ /**
+ *
+ *
+ *
+ * Name of the version
+ *
+ *
+ * string version = 1;
+ *
+ * @return The version.
+ */
+ @java.lang.Override
+ public java.lang.String getVersion() {
+ java.lang.Object ref = version_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ version_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Name of the version
+ *
+ *
+ * string version = 1;
+ *
+ * @return The bytes for version.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getVersionBytes() {
+ java.lang.Object ref = version_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ version_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int DESCRIPTION_FIELD_NUMBER = 2;
+ private volatile java.lang.Object description_;
+ /**
+ *
+ *
+ *
+ * Description of the version.
+ *
+ *
+ * string description = 2;
+ *
+ * @return The description.
+ */
+ @java.lang.Override
+ public java.lang.String getDescription() {
+ java.lang.Object ref = description_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ description_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Description of the version.
+ *
+ *
+ * string description = 2;
+ *
+ * @return The bytes for description.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getDescriptionBytes() {
+ java.lang.Object ref = description_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ description_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, version_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, version_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.privacy.dlp.v2.VersionDescription)) {
+ return super.equals(obj);
+ }
+ com.google.privacy.dlp.v2.VersionDescription other =
+ (com.google.privacy.dlp.v2.VersionDescription) obj;
+
+ if (!getVersion().equals(other.getVersion())) return false;
+ if (!getDescription().equals(other.getDescription())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + VERSION_FIELD_NUMBER;
+ hash = (53 * hash) + getVersion().hashCode();
+ hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
+ hash = (53 * hash) + getDescription().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.privacy.dlp.v2.VersionDescription parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.privacy.dlp.v2.VersionDescription parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.privacy.dlp.v2.VersionDescription parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.privacy.dlp.v2.VersionDescription parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.privacy.dlp.v2.VersionDescription parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.privacy.dlp.v2.VersionDescription parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.privacy.dlp.v2.VersionDescription parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.privacy.dlp.v2.VersionDescription parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.privacy.dlp.v2.VersionDescription parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.privacy.dlp.v2.VersionDescription parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.privacy.dlp.v2.VersionDescription parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.privacy.dlp.v2.VersionDescription parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(com.google.privacy.dlp.v2.VersionDescription prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ *
+ * Details about each available version for an infotype.
+ *
+ *
+ * Protobuf type {@code google.privacy.dlp.v2.VersionDescription}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Name of the version
+ *
+ *
+ * string version = 1;
+ *
+ * @return The version.
+ */
+ public java.lang.String getVersion() {
+ java.lang.Object ref = version_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ version_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Name of the version
+ *
+ *
+ * string version = 1;
+ *
+ * @return The bytes for version.
+ */
+ public com.google.protobuf.ByteString getVersionBytes() {
+ java.lang.Object ref = version_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ version_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Name of the version
+ *
+ *
+ * string version = 1;
+ *
+ * @param value The version to set.
+ * @return This builder for chaining.
+ */
+ public Builder setVersion(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ version_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Name of the version
+ *
+ *
+ * string version = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearVersion() {
+
+ version_ = getDefaultInstance().getVersion();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Name of the version
+ *
+ *
+ * string version = 1;
+ *
+ * @param value The bytes for version to set.
+ * @return This builder for chaining.
+ */
+ public Builder setVersionBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ version_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object description_ = "";
+ /**
+ *
+ *
+ *
+ * Description of the version.
+ *
+ *
+ * string description = 2;
+ *
+ * @return The description.
+ */
+ public java.lang.String getDescription() {
+ java.lang.Object ref = description_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ description_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Description of the version.
+ *
+ *
+ * string description = 2;
+ *
+ * @return The bytes for description.
+ */
+ public com.google.protobuf.ByteString getDescriptionBytes() {
+ java.lang.Object ref = description_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ description_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Description of the version.
+ *
+ *
+ * string description = 2;
+ *
+ * @param value The description to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDescription(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ description_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Description of the version.
+ *
+ *
+ * string description = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearDescription() {
+
+ description_ = getDefaultInstance().getDescription();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Description of the version.
+ *
+ *
+ * string description = 2;
+ *
+ * @param value The bytes for description to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ description_ = value;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.privacy.dlp.v2.VersionDescription)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.VersionDescription)
+ private static final com.google.privacy.dlp.v2.VersionDescription DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.privacy.dlp.v2.VersionDescription();
+ }
+
+ public static com.google.privacy.dlp.v2.VersionDescription getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ * Name of the version
+ *
+ *
+ * string version = 1;
+ *
+ * @return The version.
+ */
+ java.lang.String getVersion();
+ /**
+ *
+ *
+ *
+ * Name of the version
+ *
+ *
+ * string version = 1;
+ *
+ * @return The bytes for version.
+ */
+ com.google.protobuf.ByteString getVersionBytes();
+
+ /**
+ *
+ *
+ *
+ * Description of the version.
+ *
+ *
+ * string description = 2;
+ *
+ * @return The description.
+ */
+ java.lang.String getDescription();
+ /**
+ *
+ *
+ *
+ * Description of the version.
+ *
+ *
+ * string description = 2;
+ *
+ * @return The bytes for description.
+ */
+ com.google.protobuf.ByteString getDescriptionBytes();
+}
diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/proto/google/privacy/dlp/v2/dlp.proto b/java-dlp/proto-google-cloud-dlp-v2/src/main/proto/google/privacy/dlp/v2/dlp.proto
index 866a5748f661..4dc3a3862d00 100644
--- a/java-dlp/proto-google-cloud-dlp-v2/src/main/proto/google/privacy/dlp/v2/dlp.proto
+++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/proto/google/privacy/dlp/v2/dlp.proto
@@ -133,7 +133,7 @@ service DlpService {
};
}
- // Returns a list of the sensitive information types that the DLP API
+ // Returns a list of the sensitive information types that DLP API
// supports. See https://cloud.google.com/dlp/docs/infotypes-reference to
// learn more.
rpc ListInfoTypes(ListInfoTypesRequest) returns (ListInfoTypesResponse) {
@@ -146,7 +146,7 @@ service DlpService {
option (google.api.method_signature) = "parent";
}
- // Creates an InspectTemplate for re-using frequently used configuration
+ // Creates an InspectTemplate for reusing frequently used configuration
// for inspecting content, images, and storage.
// See https://cloud.google.com/dlp/docs/creating-templates to learn more.
rpc CreateInspectTemplate(CreateInspectTemplateRequest) returns (InspectTemplate) {
@@ -245,7 +245,7 @@ service DlpService {
option (google.api.method_signature) = "name";
}
- // Creates a DeidentifyTemplate for re-using frequently used configuration
+ // Creates a DeidentifyTemplate for reusing frequently used configuration
// for de-identifying content, images, and storage.
// See https://cloud.google.com/dlp/docs/creating-templates-deid to learn
// more.
@@ -505,7 +505,7 @@ service DlpService {
}
// Deletes a long-running DlpJob. This method indicates that the client is
- // no longer interested in the DlpJob result. The job will be cancelled if
+ // no longer interested in the DlpJob result. The job will be canceled if
// possible.
// See https://cloud.google.com/dlp/docs/inspecting-storage and
// https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more.
@@ -660,7 +660,7 @@ service DlpService {
}
}
-// List of exclude infoTypes.
+// List of excluded infoTypes.
message ExcludeInfoTypes {
// InfoType list in ExclusionRule rule drops a finding when it overlaps or
// contained within with a finding of an infoType from this list. For
@@ -721,6 +721,12 @@ message InspectionRuleSet {
message InspectConfig {
// Configuration to control the number of findings returned for inspection.
// This is not used for de-identification or data profiling.
+ //
+ // When redacting sensitive data from images, finding limits don't apply. They
+ // can cause unexpected or inconsistent results, where only some data is
+ // redacted. Don't include finding limits in
+ // [RedactImage][google.privacy.dlp.v2.DlpService.RedactImage]
+ // requests. Otherwise, Cloud DLP returns an error.
message FindingLimits {
// Max findings configuration per infoType, per content item or long
// running DlpJob.
@@ -770,6 +776,12 @@ message InspectConfig {
// Configuration to control the number of findings returned.
// This is not used for data profiling.
+ //
+ // When redacting sensitive data from images, finding limits don't apply. They
+ // can cause unexpected or inconsistent results, where only some data is
+ // redacted. Don't include finding limits in
+ // [RedactImage][google.privacy.dlp.v2.DlpService.RedactImage]
+ // requests. Otherwise, Cloud DLP returns an error.
FindingLimits limits = 3;
// When true, a contextual quote from the data that triggered a finding is
@@ -1006,7 +1018,7 @@ message ContentLocation {
// * Datastore namespace: {namespace}
//
// Nested names could be absent if the embedded object has no string
- // identifier (for an example an image contained within a document).
+ // identifier (for example, an image contained within a document).
string container_name = 1;
// Type of the container within the file with location of the finding.
@@ -1024,14 +1036,14 @@ message ContentLocation {
MetadataLocation metadata_location = 8;
}
- // Findings container modification timestamp, if applicable.
- // For Google Cloud Storage contains last file modification timestamp.
- // For BigQuery table contains last_modified_time property.
- // For Datastore - not populated.
+ // Finding container modification timestamp, if applicable. For Cloud Storage,
+ // this field contains the last file modification timestamp. For a BigQuery
+ // table, this field contains the last_modified_time property. For Datastore,
+ // this field isn't populated.
google.protobuf.Timestamp container_timestamp = 6;
- // Findings container version, if available
- // ("generation" for Google Cloud Storage).
+ // Finding container version, if available
+ // ("generation" for Cloud Storage).
string container_version = 7;
}
@@ -1086,7 +1098,7 @@ message TableLocation {
// Represents a container that may contain DLP findings.
// Examples of a container include a file, table, or database record.
message Container {
- // Container type, for example BigQuery or Google Cloud Storage.
+ // Container type, for example BigQuery or Cloud Storage.
string type = 1;
// Project where the finding was found.
@@ -1096,33 +1108,35 @@ message Container {
// A string representation of the full container name.
// Examples:
// - BigQuery: 'Project:DataSetId.TableId'
- // - Google Cloud Storage: 'gs://Bucket/folders/filename.txt'
+ // - Cloud Storage: 'gs://Bucket/folders/filename.txt'
string full_path = 3;
// The root of the container.
// Examples:
+ //
// - For BigQuery table `project_id:dataset_id.table_id`, the root is
// `dataset_id`
- // - For Google Cloud Storage file `gs://bucket/folder/filename.txt`, the root
+ // - For Cloud Storage file `gs://bucket/folder/filename.txt`, the root
// is `gs://bucket`
string root_path = 4;
// The rest of the path after the root.
// Examples:
+ //
// - For BigQuery table `project_id:dataset_id.table_id`, the relative path is
// `table_id`
- // - Google Cloud Storage file `gs://bucket/folder/filename.txt`, the relative
+ // - For Cloud Storage file `gs://bucket/folder/filename.txt`, the relative
// path is `folder/filename.txt`
string relative_path = 5;
- // Findings container modification timestamp, if applicable.
- // For Google Cloud Storage contains last file modification timestamp.
- // For BigQuery table contains last_modified_time property.
- // For Datastore - not populated.
+ // Findings container modification timestamp, if applicable. For Cloud
+ // Storage, this field contains the last file modification timestamp. For a
+ // BigQuery table, this field contains the last_modified_time property. For
+ // Datastore, this field isn't populated.
google.protobuf.Timestamp update_time = 6;
// Findings container version, if available
- // ("generation" for Google Cloud Storage).
+ // ("generation" for Cloud Storage).
string version = 7;
}
@@ -1242,7 +1256,7 @@ message RedactImageResponse {
InspectResult inspect_result = 3;
}
-// Request to de-identify a list of items.
+// Request to de-identify a ContentItem.
message DeidentifyContentRequest {
// Parent resource name.
//
@@ -1367,7 +1381,7 @@ message ReidentifyContentRequest {
string location_id = 7;
}
-// Results of re-identifying a item.
+// Results of re-identifying an item.
message ReidentifyContentResponse {
// The re-identified item.
ContentItem item = 1;
@@ -1434,7 +1448,7 @@ message OutputStorageConfig {
// `timestamp`.
BASIC_COLUMNS = 1;
- // Schema tailored to findings from scanning Google Cloud Storage.
+ // Schema tailored to findings from scanning Cloud Storage.
GCS_COLUMNS = 2;
// Schema tailored to findings from scanning Google Datastore.
@@ -1452,8 +1466,8 @@ message OutputStorageConfig {
// Store findings in an existing table or a new table in an existing
// dataset. If table_id is not set a new one will be generated
// for you with the following format:
- // dlp_googleapis_yyyy_mm_dd_[dlp_job_id]. Pacific timezone will be used for
- // generating the date details.
+ // dlp_googleapis_yyyy_mm_dd_[dlp_job_id]. Pacific time zone will be used
+ // for generating the date details.
//
// For Inspect, each column in an existing output table must have the same
// name, type, and mode of a field in the `Finding` object.
@@ -1555,6 +1569,9 @@ message InfoTypeDescription {
// request.
string description = 4;
+ // A list of available versions for the infotype.
+ repeated VersionDescription versions = 9;
+
// The category of the infoType.
repeated InfoTypeCategory categories = 10;
}
@@ -1751,6 +1768,15 @@ message InfoTypeCategory {
}
}
+// Details about each available version for an infotype.
+message VersionDescription {
+ // Name of the version
+ string version = 1;
+
+ // Description of the version.
+ string description = 2;
+}
+
// Request for the list of infoTypes.
message ListInfoTypesRequest {
// The parent resource name.
@@ -2202,10 +2228,10 @@ message AnalyzeDataSourceRiskDetails {
repeated Value quasi_ids_values = 1;
// The estimated probability that a given individual sharing these
- // quasi-identifier values is in the dataset. This value, typically called
- // δ, is the ratio between the number of records in the dataset with these
- // quasi-identifier values, and the total number of individuals (inside
- // *and* outside the dataset) with these quasi-identifier values.
+ // quasi-identifier values is in the dataset. This value, typically
+ // called δ, is the ratio between the number of records in the dataset
+ // with these quasi-identifier values, and the total number of individuals
+ // (inside *and* outside the dataset) with these quasi-identifier values.
// For example, if there are 15 individuals in the dataset who share the
// same quasi-identifier values, and an estimated 100 people in the entire
// population with these values, then δ is 0.15.
@@ -2375,6 +2401,9 @@ message DeidentifyConfig {
// specific locations within structured datasets, such as transforming
// a column within a table.
RecordTransformations record_transformations = 2;
+
+ // Treat the dataset as an image and redact.
+ ImageTransformations image_transformations = 4;
}
// Mode for handling transformation errors. If left unspecified, the default
@@ -2382,6 +2411,49 @@ message DeidentifyConfig {
TransformationErrorHandling transformation_error_handling = 3;
}
+// A type of transformation that is applied over images.
+message ImageTransformations {
+ // Configuration for determining how redaction of images should occur.
+ message ImageTransformation {
+ // Apply transformation to the selected info_types.
+ message SelectedInfoTypes {
+ // Required. InfoTypes to apply the transformation to. Required. Provided InfoType
+ // must be unique within the ImageTransformations message.
+ repeated InfoType info_types = 5 [(google.api.field_behavior) = REQUIRED];
+ }
+
+ // Apply transformation to all findings.
+ message AllInfoTypes {
+
+ }
+
+ // Apply to all text.
+ message AllText {
+
+ }
+
+ oneof target {
+ // Apply transformation to the selected info_types.
+ SelectedInfoTypes selected_info_types = 4;
+
+ // Apply transformation to all findings not specified in other
+ // ImageTransformation's selected_info_types. Only one instance is allowed
+ // within the ImageTransformations message.
+ AllInfoTypes all_info_types = 5;
+
+ // Apply transformation to all text that doesn't match an infoType. Only
+ // one instance is allowed within the ImageTransformations message.
+ AllText all_text = 6;
+ }
+
+ // The color to use when redacting content from an image. If not
+ // specified, the default is black.
+ Color redaction_color = 3;
+ }
+
+ repeated ImageTransformation transforms = 2;
+}
+
// How to handle transformation errors during de-identification. A
// transformation error occurs when the requested transformation is incompatible
// with the data. For example, trying to de-identify an IP address using a
@@ -2558,7 +2630,7 @@ message CryptoDeterministicConfig {
// plaintext would be used as is for encryption.
//
// Note that case (1) is expected when an `InfoTypeTransformation` is
- // applied to both structured and non-structured `ContentItem`s.
+ // applied to both structured and unstructured `ContentItem`s.
FieldId context = 3;
}
@@ -2593,7 +2665,7 @@ message RedactConfig {
// Characters to skip when doing deidentification of a value. These will be left
// alone and skipped.
message CharsToIgnore {
- // Convenience enum for indication common characters to not transform.
+ // Convenience enum for indicating common characters to not transform.
enum CommonCharsToIgnore {
// Unused.
COMMON_CHARS_TO_IGNORE_UNSPECIFIED = 0;
@@ -2639,6 +2711,21 @@ message CharacterMaskConfig {
// Number of characters to mask. If not set, all matching chars will be
// masked. Skipped characters do not count towards this tally.
+ //
+ // If `number_to_mask` is negative, this denotes inverse masking. Cloud DLP
+ // masks all but a number of characters.
+ // For example, suppose you have the following values:
+ //
+ // - `masking_character` is `*`
+ // - `number_to_mask` is `-4`
+ // - `reverse_order` is `false`
+ // - `CharsToIgnore` includes `-`
+ // - Input string is `1234-5678-9012-3456`
+ //
+ // The resulting de-identified string is
+ // `****-****-****-3456`. Cloud DLP masks all but the last four characters.
+ // If `reverse_order` is `true`, all but the first four characters are masked
+ // as `1234-****-****-****`.
int32 number_to_mask = 2;
// Mask characters in reverse order. For example, if `masking_character` is
@@ -2732,7 +2819,7 @@ message BucketingConfig {
message CryptoReplaceFfxFpeConfig {
// These are commonly used subsets of the alphabet that the FFX mode
// natively supports. In the algorithm, the alphabet is selected using
- // the "radix". Therefore each corresponds to particular radix.
+ // the "radix". Therefore each corresponds to a particular radix.
enum FfxCommonNativeAlphabet {
// Unused.
FFX_COMMON_NATIVE_ALPHABET_UNSPECIFIED = 0;
@@ -2765,7 +2852,7 @@ message CryptoReplaceFfxFpeConfig {
// a default tweak will be used.
//
// Note that case (1) is expected when an `InfoTypeTransformation` is
- // applied to both structured and non-structured `ContentItem`s.
+ // applied to both structured and unstructured `ContentItem`s.
// Currently, the referenced field may be of value type integer or string.
//
// The tweak is constructed as a sequence of bytes in big endian byte order
@@ -3021,7 +3108,7 @@ message RecordCondition {
repeated Condition conditions = 1;
}
- // An expression, consisting or an operator and conditions.
+ // An expression, consisting of an operator and conditions.
message Expressions {
// Logical operators for conditional checks.
enum LogicalOperator {
@@ -3110,10 +3197,209 @@ message TransformationSummary {
int64 transformed_bytes = 7;
}
+// A flattened description of a `PrimitiveTransformation` or
+// `RecordSuppression`.
+message TransformationDescription {
+ // The transformation type.
+ TransformationType type = 1;
+
+ // A description of the transformation. This is empty for a
+ // RECORD_SUPPRESSION, or is the output of calling toString() on the
+ // `PrimitiveTransformation` protocol buffer message for any other type of
+ // transformation.
+ string description = 2;
+
+ // A human-readable string representation of the `RecordCondition`
+ // corresponding to this transformation. Set if a `RecordCondition` was used
+ // to determine whether or not to apply this transformation.
+ //
+ // Examples:
+ // * (age_field > 85)
+ // * (age_field <= 18)
+ // * (zip_field exists)
+ // * (zip_field == 01234) && (city_field != "Springville")
+ // * (zip_field == 01234) && (age_field <= 18) && (city_field exists)
+ string condition = 3;
+
+ // Set if the transformation was limited to a specific `InfoType`.
+ InfoType info_type = 4;
+}
+
+// Details about a single transformation. This object contains a description of
+// the transformation, information about whether the transformation was
+// successfully applied, and the precise location where the transformation
+// occurred. These details are stored in a user-specified BigQuery table.
+message TransformationDetails {
+ // The name of the job that completed the transformation.
+ string resource_name = 1;
+
+ // The top level name of the container where the transformation is located
+ // (this will be the source file name or table name).
+ string container_name = 2;
+
+ // Description of transformation. This would only contain more than one
+ // element if there were multiple matching transformations and which one to
+ // apply was ambiguous. Not set for states that contain no transformation,
+ // currently only state that contains no transformation is
+ // TransformationResultStateType.METADATA_UNRETRIEVABLE.
+ repeated TransformationDescription transformation = 3;
+
+ // Status of the transformation, if transformation was not successful, this
+ // will specify what caused it to fail, otherwise it will show that the
+ // transformation was successful.
+ TransformationResultStatus status_details = 4;
+
+ // The number of bytes that were transformed. If transformation was
+ // unsuccessful or did not take place because there was no content to
+ // transform, this will be zero.
+ int64 transformed_bytes = 5;
+
+ // The precise location of the transformed content in the original container.
+ TransformationLocation transformation_location = 6;
+}
+
+// Specifies the location of a transformation.
+message TransformationLocation {
+ oneof location_type {
+ // For infotype transformations, link to the corresponding findings ID so
+ // that location information does not need to be duplicated. Each findings
+ // ID correlates to an entry in the findings output table, this table only
+ // gets created when users specify to save findings (add the save findings
+ // action to the request).
+ string finding_id = 1;
+
+ // For record transformations, provide a field and container information.
+ RecordTransformation record_transformation = 2;
+ }
+
+ // Information about the functionality of the container where this finding
+ // occurred, if available.
+ TransformationContainerType container_type = 3;
+}
+
+message RecordTransformation {
+ // For record transformations, provide a field.
+ FieldId field_id = 1;
+
+ // Findings container modification timestamp, if applicable.
+ google.protobuf.Timestamp container_timestamp = 2;
+
+ // Container version, if available ("generation" for Cloud Storage).
+ string container_version = 3;
+}
+
+message TransformationResultStatus {
+ // Transformation result status type, this will be either SUCCESS, or it will
+ // be the reason for why the transformation was not completely successful.
+ TransformationResultStatusType result_status_type = 1;
+
+ // Detailed error codes and messages
+ google.rpc.Status details = 2;
+}
+
+// Enum of possible outcomes of transformations. SUCCESS if transformation and
+// storing of transformation was successful, otherwise, reason for not
+// transforming.
+enum TransformationResultStatusType {
+ STATE_TYPE_UNSPECIFIED = 0;
+
+ // This will be set when a finding could not be transformed (i.e. outside user
+ // set bucket range).
+ INVALID_TRANSFORM = 1;
+
+ // This will be set when a BigQuery transformation was successful but could
+ // not be stored back in BigQuery because the transformed row exceeds
+ // BigQuery's max row size.
+ BIGQUERY_MAX_ROW_SIZE_EXCEEDED = 2;
+
+ // This will be set when there is a finding in the custom metadata of a file,
+ // but at the write time of the transformed file, this key / value pair is
+ // unretrievable.
+ METADATA_UNRETRIEVABLE = 3;
+
+ // This will be set when the transformation and storing of it is successful.
+ SUCCESS = 4;
+}
+
+// Describes functionality of a given container in its original format.
+enum TransformationContainerType {
+ TRANSFORM_UNKNOWN_CONTAINER = 0;
+
+ TRANSFORM_BODY = 1;
+
+ TRANSFORM_METADATA = 2;
+
+ TRANSFORM_TABLE = 3;
+}
+
+// An enum of rules that can be used to transform a value. Can be a
+// record suppression, or one of the transformation rules specified under
+// `PrimitiveTransformation`.
+enum TransformationType {
+ // Unused
+ TRANSFORMATION_TYPE_UNSPECIFIED = 0;
+
+ // Record suppression
+ RECORD_SUPPRESSION = 1;
+
+ // Replace value
+ REPLACE_VALUE = 2;
+
+ // Replace value using a dictionary.
+ REPLACE_DICTIONARY = 15;
+
+ // Redact
+ REDACT = 3;
+
+ // Character mask
+ CHARACTER_MASK = 4;
+
+ // FFX-FPE
+ CRYPTO_REPLACE_FFX_FPE = 5;
+
+ // Fixed size bucketing
+ FIXED_SIZE_BUCKETING = 6;
+
+ // Bucketing
+ BUCKETING = 7;
+
+ // Replace with info type
+ REPLACE_WITH_INFO_TYPE = 8;
+
+ // Time part
+ TIME_PART = 9;
+
+ // Crypto hash
+ CRYPTO_HASH = 10;
+
+ // Date shift
+ DATE_SHIFT = 12;
+
+ // Deterministic crypto
+ CRYPTO_DETERMINISTIC_CONFIG = 13;
+
+ // Redact image
+ REDACT_IMAGE = 14;
+}
+
+// Config for storing transformation details.
+message TransformationDetailsStorageConfig {
+ // Location to store the transformation summary.
+ oneof type {
+ // The BigQuery table in which to store the output. This may be an existing
+ // table or in a new table in an existing dataset.
+ // If table_id is not set a new one will be generated for you with the
+ // following format:
+ // dlp_googleapis_transformation_details_yyyy_mm_dd_[dlp_job_id]. Pacific
+ // time zone will be used for generating the date details.
+ BigQueryTable table = 1;
+ }
+}
+
// Schedule for inspect job triggers.
message Schedule {
oneof option {
- // With this option a job is started a regular periodic basis. For
+ // With this option a job is started on a regular periodic basis. For
// example: every day (86400 seconds).
//
// A scheduled start time will be skipped if the previous
@@ -3302,7 +3588,7 @@ message Action {
OutputStorageConfig output_config = 1;
}
- // Publish a message into given Pub/Sub topic when DlpJob has completed. The
+ // Publish a message into a given Pub/Sub topic when DlpJob has completed. The
// message contains a single field, `DlpJobName`, which is equal to the
// finished job's
// [`DlpJob.name`](https://cloud.google.com/dlp/docs/reference/rest/v2/projects.dlpJobs#DlpJob).
@@ -3320,31 +3606,88 @@ message Action {
// This action is only available for projects which are parts of
// an organization and whitelisted for the alpha Cloud Security Command
// Center.
- // The action will publish count of finding instances and their info types.
- // The summary of findings will be persisted in CSCC and are governed by CSCC
- // service-specific policy, see https://cloud.google.com/terms/service-terms
- // Only a single instance of this action can be specified.
- // Compatible with: Inspect
+ // The action will publish the count of finding instances and their info
+ // types. The summary of findings will be persisted in CSCC and are governed
+ // by CSCC service-specific policy, see
+ // https://cloud.google.com/terms/service-terms Only a single instance of this
+ // action can be specified. Compatible with: Inspect
message PublishSummaryToCscc {
}
- // Publish findings of a DlpJob to Data Catalog. Labels summarizing the
- // results of the DlpJob will be applied to the entry for the resource scanned
- // in Data Catalog. Any labels previously written by another DlpJob will
- // be deleted. InfoType naming patterns are strictly enforced when using this
- // feature. Note that the findings will be persisted in Data Catalog
- // storage and are governed by Data Catalog service-specific policy, see
- // https://cloud.google.com/terms/service-terms
- // Only a single instance of this action can be specified and only allowed if
- // all resources being scanned are BigQuery tables.
+ // Publish findings of a DlpJob to Data Catalog. In Data Catalog, tag
+ // templates are applied to the resource that Cloud DLP scanned. Data
+ // Catalog tag templates are stored in the same project and region where the
+ // BigQuery table exists. For Cloud DLP to create and apply the tag template,
+ // the Cloud DLP service agent must have the
+ // `roles/datacatalog.tagTemplateOwner` permission on the project. The tag
+ // template contains fields summarizing the results of the DlpJob. Any field
+ // values previously written by another DlpJob are deleted. [InfoType naming
+ // patterns][google.privacy.dlp.v2.InfoType] are strictly enforced when using
+ // this feature.
+ //
+ // Findings are persisted in Data Catalog storage and are governed by
+ // service-specific policies for Data Catalog. For more information, see
+ // [Service Specific Terms](https://cloud.google.com/terms/service-terms).
+ //
+ // Only a single instance of this action can be specified. This action is
+ // allowed only if all resources being scanned are BigQuery tables.
// Compatible with: Inspect
message PublishFindingsToCloudDataCatalog {
}
- // Enable email notification to project owners and editors on jobs's
- // completion/failure.
+ // Create a de-identified copy of the requested table or files.
+ //
+ // A TransformationDetail will be created for each transformation.
+ //
+ // If any rows in BigQuery are skipped during de-identification
+ // (transformation errors or row size exceeds BigQuery insert API limits) they
+ // are placed in the failure output table. If the original row exceeds
+ // the BigQuery insert API limit it will be truncated when written to the
+ // failure output table. The failure output table can be set in the
+ // action.deidentify.output.big_query_output.deidentified_failure_output_table
+ // field, if no table is set, a table will be automatically created in the
+ // same project and dataset as the original table.
+ //
+ // Compatible with: Inspect
+ message Deidentify {
+ // User specified deidentify templates and configs for structured,
+ // unstructured, and image files.
+ TransformationConfig transformation_config = 7;
+
+ // Config for storing transformation details. This is separate from the
+ // de-identified content, and contains metadata about the successful
+ // transformations and/or failures that occurred while de-identifying. This
+ // needs to be set in order for users to access information about the status
+ // of each transformation (see
+ // [TransformationDetails][google.privacy.dlp.v2.TransformationDetails]
+ // message for more information about what is noted).
+ TransformationDetailsStorageConfig transformation_details_storage_config = 3;
+
+ oneof output {
+ // Required. User settable Cloud Storage bucket and folders to store de-identified
+ // files. This field must be set for cloud storage deidentification. The
+ // output Cloud Storage bucket must be different from the input bucket.
+ // De-identified files will overwrite files in the output path.
+ //
+ // Form of: gs://bucket/folder/ or gs://bucket
+ string cloud_storage_output = 9 [(google.api.field_behavior) = REQUIRED];
+ }
+
+ // List of user-specified file type groups to transform. If specified, only
+ // the files with these filetypes will be transformed. If empty, all
+ // supported files will be transformed. Supported types may be automatically
+ // added over time. If a file type is set in this field that isn't supported
+ // by the Deidentify action then the job will fail and will not be
+ // successfully created/started. Currently the only filetypes supported are:
+ // IMAGES, TEXT_FILES, CSV, TSV.
+ repeated FileType file_types_to_transform = 8;
+ }
+
+ // Sends an email when the job completes. The email goes to IAM project owners
+ // and technical [Essential
+ // Contacts](https://cloud.google.com/resource-manager/docs/managing-notification-contacts).
message JobNotificationEmails {
}
@@ -3361,7 +3704,7 @@ message Action {
// Save resulting findings in a provided location.
SaveFindings save_findings = 1;
- // Publish a notification to a pubsub topic.
+ // Publish a notification to a Pub/Sub topic.
PublishToPubSub pub_sub = 2;
// Publish summary to Cloud Security Command Center (Alpha).
@@ -3370,6 +3713,9 @@ message Action {
// Publish findings to Cloud Datahub.
PublishFindingsToCloudDataCatalog publish_findings_to_cloud_data_catalog = 5;
+ // Create a de-identified copy of the input data.
+ Deidentify deidentify = 7;
+
// Enable email notification for project owners and editors on job's
// completion/failure.
JobNotificationEmails job_notification_emails = 8;
@@ -3379,6 +3725,34 @@ message Action {
}
}
+// User specified templates and configs for how to deidentify structured,
+// unstructures, and image files. User must provide either a unstructured
+// deidentify template or at least one redact image config.
+message TransformationConfig {
+ // De-identify template.
+ // If this template is specified, it will serve as the default de-identify
+ // template. This template cannot contain `record_transformations` since it
+ // can be used for unstructured content such as free-form text files. If this
+ // template is not set, a default `ReplaceWithInfoTypeConfig` will be used to
+ // de-identify unstructured content.
+ string deidentify_template = 1;
+
+ // Structured de-identify template.
+ // If this template is specified, it will serve as the de-identify template
+ // for structured content such as delimited files and tables. If this template
+ // is not set but the `deidentify_template` is set, then `deidentify_template`
+ // will also apply to the structured content. If neither template is set, a
+ // default `ReplaceWithInfoTypeConfig` will be used to de-identify structured
+ // content.
+ string structured_deidentify_template = 2;
+
+ // Image redact template.
+ // If this template is specified, it will serve as the de-identify template
+ // for images. If this template is not set, all findings in the image will be
+ // redacted with a black box.
+ string image_redact_template = 4;
+}
+
// Request message for CreateInspectTemplate.
message CreateInspectTemplateRequest {
// Required. Parent resource name.
@@ -3486,7 +3860,7 @@ message ListInspectTemplatesRequest {
// to `ListInspectTemplates`.
string page_token = 2;
- // Size of the page, can be limited by server. If zero server returns
+ // Size of the page, can be limited by the server. If zero server returns
// a page of max size 100.
int32 page_size = 3;
@@ -3499,10 +3873,10 @@ message ListInspectTemplatesRequest {
//
// Supported fields are:
//
- // - `create_time`: corresponds to time the template was created.
- // - `update_time`: corresponds to time the template was last updated.
- // - `name`: corresponds to template's name.
- // - `display_name`: corresponds to template's display name.
+ // - `create_time`: corresponds to the time the template was created.
+ // - `update_time`: corresponds to the time the template was last updated.
+ // - `name`: corresponds to the template's name.
+ // - `display_name`: corresponds to the template's display name.
string order_by = 4;
// Deprecated. This field has no effect.
@@ -3701,11 +4075,11 @@ message ListJobTriggersRequest {
//
// Supported fields are:
//
- // - `create_time`: corresponds to time the JobTrigger was created.
- // - `update_time`: corresponds to time the JobTrigger was last updated.
+ // - `create_time`: corresponds to the time the JobTrigger was created.
+ // - `update_time`: corresponds to the time the JobTrigger was last updated.
// - `last_run_time`: corresponds to the last time the JobTrigger ran.
- // - `name`: corresponds to JobTrigger's name.
- // - `display_name`: corresponds to JobTrigger's display name.
+ // - `name`: corresponds to the JobTrigger's name.
+ // - `display_name`: corresponds to the JobTrigger's display name.
// - `status`: corresponds to JobTrigger's status.
string order_by = 4;
@@ -3932,7 +4306,7 @@ message DlpJob {
// The job is no longer running.
DONE = 3;
- // The job was canceled before it could complete.
+ // The job was canceled before it could be completed.
CANCELED = 4;
// The job had an error and did not complete.
@@ -3940,7 +4314,7 @@ message DlpJob {
// The job is currently accepting findings via hybridInspect.
// A hybrid job in ACTIVE state may continue to have findings added to it
- // through calling of hybridInspect. After the job has finished no more
+ // through the calling of hybridInspect. After the job has finished no more
// calls to hybridInspect may be made. ACTIVE jobs can transition to DONE.
ACTIVE = 6;
}
@@ -4026,13 +4400,13 @@ message ListDlpJobsRequest {
// * Supported fields/values for inspect jobs:
// - `state` - PENDING|RUNNING|CANCELED|FINISHED|FAILED
// - `inspected_storage` - DATASTORE|CLOUD_STORAGE|BIGQUERY
- // - `trigger_name` - The resource name of the trigger that created job.
- // - 'end_time` - Corresponds to time the job finished.
- // - 'start_time` - Corresponds to time the job finished.
+ // - `trigger_name` - The name of the trigger that created the job.
+ // - 'end_time` - Corresponds to the time the job finished.
+ // - 'start_time` - Corresponds to the time the job finished.
// * Supported fields for risk analysis jobs:
// - `state` - RUNNING|CANCELED|FINISHED|FAILED
- // - 'end_time` - Corresponds to time the job finished.
- // - 'start_time` - Corresponds to time the job finished.
+ // - 'end_time` - Corresponds to the time the job finished.
+ // - 'start_time` - Corresponds to the time the job finished.
// * The operator must be `=` or `!=`.
//
// Examples:
@@ -4063,9 +4437,9 @@ message ListDlpJobsRequest {
//
// Supported fields are:
//
- // - `create_time`: corresponds to time the job was created.
- // - `end_time`: corresponds to time the job ended.
- // - `name`: corresponds to job's name.
+ // - `create_time`: corresponds to the time the job was created.
+ // - `end_time`: corresponds to the time the job ended.
+ // - `name`: corresponds to the job's name.
// - `state`: corresponds to `state`
string order_by = 6;
@@ -4222,7 +4596,7 @@ message ListDeidentifyTemplatesRequest {
// to `ListDeidentifyTemplates`.
string page_token = 2;
- // Size of the page, can be limited by server. If zero server returns
+ // Size of the page, can be limited by the server. If zero server returns
// a page of max size 100.
int32 page_size = 3;
@@ -4235,10 +4609,10 @@ message ListDeidentifyTemplatesRequest {
//
// Supported fields are:
//
- // - `create_time`: corresponds to time the template was created.
- // - `update_time`: corresponds to time the template was last updated.
- // - `name`: corresponds to template's name.
- // - `display_name`: corresponds to template's display name.
+ // - `create_time`: corresponds to the time the template was created.
+ // - `update_time`: corresponds to the time the template was last updated.
+ // - `name`: corresponds to the template's name.
+ // - `display_name`: corresponds to the template's display name.
string order_by = 4;
// Deprecated. This field has no effect.
@@ -4272,11 +4646,11 @@ message DeleteDeidentifyTemplateRequest {
// Configuration for a custom dictionary created from a data source of any size
// up to the maximum size defined in the
// [limits](https://cloud.google.com/dlp/limits) page. The artifacts of
-// dictionary creation are stored in the specified Google Cloud Storage
+// dictionary creation are stored in the specified Cloud Storage
// location. Consider using `CustomInfoType.Dictionary` for smaller dictionaries
// that satisfy the size requirements.
message LargeCustomDictionaryConfig {
- // Location to store dictionary artifacts in Google Cloud Storage. These files
+ // Location to store dictionary artifacts in Cloud Storage. These files
// will only be accessible by project owners and the DLP API. If any of these
// artifacts are modified, the dictionary is considered invalid and can no
// longer be used.
@@ -4349,7 +4723,7 @@ message StoredInfoTypeVersion {
// appearing first.
//
// For example, some of the data for stored custom dictionaries is put in
- // the user's Google Cloud Storage bucket, and if this data is modified or
+ // the user's Cloud Storage bucket, and if this data is modified or
// deleted by the user or another system, the dictionary becomes invalid.
//
// If any errors occur, fix the problem indicated by the error message and
@@ -4472,10 +4846,6 @@ message ListStoredInfoTypesRequest {
// `projects/`PROJECT_ID`/locations/`LOCATION_ID
// + Projects scope, no location specified (defaults to global):
// `projects/`PROJECT_ID
- // + Organizations scope, location specified:
- // `organizations/`ORG_ID`/locations/`LOCATION_ID
- // + Organizations scope, no location specified (defaults to global):
- // `organizations/`ORG_ID
//
// The following example `parent` string specifies a parent project with the
// identifier `example-project`, and specifies the `europe-west3` location
@@ -4493,7 +4863,7 @@ message ListStoredInfoTypesRequest {
// to `ListStoredInfoTypes`.
string page_token = 2;
- // Size of the page, can be limited by server. If zero server returns
+ // Size of the page, can be limited by the server. If zero server returns
// a page of max size 100.
int32 page_size = 3;
@@ -4506,7 +4876,7 @@ message ListStoredInfoTypesRequest {
//
// Supported fields are:
//
- // - `create_time`: corresponds to time the most recent version of the
+ // - `create_time`: corresponds to the time the most recent version of the
// resource was created.
// - `state`: corresponds to the state of the resource.
// - `name`: corresponds to resource name.
@@ -4750,33 +5120,7 @@ enum StoredInfoTypeState {
}
// Score is a summary of all elements in the data profile.
-// A higher number means more sensitive.
-message SensitivityScore {
- // Various score levels for resources.
- enum SensitivityScoreLevel {
- // Unused.
- SENSITIVITY_SCORE_UNSPECIFIED = 0;
-
- // No sensitive information detected. Limited access.
- SENSITIVITY_LOW = 10;
-
- // Medium risk - PII, potentially sensitive data, or fields with free-text
- // data that are at higher risk of having intermittent sensitive data.
- // Consider limiting access.
- SENSITIVITY_MODERATE = 20;
-
- // High risk – SPII may be present. Exfiltration of data may lead to user
- // data loss. Re-identification of users may be possible. Consider limiting
- // usage and or removing SPII.
- SENSITIVITY_HIGH = 30;
- }
-
- // The score applied to the resource.
- SensitivityScoreLevel score = 1;
-}
-
-// Score is a summary of all elements in the data profile.
-// A higher number means more risky.
+// A higher number means more risk.
message DataRiskLevel {
// Various score levels for resources.
enum DataRiskLevelScore {
@@ -4789,8 +5133,8 @@ message DataRiskLevel {
RISK_LOW = 10;
// Medium risk - Sensitive data may be present but additional access or fine
- // grain access restrictions appears to be present. Consider limiting
- // access even further or transforming data to mask.
+ // grain access restrictions appear to be present. Consider limiting
+ // access even further or transform data to mask.
RISK_MODERATE = 20;
// High risk – SPII may be present. Access controls may include public
@@ -4947,15 +5291,23 @@ enum EncryptionStatus {
message InfoTypeSummary {
// The infoType.
InfoType info_type = 1;
+
+ // Approximate percentage of non-null rows that contained data detected by
+ // this infotype.
+ int32 estimated_prevalence = 2;
}
// Infotype details for other infoTypes found within a column.
message OtherInfoTypeSummary {
// The other infoType.
InfoType info_type = 1;
+
+ // Approximate percentage of non-null rows that contained data detected by
+ // this infotype.
+ int32 estimated_prevalence = 2;
}
-// A condition for determining whether a PubSub should be triggered.
+// A condition for determining whether a Pub/Sub should be triggered.
message DataProfilePubSubCondition {
// Various score levels for resources.
enum ProfileScoreBucket {
@@ -5006,10 +5358,9 @@ message DataProfilePubSubCondition {
PubSubExpressions expressions = 1;
}
-// The message that will be published to a Pub/Sub topic.
+// Pub/Sub topic message for a DataProfileAction.PubSubNotification event.
// To receive a message of protocol buffer schema type, convert the message data
// to an object of this proto class.
-// https://cloud.google.com/pubsub/docs/samples/pubsub-subscribe-proto-messages
message DataProfilePubSubMessage {
// If `DetailLevel` is `TABLE_PROFILE` this will be fully populated.
// Otherwise, if `DetailLevel` is `RESOURCE_NAME`, then only `name` and
diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/proto/google/privacy/dlp/v2/storage.proto b/java-dlp/proto-google-cloud-dlp-v2/src/main/proto/google/privacy/dlp/v2/storage.proto
index a0002b33f561..7709f546be5b 100644
--- a/java-dlp/proto-google-cloud-dlp-v2/src/main/proto/google/privacy/dlp/v2/storage.proto
+++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/proto/google/privacy/dlp/v2/storage.proto
@@ -16,6 +16,7 @@ syntax = "proto3";
package google.privacy.dlp.v2;
+import "google/api/resource.proto";
import "google/protobuf/timestamp.proto";
option csharp_namespace = "Google.Cloud.Dlp.V2";
@@ -39,6 +40,32 @@ message InfoType {
string version = 2;
}
+// Score is a summary of all elements in the data profile.
+// A higher number means more sensitive.
+message SensitivityScore {
+ // Various score levels for resources.
+ enum SensitivityScoreLevel {
+ // Unused.
+ SENSITIVITY_SCORE_UNSPECIFIED = 0;
+
+ // No sensitive information detected. Limited access.
+ SENSITIVITY_LOW = 10;
+
+ // Medium risk - PII, potentially sensitive data, or fields with free-text
+ // data that are at higher risk of having intermittent sensitive data.
+ // Consider limiting access.
+ SENSITIVITY_MODERATE = 20;
+
+ // High risk – SPII may be present. Exfiltration of data may lead to user
+ // data loss. Re-identification of users may be possible. Consider limiting
+ // usage and or removing SPII.
+ SENSITIVITY_HIGH = 30;
+ }
+
+ // The score applied to the resource.
+ SensitivityScoreLevel score = 1;
+}
+
// 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 {
@@ -411,7 +438,7 @@ message CloudStorageRegexFileSet {
repeated string exclude_regex = 3;
}
-// Options defining a file or a set of files within a Google Cloud Storage
+// Options defining a file or a set of files within a Cloud Storage
// bucket.
message CloudStorageOptions {
// Set of files to scan.
@@ -547,7 +574,7 @@ message BigQueryOptions {
// Shared message indicating Cloud storage type.
message StorageConfig {
// Configuration of the timespan of the items to include in scanning.
- // Currently only supported when inspecting Google Cloud Storage and BigQuery.
+ // Currently only supported when inspecting Cloud Storage and BigQuery.
message TimespanConfig {
// Exclude files, tables, or rows older than this value.
// If not set, no lower time limit is applied.
@@ -560,7 +587,8 @@ message StorageConfig {
// Specification of the field containing the timestamp of scanned items.
// Used for data sources like Datastore and BigQuery.
//
- // For BigQuery:
+ // For BigQuery
+ //
// If this value is not specified and the table was modified between the
// given start and end times, the entire table will be scanned. If this
// value is specified, then rows are filtered based on the given start and
@@ -569,17 +597,34 @@ message StorageConfig {
// Valid data types of the provided BigQuery column are: `INTEGER`, `DATE`,
// `TIMESTAMP`, and `DATETIME`.
//
- // For Datastore:
+ // If your BigQuery table is [partitioned at ingestion
+ // time](https://cloud.google.com/bigquery/docs/partitioned-tables#ingestion_time),
+ // you can use any of the following pseudo-columns as your timestamp field.
+ // When used with Cloud DLP, these pseudo-column names are case sensitive.
+ //
+ //
+ //
+ //
+ // For Datastore
+ //
// If this value is specified, then entities are filtered based on the given
// start and end times. If an entity does not contain the provided timestamp
// property or contains empty or invalid values, then it is included.
// Valid data types of the provided timestamp property are: `TIMESTAMP`.
+ //
+ // See the
+ // [known issue](https://cloud.google.com/dlp/docs/known-issues#bq-timespan)
+ // related to this operation.
FieldId timestamp_field = 3;
// When the job is started by a JobTrigger we will automatically figure out
// a valid start_time to avoid scanning files that have not been modified
// since the last time the JobTrigger executed. This will be based on the
- // time of the execution of the last run of the JobTrigger.
+ // time of the execution of the last run of the JobTrigger or the timespan
+ // end_time used in the last run of the JobTrigger.
bool enable_auto_population_of_timespan_config = 4;
}
@@ -587,7 +632,7 @@ message StorageConfig {
// Google Cloud Datastore options.
DatastoreOptions datastore_options = 2;
- // Google Cloud Storage options.
+ // Cloud Storage options.
CloudStorageOptions cloud_storage_options = 3;
// BigQuery options.
_PARTITIONTIME
_PARTITIONDATE
_PARTITION_LOAD_TIME