From cd0271d9a92267855f2073941325b964e484248a 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:30:22 +0000 Subject: [PATCH] feat: add Deidentify action (#977) - [ ] 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: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiOTZiYTE3MzFjNzEyYTY5Mzk5NWRlNzUzNzg5NDg3ODFhZjI4MzczOSJ9 --- .../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 +- 91 files changed, 23493 insertions(+), 2260 deletions(-) create mode 100644 proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ImageTransformations.java create mode 100644 proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ImageTransformationsOrBuilder.java create mode 100644 proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/RecordTransformation.java create mode 100644 proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/RecordTransformationOrBuilder.java create mode 100644 proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TransformationConfig.java create mode 100644 proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TransformationConfigOrBuilder.java create mode 100644 proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TransformationContainerType.java create mode 100644 proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TransformationDescription.java create mode 100644 proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TransformationDescriptionOrBuilder.java create mode 100644 proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TransformationDetails.java create mode 100644 proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TransformationDetailsOrBuilder.java create mode 100644 proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TransformationDetailsStorageConfig.java create mode 100644 proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TransformationDetailsStorageConfigOrBuilder.java create mode 100644 proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TransformationLocation.java create mode 100644 proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TransformationLocationOrBuilder.java create mode 100644 proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TransformationResultStatus.java create mode 100644 proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TransformationResultStatusOrBuilder.java create mode 100644 proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TransformationResultStatusType.java create mode 100644 proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TransformationType.java create mode 100644 proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/VersionDescription.java create mode 100644 proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/VersionDescriptionOrBuilder.java diff --git a/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/DlpServiceClient.java b/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/DlpServiceClient.java index 2a7392d8..a257231c 100644 --- a/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/DlpServiceClient.java +++ b/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/DlpServiceClient.java @@ -528,7 +528,7 @@ public final ReidentifyContentResponse reidentifyContent(ReidentifyContentReques // 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: @@ -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 listInfo // 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: @@ -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 deleteInspectTem // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a DeidentifyTemplate for re-using frequently used configuration for de-identifying + * 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. * @@ -1636,7 +1636,7 @@ public final DeidentifyTemplate createDeidentifyTemplate( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a DeidentifyTemplate for re-using frequently used configuration for de-identifying + * 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. * @@ -1683,7 +1683,7 @@ public final DeidentifyTemplate createDeidentifyTemplate( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a DeidentifyTemplate for re-using frequently used configuration for de-identifying + * 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. * @@ -1730,7 +1730,7 @@ public final DeidentifyTemplate createDeidentifyTemplate( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a DeidentifyTemplate for re-using frequently used configuration for de-identifying + * 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. * @@ -1777,7 +1777,7 @@ public final DeidentifyTemplate createDeidentifyTemplate( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a DeidentifyTemplate for re-using frequently used configuration for de-identifying + * 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. * @@ -1824,7 +1824,7 @@ public final DeidentifyTemplate createDeidentifyTemplate( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a DeidentifyTemplate for re-using frequently used configuration for de-identifying + * 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. * @@ -1855,7 +1855,7 @@ public final DeidentifyTemplate createDeidentifyTemplate( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a DeidentifyTemplate for re-using frequently used configuration for de-identifying + * 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. * @@ -4142,7 +4142,7 @@ public final UnaryCallable getDlpJobCallable() { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * 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 possible. See + * 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. * @@ -4169,7 +4169,7 @@ public final void deleteDlpJob(DlpJobName name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * 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 possible. See + * 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. * @@ -4195,7 +4195,7 @@ public final void deleteDlpJob(String name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * 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 possible. See + * 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. * @@ -4223,7 +4223,7 @@ public final void deleteDlpJob(DeleteDlpJobRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * 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 possible. See + * 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. * @@ -4871,11 +4871,7 @@ public final UnaryCallable getStoredIn *

+ 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/grpc-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DlpServiceGrpc.java b/grpc-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DlpServiceGrpc.java index 6f4b5922..d5f3bc09 100644 --- a/grpc-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DlpServiceGrpc.java +++ b/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(
      *
      * 
      * 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(
      *
      *
      * 
-     * 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/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/Action.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/Action.java
index cf357f4e..a53a5ea9 100644
--- a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/Action.java
+++ b/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
    *
    *
    * 
-   * 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(
      *
      *
      * 
-     * 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 *
* * Protobuf type {@code google.privacy.dlp.v2.Action.PublishSummaryToCscc} @@ -2146,15 +2162,21 @@ public interface PublishFindingsToCloudDataCatalogOrBuilder * * *
-   * 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 PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PublishFindingsToCloudDataCatalog parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PublishFindingsToCloudDataCatalog(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface DeidentifyOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.privacy.dlp.v2.Action.Deidentify) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * 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 getFileTypesToTransformList(); + /** + * + * + *
+     * 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 getFileTypesToTransformValueList(); + /** + * + * + *
+     * 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(); + mutable_bitField0_ |= 0x00000001; + } + fileTypesToTransform_.add(rawValue); + break; + } + case 66: + { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while (input.getBytesUntilLimit() > 0) { + int rawValue = input.readEnum(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + fileTypesToTransform_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + fileTypesToTransform_.add(rawValue); + } + input.popLimit(oldLimit); + break; + } + case 74: + { + java.lang.String s = input.readStringRequireUtf8(); + outputCase_ = 9; + output_ = 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 { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + fileTypesToTransform_ = java.util.Collections.unmodifiableList(fileTypesToTransform_); + } + 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_Action_Deidentify_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_Action_Deidentify_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.privacy.dlp.v2.Action.Deidentify.class, + com.google.privacy.dlp.v2.Action.Deidentify.Builder.class); + } + + private int outputCase_ = 0; + private java.lang.Object output_; + + public enum OutputCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + CLOUD_STORAGE_OUTPUT(9), + OUTPUT_NOT_SET(0); + private final int value; + + private OutputCase(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 OutputCase valueOf(int value) { + return forNumber(value); + } + + public static OutputCase forNumber(int value) { + switch (value) { + case 9: + return CLOUD_STORAGE_OUTPUT; + case 0: + return OUTPUT_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public OutputCase getOutputCase() { + return OutputCase.forNumber(outputCase_); + } + + public static final int TRANSFORMATION_CONFIG_FIELD_NUMBER = 7; + private com.google.privacy.dlp.v2.TransformationConfig transformationConfig_; + /** + * + * + *
+     * 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 fileTypesToTransform_; + private static final com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.privacy.dlp.v2.FileType> + fileTypesToTransform_converter_ = + new com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.privacy.dlp.v2.FileType>() { + public com.google.privacy.dlp.v2.FileType convert(java.lang.Integer from) { + @SuppressWarnings("deprecation") + com.google.privacy.dlp.v2.FileType result = + com.google.privacy.dlp.v2.FileType.valueOf(from); + return result == null ? com.google.privacy.dlp.v2.FileType.UNRECOGNIZED : result; + } + }; + /** + * + * + *
+     * 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 getFileTypesToTransformList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.privacy.dlp.v2.FileType>( + fileTypesToTransform_, fileTypesToTransform_converter_); + } + /** + * + * + *
+     * 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 getFileTypesToTransformValueList() { + return fileTypesToTransform_; + } + /** + * + * + *
+     * 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 + implements + // @@protoc_insertion_point(builder_implements:google.privacy.dlp.v2.Action.Deidentify) + com.google.privacy.dlp.v2.Action.DeidentifyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_Action_Deidentify_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_Action_Deidentify_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.privacy.dlp.v2.Action.Deidentify.class, + com.google.privacy.dlp.v2.Action.Deidentify.Builder.class); + } + + // Construct using com.google.privacy.dlp.v2.Action.Deidentify.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (transformationConfigBuilder_ == null) { + transformationConfig_ = null; + } else { + transformationConfig_ = null; + transformationConfigBuilder_ = null; + } + if (transformationDetailsStorageConfigBuilder_ == null) { + transformationDetailsStorageConfig_ = null; + } else { + transformationDetailsStorageConfig_ = null; + transformationDetailsStorageConfigBuilder_ = null; + } + fileTypesToTransform_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + outputCase_ = 0; + output_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_Action_Deidentify_descriptor; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.Action.Deidentify getDefaultInstanceForType() { + return com.google.privacy.dlp.v2.Action.Deidentify.getDefaultInstance(); + } + + @java.lang.Override + public com.google.privacy.dlp.v2.Action.Deidentify build() { + com.google.privacy.dlp.v2.Action.Deidentify result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.Action.Deidentify buildPartial() { + com.google.privacy.dlp.v2.Action.Deidentify result = + new com.google.privacy.dlp.v2.Action.Deidentify(this); + int from_bitField0_ = bitField0_; + if (transformationConfigBuilder_ == null) { + result.transformationConfig_ = transformationConfig_; + } else { + result.transformationConfig_ = transformationConfigBuilder_.build(); + } + if (transformationDetailsStorageConfigBuilder_ == null) { + result.transformationDetailsStorageConfig_ = transformationDetailsStorageConfig_; + } else { + result.transformationDetailsStorageConfig_ = + transformationDetailsStorageConfigBuilder_.build(); + } + if (outputCase_ == 9) { + result.output_ = output_; + } + if (((bitField0_ & 0x00000001) != 0)) { + fileTypesToTransform_ = java.util.Collections.unmodifiableList(fileTypesToTransform_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.fileTypesToTransform_ = fileTypesToTransform_; + result.outputCase_ = outputCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.privacy.dlp.v2.Action.Deidentify) { + return mergeFrom((com.google.privacy.dlp.v2.Action.Deidentify) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.privacy.dlp.v2.Action.Deidentify other) { + if (other == com.google.privacy.dlp.v2.Action.Deidentify.getDefaultInstance()) return this; + if (other.hasTransformationConfig()) { + mergeTransformationConfig(other.getTransformationConfig()); + } + if (other.hasTransformationDetailsStorageConfig()) { + mergeTransformationDetailsStorageConfig(other.getTransformationDetailsStorageConfig()); + } + if (!other.fileTypesToTransform_.isEmpty()) { + if (fileTypesToTransform_.isEmpty()) { + fileTypesToTransform_ = other.fileTypesToTransform_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureFileTypesToTransformIsMutable(); + fileTypesToTransform_.addAll(other.fileTypesToTransform_); + } + onChanged(); + } + switch (other.getOutputCase()) { + case CLOUD_STORAGE_OUTPUT: + { + outputCase_ = 9; + output_ = other.output_; + onChanged(); + break; + } + case OUTPUT_NOT_SET: + { + break; + } + } + 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.Deidentify parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.privacy.dlp.v2.Action.Deidentify) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int outputCase_ = 0; + private java.lang.Object output_; + + public OutputCase getOutputCase() { + return OutputCase.forNumber(outputCase_); + } + + public Builder clearOutput() { + outputCase_ = 0; + output_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.privacy.dlp.v2.TransformationConfig transformationConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.TransformationConfig, + com.google.privacy.dlp.v2.TransformationConfig.Builder, + com.google.privacy.dlp.v2.TransformationConfigOrBuilder> + transformationConfigBuilder_; + /** + * + * + *
+       * 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 fileTypesToTransform_ = + java.util.Collections.emptyList(); + + private void ensureFileTypesToTransformIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + fileTypesToTransform_ = new java.util.ArrayList(fileTypesToTransform_); + bitField0_ |= 0x00000001; + } + } + /** + * + * + *
+       * 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 getFileTypesToTransformList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.privacy.dlp.v2.FileType>( + fileTypesToTransform_, fileTypesToTransform_converter_); + } + /** + * + * + *
+       * 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 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 getFileTypesToTransformValueList() { + return java.util.Collections.unmodifiableList(fileTypesToTransform_); + } + /** + * + * + *
+       * 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 values) { + ensureFileTypesToTransformIsMutable(); + for (int value : values) { + fileTypesToTransform_.add(value); } + onChanged(); return this; } @@ -2575,45 +4847,42 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog) + // @@protoc_insertion_point(builder_scope:google.privacy.dlp.v2.Action.Deidentify) } - // @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog) - private static final com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog - DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.Action.Deidentify) + private static final com.google.privacy.dlp.v2.Action.Deidentify DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog(); + DEFAULT_INSTANCE = new com.google.privacy.dlp.v2.Action.Deidentify(); } - public static com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog - getDefaultInstance() { + public static com.google.privacy.dlp.v2.Action.Deidentify getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { @java.lang.Override - public PublishFindingsToCloudDataCatalog parsePartialFrom( + public Deidentify parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new PublishFindingsToCloudDataCatalog(input, extensionRegistry); + return new Deidentify(input, extensionRegistry); } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog - getDefaultInstanceForType() { + public com.google.privacy.dlp.v2.Action.Deidentify getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } @@ -2626,8 +4895,9 @@ public interface JobNotificationEmailsOrBuilder * * *
-   * 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/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ActionOrBuilder.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ActionOrBuilder.java index b0179083..6c6bfd38 100644 --- a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ActionOrBuilder.java +++ b/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/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/AnalyzeDataSourceRiskDetails.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/AnalyzeDataSourceRiskDetails.java index 59cd0d24..33e5025c 100644 --- a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/AnalyzeDataSourceRiskDetails.java +++ b/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
        *
        * 
        * 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
          *
          * 
          * 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() {
          *
          * 
          * 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/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CharacterMaskConfig.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CharacterMaskConfig.java
index 4e0ba1c0..7e7f3590 100644
--- a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CharacterMaskConfig.java
+++ b/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/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CharacterMaskConfigOrBuilder.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CharacterMaskConfigOrBuilder.java index 3a3f668d..c8b55599 100644 --- a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CharacterMaskConfigOrBuilder.java +++ b/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/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CharsToIgnore.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CharsToIgnore.java index 85c57349..db75c520 100644 --- a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CharsToIgnore.java +++ b/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/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CloudStorageOptions.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CloudStorageOptions.java index aef6599d..ebdbaa78 100644 --- a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CloudStorageOptions.java +++ b/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/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/Container.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/Container.java index 4dfedde7..4f9cbfe2 100644 --- a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/Container.java +++ b/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` *
* @@ -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` *
* @@ -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` *
* @@ -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` *
* @@ -448,10 +448,10 @@ public com.google.protobuf.ByteString getRelativePathBytes() { * * *
-   * 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` *
* @@ -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` *
* @@ -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) { * * *
-     * 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/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ContainerOrBuilder.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ContainerOrBuilder.java index 074399de..2f36fdba 100644 --- a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ContainerOrBuilder.java +++ b/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/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ContentLocation.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ContentLocation.java index 1786d50d..cce9249a 100644 --- a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ContentLocation.java +++ b/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/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ContentLocationOrBuilder.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ContentLocationOrBuilder.java index d37ce023..abe65cc5 100644 --- a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ContentLocationOrBuilder.java +++ b/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/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ContentOption.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ContentOption.java index 48802658..c0467b3d 100644 --- a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ContentOption.java +++ b/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/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CryptoDeterministicConfig.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CryptoDeterministicConfig.java index cbd4989b..a81ae485 100644 --- a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CryptoDeterministicConfig.java +++ b/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/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CryptoDeterministicConfigOrBuilder.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CryptoDeterministicConfigOrBuilder.java index 14513ed4..b3f77dd3 100644 --- a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CryptoDeterministicConfigOrBuilder.java +++ b/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/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CryptoReplaceFfxFpeConfig.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CryptoReplaceFfxFpeConfig.java index dcfeb5fb..d01d1f7b 100644 --- a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CryptoReplaceFfxFpeConfig.java +++ b/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/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CryptoReplaceFfxFpeConfigOrBuilder.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CryptoReplaceFfxFpeConfigOrBuilder.java index 0241d7e2..247e0973 100644 --- a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CryptoReplaceFfxFpeConfigOrBuilder.java +++ b/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/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DataProfilePubSubCondition.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DataProfilePubSubCondition.java index 6f114872..3104aa0e 100644 --- a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DataProfilePubSubCondition.java +++ b/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/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DataProfilePubSubMessage.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DataProfilePubSubMessage.java index 4a9bade7..3c5e18c3 100644 --- a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DataProfilePubSubMessage.java +++ b/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/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DataRiskLevel.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DataRiskLevel.java index 1a147062..db7248c2 100644 --- a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DataRiskLevel.java +++ b/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/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DeidentifyConfig.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DeidentifyConfig.java index 05886c94..8af0b3ea 100644 --- a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DeidentifyConfig.java +++ b/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/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DeidentifyConfigOrBuilder.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DeidentifyConfigOrBuilder.java index c9640fb9..6822488a 100644 --- a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DeidentifyConfigOrBuilder.java +++ b/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/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DeidentifyContentRequest.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DeidentifyContentRequest.java index d1a5e84c..82658168 100644 --- a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DeidentifyContentRequest.java +++ b/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/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DlpJob.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DlpJob.java index 0add1568..b81c989c 100644 --- a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DlpJob.java +++ b/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/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DlpJobType.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DlpJobType.java index ada686bf..cc26c0f4 100644 --- a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DlpJobType.java +++ b/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/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DlpProto.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DlpProto.java index 9e114030..558ceb74 100644 --- a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DlpProto.java +++ b/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\n\013inspect_job\030\004 \001(\0132\'.google.pri" - + "vacy.dlp.v2.InspectJobConfigH\000\022;\n\010trigge" - + "rs\030\005 \003(\0132).google.privacy.dlp.v2.JobTrig" - + "ger.Trigger\0221\n\006errors\030\006 \003(\0132\034.google.pri" - + "vacy.dlp.v2.ErrorB\003\340A\003\0224\n\013create_time\030\007 " + + "e\030\003 \001(\003\022<\n\rbucket_values\030\004 \003(\0132%.google." + + "privacy.dlp.v2.ValueFrequency\022\032\n\022bucket_" + + "value_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.AnalyzeData" + + "SourceRiskDetails.KAnonymityResult.KAnon" + + "ymityHistogramBucket\032t\n\032KAnonymityEquiva" + + "lenceClass\0226\n\020quasi_ids_values\030\001 \003(\0132\034.g" + + "oogle.privacy.dlp.v2.Value\022\036\n\026equivalenc" + + "e_class_size\030\002 \001(\003\032\234\002\n\031KAnonymityHistogr" + + "amBucket\022*\n\"equivalence_class_size_lower" + + "_bound\030\001 \001(\003\022*\n\"equivalence_class_size_u" + + "pper_bound\030\002 \001(\003\022\023\n\013bucket_size\030\003 \001(\003\022v\n" + + "\rbucket_values\030\004 \003(\0132_.google.privacy.dl" + + "p.v2.AnalyzeDataSourceRiskDetails.KAnony" + + "mityResult.KAnonymityEquivalenceClass\022\032\n" + + "\022bucket_value_count\030\005 \001(\003\032\260\005\n\020LDiversity" + + "Result\022\223\001\n+sensitive_value_frequency_his" + + "togram_buckets\030\005 \003(\0132^.google.privacy.dl" + + "p.v2.AnalyzeDataSourceRiskDetails.LDiver" + + "sityResult.LDiversityHistogramBucket\032\340\001\n" + + "\032LDiversityEquivalenceClass\0226\n\020quasi_ids" + + "_values\030\001 \003(\0132\034.google.privacy.dlp.v2.Va" + + "lue\022\036\n\026equivalence_class_size\030\002 \001(\003\022%\n\035n" + + "um_distinct_sensitive_values\030\003 \001(\003\022C\n\024to" + + "p_sensitive_values\030\004 \003(\0132%.google.privac" + + "y.dlp.v2.ValueFrequency\032\242\002\n\031LDiversityHi" + + "stogramBucket\022-\n%sensitive_value_frequen" + + "cy_lower_bound\030\001 \001(\003\022-\n%sensitive_value_" + + "frequency_upper_bound\030\002 \001(\003\022\023\n\013bucket_si" + + "ze\030\003 \001(\003\022v\n\rbucket_values\030\004 \003(\0132_.google" + + ".privacy.dlp.v2.AnalyzeDataSourceRiskDet" + + "ails.LDiversityResult.LDiversityEquivale" + + "nceClass\022\032\n\022bucket_value_count\030\005 \001(\003\032\225\004\n" + + "\024KMapEstimationResult\022\212\001\n\032k_map_estimati" + + "on_histogram\030\001 \003(\0132f.google.privacy.dlp." + + "v2.AnalyzeDataSourceRiskDetails.KMapEsti" + + "mationResult.KMapEstimationHistogramBuck" + + "et\032r\n\033KMapEstimationQuasiIdValues\0226\n\020qua" + + "si_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_" + + "anonymity\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.AnalyzeDataSo" + + "urceRiskDetails.KMapEstimationResult.KMa" + + "pEstimationQuasiIdValues\022\032\n\022bucket_value" + + "_count\030\007 \001(\003\032\344\004\n\035DeltaPresenceEstimation" + + "Result\022\245\001\n#delta_presence_estimation_his" + + "togram\030\001 \003(\0132x.google.privacy.dlp.v2.Ana" + + "lyzeDataSourceRiskDetails.DeltaPresenceE" + + "stimationResult.DeltaPresenceEstimationH" + + "istogramBucket\032}\n$DeltaPresenceEstimatio" + + "nQuasiIdValues\0226\n\020quasi_ids_values\030\001 \003(\013" + + "2\034.google.privacy.dlp.v2.Value\022\035\n\025estima" + + "ted_probability\030\002 \001(\001\032\233\002\n&DeltaPresenceE" + + "stimationHistogramBucket\022\027\n\017min_probabil" + + "ity\030\001 \001(\001\022\027\n\017max_probability\030\002 \001(\001\022\023\n\013bu" + + "cket_size\030\005 \001(\003\022\215\001\n\rbucket_values\030\006 \003(\0132" + + "v.google.privacy.dlp.v2.AnalyzeDataSourc" + + "eRiskDetails.DeltaPresenceEstimationResu" + + "lt.DeltaPresenceEstimationQuasiIdValues\022", + "\032\n\022bucket_value_count\030\007 \001(\003\032`\n\034Requested" + + "RiskAnalysisOptions\022@\n\njob_config\030\001 \001(\0132" + + ",.google.privacy.dlp.v2.RiskAnalysisJobC" + + "onfigB\010\n\006result\"L\n\016ValueFrequency\022+\n\005val" + + "ue\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\014strin" + + "g_value\030\003 \001(\tH\000\022\027\n\rboolean_value\030\004 \001(\010H\000" + + "\0225\n\017timestamp_value\030\005 \001(\0132\032.google.proto" + + "buf.TimestampH\000\022,\n\ntime_value\030\006 \001(\0132\026.go" + + "ogle.type.TimeOfDayH\000\022\'\n\ndate_value\030\007 \001(" + + "\0132\021.google.type.DateH\000\0223\n\021day_of_week_va" + + "lue\030\010 \001(\0162\026.google.type.DayOfWeekH\000B\006\n\004t" + + "ype\"Q\n\tQuoteInfo\0224\n\tdate_time\030\002 \001(\0132\037.go" + + "ogle.privacy.dlp.v2.DateTimeH\000B\016\n\014parsed" + + "_quote\"\337\001\n\010DateTime\022\037\n\004date\030\001 \001(\0132\021.goog" + + "le.type.Date\022+\n\013day_of_week\030\002 \001(\0162\026.goog" + + "le.type.DayOfWeek\022$\n\004time\030\003 \001(\0132\026.google" + + ".type.TimeOfDay\022;\n\ttime_zone\030\004 \001(\0132(.goo" + + "gle.privacy.dlp.v2.DateTime.TimeZone\032\"\n\010" + + "TimeZone\022\026\n\016offset_minutes\030\001 \001(\005\"\362\002\n\020Dei" + + "dentifyConfig\022S\n\031info_type_transformatio" + + "ns\030\001 \001(\0132..google.privacy.dlp.v2.InfoTyp" + + "eTransformationsH\000\022N\n\026record_transformat" + + "ions\030\002 \001(\0132,.google.privacy.dlp.v2.Recor" + + "dTransformationsH\000\022L\n\025image_transformati" + + "ons\030\004 \001(\0132+.google.privacy.dlp.v2.ImageT" + + "ransformationsH\000\022Y\n\035transformation_error" + + "_handling\030\003 \001(\01322.google.privacy.dlp.v2." + + "TransformationErrorHandlingB\020\n\016transform" + + "ation\"\345\004\n\024ImageTransformations\022S\n\ntransf" + + "orms\030\002 \003(\0132?.google.privacy.dlp.v2.Image" + + "Transformations.ImageTransformation\032\367\003\n\023" + + "ImageTransformation\022p\n\023selected_info_typ" + + "es\030\004 \001(\0132Q.google.privacy.dlp.v2.ImageTr" + + "ansformations.ImageTransformation.Select" + + "edInfoTypesH\000\022f\n\016all_info_types\030\005 \001(\0132L." + + "google.privacy.dlp.v2.ImageTransformatio" + + "ns.ImageTransformation.AllInfoTypesH\000\022[\n" + + "\010all_text\030\006 \001(\0132G.google.privacy.dlp.v2." + + "ImageTransformations.ImageTransformation" + + ".AllTextH\000\0225\n\017redaction_color\030\003 \001(\0132\034.go" + + "ogle.privacy.dlp.v2.Color\032M\n\021SelectedInf" + + "oTypes\0228\n\ninfo_types\030\005 \003(\0132\037.google.priv" + + "acy.dlp.v2.InfoTypeB\003\340A\002\032\016\n\014AllInfoTypes" + + "\032\t\n\007AllTextB\010\n\006target\"\205\002\n\033Transformation" + + "ErrorHandling\022T\n\013throw_error\030\001 \001(\0132=.goo" + + "gle.privacy.dlp.v2.TransformationErrorHa" + + "ndling.ThrowErrorH\000\022d\n\023leave_untransform" + + "ed\030\002 \001(\0132E.google.privacy.dlp.v2.Transfo" + + "rmationErrorHandling.LeaveUntransformedH" + + "\000\032\014\n\nThrowError\032\024\n\022LeaveUntransformedB\006\n" + + "\004mode\"\312\007\n\027PrimitiveTransformation\022C\n\016rep" + + "lace_config\030\001 \001(\0132).google.privacy.dlp.v" + + "2.ReplaceValueConfigH\000\022<\n\rredact_config\030" + + "\002 \001(\0132#.google.privacy.dlp.v2.RedactConf" + + "igH\000\022K\n\025character_mask_config\030\003 \001(\0132*.go" + + "ogle.privacy.dlp.v2.CharacterMaskConfigH" + + "\000\022Y\n\035crypto_replace_ffx_fpe_config\030\004 \001(\013" + + "20.google.privacy.dlp.v2.CryptoReplaceFf" + + "xFpeConfigH\000\022V\n\033fixed_size_bucketing_con" + + "fig\030\005 \001(\0132/.google.privacy.dlp.v2.FixedS" + + "izeBucketingConfigH\000\022B\n\020bucketing_config" + + "\030\006 \001(\0132&.google.privacy.dlp.v2.Bucketing" + + "ConfigH\000\022Y\n\035replace_with_info_type_confi" + + "g\030\007 \001(\01320.google.privacy.dlp.v2.ReplaceW" + + "ithInfoTypeConfigH\000\022A\n\020time_part_config\030" + + "\010 \001(\0132%.google.privacy.dlp.v2.TimePartCo" + + "nfigH\000\022E\n\022crypto_hash_config\030\t \001(\0132\'.goo" + + "gle.privacy.dlp.v2.CryptoHashConfigH\000\022C\n" + + "\021date_shift_config\030\013 \001(\0132&.google.privac" + + "y.dlp.v2.DateShiftConfigH\000\022W\n\033crypto_det" + + "erministic_config\030\014 \001(\01320.google.privacy" + + ".dlp.v2.CryptoDeterministicConfigH\000\022S\n\031r" + + "eplace_dictionary_config\030\r \001(\0132..google." + + "privacy.dlp.v2.ReplaceDictionaryConfigH\000" + + "B\020\n\016transformation\"\334\001\n\016TimePartConfig\022G\n" + + "\017part_to_extract\030\001 \001(\0162..google.privacy." + + "dlp.v2.TimePartConfig.TimePart\"\200\001\n\010TimeP" + + "art\022\031\n\025TIME_PART_UNSPECIFIED\020\000\022\010\n\004YEAR\020\001" + + "\022\t\n\005MONTH\020\002\022\020\n\014DAY_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\020CryptoHashConfig\0224\n\ncrypto_key\030\001 \001(" + + "\0132 .google.privacy.dlp.v2.CryptoKey\"\300\001\n\031" + + "CryptoDeterministicConfig\0224\n\ncrypto_key\030" + + "\001 \001(\0132 .google.privacy.dlp.v2.CryptoKey\022" + + "<\n\023surrogate_info_type\030\002 \001(\0132\037.google.pr" + + "ivacy.dlp.v2.InfoType\022/\n\007context\030\003 \001(\0132\036" + + ".google.privacy.dlp.v2.FieldId\"E\n\022Replac" + + "eValueConfig\022/\n\tnew_value\030\001 \001(\0132\034.google" + + ".privacy.dlp.v2.Value\"q\n\027ReplaceDictiona" + + "ryConfig\022N\n\tword_list\030\001 \001(\01329.google.pri" + + "vacy.dlp.v2.CustomInfoType.Dictionary.Wo" + + "rdListH\000B\006\n\004type\"\033\n\031ReplaceWithInfoTypeC" + + "onfig\"\016\n\014RedactConfig\"\266\002\n\rCharsToIgnore\022" + + "\034\n\022characters_to_skip\030\001 \001(\tH\000\022_\n\033common_" + + "characters_to_ignore\030\002 \001(\01628.google.priv" + + "acy.dlp.v2.CharsToIgnore.CommonCharsToIg" + + "noreH\000\"\227\001\n\023CommonCharsToIgnore\022&\n\"COMMON" + + "_CHARS_TO_IGNORE_UNSPECIFIED\020\000\022\013\n\007NUMERI" + + "C\020\001\022\024\n\020ALPHA_UPPER_CASE\020\002\022\024\n\020ALPHA_LOWER" + + "_CASE\020\003\022\017\n\013PUNCTUATION\020\004\022\016\n\nWHITESPACE\020\005" + + "B\014\n\ncharacters\"\243\001\n\023CharacterMaskConfig\022\031" + + "\n\021masking_character\030\001 \001(\t\022\026\n\016number_to_m" + + "ask\030\002 \001(\005\022\025\n\rreverse_order\030\003 \001(\010\022B\n\024char" + + "acters_to_ignore\030\004 \003(\0132$.google.privacy." + + "dlp.v2.CharsToIgnore\"\244\001\n\030FixedSizeBucket" + + "ingConfig\0226\n\013lower_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_size\030\003 \001(\001B\003\340A\002\"\360\001\n\017Bucketin" + + "gConfig\022>\n\007buckets\030\001 \003(\0132-.google.privac" + + "y.dlp.v2.BucketingConfig.Bucket\032\234\001\n\006Buck" + + "et\022)\n\003min\030\001 \001(\0132\034.google.privacy.dlp.v2." + + "Value\022)\n\003max\030\002 \001(\0132\034.google.privacy.dlp." + + "v2.Value\022<\n\021replacement_value\030\003 \001(\0132\034.go" + + "ogle.privacy.dlp.v2.ValueB\003\340A\002\"\371\003\n\031Crypt" + + "oReplaceFfxFpeConfig\0229\n\ncrypto_key\030\001 \001(\013" + + "2 .google.privacy.dlp.v2.CryptoKeyB\003\340A\002\022" + + "/\n\007context\030\002 \001(\0132\036.google.privacy.dlp.v2" + + ".FieldId\022c\n\017common_alphabet\030\004 \001(\0162H.goog" + + "le.privacy.dlp.v2.CryptoReplaceFfxFpeCon" + + "fig.FfxCommonNativeAlphabetH\000\022\031\n\017custom_" + + "alphabet\030\005 \001(\tH\000\022\017\n\005radix\030\006 \001(\005H\000\022<\n\023sur" + + "rogate_info_type\030\010 \001(\0132\037.google.privacy." + + "dlp.v2.InfoType\"\224\001\n\027FfxCommonNativeAlpha" + + "bet\022*\n&FFX_COMMON_NATIVE_ALPHABET_UNSPEC" + + "IFIED\020\000\022\013\n\007NUMERIC\020\001\022\017\n\013HEXADECIMAL\020\002\022\034\n" + + "\030UPPER_CASE_ALPHA_NUMERIC\020\003\022\021\n\rALPHA_NUM" + + "ERIC\020\004B\n\n\010alphabet\"\330\001\n\tCryptoKey\022>\n\ttran" + + "sient\030\001 \001(\0132).google.privacy.dlp.v2.Tran" + + "sientCryptoKeyH\000\022>\n\tunwrapped\030\002 \001(\0132).go" + + "ogle.privacy.dlp.v2.UnwrappedCryptoKeyH\000" + + "\022A\n\013kms_wrapped\030\003 \001(\0132*.google.privacy.d" + + "lp.v2.KmsWrappedCryptoKeyH\000B\010\n\006source\"\'\n" + + "\022TransientCryptoKey\022\021\n\004name\030\001 \001(\tB\003\340A\002\"&" + + "\n\022UnwrappedCryptoKey\022\020\n\003key\030\001 \001(\014B\003\340A\002\"M" + + "\n\023KmsWrappedCryptoKey\022\030\n\013wrapped_key\030\001 \001" + + "(\014B\003\340A\002\022\034\n\017crypto_key_name\030\002 \001(\tB\003\340A\002\"\302\001" + + "\n\017DateShiftConfig\022\035\n\020upper_bound_days\030\001 " + + "\001(\005B\003\340A\002\022\035\n\020lower_bound_days\030\002 \001(\005B\003\340A\002\022" + + "/\n\007context\030\003 \001(\0132\036.google.privacy.dlp.v2" + + ".FieldId\0226\n\ncrypto_key\030\004 \001(\0132 .google.pr" + + "ivacy.dlp.v2.CryptoKeyH\000B\010\n\006method\"\245\002\n\027I" + + "nfoTypeTransformations\022c\n\017transformation" + + "s\030\001 \003(\0132E.google.privacy.dlp.v2.InfoType" + + "Transformations.InfoTypeTransformationB\003" + + "\340A\002\032\244\001\n\026InfoTypeTransformation\0223\n\ninfo_t" + + "ypes\030\001 \003(\0132\037.google.privacy.dlp.v2.InfoT" + + "ype\022U\n\030primitive_transformation\030\002 \001(\0132.." + + "google.privacy.dlp.v2.PrimitiveTransform" + + "ationB\003\340A\002\"\300\002\n\023FieldTransformation\0223\n\006fi" + + "elds\030\001 \003(\0132\036.google.privacy.dlp.v2.Field" + + "IdB\003\340A\002\0229\n\tcondition\030\003 \001(\0132&.google.priv" + + "acy.dlp.v2.RecordCondition\022R\n\030primitive_" + + "transformation\030\004 \001(\0132..google.privacy.dl" + + "p.v2.PrimitiveTransformationH\000\022S\n\031info_t" + + "ype_transformations\030\005 \001(\0132..google.priva" + + "cy.dlp.v2.InfoTypeTransformationsH\000B\020\n\016t" + + "ransformation\"\251\001\n\025RecordTransformations\022" + + "I\n\025field_transformations\030\001 \003(\0132*.google." + + "privacy.dlp.v2.FieldTransformation\022E\n\023re" + + "cord_suppressions\030\002 \003(\0132(.google.privacy" + + ".dlp.v2.RecordSuppression\"N\n\021RecordSuppr" + + "ession\0229\n\tcondition\030\001 \001(\0132&.google.priva" + + "cy.dlp.v2.RecordCondition\"\334\004\n\017RecordCond" + + "ition\022G\n\013expressions\030\003 \001(\01322.google.priv" + + "acy.dlp.v2.RecordCondition.Expressions\032\256" + + "\001\n\tCondition\0222\n\005field\030\001 \001(\0132\036.google.pri" + + "vacy.dlp.v2.FieldIdB\003\340A\002\022@\n\010operator\030\003 \001" + + "(\0162).google.privacy.dlp.v2.RelationalOpe" + + "ratorB\003\340A\002\022+\n\005value\030\004 \001(\0132\034.google.priva" + + "cy.dlp.v2.Value\032R\n\nConditions\022D\n\nconditi" + + "ons\030\001 \003(\01320.google.privacy.dlp.v2.Record" + + "Condition.Condition\032\372\001\n\013Expressions\022\\\n\020l" + + "ogical_operator\030\001 \001(\0162B.google.privacy.d" + + "lp.v2.RecordCondition.Expressions.Logica" + + "lOperator\022G\n\nconditions\030\003 \001(\01321.google.p" + + "rivacy.dlp.v2.RecordCondition.Conditions" + + "H\000\"<\n\017LogicalOperator\022 \n\034LOGICAL_OPERATO" + + "R_UNSPECIFIED\020\000\022\007\n\003AND\020\001B\006\n\004type\"\203\001\n\026Tra" + + "nsformationOverview\022\031\n\021transformed_bytes" + + "\030\002 \001(\003\022N\n\030transformation_summaries\030\003 \003(\013" + + "2,.google.privacy.dlp.v2.TransformationS" + + "ummary\"\237\005\n\025TransformationSummary\0222\n\tinfo" + + "_type\030\001 \001(\0132\037.google.privacy.dlp.v2.Info" + + "Type\022-\n\005field\030\002 \001(\0132\036.google.privacy.dlp" + + ".v2.FieldId\022F\n\016transformation\030\003 \001(\0132..go" + + "ogle.privacy.dlp.v2.PrimitiveTransformat" + + "ion\022I\n\025field_transformations\030\005 \003(\0132*.goo" + + "gle.privacy.dlp.v2.FieldTransformation\022A" + + "\n\017record_suppress\030\006 \001(\0132(.google.privacy" + + ".dlp.v2.RecordSuppression\022K\n\007results\030\004 \003" + + "(\0132:.google.privacy.dlp.v2.Transformatio" + + "nSummary.SummaryResult\022\031\n\021transformed_by" + + "tes\030\007 \001(\003\032\204\001\n\rSummaryResult\022\r\n\005count\030\001 \001" + + "(\003\022S\n\004code\030\002 \001(\0162E.google.privacy.dlp.v2" + + ".TransformationSummary.TransformationRes" + + "ultCode\022\017\n\007details\030\003 \001(\t\"^\n\030Transformati" + + "onResultCode\022*\n&TRANSFORMATION_RESULT_CO" + + "DE_UNSPECIFIED\020\000\022\013\n\007SUCCESS\020\001\022\t\n\005ERROR\020\002" + + "\"\260\001\n\031TransformationDescription\0227\n\004type\030\001" + + " \001(\0162).google.privacy.dlp.v2.Transformat" + + "ionType\022\023\n\013description\030\002 \001(\t\022\021\n\tconditio" + + "n\030\003 \001(\t\0222\n\tinfo_type\030\004 \001(\0132\037.google.priv" + + "acy.dlp.v2.InfoType\"\306\002\n\025TransformationDe" + + "tails\022\025\n\rresource_name\030\001 \001(\t\022\026\n\016containe" + + "r_name\030\002 \001(\t\022H\n\016transformation\030\003 \003(\01320.g" + + "oogle.privacy.dlp.v2.TransformationDescr" + + "iption\022I\n\016status_details\030\004 \001(\01321.google." + + "privacy.dlp.v2.TransformationResultStatu" + + "s\022\031\n\021transformed_bytes\030\005 \001(\003\022N\n\027transfor" + + "mation_location\030\006 \001(\0132-.google.privacy.d" + + "lp.v2.TransformationLocation\"\331\001\n\026Transfo" + + "rmationLocation\022\024\n\nfinding_id\030\001 \001(\tH\000\022L\n" + + "\025record_transformation\030\002 \001(\0132+.google.pr" + + "ivacy.dlp.v2.RecordTransformationH\000\022J\n\016c" + + "ontainer_type\030\003 \001(\01622.google.privacy.dlp" + + ".v2.TransformationContainerTypeB\017\n\rlocat" + + "ion_type\"\234\001\n\024RecordTransformation\0220\n\010fie" + + "ld_id\030\001 \001(\0132\036.google.privacy.dlp.v2.Fiel" + + "dId\0227\n\023container_timestamp\030\002 \001(\0132\032.googl" + + "e.protobuf.Timestamp\022\031\n\021container_versio" + + "n\030\003 \001(\t\"\224\001\n\032TransformationResultStatus\022Q" + + "\n\022result_status_type\030\001 \001(\01625.google.priv" + + "acy.dlp.v2.TransformationResultStatusTyp" + + "e\022#\n\007details\030\002 \001(\0132\022.google.rpc.Status\"c" + + "\n\"TransformationDetailsStorageConfig\0225\n\005" + + "table\030\001 \001(\0132$.google.privacy.dlp.v2.BigQ" + + "ueryTableH\000B\006\n\004type\"U\n\010Schedule\022?\n\032recur" + + "rence_period_duration\030\001 \001(\0132\031.google.pro" + + "tobuf.DurationH\000B\010\n\006option\"\010\n\006Manual\"\302\004\n" + + "\017InspectTemplate\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\024\n\014d" + + "isplay_name\030\002 \001(\t\022\023\n\013description\030\003 \001(\t\0224" + + "\n\013create_time\030\004 \001(\0132\032.google.protobuf.Ti" + + "mestampB\003\340A\003\0224\n\013update_time\030\005 \001(\0132\032.goog" + + "le.protobuf.TimestampB\003\340A\003\022<\n\016inspect_co" + + "nfig\030\006 \001(\0132$.google.privacy.dlp.v2.Inspe" + + "ctConfig:\306\002\352A\302\002\n\"dlp.googleapis.com/Insp" + + "ectTemplate\022@organizations/{organization" + + "}/inspectTemplates/{inspect_template}\0226p" + + "rojects/{project}/inspectTemplates/{insp" + + "ect_template}\022Uorganizations/{organizati" + + "on}/locations/{location}/inspectTemplate" + + "s/{inspect_template}\022Kprojects/{project}" + + "/locations/{location}/inspectTemplates/{" + + "inspect_template}\"\346\004\n\022DeidentifyTemplate" + + "\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.protobuf.TimestampB\003\340A\003\0224\n\013" - + "update_time\030\010 \001(\0132\032.google.protobuf.Time" - + "stampB\003\340A\003\0226\n\rlast_run_time\030\t \001(\0132\032.goog" - + "le.protobuf.TimestampB\003\340A\003\022=\n\006status\030\n \001" - + "(\0162(.google.privacy.dlp.v2.JobTrigger.St" - + "atusB\003\340A\002\032z\n\007Trigger\0223\n\010schedule\030\001 \001(\0132\037" - + ".google.privacy.dlp.v2.ScheduleH\000\022/\n\006man" - + "ual\030\002 \001(\0132\035.google.privacy.dlp.v2.Manual" - + "H\000B\t\n\007trigger\"H\n\006Status\022\026\n\022STATUS_UNSPEC" - + "IFIED\020\000\022\013\n\007HEALTHY\020\001\022\n\n\006PAUSED\020\002\022\r\n\tCANC" - + "ELLED\020\003:\224\001\352A\220\001\n\035dlp.googleapis.com/JobTr" - + "igger\022,projects/{project}/jobTriggers/{j" - + "ob_trigger}\022Aprojects/{project}/location" - + "s/{location}/jobTriggers/{job_trigger}B\005" - + "\n\003job\"\364\005\n\006Action\022C\n\rsave_findings\030\001 \001(\0132" - + "*.google.privacy.dlp.v2.Action.SaveFindi" - + "ngsH\000\022@\n\007pub_sub\030\002 \001(\0132-.google.privacy." - + "dlp.v2.Action.PublishToPubSubH\000\022U\n\027publi" - + "sh_summary_to_cscc\030\003 \001(\01322.google.privac" - + "y.dlp.v2.Action.PublishSummaryToCsccH\000\022q" - + "\n&publish_findings_to_cloud_data_catalog" - + "\030\005 \001(\0132?.google.privacy.dlp.v2.Action.Pu" - + "blishFindingsToCloudDataCatalogH\000\022V\n\027job" - + "_notification_emails\030\010 \001(\01323.google.priv" - + "acy.dlp.v2.Action.JobNotificationEmailsH" - + "\000\022T\n\026publish_to_stackdriver\030\t \001(\01322.goog" - + "le.privacy.dlp.v2.Action.PublishToStackd" - + "riverH\000\032Q\n\014SaveFindings\022A\n\routput_config" - + "\030\001 \001(\0132*.google.privacy.dlp.v2.OutputSto" - + "rageConfig\032 \n\017PublishToPubSub\022\r\n\005topic\030\001" - + " \001(\t\032\026\n\024PublishSummaryToCscc\032#\n!PublishF" - + "indingsToCloudDataCatalog\032\027\n\025JobNotifica" - + "tionEmails\032\026\n\024PublishToStackdriverB\010\n\006ac" - + "tion\"\313\001\n\034CreateInspectTemplateRequest\022:\n" - + "\006parent\030\001 \001(\tB*\340A\002\372A$\022\"dlp.googleapis.co" - + "m/InspectTemplate\022E\n\020inspect_template\030\002 " - + "\001(\0132&.google.privacy.dlp.v2.InspectTempl" - + "ateB\003\340A\002\022\023\n\013template_id\030\003 \001(\t\022\023\n\013locatio" - + "n_id\030\004 \001(\t\"\313\001\n\034UpdateInspectTemplateRequ" - + "est\0228\n\004name\030\001 \001(\tB*\340A\002\372A$\n\"dlp.googleapi" - + "s.com/InspectTemplate\022@\n\020inspect_templat" - + "e\030\002 \001(\0132&.google.privacy.dlp.v2.InspectT" - + "emplate\022/\n\013update_mask\030\003 \001(\0132\032.google.pr" - + "otobuf.FieldMask\"U\n\031GetInspectTemplateRe" - + "quest\0228\n\004name\030\001 \001(\tB*\340A\002\372A$\n\"dlp.googlea" - + "pis.com/InspectTemplate\"\247\001\n\033ListInspectT" - + "emplatesRequest\022:\n\006parent\030\001 \001(\tB*\340A\002\372A$\022" - + "\"dlp.googleapis.com/InspectTemplate\022\022\n\np" - + "age_token\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005\022\020\n\010or" - + "der_by\030\004 \001(\t\022\023\n\013location_id\030\005 \001(\t\"z\n\034Lis" - + "tInspectTemplatesResponse\022A\n\021inspect_tem" - + "plates\030\001 \003(\0132&.google.privacy.dlp.v2.Ins" - + "pectTemplate\022\027\n\017next_page_token\030\002 \001(\t\"X\n" - + "\034DeleteInspectTemplateRequest\0228\n\004name\030\001 " - + "\001(\tB*\340A\002\372A$\n\"dlp.googleapis.com/InspectT" - + "emplate\"\266\001\n\027CreateJobTriggerRequest\0225\n\006p" - + "arent\030\001 \001(\tB%\340A\002\372A\037\022\035dlp.googleapis.com/" - + "JobTrigger\022;\n\013job_trigger\030\002 \001(\0132!.google" - + ".privacy.dlp.v2.JobTriggerB\003\340A\002\022\022\n\ntrigg" - + "er_id\030\003 \001(\t\022\023\n\013location_id\030\004 \001(\t\"P\n\031Acti" - + "vateJobTriggerRequest\0223\n\004name\030\001 \001(\tB%\340A\002" - + "\372A\037\n\035dlp.googleapis.com/JobTrigger\"\267\001\n\027U" - + "pdateJobTriggerRequest\0223\n\004name\030\001 \001(\tB%\340A" - + "\002\372A\037\n\035dlp.googleapis.com/JobTrigger\0226\n\013j" - + "ob_trigger\030\002 \001(\0132!.google.privacy.dlp.v2" - + ".JobTrigger\022/\n\013update_mask\030\003 \001(\0132\032.googl" - + "e.protobuf.FieldMask\"K\n\024GetJobTriggerReq" - + "uest\0223\n\004name\030\001 \001(\tB%\340A\002\372A\037\n\035dlp.googleap" - + "is.com/JobTrigger\"\366\001\n\023CreateDlpJobReques" - + "t\0221\n\006parent\030\001 \001(\tB!\340A\002\372A\033\022\031dlp.googleapi" - + "s.com/DlpJob\022>\n\013inspect_job\030\002 \001(\0132\'.goog" - + "le.privacy.dlp.v2.InspectJobConfigH\000\022@\n\010" - + "risk_job\030\003 \001(\0132,.google.privacy.dlp.v2.R" - + "iskAnalysisJobConfigH\000\022\016\n\006job_id\030\004 \001(\t\022\023" - + "\n\013location_id\030\005 \001(\tB\005\n\003job\"\336\001\n\026ListJobTr" - + "iggersRequest\0225\n\006parent\030\001 \001(\tB%\340A\002\372A\037\022\035d" - + "lp.googleapis.com/JobTrigger\022\022\n\npage_tok" - + "en\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005\022\020\n\010order_by\030" - + "\004 \001(\t\022\016\n\006filter\030\005 \001(\t\022/\n\004type\030\006 \001(\0162!.go" - + "ogle.privacy.dlp.v2.DlpJobType\022\023\n\013locati" - + "on_id\030\007 \001(\t\"k\n\027ListJobTriggersResponse\0227" - + "\n\014job_triggers\030\001 \003(\0132!.google.privacy.dl" - + "p.v2.JobTrigger\022\027\n\017next_page_token\030\002 \001(\t" - + "\"N\n\027DeleteJobTriggerRequest\0223\n\004name\030\001 \001(" - + "\tB%\340A\002\372A\037\n\035dlp.googleapis.com/JobTrigger" - + "\"\335\001\n\020InspectJobConfig\022<\n\016storage_config\030" - + "\001 \001(\0132$.google.privacy.dlp.v2.StorageCon" - + "fig\022<\n\016inspect_config\030\002 \001(\0132$.google.pri" - + "vacy.dlp.v2.InspectConfig\022\035\n\025inspect_tem" - + "plate_name\030\003 \001(\t\022.\n\007actions\030\004 \003(\0132\035.goog" - + "le.privacy.dlp.v2.Action\"\355\005\n\021DataProfile" - + "Action\022F\n\013export_data\030\001 \001(\0132/.google.pri" - + "vacy.dlp.v2.DataProfileAction.ExportH\000\022[" - + "\n\024pub_sub_notification\030\002 \001(\0132;.google.pr" - + "ivacy.dlp.v2.DataProfileAction.PubSubNot" - + "ificationH\000\032E\n\006Export\022;\n\rprofile_table\030\001" - + " \001(\0132$.google.privacy.dlp.v2.BigQueryTab" - + "le\032\352\002\n\022PubSubNotification\022\r\n\005topic\030\001 \001(\t" - + "\022A\n\005event\030\002 \001(\01622.google.privacy.dlp.v2." - + "DataProfileAction.EventType\022K\n\020pubsub_co" - + "ndition\030\003 \001(\01321.google.privacy.dlp.v2.Da" - + "taProfilePubSubCondition\022b\n\021detail_of_me" - + "ssage\030\004 \001(\0162G.google.privacy.dlp.v2.Data" - + "ProfileAction.PubSubNotification.DetailL" - + "evel\"Q\n\013DetailLevel\022\034\n\030DETAIL_LEVEL_UNSP" - + "ECIFIED\020\000\022\021\n\rTABLE_PROFILE\020\001\022\021\n\rRESOURCE" - + "_NAME\020\002\"u\n\tEventType\022\032\n\026EVENT_TYPE_UNSPE" - + "CIFIED\020\000\022\017\n\013NEW_PROFILE\020\001\022\023\n\017CHANGED_PRO" - + "FILE\020\002\022\023\n\017SCORE_INCREASED\020\003\022\021\n\rERROR_CHA" - + "NGED\020\004B\010\n\006action\"\313\001\n\024DataProfileJobConfi" - + "g\022<\n\010location\030\001 \001(\0132*.google.privacy.dlp" - + ".v2.DataProfileLocation\022\022\n\nproject_id\030\005 " - + "\001(\t\022\031\n\021inspect_templates\030\007 \003(\t\022F\n\024data_p" - + "rofile_actions\030\006 \003(\0132(.google.privacy.dl" - + "p.v2.DataProfileAction\"Q\n\023DataProfileLoc" - + "ation\022\031\n\017organization_id\030\001 \001(\003H\000\022\023\n\tfold" - + "er_id\030\002 \001(\003H\000B\n\n\010location\"\353\005\n\006DlpJob\022\014\n\004" - + "name\030\001 \001(\t\022/\n\004type\030\002 \001(\0162!.google.privac" - + "y.dlp.v2.DlpJobType\0225\n\005state\030\003 \001(\0162&.goo" - + "gle.privacy.dlp.v2.DlpJob.JobState\022K\n\014ri" - + "sk_details\030\004 \001(\01323.google.privacy.dlp.v2" - + ".AnalyzeDataSourceRiskDetailsH\000\022J\n\017inspe" - + "ct_details\030\005 \001(\0132/.google.privacy.dlp.v2" - + ".InspectDataSourceDetailsH\000\022/\n\013create_ti" - + "me\030\006 \001(\0132\032.google.protobuf.Timestamp\022.\n\n" - + "start_time\030\007 \001(\0132\032.google.protobuf.Times" - + "tamp\022,\n\010end_time\030\010 \001(\0132\032.google.protobuf" - + ".Timestamp\022\030\n\020job_trigger_name\030\n \001(\t\022,\n\006" - + "errors\030\013 \003(\0132\034.google.privacy.dlp.v2.Err" - + "or\"o\n\010JobState\022\031\n\025JOB_STATE_UNSPECIFIED\020" - + "\000\022\013\n\007PENDING\020\001\022\013\n\007RUNNING\020\002\022\010\n\004DONE\020\003\022\014\n" - + "\010CANCELED\020\004\022\n\n\006FAILED\020\005\022\n\n\006ACTIVE\020\006:\177\352A|" - + "\n\031dlp.googleapis.com/DlpJob\022$projects/{p" - + "roject}/dlpJobs/{dlp_job}\0229projects/{pro" - + "ject}/locations/{location}/dlpJobs/{dlp_" - + "job}B\t\n\007details\"C\n\020GetDlpJobRequest\022/\n\004n" - + "ame\030\001 \001(\tB!\340A\002\372A\033\n\031dlp.googleapis.com/Dl" - + "pJob\"\326\001\n\022ListDlpJobsRequest\0221\n\006parent\030\004 " - + "\001(\tB!\340A\002\372A\033\022\031dlp.googleapis.com/DlpJob\022\016" - + "\n\006filter\030\001 \001(\t\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npag" - + "e_token\030\003 \001(\t\022/\n\004type\030\005 \001(\0162!.google.pri" - + "vacy.dlp.v2.DlpJobType\022\020\n\010order_by\030\006 \001(\t" - + "\022\023\n\013location_id\030\007 \001(\t\"[\n\023ListDlpJobsResp" - + "onse\022+\n\004jobs\030\001 \003(\0132\035.google.privacy.dlp." - + "v2.DlpJob\022\027\n\017next_page_token\030\002 \001(\t\"F\n\023Ca" - + "ncelDlpJobRequest\022/\n\004name\030\001 \001(\tB!\340A\002\372A\033\n" - + "\031dlp.googleapis.com/DlpJob\"F\n\023FinishDlpJ" - + "obRequest\022/\n\004name\030\001 \001(\tB!\340A\002\372A\033\n\031dlp.goo" - + "gleapis.com/DlpJob\"F\n\023DeleteDlpJobReques" - + "t\022/\n\004name\030\001 \001(\tB!\340A\002\372A\033\n\031dlp.googleapis." - + "com/DlpJob\"\327\001\n\037CreateDeidentifyTemplateR" - + "equest\022=\n\006parent\030\001 \001(\tB-\340A\002\372A\'\022%dlp.goog" - + "leapis.com/DeidentifyTemplate\022K\n\023deident" - + "ify_template\030\002 \001(\0132).google.privacy.dlp." - + "v2.DeidentifyTemplateB\003\340A\002\022\023\n\013template_i" - + "d\030\003 \001(\t\022\023\n\013location_id\030\004 \001(\t\"\327\001\n\037UpdateD" - + "eidentifyTemplateRequest\022;\n\004name\030\001 \001(\tB-" - + "\340A\002\372A\'\n%dlp.googleapis.com/DeidentifyTem" - + "plate\022F\n\023deidentify_template\030\002 \001(\0132).goo" - + "gle.privacy.dlp.v2.DeidentifyTemplate\022/\n" - + "\013update_mask\030\003 \001(\0132\032.google.protobuf.Fie" - + "ldMask\"[\n\034GetDeidentifyTemplateRequest\022;" - + "\n\004name\030\001 \001(\tB-\340A\002\372A\'\n%dlp.googleapis.com" - + "/DeidentifyTemplate\"\255\001\n\036ListDeidentifyTe" - + "mplatesRequest\022=\n\006parent\030\001 \001(\tB-\340A\002\372A\'\022%" - + "dlp.googleapis.com/DeidentifyTemplate\022\022\n" - + "\npage_token\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005\022\020\n\010" - + "order_by\030\004 \001(\t\022\023\n\013location_id\030\005 \001(\t\"\203\001\n\037" - + "ListDeidentifyTemplatesResponse\022G\n\024deide" - + "ntify_templates\030\001 \003(\0132).google.privacy.d" - + "lp.v2.DeidentifyTemplate\022\027\n\017next_page_to" - + "ken\030\002 \001(\t\"^\n\037DeleteDeidentifyTemplateReq" - + "uest\022;\n\004name\030\001 \001(\tB-\340A\002\372A\'\n%dlp.googleap" - + "is.com/DeidentifyTemplate\"\364\001\n\033LargeCusto" - + "mDictionaryConfig\022<\n\013output_path\030\001 \001(\0132\'" - + ".google.privacy.dlp.v2.CloudStoragePath\022" - + "L\n\026cloud_storage_file_set\030\002 \001(\0132*.google" - + ".privacy.dlp.v2.CloudStorageFileSetH\000\022?\n", - "\017big_query_field\030\003 \001(\0132$.google.privacy." - + "dlp.v2.BigQueryFieldH\000B\010\n\006source\"8\n\032Larg" - + "eCustomDictionaryStats\022\032\n\022approx_num_phr" - + "ases\030\001 \001(\003\"\246\002\n\024StoredInfoTypeConfig\022\024\n\014d" - + "isplay_name\030\001 \001(\t\022\023\n\013description\030\002 \001(\t\022U" - + "\n\027large_custom_dictionary\030\003 \001(\01322.google" - + ".privacy.dlp.v2.LargeCustomDictionaryCon" - + "figH\000\022F\n\ndictionary\030\004 \001(\01320.google.priva" - + "cy.dlp.v2.CustomInfoType.DictionaryH\000\022<\n" - + "\005regex\030\005 \001(\0132+.google.privacy.dlp.v2.Cus" - + "tomInfoType.RegexH\000B\006\n\004type\"s\n\023StoredInf" - + "oTypeStats\022T\n\027large_custom_dictionary\030\001 " - + "\001(\01321.google.privacy.dlp.v2.LargeCustomD" - + "ictionaryStatsH\000B\006\n\004type\"\251\002\n\025StoredInfoT" - + "ypeVersion\022;\n\006config\030\001 \001(\0132+.google.priv" - + "acy.dlp.v2.StoredInfoTypeConfig\022/\n\013creat" - + "e_time\030\002 \001(\0132\032.google.protobuf.Timestamp" - + "\0229\n\005state\030\003 \001(\0162*.google.privacy.dlp.v2." - + "StoredInfoTypeState\022,\n\006errors\030\004 \003(\0132\034.go" - + "ogle.privacy.dlp.v2.Error\0229\n\005stats\030\005 \001(\013" - + "2*.google.privacy.dlp.v2.StoredInfoTypeS" - + "tats\"\361\003\n\016StoredInfoType\022\014\n\004name\030\001 \001(\t\022E\n" - + "\017current_version\030\002 \001(\0132,.google.privacy." - + "dlp.v2.StoredInfoTypeVersion\022F\n\020pending_" - + "versions\030\003 \003(\0132,.google.privacy.dlp.v2.S" - + "toredInfoTypeVersion:\301\002\352A\275\002\n!dlp.googlea" - + "pis.com/StoredInfoType\022?organizations/{o" - + "rganization}/storedInfoTypes/{stored_inf" - + "o_type}\0225projects/{project}/storedInfoTy" - + "pes/{stored_info_type}\022Torganizations/{o" - + "rganization}/locations/{location}/stored" - + "InfoTypes/{stored_info_type}\022Jprojects/{" - + "project}/locations/{location}/storedInfo" - + "Types/{stored_info_type}\"\314\001\n\033CreateStore" - + "dInfoTypeRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#" - + "\022!dlp.googleapis.com/StoredInfoType\022@\n\006c" - + "onfig\030\002 \001(\0132+.google.privacy.dlp.v2.Stor" - + "edInfoTypeConfigB\003\340A\002\022\033\n\023stored_info_typ" - + "e_id\030\003 \001(\t\022\023\n\013location_id\030\004 \001(\t\"\304\001\n\033Upda" - + "teStoredInfoTypeRequest\0227\n\004name\030\001 \001(\tB)\340" - + "A\002\372A#\n!dlp.googleapis.com/StoredInfoType" - + "\022;\n\006config\030\002 \001(\0132+.google.privacy.dlp.v2" - + ".StoredInfoTypeConfig\022/\n\013update_mask\030\003 \001" - + "(\0132\032.google.protobuf.FieldMask\"S\n\030GetSto" - + "redInfoTypeRequest\0227\n\004name\030\001 \001(\tB)\340A\002\372A#" - + "\n!dlp.googleapis.com/StoredInfoType\"\245\001\n\032" - + "ListStoredInfoTypesRequest\0229\n\006parent\030\001 \001" - + "(\tB)\340A\002\372A#\022!dlp.googleapis.com/StoredInf" - + "oType\022\022\n\npage_token\030\002 \001(\t\022\021\n\tpage_size\030\003" - + " \001(\005\022\020\n\010order_by\030\004 \001(\t\022\023\n\013location_id\030\005 " - + "\001(\t\"x\n\033ListStoredInfoTypesResponse\022@\n\021st" - + "ored_info_types\030\001 \003(\0132%.google.privacy.d" - + "lp.v2.StoredInfoType\022\027\n\017next_page_token\030" - + "\002 \001(\t\"V\n\033DeleteStoredInfoTypeRequest\0227\n\004" - + "name\030\001 \001(\tB)\340A\002\372A#\n!dlp.googleapis.com/S" - + "toredInfoType\"\224\001\n\036HybridInspectJobTrigge" - + "rRequest\0223\n\004name\030\001 \001(\tB%\340A\002\372A\037\n\035dlp.goog" - + "leapis.com/JobTrigger\022=\n\013hybrid_item\030\003 \001" - + "(\0132(.google.privacy.dlp.v2.HybridContent" - + "Item\"\214\001\n\032HybridInspectDlpJobRequest\022/\n\004n" - + "ame\030\001 \001(\tB!\340A\002\372A\033\n\031dlp.googleapis.com/Dl" - + "pJob\022=\n\013hybrid_item\030\003 \001(\0132(.google.priva" - + "cy.dlp.v2.HybridContentItem\"\213\001\n\021HybridCo" - + "ntentItem\0220\n\004item\030\001 \001(\0132\".google.privacy" - + ".dlp.v2.ContentItem\022D\n\017finding_details\030\002" - + " \001(\0132+.google.privacy.dlp.v2.HybridFindi" - + "ngDetails\"\260\002\n\024HybridFindingDetails\022;\n\021co" - + "ntainer_details\030\001 \001(\0132 .google.privacy.d" - + "lp.v2.Container\022\023\n\013file_offset\030\002 \001(\003\022\022\n\n" - + "row_offset\030\003 \001(\003\022:\n\rtable_options\030\004 \001(\0132" - + "#.google.privacy.dlp.v2.TableOptions\022G\n\006" - + "labels\030\005 \003(\01327.google.privacy.dlp.v2.Hyb" - + "ridFindingDetails.LabelsEntry\032-\n\013LabelsE" - + "ntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\027\n\025" - + "HybridInspectResponse\"\341\001\n\020SensitivitySco" - + "re\022L\n\005score\030\001 \001(\0162=.google.privacy.dlp.v" - + "2.SensitivityScore.SensitivityScoreLevel" - + "\"\177\n\025SensitivityScoreLevel\022!\n\035SENSITIVITY" - + "_SCORE_UNSPECIFIED\020\000\022\023\n\017SENSITIVITY_LOW\020" - + "\n\022\030\n\024SENSITIVITY_MODERATE\020\024\022\024\n\020SENSITIVI" - + "TY_HIGH\020\036\"\271\001\n\rDataRiskLevel\022F\n\005score\030\001 \001" - + "(\01627.google.privacy.dlp.v2.DataRiskLevel" - + ".DataRiskLevelScore\"`\n\022DataRiskLevelScor" - + "e\022\032\n\026RISK_SCORE_UNSPECIFIED\020\000\022\014\n\010RISK_LO" - + "W\020\n\022\021\n\rRISK_MODERATE\020\024\022\r\n\tRISK_HIGH\020\036\"\240\001" - + "\n\031DataProfileConfigSnapshot\022<\n\016inspect_c" - + "onfig\030\002 \001(\0132$.google.privacy.dlp.v2.Insp" - + "ectConfig\022E\n\020data_profile_job\030\003 \001(\0132+.go" - + "ogle.privacy.dlp.v2.DataProfileJobConfig" - + "\"\232\n\n\020TableDataProfile\022\014\n\004name\030\001 \001(\t\022\034\n\024p" - + "roject_data_profile\030\002 \001(\t\022\032\n\022dataset_pro" - + "ject_id\030\030 \001(\t\022\030\n\020dataset_location\030\035 \001(\t\022" - + "\022\n\ndataset_id\030\031 \001(\t\022\020\n\010table_id\030\032 \001(\t\022\025\n" - + "\rfull_resource\030\003 \001(\t\022<\n\016profile_status\030\025" - + " \001(\0132$.google.privacy.dlp.v2.ProfileStat" - + "us\022<\n\005state\030\026 \001(\0162-.google.privacy.dlp.v" - + "2.TableDataProfile.State\022B\n\021sensitivity_" - + "score\030\005 \001(\0132\'.google.privacy.dlp.v2.Sens" - + "itivityScore\022=\n\017data_risk_level\030\006 \001(\0132$." - + "google.privacy.dlp.v2.DataRiskLevel\022D\n\024p" - + "redicted_info_types\030\033 \003(\0132&.google.priva" - + "cy.dlp.v2.InfoTypeSummary\022E\n\020other_info_" - + "types\030\034 \003(\0132+.google.privacy.dlp.v2.Othe" - + "rInfoTypeSummary\022I\n\017config_snapshot\030\007 \001(" - + "\01320.google.privacy.dlp.v2.DataProfileCon" - + "figSnapshot\0226\n\022last_modified_time\030\010 \001(\0132" - + "\032.google.protobuf.Timestamp\0223\n\017expiratio" - + "n_time\030\t \001(\0132\032.google.protobuf.Timestamp" - + "\022\034\n\024scanned_column_count\030\n \001(\003\022\033\n\023failed" - + "_column_count\030\013 \001(\003\022\030\n\020table_size_bytes\030" - + "\014 \001(\003\022\021\n\trow_count\030\r \001(\003\022B\n\021encryption_s" - + "tatus\030\016 \001(\0162\'.google.privacy.dlp.v2.Encr" - + "yptionStatus\022F\n\023resource_visibility\030\017 \001(" - + "\0162).google.privacy.dlp.v2.ResourceVisibi" - + "lity\022:\n\026profile_last_generated\030\020 \001(\0132\032.g" - + "oogle.protobuf.Timestamp\022T\n\017resource_lab" - + "els\030\021 \003(\0132;.google.privacy.dlp.v2.TableD" - + "ataProfile.ResourceLabelsEntry\022/\n\013create" - + "_time\030\027 \001(\0132\032.google.protobuf.Timestamp\032" - + "5\n\023ResourceLabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005v" - + "alue\030\002 \001(\t:\0028\001\"5\n\005State\022\025\n\021STATE_UNSPECI" - + "FIED\020\000\022\013\n\007RUNNING\020\001\022\010\n\004DONE\020\002\"b\n\rProfile" - + "Status\022\"\n\006status\030\001 \001(\0132\022.google.rpc.Stat" - + "us\022-\n\ttimestamp\030\003 \001(\0132\032.google.protobuf." - + "Timestamp\"E\n\017InfoTypeSummary\0222\n\tinfo_typ" - + "e\030\001 \001(\0132\037.google.privacy.dlp.v2.InfoType" - + "\"J\n\024OtherInfoTypeSummary\0222\n\tinfo_type\030\001 " - + "\001(\0132\037.google.privacy.dlp.v2.InfoType\"\352\005\n" - + "\032DataProfilePubSubCondition\022X\n\013expressio" - + "ns\030\001 \001(\0132C.google.privacy.dlp.v2.DataPro" - + "filePubSubCondition.PubSubExpressions\032\351\001" - + "\n\017PubSubCondition\022b\n\022minimum_risk_score\030" - + "\001 \001(\0162D.google.privacy.dlp.v2.DataProfil" - + "ePubSubCondition.ProfileScoreBucketH\000\022i\n" - + "\031minimum_sensitivity_score\030\002 \001(\0162D.googl" - + "e.privacy.dlp.v2.DataProfilePubSubCondit" - + "ion.ProfileScoreBucketH\000B\007\n\005value\032\253\002\n\021Pu" - + "bSubExpressions\022s\n\020logical_operator\030\001 \001(" - + "\0162Y.google.privacy.dlp.v2.DataProfilePub" - + "SubCondition.PubSubExpressions.PubSubLog" - + "icalOperator\022U\n\nconditions\030\002 \003(\0132A.googl" - + "e.privacy.dlp.v2.DataProfilePubSubCondit" - + "ion.PubSubCondition\"J\n\025PubSubLogicalOper" - + "ator\022 \n\034LOGICAL_OPERATOR_UNSPECIFIED\020\000\022\006" - + "\n\002OR\020\001\022\007\n\003AND\020\002\"X\n\022ProfileScoreBucket\022$\n" - + " PROFILE_SCORE_BUCKET_UNSPECIFIED\020\000\022\010\n\004H" - + "IGH\020\001\022\022\n\016MEDIUM_OR_HIGH\020\002\"\227\001\n\030DataProfil" - + "ePubSubMessage\0228\n\007profile\030\001 \001(\0132\'.google" - + ".privacy.dlp.v2.TableDataProfile\022A\n\005even" - + "t\030\002 \001(\01622.google.privacy.dlp.v2.DataProf" - + "ileAction.EventType*\273\001\n\022RelationalOperat" - + "or\022#\n\037RELATIONAL_OPERATOR_UNSPECIFIED\020\000\022" - + "\014\n\010EQUAL_TO\020\001\022\020\n\014NOT_EQUAL_TO\020\002\022\020\n\014GREAT" - + "ER_THAN\020\003\022\r\n\tLESS_THAN\020\004\022\032\n\026GREATER_THAN" - + "_OR_EQUALS\020\005\022\027\n\023LESS_THAN_OR_EQUALS\020\006\022\n\n" - + "\006EXISTS\020\007*\215\001\n\014MatchingType\022\035\n\031MATCHING_T" - + "YPE_UNSPECIFIED\020\000\022\034\n\030MATCHING_TYPE_FULL_" - + "MATCH\020\001\022\037\n\033MATCHING_TYPE_PARTIAL_MATCH\020\002" - + "\022\037\n\033MATCHING_TYPE_INVERSE_MATCH\020\003*M\n\rCon" - + "tentOption\022\027\n\023CONTENT_UNSPECIFIED\020\000\022\020\n\014C" - + "ONTENT_TEXT\020\001\022\021\n\rCONTENT_IMAGE\020\002*B\n\014Meta" - + "dataType\022\034\n\030METADATATYPE_UNSPECIFIED\020\000\022\024" - + "\n\020STORAGE_METADATA\020\002*P\n\023InfoTypeSupporte" - + "dBy\022\031\n\025ENUM_TYPE_UNSPECIFIED\020\000\022\013\n\007INSPEC" - + "T\020\001\022\021\n\rRISK_ANALYSIS\020\002*R\n\nDlpJobType\022\034\n\030" - + "DLP_JOB_TYPE_UNSPECIFIED\020\000\022\017\n\013INSPECT_JO" - + "B\020\001\022\025\n\021RISK_ANALYSIS_JOB\020\002*n\n\023StoredInfo" - + "TypeState\022&\n\"STORED_INFO_TYPE_STATE_UNSP" - + "ECIFIED\020\000\022\013\n\007PENDING\020\001\022\t\n\005READY\020\002\022\n\n\006FAI" - + "LED\020\003\022\013\n\007INVALID\020\004*}\n\022ResourceVisibility" - + "\022#\n\037RESOURCE_VISIBILITY_UNSPECIFIED\020\000\022\036\n" - + "\032RESOURCE_VISIBILITY_PUBLIC\020\n\022\"\n\036RESOURC" - + "E_VISIBILITY_RESTRICTED\020\024*u\n\020EncryptionS" - + "tatus\022!\n\035ENCRYPTION_STATUS_UNSPECIFIED\020\000" - + "\022\035\n\031ENCRYPTION_GOOGLE_MANAGED\020\001\022\037\n\033ENCRY" - + "PTION_CUSTOMER_MANAGED\020\0022\240L\n\nDlpService\022" - + "\333\001\n\016InspectContent\022,.google.privacy.dlp." - + "v2.InspectContentRequest\032-.google.privac" - + "y.dlp.v2.InspectContentResponse\"l\202\323\344\223\002f\"" - + "\'/v2/{parent=projects/*}/content:inspect" - + ":\001*Z8\"3/v2/{parent=projects/*/locations/" - + "*}/content:inspect:\001*\022\314\001\n\013RedactImage\022)." - + "google.privacy.dlp.v2.RedactImageRequest" - + "\032*.google.privacy.dlp.v2.RedactImageResp" - + "onse\"f\202\323\344\223\002`\"$/v2/{parent=projects/*}/im" - + "age:redact:\001*Z5\"0/v2/{parent=projects/*/" - + "locations/*}/image:redact:\001*\022\352\001\n\021Deident" - + "ifyContent\022/.google.privacy.dlp.v2.Deide" - + "ntifyContentRequest\0320.google.privacy.dlp" - + ".v2.DeidentifyContentResponse\"r\202\323\344\223\002l\"*/" - + "v2/{parent=projects/*}/content:deidentif" - + "y:\001*Z;\"6/v2/{parent=projects/*/locations" - + "/*}/content:deidentify:\001*\022\352\001\n\021Reidentify" - + "Content\022/.google.privacy.dlp.v2.Reidenti" - + "fyContentRequest\0320.google.privacy.dlp.v2" - + ".ReidentifyContentResponse\"r\202\323\344\223\002l\"*/v2/" - + "{parent=projects/*}/content:reidentify:\001" - + "*Z;\"6/v2/{parent=projects/*/locations/*}" - + "/content:reidentify:\001*\022\260\001\n\rListInfoTypes" - + "\022+.google.privacy.dlp.v2.ListInfoTypesRe" - + "quest\032,.google.privacy.dlp.v2.ListInfoTy" - + "pesResponse\"D\202\323\344\223\0025\022\r/v2/infoTypesZ$\022\"/v" - + "2/{parent=locations/*}/infoTypes\332A\006paren" - + "t\022\364\002\n\025CreateInspectTemplate\0223.google.pri" - + "vacy.dlp.v2.CreateInspectTemplateRequest" - + "\032&.google.privacy.dlp.v2.InspectTemplate" - + "\"\375\001\202\323\344\223\002\334\001\"-/v2/{parent=organizations/*}" - + "/inspectTemplates:\001*Z>\"9/v2/{parent=orga" - + "nizations/*/locations/*}/inspectTemplate" - + "s:\001*Z-\"(/v2/{parent=projects/*}/inspectT" - + "emplates:\001*Z9\"4/v2/{parent=projects/*/lo" - + "cations/*}/inspectTemplates:\001*\332A\027parent," - + "inspect_template\022\376\002\n\025UpdateInspectTempla" - + "te\0223.google.privacy.dlp.v2.UpdateInspect" - + "TemplateRequest\032&.google.privacy.dlp.v2." - + "InspectTemplate\"\207\002\202\323\344\223\002\334\0012-/v2/{name=org" - + "anizations/*/inspectTemplates/*}:\001*Z>29/" - + "v2/{name=organizations/*/locations/*/ins" - + "pectTemplates/*}:\001*Z-2(/v2/{name=project" - + "s/*/inspectTemplates/*}:\001*Z924/v2/{name=" - + "projects/*/locations/*/inspectTemplates/" - + "*}:\001*\332A!name,inspect_template,update_mas" - + "k\022\317\002\n\022GetInspectTemplate\0220.google.privac" - + "y.dlp.v2.GetInspectTemplateRequest\032&.goo" - + "gle.privacy.dlp.v2.InspectTemplate\"\336\001\202\323\344" - + "\223\002\320\001\022-/v2/{name=organizations/*/inspectT" - + "emplates/*}Z;\0229/v2/{name=organizations/*" - + "/locations/*/inspectTemplates/*}Z*\022(/v2/" - + "{name=projects/*/inspectTemplates/*}Z6\0224" - + "/v2/{name=projects/*/locations/*/inspect" - + "Templates/*}\332A\004name\022\342\002\n\024ListInspectTempl" - + "ates\0222.google.privacy.dlp.v2.ListInspect" - + "TemplatesRequest\0323.google.privacy.dlp.v2" - + ".ListInspectTemplatesResponse\"\340\001\202\323\344\223\002\320\001\022" - + "-/v2/{parent=organizations/*}/inspectTem" - + "platesZ;\0229/v2/{parent=organizations/*/lo" - + "cations/*}/inspectTemplatesZ*\022(/v2/{pare" - + "nt=projects/*}/inspectTemplatesZ6\0224/v2/{" - + "parent=projects/*/locations/*}/inspectTe" - + "mplates\332A\006parent\022\305\002\n\025DeleteInspectTempla" - + "te\0223.google.privacy.dlp.v2.DeleteInspect" - + "TemplateRequest\032\026.google.protobuf.Empty\"" - + "\336\001\202\323\344\223\002\320\001*-/v2/{name=organizations/*/ins" - + "pectTemplates/*}Z;*9/v2/{name=organizati" - + "ons/*/locations/*/inspectTemplates/*}Z**" - + "(/v2/{name=projects/*/inspectTemplates/*" - + "}Z6*4/v2/{name=projects/*/locations/*/in" - + "spectTemplates/*}\332A\004name\022\214\003\n\030CreateDeide" - + "ntifyTemplate\0226.google.privacy.dlp.v2.Cr" - + "eateDeidentifyTemplateRequest\032).google.p" - + "rivacy.dlp.v2.DeidentifyTemplate\"\214\002\202\323\344\223\002" - + "\350\001\"0/v2/{parent=organizations/*}/deident" - + "ifyTemplates:\001*ZA\"\022\022*\"9/v2/{name=projects/*" - + "/locations/*/dlpJobs/*}:hybridInspect:\001*" - + "\332A\004name\022\221\001\n\014FinishDlpJob\022*.google.privac" - + "y.dlp.v2.FinishDlpJobRequest\032\026.google.pr" - + "otobuf.Empty\"=\202\323\344\223\0027\"2/v2/{name=projects" - + "/*/locations/*/dlpJobs/*}:finish:\001*\032F\312A\022" - + "dlp.googleapis.com\322A.https://www.googlea" - + "pis.com/auth/cloud-platformB\372\002\n\031com.goog" - + "le.privacy.dlp.v2B\010DlpProtoP\001Z8google.go" - + "lang.org/genproto/googleapis/privacy/dlp" - + "/v2;dlp\252\002\023Google.Cloud.Dlp.V2\312\002\023Google\\C" - + "loud\\Dlp\\V2\352\002\026Google::Cloud::Dlp::V2\352Ar\n" - + "\035dlp.googleapis.com/DlpContent\022\035projects" - + "/{project}/dlpContent\0222projects/{project" - + "}/locations/{location}/dlpContent\352A\\\n\'dl" - + "p.googleapis.com/OrganizationLocation\0221o" - + "rganizations/{organization}/locations/{l" - + "ocation}b\006proto3" + + "update_time\030\005 \001(\0132\032.google.protobuf.Time" + + "stampB\003\340A\003\022B\n\021deidentify_config\030\006 \001(\0132\'." + + "google.privacy.dlp.v2.DeidentifyConfig:\341" + + "\002\352A\335\002\n%dlp.googleapis.com/DeidentifyTemp" + + "late\022Forganizations/{organization}/deide" + + "ntifyTemplates/{deidentify_template}\022\n\013inspect_job\030\004 \001(\0132\'.google.privacy.d" + + "lp.v2.InspectJobConfigH\000\022;\n\010triggers\030\005 \003" + + "(\0132).google.privacy.dlp.v2.JobTrigger.Tr" + + "igger\0221\n\006errors\030\006 \003(\0132\034.google.privacy.d" + + "lp.v2.ErrorB\003\340A\003\0224\n\013create_time\030\007 \001(\0132\032." + + "google.protobuf.TimestampB\003\340A\003\0224\n\013update" + + "_time\030\010 \001(\0132\032.google.protobuf.TimestampB" + + "\003\340A\003\0226\n\rlast_run_time\030\t \001(\0132\032.google.pro" + + "tobuf.TimestampB\003\340A\003\022=\n\006status\030\n \001(\0162(.g" + + "oogle.privacy.dlp.v2.JobTrigger.StatusB\003" + + "\340A\002\032z\n\007Trigger\0223\n\010schedule\030\001 \001(\0132\037.googl" + + "e.privacy.dlp.v2.ScheduleH\000\022/\n\006manual\030\002 " + + "\001(\0132\035.google.privacy.dlp.v2.ManualH\000B\t\n\007" + + "trigger\"H\n\006Status\022\026\n\022STATUS_UNSPECIFIED\020" + + "\000\022\013\n\007HEALTHY\020\001\022\n\n\006PAUSED\020\002\022\r\n\tCANCELLED\020" + + "\003:\224\001\352A\220\001\n\035dlp.googleapis.com/JobTrigger\022" + + ",projects/{project}/jobTriggers/{job_tri" + + "gger}\022Aprojects/{project}/locations/{loc" + + "ation}/jobTriggers/{job_trigger}B\005\n\003job\"" + + "\352\010\n\006Action\022C\n\rsave_findings\030\001 \001(\0132*.goog" + + "le.privacy.dlp.v2.Action.SaveFindingsH\000\022" + + "@\n\007pub_sub\030\002 \001(\0132-.google.privacy.dlp.v2" + + ".Action.PublishToPubSubH\000\022U\n\027publish_sum" + + "mary_to_cscc\030\003 \001(\01322.google.privacy.dlp." + + "v2.Action.PublishSummaryToCsccH\000\022q\n&publ" + + "ish_findings_to_cloud_data_catalog\030\005 \001(\013" + + "2?.google.privacy.dlp.v2.Action.PublishF" + + "indingsToCloudDataCatalogH\000\022>\n\ndeidentif" + + "y\030\007 \001(\0132(.google.privacy.dlp.v2.Action.D" + + "eidentifyH\000\022V\n\027job_notification_emails\030\010" + + " \001(\01323.google.privacy.dlp.v2.Action.JobN" + + "otificationEmailsH\000\022T\n\026publish_to_stackd" + + "river\030\t \001(\01322.google.privacy.dlp.v2.Acti" + + "on.PublishToStackdriverH\000\032Q\n\014SaveFinding" + + "s\022A\n\routput_config\030\001 \001(\0132*.google.privac" + + "y.dlp.v2.OutputStorageConfig\032 \n\017PublishT" + + "oPubSub\022\r\n\005topic\030\001 \001(\t\032\026\n\024PublishSummary" + + "ToCscc\032#\n!PublishFindingsToCloudDataCata" + + "log\032\263\002\n\nDeidentify\022J\n\025transformation_con" + + "fig\030\007 \001(\0132+.google.privacy.dlp.v2.Transf" + + "ormationConfig\022h\n%transformation_details" + + "_storage_config\030\003 \001(\01329.google.privacy.d" + + "lp.v2.TransformationDetailsStorageConfig" + + "\022#\n\024cloud_storage_output\030\t \001(\tB\003\340A\002H\000\022@\n" + + "\027file_types_to_transform\030\010 \003(\0162\037.google." + + "privacy.dlp.v2.FileTypeB\010\n\006output\032\027\n\025Job" + + "NotificationEmails\032\026\n\024PublishToStackdriv" + + "erB\010\n\006action\"z\n\024TransformationConfig\022\033\n\023" + + "deidentify_template\030\001 \001(\t\022&\n\036structured_" + + "deidentify_template\030\002 \001(\t\022\035\n\025image_redac" + + "t_template\030\004 \001(\t\"\313\001\n\034CreateInspectTempla" + + "teRequest\022:\n\006parent\030\001 \001(\tB*\340A\002\372A$\022\"dlp.g" + + "oogleapis.com/InspectTemplate\022E\n\020inspect" + + "_template\030\002 \001(\0132&.google.privacy.dlp.v2." + + "InspectTemplateB\003\340A\002\022\023\n\013template_id\030\003 \001(" + + "\t\022\023\n\013location_id\030\004 \001(\t\"\313\001\n\034UpdateInspect" + + "TemplateRequest\0228\n\004name\030\001 \001(\tB*\340A\002\372A$\n\"d" + + "lp.googleapis.com/InspectTemplate\022@\n\020ins" + + "pect_template\030\002 \001(\0132&.google.privacy.dlp" + + ".v2.InspectTemplate\022/\n\013update_mask\030\003 \001(\013" + + "2\032.google.protobuf.FieldMask\"U\n\031GetInspe" + + "ctTemplateRequest\0228\n\004name\030\001 \001(\tB*\340A\002\372A$\n" + + "\"dlp.googleapis.com/InspectTemplate\"\247\001\n\033" + + "ListInspectTemplatesRequest\022:\n\006parent\030\001 " + + "\001(\tB*\340A\002\372A$\022\"dlp.googleapis.com/InspectT" + + "emplate\022\022\n\npage_token\030\002 \001(\t\022\021\n\tpage_size" + + "\030\003 \001(\005\022\020\n\010order_by\030\004 \001(\t\022\023\n\013location_id\030" + + "\005 \001(\t\"z\n\034ListInspectTemplatesResponse\022A\n" + + "\021inspect_templates\030\001 \003(\0132&.google.privac" + + "y.dlp.v2.InspectTemplate\022\027\n\017next_page_to" + + "ken\030\002 \001(\t\"X\n\034DeleteInspectTemplateReques" + + "t\0228\n\004name\030\001 \001(\tB*\340A\002\372A$\n\"dlp.googleapis." + + "com/InspectTemplate\"\266\001\n\027CreateJobTrigger" + + "Request\0225\n\006parent\030\001 \001(\tB%\340A\002\372A\037\022\035dlp.goo" + + "gleapis.com/JobTrigger\022;\n\013job_trigger\030\002 " + + "\001(\0132!.google.privacy.dlp.v2.JobTriggerB\003" + + "\340A\002\022\022\n\ntrigger_id\030\003 \001(\t\022\023\n\013location_id\030\004" + + " \001(\t\"P\n\031ActivateJobTriggerRequest\0223\n\004nam" + + "e\030\001 \001(\tB%\340A\002\372A\037\n\035dlp.googleapis.com/JobT" + + "rigger\"\267\001\n\027UpdateJobTriggerRequest\0223\n\004na" + + "me\030\001 \001(\tB%\340A\002\372A\037\n\035dlp.googleapis.com/Job" + + "Trigger\0226\n\013job_trigger\030\002 \001(\0132!.google.pr" + + "ivacy.dlp.v2.JobTrigger\022/\n\013update_mask\030\003" + + " \001(\0132\032.google.protobuf.FieldMask\"K\n\024GetJ" + + "obTriggerRequest\0223\n\004name\030\001 \001(\tB%\340A\002\372A\037\n\035" + + "dlp.googleapis.com/JobTrigger\"\366\001\n\023Create" + + "DlpJobRequest\0221\n\006parent\030\001 \001(\tB!\340A\002\372A\033\022\031d" + + "lp.googleapis.com/DlpJob\022>\n\013inspect_job\030" + + "\002 \001(\0132\'.google.privacy.dlp.v2.InspectJob" + + "ConfigH\000\022@\n\010risk_job\030\003 \001(\0132,.google.priv" + + "acy.dlp.v2.RiskAnalysisJobConfigH\000\022\016\n\006jo" + + "b_id\030\004 \001(\t\022\023\n\013location_id\030\005 \001(\tB\005\n\003job\"\336" + + "\001\n\026ListJobTriggersRequest\0225\n\006parent\030\001 \001(" + + "\tB%\340A\002\372A\037\022\035dlp.googleapis.com/JobTrigger" + + "\022\022\n\npage_token\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005\022" + + "\020\n\010order_by\030\004 \001(\t\022\016\n\006filter\030\005 \001(\t\022/\n\004typ" + + "e\030\006 \001(\0162!.google.privacy.dlp.v2.DlpJobTy" + + "pe\022\023\n\013location_id\030\007 \001(\t\"k\n\027ListJobTrigge" + + "rsResponse\0227\n\014job_triggers\030\001 \003(\0132!.googl" + + "e.privacy.dlp.v2.JobTrigger\022\027\n\017next_page" + + "_token\030\002 \001(\t\"N\n\027DeleteJobTriggerRequest\022" + + "3\n\004name\030\001 \001(\tB%\340A\002\372A\037\n\035dlp.googleapis.co" + + "m/JobTrigger\"\335\001\n\020InspectJobConfig\022<\n\016sto" + + "rage_config\030\001 \001(\0132$.google.privacy.dlp.v" + + "2.StorageConfig\022<\n\016inspect_config\030\002 \001(\0132" + + "$.google.privacy.dlp.v2.InspectConfig\022\035\n" + + "\025inspect_template_name\030\003 \001(\t\022.\n\007actions\030" + + "\004 \003(\0132\035.google.privacy.dlp.v2.Action\"\355\005\n" + + "\021DataProfileAction\022F\n\013export_data\030\001 \001(\0132" + + "/.google.privacy.dlp.v2.DataProfileActio" + + "n.ExportH\000\022[\n\024pub_sub_notification\030\002 \001(\013" + + "2;.google.privacy.dlp.v2.DataProfileActi" + + "on.PubSubNotificationH\000\032E\n\006Export\022;\n\rpro" + + "file_table\030\001 \001(\0132$.google.privacy.dlp.v2" + + ".BigQueryTable\032\352\002\n\022PubSubNotification\022\r\n" + + "\005topic\030\001 \001(\t\022A\n\005event\030\002 \001(\01622.google.pri" + + "vacy.dlp.v2.DataProfileAction.EventType\022" + + "K\n\020pubsub_condition\030\003 \001(\01321.google.priva" + + "cy.dlp.v2.DataProfilePubSubCondition\022b\n\021" + + "detail_of_message\030\004 \001(\0162G.google.privacy" + + ".dlp.v2.DataProfileAction.PubSubNotifica" + + "tion.DetailLevel\"Q\n\013DetailLevel\022\034\n\030DETAI" + + "L_LEVEL_UNSPECIFIED\020\000\022\021\n\rTABLE_PROFILE\020\001" + + "\022\021\n\rRESOURCE_NAME\020\002\"u\n\tEventType\022\032\n\026EVEN" + + "T_TYPE_UNSPECIFIED\020\000\022\017\n\013NEW_PROFILE\020\001\022\023\n" + + "\017CHANGED_PROFILE\020\002\022\023\n\017SCORE_INCREASED\020\003\022" + + "\021\n\rERROR_CHANGED\020\004B\010\n\006action\"\313\001\n\024DataPro" + + "fileJobConfig\022<\n\010location\030\001 \001(\0132*.google" + + ".privacy.dlp.v2.DataProfileLocation\022\022\n\np" + + "roject_id\030\005 \001(\t\022\031\n\021inspect_templates\030\007 \003" + + "(\t\022F\n\024data_profile_actions\030\006 \003(\0132(.googl" + + "e.privacy.dlp.v2.DataProfileAction\"Q\n\023Da" + + "taProfileLocation\022\031\n\017organization_id\030\001 \001" + + "(\003H\000\022\023\n\tfolder_id\030\002 \001(\003H\000B\n\n\010location\"\353\005", + "\n\006DlpJob\022\014\n\004name\030\001 \001(\t\022/\n\004type\030\002 \001(\0162!.g" + + "oogle.privacy.dlp.v2.DlpJobType\0225\n\005state" + + "\030\003 \001(\0162&.google.privacy.dlp.v2.DlpJob.Jo" + + "bState\022K\n\014risk_details\030\004 \001(\01323.google.pr" + + "ivacy.dlp.v2.AnalyzeDataSourceRiskDetail" + + "sH\000\022J\n\017inspect_details\030\005 \001(\0132/.google.pr" + + "ivacy.dlp.v2.InspectDataSourceDetailsH\000\022" + + "/\n\013create_time\030\006 \001(\0132\032.google.protobuf.T" + + "imestamp\022.\n\nstart_time\030\007 \001(\0132\032.google.pr" + + "otobuf.Timestamp\022,\n\010end_time\030\010 \001(\0132\032.goo" + + "gle.protobuf.Timestamp\022\030\n\020job_trigger_na" + + "me\030\n \001(\t\022,\n\006errors\030\013 \003(\0132\034.google.privac" + + "y.dlp.v2.Error\"o\n\010JobState\022\031\n\025JOB_STATE_" + + "UNSPECIFIED\020\000\022\013\n\007PENDING\020\001\022\013\n\007RUNNING\020\002\022" + + "\010\n\004DONE\020\003\022\014\n\010CANCELED\020\004\022\n\n\006FAILED\020\005\022\n\n\006A" + + "CTIVE\020\006:\177\352A|\n\031dlp.googleapis.com/DlpJob\022" + + "$projects/{project}/dlpJobs/{dlp_job}\0229p" + + "rojects/{project}/locations/{location}/d" + + "lpJobs/{dlp_job}B\t\n\007details\"C\n\020GetDlpJob" + + "Request\022/\n\004name\030\001 \001(\tB!\340A\002\372A\033\n\031dlp.googl" + + "eapis.com/DlpJob\"\326\001\n\022ListDlpJobsRequest\022" + + "1\n\006parent\030\004 \001(\tB!\340A\002\372A\033\022\031dlp.googleapis." + + "com/DlpJob\022\016\n\006filter\030\001 \001(\t\022\021\n\tpage_size\030" + + "\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022/\n\004type\030\005 \001(\0162" + + "!.google.privacy.dlp.v2.DlpJobType\022\020\n\010or" + + "der_by\030\006 \001(\t\022\023\n\013location_id\030\007 \001(\t\"[\n\023Lis" + + "tDlpJobsResponse\022+\n\004jobs\030\001 \003(\0132\035.google." + + "privacy.dlp.v2.DlpJob\022\027\n\017next_page_token" + + "\030\002 \001(\t\"F\n\023CancelDlpJobRequest\022/\n\004name\030\001 " + + "\001(\tB!\340A\002\372A\033\n\031dlp.googleapis.com/DlpJob\"F" + + "\n\023FinishDlpJobRequest\022/\n\004name\030\001 \001(\tB!\340A\002" + + "\372A\033\n\031dlp.googleapis.com/DlpJob\"F\n\023Delete" + + "DlpJobRequest\022/\n\004name\030\001 \001(\tB!\340A\002\372A\033\n\031dlp" + + ".googleapis.com/DlpJob\"\327\001\n\037CreateDeident" + + "ifyTemplateRequest\022=\n\006parent\030\001 \001(\tB-\340A\002\372" + + "A\'\022%dlp.googleapis.com/DeidentifyTemplat" + + "e\022K\n\023deidentify_template\030\002 \001(\0132).google." + + "privacy.dlp.v2.DeidentifyTemplateB\003\340A\002\022\023" + + "\n\013template_id\030\003 \001(\t\022\023\n\013location_id\030\004 \001(\t" + + "\"\327\001\n\037UpdateDeidentifyTemplateRequest\022;\n\004" + + "name\030\001 \001(\tB-\340A\002\372A\'\n%dlp.googleapis.com/D" + + "eidentifyTemplate\022F\n\023deidentify_template" + + "\030\002 \001(\0132).google.privacy.dlp.v2.Deidentif" + + "yTemplate\022/\n\013update_mask\030\003 \001(\0132\032.google." + + "protobuf.FieldMask\"[\n\034GetDeidentifyTempl" + + "ateRequest\022;\n\004name\030\001 \001(\tB-\340A\002\372A\'\n%dlp.go" + + "ogleapis.com/DeidentifyTemplate\"\255\001\n\036List" + + "DeidentifyTemplatesRequest\022=\n\006parent\030\001 \001" + + "(\tB-\340A\002\372A\'\022%dlp.googleapis.com/Deidentif" + + "yTemplate\022\022\n\npage_token\030\002 \001(\t\022\021\n\tpage_si" + + "ze\030\003 \001(\005\022\020\n\010order_by\030\004 \001(\t\022\023\n\013location_i" + + "d\030\005 \001(\t\"\203\001\n\037ListDeidentifyTemplatesRespo" + + "nse\022G\n\024deidentify_templates\030\001 \003(\0132).goog" + + "le.privacy.dlp.v2.DeidentifyTemplate\022\027\n\017" + + "next_page_token\030\002 \001(\t\"^\n\037DeleteDeidentif" + + "yTemplateRequest\022;\n\004name\030\001 \001(\tB-\340A\002\372A\'\n%" + + "dlp.googleapis.com/DeidentifyTemplate\"\364\001" + + "\n\033LargeCustomDictionaryConfig\022<\n\013output_" + + "path\030\001 \001(\0132\'.google.privacy.dlp.v2.Cloud" + + "StoragePath\022L\n\026cloud_storage_file_set\030\002 " + + "\001(\0132*.google.privacy.dlp.v2.CloudStorage" + + "FileSetH\000\022?\n\017big_query_field\030\003 \001(\0132$.goo" + + "gle.privacy.dlp.v2.BigQueryFieldH\000B\010\n\006so" + + "urce\"8\n\032LargeCustomDictionaryStats\022\032\n\022ap" + + "prox_num_phrases\030\001 \001(\003\"\246\002\n\024StoredInfoTyp" + + "eConfig\022\024\n\014display_name\030\001 \001(\t\022\023\n\013descrip" + + "tion\030\002 \001(\t\022U\n\027large_custom_dictionary\030\003 " + + "\001(\01322.google.privacy.dlp.v2.LargeCustomD" + + "ictionaryConfigH\000\022F\n\ndictionary\030\004 \001(\01320." + + "google.privacy.dlp.v2.CustomInfoType.Dic" + + "tionaryH\000\022<\n\005regex\030\005 \001(\0132+.google.privac" + + "y.dlp.v2.CustomInfoType.RegexH\000B\006\n\004type\"" + + "s\n\023StoredInfoTypeStats\022T\n\027large_custom_d" + + "ictionary\030\001 \001(\01321.google.privacy.dlp.v2." + + "LargeCustomDictionaryStatsH\000B\006\n\004type\"\251\002\n" + + "\025StoredInfoTypeVersion\022;\n\006config\030\001 \001(\0132+" + + ".google.privacy.dlp.v2.StoredInfoTypeCon" + + "fig\022/\n\013create_time\030\002 \001(\0132\032.google.protob" + + "uf.Timestamp\0229\n\005state\030\003 \001(\0162*.google.pri" + + "vacy.dlp.v2.StoredInfoTypeState\022,\n\006error" + + "s\030\004 \003(\0132\034.google.privacy.dlp.v2.Error\0229\n" + + "\005stats\030\005 \001(\0132*.google.privacy.dlp.v2.Sto" + + "redInfoTypeStats\"\361\003\n\016StoredInfoType\022\014\n\004n" + + "ame\030\001 \001(\t\022E\n\017current_version\030\002 \001(\0132,.goo" + + "gle.privacy.dlp.v2.StoredInfoTypeVersion" + + "\022F\n\020pending_versions\030\003 \003(\0132,.google.priv" + + "acy.dlp.v2.StoredInfoTypeVersion:\301\002\352A\275\002\n" + + "!dlp.googleapis.com/StoredInfoType\022?orga" + + "nizations/{organization}/storedInfoTypes" + + "/{stored_info_type}\0225projects/{project}/" + + "storedInfoTypes/{stored_info_type}\022Torga" + + "nizations/{organization}/locations/{loca" + + "tion}/storedInfoTypes/{stored_info_type}" + + "\022Jprojects/{project}/locations/{location" + + "}/storedInfoTypes/{stored_info_type}\"\314\001\n" + + "\033CreateStoredInfoTypeRequest\0229\n\006parent\030\001" + + " \001(\tB)\340A\002\372A#\022!dlp.googleapis.com/StoredI" + + "nfoType\022@\n\006config\030\002 \001(\0132+.google.privacy" + + ".dlp.v2.StoredInfoTypeConfigB\003\340A\002\022\033\n\023sto" + + "red_info_type_id\030\003 \001(\t\022\023\n\013location_id\030\004 " + + "\001(\t\"\304\001\n\033UpdateStoredInfoTypeRequest\0227\n\004n" + + "ame\030\001 \001(\tB)\340A\002\372A#\n!dlp.googleapis.com/St" + + "oredInfoType\022;\n\006config\030\002 \001(\0132+.google.pr" + + "ivacy.dlp.v2.StoredInfoTypeConfig\022/\n\013upd" + + "ate_mask\030\003 \001(\0132\032.google.protobuf.FieldMa" + + "sk\"S\n\030GetStoredInfoTypeRequest\0227\n\004name\030\001" + + " \001(\tB)\340A\002\372A#\n!dlp.googleapis.com/StoredI" + + "nfoType\"\245\001\n\032ListStoredInfoTypesRequest\0229" + + "\n\006parent\030\001 \001(\tB)\340A\002\372A#\022!dlp.googleapis.c" + + "om/StoredInfoType\022\022\n\npage_token\030\002 \001(\t\022\021\n" + + "\tpage_size\030\003 \001(\005\022\020\n\010order_by\030\004 \001(\t\022\023\n\013lo" + + "cation_id\030\005 \001(\t\"x\n\033ListStoredInfoTypesRe" + + "sponse\022@\n\021stored_info_types\030\001 \003(\0132%.goog" + + "le.privacy.dlp.v2.StoredInfoType\022\027\n\017next" + + "_page_token\030\002 \001(\t\"V\n\033DeleteStoredInfoTyp" + + "eRequest\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n!dlp.goog" + + "leapis.com/StoredInfoType\"\224\001\n\036HybridInsp" + + "ectJobTriggerRequest\0223\n\004name\030\001 \001(\tB%\340A\002\372" + + "A\037\n\035dlp.googleapis.com/JobTrigger\022=\n\013hyb" + + "rid_item\030\003 \001(\0132(.google.privacy.dlp.v2.H" + + "ybridContentItem\"\214\001\n\032HybridInspectDlpJob" + + "Request\022/\n\004name\030\001 \001(\tB!\340A\002\372A\033\n\031dlp.googl" + + "eapis.com/DlpJob\022=\n\013hybrid_item\030\003 \001(\0132(." + + "google.privacy.dlp.v2.HybridContentItem\"" + + "\213\001\n\021HybridContentItem\0220\n\004item\030\001 \001(\0132\".go" + + "ogle.privacy.dlp.v2.ContentItem\022D\n\017findi" + + "ng_details\030\002 \001(\0132+.google.privacy.dlp.v2" + + ".HybridFindingDetails\"\260\002\n\024HybridFindingD" + + "etails\022;\n\021container_details\030\001 \001(\0132 .goog" + + "le.privacy.dlp.v2.Container\022\023\n\013file_offs" + + "et\030\002 \001(\003\022\022\n\nrow_offset\030\003 \001(\003\022:\n\rtable_op" + + "tions\030\004 \001(\0132#.google.privacy.dlp.v2.Tabl" + + "eOptions\022G\n\006labels\030\005 \003(\01327.google.privac" + + "y.dlp.v2.HybridFindingDetails.LabelsEntr" + + "y\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002" + + " \001(\t:\0028\001\"\027\n\025HybridInspectResponse\"\271\001\n\rDa" + + "taRiskLevel\022F\n\005score\030\001 \001(\01627.google.priv" + + "acy.dlp.v2.DataRiskLevel.DataRiskLevelSc" + + "ore\"`\n\022DataRiskLevelScore\022\032\n\026RISK_SCORE_" + + "UNSPECIFIED\020\000\022\014\n\010RISK_LOW\020\n\022\021\n\rRISK_MODE" + + "RATE\020\024\022\r\n\tRISK_HIGH\020\036\"\240\001\n\031DataProfileCon" + + "figSnapshot\022<\n\016inspect_config\030\002 \001(\0132$.go" + + "ogle.privacy.dlp.v2.InspectConfig\022E\n\020dat" + + "a_profile_job\030\003 \001(\0132+.google.privacy.dlp" + + ".v2.DataProfileJobConfig\"\232\n\n\020TableDataPr" + + "ofile\022\014\n\004name\030\001 \001(\t\022\034\n\024project_data_prof" + + "ile\030\002 \001(\t\022\032\n\022dataset_project_id\030\030 \001(\t\022\030\n" + + "\020dataset_location\030\035 \001(\t\022\022\n\ndataset_id\030\031 " + + "\001(\t\022\020\n\010table_id\030\032 \001(\t\022\025\n\rfull_resource\030\003" + + " \001(\t\022<\n\016profile_status\030\025 \001(\0132$.google.pr" + + "ivacy.dlp.v2.ProfileStatus\022<\n\005state\030\026 \001(" + + "\0162-.google.privacy.dlp.v2.TableDataProfi" + + "le.State\022B\n\021sensitivity_score\030\005 \001(\0132\'.go" + + "ogle.privacy.dlp.v2.SensitivityScore\022=\n\017" + + "data_risk_level\030\006 \001(\0132$.google.privacy.d" + + "lp.v2.DataRiskLevel\022D\n\024predicted_info_ty" + + "pes\030\033 \003(\0132&.google.privacy.dlp.v2.InfoTy" + + "peSummary\022E\n\020other_info_types\030\034 \003(\0132+.go" + + "ogle.privacy.dlp.v2.OtherInfoTypeSummary" + + "\022I\n\017config_snapshot\030\007 \001(\01320.google.priva" + + "cy.dlp.v2.DataProfileConfigSnapshot\0226\n\022l" + + "ast_modified_time\030\010 \001(\0132\032.google.protobu" + + "f.Timestamp\0223\n\017expiration_time\030\t \001(\0132\032.g" + + "oogle.protobuf.Timestamp\022\034\n\024scanned_colu" + + "mn_count\030\n \001(\003\022\033\n\023failed_column_count\030\013 " + + "\001(\003\022\030\n\020table_size_bytes\030\014 \001(\003\022\021\n\trow_cou" + + "nt\030\r \001(\003\022B\n\021encryption_status\030\016 \001(\0162\'.go" + + "ogle.privacy.dlp.v2.EncryptionStatus\022F\n\023" + + "resource_visibility\030\017 \001(\0162).google.priva" + + "cy.dlp.v2.ResourceVisibility\022:\n\026profile_" + + "last_generated\030\020 \001(\0132\032.google.protobuf.T" + + "imestamp\022T\n\017resource_labels\030\021 \003(\0132;.goog" + + "le.privacy.dlp.v2.TableDataProfile.Resou" + + "rceLabelsEntry\022/\n\013create_time\030\027 \001(\0132\032.go" + + "ogle.protobuf.Timestamp\0325\n\023ResourceLabel" + + "sEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"5" + + "\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\013\n\007RUNNIN" + + "G\020\001\022\010\n\004DONE\020\002\"b\n\rProfileStatus\022\"\n\006status" + + "\030\001 \001(\0132\022.google.rpc.Status\022-\n\ttimestamp\030" + + "\003 \001(\0132\032.google.protobuf.Timestamp\"c\n\017Inf" + + "oTypeSummary\0222\n\tinfo_type\030\001 \001(\0132\037.google" + + ".privacy.dlp.v2.InfoType\022\034\n\024estimated_pr" + + "evalence\030\002 \001(\005\"h\n\024OtherInfoTypeSummary\0222" + + "\n\tinfo_type\030\001 \001(\0132\037.google.privacy.dlp.v" + + "2.InfoType\022\034\n\024estimated_prevalence\030\002 \001(\005" + + "\"\352\005\n\032DataProfilePubSubCondition\022X\n\013expre" + + "ssions\030\001 \001(\0132C.google.privacy.dlp.v2.Dat" + + "aProfilePubSubCondition.PubSubExpression" + + "s\032\351\001\n\017PubSubCondition\022b\n\022minimum_risk_sc" + + "ore\030\001 \001(\0162D.google.privacy.dlp.v2.DataPr" + + "ofilePubSubCondition.ProfileScoreBucketH" + + "\000\022i\n\031minimum_sensitivity_score\030\002 \001(\0162D.g" + + "oogle.privacy.dlp.v2.DataProfilePubSubCo" + + "ndition.ProfileScoreBucketH\000B\007\n\005value\032\253\002" + + "\n\021PubSubExpressions\022s\n\020logical_operator\030" + + "\001 \001(\0162Y.google.privacy.dlp.v2.DataProfil" + + "ePubSubCondition.PubSubExpressions.PubSu" + + "bLogicalOperator\022U\n\nconditions\030\002 \003(\0132A.g" + + "oogle.privacy.dlp.v2.DataProfilePubSubCo" + + "ndition.PubSubCondition\"J\n\025PubSubLogical" + + "Operator\022 \n\034LOGICAL_OPERATOR_UNSPECIFIED" + + "\020\000\022\006\n\002OR\020\001\022\007\n\003AND\020\002\"X\n\022ProfileScoreBucke" + + "t\022$\n PROFILE_SCORE_BUCKET_UNSPECIFIED\020\000\022" + + "\010\n\004HIGH\020\001\022\022\n\016MEDIUM_OR_HIGH\020\002\"\227\001\n\030DataPr" + + "ofilePubSubMessage\0228\n\007profile\030\001 \001(\0132\'.go" + + "ogle.privacy.dlp.v2.TableDataProfile\022A\n\005" + + "event\030\002 \001(\01622.google.privacy.dlp.v2.Data" + + "ProfileAction.EventType*\240\001\n\036Transformati" + + "onResultStatusType\022\032\n\026STATE_TYPE_UNSPECI" + + "FIED\020\000\022\025\n\021INVALID_TRANSFORM\020\001\022\"\n\036BIGQUER" + + "Y_MAX_ROW_SIZE_EXCEEDED\020\002\022\032\n\026METADATA_UN" + + "RETRIEVABLE\020\003\022\013\n\007SUCCESS\020\004*\177\n\033Transforma" + + "tionContainerType\022\037\n\033TRANSFORM_UNKNOWN_C" + + "ONTAINER\020\000\022\022\n\016TRANSFORM_BODY\020\001\022\026\n\022TRANSF" + + "ORM_METADATA\020\002\022\023\n\017TRANSFORM_TABLE\020\003*\340\002\n\022" + + "TransformationType\022#\n\037TRANSFORMATION_TYP" + + "E_UNSPECIFIED\020\000\022\026\n\022RECORD_SUPPRESSION\020\001\022" + + "\021\n\rREPLACE_VALUE\020\002\022\026\n\022REPLACE_DICTIONARY" + + "\020\017\022\n\n\006REDACT\020\003\022\022\n\016CHARACTER_MASK\020\004\022\032\n\026CR" + + "YPTO_REPLACE_FFX_FPE\020\005\022\030\n\024FIXED_SIZE_BUC" + + "KETING\020\006\022\r\n\tBUCKETING\020\007\022\032\n\026REPLACE_WITH_" + + "INFO_TYPE\020\010\022\r\n\tTIME_PART\020\t\022\017\n\013CRYPTO_HAS" + + "H\020\n\022\016\n\nDATE_SHIFT\020\014\022\037\n\033CRYPTO_DETERMINIS" + + "TIC_CONFIG\020\r\022\020\n\014REDACT_IMAGE\020\016*\273\001\n\022Relat" + + "ionalOperator\022#\n\037RELATIONAL_OPERATOR_UNS" + + "PECIFIED\020\000\022\014\n\010EQUAL_TO\020\001\022\020\n\014NOT_EQUAL_TO" + + "\020\002\022\020\n\014GREATER_THAN\020\003\022\r\n\tLESS_THAN\020\004\022\032\n\026G" + + "REATER_THAN_OR_EQUALS\020\005\022\027\n\023LESS_THAN_OR_" + + "EQUALS\020\006\022\n\n\006EXISTS\020\007*\215\001\n\014MatchingType\022\035\n" + + "\031MATCHING_TYPE_UNSPECIFIED\020\000\022\034\n\030MATCHING" + + "_TYPE_FULL_MATCH\020\001\022\037\n\033MATCHING_TYPE_PART" + + "IAL_MATCH\020\002\022\037\n\033MATCHING_TYPE_INVERSE_MAT" + + "CH\020\003*M\n\rContentOption\022\027\n\023CONTENT_UNSPECI" + + "FIED\020\000\022\020\n\014CONTENT_TEXT\020\001\022\021\n\rCONTENT_IMAG" + + "E\020\002*B\n\014MetadataType\022\034\n\030METADATATYPE_UNSP" + + "ECIFIED\020\000\022\024\n\020STORAGE_METADATA\020\002*P\n\023InfoT" + + "ypeSupportedBy\022\031\n\025ENUM_TYPE_UNSPECIFIED\020" + + "\000\022\013\n\007INSPECT\020\001\022\021\n\rRISK_ANALYSIS\020\002*R\n\nDlp" + + "JobType\022\034\n\030DLP_JOB_TYPE_UNSPECIFIED\020\000\022\017\n" + + "\013INSPECT_JOB\020\001\022\025\n\021RISK_ANALYSIS_JOB\020\002*n\n" + + "\023StoredInfoTypeState\022&\n\"STORED_INFO_TYPE" + + "_STATE_UNSPECIFIED\020\000\022\013\n\007PENDING\020\001\022\t\n\005REA" + + "DY\020\002\022\n\n\006FAILED\020\003\022\013\n\007INVALID\020\004*}\n\022Resourc" + + "eVisibility\022#\n\037RESOURCE_VISIBILITY_UNSPE" + + "CIFIED\020\000\022\036\n\032RESOURCE_VISIBILITY_PUBLIC\020\n" + + "\022\"\n\036RESOURCE_VISIBILITY_RESTRICTED\020\024*u\n\020" + + "EncryptionStatus\022!\n\035ENCRYPTION_STATUS_UN" + + "SPECIFIED\020\000\022\035\n\031ENCRYPTION_GOOGLE_MANAGED" + + "\020\001\022\037\n\033ENCRYPTION_CUSTOMER_MANAGED\020\0022\240L\n\n" + + "DlpService\022\333\001\n\016InspectContent\022,.google.p" + + "rivacy.dlp.v2.InspectContentRequest\032-.go" + + "ogle.privacy.dlp.v2.InspectContentRespon" + + "se\"l\202\323\344\223\002f\"\'/v2/{parent=projects/*}/cont" + + "ent:inspect:\001*Z8\"3/v2/{parent=projects/*" + + "/locations/*}/content:inspect:\001*\022\314\001\n\013Red" + + "actImage\022).google.privacy.dlp.v2.RedactI" + + "mageRequest\032*.google.privacy.dlp.v2.Reda" + + "ctImageResponse\"f\202\323\344\223\002`\"$/v2/{parent=pro" + + "jects/*}/image:redact:\001*Z5\"0/v2/{parent=" + + "projects/*/locations/*}/image:redact:\001*\022" + + "\352\001\n\021DeidentifyContent\022/.google.privacy.d" + + "lp.v2.DeidentifyContentRequest\0320.google." + + "privacy.dlp.v2.DeidentifyContentResponse" + + "\"r\202\323\344\223\002l\"*/v2/{parent=projects/*}/conten" + + "t:deidentify:\001*Z;\"6/v2/{parent=projects/" + + "*/locations/*}/content:deidentify:\001*\022\352\001\n" + + "\021ReidentifyContent\022/.google.privacy.dlp." + + "v2.ReidentifyContentRequest\0320.google.pri" + + "vacy.dlp.v2.ReidentifyContentResponse\"r\202" + + "\323\344\223\002l\"*/v2/{parent=projects/*}/content:r" + + "eidentify:\001*Z;\"6/v2/{parent=projects/*/l" + + "ocations/*}/content:reidentify:\001*\022\260\001\n\rLi" + + "stInfoTypes\022+.google.privacy.dlp.v2.List" + + "InfoTypesRequest\032,.google.privacy.dlp.v2" + + ".ListInfoTypesResponse\"D\202\323\344\223\0025\022\r/v2/info" + + "TypesZ$\022\"/v2/{parent=locations/*}/infoTy" + + "pes\332A\006parent\022\364\002\n\025CreateInspectTemplate\0223" + + ".google.privacy.dlp.v2.CreateInspectTemp" + + "lateRequest\032&.google.privacy.dlp.v2.Insp" + + "ectTemplate\"\375\001\202\323\344\223\002\334\001\"-/v2/{parent=organ" + + "izations/*}/inspectTemplates:\001*Z>\"9/v2/{" + + "parent=organizations/*/locations/*}/insp" + + "ectTemplates:\001*Z-\"(/v2/{parent=projects/" + + "*}/inspectTemplates:\001*Z9\"4/v2/{parent=pr" + + "ojects/*/locations/*}/inspectTemplates:\001" + + "*\332A\027parent,inspect_template\022\376\002\n\025UpdateIn" + + "spectTemplate\0223.google.privacy.dlp.v2.Up" + + "dateInspectTemplateRequest\032&.google.priv" + + "acy.dlp.v2.InspectTemplate\"\207\002\202\323\344\223\002\334\0012-/v" + + "2/{name=organizations/*/inspectTemplates" + + "/*}:\001*Z>29/v2/{name=organizations/*/loca" + + "tions/*/inspectTemplates/*}:\001*Z-2(/v2/{n" + + "ame=projects/*/inspectTemplates/*}:\001*Z92" + + "4/v2/{name=projects/*/locations/*/inspec" + + "tTemplates/*}:\001*\332A!name,inspect_template" + + ",update_mask\022\317\002\n\022GetInspectTemplate\0220.go" + + "ogle.privacy.dlp.v2.GetInspectTemplateRe" + + "quest\032&.google.privacy.dlp.v2.InspectTem" + + "plate\"\336\001\202\323\344\223\002\320\001\022-/v2/{name=organizations" + + "/*/inspectTemplates/*}Z;\0229/v2/{name=orga" + + "nizations/*/locations/*/inspectTemplates" + + "/*}Z*\022(/v2/{name=projects/*/inspectTempl" + + "ates/*}Z6\0224/v2/{name=projects/*/location" + + "s/*/inspectTemplates/*}\332A\004name\022\342\002\n\024ListI" + + "nspectTemplates\0222.google.privacy.dlp.v2." + + "ListInspectTemplatesRequest\0323.google.pri" + + "vacy.dlp.v2.ListInspectTemplatesResponse" + + "\"\340\001\202\323\344\223\002\320\001\022-/v2/{parent=organizations/*}" + + "/inspectTemplatesZ;\0229/v2/{parent=organiz" + + "ations/*/locations/*}/inspectTemplatesZ*" + + "\022(/v2/{parent=projects/*}/inspectTemplat" + + "esZ6\0224/v2/{parent=projects/*/locations/*" + + "}/inspectTemplates\332A\006parent\022\305\002\n\025DeleteIn" + + "spectTemplate\0223.google.privacy.dlp.v2.De" + + "leteInspectTemplateRequest\032\026.google.prot" + + "obuf.Empty\"\336\001\202\323\344\223\002\320\001*-/v2/{name=organiza" + + "tions/*/inspectTemplates/*}Z;*9/v2/{name" + + "=organizations/*/locations/*/inspectTemp" + + "lates/*}Z**(/v2/{name=projects/*/inspect" + + "Templates/*}Z6*4/v2/{name=projects/*/loc" + + "ations/*/inspectTemplates/*}\332A\004name\022\214\003\n\030" + + "CreateDeidentifyTemplate\0226.google.privac" + + "y.dlp.v2.CreateDeidentifyTemplateRequest" + + "\032).google.privacy.dlp.v2.DeidentifyTempl" + + "ate\"\214\002\202\323\344\223\002\350\001\"0/v2/{parent=organizations" + + "/*}/deidentifyTemplates:\001*ZA\"\022\022*\"9/v2/{name" + + "=projects/*/locations/*/dlpJobs/*}:hybri" + + "dInspect:\001*\332A\004name\022\221\001\n\014FinishDlpJob\022*.go" + + "ogle.privacy.dlp.v2.FinishDlpJobRequest\032" + + "\026.google.protobuf.Empty\"=\202\323\344\223\0027\"2/v2/{na" + + "me=projects/*/locations/*/dlpJobs/*}:fin" + + "ish:\001*\032F\312A\022dlp.googleapis.com\322A.https://" + + "www.googleapis.com/auth/cloud-platformB\372" + + "\002\n\031com.google.privacy.dlp.v2B\010DlpProtoP\001" + + "Z8google.golang.org/genproto/googleapis/" + + "privacy/dlp/v2;dlp\252\002\023Google.Cloud.Dlp.V2" + + "\312\002\023Google\\Cloud\\Dlp\\V2\352\002\026Google::Cloud::" + + "Dlp::V2\352Ar\n\035dlp.googleapis.com/DlpConten" + + "t\022\035projects/{project}/dlpContent\0222projec" + + "ts/{project}/locations/{location}/dlpCon" + + "tent\352A\\\n\'dlp.googleapis.com/Organization" + + "Location\0221organizations/{organization}/l" + + "ocations/{location}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -2440,7 +2565,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_InfoTypeDescription_descriptor, new java.lang.String[] { - "Name", "DisplayName", "SupportedBy", "Description", "Categories", + "Name", "DisplayName", "SupportedBy", "Description", "Versions", "Categories", }); internal_static_google_privacy_dlp_v2_InfoTypeCategory_descriptor = getDescriptor().getMessageTypes().get(35); @@ -2450,8 +2575,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "LocationCategory", "IndustryCategory", "TypeCategory", "Category", }); - internal_static_google_privacy_dlp_v2_ListInfoTypesRequest_descriptor = + internal_static_google_privacy_dlp_v2_VersionDescription_descriptor = getDescriptor().getMessageTypes().get(36); + internal_static_google_privacy_dlp_v2_VersionDescription_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_privacy_dlp_v2_VersionDescription_descriptor, + new java.lang.String[] { + "Version", "Description", + }); + internal_static_google_privacy_dlp_v2_ListInfoTypesRequest_descriptor = + getDescriptor().getMessageTypes().get(37); internal_static_google_privacy_dlp_v2_ListInfoTypesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_ListInfoTypesRequest_descriptor, @@ -2459,7 +2592,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "LanguageCode", "Filter", "LocationId", }); internal_static_google_privacy_dlp_v2_ListInfoTypesResponse_descriptor = - getDescriptor().getMessageTypes().get(37); + getDescriptor().getMessageTypes().get(38); internal_static_google_privacy_dlp_v2_ListInfoTypesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_ListInfoTypesResponse_descriptor, @@ -2467,7 +2600,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "InfoTypes", }); internal_static_google_privacy_dlp_v2_RiskAnalysisJobConfig_descriptor = - getDescriptor().getMessageTypes().get(38); + getDescriptor().getMessageTypes().get(39); internal_static_google_privacy_dlp_v2_RiskAnalysisJobConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_RiskAnalysisJobConfig_descriptor, @@ -2475,7 +2608,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PrivacyMetric", "SourceTable", "Actions", }); internal_static_google_privacy_dlp_v2_QuasiId_descriptor = - getDescriptor().getMessageTypes().get(39); + getDescriptor().getMessageTypes().get(40); internal_static_google_privacy_dlp_v2_QuasiId_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_QuasiId_descriptor, @@ -2483,7 +2616,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Field", "InfoType", "CustomTag", "Inferred", "Tag", }); internal_static_google_privacy_dlp_v2_StatisticalTable_descriptor = - getDescriptor().getMessageTypes().get(40); + getDescriptor().getMessageTypes().get(41); internal_static_google_privacy_dlp_v2_StatisticalTable_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_StatisticalTable_descriptor, @@ -2499,7 +2632,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Field", "CustomTag", }); internal_static_google_privacy_dlp_v2_PrivacyMetric_descriptor = - getDescriptor().getMessageTypes().get(41); + getDescriptor().getMessageTypes().get(42); internal_static_google_privacy_dlp_v2_PrivacyMetric_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_PrivacyMetric_descriptor, @@ -2591,7 +2724,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "QuasiIds", "RegionCode", "AuxiliaryTables", }); internal_static_google_privacy_dlp_v2_AnalyzeDataSourceRiskDetails_descriptor = - getDescriptor().getMessageTypes().get(42); + getDescriptor().getMessageTypes().get(43); internal_static_google_privacy_dlp_v2_AnalyzeDataSourceRiskDetails_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_AnalyzeDataSourceRiskDetails_descriptor, @@ -2783,7 +2916,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "JobConfig", }); internal_static_google_privacy_dlp_v2_ValueFrequency_descriptor = - getDescriptor().getMessageTypes().get(43); + getDescriptor().getMessageTypes().get(44); internal_static_google_privacy_dlp_v2_ValueFrequency_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_ValueFrequency_descriptor, @@ -2791,7 +2924,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Value", "Count", }); internal_static_google_privacy_dlp_v2_Value_descriptor = - getDescriptor().getMessageTypes().get(44); + getDescriptor().getMessageTypes().get(45); internal_static_google_privacy_dlp_v2_Value_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_Value_descriptor, @@ -2807,7 +2940,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Type", }); internal_static_google_privacy_dlp_v2_QuoteInfo_descriptor = - getDescriptor().getMessageTypes().get(45); + getDescriptor().getMessageTypes().get(46); internal_static_google_privacy_dlp_v2_QuoteInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_QuoteInfo_descriptor, @@ -2815,7 +2948,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DateTime", "ParsedQuote", }); internal_static_google_privacy_dlp_v2_DateTime_descriptor = - getDescriptor().getMessageTypes().get(46); + getDescriptor().getMessageTypes().get(47); internal_static_google_privacy_dlp_v2_DateTime_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_DateTime_descriptor, @@ -2831,18 +2964,63 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "OffsetMinutes", }); internal_static_google_privacy_dlp_v2_DeidentifyConfig_descriptor = - getDescriptor().getMessageTypes().get(47); + getDescriptor().getMessageTypes().get(48); internal_static_google_privacy_dlp_v2_DeidentifyConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_DeidentifyConfig_descriptor, new java.lang.String[] { "InfoTypeTransformations", "RecordTransformations", + "ImageTransformations", "TransformationErrorHandling", "Transformation", }); + internal_static_google_privacy_dlp_v2_ImageTransformations_descriptor = + getDescriptor().getMessageTypes().get(49); + internal_static_google_privacy_dlp_v2_ImageTransformations_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_privacy_dlp_v2_ImageTransformations_descriptor, + new java.lang.String[] { + "Transforms", + }); + internal_static_google_privacy_dlp_v2_ImageTransformations_ImageTransformation_descriptor = + internal_static_google_privacy_dlp_v2_ImageTransformations_descriptor + .getNestedTypes() + .get(0); + internal_static_google_privacy_dlp_v2_ImageTransformations_ImageTransformation_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_privacy_dlp_v2_ImageTransformations_ImageTransformation_descriptor, + new java.lang.String[] { + "SelectedInfoTypes", "AllInfoTypes", "AllText", "RedactionColor", "Target", + }); + internal_static_google_privacy_dlp_v2_ImageTransformations_ImageTransformation_SelectedInfoTypes_descriptor = + internal_static_google_privacy_dlp_v2_ImageTransformations_ImageTransformation_descriptor + .getNestedTypes() + .get(0); + internal_static_google_privacy_dlp_v2_ImageTransformations_ImageTransformation_SelectedInfoTypes_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_privacy_dlp_v2_ImageTransformations_ImageTransformation_SelectedInfoTypes_descriptor, + new java.lang.String[] { + "InfoTypes", + }); + internal_static_google_privacy_dlp_v2_ImageTransformations_ImageTransformation_AllInfoTypes_descriptor = + internal_static_google_privacy_dlp_v2_ImageTransformations_ImageTransformation_descriptor + .getNestedTypes() + .get(1); + internal_static_google_privacy_dlp_v2_ImageTransformations_ImageTransformation_AllInfoTypes_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_privacy_dlp_v2_ImageTransformations_ImageTransformation_AllInfoTypes_descriptor, + new java.lang.String[] {}); + internal_static_google_privacy_dlp_v2_ImageTransformations_ImageTransformation_AllText_descriptor = + internal_static_google_privacy_dlp_v2_ImageTransformations_ImageTransformation_descriptor + .getNestedTypes() + .get(2); + internal_static_google_privacy_dlp_v2_ImageTransformations_ImageTransformation_AllText_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_privacy_dlp_v2_ImageTransformations_ImageTransformation_AllText_descriptor, + new java.lang.String[] {}); internal_static_google_privacy_dlp_v2_TransformationErrorHandling_descriptor = - getDescriptor().getMessageTypes().get(48); + getDescriptor().getMessageTypes().get(50); internal_static_google_privacy_dlp_v2_TransformationErrorHandling_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_TransformationErrorHandling_descriptor, @@ -2866,7 +3044,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { internal_static_google_privacy_dlp_v2_TransformationErrorHandling_LeaveUntransformed_descriptor, new java.lang.String[] {}); internal_static_google_privacy_dlp_v2_PrimitiveTransformation_descriptor = - getDescriptor().getMessageTypes().get(49); + getDescriptor().getMessageTypes().get(51); internal_static_google_privacy_dlp_v2_PrimitiveTransformation_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_PrimitiveTransformation_descriptor, @@ -2886,7 +3064,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Transformation", }); internal_static_google_privacy_dlp_v2_TimePartConfig_descriptor = - getDescriptor().getMessageTypes().get(50); + getDescriptor().getMessageTypes().get(52); internal_static_google_privacy_dlp_v2_TimePartConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_TimePartConfig_descriptor, @@ -2894,7 +3072,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PartToExtract", }); internal_static_google_privacy_dlp_v2_CryptoHashConfig_descriptor = - getDescriptor().getMessageTypes().get(51); + getDescriptor().getMessageTypes().get(53); internal_static_google_privacy_dlp_v2_CryptoHashConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_CryptoHashConfig_descriptor, @@ -2902,7 +3080,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CryptoKey", }); internal_static_google_privacy_dlp_v2_CryptoDeterministicConfig_descriptor = - getDescriptor().getMessageTypes().get(52); + getDescriptor().getMessageTypes().get(54); internal_static_google_privacy_dlp_v2_CryptoDeterministicConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_CryptoDeterministicConfig_descriptor, @@ -2910,7 +3088,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CryptoKey", "SurrogateInfoType", "Context", }); internal_static_google_privacy_dlp_v2_ReplaceValueConfig_descriptor = - getDescriptor().getMessageTypes().get(53); + getDescriptor().getMessageTypes().get(55); internal_static_google_privacy_dlp_v2_ReplaceValueConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_ReplaceValueConfig_descriptor, @@ -2918,7 +3096,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "NewValue", }); internal_static_google_privacy_dlp_v2_ReplaceDictionaryConfig_descriptor = - getDescriptor().getMessageTypes().get(54); + getDescriptor().getMessageTypes().get(56); internal_static_google_privacy_dlp_v2_ReplaceDictionaryConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_ReplaceDictionaryConfig_descriptor, @@ -2926,19 +3104,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "WordList", "Type", }); internal_static_google_privacy_dlp_v2_ReplaceWithInfoTypeConfig_descriptor = - getDescriptor().getMessageTypes().get(55); + getDescriptor().getMessageTypes().get(57); internal_static_google_privacy_dlp_v2_ReplaceWithInfoTypeConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_ReplaceWithInfoTypeConfig_descriptor, new java.lang.String[] {}); internal_static_google_privacy_dlp_v2_RedactConfig_descriptor = - getDescriptor().getMessageTypes().get(56); + getDescriptor().getMessageTypes().get(58); internal_static_google_privacy_dlp_v2_RedactConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_RedactConfig_descriptor, new java.lang.String[] {}); internal_static_google_privacy_dlp_v2_CharsToIgnore_descriptor = - getDescriptor().getMessageTypes().get(57); + getDescriptor().getMessageTypes().get(59); internal_static_google_privacy_dlp_v2_CharsToIgnore_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_CharsToIgnore_descriptor, @@ -2946,7 +3124,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CharactersToSkip", "CommonCharactersToIgnore", "Characters", }); internal_static_google_privacy_dlp_v2_CharacterMaskConfig_descriptor = - getDescriptor().getMessageTypes().get(58); + getDescriptor().getMessageTypes().get(60); internal_static_google_privacy_dlp_v2_CharacterMaskConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_CharacterMaskConfig_descriptor, @@ -2954,7 +3132,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "MaskingCharacter", "NumberToMask", "ReverseOrder", "CharactersToIgnore", }); internal_static_google_privacy_dlp_v2_FixedSizeBucketingConfig_descriptor = - getDescriptor().getMessageTypes().get(59); + getDescriptor().getMessageTypes().get(61); internal_static_google_privacy_dlp_v2_FixedSizeBucketingConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_FixedSizeBucketingConfig_descriptor, @@ -2962,7 +3140,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "LowerBound", "UpperBound", "BucketSize", }); internal_static_google_privacy_dlp_v2_BucketingConfig_descriptor = - getDescriptor().getMessageTypes().get(60); + getDescriptor().getMessageTypes().get(62); internal_static_google_privacy_dlp_v2_BucketingConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_BucketingConfig_descriptor, @@ -2978,7 +3156,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Min", "Max", "ReplacementValue", }); internal_static_google_privacy_dlp_v2_CryptoReplaceFfxFpeConfig_descriptor = - getDescriptor().getMessageTypes().get(61); + getDescriptor().getMessageTypes().get(63); internal_static_google_privacy_dlp_v2_CryptoReplaceFfxFpeConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_CryptoReplaceFfxFpeConfig_descriptor, @@ -2992,7 +3170,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Alphabet", }); internal_static_google_privacy_dlp_v2_CryptoKey_descriptor = - getDescriptor().getMessageTypes().get(62); + getDescriptor().getMessageTypes().get(64); internal_static_google_privacy_dlp_v2_CryptoKey_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_CryptoKey_descriptor, @@ -3000,7 +3178,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Transient", "Unwrapped", "KmsWrapped", "Source", }); internal_static_google_privacy_dlp_v2_TransientCryptoKey_descriptor = - getDescriptor().getMessageTypes().get(63); + getDescriptor().getMessageTypes().get(65); internal_static_google_privacy_dlp_v2_TransientCryptoKey_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_TransientCryptoKey_descriptor, @@ -3008,7 +3186,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_privacy_dlp_v2_UnwrappedCryptoKey_descriptor = - getDescriptor().getMessageTypes().get(64); + getDescriptor().getMessageTypes().get(66); internal_static_google_privacy_dlp_v2_UnwrappedCryptoKey_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_UnwrappedCryptoKey_descriptor, @@ -3016,7 +3194,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", }); internal_static_google_privacy_dlp_v2_KmsWrappedCryptoKey_descriptor = - getDescriptor().getMessageTypes().get(65); + getDescriptor().getMessageTypes().get(67); internal_static_google_privacy_dlp_v2_KmsWrappedCryptoKey_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_KmsWrappedCryptoKey_descriptor, @@ -3024,7 +3202,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "WrappedKey", "CryptoKeyName", }); internal_static_google_privacy_dlp_v2_DateShiftConfig_descriptor = - getDescriptor().getMessageTypes().get(66); + getDescriptor().getMessageTypes().get(68); internal_static_google_privacy_dlp_v2_DateShiftConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_DateShiftConfig_descriptor, @@ -3032,7 +3210,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "UpperBoundDays", "LowerBoundDays", "Context", "CryptoKey", "Method", }); internal_static_google_privacy_dlp_v2_InfoTypeTransformations_descriptor = - getDescriptor().getMessageTypes().get(67); + getDescriptor().getMessageTypes().get(69); internal_static_google_privacy_dlp_v2_InfoTypeTransformations_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_InfoTypeTransformations_descriptor, @@ -3050,7 +3228,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "InfoTypes", "PrimitiveTransformation", }); internal_static_google_privacy_dlp_v2_FieldTransformation_descriptor = - getDescriptor().getMessageTypes().get(68); + getDescriptor().getMessageTypes().get(70); internal_static_google_privacy_dlp_v2_FieldTransformation_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_FieldTransformation_descriptor, @@ -3062,7 +3240,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Transformation", }); internal_static_google_privacy_dlp_v2_RecordTransformations_descriptor = - getDescriptor().getMessageTypes().get(69); + getDescriptor().getMessageTypes().get(71); internal_static_google_privacy_dlp_v2_RecordTransformations_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_RecordTransformations_descriptor, @@ -3070,7 +3248,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "FieldTransformations", "RecordSuppressions", }); internal_static_google_privacy_dlp_v2_RecordSuppression_descriptor = - getDescriptor().getMessageTypes().get(70); + getDescriptor().getMessageTypes().get(72); internal_static_google_privacy_dlp_v2_RecordSuppression_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_RecordSuppression_descriptor, @@ -3078,7 +3256,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Condition", }); internal_static_google_privacy_dlp_v2_RecordCondition_descriptor = - getDescriptor().getMessageTypes().get(71); + getDescriptor().getMessageTypes().get(73); internal_static_google_privacy_dlp_v2_RecordCondition_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_RecordCondition_descriptor, @@ -3110,7 +3288,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "LogicalOperator", "Conditions", "Type", }); internal_static_google_privacy_dlp_v2_TransformationOverview_descriptor = - getDescriptor().getMessageTypes().get(72); + getDescriptor().getMessageTypes().get(74); internal_static_google_privacy_dlp_v2_TransformationOverview_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_TransformationOverview_descriptor, @@ -3118,7 +3296,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "TransformedBytes", "TransformationSummaries", }); internal_static_google_privacy_dlp_v2_TransformationSummary_descriptor = - getDescriptor().getMessageTypes().get(73); + getDescriptor().getMessageTypes().get(75); internal_static_google_privacy_dlp_v2_TransformationSummary_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_TransformationSummary_descriptor, @@ -3141,8 +3319,61 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Count", "Code", "Details", }); + internal_static_google_privacy_dlp_v2_TransformationDescription_descriptor = + getDescriptor().getMessageTypes().get(76); + internal_static_google_privacy_dlp_v2_TransformationDescription_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_privacy_dlp_v2_TransformationDescription_descriptor, + new java.lang.String[] { + "Type", "Description", "Condition", "InfoType", + }); + internal_static_google_privacy_dlp_v2_TransformationDetails_descriptor = + getDescriptor().getMessageTypes().get(77); + internal_static_google_privacy_dlp_v2_TransformationDetails_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_privacy_dlp_v2_TransformationDetails_descriptor, + new java.lang.String[] { + "ResourceName", + "ContainerName", + "Transformation", + "StatusDetails", + "TransformedBytes", + "TransformationLocation", + }); + internal_static_google_privacy_dlp_v2_TransformationLocation_descriptor = + getDescriptor().getMessageTypes().get(78); + internal_static_google_privacy_dlp_v2_TransformationLocation_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_privacy_dlp_v2_TransformationLocation_descriptor, + new java.lang.String[] { + "FindingId", "RecordTransformation", "ContainerType", "LocationType", + }); + internal_static_google_privacy_dlp_v2_RecordTransformation_descriptor = + getDescriptor().getMessageTypes().get(79); + internal_static_google_privacy_dlp_v2_RecordTransformation_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_privacy_dlp_v2_RecordTransformation_descriptor, + new java.lang.String[] { + "FieldId", "ContainerTimestamp", "ContainerVersion", + }); + internal_static_google_privacy_dlp_v2_TransformationResultStatus_descriptor = + getDescriptor().getMessageTypes().get(80); + internal_static_google_privacy_dlp_v2_TransformationResultStatus_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_privacy_dlp_v2_TransformationResultStatus_descriptor, + new java.lang.String[] { + "ResultStatusType", "Details", + }); + internal_static_google_privacy_dlp_v2_TransformationDetailsStorageConfig_descriptor = + getDescriptor().getMessageTypes().get(81); + internal_static_google_privacy_dlp_v2_TransformationDetailsStorageConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_privacy_dlp_v2_TransformationDetailsStorageConfig_descriptor, + new java.lang.String[] { + "Table", "Type", + }); internal_static_google_privacy_dlp_v2_Schedule_descriptor = - getDescriptor().getMessageTypes().get(74); + getDescriptor().getMessageTypes().get(82); internal_static_google_privacy_dlp_v2_Schedule_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_Schedule_descriptor, @@ -3150,12 +3381,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "RecurrencePeriodDuration", "Option", }); internal_static_google_privacy_dlp_v2_Manual_descriptor = - getDescriptor().getMessageTypes().get(75); + getDescriptor().getMessageTypes().get(83); internal_static_google_privacy_dlp_v2_Manual_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_Manual_descriptor, new java.lang.String[] {}); internal_static_google_privacy_dlp_v2_InspectTemplate_descriptor = - getDescriptor().getMessageTypes().get(76); + getDescriptor().getMessageTypes().get(84); internal_static_google_privacy_dlp_v2_InspectTemplate_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_InspectTemplate_descriptor, @@ -3163,7 +3394,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "DisplayName", "Description", "CreateTime", "UpdateTime", "InspectConfig", }); internal_static_google_privacy_dlp_v2_DeidentifyTemplate_descriptor = - getDescriptor().getMessageTypes().get(77); + getDescriptor().getMessageTypes().get(85); internal_static_google_privacy_dlp_v2_DeidentifyTemplate_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_DeidentifyTemplate_descriptor, @@ -3171,7 +3402,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "DisplayName", "Description", "CreateTime", "UpdateTime", "DeidentifyConfig", }); internal_static_google_privacy_dlp_v2_Error_descriptor = - getDescriptor().getMessageTypes().get(78); + getDescriptor().getMessageTypes().get(86); internal_static_google_privacy_dlp_v2_Error_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_Error_descriptor, @@ -3179,7 +3410,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Details", "Timestamps", }); internal_static_google_privacy_dlp_v2_JobTrigger_descriptor = - getDescriptor().getMessageTypes().get(79); + getDescriptor().getMessageTypes().get(87); internal_static_google_privacy_dlp_v2_JobTrigger_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_JobTrigger_descriptor, @@ -3205,7 +3436,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Schedule", "Manual", "Trigger", }); internal_static_google_privacy_dlp_v2_Action_descriptor = - getDescriptor().getMessageTypes().get(80); + getDescriptor().getMessageTypes().get(88); internal_static_google_privacy_dlp_v2_Action_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_Action_descriptor, @@ -3214,6 +3445,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PubSub", "PublishSummaryToCscc", "PublishFindingsToCloudDataCatalog", + "Deidentify", "JobNotificationEmails", "PublishToStackdriver", "Action", @@ -3246,20 +3478,40 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_Action_PublishFindingsToCloudDataCatalog_descriptor, new java.lang.String[] {}); - internal_static_google_privacy_dlp_v2_Action_JobNotificationEmails_descriptor = + internal_static_google_privacy_dlp_v2_Action_Deidentify_descriptor = internal_static_google_privacy_dlp_v2_Action_descriptor.getNestedTypes().get(4); + internal_static_google_privacy_dlp_v2_Action_Deidentify_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_privacy_dlp_v2_Action_Deidentify_descriptor, + new java.lang.String[] { + "TransformationConfig", + "TransformationDetailsStorageConfig", + "CloudStorageOutput", + "FileTypesToTransform", + "Output", + }); + internal_static_google_privacy_dlp_v2_Action_JobNotificationEmails_descriptor = + internal_static_google_privacy_dlp_v2_Action_descriptor.getNestedTypes().get(5); internal_static_google_privacy_dlp_v2_Action_JobNotificationEmails_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_Action_JobNotificationEmails_descriptor, new java.lang.String[] {}); internal_static_google_privacy_dlp_v2_Action_PublishToStackdriver_descriptor = - internal_static_google_privacy_dlp_v2_Action_descriptor.getNestedTypes().get(5); + internal_static_google_privacy_dlp_v2_Action_descriptor.getNestedTypes().get(6); internal_static_google_privacy_dlp_v2_Action_PublishToStackdriver_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_Action_PublishToStackdriver_descriptor, new java.lang.String[] {}); + internal_static_google_privacy_dlp_v2_TransformationConfig_descriptor = + getDescriptor().getMessageTypes().get(89); + internal_static_google_privacy_dlp_v2_TransformationConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_privacy_dlp_v2_TransformationConfig_descriptor, + new java.lang.String[] { + "DeidentifyTemplate", "StructuredDeidentifyTemplate", "ImageRedactTemplate", + }); internal_static_google_privacy_dlp_v2_CreateInspectTemplateRequest_descriptor = - getDescriptor().getMessageTypes().get(81); + getDescriptor().getMessageTypes().get(90); internal_static_google_privacy_dlp_v2_CreateInspectTemplateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_CreateInspectTemplateRequest_descriptor, @@ -3267,7 +3519,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "InspectTemplate", "TemplateId", "LocationId", }); internal_static_google_privacy_dlp_v2_UpdateInspectTemplateRequest_descriptor = - getDescriptor().getMessageTypes().get(82); + getDescriptor().getMessageTypes().get(91); internal_static_google_privacy_dlp_v2_UpdateInspectTemplateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_UpdateInspectTemplateRequest_descriptor, @@ -3275,7 +3527,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "InspectTemplate", "UpdateMask", }); internal_static_google_privacy_dlp_v2_GetInspectTemplateRequest_descriptor = - getDescriptor().getMessageTypes().get(83); + getDescriptor().getMessageTypes().get(92); internal_static_google_privacy_dlp_v2_GetInspectTemplateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_GetInspectTemplateRequest_descriptor, @@ -3283,7 +3535,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_privacy_dlp_v2_ListInspectTemplatesRequest_descriptor = - getDescriptor().getMessageTypes().get(84); + getDescriptor().getMessageTypes().get(93); internal_static_google_privacy_dlp_v2_ListInspectTemplatesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_ListInspectTemplatesRequest_descriptor, @@ -3291,7 +3543,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageToken", "PageSize", "OrderBy", "LocationId", }); internal_static_google_privacy_dlp_v2_ListInspectTemplatesResponse_descriptor = - getDescriptor().getMessageTypes().get(85); + getDescriptor().getMessageTypes().get(94); internal_static_google_privacy_dlp_v2_ListInspectTemplatesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_ListInspectTemplatesResponse_descriptor, @@ -3299,7 +3551,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "InspectTemplates", "NextPageToken", }); internal_static_google_privacy_dlp_v2_DeleteInspectTemplateRequest_descriptor = - getDescriptor().getMessageTypes().get(86); + getDescriptor().getMessageTypes().get(95); internal_static_google_privacy_dlp_v2_DeleteInspectTemplateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_DeleteInspectTemplateRequest_descriptor, @@ -3307,7 +3559,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_privacy_dlp_v2_CreateJobTriggerRequest_descriptor = - getDescriptor().getMessageTypes().get(87); + getDescriptor().getMessageTypes().get(96); internal_static_google_privacy_dlp_v2_CreateJobTriggerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_CreateJobTriggerRequest_descriptor, @@ -3315,7 +3567,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "JobTrigger", "TriggerId", "LocationId", }); internal_static_google_privacy_dlp_v2_ActivateJobTriggerRequest_descriptor = - getDescriptor().getMessageTypes().get(88); + getDescriptor().getMessageTypes().get(97); internal_static_google_privacy_dlp_v2_ActivateJobTriggerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_ActivateJobTriggerRequest_descriptor, @@ -3323,7 +3575,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_privacy_dlp_v2_UpdateJobTriggerRequest_descriptor = - getDescriptor().getMessageTypes().get(89); + getDescriptor().getMessageTypes().get(98); internal_static_google_privacy_dlp_v2_UpdateJobTriggerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_UpdateJobTriggerRequest_descriptor, @@ -3331,7 +3583,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "JobTrigger", "UpdateMask", }); internal_static_google_privacy_dlp_v2_GetJobTriggerRequest_descriptor = - getDescriptor().getMessageTypes().get(90); + getDescriptor().getMessageTypes().get(99); internal_static_google_privacy_dlp_v2_GetJobTriggerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_GetJobTriggerRequest_descriptor, @@ -3339,7 +3591,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_privacy_dlp_v2_CreateDlpJobRequest_descriptor = - getDescriptor().getMessageTypes().get(91); + getDescriptor().getMessageTypes().get(100); internal_static_google_privacy_dlp_v2_CreateDlpJobRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_CreateDlpJobRequest_descriptor, @@ -3347,7 +3599,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "InspectJob", "RiskJob", "JobId", "LocationId", "Job", }); internal_static_google_privacy_dlp_v2_ListJobTriggersRequest_descriptor = - getDescriptor().getMessageTypes().get(92); + getDescriptor().getMessageTypes().get(101); internal_static_google_privacy_dlp_v2_ListJobTriggersRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_ListJobTriggersRequest_descriptor, @@ -3355,7 +3607,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageToken", "PageSize", "OrderBy", "Filter", "Type", "LocationId", }); internal_static_google_privacy_dlp_v2_ListJobTriggersResponse_descriptor = - getDescriptor().getMessageTypes().get(93); + getDescriptor().getMessageTypes().get(102); internal_static_google_privacy_dlp_v2_ListJobTriggersResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_ListJobTriggersResponse_descriptor, @@ -3363,7 +3615,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "JobTriggers", "NextPageToken", }); internal_static_google_privacy_dlp_v2_DeleteJobTriggerRequest_descriptor = - getDescriptor().getMessageTypes().get(94); + getDescriptor().getMessageTypes().get(103); internal_static_google_privacy_dlp_v2_DeleteJobTriggerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_DeleteJobTriggerRequest_descriptor, @@ -3371,7 +3623,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_privacy_dlp_v2_InspectJobConfig_descriptor = - getDescriptor().getMessageTypes().get(95); + getDescriptor().getMessageTypes().get(104); internal_static_google_privacy_dlp_v2_InspectJobConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_InspectJobConfig_descriptor, @@ -3379,7 +3631,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "StorageConfig", "InspectConfig", "InspectTemplateName", "Actions", }); internal_static_google_privacy_dlp_v2_DataProfileAction_descriptor = - getDescriptor().getMessageTypes().get(96); + getDescriptor().getMessageTypes().get(105); internal_static_google_privacy_dlp_v2_DataProfileAction_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_DataProfileAction_descriptor, @@ -3403,7 +3655,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Topic", "Event", "PubsubCondition", "DetailOfMessage", }); internal_static_google_privacy_dlp_v2_DataProfileJobConfig_descriptor = - getDescriptor().getMessageTypes().get(97); + getDescriptor().getMessageTypes().get(106); internal_static_google_privacy_dlp_v2_DataProfileJobConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_DataProfileJobConfig_descriptor, @@ -3411,7 +3663,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Location", "ProjectId", "InspectTemplates", "DataProfileActions", }); internal_static_google_privacy_dlp_v2_DataProfileLocation_descriptor = - getDescriptor().getMessageTypes().get(98); + getDescriptor().getMessageTypes().get(107); internal_static_google_privacy_dlp_v2_DataProfileLocation_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_DataProfileLocation_descriptor, @@ -3419,7 +3671,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "OrganizationId", "FolderId", "Location", }); internal_static_google_privacy_dlp_v2_DlpJob_descriptor = - getDescriptor().getMessageTypes().get(99); + getDescriptor().getMessageTypes().get(108); internal_static_google_privacy_dlp_v2_DlpJob_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_DlpJob_descriptor, @@ -3437,7 +3689,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Details", }); internal_static_google_privacy_dlp_v2_GetDlpJobRequest_descriptor = - getDescriptor().getMessageTypes().get(100); + getDescriptor().getMessageTypes().get(109); internal_static_google_privacy_dlp_v2_GetDlpJobRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_GetDlpJobRequest_descriptor, @@ -3445,7 +3697,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_privacy_dlp_v2_ListDlpJobsRequest_descriptor = - getDescriptor().getMessageTypes().get(101); + getDescriptor().getMessageTypes().get(110); internal_static_google_privacy_dlp_v2_ListDlpJobsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_ListDlpJobsRequest_descriptor, @@ -3453,7 +3705,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "Filter", "PageSize", "PageToken", "Type", "OrderBy", "LocationId", }); internal_static_google_privacy_dlp_v2_ListDlpJobsResponse_descriptor = - getDescriptor().getMessageTypes().get(102); + getDescriptor().getMessageTypes().get(111); internal_static_google_privacy_dlp_v2_ListDlpJobsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_ListDlpJobsResponse_descriptor, @@ -3461,7 +3713,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Jobs", "NextPageToken", }); internal_static_google_privacy_dlp_v2_CancelDlpJobRequest_descriptor = - getDescriptor().getMessageTypes().get(103); + getDescriptor().getMessageTypes().get(112); internal_static_google_privacy_dlp_v2_CancelDlpJobRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_CancelDlpJobRequest_descriptor, @@ -3469,7 +3721,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_privacy_dlp_v2_FinishDlpJobRequest_descriptor = - getDescriptor().getMessageTypes().get(104); + getDescriptor().getMessageTypes().get(113); internal_static_google_privacy_dlp_v2_FinishDlpJobRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_FinishDlpJobRequest_descriptor, @@ -3477,7 +3729,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_privacy_dlp_v2_DeleteDlpJobRequest_descriptor = - getDescriptor().getMessageTypes().get(105); + getDescriptor().getMessageTypes().get(114); internal_static_google_privacy_dlp_v2_DeleteDlpJobRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_DeleteDlpJobRequest_descriptor, @@ -3485,7 +3737,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_privacy_dlp_v2_CreateDeidentifyTemplateRequest_descriptor = - getDescriptor().getMessageTypes().get(106); + getDescriptor().getMessageTypes().get(115); internal_static_google_privacy_dlp_v2_CreateDeidentifyTemplateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_CreateDeidentifyTemplateRequest_descriptor, @@ -3493,7 +3745,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "DeidentifyTemplate", "TemplateId", "LocationId", }); internal_static_google_privacy_dlp_v2_UpdateDeidentifyTemplateRequest_descriptor = - getDescriptor().getMessageTypes().get(107); + getDescriptor().getMessageTypes().get(116); internal_static_google_privacy_dlp_v2_UpdateDeidentifyTemplateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_UpdateDeidentifyTemplateRequest_descriptor, @@ -3501,7 +3753,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "DeidentifyTemplate", "UpdateMask", }); internal_static_google_privacy_dlp_v2_GetDeidentifyTemplateRequest_descriptor = - getDescriptor().getMessageTypes().get(108); + getDescriptor().getMessageTypes().get(117); internal_static_google_privacy_dlp_v2_GetDeidentifyTemplateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_GetDeidentifyTemplateRequest_descriptor, @@ -3509,7 +3761,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_privacy_dlp_v2_ListDeidentifyTemplatesRequest_descriptor = - getDescriptor().getMessageTypes().get(109); + getDescriptor().getMessageTypes().get(118); internal_static_google_privacy_dlp_v2_ListDeidentifyTemplatesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_ListDeidentifyTemplatesRequest_descriptor, @@ -3517,7 +3769,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageToken", "PageSize", "OrderBy", "LocationId", }); internal_static_google_privacy_dlp_v2_ListDeidentifyTemplatesResponse_descriptor = - getDescriptor().getMessageTypes().get(110); + getDescriptor().getMessageTypes().get(119); internal_static_google_privacy_dlp_v2_ListDeidentifyTemplatesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_ListDeidentifyTemplatesResponse_descriptor, @@ -3525,7 +3777,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DeidentifyTemplates", "NextPageToken", }); internal_static_google_privacy_dlp_v2_DeleteDeidentifyTemplateRequest_descriptor = - getDescriptor().getMessageTypes().get(111); + getDescriptor().getMessageTypes().get(120); internal_static_google_privacy_dlp_v2_DeleteDeidentifyTemplateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_DeleteDeidentifyTemplateRequest_descriptor, @@ -3533,7 +3785,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_privacy_dlp_v2_LargeCustomDictionaryConfig_descriptor = - getDescriptor().getMessageTypes().get(112); + getDescriptor().getMessageTypes().get(121); internal_static_google_privacy_dlp_v2_LargeCustomDictionaryConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_LargeCustomDictionaryConfig_descriptor, @@ -3541,7 +3793,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "OutputPath", "CloudStorageFileSet", "BigQueryField", "Source", }); internal_static_google_privacy_dlp_v2_LargeCustomDictionaryStats_descriptor = - getDescriptor().getMessageTypes().get(113); + getDescriptor().getMessageTypes().get(122); internal_static_google_privacy_dlp_v2_LargeCustomDictionaryStats_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_LargeCustomDictionaryStats_descriptor, @@ -3549,7 +3801,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ApproxNumPhrases", }); internal_static_google_privacy_dlp_v2_StoredInfoTypeConfig_descriptor = - getDescriptor().getMessageTypes().get(114); + getDescriptor().getMessageTypes().get(123); internal_static_google_privacy_dlp_v2_StoredInfoTypeConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_StoredInfoTypeConfig_descriptor, @@ -3557,7 +3809,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DisplayName", "Description", "LargeCustomDictionary", "Dictionary", "Regex", "Type", }); internal_static_google_privacy_dlp_v2_StoredInfoTypeStats_descriptor = - getDescriptor().getMessageTypes().get(115); + getDescriptor().getMessageTypes().get(124); internal_static_google_privacy_dlp_v2_StoredInfoTypeStats_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_StoredInfoTypeStats_descriptor, @@ -3565,7 +3817,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "LargeCustomDictionary", "Type", }); internal_static_google_privacy_dlp_v2_StoredInfoTypeVersion_descriptor = - getDescriptor().getMessageTypes().get(116); + getDescriptor().getMessageTypes().get(125); internal_static_google_privacy_dlp_v2_StoredInfoTypeVersion_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_StoredInfoTypeVersion_descriptor, @@ -3573,7 +3825,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Config", "CreateTime", "State", "Errors", "Stats", }); internal_static_google_privacy_dlp_v2_StoredInfoType_descriptor = - getDescriptor().getMessageTypes().get(117); + getDescriptor().getMessageTypes().get(126); internal_static_google_privacy_dlp_v2_StoredInfoType_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_StoredInfoType_descriptor, @@ -3581,7 +3833,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "CurrentVersion", "PendingVersions", }); internal_static_google_privacy_dlp_v2_CreateStoredInfoTypeRequest_descriptor = - getDescriptor().getMessageTypes().get(118); + getDescriptor().getMessageTypes().get(127); internal_static_google_privacy_dlp_v2_CreateStoredInfoTypeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_CreateStoredInfoTypeRequest_descriptor, @@ -3589,7 +3841,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "Config", "StoredInfoTypeId", "LocationId", }); internal_static_google_privacy_dlp_v2_UpdateStoredInfoTypeRequest_descriptor = - getDescriptor().getMessageTypes().get(119); + getDescriptor().getMessageTypes().get(128); internal_static_google_privacy_dlp_v2_UpdateStoredInfoTypeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_UpdateStoredInfoTypeRequest_descriptor, @@ -3597,7 +3849,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "Config", "UpdateMask", }); internal_static_google_privacy_dlp_v2_GetStoredInfoTypeRequest_descriptor = - getDescriptor().getMessageTypes().get(120); + getDescriptor().getMessageTypes().get(129); internal_static_google_privacy_dlp_v2_GetStoredInfoTypeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_GetStoredInfoTypeRequest_descriptor, @@ -3605,7 +3857,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_privacy_dlp_v2_ListStoredInfoTypesRequest_descriptor = - getDescriptor().getMessageTypes().get(121); + getDescriptor().getMessageTypes().get(130); internal_static_google_privacy_dlp_v2_ListStoredInfoTypesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_ListStoredInfoTypesRequest_descriptor, @@ -3613,7 +3865,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageToken", "PageSize", "OrderBy", "LocationId", }); internal_static_google_privacy_dlp_v2_ListStoredInfoTypesResponse_descriptor = - getDescriptor().getMessageTypes().get(122); + getDescriptor().getMessageTypes().get(131); internal_static_google_privacy_dlp_v2_ListStoredInfoTypesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_ListStoredInfoTypesResponse_descriptor, @@ -3621,7 +3873,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "StoredInfoTypes", "NextPageToken", }); internal_static_google_privacy_dlp_v2_DeleteStoredInfoTypeRequest_descriptor = - getDescriptor().getMessageTypes().get(123); + getDescriptor().getMessageTypes().get(132); internal_static_google_privacy_dlp_v2_DeleteStoredInfoTypeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_DeleteStoredInfoTypeRequest_descriptor, @@ -3629,7 +3881,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_privacy_dlp_v2_HybridInspectJobTriggerRequest_descriptor = - getDescriptor().getMessageTypes().get(124); + getDescriptor().getMessageTypes().get(133); internal_static_google_privacy_dlp_v2_HybridInspectJobTriggerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_HybridInspectJobTriggerRequest_descriptor, @@ -3637,7 +3889,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "HybridItem", }); internal_static_google_privacy_dlp_v2_HybridInspectDlpJobRequest_descriptor = - getDescriptor().getMessageTypes().get(125); + getDescriptor().getMessageTypes().get(134); internal_static_google_privacy_dlp_v2_HybridInspectDlpJobRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_HybridInspectDlpJobRequest_descriptor, @@ -3645,7 +3897,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "HybridItem", }); internal_static_google_privacy_dlp_v2_HybridContentItem_descriptor = - getDescriptor().getMessageTypes().get(126); + getDescriptor().getMessageTypes().get(135); internal_static_google_privacy_dlp_v2_HybridContentItem_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_HybridContentItem_descriptor, @@ -3653,7 +3905,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Item", "FindingDetails", }); internal_static_google_privacy_dlp_v2_HybridFindingDetails_descriptor = - getDescriptor().getMessageTypes().get(127); + getDescriptor().getMessageTypes().get(136); internal_static_google_privacy_dlp_v2_HybridFindingDetails_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_HybridFindingDetails_descriptor, @@ -3671,21 +3923,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_privacy_dlp_v2_HybridInspectResponse_descriptor = - getDescriptor().getMessageTypes().get(128); + getDescriptor().getMessageTypes().get(137); internal_static_google_privacy_dlp_v2_HybridInspectResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_HybridInspectResponse_descriptor, new java.lang.String[] {}); - internal_static_google_privacy_dlp_v2_SensitivityScore_descriptor = - getDescriptor().getMessageTypes().get(129); - internal_static_google_privacy_dlp_v2_SensitivityScore_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_privacy_dlp_v2_SensitivityScore_descriptor, - new java.lang.String[] { - "Score", - }); internal_static_google_privacy_dlp_v2_DataRiskLevel_descriptor = - getDescriptor().getMessageTypes().get(130); + getDescriptor().getMessageTypes().get(138); internal_static_google_privacy_dlp_v2_DataRiskLevel_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_DataRiskLevel_descriptor, @@ -3693,7 +3937,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Score", }); internal_static_google_privacy_dlp_v2_DataProfileConfigSnapshot_descriptor = - getDescriptor().getMessageTypes().get(131); + getDescriptor().getMessageTypes().get(139); internal_static_google_privacy_dlp_v2_DataProfileConfigSnapshot_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_DataProfileConfigSnapshot_descriptor, @@ -3701,7 +3945,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "InspectConfig", "DataProfileJob", }); internal_static_google_privacy_dlp_v2_TableDataProfile_descriptor = - getDescriptor().getMessageTypes().get(132); + getDescriptor().getMessageTypes().get(140); internal_static_google_privacy_dlp_v2_TableDataProfile_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_TableDataProfile_descriptor, @@ -3741,7 +3985,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_privacy_dlp_v2_ProfileStatus_descriptor = - getDescriptor().getMessageTypes().get(133); + getDescriptor().getMessageTypes().get(141); internal_static_google_privacy_dlp_v2_ProfileStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_ProfileStatus_descriptor, @@ -3749,23 +3993,23 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Status", "Timestamp", }); internal_static_google_privacy_dlp_v2_InfoTypeSummary_descriptor = - getDescriptor().getMessageTypes().get(134); + getDescriptor().getMessageTypes().get(142); internal_static_google_privacy_dlp_v2_InfoTypeSummary_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_InfoTypeSummary_descriptor, new java.lang.String[] { - "InfoType", + "InfoType", "EstimatedPrevalence", }); internal_static_google_privacy_dlp_v2_OtherInfoTypeSummary_descriptor = - getDescriptor().getMessageTypes().get(135); + getDescriptor().getMessageTypes().get(143); internal_static_google_privacy_dlp_v2_OtherInfoTypeSummary_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_OtherInfoTypeSummary_descriptor, new java.lang.String[] { - "InfoType", + "InfoType", "EstimatedPrevalence", }); internal_static_google_privacy_dlp_v2_DataProfilePubSubCondition_descriptor = - getDescriptor().getMessageTypes().get(136); + getDescriptor().getMessageTypes().get(144); internal_static_google_privacy_dlp_v2_DataProfilePubSubCondition_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_DataProfilePubSubCondition_descriptor, @@ -3793,7 +4037,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "LogicalOperator", "Conditions", }); internal_static_google_privacy_dlp_v2_DataProfilePubSubMessage_descriptor = - getDescriptor().getMessageTypes().get(137); + getDescriptor().getMessageTypes().get(145); internal_static_google_privacy_dlp_v2_DataProfilePubSubMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_DataProfilePubSubMessage_descriptor, diff --git a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DlpStorage.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DlpStorage.java index 1240a04e..41e99f97 100644 --- a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DlpStorage.java +++ b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DlpStorage.java @@ -31,6 +31,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_privacy_dlp_v2_InfoType_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_privacy_dlp_v2_InfoType_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_StoredType_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -173,141 +177,148 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { static { java.lang.String[] descriptorData = { "\n#google/privacy/dlp/v2/storage.proto\022\025g" - + "oogle.privacy.dlp.v2\032\037google/protobuf/ti" - + "mestamp.proto\")\n\010InfoType\022\014\n\004name\030\001 \001(\t\022" - + "\017\n\007version\030\002 \001(\t\"K\n\nStoredType\022\014\n\004name\030\001" - + " \001(\t\022/\n\013create_time\030\002 \001(\0132\032.google.proto" - + "buf.Timestamp\"\310\013\n\016CustomInfoType\0222\n\tinfo" - + "_type\030\001 \001(\0132\037.google.privacy.dlp.v2.Info" - + "Type\0225\n\nlikelihood\030\006 \001(\0162!.google.privac" - + "y.dlp.v2.Likelihood\022F\n\ndictionary\030\002 \001(\0132" - + "0.google.privacy.dlp.v2.CustomInfoType.D" - + "ictionaryH\000\022<\n\005regex\030\003 \001(\0132+.google.priv" - + "acy.dlp.v2.CustomInfoType.RegexH\000\022M\n\016sur" - + "rogate_type\030\004 \001(\01323.google.privacy.dlp.v" - + "2.CustomInfoType.SurrogateTypeH\000\0228\n\013stor" - + "ed_type\030\005 \001(\0132!.google.privacy.dlp.v2.St" - + "oredTypeH\000\022L\n\017detection_rules\030\007 \003(\01323.go" - + "ogle.privacy.dlp.v2.CustomInfoType.Detec" - + "tionRule\022K\n\016exclusion_type\030\010 \001(\01623.googl" - + "e.privacy.dlp.v2.CustomInfoType.Exclusio" - + "nType\032\310\001\n\nDictionary\022N\n\tword_list\030\001 \001(\0132" - + "9.google.privacy.dlp.v2.CustomInfoType.D" - + "ictionary.WordListH\000\022E\n\022cloud_storage_pa" - + "th\030\003 \001(\0132\'.google.privacy.dlp.v2.CloudSt" - + "oragePathH\000\032\031\n\010WordList\022\r\n\005words\030\001 \003(\tB\010" - + "\n\006source\032/\n\005Regex\022\017\n\007pattern\030\001 \001(\t\022\025\n\rgr" - + "oup_indexes\030\002 \003(\005\032\017\n\rSurrogateType\032\276\004\n\rD" - + "etectionRule\022W\n\014hotword_rule\030\001 \001(\0132?.goo" - + "gle.privacy.dlp.v2.CustomInfoType.Detect" - + "ionRule.HotwordRuleH\000\0328\n\tProximity\022\025\n\rwi" - + "ndow_before\030\001 \001(\005\022\024\n\014window_after\030\002 \001(\005\032" - + "\202\001\n\024LikelihoodAdjustment\022=\n\020fixed_likeli" - + "hood\030\001 \001(\0162!.google.privacy.dlp.v2.Likel" - + "ihoodH\000\022\035\n\023relative_likelihood\030\002 \001(\005H\000B\014" - + "\n\nadjustment\032\214\002\n\013HotwordRule\022B\n\rhotword_" - + "regex\030\001 \001(\0132+.google.privacy.dlp.v2.Cust" - + "omInfoType.Regex\022P\n\tproximity\030\002 \001(\0132=.go" - + "ogle.privacy.dlp.v2.CustomInfoType.Detec" - + "tionRule.Proximity\022g\n\025likelihood_adjustm" - + "ent\030\003 \001(\0132H.google.privacy.dlp.v2.Custom" - + "InfoType.DetectionRule.LikelihoodAdjustm" - + "entB\006\n\004type\"K\n\rExclusionType\022\036\n\032EXCLUSIO" - + "N_TYPE_UNSPECIFIED\020\000\022\032\n\026EXCLUSION_TYPE_E" - + "XCLUDE\020\001B\006\n\004type\"\027\n\007FieldId\022\014\n\004name\030\001 \001(" - + "\t\"7\n\013PartitionId\022\022\n\nproject_id\030\002 \001(\t\022\024\n\014" - + "namespace_id\030\004 \001(\t\"\036\n\016KindExpression\022\014\n\004" - + "name\030\001 \001(\t\"\201\001\n\020DatastoreOptions\0228\n\014parti" - + "tion_id\030\001 \001(\0132\".google.privacy.dlp.v2.Pa" - + "rtitionId\0223\n\004kind\030\002 \001(\0132%.google.privacy" - + ".dlp.v2.KindExpression\"]\n\030CloudStorageRe" - + "gexFileSet\022\023\n\013bucket_name\030\001 \001(\t\022\025\n\rinclu" - + "de_regex\030\002 \003(\t\022\025\n\rexclude_regex\030\003 \003(\t\"\354\003" - + "\n\023CloudStorageOptions\022D\n\010file_set\030\001 \001(\0132" - + "2.google.privacy.dlp.v2.CloudStorageOpti" - + "ons.FileSet\022\034\n\024bytes_limit_per_file\030\004 \001(" - + "\003\022$\n\034bytes_limit_per_file_percent\030\010 \001(\005\022" - + "3\n\nfile_types\030\005 \003(\0162\037.google.privacy.dlp" - + ".v2.FileType\022N\n\rsample_method\030\006 \001(\01627.go" - + "ogle.privacy.dlp.v2.CloudStorageOptions." - + "SampleMethod\022\033\n\023files_limit_percent\030\007 \001(" - + "\005\032_\n\007FileSet\022\013\n\003url\030\001 \001(\t\022G\n\016regex_file_" - + "set\030\002 \001(\0132/.google.privacy.dlp.v2.CloudS" - + "torageRegexFileSet\"H\n\014SampleMethod\022\035\n\031SA" - + "MPLE_METHOD_UNSPECIFIED\020\000\022\007\n\003TOP\020\001\022\020\n\014RA" - + "NDOM_START\020\002\"\"\n\023CloudStorageFileSet\022\013\n\003u" - + "rl\030\001 \001(\t\" \n\020CloudStoragePath\022\014\n\004path\030\001 \001" - + "(\t\"\304\003\n\017BigQueryOptions\022=\n\017table_referenc" - + "e\030\001 \001(\0132$.google.privacy.dlp.v2.BigQuery" - + "Table\022:\n\022identifying_fields\030\002 \003(\0132\036.goog" - + "le.privacy.dlp.v2.FieldId\022\022\n\nrows_limit\030" - + "\003 \001(\003\022\032\n\022rows_limit_percent\030\006 \001(\005\022J\n\rsam" - + "ple_method\030\004 \001(\01623.google.privacy.dlp.v2" - + ".BigQueryOptions.SampleMethod\0227\n\017exclude" - + "d_fields\030\005 \003(\0132\036.google.privacy.dlp.v2.F" - + "ieldId\0227\n\017included_fields\030\007 \003(\0132\036.google" - + ".privacy.dlp.v2.FieldId\"H\n\014SampleMethod\022" - + "\035\n\031SAMPLE_METHOD_UNSPECIFIED\020\000\022\007\n\003TOP\020\001\022" - + "\020\n\014RANDOM_START\020\002\"\332\004\n\rStorageConfig\022D\n\021d" - + "atastore_options\030\002 \001(\0132\'.google.privacy." - + "dlp.v2.DatastoreOptionsH\000\022K\n\025cloud_stora" - + "ge_options\030\003 \001(\0132*.google.privacy.dlp.v2" - + ".CloudStorageOptionsH\000\022C\n\021big_query_opti" - + "ons\030\004 \001(\0132&.google.privacy.dlp.v2.BigQue" - + "ryOptionsH\000\022>\n\016hybrid_options\030\t \001(\0132$.go" - + "ogle.privacy.dlp.v2.HybridOptionsH\000\022L\n\017t" - + "imespan_config\030\006 \001(\01323.google.privacy.dl" - + "p.v2.StorageConfig.TimespanConfig\032\332\001\n\016Ti" - + "mespanConfig\022.\n\nstart_time\030\001 \001(\0132\032.googl" - + "e.protobuf.Timestamp\022,\n\010end_time\030\002 \001(\0132\032" - + ".google.protobuf.Timestamp\0227\n\017timestamp_" - + "field\030\003 \001(\0132\036.google.privacy.dlp.v2.Fiel" - + "dId\0221\n)enable_auto_population_of_timespa" - + "n_config\030\004 \001(\010B\006\n\004type\"\366\001\n\rHybridOptions" - + "\022\023\n\013description\030\001 \001(\t\022#\n\033required_findin" - + "g_label_keys\030\002 \003(\t\022@\n\006labels\030\003 \003(\01320.goo" - + "gle.privacy.dlp.v2.HybridOptions.LabelsE" - + "ntry\022:\n\rtable_options\030\004 \001(\0132#.google.pri" - + "vacy.dlp.v2.TableOptions\032-\n\013LabelsEntry\022" - + "\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"`\n\013BigQu" - + "eryKey\022=\n\017table_reference\030\001 \001(\0132$.google" - + ".privacy.dlp.v2.BigQueryTable\022\022\n\nrow_num" - + "ber\030\002 \001(\003\">\n\014DatastoreKey\022.\n\nentity_key\030" - + "\001 \001(\0132\032.google.privacy.dlp.v2.Key\"\273\001\n\003Ke" - + "y\0228\n\014partition_id\030\001 \001(\0132\".google.privacy" - + ".dlp.v2.PartitionId\0224\n\004path\030\002 \003(\0132&.goog" - + "le.privacy.dlp.v2.Key.PathElement\032D\n\013Pat" - + "hElement\022\014\n\004kind\030\001 \001(\t\022\014\n\002id\030\002 \001(\003H\000\022\016\n\004" - + "name\030\003 \001(\tH\000B\t\n\007id_type\"\241\001\n\tRecordKey\022<\n" - + "\rdatastore_key\030\002 \001(\0132#.google.privacy.dl" - + "p.v2.DatastoreKeyH\000\022;\n\rbig_query_key\030\003 \001" - + "(\0132\".google.privacy.dlp.v2.BigQueryKeyH\000" - + "\022\021\n\tid_values\030\005 \003(\tB\006\n\004type\"I\n\rBigQueryT" - + "able\022\022\n\nproject_id\030\001 \001(\t\022\022\n\ndataset_id\030\002" - + " \001(\t\022\020\n\010table_id\030\003 \001(\t\"s\n\rBigQueryField\022" - + "3\n\005table\030\001 \001(\0132$.google.privacy.dlp.v2.B" - + "igQueryTable\022-\n\005field\030\002 \001(\0132\036.google.pri" - + "vacy.dlp.v2.FieldId\"9\n\010EntityId\022-\n\005field" - + "\030\001 \001(\0132\036.google.privacy.dlp.v2.FieldId\"J" - + "\n\014TableOptions\022:\n\022identifying_fields\030\001 \003" - + "(\0132\036.google.privacy.dlp.v2.FieldId*t\n\nLi" - + "kelihood\022\032\n\026LIKELIHOOD_UNSPECIFIED\020\000\022\021\n\r" - + "VERY_UNLIKELY\020\001\022\014\n\010UNLIKELY\020\002\022\014\n\010POSSIBL" - + "E\020\003\022\n\n\006LIKELY\020\004\022\017\n\013VERY_LIKELY\020\005*\232\001\n\010Fil" - + "eType\022\031\n\025FILE_TYPE_UNSPECIFIED\020\000\022\017\n\013BINA" - + "RY_FILE\020\001\022\r\n\tTEXT_FILE\020\002\022\t\n\005IMAGE\020\003\022\010\n\004W" - + "ORD\020\005\022\007\n\003PDF\020\006\022\010\n\004AVRO\020\007\022\007\n\003CSV\020\010\022\007\n\003TSV" - + "\020\t\022\016\n\nPOWERPOINT\020\013\022\t\n\005EXCEL\020\014B\250\001\n\031com.go" - + "ogle.privacy.dlp.v2B\nDlpStorageP\001Z8googl" - + "e.golang.org/genproto/googleapis/privacy" - + "/dlp/v2;dlp\252\002\023Google.Cloud.Dlp.V2\312\002\023Goog" - + "le\\Cloud\\Dlp\\V2\352\002\026Google::Cloud::Dlp::V2" - + "b\006proto3" + + "oogle.privacy.dlp.v2\032\031google/api/resourc" + + "e.proto\032\037google/protobuf/timestamp.proto" + + "\")\n\010InfoType\022\014\n\004name\030\001 \001(\t\022\017\n\007version\030\002 " + + "\001(\t\"\341\001\n\020SensitivityScore\022L\n\005score\030\001 \001(\0162" + + "=.google.privacy.dlp.v2.SensitivityScore" + + ".SensitivityScoreLevel\"\177\n\025SensitivitySco" + + "reLevel\022!\n\035SENSITIVITY_SCORE_UNSPECIFIED" + + "\020\000\022\023\n\017SENSITIVITY_LOW\020\n\022\030\n\024SENSITIVITY_M" + + "ODERATE\020\024\022\024\n\020SENSITIVITY_HIGH\020\036\"K\n\nStore" + + "dType\022\014\n\004name\030\001 \001(\t\022/\n\013create_time\030\002 \001(\013" + + "2\032.google.protobuf.Timestamp\"\310\013\n\016CustomI" + + "nfoType\0222\n\tinfo_type\030\001 \001(\0132\037.google.priv" + + "acy.dlp.v2.InfoType\0225\n\nlikelihood\030\006 \001(\0162" + + "!.google.privacy.dlp.v2.Likelihood\022F\n\ndi" + + "ctionary\030\002 \001(\01320.google.privacy.dlp.v2.C" + + "ustomInfoType.DictionaryH\000\022<\n\005regex\030\003 \001(" + + "\0132+.google.privacy.dlp.v2.CustomInfoType" + + ".RegexH\000\022M\n\016surrogate_type\030\004 \001(\01323.googl" + + "e.privacy.dlp.v2.CustomInfoType.Surrogat" + + "eTypeH\000\0228\n\013stored_type\030\005 \001(\0132!.google.pr" + + "ivacy.dlp.v2.StoredTypeH\000\022L\n\017detection_r" + + "ules\030\007 \003(\01323.google.privacy.dlp.v2.Custo" + + "mInfoType.DetectionRule\022K\n\016exclusion_typ" + + "e\030\010 \001(\01623.google.privacy.dlp.v2.CustomIn" + + "foType.ExclusionType\032\310\001\n\nDictionary\022N\n\tw" + + "ord_list\030\001 \001(\01329.google.privacy.dlp.v2.C" + + "ustomInfoType.Dictionary.WordListH\000\022E\n\022c" + + "loud_storage_path\030\003 \001(\0132\'.google.privacy" + + ".dlp.v2.CloudStoragePathH\000\032\031\n\010WordList\022\r" + + "\n\005words\030\001 \003(\tB\010\n\006source\032/\n\005Regex\022\017\n\007patt" + + "ern\030\001 \001(\t\022\025\n\rgroup_indexes\030\002 \003(\005\032\017\n\rSurr" + + "ogateType\032\276\004\n\rDetectionRule\022W\n\014hotword_r" + + "ule\030\001 \001(\0132?.google.privacy.dlp.v2.Custom" + + "InfoType.DetectionRule.HotwordRuleH\000\0328\n\t" + + "Proximity\022\025\n\rwindow_before\030\001 \001(\005\022\024\n\014wind" + + "ow_after\030\002 \001(\005\032\202\001\n\024LikelihoodAdjustment\022" + + "=\n\020fixed_likelihood\030\001 \001(\0162!.google.priva" + + "cy.dlp.v2.LikelihoodH\000\022\035\n\023relative_likel" + + "ihood\030\002 \001(\005H\000B\014\n\nadjustment\032\214\002\n\013HotwordR" + + "ule\022B\n\rhotword_regex\030\001 \001(\0132+.google.priv" + + "acy.dlp.v2.CustomInfoType.Regex\022P\n\tproxi" + + "mity\030\002 \001(\0132=.google.privacy.dlp.v2.Custo" + + "mInfoType.DetectionRule.Proximity\022g\n\025lik" + + "elihood_adjustment\030\003 \001(\0132H.google.privac" + + "y.dlp.v2.CustomInfoType.DetectionRule.Li" + + "kelihoodAdjustmentB\006\n\004type\"K\n\rExclusionT" + + "ype\022\036\n\032EXCLUSION_TYPE_UNSPECIFIED\020\000\022\032\n\026E" + + "XCLUSION_TYPE_EXCLUDE\020\001B\006\n\004type\"\027\n\007Field" + + "Id\022\014\n\004name\030\001 \001(\t\"7\n\013PartitionId\022\022\n\nproje" + + "ct_id\030\002 \001(\t\022\024\n\014namespace_id\030\004 \001(\t\"\036\n\016Kin" + + "dExpression\022\014\n\004name\030\001 \001(\t\"\201\001\n\020DatastoreO" + + "ptions\0228\n\014partition_id\030\001 \001(\0132\".google.pr" + + "ivacy.dlp.v2.PartitionId\0223\n\004kind\030\002 \001(\0132%" + + ".google.privacy.dlp.v2.KindExpression\"]\n" + + "\030CloudStorageRegexFileSet\022\023\n\013bucket_name" + + "\030\001 \001(\t\022\025\n\rinclude_regex\030\002 \003(\t\022\025\n\rexclude" + + "_regex\030\003 \003(\t\"\354\003\n\023CloudStorageOptions\022D\n\010" + + "file_set\030\001 \001(\01322.google.privacy.dlp.v2.C" + + "loudStorageOptions.FileSet\022\034\n\024bytes_limi" + + "t_per_file\030\004 \001(\003\022$\n\034bytes_limit_per_file" + + "_percent\030\010 \001(\005\0223\n\nfile_types\030\005 \003(\0162\037.goo" + + "gle.privacy.dlp.v2.FileType\022N\n\rsample_me" + + "thod\030\006 \001(\01627.google.privacy.dlp.v2.Cloud" + + "StorageOptions.SampleMethod\022\033\n\023files_lim" + + "it_percent\030\007 \001(\005\032_\n\007FileSet\022\013\n\003url\030\001 \001(\t" + + "\022G\n\016regex_file_set\030\002 \001(\0132/.google.privac" + + "y.dlp.v2.CloudStorageRegexFileSet\"H\n\014Sam" + + "pleMethod\022\035\n\031SAMPLE_METHOD_UNSPECIFIED\020\000" + + "\022\007\n\003TOP\020\001\022\020\n\014RANDOM_START\020\002\"\"\n\023CloudStor" + + "ageFileSet\022\013\n\003url\030\001 \001(\t\" \n\020CloudStorageP" + + "ath\022\014\n\004path\030\001 \001(\t\"\304\003\n\017BigQueryOptions\022=\n" + + "\017table_reference\030\001 \001(\0132$.google.privacy." + + "dlp.v2.BigQueryTable\022:\n\022identifying_fiel" + + "ds\030\002 \003(\0132\036.google.privacy.dlp.v2.FieldId" + + "\022\022\n\nrows_limit\030\003 \001(\003\022\032\n\022rows_limit_perce" + + "nt\030\006 \001(\005\022J\n\rsample_method\030\004 \001(\01623.google" + + ".privacy.dlp.v2.BigQueryOptions.SampleMe" + + "thod\0227\n\017excluded_fields\030\005 \003(\0132\036.google.p" + + "rivacy.dlp.v2.FieldId\0227\n\017included_fields" + + "\030\007 \003(\0132\036.google.privacy.dlp.v2.FieldId\"H" + + "\n\014SampleMethod\022\035\n\031SAMPLE_METHOD_UNSPECIF" + + "IED\020\000\022\007\n\003TOP\020\001\022\020\n\014RANDOM_START\020\002\"\332\004\n\rSto" + + "rageConfig\022D\n\021datastore_options\030\002 \001(\0132\'." + + "google.privacy.dlp.v2.DatastoreOptionsH\000" + + "\022K\n\025cloud_storage_options\030\003 \001(\0132*.google" + + ".privacy.dlp.v2.CloudStorageOptionsH\000\022C\n" + + "\021big_query_options\030\004 \001(\0132&.google.privac" + + "y.dlp.v2.BigQueryOptionsH\000\022>\n\016hybrid_opt" + + "ions\030\t \001(\0132$.google.privacy.dlp.v2.Hybri" + + "dOptionsH\000\022L\n\017timespan_config\030\006 \001(\01323.go" + + "ogle.privacy.dlp.v2.StorageConfig.Timesp" + + "anConfig\032\332\001\n\016TimespanConfig\022.\n\nstart_tim" + + "e\030\001 \001(\0132\032.google.protobuf.Timestamp\022,\n\010e" + + "nd_time\030\002 \001(\0132\032.google.protobuf.Timestam" + + "p\0227\n\017timestamp_field\030\003 \001(\0132\036.google.priv" + + "acy.dlp.v2.FieldId\0221\n)enable_auto_popula" + + "tion_of_timespan_config\030\004 \001(\010B\006\n\004type\"\366\001" + + "\n\rHybridOptions\022\023\n\013description\030\001 \001(\t\022#\n\033" + + "required_finding_label_keys\030\002 \003(\t\022@\n\006lab" + + "els\030\003 \003(\01320.google.privacy.dlp.v2.Hybrid" + + "Options.LabelsEntry\022:\n\rtable_options\030\004 \001" + + "(\0132#.google.privacy.dlp.v2.TableOptions\032" + + "-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001" + + "(\t:\0028\001\"`\n\013BigQueryKey\022=\n\017table_reference" + + "\030\001 \001(\0132$.google.privacy.dlp.v2.BigQueryT" + + "able\022\022\n\nrow_number\030\002 \001(\003\">\n\014DatastoreKey" + + "\022.\n\nentity_key\030\001 \001(\0132\032.google.privacy.dl" + + "p.v2.Key\"\273\001\n\003Key\0228\n\014partition_id\030\001 \001(\0132\"" + + ".google.privacy.dlp.v2.PartitionId\0224\n\004pa" + + "th\030\002 \003(\0132&.google.privacy.dlp.v2.Key.Pat" + + "hElement\032D\n\013PathElement\022\014\n\004kind\030\001 \001(\t\022\014\n" + + "\002id\030\002 \001(\003H\000\022\016\n\004name\030\003 \001(\tH\000B\t\n\007id_type\"\241" + + "\001\n\tRecordKey\022<\n\rdatastore_key\030\002 \001(\0132#.go" + + "ogle.privacy.dlp.v2.DatastoreKeyH\000\022;\n\rbi" + + "g_query_key\030\003 \001(\0132\".google.privacy.dlp.v" + + "2.BigQueryKeyH\000\022\021\n\tid_values\030\005 \003(\tB\006\n\004ty" + + "pe\"I\n\rBigQueryTable\022\022\n\nproject_id\030\001 \001(\t\022" + + "\022\n\ndataset_id\030\002 \001(\t\022\020\n\010table_id\030\003 \001(\t\"s\n" + + "\rBigQueryField\0223\n\005table\030\001 \001(\0132$.google.p" + + "rivacy.dlp.v2.BigQueryTable\022-\n\005field\030\002 \001" + + "(\0132\036.google.privacy.dlp.v2.FieldId\"9\n\010En" + + "tityId\022-\n\005field\030\001 \001(\0132\036.google.privacy.d" + + "lp.v2.FieldId\"J\n\014TableOptions\022:\n\022identif" + + "ying_fields\030\001 \003(\0132\036.google.privacy.dlp.v" + + "2.FieldId*t\n\nLikelihood\022\032\n\026LIKELIHOOD_UN" + + "SPECIFIED\020\000\022\021\n\rVERY_UNLIKELY\020\001\022\014\n\010UNLIKE" + + "LY\020\002\022\014\n\010POSSIBLE\020\003\022\n\n\006LIKELY\020\004\022\017\n\013VERY_L" + + "IKELY\020\005*\232\001\n\010FileType\022\031\n\025FILE_TYPE_UNSPEC" + + "IFIED\020\000\022\017\n\013BINARY_FILE\020\001\022\r\n\tTEXT_FILE\020\002\022" + + "\t\n\005IMAGE\020\003\022\010\n\004WORD\020\005\022\007\n\003PDF\020\006\022\010\n\004AVRO\020\007\022" + + "\007\n\003CSV\020\010\022\007\n\003TSV\020\t\022\016\n\nPOWERPOINT\020\013\022\t\n\005EXC" + + "EL\020\014B\250\001\n\031com.google.privacy.dlp.v2B\nDlpS" + + "torageP\001Z8google.golang.org/genproto/goo" + + "gleapis/privacy/dlp/v2;dlp\252\002\023Google.Clou" + + "d.Dlp.V2\312\002\023Google\\Cloud\\Dlp\\V2\352\002\026Google:" + + ":Cloud::Dlp::V2b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.ResourceProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), }); internal_static_google_privacy_dlp_v2_InfoType_descriptor = @@ -318,8 +329,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Name", "Version", }); - internal_static_google_privacy_dlp_v2_StoredType_descriptor = + internal_static_google_privacy_dlp_v2_SensitivityScore_descriptor = getDescriptor().getMessageTypes().get(1); + internal_static_google_privacy_dlp_v2_SensitivityScore_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_privacy_dlp_v2_SensitivityScore_descriptor, + new java.lang.String[] { + "Score", + }); + internal_static_google_privacy_dlp_v2_StoredType_descriptor = + getDescriptor().getMessageTypes().get(2); internal_static_google_privacy_dlp_v2_StoredType_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_StoredType_descriptor, @@ -327,7 +346,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "CreateTime", }); internal_static_google_privacy_dlp_v2_CustomInfoType_descriptor = - getDescriptor().getMessageTypes().get(2); + getDescriptor().getMessageTypes().get(3); internal_static_google_privacy_dlp_v2_CustomInfoType_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_CustomInfoType_descriptor, @@ -413,7 +432,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "HotwordRegex", "Proximity", "LikelihoodAdjustment", }); internal_static_google_privacy_dlp_v2_FieldId_descriptor = - getDescriptor().getMessageTypes().get(3); + getDescriptor().getMessageTypes().get(4); internal_static_google_privacy_dlp_v2_FieldId_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_FieldId_descriptor, @@ -421,7 +440,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_privacy_dlp_v2_PartitionId_descriptor = - getDescriptor().getMessageTypes().get(4); + getDescriptor().getMessageTypes().get(5); internal_static_google_privacy_dlp_v2_PartitionId_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_PartitionId_descriptor, @@ -429,7 +448,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ProjectId", "NamespaceId", }); internal_static_google_privacy_dlp_v2_KindExpression_descriptor = - getDescriptor().getMessageTypes().get(5); + getDescriptor().getMessageTypes().get(6); internal_static_google_privacy_dlp_v2_KindExpression_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_KindExpression_descriptor, @@ -437,7 +456,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_privacy_dlp_v2_DatastoreOptions_descriptor = - getDescriptor().getMessageTypes().get(6); + getDescriptor().getMessageTypes().get(7); internal_static_google_privacy_dlp_v2_DatastoreOptions_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_DatastoreOptions_descriptor, @@ -445,7 +464,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PartitionId", "Kind", }); internal_static_google_privacy_dlp_v2_CloudStorageRegexFileSet_descriptor = - getDescriptor().getMessageTypes().get(7); + getDescriptor().getMessageTypes().get(8); internal_static_google_privacy_dlp_v2_CloudStorageRegexFileSet_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_CloudStorageRegexFileSet_descriptor, @@ -453,7 +472,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "BucketName", "IncludeRegex", "ExcludeRegex", }); internal_static_google_privacy_dlp_v2_CloudStorageOptions_descriptor = - getDescriptor().getMessageTypes().get(8); + getDescriptor().getMessageTypes().get(9); internal_static_google_privacy_dlp_v2_CloudStorageOptions_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_CloudStorageOptions_descriptor, @@ -476,7 +495,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Url", "RegexFileSet", }); internal_static_google_privacy_dlp_v2_CloudStorageFileSet_descriptor = - getDescriptor().getMessageTypes().get(9); + getDescriptor().getMessageTypes().get(10); internal_static_google_privacy_dlp_v2_CloudStorageFileSet_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_CloudStorageFileSet_descriptor, @@ -484,7 +503,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Url", }); internal_static_google_privacy_dlp_v2_CloudStoragePath_descriptor = - getDescriptor().getMessageTypes().get(10); + getDescriptor().getMessageTypes().get(11); internal_static_google_privacy_dlp_v2_CloudStoragePath_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_CloudStoragePath_descriptor, @@ -492,7 +511,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Path", }); internal_static_google_privacy_dlp_v2_BigQueryOptions_descriptor = - getDescriptor().getMessageTypes().get(11); + getDescriptor().getMessageTypes().get(12); internal_static_google_privacy_dlp_v2_BigQueryOptions_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_BigQueryOptions_descriptor, @@ -506,7 +525,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "IncludedFields", }); internal_static_google_privacy_dlp_v2_StorageConfig_descriptor = - getDescriptor().getMessageTypes().get(12); + getDescriptor().getMessageTypes().get(13); internal_static_google_privacy_dlp_v2_StorageConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_StorageConfig_descriptor, @@ -527,7 +546,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "StartTime", "EndTime", "TimestampField", "EnableAutoPopulationOfTimespanConfig", }); internal_static_google_privacy_dlp_v2_HybridOptions_descriptor = - getDescriptor().getMessageTypes().get(13); + getDescriptor().getMessageTypes().get(14); internal_static_google_privacy_dlp_v2_HybridOptions_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_HybridOptions_descriptor, @@ -543,7 +562,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_privacy_dlp_v2_BigQueryKey_descriptor = - getDescriptor().getMessageTypes().get(14); + getDescriptor().getMessageTypes().get(15); internal_static_google_privacy_dlp_v2_BigQueryKey_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_BigQueryKey_descriptor, @@ -551,7 +570,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "TableReference", "RowNumber", }); internal_static_google_privacy_dlp_v2_DatastoreKey_descriptor = - getDescriptor().getMessageTypes().get(15); + getDescriptor().getMessageTypes().get(16); internal_static_google_privacy_dlp_v2_DatastoreKey_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_DatastoreKey_descriptor, @@ -559,7 +578,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "EntityKey", }); internal_static_google_privacy_dlp_v2_Key_descriptor = - getDescriptor().getMessageTypes().get(16); + getDescriptor().getMessageTypes().get(17); internal_static_google_privacy_dlp_v2_Key_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_Key_descriptor, @@ -575,7 +594,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Kind", "Id", "Name", "IdType", }); internal_static_google_privacy_dlp_v2_RecordKey_descriptor = - getDescriptor().getMessageTypes().get(17); + getDescriptor().getMessageTypes().get(18); internal_static_google_privacy_dlp_v2_RecordKey_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_RecordKey_descriptor, @@ -583,7 +602,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DatastoreKey", "BigQueryKey", "IdValues", "Type", }); internal_static_google_privacy_dlp_v2_BigQueryTable_descriptor = - getDescriptor().getMessageTypes().get(18); + getDescriptor().getMessageTypes().get(19); internal_static_google_privacy_dlp_v2_BigQueryTable_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_BigQueryTable_descriptor, @@ -591,7 +610,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ProjectId", "DatasetId", "TableId", }); internal_static_google_privacy_dlp_v2_BigQueryField_descriptor = - getDescriptor().getMessageTypes().get(19); + getDescriptor().getMessageTypes().get(20); internal_static_google_privacy_dlp_v2_BigQueryField_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_BigQueryField_descriptor, @@ -599,7 +618,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Table", "Field", }); internal_static_google_privacy_dlp_v2_EntityId_descriptor = - getDescriptor().getMessageTypes().get(20); + getDescriptor().getMessageTypes().get(21); internal_static_google_privacy_dlp_v2_EntityId_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_EntityId_descriptor, @@ -607,13 +626,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Field", }); internal_static_google_privacy_dlp_v2_TableOptions_descriptor = - getDescriptor().getMessageTypes().get(21); + getDescriptor().getMessageTypes().get(22); internal_static_google_privacy_dlp_v2_TableOptions_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_TableOptions_descriptor, new java.lang.String[] { "IdentifyingFields", }); + com.google.api.ResourceProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); } diff --git a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/EncryptionStatus.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/EncryptionStatus.java index afc71279..5590e7f0 100644 --- a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/EncryptionStatus.java +++ b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/EncryptionStatus.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(8); + return com.google.privacy.dlp.v2.DlpProto.getDescriptor().getEnumTypes().get(11); } private static final EncryptionStatus[] VALUES = values(); diff --git a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ExcludeInfoTypes.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ExcludeInfoTypes.java index b71101c0..195548e8 100644 --- a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ExcludeInfoTypes.java +++ b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ExcludeInfoTypes.java @@ -22,7 +22,7 @@ * * *
- * 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/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ImageTransformations.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ImageTransformations.java new file mode 100644 index 00000000..1dd743a5 --- /dev/null +++ b/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 getInfoTypesList(); + /** + * + * + *
+       * 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 + 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(); + mutable_bitField0_ |= 0x00000001; + } + infoTypes_.add( + input.readMessage( + com.google.privacy.dlp.v2.InfoType.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)) { + infoTypes_ = java.util.Collections.unmodifiableList(infoTypes_); + } + 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_SelectedInfoTypes_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_SelectedInfoTypes_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.SelectedInfoTypes + .class, + com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.SelectedInfoTypes + .Builder.class); + } + + public static final int INFO_TYPES_FIELD_NUMBER = 5; + private java.util.List 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 java.util.List getInfoTypesList() { + 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 java.util.List + 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 + implements + // @@protoc_insertion_point(builder_implements:google.privacy.dlp.v2.ImageTransformations.ImageTransformation.SelectedInfoTypes) + com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation + .SelectedInfoTypesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_ImageTransformations_ImageTransformation_SelectedInfoTypes_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_SelectedInfoTypes_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation + .SelectedInfoTypes.class, + com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation + .SelectedInfoTypes.Builder.class); + } + + // Construct using + // com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.SelectedInfoTypes.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getInfoTypesFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (infoTypesBuilder_ == null) { + infoTypes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + infoTypesBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_ImageTransformations_ImageTransformation_SelectedInfoTypes_descriptor; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.SelectedInfoTypes + getDefaultInstanceForType() { + return com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation + .SelectedInfoTypes.getDefaultInstance(); + } + + @java.lang.Override + public com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.SelectedInfoTypes + build() { + com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.SelectedInfoTypes + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.SelectedInfoTypes + buildPartial() { + com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.SelectedInfoTypes + result = + new com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation + .SelectedInfoTypes(this); + int from_bitField0_ = bitField0_; + if (infoTypesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + infoTypes_ = java.util.Collections.unmodifiableList(infoTypes_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.infoTypes_ = infoTypes_; + } else { + result.infoTypes_ = infoTypesBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation + .SelectedInfoTypes) { + return mergeFrom( + (com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation + .SelectedInfoTypes) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.SelectedInfoTypes + other) { + if (other + == com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation + .SelectedInfoTypes.getDefaultInstance()) return this; + if (infoTypesBuilder_ == null) { + if (!other.infoTypes_.isEmpty()) { + if (infoTypes_.isEmpty()) { + infoTypes_ = other.infoTypes_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureInfoTypesIsMutable(); + infoTypes_.addAll(other.infoTypes_); + } + onChanged(); + } + } else { + if (!other.infoTypes_.isEmpty()) { + if (infoTypesBuilder_.isEmpty()) { + infoTypesBuilder_.dispose(); + infoTypesBuilder_ = null; + infoTypes_ = other.infoTypes_; + bitField0_ = (bitField0_ & ~0x00000001); + infoTypesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getInfoTypesFieldBuilder() + : null; + } else { + infoTypesBuilder_.addAllMessages(other.infoTypes_); + } + } + } + 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.ImageTransformations.ImageTransformation.SelectedInfoTypes + parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation + .SelectedInfoTypes) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List infoTypes_ = + java.util.Collections.emptyList(); + + private void ensureInfoTypesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + infoTypes_ = new java.util.ArrayList(infoTypes_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.privacy.dlp.v2.InfoType, + com.google.privacy.dlp.v2.InfoType.Builder, + com.google.privacy.dlp.v2.InfoTypeOrBuilder> + infoTypesBuilder_; + + /** + * + * + *
+         * 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 getInfoTypesList() { + if (infoTypesBuilder_ == null) { + return java.util.Collections.unmodifiableList(infoTypes_); + } else { + return infoTypesBuilder_.getMessageList(); + } + } + /** + * + * + *
+         * 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 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 + 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 + getInfoTypesBuilderList() { + return getInfoTypesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.privacy.dlp.v2.InfoType, + com.google.privacy.dlp.v2.InfoType.Builder, + com.google.privacy.dlp.v2.InfoTypeOrBuilder> + getInfoTypesFieldBuilder() { + if (infoTypesBuilder_ == null) { + infoTypesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.privacy.dlp.v2.InfoType, + com.google.privacy.dlp.v2.InfoType.Builder, + com.google.privacy.dlp.v2.InfoTypeOrBuilder>( + infoTypes_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + infoTypes_ = null; + } + return infoTypesBuilder_; + } + + @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.SelectedInfoTypes) + } + + // @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.ImageTransformations.ImageTransformation.SelectedInfoTypes) + private static final com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation + .SelectedInfoTypes + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation + .SelectedInfoTypes(); + } + + public static com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation + .SelectedInfoTypes + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SelectedInfoTypes parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SelectedInfoTypes(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.SelectedInfoTypes + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface AllInfoTypesOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllInfoTypes) + com.google.protobuf.MessageOrBuilder {} + /** + * + * + *
+     * 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 + implements + // @@protoc_insertion_point(builder_implements:google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllInfoTypes) + com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllInfoTypesOrBuilder { + 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); + } + + // Construct using + // com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllInfoTypes.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_ImageTransformations_ImageTransformation_AllInfoTypes_descriptor; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllInfoTypes + getDefaultInstanceForType() { + return com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllInfoTypes + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllInfoTypes + build() { + com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllInfoTypes result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllInfoTypes + buildPartial() { + com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllInfoTypes result = + new com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllInfoTypes( + this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllInfoTypes) { + return mergeFrom( + (com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllInfoTypes) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllInfoTypes other) { + if (other + == com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllInfoTypes + .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.ImageTransformations.ImageTransformation.AllInfoTypes + parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllInfoTypes) + 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.ImageTransformations.ImageTransformation.AllInfoTypes) + } + + // @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllInfoTypes) + private static final com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation + .AllInfoTypes + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllInfoTypes(); + } + + public static com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllInfoTypes + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AllInfoTypes parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AllInfoTypes(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllInfoTypes + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface AllTextOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllText) + com.google.protobuf.MessageOrBuilder {} + /** + * + * + *
+     * 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 + implements + // @@protoc_insertion_point(builder_implements:google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllText) + com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllTextOrBuilder { + 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); + } + + // Construct using + // com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllText.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_ImageTransformations_ImageTransformation_AllText_descriptor; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllText + getDefaultInstanceForType() { + return com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllText + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllText build() { + com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllText result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllText + buildPartial() { + com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllText result = + new com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllText(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllText) { + return mergeFrom( + (com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllText) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllText other) { + if (other + == com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllText + .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.ImageTransformations.ImageTransformation.AllText parsedMessage = + null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllText) + 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.ImageTransformations.ImageTransformation.AllText) + } + + // @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllText) + private static final com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation + .AllText + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllText(); + } + + public static com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllText + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AllText parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AllText(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllText + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int targetCase_ = 0; + private java.lang.Object target_; + + public enum TargetCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + SELECTED_INFO_TYPES(4), + ALL_INFO_TYPES(5), + ALL_TEXT(6), + TARGET_NOT_SET(0); + private final int value; + + private TargetCase(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 TargetCase valueOf(int value) { + return forNumber(value); + } + + public static TargetCase forNumber(int value) { + switch (value) { + case 4: + return SELECTED_INFO_TYPES; + case 5: + return ALL_INFO_TYPES; + case 6: + return ALL_TEXT; + case 0: + return TARGET_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public TargetCase getTargetCase() { + return TargetCase.forNumber(targetCase_); + } + + public static final int SELECTED_INFO_TYPES_FIELD_NUMBER = 4; + /** + * + * + *
+     * 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 + implements + // @@protoc_insertion_point(builder_implements:google.privacy.dlp.v2.ImageTransformations.ImageTransformation) + com.google.privacy.dlp.v2.ImageTransformations.ImageTransformationOrBuilder { + 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); + } + + // Construct using + // com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (redactionColorBuilder_ == null) { + redactionColor_ = null; + } else { + redactionColor_ = null; + redactionColorBuilder_ = null; + } + targetCase_ = 0; + target_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_ImageTransformations_ImageTransformation_descriptor; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation + getDefaultInstanceForType() { + return com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation build() { + com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation buildPartial() { + com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation result = + new com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation(this); + if (targetCase_ == 4) { + if (selectedInfoTypesBuilder_ == null) { + result.target_ = target_; + } else { + result.target_ = selectedInfoTypesBuilder_.build(); + } + } + if (targetCase_ == 5) { + if (allInfoTypesBuilder_ == null) { + result.target_ = target_; + } else { + result.target_ = allInfoTypesBuilder_.build(); + } + } + if (targetCase_ == 6) { + if (allTextBuilder_ == null) { + result.target_ = target_; + } else { + result.target_ = allTextBuilder_.build(); + } + } + if (redactionColorBuilder_ == null) { + result.redactionColor_ = redactionColor_; + } else { + result.redactionColor_ = redactionColorBuilder_.build(); + } + result.targetCase_ = targetCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation) { + return mergeFrom( + (com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation other) { + if (other + == com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation + .getDefaultInstance()) return this; + if (other.hasRedactionColor()) { + mergeRedactionColor(other.getRedactionColor()); + } + switch (other.getTargetCase()) { + case SELECTED_INFO_TYPES: + { + mergeSelectedInfoTypes(other.getSelectedInfoTypes()); + break; + } + case ALL_INFO_TYPES: + { + mergeAllInfoTypes(other.getAllInfoTypes()); + break; + } + case ALL_TEXT: + { + mergeAllText(other.getAllText()); + break; + } + case TARGET_NOT_SET: + { + break; + } + } + 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.ImageTransformations.ImageTransformation parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int targetCase_ = 0; + private java.lang.Object target_; + + public TargetCase getTargetCase() { + return TargetCase.forNumber(targetCase_); + } + + public Builder clearTarget() { + targetCase_ = 0; + target_ = null; + onChanged(); + return this; + } + + 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> + selectedInfoTypesBuilder_; + /** + * + * + *
+       * 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.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImageTransformation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ImageTransformation(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int TRANSFORMS_FIELD_NUMBER = 2; + private java.util.List + transforms_; + /** + * repeated .google.privacy.dlp.v2.ImageTransformations.ImageTransformation transforms = 2; + * + */ + @java.lang.Override + public java.util.List + getTransformsList() { + return transforms_; + } + /** + * repeated .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 + implements + // @@protoc_insertion_point(builder_implements:google.privacy.dlp.v2.ImageTransformations) + com.google.privacy.dlp.v2.ImageTransformationsOrBuilder { + 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); + } + + // Construct using com.google.privacy.dlp.v2.ImageTransformations.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getTransformsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (transformsBuilder_ == null) { + transforms_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + transformsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_ImageTransformations_descriptor; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.ImageTransformations getDefaultInstanceForType() { + return com.google.privacy.dlp.v2.ImageTransformations.getDefaultInstance(); + } + + @java.lang.Override + public com.google.privacy.dlp.v2.ImageTransformations build() { + com.google.privacy.dlp.v2.ImageTransformations result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.ImageTransformations buildPartial() { + com.google.privacy.dlp.v2.ImageTransformations result = + new com.google.privacy.dlp.v2.ImageTransformations(this); + int from_bitField0_ = bitField0_; + if (transformsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + transforms_ = java.util.Collections.unmodifiableList(transforms_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.transforms_ = transforms_; + } else { + result.transforms_ = transformsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.privacy.dlp.v2.ImageTransformations) { + return mergeFrom((com.google.privacy.dlp.v2.ImageTransformations) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.privacy.dlp.v2.ImageTransformations other) { + if (other == com.google.privacy.dlp.v2.ImageTransformations.getDefaultInstance()) return this; + if (transformsBuilder_ == null) { + if (!other.transforms_.isEmpty()) { + if (transforms_.isEmpty()) { + transforms_ = other.transforms_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureTransformsIsMutable(); + transforms_.addAll(other.transforms_); + } + onChanged(); + } + } else { + if (!other.transforms_.isEmpty()) { + if (transformsBuilder_.isEmpty()) { + transformsBuilder_.dispose(); + transformsBuilder_ = null; + transforms_ = other.transforms_; + bitField0_ = (bitField0_ & ~0x00000001); + transformsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getTransformsFieldBuilder() + : null; + } else { + transformsBuilder_.addAllMessages(other.transforms_); + } + } + } + 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.ImageTransformations parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.privacy.dlp.v2.ImageTransformations) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List + transforms_ = java.util.Collections.emptyList(); + + private void ensureTransformsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + transforms_ = + new java.util.ArrayList< + com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation>(transforms_); + bitField0_ |= 0x00000001; + } + } + + 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> + transformsBuilder_; + + /** + * + * repeated .google.privacy.dlp.v2.ImageTransformations.ImageTransformation transforms = 2; + * + */ + public java.util.List + getTransformsList() { + if (transformsBuilder_ == null) { + return java.util.Collections.unmodifiableList(transforms_); + } else { + return transformsBuilder_.getMessageList(); + } + } + /** + * + * 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.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImageTransformations parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ImageTransformations(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.ImageTransformations getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ImageTransformationsOrBuilder.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ImageTransformationsOrBuilder.java new file mode 100644 index 00000000..afbf878f --- /dev/null +++ b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ImageTransformationsOrBuilder.java @@ -0,0 +1,55 @@ +/* + * 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; + +public interface ImageTransformationsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.privacy.dlp.v2.ImageTransformations) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .google.privacy.dlp.v2.ImageTransformations.ImageTransformation transforms = 2; + * + */ + java.util.List + getTransformsList(); + /** + * repeated .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/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InfoTypeDescription.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InfoTypeDescription.java index c27ca668..a8b235c8 100644 --- a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InfoTypeDescription.java +++ b/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(); + versions_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } + versions_.add( + input.readMessage( + com.google.privacy.dlp.v2.VersionDescription.parser(), extensionRegistry)); + break; + } + case 82: + { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + categories_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000004; + } categories_.add( input.readMessage( com.google.privacy.dlp.v2.InfoTypeCategory.parser(), extensionRegistry)); @@ -152,6 +164,9 @@ private InfoTypeDescription( supportedBy_ = java.util.Collections.unmodifiableList(supportedBy_); } if (((mutable_bitField0_ & 0x00000002) != 0)) { + versions_ = java.util.Collections.unmodifiableList(versions_); + } + if (((mutable_bitField0_ & 0x00000004) != 0)) { categories_ = java.util.Collections.unmodifiableList(categories_); } this.unknownFields = unknownFields.build(); @@ -421,6 +436,75 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } + public static final int VERSIONS_FIELD_NUMBER = 9; + private java.util.List versions_; + /** + * + * + *
+   * A list of available versions for the infotype.
+   * 
+ * + * repeated .google.privacy.dlp.v2.VersionDescription versions = 9; + */ + @java.lang.Override + public java.util.List getVersionsList() { + return versions_; + } + /** + * + * + *
+   * A list of available versions for the infotype.
+   * 
+ * + * repeated .google.privacy.dlp.v2.VersionDescription versions = 9; + */ + @java.lang.Override + public java.util.List + 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 categories_; /** @@ -521,6 +605,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, description_); } + for (int i = 0; i < versions_.size(); i++) { + output.writeMessage(9, versions_.get(i)); + } for (int i = 0; i < categories_.size(); i++) { output.writeMessage(10, categories_.get(i)); } @@ -554,6 +641,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, description_); } + for (int i = 0; i < versions_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, versions_.get(i)); + } for (int i = 0; i < categories_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, categories_.get(i)); } @@ -577,6 +667,7 @@ public boolean equals(final java.lang.Object obj) { if (!getDisplayName().equals(other.getDisplayName())) return false; if (!supportedBy_.equals(other.supportedBy_)) return false; if (!getDescription().equals(other.getDescription())) return false; + if (!getVersionsList().equals(other.getVersionsList())) return false; if (!getCategoriesList().equals(other.getCategoriesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -599,6 +690,10 @@ public int hashCode() { } hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getDescription().hashCode(); + if (getVersionsCount() > 0) { + hash = (37 * hash) + VERSIONS_FIELD_NUMBER; + hash = (53 * hash) + getVersionsList().hashCode(); + } if (getCategoriesCount() > 0) { hash = (37 * hash) + CATEGORIES_FIELD_NUMBER; hash = (53 * hash) + getCategoriesList().hashCode(); @@ -743,6 +838,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getVersionsFieldBuilder(); getCategoriesFieldBuilder(); } } @@ -758,9 +854,15 @@ public Builder clear() { bitField0_ = (bitField0_ & ~0x00000001); description_ = ""; + if (versionsBuilder_ == null) { + versions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + versionsBuilder_.clear(); + } if (categoriesBuilder_ == null) { categories_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000004); } else { categoriesBuilder_.clear(); } @@ -800,11 +902,20 @@ public com.google.privacy.dlp.v2.InfoTypeDescription buildPartial() { } result.supportedBy_ = supportedBy_; result.description_ = description_; - if (categoriesBuilder_ == null) { + if (versionsBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { - categories_ = java.util.Collections.unmodifiableList(categories_); + versions_ = java.util.Collections.unmodifiableList(versions_); bitField0_ = (bitField0_ & ~0x00000002); } + result.versions_ = versions_; + } else { + result.versions_ = versionsBuilder_.build(); + } + if (categoriesBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + categories_ = java.util.Collections.unmodifiableList(categories_); + bitField0_ = (bitField0_ & ~0x00000004); + } result.categories_ = categories_; } else { result.categories_ = categoriesBuilder_.build(); @@ -880,11 +991,38 @@ public Builder mergeFrom(com.google.privacy.dlp.v2.InfoTypeDescription other) { description_ = other.description_; onChanged(); } + if (versionsBuilder_ == null) { + if (!other.versions_.isEmpty()) { + if (versions_.isEmpty()) { + versions_ = other.versions_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureVersionsIsMutable(); + versions_.addAll(other.versions_); + } + onChanged(); + } + } else { + if (!other.versions_.isEmpty()) { + if (versionsBuilder_.isEmpty()) { + versionsBuilder_.dispose(); + versionsBuilder_ = null; + versions_ = other.versions_; + bitField0_ = (bitField0_ & ~0x00000002); + versionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getVersionsFieldBuilder() + : null; + } else { + versionsBuilder_.addAllMessages(other.versions_); + } + } + } if (categoriesBuilder_ == null) { if (!other.categories_.isEmpty()) { if (categories_.isEmpty()) { categories_ = other.categories_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000004); } else { ensureCategoriesIsMutable(); categories_.addAll(other.categories_); @@ -897,7 +1035,7 @@ public Builder mergeFrom(com.google.privacy.dlp.v2.InfoTypeDescription other) { categoriesBuilder_.dispose(); categoriesBuilder_ = null; categories_ = other.categories_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000004); categoriesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getCategoriesFieldBuilder() @@ -1482,14 +1620,365 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { return this; } + private java.util.List versions_ = + java.util.Collections.emptyList(); + + private void ensureVersionsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + versions_ = + new java.util.ArrayList(versions_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.privacy.dlp.v2.VersionDescription, + com.google.privacy.dlp.v2.VersionDescription.Builder, + com.google.privacy.dlp.v2.VersionDescriptionOrBuilder> + versionsBuilder_; + + /** + * + * + *
+     * A list of available versions for the infotype.
+     * 
+ * + * repeated .google.privacy.dlp.v2.VersionDescription versions = 9; + */ + public java.util.List getVersionsList() { + if (versionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(versions_); + } else { + return versionsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * 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 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 + 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 + getVersionsBuilderList() { + return getVersionsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.privacy.dlp.v2.VersionDescription, + com.google.privacy.dlp.v2.VersionDescription.Builder, + com.google.privacy.dlp.v2.VersionDescriptionOrBuilder> + getVersionsFieldBuilder() { + if (versionsBuilder_ == null) { + versionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.privacy.dlp.v2.VersionDescription, + com.google.privacy.dlp.v2.VersionDescription.Builder, + com.google.privacy.dlp.v2.VersionDescriptionOrBuilder>( + versions_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + versions_ = null; + } + return versionsBuilder_; + } + private java.util.List categories_ = java.util.Collections.emptyList(); private void ensureCategoriesIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { + if (!((bitField0_ & 0x00000004) != 0)) { categories_ = new java.util.ArrayList(categories_); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; } } @@ -1705,7 +2194,7 @@ public Builder addAllCategories( public Builder clearCategories() { if (categoriesBuilder_ == null) { categories_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { categoriesBuilder_.clear(); @@ -1827,7 +2316,7 @@ public com.google.privacy.dlp.v2.InfoTypeCategory.Builder addCategoriesBuilder(i com.google.privacy.dlp.v2.InfoTypeCategory, com.google.privacy.dlp.v2.InfoTypeCategory.Builder, com.google.privacy.dlp.v2.InfoTypeCategoryOrBuilder>( - categories_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + categories_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); categories_ = null; } return categoriesBuilder_; diff --git a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InfoTypeDescriptionOrBuilder.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InfoTypeDescriptionOrBuilder.java index 8344ac23..cf0ba1b5 100644 --- a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InfoTypeDescriptionOrBuilder.java +++ b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InfoTypeDescriptionOrBuilder.java @@ -163,6 +163,58 @@ public interface InfoTypeDescriptionOrBuilder */ com.google.protobuf.ByteString getDescriptionBytes(); + /** + * + * + *
+   * A list of available versions for the infotype.
+   * 
+ * + * repeated .google.privacy.dlp.v2.VersionDescription versions = 9; + */ + java.util.List getVersionsList(); + /** + * + * + *
+   * 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 + 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/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InfoTypeSummary.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InfoTypeSummary.java index 1b050df7..43d1b74e 100644 --- a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InfoTypeSummary.java +++ b/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/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InfoTypeSummaryOrBuilder.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InfoTypeSummaryOrBuilder.java index 59cc8e50..336a0e85 100644 --- a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InfoTypeSummaryOrBuilder.java +++ b/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/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InfoTypeSupportedBy.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InfoTypeSupportedBy.java index db393fc4..405aea60 100644 --- a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InfoTypeSupportedBy.java +++ b/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/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InspectConfig.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InspectConfig.java index 3d7a375e..2f47ce95 100644 --- a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InspectConfig.java +++ b/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/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InspectConfigOrBuilder.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InspectConfigOrBuilder.java index a90b9563..1278105b 100644 --- a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InspectConfigOrBuilder.java +++ b/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/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/LargeCustomDictionaryConfig.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/LargeCustomDictionaryConfig.java index 1d97aa32..7b0fc3d9 100644 --- a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/LargeCustomDictionaryConfig.java +++ b/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() {
    *
    *
    * 
-   * 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() {
    *
    *
    * 
-   * 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() {
      *
      *
      * 
-     * 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() {
      *
      *
      * 
-     * 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) {
      *
      *
      * 
-     * 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/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/LargeCustomDictionaryConfigOrBuilder.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/LargeCustomDictionaryConfigOrBuilder.java
index 29d55de2..b32bb12e 100644
--- a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/LargeCustomDictionaryConfigOrBuilder.java
+++ b/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/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListDeidentifyTemplatesRequest.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListDeidentifyTemplatesRequest.java
index 2babac62..1b88f38e 100644
--- a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListDeidentifyTemplatesRequest.java
+++ b/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/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListDeidentifyTemplatesRequestOrBuilder.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListDeidentifyTemplatesRequestOrBuilder.java index 51f57978..0344d040 100644 --- a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListDeidentifyTemplatesRequestOrBuilder.java +++ b/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/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListDlpJobsRequest.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListDlpJobsRequest.java index c600b42a..f7fc1b20 100644 --- a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListDlpJobsRequest.java +++ b/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` *
* @@ -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` *
* @@ -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` *
* @@ -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` *
* @@ -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` *
* @@ -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/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListDlpJobsRequestOrBuilder.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListDlpJobsRequestOrBuilder.java index e1a95847..c8cccf79 100644 --- a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListDlpJobsRequestOrBuilder.java +++ b/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/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListInspectTemplatesRequest.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListInspectTemplatesRequest.java index f1b640d3..21285f35 100644 --- a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListInspectTemplatesRequest.java +++ b/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() { * * *
-   * 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/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListInspectTemplatesRequestOrBuilder.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListInspectTemplatesRequestOrBuilder.java index 12323ef3..3047a260 100644 --- a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListInspectTemplatesRequestOrBuilder.java +++ b/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/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListJobTriggersRequest.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListJobTriggersRequest.java index 7974d420..fd18c6db 100644 --- a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListJobTriggersRequest.java +++ b/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/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListJobTriggersRequestOrBuilder.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListJobTriggersRequestOrBuilder.java index b5337bce..5099ae37 100644 --- a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListJobTriggersRequestOrBuilder.java +++ b/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/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListStoredInfoTypesRequest.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListStoredInfoTypesRequest.java index af5eb393..0077ea74 100644 --- a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListStoredInfoTypesRequest.java +++ b/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/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListStoredInfoTypesRequestOrBuilder.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListStoredInfoTypesRequestOrBuilder.java index 5e85a54a..c354e9dd 100644 --- a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListStoredInfoTypesRequestOrBuilder.java +++ b/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/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/MatchingType.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/MatchingType.java index 90d30b09..b57c84af 100644 --- a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/MatchingType.java +++ b/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/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/MetadataType.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/MetadataType.java index ec7c0ce6..4b6dd93d 100644 --- a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/MetadataType.java +++ b/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/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/OtherInfoTypeSummary.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/OtherInfoTypeSummary.java index 33293db2..0de4357f 100644 --- a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/OtherInfoTypeSummary.java +++ b/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/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/OtherInfoTypeSummaryOrBuilder.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/OtherInfoTypeSummaryOrBuilder.java index 254dc6ec..f9f80b3d 100644 --- a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/OtherInfoTypeSummaryOrBuilder.java +++ b/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/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/OutputStorageConfig.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/OutputStorageConfig.java index 5ba9ff71..664060bd 100644 --- a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/OutputStorageConfig.java +++ b/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/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/OutputStorageConfigOrBuilder.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/OutputStorageConfigOrBuilder.java index d949dab4..258fee82 100644 --- a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/OutputStorageConfigOrBuilder.java +++ b/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/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/RecordCondition.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/RecordCondition.java index dad16cd6..6fc73355 100644 --- a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/RecordCondition.java +++ b/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/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/RecordTransformation.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/RecordTransformation.java new file mode 100644 index 00000000..6f59bb29 --- /dev/null +++ b/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 + implements + // @@protoc_insertion_point(builder_implements:google.privacy.dlp.v2.RecordTransformation) + com.google.privacy.dlp.v2.RecordTransformationOrBuilder { + 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); + } + + // Construct using com.google.privacy.dlp.v2.RecordTransformation.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (fieldIdBuilder_ == null) { + fieldId_ = null; + } else { + fieldId_ = null; + fieldIdBuilder_ = null; + } + if (containerTimestampBuilder_ == null) { + containerTimestamp_ = null; + } else { + containerTimestamp_ = null; + containerTimestampBuilder_ = null; + } + containerVersion_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_RecordTransformation_descriptor; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.RecordTransformation getDefaultInstanceForType() { + return com.google.privacy.dlp.v2.RecordTransformation.getDefaultInstance(); + } + + @java.lang.Override + public com.google.privacy.dlp.v2.RecordTransformation build() { + com.google.privacy.dlp.v2.RecordTransformation result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.RecordTransformation buildPartial() { + com.google.privacy.dlp.v2.RecordTransformation result = + new com.google.privacy.dlp.v2.RecordTransformation(this); + if (fieldIdBuilder_ == null) { + result.fieldId_ = fieldId_; + } else { + result.fieldId_ = fieldIdBuilder_.build(); + } + if (containerTimestampBuilder_ == null) { + result.containerTimestamp_ = containerTimestamp_; + } else { + result.containerTimestamp_ = containerTimestampBuilder_.build(); + } + result.containerVersion_ = containerVersion_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.privacy.dlp.v2.RecordTransformation) { + return mergeFrom((com.google.privacy.dlp.v2.RecordTransformation) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.privacy.dlp.v2.RecordTransformation other) { + if (other == com.google.privacy.dlp.v2.RecordTransformation.getDefaultInstance()) return this; + if (other.hasFieldId()) { + mergeFieldId(other.getFieldId()); + } + if (other.hasContainerTimestamp()) { + mergeContainerTimestamp(other.getContainerTimestamp()); + } + if (!other.getContainerVersion().isEmpty()) { + containerVersion_ = other.containerVersion_; + onChanged(); + } + 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.RecordTransformation parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.privacy.dlp.v2.RecordTransformation) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.privacy.dlp.v2.FieldId fieldId_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.FieldId, + com.google.privacy.dlp.v2.FieldId.Builder, + com.google.privacy.dlp.v2.FieldIdOrBuilder> + fieldIdBuilder_; + /** + * + * + *
+     * 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 PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RecordTransformation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RecordTransformation(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.RecordTransformation getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/RecordTransformationOrBuilder.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/RecordTransformationOrBuilder.java new file mode 100644 index 00000000..e9253af0 --- /dev/null +++ b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/RecordTransformationOrBuilder.java @@ -0,0 +1,120 @@ +/* + * 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; + +public interface RecordTransformationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.privacy.dlp.v2.RecordTransformation) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * 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/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ReidentifyContentResponse.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ReidentifyContentResponse.java index a69ceaa0..d020c9e2 100644 --- a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ReidentifyContentResponse.java +++ b/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/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/RelationalOperator.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/RelationalOperator.java index 3057f215..117e32da 100644 --- a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/RelationalOperator.java +++ b/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/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ResourceVisibility.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ResourceVisibility.java index 29266524..4ac4fb7a 100644 --- a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ResourceVisibility.java +++ b/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/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/Schedule.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/Schedule.java index 2cbe42ce..2b0a0c9a 100644 --- a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/Schedule.java +++ b/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/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ScheduleOrBuilder.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ScheduleOrBuilder.java
index 29d27eb9..70d73a97 100644
--- a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ScheduleOrBuilder.java
+++ b/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/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/SensitivityScore.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/SensitivityScore.java
index 6eee2094..6840f3b2 100644
--- a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/SensitivityScore.java
+++ b/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/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/SensitivityScoreOrBuilder.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/SensitivityScoreOrBuilder.java
index 81f41487..711206d3 100644
--- a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/SensitivityScoreOrBuilder.java
+++ b/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/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/StorageConfig.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/StorageConfig.java
index 58892c9b..99391223 100644
--- a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/StorageConfig.java
+++ b/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/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/StorageConfigOrBuilder.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/StorageConfigOrBuilder.java index 172abf1a..69187e99 100644 --- a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/StorageConfigOrBuilder.java +++ b/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/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/StoredInfoTypeState.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/StoredInfoTypeState.java index 0db5f67e..45d6fd1f 100644 --- a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/StoredInfoTypeState.java +++ b/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/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/StoredInfoTypeVersion.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/StoredInfoTypeVersion.java index f3724a69..b9a89871 100644 --- a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/StoredInfoTypeVersion.java +++ b/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 getErrorsList() { * 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 @@ -369,7 +369,7 @@ public java.util.List getErrorsList() { * 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 @@ -392,7 +392,7 @@ public int getErrorsCount() { * 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 @@ -415,7 +415,7 @@ public com.google.privacy.dlp.v2.Error getErrors(int index) { * 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 @@ -1440,7 +1440,7 @@ private void ensureErrorsIsMutable() { * 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 @@ -1466,7 +1466,7 @@ public java.util.List getErrorsList() { * 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 @@ -1492,7 +1492,7 @@ public int getErrorsCount() { * 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 @@ -1518,7 +1518,7 @@ public com.google.privacy.dlp.v2.Error getErrors(int index) { * 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 @@ -1550,7 +1550,7 @@ public Builder setErrors(int index, com.google.privacy.dlp.v2.Error value) { * 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 @@ -1579,7 +1579,7 @@ public Builder setErrors(int index, com.google.privacy.dlp.v2.Error.Builder buil * 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 @@ -1611,7 +1611,7 @@ public Builder addErrors(com.google.privacy.dlp.v2.Error value) { * 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 @@ -1643,7 +1643,7 @@ public Builder addErrors(int index, com.google.privacy.dlp.v2.Error value) { * 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 @@ -1672,7 +1672,7 @@ public Builder addErrors(com.google.privacy.dlp.v2.Error.Builder builderForValue * 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 @@ -1701,7 +1701,7 @@ public Builder addErrors(int index, com.google.privacy.dlp.v2.Error.Builder buil * 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 @@ -1731,7 +1731,7 @@ public Builder addAllErrors( * 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 @@ -1760,7 +1760,7 @@ public Builder clearErrors() { * 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 @@ -1789,7 +1789,7 @@ public Builder removeErrors(int index) { * 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 @@ -1811,7 +1811,7 @@ public com.google.privacy.dlp.v2.Error.Builder getErrorsBuilder(int index) { * 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 @@ -1837,7 +1837,7 @@ public com.google.privacy.dlp.v2.ErrorOrBuilder getErrorsOrBuilder(int index) { * 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 @@ -1864,7 +1864,7 @@ public com.google.privacy.dlp.v2.ErrorOrBuilder getErrorsOrBuilder(int index) { * 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 @@ -1887,7 +1887,7 @@ public com.google.privacy.dlp.v2.Error.Builder addErrorsBuilder() { * 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 @@ -1910,7 +1910,7 @@ public com.google.privacy.dlp.v2.Error.Builder addErrorsBuilder(int index) { * 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 diff --git a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/StoredInfoTypeVersionOrBuilder.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/StoredInfoTypeVersionOrBuilder.java index 2bc0782d..e8a16d08 100644 --- a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/StoredInfoTypeVersionOrBuilder.java +++ b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/StoredInfoTypeVersionOrBuilder.java @@ -132,7 +132,7 @@ public interface StoredInfoTypeVersionOrBuilder * 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 @@ -152,7 +152,7 @@ public interface StoredInfoTypeVersionOrBuilder * 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 @@ -172,7 +172,7 @@ public interface StoredInfoTypeVersionOrBuilder * 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 @@ -192,7 +192,7 @@ public interface StoredInfoTypeVersionOrBuilder * 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 @@ -212,7 +212,7 @@ public interface StoredInfoTypeVersionOrBuilder * 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 diff --git a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TransformationConfig.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TransformationConfig.java new file mode 100644 index 00000000..2823e01c --- /dev/null +++ b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TransformationConfig.java @@ -0,0 +1,1099 @@ +/* + * 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; + +/** + * + * + *
+ * 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 + implements + // @@protoc_insertion_point(builder_implements:google.privacy.dlp.v2.TransformationConfig) + com.google.privacy.dlp.v2.TransformationConfigOrBuilder { + 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); + } + + // Construct using com.google.privacy.dlp.v2.TransformationConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + deidentifyTemplate_ = ""; + + structuredDeidentifyTemplate_ = ""; + + imageRedactTemplate_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_TransformationConfig_descriptor; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.TransformationConfig getDefaultInstanceForType() { + return com.google.privacy.dlp.v2.TransformationConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.privacy.dlp.v2.TransformationConfig build() { + com.google.privacy.dlp.v2.TransformationConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.TransformationConfig buildPartial() { + com.google.privacy.dlp.v2.TransformationConfig result = + new com.google.privacy.dlp.v2.TransformationConfig(this); + result.deidentifyTemplate_ = deidentifyTemplate_; + result.structuredDeidentifyTemplate_ = structuredDeidentifyTemplate_; + result.imageRedactTemplate_ = imageRedactTemplate_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.privacy.dlp.v2.TransformationConfig) { + return mergeFrom((com.google.privacy.dlp.v2.TransformationConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.privacy.dlp.v2.TransformationConfig other) { + if (other == com.google.privacy.dlp.v2.TransformationConfig.getDefaultInstance()) return this; + if (!other.getDeidentifyTemplate().isEmpty()) { + deidentifyTemplate_ = other.deidentifyTemplate_; + onChanged(); + } + if (!other.getStructuredDeidentifyTemplate().isEmpty()) { + structuredDeidentifyTemplate_ = other.structuredDeidentifyTemplate_; + onChanged(); + } + if (!other.getImageRedactTemplate().isEmpty()) { + imageRedactTemplate_ = other.imageRedactTemplate_; + onChanged(); + } + 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.TransformationConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.privacy.dlp.v2.TransformationConfig) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private 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. + */ + 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 PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TransformationConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TransformationConfig(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.TransformationConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TransformationConfigOrBuilder.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TransformationConfigOrBuilder.java new file mode 100644 index 00000000..605211c8 --- /dev/null +++ b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TransformationConfigOrBuilder.java @@ -0,0 +1,128 @@ +/* + * 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; + +public interface TransformationConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.privacy.dlp.v2.TransformationConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * 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/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TransformationContainerType.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TransformationContainerType.java new file mode 100644 index 00000000..ee929393 --- /dev/null +++ b/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 + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public TransformationContainerType findValueByNumber(int number) { + return TransformationContainerType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.privacy.dlp.v2.DlpProto.getDescriptor().getEnumTypes().get(1); + } + + private static final TransformationContainerType[] VALUES = values(); + + public static TransformationContainerType valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private TransformationContainerType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.privacy.dlp.v2.TransformationContainerType) +} diff --git a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TransformationDescription.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TransformationDescription.java new file mode 100644 index 00000000..8f989508 --- /dev/null +++ b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TransformationDescription.java @@ -0,0 +1,1324 @@ +/* + * 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 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 + implements + // @@protoc_insertion_point(builder_implements:google.privacy.dlp.v2.TransformationDescription) + com.google.privacy.dlp.v2.TransformationDescriptionOrBuilder { + 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); + } + + // Construct using com.google.privacy.dlp.v2.TransformationDescription.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + type_ = 0; + + description_ = ""; + + condition_ = ""; + + if (infoTypeBuilder_ == null) { + infoType_ = null; + } else { + infoType_ = null; + infoTypeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_TransformationDescription_descriptor; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.TransformationDescription getDefaultInstanceForType() { + return com.google.privacy.dlp.v2.TransformationDescription.getDefaultInstance(); + } + + @java.lang.Override + public com.google.privacy.dlp.v2.TransformationDescription build() { + com.google.privacy.dlp.v2.TransformationDescription result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.TransformationDescription buildPartial() { + com.google.privacy.dlp.v2.TransformationDescription result = + new com.google.privacy.dlp.v2.TransformationDescription(this); + result.type_ = type_; + result.description_ = description_; + result.condition_ = condition_; + if (infoTypeBuilder_ == null) { + result.infoType_ = infoType_; + } else { + result.infoType_ = infoTypeBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.privacy.dlp.v2.TransformationDescription) { + return mergeFrom((com.google.privacy.dlp.v2.TransformationDescription) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.privacy.dlp.v2.TransformationDescription other) { + if (other == com.google.privacy.dlp.v2.TransformationDescription.getDefaultInstance()) + return this; + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + onChanged(); + } + if (!other.getCondition().isEmpty()) { + condition_ = other.condition_; + onChanged(); + } + if (other.hasInfoType()) { + mergeInfoType(other.getInfoType()); + } + 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.TransformationDescription parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.privacy.dlp.v2.TransformationDescription) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int type_ = 0; + /** + * + * + *
+     * 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 PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TransformationDescription parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TransformationDescription(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.TransformationDescription getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TransformationDescriptionOrBuilder.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TransformationDescriptionOrBuilder.java new file mode 100644 index 00000000..f592c000 --- /dev/null +++ b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TransformationDescriptionOrBuilder.java @@ -0,0 +1,157 @@ +/* + * 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; + +public interface TransformationDescriptionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.privacy.dlp.v2.TransformationDescription) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * 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/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TransformationDetails.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TransformationDetails.java new file mode 100644 index 00000000..80c6389a --- /dev/null +++ b/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(); + mutable_bitField0_ |= 0x00000001; + } + transformation_.add( + input.readMessage( + com.google.privacy.dlp.v2.TransformationDescription.parser(), + extensionRegistry)); + break; + } + case 34: + { + com.google.privacy.dlp.v2.TransformationResultStatus.Builder subBuilder = null; + if (statusDetails_ != null) { + subBuilder = statusDetails_.toBuilder(); + } + statusDetails_ = + input.readMessage( + com.google.privacy.dlp.v2.TransformationResultStatus.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(statusDetails_); + statusDetails_ = subBuilder.buildPartial(); + } + + break; + } + case 40: + { + transformedBytes_ = input.readInt64(); + break; + } + case 50: + { + com.google.privacy.dlp.v2.TransformationLocation.Builder subBuilder = null; + if (transformationLocation_ != null) { + subBuilder = transformationLocation_.toBuilder(); + } + transformationLocation_ = + input.readMessage( + com.google.privacy.dlp.v2.TransformationLocation.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(transformationLocation_); + transformationLocation_ = 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 { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + transformation_ = java.util.Collections.unmodifiableList(transformation_); + } + 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_TransformationDetails_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_TransformationDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.privacy.dlp.v2.TransformationDetails.class, + com.google.privacy.dlp.v2.TransformationDetails.Builder.class); + } + + public static final int RESOURCE_NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object resourceName_; + /** + * + * + *
+   * 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 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 java.util.List + getTransformationList() { + 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 java.util.List + 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 + implements + // @@protoc_insertion_point(builder_implements:google.privacy.dlp.v2.TransformationDetails) + com.google.privacy.dlp.v2.TransformationDetailsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_TransformationDetails_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_TransformationDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.privacy.dlp.v2.TransformationDetails.class, + com.google.privacy.dlp.v2.TransformationDetails.Builder.class); + } + + // Construct using com.google.privacy.dlp.v2.TransformationDetails.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getTransformationFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + resourceName_ = ""; + + containerName_ = ""; + + if (transformationBuilder_ == null) { + transformation_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + transformationBuilder_.clear(); + } + if (statusDetailsBuilder_ == null) { + statusDetails_ = null; + } else { + statusDetails_ = null; + statusDetailsBuilder_ = null; + } + transformedBytes_ = 0L; + + if (transformationLocationBuilder_ == null) { + transformationLocation_ = null; + } else { + transformationLocation_ = null; + transformationLocationBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_TransformationDetails_descriptor; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.TransformationDetails getDefaultInstanceForType() { + return com.google.privacy.dlp.v2.TransformationDetails.getDefaultInstance(); + } + + @java.lang.Override + public com.google.privacy.dlp.v2.TransformationDetails build() { + com.google.privacy.dlp.v2.TransformationDetails result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.TransformationDetails buildPartial() { + com.google.privacy.dlp.v2.TransformationDetails result = + new com.google.privacy.dlp.v2.TransformationDetails(this); + int from_bitField0_ = bitField0_; + result.resourceName_ = resourceName_; + result.containerName_ = containerName_; + if (transformationBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + transformation_ = java.util.Collections.unmodifiableList(transformation_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.transformation_ = transformation_; + } else { + result.transformation_ = transformationBuilder_.build(); + } + if (statusDetailsBuilder_ == null) { + result.statusDetails_ = statusDetails_; + } else { + result.statusDetails_ = statusDetailsBuilder_.build(); + } + result.transformedBytes_ = transformedBytes_; + if (transformationLocationBuilder_ == null) { + result.transformationLocation_ = transformationLocation_; + } else { + result.transformationLocation_ = transformationLocationBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.privacy.dlp.v2.TransformationDetails) { + return mergeFrom((com.google.privacy.dlp.v2.TransformationDetails) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.privacy.dlp.v2.TransformationDetails other) { + if (other == com.google.privacy.dlp.v2.TransformationDetails.getDefaultInstance()) + return this; + if (!other.getResourceName().isEmpty()) { + resourceName_ = other.resourceName_; + onChanged(); + } + if (!other.getContainerName().isEmpty()) { + containerName_ = other.containerName_; + onChanged(); + } + if (transformationBuilder_ == null) { + if (!other.transformation_.isEmpty()) { + if (transformation_.isEmpty()) { + transformation_ = other.transformation_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureTransformationIsMutable(); + transformation_.addAll(other.transformation_); + } + onChanged(); + } + } else { + if (!other.transformation_.isEmpty()) { + if (transformationBuilder_.isEmpty()) { + transformationBuilder_.dispose(); + transformationBuilder_ = null; + transformation_ = other.transformation_; + bitField0_ = (bitField0_ & ~0x00000001); + transformationBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getTransformationFieldBuilder() + : null; + } else { + transformationBuilder_.addAllMessages(other.transformation_); + } + } + } + if (other.hasStatusDetails()) { + mergeStatusDetails(other.getStatusDetails()); + } + if (other.getTransformedBytes() != 0L) { + setTransformedBytes(other.getTransformedBytes()); + } + if (other.hasTransformationLocation()) { + mergeTransformationLocation(other.getTransformationLocation()); + } + 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.TransformationDetails parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.privacy.dlp.v2.TransformationDetails) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.lang.Object resourceName_ = ""; + /** + * + * + *
+     * 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 transformation_ = + java.util.Collections.emptyList(); + + private void ensureTransformationIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + transformation_ = + new java.util.ArrayList( + transformation_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.privacy.dlp.v2.TransformationDescription, + com.google.privacy.dlp.v2.TransformationDescription.Builder, + com.google.privacy.dlp.v2.TransformationDescriptionOrBuilder> + transformationBuilder_; + + /** + * + * + *
+     * 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 + getTransformationList() { + if (transformationBuilder_ == null) { + return java.util.Collections.unmodifiableList(transformation_); + } else { + return transformationBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * 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 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 + 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 + getTransformationBuilderList() { + return getTransformationFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.privacy.dlp.v2.TransformationDescription, + com.google.privacy.dlp.v2.TransformationDescription.Builder, + com.google.privacy.dlp.v2.TransformationDescriptionOrBuilder> + getTransformationFieldBuilder() { + if (transformationBuilder_ == null) { + transformationBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.privacy.dlp.v2.TransformationDescription, + com.google.privacy.dlp.v2.TransformationDescription.Builder, + com.google.privacy.dlp.v2.TransformationDescriptionOrBuilder>( + transformation_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + transformation_ = null; + } + return transformationBuilder_; + } + + private com.google.privacy.dlp.v2.TransformationResultStatus statusDetails_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.TransformationResultStatus, + com.google.privacy.dlp.v2.TransformationResultStatus.Builder, + com.google.privacy.dlp.v2.TransformationResultStatusOrBuilder> + statusDetailsBuilder_; + /** + * + * + *
+     * 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 PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TransformationDetails parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TransformationDetails(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.TransformationDetails getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TransformationDetailsOrBuilder.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TransformationDetailsOrBuilder.java new file mode 100644 index 00000000..a644ddb7 --- /dev/null +++ b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TransformationDetailsOrBuilder.java @@ -0,0 +1,241 @@ +/* + * 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; + +public interface TransformationDetailsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.privacy.dlp.v2.TransformationDetails) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * 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 getTransformationList(); + /** + * + * + *
+   * 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 + 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/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TransformationDetailsStorageConfig.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TransformationDetailsStorageConfig.java new file mode 100644 index 00000000..0e2e53a6 --- /dev/null +++ b/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 + implements + // @@protoc_insertion_point(builder_implements:google.privacy.dlp.v2.TransformationDetailsStorageConfig) + com.google.privacy.dlp.v2.TransformationDetailsStorageConfigOrBuilder { + 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); + } + + // Construct using com.google.privacy.dlp.v2.TransformationDetailsStorageConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + typeCase_ = 0; + type_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_TransformationDetailsStorageConfig_descriptor; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.TransformationDetailsStorageConfig + getDefaultInstanceForType() { + return com.google.privacy.dlp.v2.TransformationDetailsStorageConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.privacy.dlp.v2.TransformationDetailsStorageConfig build() { + com.google.privacy.dlp.v2.TransformationDetailsStorageConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.TransformationDetailsStorageConfig buildPartial() { + com.google.privacy.dlp.v2.TransformationDetailsStorageConfig result = + new com.google.privacy.dlp.v2.TransformationDetailsStorageConfig(this); + if (typeCase_ == 1) { + if (tableBuilder_ == null) { + result.type_ = type_; + } else { + result.type_ = tableBuilder_.build(); + } + } + result.typeCase_ = typeCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.privacy.dlp.v2.TransformationDetailsStorageConfig) { + return mergeFrom((com.google.privacy.dlp.v2.TransformationDetailsStorageConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.privacy.dlp.v2.TransformationDetailsStorageConfig other) { + if (other + == com.google.privacy.dlp.v2.TransformationDetailsStorageConfig.getDefaultInstance()) + return this; + switch (other.getTypeCase()) { + case TABLE: + { + mergeTable(other.getTable()); + break; + } + case TYPE_NOT_SET: + { + break; + } + } + 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.TransformationDetailsStorageConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.privacy.dlp.v2.TransformationDetailsStorageConfig) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int typeCase_ = 0; + private java.lang.Object type_; + + public TypeCase getTypeCase() { + return TypeCase.forNumber(typeCase_); + } + + public Builder clearType() { + typeCase_ = 0; + type_ = null; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.BigQueryTable, + com.google.privacy.dlp.v2.BigQueryTable.Builder, + com.google.privacy.dlp.v2.BigQueryTableOrBuilder> + tableBuilder_; + /** + * + * + *
+     * 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 PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TransformationDetailsStorageConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TransformationDetailsStorageConfig(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.TransformationDetailsStorageConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TransformationDetailsStorageConfigOrBuilder.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TransformationDetailsStorageConfigOrBuilder.java new file mode 100644 index 00000000..ecdbfb5b --- /dev/null +++ b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TransformationDetailsStorageConfigOrBuilder.java @@ -0,0 +1,77 @@ +/* + * 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; + +public interface TransformationDetailsStorageConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.privacy.dlp.v2.TransformationDetailsStorageConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * 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/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TransformationLocation.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TransformationLocation.java new file mode 100644 index 00000000..71f51794 --- /dev/null +++ b/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 + implements + // @@protoc_insertion_point(builder_implements:google.privacy.dlp.v2.TransformationLocation) + com.google.privacy.dlp.v2.TransformationLocationOrBuilder { + 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); + } + + // Construct using com.google.privacy.dlp.v2.TransformationLocation.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + containerType_ = 0; + + locationTypeCase_ = 0; + locationType_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_TransformationLocation_descriptor; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.TransformationLocation getDefaultInstanceForType() { + return com.google.privacy.dlp.v2.TransformationLocation.getDefaultInstance(); + } + + @java.lang.Override + public com.google.privacy.dlp.v2.TransformationLocation build() { + com.google.privacy.dlp.v2.TransformationLocation result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.TransformationLocation buildPartial() { + com.google.privacy.dlp.v2.TransformationLocation result = + new com.google.privacy.dlp.v2.TransformationLocation(this); + if (locationTypeCase_ == 1) { + result.locationType_ = locationType_; + } + if (locationTypeCase_ == 2) { + if (recordTransformationBuilder_ == null) { + result.locationType_ = locationType_; + } else { + result.locationType_ = recordTransformationBuilder_.build(); + } + } + result.containerType_ = containerType_; + result.locationTypeCase_ = locationTypeCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.privacy.dlp.v2.TransformationLocation) { + return mergeFrom((com.google.privacy.dlp.v2.TransformationLocation) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.privacy.dlp.v2.TransformationLocation other) { + if (other == com.google.privacy.dlp.v2.TransformationLocation.getDefaultInstance()) + return this; + if (other.containerType_ != 0) { + setContainerTypeValue(other.getContainerTypeValue()); + } + switch (other.getLocationTypeCase()) { + case FINDING_ID: + { + locationTypeCase_ = 1; + locationType_ = other.locationType_; + onChanged(); + break; + } + case RECORD_TRANSFORMATION: + { + mergeRecordTransformation(other.getRecordTransformation()); + break; + } + case LOCATIONTYPE_NOT_SET: + { + break; + } + } + 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.TransformationLocation parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.privacy.dlp.v2.TransformationLocation) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int locationTypeCase_ = 0; + private java.lang.Object locationType_; + + public LocationTypeCase getLocationTypeCase() { + return LocationTypeCase.forNumber(locationTypeCase_); + } + + public Builder clearLocationType() { + 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; + * + * @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 PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TransformationLocation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TransformationLocation(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.TransformationLocation getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TransformationLocationOrBuilder.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TransformationLocationOrBuilder.java new file mode 100644 index 00000000..c5ac2d41 --- /dev/null +++ b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TransformationLocationOrBuilder.java @@ -0,0 +1,138 @@ +/* + * 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; + +public interface TransformationLocationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.privacy.dlp.v2.TransformationLocation) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * 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/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TransformationResultStatus.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TransformationResultStatus.java new file mode 100644 index 00000000..44d5311f --- /dev/null +++ b/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 + implements + // @@protoc_insertion_point(builder_implements:google.privacy.dlp.v2.TransformationResultStatus) + com.google.privacy.dlp.v2.TransformationResultStatusOrBuilder { + 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); + } + + // Construct using com.google.privacy.dlp.v2.TransformationResultStatus.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + resultStatusType_ = 0; + + if (detailsBuilder_ == null) { + details_ = null; + } else { + details_ = null; + detailsBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_TransformationResultStatus_descriptor; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.TransformationResultStatus getDefaultInstanceForType() { + return com.google.privacy.dlp.v2.TransformationResultStatus.getDefaultInstance(); + } + + @java.lang.Override + public com.google.privacy.dlp.v2.TransformationResultStatus build() { + com.google.privacy.dlp.v2.TransformationResultStatus result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.TransformationResultStatus buildPartial() { + com.google.privacy.dlp.v2.TransformationResultStatus result = + new com.google.privacy.dlp.v2.TransformationResultStatus(this); + result.resultStatusType_ = resultStatusType_; + if (detailsBuilder_ == null) { + result.details_ = details_; + } else { + result.details_ = detailsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.privacy.dlp.v2.TransformationResultStatus) { + return mergeFrom((com.google.privacy.dlp.v2.TransformationResultStatus) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.privacy.dlp.v2.TransformationResultStatus other) { + if (other == com.google.privacy.dlp.v2.TransformationResultStatus.getDefaultInstance()) + return this; + if (other.resultStatusType_ != 0) { + setResultStatusTypeValue(other.getResultStatusTypeValue()); + } + if (other.hasDetails()) { + mergeDetails(other.getDetails()); + } + 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.TransformationResultStatus parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.privacy.dlp.v2.TransformationResultStatus) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int resultStatusType_ = 0; + /** + * + * + *
+     * 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 PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TransformationResultStatus parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TransformationResultStatus(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.TransformationResultStatus getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TransformationResultStatusOrBuilder.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TransformationResultStatusOrBuilder.java new file mode 100644 index 00000000..3b5d125e --- /dev/null +++ b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TransformationResultStatusOrBuilder.java @@ -0,0 +1,87 @@ +/* + * 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; + +public interface TransformationResultStatusOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.privacy.dlp.v2.TransformationResultStatus) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * 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/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TransformationResultStatusType.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TransformationResultStatusType.java new file mode 100644 index 00000000..bd2a8914 --- /dev/null +++ b/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 + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public TransformationResultStatusType findValueByNumber(int number) { + return TransformationResultStatusType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.privacy.dlp.v2.DlpProto.getDescriptor().getEnumTypes().get(0); + } + + private static final TransformationResultStatusType[] VALUES = values(); + + public static TransformationResultStatusType valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private TransformationResultStatusType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.privacy.dlp.v2.TransformationResultStatusType) +} diff --git a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TransformationType.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TransformationType.java new file mode 100644 index 00000000..f99389cd --- /dev/null +++ b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TransformationType.java @@ -0,0 +1,444 @@ +/* + * 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; + +/** + * + * + *
+ * 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 internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public TransformationType findValueByNumber(int number) { + return TransformationType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.privacy.dlp.v2.DlpProto.getDescriptor().getEnumTypes().get(2); + } + + private static final TransformationType[] VALUES = values(); + + public static TransformationType valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private TransformationType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.privacy.dlp.v2.TransformationType) +} diff --git a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/VersionDescription.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/VersionDescription.java new file mode 100644 index 00000000..6710077b --- /dev/null +++ b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/VersionDescription.java @@ -0,0 +1,815 @@ +/* + * 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 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 + implements + // @@protoc_insertion_point(builder_implements:google.privacy.dlp.v2.VersionDescription) + com.google.privacy.dlp.v2.VersionDescriptionOrBuilder { + 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); + } + + // Construct using com.google.privacy.dlp.v2.VersionDescription.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + version_ = ""; + + description_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_VersionDescription_descriptor; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.VersionDescription getDefaultInstanceForType() { + return com.google.privacy.dlp.v2.VersionDescription.getDefaultInstance(); + } + + @java.lang.Override + public com.google.privacy.dlp.v2.VersionDescription build() { + com.google.privacy.dlp.v2.VersionDescription result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.VersionDescription buildPartial() { + com.google.privacy.dlp.v2.VersionDescription result = + new com.google.privacy.dlp.v2.VersionDescription(this); + result.version_ = version_; + result.description_ = description_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.privacy.dlp.v2.VersionDescription) { + return mergeFrom((com.google.privacy.dlp.v2.VersionDescription) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.privacy.dlp.v2.VersionDescription other) { + if (other == com.google.privacy.dlp.v2.VersionDescription.getDefaultInstance()) return this; + if (!other.getVersion().isEmpty()) { + version_ = other.version_; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + onChanged(); + } + 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.VersionDescription parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.privacy.dlp.v2.VersionDescription) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object version_ = ""; + /** + * + * + *
+     * 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 PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VersionDescription parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new VersionDescription(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.VersionDescription getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/VersionDescriptionOrBuilder.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/VersionDescriptionOrBuilder.java new file mode 100644 index 00000000..191e2230 --- /dev/null +++ b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/VersionDescriptionOrBuilder.java @@ -0,0 +1,75 @@ +/* + * 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; + +public interface VersionDescriptionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.privacy.dlp.v2.VersionDescription) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * 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/proto-google-cloud-dlp-v2/src/main/proto/google/privacy/dlp/v2/dlp.proto b/proto-google-cloud-dlp-v2/src/main/proto/google/privacy/dlp/v2/dlp.proto index 866a5748..4dc3a386 100644 --- a/proto-google-cloud-dlp-v2/src/main/proto/google/privacy/dlp/v2/dlp.proto +++ b/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/proto-google-cloud-dlp-v2/src/main/proto/google/privacy/dlp/v2/storage.proto b/proto-google-cloud-dlp-v2/src/main/proto/google/privacy/dlp/v2/storage.proto index a0002b33..7709f546 100644 --- a/proto-google-cloud-dlp-v2/src/main/proto/google/privacy/dlp/v2/storage.proto +++ b/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. + // + //
    + //
  • _PARTITIONTIME
  • + //
  • _PARTITIONDATE
  • + //
  • _PARTITION_LOAD_TIME
  • + //
+ // + // 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.