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 dd7652d6..9e951750 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 @@ -43,11 +43,15 @@ import com.google.privacy.dlp.v2.DeleteJobTriggerRequest; import com.google.privacy.dlp.v2.DeleteStoredInfoTypeRequest; import com.google.privacy.dlp.v2.DlpJob; +import com.google.privacy.dlp.v2.FinishDlpJobRequest; import com.google.privacy.dlp.v2.GetDeidentifyTemplateRequest; import com.google.privacy.dlp.v2.GetDlpJobRequest; import com.google.privacy.dlp.v2.GetInspectTemplateRequest; import com.google.privacy.dlp.v2.GetJobTriggerRequest; import com.google.privacy.dlp.v2.GetStoredInfoTypeRequest; +import com.google.privacy.dlp.v2.HybridInspectDlpJobRequest; +import com.google.privacy.dlp.v2.HybridInspectJobTriggerRequest; +import com.google.privacy.dlp.v2.HybridInspectResponse; import com.google.privacy.dlp.v2.InspectContentRequest; import com.google.privacy.dlp.v2.InspectContentResponse; import com.google.privacy.dlp.v2.InspectTemplate; @@ -1319,6 +1323,109 @@ public final UnaryCallable cancelDlpJobCallable() { return stub.cancelDlpJobCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Finish a running hybrid DlpJob. Triggers the finalization steps and running of any enabled + * actions that have not yet run. Early access feature is in a pre-release state and might change + * or have limited support. For more information, see + * https://cloud.google.com/products#product-launch-stages. + * + *

Sample code: + * + *


+   * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
+   *   DlpJobName name = DlpJobName.of("[PROJECT]", "[DLP_JOB]");
+   *   FinishDlpJobRequest request = FinishDlpJobRequest.newBuilder()
+   *     .setName(name.toString())
+   *     .build();
+   *   dlpServiceClient.finishDlpJob(request);
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void finishDlpJob(FinishDlpJobRequest request) { + finishDlpJobCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Finish a running hybrid DlpJob. Triggers the finalization steps and running of any enabled + * actions that have not yet run. Early access feature is in a pre-release state and might change + * or have limited support. For more information, see + * https://cloud.google.com/products#product-launch-stages. + * + *

Sample code: + * + *


+   * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
+   *   DlpJobName name = DlpJobName.of("[PROJECT]", "[DLP_JOB]");
+   *   FinishDlpJobRequest request = FinishDlpJobRequest.newBuilder()
+   *     .setName(name.toString())
+   *     .build();
+   *   ApiFuture<Void> future = dlpServiceClient.finishDlpJobCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + public final UnaryCallable finishDlpJobCallable() { + return stub.finishDlpJobCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Inspect hybrid content and store findings to a job. To review the findings inspect the job. + * Inspection will occur asynchronously. Early access feature is in a pre-release state and might + * change or have limited support. For more information, see + * https://cloud.google.com/products#product-launch-stages. + * + *

Sample code: + * + *


+   * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
+   *   String name = "";
+   *   HybridInspectDlpJobRequest request = HybridInspectDlpJobRequest.newBuilder()
+   *     .setName(name)
+   *     .build();
+   *   HybridInspectResponse response = dlpServiceClient.hybridInspectDlpJob(request);
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final HybridInspectResponse hybridInspectDlpJob(HybridInspectDlpJobRequest request) { + return hybridInspectDlpJobCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Inspect hybrid content and store findings to a job. To review the findings inspect the job. + * Inspection will occur asynchronously. Early access feature is in a pre-release state and might + * change or have limited support. For more information, see + * https://cloud.google.com/products#product-launch-stages. + * + *

Sample code: + * + *


+   * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
+   *   String name = "";
+   *   HybridInspectDlpJobRequest request = HybridInspectDlpJobRequest.newBuilder()
+   *     .setName(name)
+   *     .build();
+   *   ApiFuture<HybridInspectResponse> future = dlpServiceClient.hybridInspectDlpJobCallable().futureCall(request);
+   *   // Do something
+   *   HybridInspectResponse response = future.get();
+   * }
+   * 
+ */ + public final UnaryCallable + hybridInspectDlpJobCallable() { + return stub.hybridInspectDlpJobCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD /** * Lists job triggers. See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more. @@ -1493,6 +1600,59 @@ public final UnaryCallable deleteJobTriggerCalla return stub.deleteJobTriggerCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Inspect hybrid content and store findings to a trigger. The inspection will be processed + * asynchronously. To review the findings monitor the jobs within the trigger. Early access + * feature is in a pre-release state and might change or have limited support. For more + * information, see https://cloud.google.com/products#product-launch-stages. + * + *

Sample code: + * + *


+   * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
+   *   String name = "";
+   *   HybridInspectJobTriggerRequest request = HybridInspectJobTriggerRequest.newBuilder()
+   *     .setName(name)
+   *     .build();
+   *   HybridInspectResponse response = dlpServiceClient.hybridInspectJobTrigger(request);
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final HybridInspectResponse hybridInspectJobTrigger( + HybridInspectJobTriggerRequest request) { + return hybridInspectJobTriggerCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Inspect hybrid content and store findings to a trigger. The inspection will be processed + * asynchronously. To review the findings monitor the jobs within the trigger. Early access + * feature is in a pre-release state and might change or have limited support. For more + * information, see https://cloud.google.com/products#product-launch-stages. + * + *

Sample code: + * + *


+   * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
+   *   String name = "";
+   *   HybridInspectJobTriggerRequest request = HybridInspectJobTriggerRequest.newBuilder()
+   *     .setName(name)
+   *     .build();
+   *   ApiFuture<HybridInspectResponse> future = dlpServiceClient.hybridInspectJobTriggerCallable().futureCall(request);
+   *   // Do something
+   *   HybridInspectResponse response = future.get();
+   * }
+   * 
+ */ + public final UnaryCallable + hybridInspectJobTriggerCallable() { + return stub.hybridInspectJobTriggerCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD /** * Updates a job trigger. See https://cloud.google.com/dlp/docs/creating-job-triggers to learn diff --git a/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/DlpServiceSettings.java b/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/DlpServiceSettings.java index 1e251030..03cd1cec 100644 --- a/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/DlpServiceSettings.java +++ b/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/DlpServiceSettings.java @@ -48,11 +48,15 @@ import com.google.privacy.dlp.v2.DeleteJobTriggerRequest; import com.google.privacy.dlp.v2.DeleteStoredInfoTypeRequest; import com.google.privacy.dlp.v2.DlpJob; +import com.google.privacy.dlp.v2.FinishDlpJobRequest; import com.google.privacy.dlp.v2.GetDeidentifyTemplateRequest; import com.google.privacy.dlp.v2.GetDlpJobRequest; import com.google.privacy.dlp.v2.GetInspectTemplateRequest; import com.google.privacy.dlp.v2.GetJobTriggerRequest; import com.google.privacy.dlp.v2.GetStoredInfoTypeRequest; +import com.google.privacy.dlp.v2.HybridInspectDlpJobRequest; +import com.google.privacy.dlp.v2.HybridInspectJobTriggerRequest; +import com.google.privacy.dlp.v2.HybridInspectResponse; import com.google.privacy.dlp.v2.InspectContentRequest; import com.google.privacy.dlp.v2.InspectContentResponse; import com.google.privacy.dlp.v2.InspectTemplate; @@ -235,6 +239,17 @@ public UnaryCallSettings cancelDlpJobSettings() { return ((DlpServiceStubSettings) getStubSettings()).cancelDlpJobSettings(); } + /** Returns the object with the settings used for calls to finishDlpJob. */ + public UnaryCallSettings finishDlpJobSettings() { + return ((DlpServiceStubSettings) getStubSettings()).finishDlpJobSettings(); + } + + /** Returns the object with the settings used for calls to hybridInspectDlpJob. */ + public UnaryCallSettings + hybridInspectDlpJobSettings() { + return ((DlpServiceStubSettings) getStubSettings()).hybridInspectDlpJobSettings(); + } + /** Returns the object with the settings used for calls to listJobTriggers. */ public PagedCallSettings< ListJobTriggersRequest, ListJobTriggersResponse, ListJobTriggersPagedResponse> @@ -252,6 +267,12 @@ public UnaryCallSettings deleteJobTriggerSetting return ((DlpServiceStubSettings) getStubSettings()).deleteJobTriggerSettings(); } + /** Returns the object with the settings used for calls to hybridInspectJobTrigger. */ + public UnaryCallSettings + hybridInspectJobTriggerSettings() { + return ((DlpServiceStubSettings) getStubSettings()).hybridInspectJobTriggerSettings(); + } + /** Returns the object with the settings used for calls to updateJobTrigger. */ public UnaryCallSettings updateJobTriggerSettings() { return ((DlpServiceStubSettings) getStubSettings()).updateJobTriggerSettings(); @@ -510,6 +531,17 @@ public UnaryCallSettings.Builder cancelDlpJobSetting return getStubSettingsBuilder().cancelDlpJobSettings(); } + /** Returns the builder for the settings used for calls to finishDlpJob. */ + public UnaryCallSettings.Builder finishDlpJobSettings() { + return getStubSettingsBuilder().finishDlpJobSettings(); + } + + /** Returns the builder for the settings used for calls to hybridInspectDlpJob. */ + public UnaryCallSettings.Builder + hybridInspectDlpJobSettings() { + return getStubSettingsBuilder().hybridInspectDlpJobSettings(); + } + /** Returns the builder for the settings used for calls to listJobTriggers. */ public PagedCallSettings.Builder< ListJobTriggersRequest, ListJobTriggersResponse, ListJobTriggersPagedResponse> @@ -527,6 +559,12 @@ public UnaryCallSettings.Builder deleteJobTrigge return getStubSettingsBuilder().deleteJobTriggerSettings(); } + /** Returns the builder for the settings used for calls to hybridInspectJobTrigger. */ + public UnaryCallSettings.Builder + hybridInspectJobTriggerSettings() { + return getStubSettingsBuilder().hybridInspectJobTriggerSettings(); + } + /** Returns the builder for the settings used for calls to updateJobTrigger. */ public UnaryCallSettings.Builder updateJobTriggerSettings() { diff --git a/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/stub/DlpServiceStub.java b/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/stub/DlpServiceStub.java index 730d23a2..5726a54c 100644 --- a/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/stub/DlpServiceStub.java +++ b/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/stub/DlpServiceStub.java @@ -39,11 +39,15 @@ import com.google.privacy.dlp.v2.DeleteJobTriggerRequest; import com.google.privacy.dlp.v2.DeleteStoredInfoTypeRequest; import com.google.privacy.dlp.v2.DlpJob; +import com.google.privacy.dlp.v2.FinishDlpJobRequest; import com.google.privacy.dlp.v2.GetDeidentifyTemplateRequest; import com.google.privacy.dlp.v2.GetDlpJobRequest; import com.google.privacy.dlp.v2.GetInspectTemplateRequest; import com.google.privacy.dlp.v2.GetJobTriggerRequest; import com.google.privacy.dlp.v2.GetStoredInfoTypeRequest; +import com.google.privacy.dlp.v2.HybridInspectDlpJobRequest; +import com.google.privacy.dlp.v2.HybridInspectJobTriggerRequest; +import com.google.privacy.dlp.v2.HybridInspectResponse; import com.google.privacy.dlp.v2.InspectContentRequest; import com.google.privacy.dlp.v2.InspectContentResponse; import com.google.privacy.dlp.v2.InspectTemplate; @@ -186,6 +190,15 @@ public UnaryCallable cancelDlpJobCallable() { throw new UnsupportedOperationException("Not implemented: cancelDlpJobCallable()"); } + public UnaryCallable finishDlpJobCallable() { + throw new UnsupportedOperationException("Not implemented: finishDlpJobCallable()"); + } + + public UnaryCallable + hybridInspectDlpJobCallable() { + throw new UnsupportedOperationException("Not implemented: hybridInspectDlpJobCallable()"); + } + public UnaryCallable listJobTriggersPagedCallable() { throw new UnsupportedOperationException("Not implemented: listJobTriggersPagedCallable()"); @@ -203,6 +216,11 @@ public UnaryCallable deleteJobTriggerCallable() throw new UnsupportedOperationException("Not implemented: deleteJobTriggerCallable()"); } + public UnaryCallable + hybridInspectJobTriggerCallable() { + throw new UnsupportedOperationException("Not implemented: hybridInspectJobTriggerCallable()"); + } + public UnaryCallable updateJobTriggerCallable() { throw new UnsupportedOperationException("Not implemented: updateJobTriggerCallable()"); } diff --git a/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/stub/DlpServiceStubSettings.java b/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/stub/DlpServiceStubSettings.java index d920e15a..2176d619 100644 --- a/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/stub/DlpServiceStubSettings.java +++ b/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/stub/DlpServiceStubSettings.java @@ -62,11 +62,15 @@ import com.google.privacy.dlp.v2.DeleteJobTriggerRequest; import com.google.privacy.dlp.v2.DeleteStoredInfoTypeRequest; import com.google.privacy.dlp.v2.DlpJob; +import com.google.privacy.dlp.v2.FinishDlpJobRequest; import com.google.privacy.dlp.v2.GetDeidentifyTemplateRequest; import com.google.privacy.dlp.v2.GetDlpJobRequest; import com.google.privacy.dlp.v2.GetInspectTemplateRequest; import com.google.privacy.dlp.v2.GetJobTriggerRequest; import com.google.privacy.dlp.v2.GetStoredInfoTypeRequest; +import com.google.privacy.dlp.v2.HybridInspectDlpJobRequest; +import com.google.privacy.dlp.v2.HybridInspectJobTriggerRequest; +import com.google.privacy.dlp.v2.HybridInspectResponse; import com.google.privacy.dlp.v2.InspectContentRequest; import com.google.privacy.dlp.v2.InspectContentResponse; import com.google.privacy.dlp.v2.InspectTemplate; @@ -177,11 +181,16 @@ public class DlpServiceStubSettings extends StubSettings private final UnaryCallSettings getDlpJobSettings; private final UnaryCallSettings deleteDlpJobSettings; private final UnaryCallSettings cancelDlpJobSettings; + private final UnaryCallSettings finishDlpJobSettings; + private final UnaryCallSettings + hybridInspectDlpJobSettings; private final PagedCallSettings< ListJobTriggersRequest, ListJobTriggersResponse, ListJobTriggersPagedResponse> listJobTriggersSettings; private final UnaryCallSettings getJobTriggerSettings; private final UnaryCallSettings deleteJobTriggerSettings; + private final UnaryCallSettings + hybridInspectJobTriggerSettings; private final UnaryCallSettings updateJobTriggerSettings; private final UnaryCallSettings createJobTriggerSettings; private final UnaryCallSettings @@ -313,6 +322,17 @@ public UnaryCallSettings cancelDlpJobSettings() { return cancelDlpJobSettings; } + /** Returns the object with the settings used for calls to finishDlpJob. */ + public UnaryCallSettings finishDlpJobSettings() { + return finishDlpJobSettings; + } + + /** Returns the object with the settings used for calls to hybridInspectDlpJob. */ + public UnaryCallSettings + hybridInspectDlpJobSettings() { + return hybridInspectDlpJobSettings; + } + /** Returns the object with the settings used for calls to listJobTriggers. */ public PagedCallSettings< ListJobTriggersRequest, ListJobTriggersResponse, ListJobTriggersPagedResponse> @@ -330,6 +350,12 @@ public UnaryCallSettings deleteJobTriggerSetting return deleteJobTriggerSettings; } + /** Returns the object with the settings used for calls to hybridInspectJobTrigger. */ + public UnaryCallSettings + hybridInspectJobTriggerSettings() { + return hybridInspectJobTriggerSettings; + } + /** Returns the object with the settings used for calls to updateJobTrigger. */ public UnaryCallSettings updateJobTriggerSettings() { return updateJobTriggerSettings; @@ -458,9 +484,12 @@ protected DlpServiceStubSettings(Builder settingsBuilder) throws IOException { getDlpJobSettings = settingsBuilder.getDlpJobSettings().build(); deleteDlpJobSettings = settingsBuilder.deleteDlpJobSettings().build(); cancelDlpJobSettings = settingsBuilder.cancelDlpJobSettings().build(); + finishDlpJobSettings = settingsBuilder.finishDlpJobSettings().build(); + hybridInspectDlpJobSettings = settingsBuilder.hybridInspectDlpJobSettings().build(); listJobTriggersSettings = settingsBuilder.listJobTriggersSettings().build(); getJobTriggerSettings = settingsBuilder.getJobTriggerSettings().build(); deleteJobTriggerSettings = settingsBuilder.deleteJobTriggerSettings().build(); + hybridInspectJobTriggerSettings = settingsBuilder.hybridInspectJobTriggerSettings().build(); updateJobTriggerSettings = settingsBuilder.updateJobTriggerSettings().build(); createJobTriggerSettings = settingsBuilder.createJobTriggerSettings().build(); createStoredInfoTypeSettings = settingsBuilder.createStoredInfoTypeSettings().build(); @@ -824,12 +853,17 @@ public static class Builder extends StubSettings.Builder getDlpJobSettings; private final UnaryCallSettings.Builder deleteDlpJobSettings; private final UnaryCallSettings.Builder cancelDlpJobSettings; + private final UnaryCallSettings.Builder finishDlpJobSettings; + private final UnaryCallSettings.Builder + hybridInspectDlpJobSettings; private final PagedCallSettings.Builder< ListJobTriggersRequest, ListJobTriggersResponse, ListJobTriggersPagedResponse> listJobTriggersSettings; private final UnaryCallSettings.Builder getJobTriggerSettings; private final UnaryCallSettings.Builder deleteJobTriggerSettings; + private final UnaryCallSettings.Builder + hybridInspectJobTriggerSettings; private final UnaryCallSettings.Builder updateJobTriggerSettings; private final UnaryCallSettings.Builder @@ -931,12 +965,18 @@ protected Builder(ClientContext clientContext) { cancelDlpJobSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + finishDlpJobSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + hybridInspectDlpJobSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listJobTriggersSettings = PagedCallSettings.newBuilder(LIST_JOB_TRIGGERS_PAGE_STR_FACT); getJobTriggerSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); deleteJobTriggerSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + hybridInspectJobTriggerSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateJobTriggerSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); createJobTriggerSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); @@ -974,9 +1014,12 @@ protected Builder(ClientContext clientContext) { getDlpJobSettings, deleteDlpJobSettings, cancelDlpJobSettings, + finishDlpJobSettings, + hybridInspectDlpJobSettings, listJobTriggersSettings, getJobTriggerSettings, deleteJobTriggerSettings, + hybridInspectJobTriggerSettings, updateJobTriggerSettings, createJobTriggerSettings, createStoredInfoTypeSettings, @@ -1099,6 +1142,16 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + builder + .finishDlpJobSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + + builder + .hybridInspectDlpJobSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + builder .listJobTriggersSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) @@ -1114,6 +1167,11 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + builder + .hybridInspectJobTriggerSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + builder .updateJobTriggerSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) @@ -1175,9 +1233,12 @@ protected Builder(DlpServiceStubSettings settings) { getDlpJobSettings = settings.getDlpJobSettings.toBuilder(); deleteDlpJobSettings = settings.deleteDlpJobSettings.toBuilder(); cancelDlpJobSettings = settings.cancelDlpJobSettings.toBuilder(); + finishDlpJobSettings = settings.finishDlpJobSettings.toBuilder(); + hybridInspectDlpJobSettings = settings.hybridInspectDlpJobSettings.toBuilder(); listJobTriggersSettings = settings.listJobTriggersSettings.toBuilder(); getJobTriggerSettings = settings.getJobTriggerSettings.toBuilder(); deleteJobTriggerSettings = settings.deleteJobTriggerSettings.toBuilder(); + hybridInspectJobTriggerSettings = settings.hybridInspectJobTriggerSettings.toBuilder(); updateJobTriggerSettings = settings.updateJobTriggerSettings.toBuilder(); createJobTriggerSettings = settings.createJobTriggerSettings.toBuilder(); createStoredInfoTypeSettings = settings.createStoredInfoTypeSettings.toBuilder(); @@ -1208,9 +1269,12 @@ protected Builder(DlpServiceStubSettings settings) { getDlpJobSettings, deleteDlpJobSettings, cancelDlpJobSettings, + finishDlpJobSettings, + hybridInspectDlpJobSettings, listJobTriggersSettings, getJobTriggerSettings, deleteJobTriggerSettings, + hybridInspectJobTriggerSettings, updateJobTriggerSettings, createJobTriggerSettings, createStoredInfoTypeSettings, @@ -1359,6 +1423,17 @@ public UnaryCallSettings.Builder cancelDlpJobSetting return cancelDlpJobSettings; } + /** Returns the builder for the settings used for calls to finishDlpJob. */ + public UnaryCallSettings.Builder finishDlpJobSettings() { + return finishDlpJobSettings; + } + + /** Returns the builder for the settings used for calls to hybridInspectDlpJob. */ + public UnaryCallSettings.Builder + hybridInspectDlpJobSettings() { + return hybridInspectDlpJobSettings; + } + /** Returns the builder for the settings used for calls to listJobTriggers. */ public PagedCallSettings.Builder< ListJobTriggersRequest, ListJobTriggersResponse, ListJobTriggersPagedResponse> @@ -1376,6 +1451,12 @@ public UnaryCallSettings.Builder deleteJobTrigge return deleteJobTriggerSettings; } + /** Returns the builder for the settings used for calls to hybridInspectJobTrigger. */ + public UnaryCallSettings.Builder + hybridInspectJobTriggerSettings() { + return hybridInspectJobTriggerSettings; + } + /** Returns the builder for the settings used for calls to updateJobTrigger. */ public UnaryCallSettings.Builder updateJobTriggerSettings() { diff --git a/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/stub/GrpcDlpServiceStub.java b/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/stub/GrpcDlpServiceStub.java index 749dee19..8b6c49a0 100644 --- a/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/stub/GrpcDlpServiceStub.java +++ b/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/stub/GrpcDlpServiceStub.java @@ -45,11 +45,15 @@ import com.google.privacy.dlp.v2.DeleteJobTriggerRequest; import com.google.privacy.dlp.v2.DeleteStoredInfoTypeRequest; import com.google.privacy.dlp.v2.DlpJob; +import com.google.privacy.dlp.v2.FinishDlpJobRequest; import com.google.privacy.dlp.v2.GetDeidentifyTemplateRequest; import com.google.privacy.dlp.v2.GetDlpJobRequest; import com.google.privacy.dlp.v2.GetInspectTemplateRequest; import com.google.privacy.dlp.v2.GetJobTriggerRequest; import com.google.privacy.dlp.v2.GetStoredInfoTypeRequest; +import com.google.privacy.dlp.v2.HybridInspectDlpJobRequest; +import com.google.privacy.dlp.v2.HybridInspectJobTriggerRequest; +import com.google.privacy.dlp.v2.HybridInspectResponse; import com.google.privacy.dlp.v2.InspectContentRequest; import com.google.privacy.dlp.v2.InspectContentResponse; import com.google.privacy.dlp.v2.InspectTemplate; @@ -273,6 +277,23 @@ public class GrpcDlpServiceStub extends DlpServiceStub { .setRequestMarshaller(ProtoUtils.marshaller(CancelDlpJobRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) .build(); + private static final MethodDescriptor finishDlpJobMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.privacy.dlp.v2.DlpService/FinishDlpJob") + .setRequestMarshaller(ProtoUtils.marshaller(FinishDlpJobRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .build(); + private static final MethodDescriptor + hybridInspectDlpJobMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.privacy.dlp.v2.DlpService/HybridInspectDlpJob") + .setRequestMarshaller( + ProtoUtils.marshaller(HybridInspectDlpJobRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(HybridInspectResponse.getDefaultInstance())) + .build(); private static final MethodDescriptor listJobTriggersMethodDescriptor = MethodDescriptor.newBuilder() @@ -301,6 +322,16 @@ public class GrpcDlpServiceStub extends DlpServiceStub { ProtoUtils.marshaller(DeleteJobTriggerRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) .build(); + private static final MethodDescriptor + hybridInspectJobTriggerMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.privacy.dlp.v2.DlpService/HybridInspectJobTrigger") + .setRequestMarshaller( + ProtoUtils.marshaller(HybridInspectJobTriggerRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(HybridInspectResponse.getDefaultInstance())) + .build(); private static final MethodDescriptor updateJobTriggerMethodDescriptor = MethodDescriptor.newBuilder() @@ -405,12 +436,17 @@ public class GrpcDlpServiceStub extends DlpServiceStub { private final UnaryCallable getDlpJobCallable; private final UnaryCallable deleteDlpJobCallable; private final UnaryCallable cancelDlpJobCallable; + private final UnaryCallable finishDlpJobCallable; + private final UnaryCallable + hybridInspectDlpJobCallable; private final UnaryCallable listJobTriggersCallable; private final UnaryCallable listJobTriggersPagedCallable; private final UnaryCallable getJobTriggerCallable; private final UnaryCallable deleteJobTriggerCallable; + private final UnaryCallable + hybridInspectJobTriggerCallable; private final UnaryCallable updateJobTriggerCallable; private final UnaryCallable createJobTriggerCallable; private final UnaryCallable @@ -736,6 +772,33 @@ public Map extract(CancelDlpJobRequest request) { } }) .build(); + GrpcCallSettings finishDlpJobTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(finishDlpJobMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(FinishDlpJobRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + } + }) + .build(); + GrpcCallSettings + hybridInspectDlpJobTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(hybridInspectDlpJobMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(HybridInspectDlpJobRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + } + }) + .build(); GrpcCallSettings listJobTriggersTransportSettings = GrpcCallSettings.newBuilder() @@ -776,6 +839,20 @@ public Map extract(DeleteJobTriggerRequest request) { } }) .build(); + GrpcCallSettings + hybridInspectJobTriggerTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(hybridInspectJobTriggerMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(HybridInspectJobTriggerRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + } + }) + .build(); GrpcCallSettings updateJobTriggerTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(updateJobTriggerMethodDescriptor) @@ -968,6 +1045,14 @@ public Map extract(DeleteStoredInfoTypeRequest request) { this.cancelDlpJobCallable = callableFactory.createUnaryCallable( cancelDlpJobTransportSettings, settings.cancelDlpJobSettings(), clientContext); + this.finishDlpJobCallable = + callableFactory.createUnaryCallable( + finishDlpJobTransportSettings, settings.finishDlpJobSettings(), clientContext); + this.hybridInspectDlpJobCallable = + callableFactory.createUnaryCallable( + hybridInspectDlpJobTransportSettings, + settings.hybridInspectDlpJobSettings(), + clientContext); this.listJobTriggersCallable = callableFactory.createUnaryCallable( listJobTriggersTransportSettings, settings.listJobTriggersSettings(), clientContext); @@ -980,6 +1065,11 @@ public Map extract(DeleteStoredInfoTypeRequest request) { this.deleteJobTriggerCallable = callableFactory.createUnaryCallable( deleteJobTriggerTransportSettings, settings.deleteJobTriggerSettings(), clientContext); + this.hybridInspectJobTriggerCallable = + callableFactory.createUnaryCallable( + hybridInspectJobTriggerTransportSettings, + settings.hybridInspectJobTriggerSettings(), + clientContext); this.updateJobTriggerCallable = callableFactory.createUnaryCallable( updateJobTriggerTransportSettings, settings.updateJobTriggerSettings(), clientContext); @@ -1123,6 +1213,15 @@ public UnaryCallable cancelDlpJobCallable() { return cancelDlpJobCallable; } + public UnaryCallable finishDlpJobCallable() { + return finishDlpJobCallable; + } + + public UnaryCallable + hybridInspectDlpJobCallable() { + return hybridInspectDlpJobCallable; + } + public UnaryCallable listJobTriggersPagedCallable() { return listJobTriggersPagedCallable; @@ -1140,6 +1239,11 @@ public UnaryCallable deleteJobTriggerCallable() return deleteJobTriggerCallable; } + public UnaryCallable + hybridInspectJobTriggerCallable() { + return hybridInspectJobTriggerCallable; + } + public UnaryCallable updateJobTriggerCallable() { return updateJobTriggerCallable; } diff --git a/google-cloud-dlp/src/test/java/com/google/cloud/dlp/v2/DlpServiceClientTest.java b/google-cloud-dlp/src/test/java/com/google/cloud/dlp/v2/DlpServiceClientTest.java index 7c809b69..38f6f77c 100644 --- a/google-cloud-dlp/src/test/java/com/google/cloud/dlp/v2/DlpServiceClientTest.java +++ b/google-cloud-dlp/src/test/java/com/google/cloud/dlp/v2/DlpServiceClientTest.java @@ -47,11 +47,15 @@ import com.google.privacy.dlp.v2.DeleteStoredInfoTypeRequest; import com.google.privacy.dlp.v2.DlpJob; import com.google.privacy.dlp.v2.DlpJobName; +import com.google.privacy.dlp.v2.FinishDlpJobRequest; import com.google.privacy.dlp.v2.GetDeidentifyTemplateRequest; import com.google.privacy.dlp.v2.GetDlpJobRequest; import com.google.privacy.dlp.v2.GetInspectTemplateRequest; import com.google.privacy.dlp.v2.GetJobTriggerRequest; import com.google.privacy.dlp.v2.GetStoredInfoTypeRequest; +import com.google.privacy.dlp.v2.HybridInspectDlpJobRequest; +import com.google.privacy.dlp.v2.HybridInspectJobTriggerRequest; +import com.google.privacy.dlp.v2.HybridInspectResponse; import com.google.privacy.dlp.v2.InspectContentRequest; import com.google.privacy.dlp.v2.InspectContentResponse; import com.google.privacy.dlp.v2.InspectTemplate; @@ -1069,6 +1073,88 @@ public void cancelDlpJobExceptionTest() throws Exception { } } + @Test + @SuppressWarnings("all") + public void finishDlpJobTest() { + Empty expectedResponse = Empty.newBuilder().build(); + mockDlpService.addResponse(expectedResponse); + + DlpJobName name = DlpJobName.of("[PROJECT]", "[DLP_JOB]"); + FinishDlpJobRequest request = FinishDlpJobRequest.newBuilder().setName(name.toString()).build(); + + client.finishDlpJob(request); + + List actualRequests = mockDlpService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + FinishDlpJobRequest actualRequest = (FinishDlpJobRequest) actualRequests.get(0); + + Assert.assertEquals(name, DlpJobName.parse(actualRequest.getName())); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void finishDlpJobExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockDlpService.addException(exception); + + try { + DlpJobName name = DlpJobName.of("[PROJECT]", "[DLP_JOB]"); + FinishDlpJobRequest request = + FinishDlpJobRequest.newBuilder().setName(name.toString()).build(); + + client.finishDlpJob(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void hybridInspectDlpJobTest() { + HybridInspectResponse expectedResponse = HybridInspectResponse.newBuilder().build(); + mockDlpService.addResponse(expectedResponse); + + String name = "name3373707"; + HybridInspectDlpJobRequest request = + HybridInspectDlpJobRequest.newBuilder().setName(name).build(); + + HybridInspectResponse actualResponse = client.hybridInspectDlpJob(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDlpService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + HybridInspectDlpJobRequest actualRequest = (HybridInspectDlpJobRequest) actualRequests.get(0); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void hybridInspectDlpJobExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockDlpService.addException(exception); + + try { + String name = "name3373707"; + HybridInspectDlpJobRequest request = + HybridInspectDlpJobRequest.newBuilder().setName(name).build(); + + client.hybridInspectDlpJob(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + @Test @SuppressWarnings("all") public void listJobTriggersTest() { @@ -1212,6 +1298,49 @@ public void deleteJobTriggerExceptionTest() throws Exception { } } + @Test + @SuppressWarnings("all") + public void hybridInspectJobTriggerTest() { + HybridInspectResponse expectedResponse = HybridInspectResponse.newBuilder().build(); + mockDlpService.addResponse(expectedResponse); + + String name = "name3373707"; + HybridInspectJobTriggerRequest request = + HybridInspectJobTriggerRequest.newBuilder().setName(name).build(); + + HybridInspectResponse actualResponse = client.hybridInspectJobTrigger(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDlpService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + HybridInspectJobTriggerRequest actualRequest = + (HybridInspectJobTriggerRequest) actualRequests.get(0); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void hybridInspectJobTriggerExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockDlpService.addException(exception); + + try { + String name = "name3373707"; + HybridInspectJobTriggerRequest request = + HybridInspectJobTriggerRequest.newBuilder().setName(name).build(); + + client.hybridInspectJobTrigger(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + @Test @SuppressWarnings("all") public void updateJobTriggerTest() { diff --git a/google-cloud-dlp/src/test/java/com/google/cloud/dlp/v2/MockDlpServiceImpl.java b/google-cloud-dlp/src/test/java/com/google/cloud/dlp/v2/MockDlpServiceImpl.java index 029acd07..30df799c 100644 --- a/google-cloud-dlp/src/test/java/com/google/cloud/dlp/v2/MockDlpServiceImpl.java +++ b/google-cloud-dlp/src/test/java/com/google/cloud/dlp/v2/MockDlpServiceImpl.java @@ -32,11 +32,15 @@ import com.google.privacy.dlp.v2.DeleteStoredInfoTypeRequest; import com.google.privacy.dlp.v2.DlpJob; import com.google.privacy.dlp.v2.DlpServiceGrpc.DlpServiceImplBase; +import com.google.privacy.dlp.v2.FinishDlpJobRequest; import com.google.privacy.dlp.v2.GetDeidentifyTemplateRequest; import com.google.privacy.dlp.v2.GetDlpJobRequest; import com.google.privacy.dlp.v2.GetInspectTemplateRequest; import com.google.privacy.dlp.v2.GetJobTriggerRequest; import com.google.privacy.dlp.v2.GetStoredInfoTypeRequest; +import com.google.privacy.dlp.v2.HybridInspectDlpJobRequest; +import com.google.privacy.dlp.v2.HybridInspectJobTriggerRequest; +import com.google.privacy.dlp.v2.HybridInspectResponse; import com.google.privacy.dlp.v2.InspectContentRequest; import com.google.privacy.dlp.v2.InspectContentResponse; import com.google.privacy.dlp.v2.InspectTemplate; @@ -363,6 +367,22 @@ public void updateJobTrigger( } } + @Override + public void hybridInspectJobTrigger( + HybridInspectJobTriggerRequest request, + StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof HybridInspectResponse) { + requests.add(request); + responseObserver.onNext((HybridInspectResponse) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } + @Override public void getJobTrigger( GetJobTriggerRequest request, StreamObserver responseObserver) { @@ -554,4 +574,33 @@ public void deleteStoredInfoType( responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); } } + + @Override + public void hybridInspectDlpJob( + HybridInspectDlpJobRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof HybridInspectResponse) { + requests.add(request); + responseObserver.onNext((HybridInspectResponse) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } + + @Override + public void finishDlpJob(FinishDlpJobRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof Empty) { + requests.add(request); + responseObserver.onNext((Empty) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } } 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 c3cef0c4..4658c185 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 @@ -1023,6 +1023,66 @@ private DlpServiceGrpc() {} return getUpdateJobTriggerMethod; } + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getHybridInspectJobTriggerMethod()} instead. + public static final io.grpc.MethodDescriptor< + com.google.privacy.dlp.v2.HybridInspectJobTriggerRequest, + com.google.privacy.dlp.v2.HybridInspectResponse> + METHOD_HYBRID_INSPECT_JOB_TRIGGER = getHybridInspectJobTriggerMethodHelper(); + + private static volatile io.grpc.MethodDescriptor< + com.google.privacy.dlp.v2.HybridInspectJobTriggerRequest, + com.google.privacy.dlp.v2.HybridInspectResponse> + getHybridInspectJobTriggerMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor< + com.google.privacy.dlp.v2.HybridInspectJobTriggerRequest, + com.google.privacy.dlp.v2.HybridInspectResponse> + getHybridInspectJobTriggerMethod() { + return getHybridInspectJobTriggerMethodHelper(); + } + + private static io.grpc.MethodDescriptor< + com.google.privacy.dlp.v2.HybridInspectJobTriggerRequest, + com.google.privacy.dlp.v2.HybridInspectResponse> + getHybridInspectJobTriggerMethodHelper() { + io.grpc.MethodDescriptor< + com.google.privacy.dlp.v2.HybridInspectJobTriggerRequest, + com.google.privacy.dlp.v2.HybridInspectResponse> + getHybridInspectJobTriggerMethod; + if ((getHybridInspectJobTriggerMethod = DlpServiceGrpc.getHybridInspectJobTriggerMethod) + == null) { + synchronized (DlpServiceGrpc.class) { + if ((getHybridInspectJobTriggerMethod = DlpServiceGrpc.getHybridInspectJobTriggerMethod) + == null) { + DlpServiceGrpc.getHybridInspectJobTriggerMethod = + getHybridInspectJobTriggerMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + "google.privacy.dlp.v2.DlpService", "HybridInspectJobTrigger")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.privacy.dlp.v2.HybridInspectJobTriggerRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.privacy.dlp.v2.HybridInspectResponse.getDefaultInstance())) + .setSchemaDescriptor( + new DlpServiceMethodDescriptorSupplier("HybridInspectJobTrigger")) + .build(); + } + } + } + return getHybridInspectJobTriggerMethod; + } + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") @java.lang.Deprecated // Use {@link #getGetJobTriggerMethod()} instead. public static final io.grpc.MethodDescriptor< @@ -1784,6 +1844,114 @@ private DlpServiceGrpc() {} return getDeleteStoredInfoTypeMethod; } + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getHybridInspectDlpJobMethod()} instead. + public static final io.grpc.MethodDescriptor< + com.google.privacy.dlp.v2.HybridInspectDlpJobRequest, + com.google.privacy.dlp.v2.HybridInspectResponse> + METHOD_HYBRID_INSPECT_DLP_JOB = getHybridInspectDlpJobMethodHelper(); + + private static volatile io.grpc.MethodDescriptor< + com.google.privacy.dlp.v2.HybridInspectDlpJobRequest, + com.google.privacy.dlp.v2.HybridInspectResponse> + getHybridInspectDlpJobMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor< + com.google.privacy.dlp.v2.HybridInspectDlpJobRequest, + com.google.privacy.dlp.v2.HybridInspectResponse> + getHybridInspectDlpJobMethod() { + return getHybridInspectDlpJobMethodHelper(); + } + + private static io.grpc.MethodDescriptor< + com.google.privacy.dlp.v2.HybridInspectDlpJobRequest, + com.google.privacy.dlp.v2.HybridInspectResponse> + getHybridInspectDlpJobMethodHelper() { + io.grpc.MethodDescriptor< + com.google.privacy.dlp.v2.HybridInspectDlpJobRequest, + com.google.privacy.dlp.v2.HybridInspectResponse> + getHybridInspectDlpJobMethod; + if ((getHybridInspectDlpJobMethod = DlpServiceGrpc.getHybridInspectDlpJobMethod) == null) { + synchronized (DlpServiceGrpc.class) { + if ((getHybridInspectDlpJobMethod = DlpServiceGrpc.getHybridInspectDlpJobMethod) == null) { + DlpServiceGrpc.getHybridInspectDlpJobMethod = + getHybridInspectDlpJobMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + "google.privacy.dlp.v2.DlpService", "HybridInspectDlpJob")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.privacy.dlp.v2.HybridInspectDlpJobRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.privacy.dlp.v2.HybridInspectResponse.getDefaultInstance())) + .setSchemaDescriptor( + new DlpServiceMethodDescriptorSupplier("HybridInspectDlpJob")) + .build(); + } + } + } + return getHybridInspectDlpJobMethod; + } + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getFinishDlpJobMethod()} instead. + public static final io.grpc.MethodDescriptor< + com.google.privacy.dlp.v2.FinishDlpJobRequest, com.google.protobuf.Empty> + METHOD_FINISH_DLP_JOB = getFinishDlpJobMethodHelper(); + + private static volatile io.grpc.MethodDescriptor< + com.google.privacy.dlp.v2.FinishDlpJobRequest, com.google.protobuf.Empty> + getFinishDlpJobMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor< + com.google.privacy.dlp.v2.FinishDlpJobRequest, com.google.protobuf.Empty> + getFinishDlpJobMethod() { + return getFinishDlpJobMethodHelper(); + } + + private static io.grpc.MethodDescriptor< + com.google.privacy.dlp.v2.FinishDlpJobRequest, com.google.protobuf.Empty> + getFinishDlpJobMethodHelper() { + io.grpc.MethodDescriptor< + com.google.privacy.dlp.v2.FinishDlpJobRequest, com.google.protobuf.Empty> + getFinishDlpJobMethod; + if ((getFinishDlpJobMethod = DlpServiceGrpc.getFinishDlpJobMethod) == null) { + synchronized (DlpServiceGrpc.class) { + if ((getFinishDlpJobMethod = DlpServiceGrpc.getFinishDlpJobMethod) == null) { + DlpServiceGrpc.getFinishDlpJobMethod = + getFinishDlpJobMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + "google.privacy.dlp.v2.DlpService", "FinishDlpJob")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.privacy.dlp.v2.FinishDlpJobRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new DlpServiceMethodDescriptorSupplier("FinishDlpJob")) + .build(); + } + } + } + return getFinishDlpJobMethod; + } + /** Creates a new async stub that supports all call types for the service */ public static DlpServiceStub newStub(io.grpc.Channel channel) { return new DlpServiceStub(channel); @@ -2091,6 +2259,25 @@ public void updateJobTrigger( asyncUnimplementedUnaryCall(getUpdateJobTriggerMethodHelper(), responseObserver); } + /** + * + * + *
+     * Inspect hybrid content and store findings to a trigger. The inspection
+     * will be processed asynchronously. To review the findings monitor the
+     * jobs within the trigger.
+     * Early access feature is in a pre-release state and might change or have
+     * limited support. For more information, see
+     * https://cloud.google.com/products#product-launch-stages.
+     * 
+ */ + public void hybridInspectJobTrigger( + com.google.privacy.dlp.v2.HybridInspectJobTriggerRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + asyncUnimplementedUnaryCall(getHybridInspectJobTriggerMethodHelper(), responseObserver); + } + /** * * @@ -2308,6 +2495,42 @@ public void deleteStoredInfoType( asyncUnimplementedUnaryCall(getDeleteStoredInfoTypeMethodHelper(), responseObserver); } + /** + * + * + *
+     * Inspect hybrid content and store findings to a job.
+     * To review the findings inspect the job. Inspection will occur
+     * asynchronously.
+     * Early access feature is in a pre-release state and might change or have
+     * limited support. For more information, see
+     * https://cloud.google.com/products#product-launch-stages.
+     * 
+ */ + public void hybridInspectDlpJob( + com.google.privacy.dlp.v2.HybridInspectDlpJobRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + asyncUnimplementedUnaryCall(getHybridInspectDlpJobMethodHelper(), responseObserver); + } + + /** + * + * + *
+     * Finish a running hybrid DlpJob. Triggers the finalization steps and running
+     * of any enabled actions that have not yet run.
+     * Early access feature is in a pre-release state and might change or have
+     * limited support. For more information, see
+     * https://cloud.google.com/products#product-launch-stages.
+     * 
+ */ + public void finishDlpJob( + com.google.privacy.dlp.v2.FinishDlpJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getFinishDlpJobMethodHelper(), responseObserver); + } + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) @@ -2425,6 +2648,13 @@ public final io.grpc.ServerServiceDefinition bindService() { new MethodHandlers< com.google.privacy.dlp.v2.UpdateJobTriggerRequest, com.google.privacy.dlp.v2.JobTrigger>(this, METHODID_UPDATE_JOB_TRIGGER))) + .addMethod( + getHybridInspectJobTriggerMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.privacy.dlp.v2.HybridInspectJobTriggerRequest, + com.google.privacy.dlp.v2.HybridInspectResponse>( + this, METHODID_HYBRID_INSPECT_JOB_TRIGGER))) .addMethod( getGetJobTriggerMethodHelper(), asyncUnaryCall( @@ -2514,6 +2744,19 @@ public final io.grpc.ServerServiceDefinition bindService() { new MethodHandlers< com.google.privacy.dlp.v2.DeleteStoredInfoTypeRequest, com.google.protobuf.Empty>(this, METHODID_DELETE_STORED_INFO_TYPE))) + .addMethod( + getHybridInspectDlpJobMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.privacy.dlp.v2.HybridInspectDlpJobRequest, + com.google.privacy.dlp.v2.HybridInspectResponse>( + this, METHODID_HYBRID_INSPECT_DLP_JOB))) + .addMethod( + getFinishDlpJobMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.privacy.dlp.v2.FinishDlpJobRequest, com.google.protobuf.Empty>( + this, METHODID_FINISH_DLP_JOB))) .build(); } } @@ -2871,6 +3114,28 @@ public void updateJobTrigger( responseObserver); } + /** + * + * + *
+     * Inspect hybrid content and store findings to a trigger. The inspection
+     * will be processed asynchronously. To review the findings monitor the
+     * jobs within the trigger.
+     * Early access feature is in a pre-release state and might change or have
+     * limited support. For more information, see
+     * https://cloud.google.com/products#product-launch-stages.
+     * 
+ */ + public void hybridInspectJobTrigger( + com.google.privacy.dlp.v2.HybridInspectJobTriggerRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + asyncUnaryCall( + getChannel().newCall(getHybridInspectJobTriggerMethodHelper(), getCallOptions()), + request, + responseObserver); + } + /** * * @@ -3129,6 +3394,48 @@ public void deleteStoredInfoType( request, responseObserver); } + + /** + * + * + *
+     * Inspect hybrid content and store findings to a job.
+     * To review the findings inspect the job. Inspection will occur
+     * asynchronously.
+     * Early access feature is in a pre-release state and might change or have
+     * limited support. For more information, see
+     * https://cloud.google.com/products#product-launch-stages.
+     * 
+ */ + public void hybridInspectDlpJob( + com.google.privacy.dlp.v2.HybridInspectDlpJobRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + asyncUnaryCall( + getChannel().newCall(getHybridInspectDlpJobMethodHelper(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Finish a running hybrid DlpJob. Triggers the finalization steps and running
+     * of any enabled actions that have not yet run.
+     * Early access feature is in a pre-release state and might change or have
+     * limited support. For more information, see
+     * https://cloud.google.com/products#product-launch-stages.
+     * 
+ */ + public void finishDlpJob( + com.google.privacy.dlp.v2.FinishDlpJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getFinishDlpJobMethodHelper(), getCallOptions()), + request, + responseObserver); + } } /** @@ -3425,6 +3732,24 @@ public com.google.privacy.dlp.v2.JobTrigger updateJobTrigger( getChannel(), getUpdateJobTriggerMethodHelper(), getCallOptions(), request); } + /** + * + * + *
+     * Inspect hybrid content and store findings to a trigger. The inspection
+     * will be processed asynchronously. To review the findings monitor the
+     * jobs within the trigger.
+     * Early access feature is in a pre-release state and might change or have
+     * limited support. For more information, see
+     * https://cloud.google.com/products#product-launch-stages.
+     * 
+ */ + public com.google.privacy.dlp.v2.HybridInspectResponse hybridInspectJobTrigger( + com.google.privacy.dlp.v2.HybridInspectJobTriggerRequest request) { + return blockingUnaryCall( + getChannel(), getHybridInspectJobTriggerMethodHelper(), getCallOptions(), request); + } + /** * * @@ -3637,6 +3962,41 @@ public com.google.protobuf.Empty deleteStoredInfoType( return blockingUnaryCall( getChannel(), getDeleteStoredInfoTypeMethodHelper(), getCallOptions(), request); } + + /** + * + * + *
+     * Inspect hybrid content and store findings to a job.
+     * To review the findings inspect the job. Inspection will occur
+     * asynchronously.
+     * Early access feature is in a pre-release state and might change or have
+     * limited support. For more information, see
+     * https://cloud.google.com/products#product-launch-stages.
+     * 
+ */ + public com.google.privacy.dlp.v2.HybridInspectResponse hybridInspectDlpJob( + com.google.privacy.dlp.v2.HybridInspectDlpJobRequest request) { + return blockingUnaryCall( + getChannel(), getHybridInspectDlpJobMethodHelper(), getCallOptions(), request); + } + + /** + * + * + *
+     * Finish a running hybrid DlpJob. Triggers the finalization steps and running
+     * of any enabled actions that have not yet run.
+     * Early access feature is in a pre-release state and might change or have
+     * limited support. For more information, see
+     * https://cloud.google.com/products#product-launch-stages.
+     * 
+ */ + public com.google.protobuf.Empty finishDlpJob( + com.google.privacy.dlp.v2.FinishDlpJobRequest request) { + return blockingUnaryCall( + getChannel(), getFinishDlpJobMethodHelper(), getCallOptions(), request); + } } /** @@ -3952,6 +4312,26 @@ protected DlpServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOption getChannel().newCall(getUpdateJobTriggerMethodHelper(), getCallOptions()), request); } + /** + * + * + *
+     * Inspect hybrid content and store findings to a trigger. The inspection
+     * will be processed asynchronously. To review the findings monitor the
+     * jobs within the trigger.
+     * Early access feature is in a pre-release state and might change or have
+     * limited support. For more information, see
+     * https://cloud.google.com/products#product-launch-stages.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.privacy.dlp.v2.HybridInspectResponse> + hybridInspectJobTrigger(com.google.privacy.dlp.v2.HybridInspectJobTriggerRequest request) { + return futureUnaryCall( + getChannel().newCall(getHybridInspectJobTriggerMethodHelper(), getCallOptions()), + request); + } + /** * * @@ -4171,6 +4551,42 @@ protected DlpServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOption return futureUnaryCall( getChannel().newCall(getDeleteStoredInfoTypeMethodHelper(), getCallOptions()), request); } + + /** + * + * + *
+     * Inspect hybrid content and store findings to a job.
+     * To review the findings inspect the job. Inspection will occur
+     * asynchronously.
+     * Early access feature is in a pre-release state and might change or have
+     * limited support. For more information, see
+     * https://cloud.google.com/products#product-launch-stages.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.privacy.dlp.v2.HybridInspectResponse> + hybridInspectDlpJob(com.google.privacy.dlp.v2.HybridInspectDlpJobRequest request) { + return futureUnaryCall( + getChannel().newCall(getHybridInspectDlpJobMethodHelper(), getCallOptions()), request); + } + + /** + * + * + *
+     * Finish a running hybrid DlpJob. Triggers the finalization steps and running
+     * of any enabled actions that have not yet run.
+     * Early access feature is in a pre-release state and might change or have
+     * limited support. For more information, see
+     * https://cloud.google.com/products#product-launch-stages.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + finishDlpJob(com.google.privacy.dlp.v2.FinishDlpJobRequest request) { + return futureUnaryCall( + getChannel().newCall(getFinishDlpJobMethodHelper(), getCallOptions()), request); + } } private static final int METHODID_INSPECT_CONTENT = 0; @@ -4190,20 +4606,23 @@ protected DlpServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOption private static final int METHODID_DELETE_DEIDENTIFY_TEMPLATE = 14; private static final int METHODID_CREATE_JOB_TRIGGER = 15; private static final int METHODID_UPDATE_JOB_TRIGGER = 16; - private static final int METHODID_GET_JOB_TRIGGER = 17; - private static final int METHODID_LIST_JOB_TRIGGERS = 18; - private static final int METHODID_DELETE_JOB_TRIGGER = 19; - private static final int METHODID_ACTIVATE_JOB_TRIGGER = 20; - private static final int METHODID_CREATE_DLP_JOB = 21; - private static final int METHODID_LIST_DLP_JOBS = 22; - private static final int METHODID_GET_DLP_JOB = 23; - private static final int METHODID_DELETE_DLP_JOB = 24; - private static final int METHODID_CANCEL_DLP_JOB = 25; - private static final int METHODID_CREATE_STORED_INFO_TYPE = 26; - private static final int METHODID_UPDATE_STORED_INFO_TYPE = 27; - private static final int METHODID_GET_STORED_INFO_TYPE = 28; - private static final int METHODID_LIST_STORED_INFO_TYPES = 29; - private static final int METHODID_DELETE_STORED_INFO_TYPE = 30; + private static final int METHODID_HYBRID_INSPECT_JOB_TRIGGER = 17; + private static final int METHODID_GET_JOB_TRIGGER = 18; + private static final int METHODID_LIST_JOB_TRIGGERS = 19; + private static final int METHODID_DELETE_JOB_TRIGGER = 20; + private static final int METHODID_ACTIVATE_JOB_TRIGGER = 21; + private static final int METHODID_CREATE_DLP_JOB = 22; + private static final int METHODID_LIST_DLP_JOBS = 23; + private static final int METHODID_GET_DLP_JOB = 24; + private static final int METHODID_DELETE_DLP_JOB = 25; + private static final int METHODID_CANCEL_DLP_JOB = 26; + private static final int METHODID_CREATE_STORED_INFO_TYPE = 27; + private static final int METHODID_UPDATE_STORED_INFO_TYPE = 28; + private static final int METHODID_GET_STORED_INFO_TYPE = 29; + private static final int METHODID_LIST_STORED_INFO_TYPES = 30; + private static final int METHODID_DELETE_STORED_INFO_TYPE = 31; + private static final int METHODID_HYBRID_INSPECT_DLP_JOB = 32; + private static final int METHODID_FINISH_DLP_JOB = 33; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -4321,6 +4740,12 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (com.google.privacy.dlp.v2.UpdateJobTriggerRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_HYBRID_INSPECT_JOB_TRIGGER: + serviceImpl.hybridInspectJobTrigger( + (com.google.privacy.dlp.v2.HybridInspectJobTriggerRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; case METHODID_GET_JOB_TRIGGER: serviceImpl.getJobTrigger( (com.google.privacy.dlp.v2.GetJobTriggerRequest) request, @@ -4397,6 +4822,17 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (com.google.privacy.dlp.v2.DeleteStoredInfoTypeRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_HYBRID_INSPECT_DLP_JOB: + serviceImpl.hybridInspectDlpJob( + (com.google.privacy.dlp.v2.HybridInspectDlpJobRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_FINISH_DLP_JOB: + serviceImpl.finishDlpJob( + (com.google.privacy.dlp.v2.FinishDlpJobRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; default: throw new AssertionError(); } @@ -4478,6 +4914,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getDeleteDeidentifyTemplateMethodHelper()) .addMethod(getCreateJobTriggerMethodHelper()) .addMethod(getUpdateJobTriggerMethodHelper()) + .addMethod(getHybridInspectJobTriggerMethodHelper()) .addMethod(getGetJobTriggerMethodHelper()) .addMethod(getListJobTriggersMethodHelper()) .addMethod(getDeleteJobTriggerMethodHelper()) @@ -4492,6 +4929,8 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getGetStoredInfoTypeMethodHelper()) .addMethod(getListStoredInfoTypesMethodHelper()) .addMethod(getDeleteStoredInfoTypeMethodHelper()) + .addMethod(getHybridInspectDlpJobMethodHelper()) + .addMethod(getFinishDlpJobMethodHelper()) .build(); } } diff --git a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/BigQueryKey.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/BigQueryKey.java index 86e5f93c..ea42f2d1 100644 --- a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/BigQueryKey.java +++ b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/BigQueryKey.java @@ -174,8 +174,11 @@ public com.google.privacy.dlp.v2.BigQueryTableOrBuilder getTableReferenceOrBuild * * *
-   * Absolute number of the row from the beginning of the table at the time
-   * of scanning.
+   * Row number inferred at the time the table was scanned. This value is
+   * nondeterministic, cannot be queried, and may be null for inspection
+   * jobs. To locate findings within a table, specify
+   * `inspect_job.storage_config.big_query_options.identifying_fields` in
+   * `CreateDlpJobRequest`.
    * 
* * int64 row_number = 2; @@ -718,8 +721,11 @@ public com.google.privacy.dlp.v2.BigQueryTableOrBuilder getTableReferenceOrBuild * * *
-     * Absolute number of the row from the beginning of the table at the time
-     * of scanning.
+     * Row number inferred at the time the table was scanned. This value is
+     * nondeterministic, cannot be queried, and may be null for inspection
+     * jobs. To locate findings within a table, specify
+     * `inspect_job.storage_config.big_query_options.identifying_fields` in
+     * `CreateDlpJobRequest`.
      * 
* * int64 row_number = 2; @@ -733,8 +739,11 @@ public long getRowNumber() { * * *
-     * Absolute number of the row from the beginning of the table at the time
-     * of scanning.
+     * Row number inferred at the time the table was scanned. This value is
+     * nondeterministic, cannot be queried, and may be null for inspection
+     * jobs. To locate findings within a table, specify
+     * `inspect_job.storage_config.big_query_options.identifying_fields` in
+     * `CreateDlpJobRequest`.
      * 
* * int64 row_number = 2; @@ -752,8 +761,11 @@ public Builder setRowNumber(long value) { * * *
-     * Absolute number of the row from the beginning of the table at the time
-     * of scanning.
+     * Row number inferred at the time the table was scanned. This value is
+     * nondeterministic, cannot be queried, and may be null for inspection
+     * jobs. To locate findings within a table, specify
+     * `inspect_job.storage_config.big_query_options.identifying_fields` in
+     * `CreateDlpJobRequest`.
      * 
* * int64 row_number = 2; diff --git a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/BigQueryKeyOrBuilder.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/BigQueryKeyOrBuilder.java index 8baa62b9..3d0909dd 100644 --- a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/BigQueryKeyOrBuilder.java +++ b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/BigQueryKeyOrBuilder.java @@ -62,8 +62,11 @@ public interface BigQueryKeyOrBuilder * * *
-   * Absolute number of the row from the beginning of the table at the time
-   * of scanning.
+   * Row number inferred at the time the table was scanned. This value is
+   * nondeterministic, cannot be queried, and may be null for inspection
+   * jobs. To locate findings within a table, specify
+   * `inspect_job.storage_config.big_query_options.identifying_fields` in
+   * `CreateDlpJobRequest`.
    * 
* * int64 row_number = 2; diff --git a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/BigQueryOptions.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/BigQueryOptions.java index a442df3c..ced0422d 100644 --- a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/BigQueryOptions.java +++ b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/BigQueryOptions.java @@ -356,8 +356,11 @@ public com.google.privacy.dlp.v2.BigQueryTableOrBuilder getTableReferenceOrBuild * * *
-   * References to fields uniquely identifying rows within the table.
-   * Nested fields in the format, like `person.birthdate.year`, are allowed.
+   * Table fields that may uniquely identify a row within the table. When
+   * `actions.saveFindings.outputConfig.table` is specified, the values of
+   * columns specified here are available in the output table under
+   * `location.content_locations.record_location.record_key.id_values`. Nested
+   * fields such as `person.birthdate.year` are allowed.
    * 
* * repeated .google.privacy.dlp.v2.FieldId identifying_fields = 2; @@ -369,8 +372,11 @@ public java.util.List getIdentifyingFieldsLis * * *
-   * References to fields uniquely identifying rows within the table.
-   * Nested fields in the format, like `person.birthdate.year`, are allowed.
+   * Table fields that may uniquely identify a row within the table. When
+   * `actions.saveFindings.outputConfig.table` is specified, the values of
+   * columns specified here are available in the output table under
+   * `location.content_locations.record_location.record_key.id_values`. Nested
+   * fields such as `person.birthdate.year` are allowed.
    * 
* * repeated .google.privacy.dlp.v2.FieldId identifying_fields = 2; @@ -383,8 +389,11 @@ public java.util.List getIdentifyingFieldsLis * * *
-   * References to fields uniquely identifying rows within the table.
-   * Nested fields in the format, like `person.birthdate.year`, are allowed.
+   * Table fields that may uniquely identify a row within the table. When
+   * `actions.saveFindings.outputConfig.table` is specified, the values of
+   * columns specified here are available in the output table under
+   * `location.content_locations.record_location.record_key.id_values`. Nested
+   * fields such as `person.birthdate.year` are allowed.
    * 
* * repeated .google.privacy.dlp.v2.FieldId identifying_fields = 2; @@ -396,8 +405,11 @@ public int getIdentifyingFieldsCount() { * * *
-   * References to fields uniquely identifying rows within the table.
-   * Nested fields in the format, like `person.birthdate.year`, are allowed.
+   * Table fields that may uniquely identify a row within the table. When
+   * `actions.saveFindings.outputConfig.table` is specified, the values of
+   * columns specified here are available in the output table under
+   * `location.content_locations.record_location.record_key.id_values`. Nested
+   * fields such as `person.birthdate.year` are allowed.
    * 
* * repeated .google.privacy.dlp.v2.FieldId identifying_fields = 2; @@ -409,8 +421,11 @@ public com.google.privacy.dlp.v2.FieldId getIdentifyingFields(int index) { * * *
-   * References to fields uniquely identifying rows within the table.
-   * Nested fields in the format, like `person.birthdate.year`, are allowed.
+   * Table fields that may uniquely identify a row within the table. When
+   * `actions.saveFindings.outputConfig.table` is specified, the values of
+   * columns specified here are available in the output table under
+   * `location.content_locations.record_location.record_key.id_values`. Nested
+   * fields such as `person.birthdate.year` are allowed.
    * 
* * repeated .google.privacy.dlp.v2.FieldId identifying_fields = 2; @@ -1250,8 +1265,11 @@ private void ensureIdentifyingFieldsIsMutable() { * * *
-     * References to fields uniquely identifying rows within the table.
-     * Nested fields in the format, like `person.birthdate.year`, are allowed.
+     * Table fields that may uniquely identify a row within the table. When
+     * `actions.saveFindings.outputConfig.table` is specified, the values of
+     * columns specified here are available in the output table under
+     * `location.content_locations.record_location.record_key.id_values`. Nested
+     * fields such as `person.birthdate.year` are allowed.
      * 
* * repeated .google.privacy.dlp.v2.FieldId identifying_fields = 2; @@ -1267,8 +1285,11 @@ public java.util.List getIdentifyingFieldsLis * * *
-     * References to fields uniquely identifying rows within the table.
-     * Nested fields in the format, like `person.birthdate.year`, are allowed.
+     * Table fields that may uniquely identify a row within the table. When
+     * `actions.saveFindings.outputConfig.table` is specified, the values of
+     * columns specified here are available in the output table under
+     * `location.content_locations.record_location.record_key.id_values`. Nested
+     * fields such as `person.birthdate.year` are allowed.
      * 
* * repeated .google.privacy.dlp.v2.FieldId identifying_fields = 2; @@ -1284,8 +1305,11 @@ public int getIdentifyingFieldsCount() { * * *
-     * References to fields uniquely identifying rows within the table.
-     * Nested fields in the format, like `person.birthdate.year`, are allowed.
+     * Table fields that may uniquely identify a row within the table. When
+     * `actions.saveFindings.outputConfig.table` is specified, the values of
+     * columns specified here are available in the output table under
+     * `location.content_locations.record_location.record_key.id_values`. Nested
+     * fields such as `person.birthdate.year` are allowed.
      * 
* * repeated .google.privacy.dlp.v2.FieldId identifying_fields = 2; @@ -1301,8 +1325,11 @@ public com.google.privacy.dlp.v2.FieldId getIdentifyingFields(int index) { * * *
-     * References to fields uniquely identifying rows within the table.
-     * Nested fields in the format, like `person.birthdate.year`, are allowed.
+     * Table fields that may uniquely identify a row within the table. When
+     * `actions.saveFindings.outputConfig.table` is specified, the values of
+     * columns specified here are available in the output table under
+     * `location.content_locations.record_location.record_key.id_values`. Nested
+     * fields such as `person.birthdate.year` are allowed.
      * 
* * repeated .google.privacy.dlp.v2.FieldId identifying_fields = 2; @@ -1324,8 +1351,11 @@ public Builder setIdentifyingFields(int index, com.google.privacy.dlp.v2.FieldId * * *
-     * References to fields uniquely identifying rows within the table.
-     * Nested fields in the format, like `person.birthdate.year`, are allowed.
+     * Table fields that may uniquely identify a row within the table. When
+     * `actions.saveFindings.outputConfig.table` is specified, the values of
+     * columns specified here are available in the output table under
+     * `location.content_locations.record_location.record_key.id_values`. Nested
+     * fields such as `person.birthdate.year` are allowed.
      * 
* * repeated .google.privacy.dlp.v2.FieldId identifying_fields = 2; @@ -1345,8 +1375,11 @@ public Builder setIdentifyingFields( * * *
-     * References to fields uniquely identifying rows within the table.
-     * Nested fields in the format, like `person.birthdate.year`, are allowed.
+     * Table fields that may uniquely identify a row within the table. When
+     * `actions.saveFindings.outputConfig.table` is specified, the values of
+     * columns specified here are available in the output table under
+     * `location.content_locations.record_location.record_key.id_values`. Nested
+     * fields such as `person.birthdate.year` are allowed.
      * 
* * repeated .google.privacy.dlp.v2.FieldId identifying_fields = 2; @@ -1368,8 +1401,11 @@ public Builder addIdentifyingFields(com.google.privacy.dlp.v2.FieldId value) { * * *
-     * References to fields uniquely identifying rows within the table.
-     * Nested fields in the format, like `person.birthdate.year`, are allowed.
+     * Table fields that may uniquely identify a row within the table. When
+     * `actions.saveFindings.outputConfig.table` is specified, the values of
+     * columns specified here are available in the output table under
+     * `location.content_locations.record_location.record_key.id_values`. Nested
+     * fields such as `person.birthdate.year` are allowed.
      * 
* * repeated .google.privacy.dlp.v2.FieldId identifying_fields = 2; @@ -1391,8 +1427,11 @@ public Builder addIdentifyingFields(int index, com.google.privacy.dlp.v2.FieldId * * *
-     * References to fields uniquely identifying rows within the table.
-     * Nested fields in the format, like `person.birthdate.year`, are allowed.
+     * Table fields that may uniquely identify a row within the table. When
+     * `actions.saveFindings.outputConfig.table` is specified, the values of
+     * columns specified here are available in the output table under
+     * `location.content_locations.record_location.record_key.id_values`. Nested
+     * fields such as `person.birthdate.year` are allowed.
      * 
* * repeated .google.privacy.dlp.v2.FieldId identifying_fields = 2; @@ -1411,8 +1450,11 @@ public Builder addIdentifyingFields(com.google.privacy.dlp.v2.FieldId.Builder bu * * *
-     * References to fields uniquely identifying rows within the table.
-     * Nested fields in the format, like `person.birthdate.year`, are allowed.
+     * Table fields that may uniquely identify a row within the table. When
+     * `actions.saveFindings.outputConfig.table` is specified, the values of
+     * columns specified here are available in the output table under
+     * `location.content_locations.record_location.record_key.id_values`. Nested
+     * fields such as `person.birthdate.year` are allowed.
      * 
* * repeated .google.privacy.dlp.v2.FieldId identifying_fields = 2; @@ -1432,8 +1474,11 @@ public Builder addIdentifyingFields( * * *
-     * References to fields uniquely identifying rows within the table.
-     * Nested fields in the format, like `person.birthdate.year`, are allowed.
+     * Table fields that may uniquely identify a row within the table. When
+     * `actions.saveFindings.outputConfig.table` is specified, the values of
+     * columns specified here are available in the output table under
+     * `location.content_locations.record_location.record_key.id_values`. Nested
+     * fields such as `person.birthdate.year` are allowed.
      * 
* * repeated .google.privacy.dlp.v2.FieldId identifying_fields = 2; @@ -1453,8 +1498,11 @@ public Builder addAllIdentifyingFields( * * *
-     * References to fields uniquely identifying rows within the table.
-     * Nested fields in the format, like `person.birthdate.year`, are allowed.
+     * Table fields that may uniquely identify a row within the table. When
+     * `actions.saveFindings.outputConfig.table` is specified, the values of
+     * columns specified here are available in the output table under
+     * `location.content_locations.record_location.record_key.id_values`. Nested
+     * fields such as `person.birthdate.year` are allowed.
      * 
* * repeated .google.privacy.dlp.v2.FieldId identifying_fields = 2; @@ -1473,8 +1521,11 @@ public Builder clearIdentifyingFields() { * * *
-     * References to fields uniquely identifying rows within the table.
-     * Nested fields in the format, like `person.birthdate.year`, are allowed.
+     * Table fields that may uniquely identify a row within the table. When
+     * `actions.saveFindings.outputConfig.table` is specified, the values of
+     * columns specified here are available in the output table under
+     * `location.content_locations.record_location.record_key.id_values`. Nested
+     * fields such as `person.birthdate.year` are allowed.
      * 
* * repeated .google.privacy.dlp.v2.FieldId identifying_fields = 2; @@ -1493,8 +1544,11 @@ public Builder removeIdentifyingFields(int index) { * * *
-     * References to fields uniquely identifying rows within the table.
-     * Nested fields in the format, like `person.birthdate.year`, are allowed.
+     * Table fields that may uniquely identify a row within the table. When
+     * `actions.saveFindings.outputConfig.table` is specified, the values of
+     * columns specified here are available in the output table under
+     * `location.content_locations.record_location.record_key.id_values`. Nested
+     * fields such as `person.birthdate.year` are allowed.
      * 
* * repeated .google.privacy.dlp.v2.FieldId identifying_fields = 2; @@ -1506,8 +1560,11 @@ public com.google.privacy.dlp.v2.FieldId.Builder getIdentifyingFieldsBuilder(int * * *
-     * References to fields uniquely identifying rows within the table.
-     * Nested fields in the format, like `person.birthdate.year`, are allowed.
+     * Table fields that may uniquely identify a row within the table. When
+     * `actions.saveFindings.outputConfig.table` is specified, the values of
+     * columns specified here are available in the output table under
+     * `location.content_locations.record_location.record_key.id_values`. Nested
+     * fields such as `person.birthdate.year` are allowed.
      * 
* * repeated .google.privacy.dlp.v2.FieldId identifying_fields = 2; @@ -1523,8 +1580,11 @@ public com.google.privacy.dlp.v2.FieldIdOrBuilder getIdentifyingFieldsOrBuilder( * * *
-     * References to fields uniquely identifying rows within the table.
-     * Nested fields in the format, like `person.birthdate.year`, are allowed.
+     * Table fields that may uniquely identify a row within the table. When
+     * `actions.saveFindings.outputConfig.table` is specified, the values of
+     * columns specified here are available in the output table under
+     * `location.content_locations.record_location.record_key.id_values`. Nested
+     * fields such as `person.birthdate.year` are allowed.
      * 
* * repeated .google.privacy.dlp.v2.FieldId identifying_fields = 2; @@ -1541,8 +1601,11 @@ public com.google.privacy.dlp.v2.FieldIdOrBuilder getIdentifyingFieldsOrBuilder( * * *
-     * References to fields uniquely identifying rows within the table.
-     * Nested fields in the format, like `person.birthdate.year`, are allowed.
+     * Table fields that may uniquely identify a row within the table. When
+     * `actions.saveFindings.outputConfig.table` is specified, the values of
+     * columns specified here are available in the output table under
+     * `location.content_locations.record_location.record_key.id_values`. Nested
+     * fields such as `person.birthdate.year` are allowed.
      * 
* * repeated .google.privacy.dlp.v2.FieldId identifying_fields = 2; @@ -1555,8 +1618,11 @@ public com.google.privacy.dlp.v2.FieldId.Builder addIdentifyingFieldsBuilder() { * * *
-     * References to fields uniquely identifying rows within the table.
-     * Nested fields in the format, like `person.birthdate.year`, are allowed.
+     * Table fields that may uniquely identify a row within the table. When
+     * `actions.saveFindings.outputConfig.table` is specified, the values of
+     * columns specified here are available in the output table under
+     * `location.content_locations.record_location.record_key.id_values`. Nested
+     * fields such as `person.birthdate.year` are allowed.
      * 
* * repeated .google.privacy.dlp.v2.FieldId identifying_fields = 2; @@ -1569,8 +1635,11 @@ public com.google.privacy.dlp.v2.FieldId.Builder addIdentifyingFieldsBuilder(int * * *
-     * References to fields uniquely identifying rows within the table.
-     * Nested fields in the format, like `person.birthdate.year`, are allowed.
+     * Table fields that may uniquely identify a row within the table. When
+     * `actions.saveFindings.outputConfig.table` is specified, the values of
+     * columns specified here are available in the output table under
+     * `location.content_locations.record_location.record_key.id_values`. Nested
+     * fields such as `person.birthdate.year` are allowed.
      * 
* * repeated .google.privacy.dlp.v2.FieldId identifying_fields = 2; diff --git a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/BigQueryOptionsOrBuilder.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/BigQueryOptionsOrBuilder.java index 5b82a839..c5d6b920 100644 --- a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/BigQueryOptionsOrBuilder.java +++ b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/BigQueryOptionsOrBuilder.java @@ -62,8 +62,11 @@ public interface BigQueryOptionsOrBuilder * * *
-   * References to fields uniquely identifying rows within the table.
-   * Nested fields in the format, like `person.birthdate.year`, are allowed.
+   * Table fields that may uniquely identify a row within the table. When
+   * `actions.saveFindings.outputConfig.table` is specified, the values of
+   * columns specified here are available in the output table under
+   * `location.content_locations.record_location.record_key.id_values`. Nested
+   * fields such as `person.birthdate.year` are allowed.
    * 
* * repeated .google.privacy.dlp.v2.FieldId identifying_fields = 2; @@ -73,8 +76,11 @@ public interface BigQueryOptionsOrBuilder * * *
-   * References to fields uniquely identifying rows within the table.
-   * Nested fields in the format, like `person.birthdate.year`, are allowed.
+   * Table fields that may uniquely identify a row within the table. When
+   * `actions.saveFindings.outputConfig.table` is specified, the values of
+   * columns specified here are available in the output table under
+   * `location.content_locations.record_location.record_key.id_values`. Nested
+   * fields such as `person.birthdate.year` are allowed.
    * 
* * repeated .google.privacy.dlp.v2.FieldId identifying_fields = 2; @@ -84,8 +90,11 @@ public interface BigQueryOptionsOrBuilder * * *
-   * References to fields uniquely identifying rows within the table.
-   * Nested fields in the format, like `person.birthdate.year`, are allowed.
+   * Table fields that may uniquely identify a row within the table. When
+   * `actions.saveFindings.outputConfig.table` is specified, the values of
+   * columns specified here are available in the output table under
+   * `location.content_locations.record_location.record_key.id_values`. Nested
+   * fields such as `person.birthdate.year` are allowed.
    * 
* * repeated .google.privacy.dlp.v2.FieldId identifying_fields = 2; @@ -95,8 +104,11 @@ public interface BigQueryOptionsOrBuilder * * *
-   * References to fields uniquely identifying rows within the table.
-   * Nested fields in the format, like `person.birthdate.year`, are allowed.
+   * Table fields that may uniquely identify a row within the table. When
+   * `actions.saveFindings.outputConfig.table` is specified, the values of
+   * columns specified here are available in the output table under
+   * `location.content_locations.record_location.record_key.id_values`. Nested
+   * fields such as `person.birthdate.year` are allowed.
    * 
* * repeated .google.privacy.dlp.v2.FieldId identifying_fields = 2; @@ -107,8 +119,11 @@ public interface BigQueryOptionsOrBuilder * * *
-   * References to fields uniquely identifying rows within the table.
-   * Nested fields in the format, like `person.birthdate.year`, are allowed.
+   * Table fields that may uniquely identify a row within the table. When
+   * `actions.saveFindings.outputConfig.table` is specified, the values of
+   * columns specified here are available in the output table under
+   * `location.content_locations.record_location.record_key.id_values`. Nested
+   * fields such as `person.birthdate.year` are allowed.
    * 
* * repeated .google.privacy.dlp.v2.FieldId identifying_fields = 2; 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 new file mode 100644 index 00000000..40426481 --- /dev/null +++ b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/Container.java @@ -0,0 +1,1926 @@ +/* + * 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; + +/** + * + * + *
+ * Represents a container that may contain DLP findings.
+ * Examples of a container include a file, table, or database record.
+ * 
+ * + * Protobuf type {@code google.privacy.dlp.v2.Container} + */ +public final class Container extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2.Container) + ContainerOrBuilder { + private static final long serialVersionUID = 0L; + // Use Container.newBuilder() to construct. + private Container(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Container() { + type_ = ""; + projectId_ = ""; + fullPath_ = ""; + rootPath_ = ""; + relativePath_ = ""; + version_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Container(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private Container( + 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(); + + type_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + projectId_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + fullPath_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + + rootPath_ = s; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + + relativePath_ = s; + break; + } + case 50: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (updateTime_ != null) { + subBuilder = updateTime_.toBuilder(); + } + updateTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateTime_); + updateTime_ = subBuilder.buildPartial(); + } + + break; + } + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); + + version_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.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_Container_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_Container_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.privacy.dlp.v2.Container.class, + com.google.privacy.dlp.v2.Container.Builder.class); + } + + public static final int TYPE_FIELD_NUMBER = 1; + private volatile java.lang.Object type_; + /** + * + * + *
+   * Container type, for example BigQuery or Google Cloud Storage.
+   * 
+ * + * string type = 1; + * + * @return The type. + */ + public java.lang.String getType() { + java.lang.Object ref = type_; + 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(); + type_ = s; + return s; + } + } + /** + * + * + *
+   * Container type, for example BigQuery or Google Cloud Storage.
+   * 
+ * + * string type = 1; + * + * @return The bytes for type. + */ + public com.google.protobuf.ByteString getTypeBytes() { + java.lang.Object ref = type_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + type_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PROJECT_ID_FIELD_NUMBER = 2; + private volatile java.lang.Object projectId_; + /** + * + * + *
+   * Project where the finding was found.
+   * Can be different from the project that owns the finding.
+   * 
+ * + * string project_id = 2; + * + * @return The projectId. + */ + public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + 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(); + projectId_ = s; + return s; + } + } + /** + * + * + *
+   * Project where the finding was found.
+   * Can be different from the project that owns the finding.
+   * 
+ * + * string project_id = 2; + * + * @return The bytes for projectId. + */ + public com.google.protobuf.ByteString getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FULL_PATH_FIELD_NUMBER = 3; + private volatile java.lang.Object fullPath_; + /** + * + * + *
+   * A string representation of the full container name.
+   * Examples:
+   * - BigQuery: 'Project:DataSetId.TableId'
+   * - Google Cloud Storage: 'gs://Bucket/folders/filename.txt'
+   * 
+ * + * string full_path = 3; + * + * @return The fullPath. + */ + public java.lang.String getFullPath() { + java.lang.Object ref = fullPath_; + 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(); + fullPath_ = s; + return s; + } + } + /** + * + * + *
+   * A string representation of the full container name.
+   * Examples:
+   * - BigQuery: 'Project:DataSetId.TableId'
+   * - Google Cloud Storage: 'gs://Bucket/folders/filename.txt'
+   * 
+ * + * string full_path = 3; + * + * @return The bytes for fullPath. + */ + public com.google.protobuf.ByteString getFullPathBytes() { + java.lang.Object ref = fullPath_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + fullPath_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ROOT_PATH_FIELD_NUMBER = 4; + private volatile java.lang.Object rootPath_; + /** + * + * + *
+   * 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
+   *  is `gs://bucket`
+   * 
+ * + * string root_path = 4; + * + * @return The rootPath. + */ + public java.lang.String getRootPath() { + java.lang.Object ref = rootPath_; + 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(); + rootPath_ = s; + return s; + } + } + /** + * + * + *
+   * 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
+   *  is `gs://bucket`
+   * 
+ * + * string root_path = 4; + * + * @return The bytes for rootPath. + */ + public com.google.protobuf.ByteString getRootPathBytes() { + java.lang.Object ref = rootPath_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + rootPath_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RELATIVE_PATH_FIELD_NUMBER = 5; + private volatile java.lang.Object relativePath_; + /** + * + * + *
+   * 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
+   *  path is `folder/filename.txt`
+   * 
+ * + * string relative_path = 5; + * + * @return The relativePath. + */ + public java.lang.String getRelativePath() { + java.lang.Object ref = relativePath_; + 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(); + relativePath_ = s; + return s; + } + } + /** + * + * + *
+   * 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
+   *  path is `folder/filename.txt`
+   * 
+ * + * string relative_path = 5; + * + * @return The bytes for relativePath. + */ + public com.google.protobuf.ByteString getRelativePathBytes() { + java.lang.Object ref = relativePath_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + relativePath_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 6; + private com.google.protobuf.Timestamp updateTime_; + /** + * + * + *
+   * 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.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 6; + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return updateTime_ != null; + } + /** + * + * + *
+   * 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.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 6; + * + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + /** + * + * + *
+   * 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.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 6; + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return getUpdateTime(); + } + + public static final int VERSION_FIELD_NUMBER = 7; + private volatile java.lang.Object version_; + /** + * + * + *
+   * Findings container version, if available
+   * ("generation" for Google Cloud Storage).
+   * 
+ * + * string version = 7; + * + * @return The version. + */ + 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; + } + } + /** + * + * + *
+   * Findings container version, if available
+   * ("generation" for Google Cloud Storage).
+   * 
+ * + * string version = 7; + * + * @return The bytes for version. + */ + 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; + } + } + + 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 (!getTypeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, type_); + } + if (!getProjectIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, projectId_); + } + if (!getFullPathBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, fullPath_); + } + if (!getRootPathBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, rootPath_); + } + if (!getRelativePathBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, relativePath_); + } + if (updateTime_ != null) { + output.writeMessage(6, getUpdateTime()); + } + if (!getVersionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, version_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getTypeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, type_); + } + if (!getProjectIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, projectId_); + } + if (!getFullPathBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, fullPath_); + } + if (!getRootPathBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, rootPath_); + } + if (!getRelativePathBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, relativePath_); + } + if (updateTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getUpdateTime()); + } + if (!getVersionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, version_); + } + 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.Container)) { + return super.equals(obj); + } + com.google.privacy.dlp.v2.Container other = (com.google.privacy.dlp.v2.Container) obj; + + if (!getType().equals(other.getType())) return false; + if (!getProjectId().equals(other.getProjectId())) return false; + if (!getFullPath().equals(other.getFullPath())) return false; + if (!getRootPath().equals(other.getRootPath())) return false; + if (!getRelativePath().equals(other.getRelativePath())) return false; + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (!getVersion().equals(other.getVersion())) 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) + getType().hashCode(); + hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; + hash = (53 * hash) + getProjectId().hashCode(); + hash = (37 * hash) + FULL_PATH_FIELD_NUMBER; + hash = (53 * hash) + getFullPath().hashCode(); + hash = (37 * hash) + ROOT_PATH_FIELD_NUMBER; + hash = (53 * hash) + getRootPath().hashCode(); + hash = (37 * hash) + RELATIVE_PATH_FIELD_NUMBER; + hash = (53 * hash) + getRelativePath().hashCode(); + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + hash = (37 * hash) + VERSION_FIELD_NUMBER; + hash = (53 * hash) + getVersion().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.privacy.dlp.v2.Container parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.privacy.dlp.v2.Container 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.Container parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.privacy.dlp.v2.Container 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.Container parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.privacy.dlp.v2.Container 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.Container parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.privacy.dlp.v2.Container 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.Container parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.privacy.dlp.v2.Container 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.Container 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.Container 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.Container 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; + } + /** + * + * + *
+   * Represents a container that may contain DLP findings.
+   * Examples of a container include a file, table, or database record.
+   * 
+ * + * Protobuf type {@code google.privacy.dlp.v2.Container} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.privacy.dlp.v2.Container) + com.google.privacy.dlp.v2.ContainerOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_Container_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_Container_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.privacy.dlp.v2.Container.class, + com.google.privacy.dlp.v2.Container.Builder.class); + } + + // Construct using com.google.privacy.dlp.v2.Container.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_ = ""; + + projectId_ = ""; + + fullPath_ = ""; + + rootPath_ = ""; + + relativePath_ = ""; + + if (updateTimeBuilder_ == null) { + updateTime_ = null; + } else { + updateTime_ = null; + updateTimeBuilder_ = null; + } + version_ = ""; + + 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_Container_descriptor; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.Container getDefaultInstanceForType() { + return com.google.privacy.dlp.v2.Container.getDefaultInstance(); + } + + @java.lang.Override + public com.google.privacy.dlp.v2.Container build() { + com.google.privacy.dlp.v2.Container result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.Container buildPartial() { + com.google.privacy.dlp.v2.Container result = new com.google.privacy.dlp.v2.Container(this); + result.type_ = type_; + result.projectId_ = projectId_; + result.fullPath_ = fullPath_; + result.rootPath_ = rootPath_; + result.relativePath_ = relativePath_; + if (updateTimeBuilder_ == null) { + result.updateTime_ = updateTime_; + } else { + result.updateTime_ = updateTimeBuilder_.build(); + } + result.version_ = version_; + 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.Container) { + return mergeFrom((com.google.privacy.dlp.v2.Container) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.privacy.dlp.v2.Container other) { + if (other == com.google.privacy.dlp.v2.Container.getDefaultInstance()) return this; + if (!other.getType().isEmpty()) { + type_ = other.type_; + onChanged(); + } + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + onChanged(); + } + if (!other.getFullPath().isEmpty()) { + fullPath_ = other.fullPath_; + onChanged(); + } + if (!other.getRootPath().isEmpty()) { + rootPath_ = other.rootPath_; + onChanged(); + } + if (!other.getRelativePath().isEmpty()) { + relativePath_ = other.relativePath_; + onChanged(); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (!other.getVersion().isEmpty()) { + version_ = other.version_; + 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.Container parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.privacy.dlp.v2.Container) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object type_ = ""; + /** + * + * + *
+     * Container type, for example BigQuery or Google Cloud Storage.
+     * 
+ * + * string type = 1; + * + * @return The type. + */ + public java.lang.String getType() { + java.lang.Object ref = type_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + type_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Container type, for example BigQuery or Google Cloud Storage.
+     * 
+ * + * string type = 1; + * + * @return The bytes for type. + */ + public com.google.protobuf.ByteString getTypeBytes() { + java.lang.Object ref = type_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + type_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Container type, for example BigQuery or Google Cloud Storage.
+     * 
+ * + * string type = 1; + * + * @param value The type to set. + * @return This builder for chaining. + */ + public Builder setType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + type_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Container type, for example BigQuery or Google Cloud Storage.
+     * 
+ * + * string type = 1; + * + * @return This builder for chaining. + */ + public Builder clearType() { + + type_ = getDefaultInstance().getType(); + onChanged(); + return this; + } + /** + * + * + *
+     * Container type, for example BigQuery or Google Cloud Storage.
+     * 
+ * + * string type = 1; + * + * @param value The bytes for type to set. + * @return This builder for chaining. + */ + public Builder setTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + type_ = value; + onChanged(); + return this; + } + + private java.lang.Object projectId_ = ""; + /** + * + * + *
+     * Project where the finding was found.
+     * Can be different from the project that owns the finding.
+     * 
+ * + * string project_id = 2; + * + * @return The projectId. + */ + public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Project where the finding was found.
+     * Can be different from the project that owns the finding.
+     * 
+ * + * string project_id = 2; + * + * @return The bytes for projectId. + */ + public com.google.protobuf.ByteString getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Project where the finding was found.
+     * Can be different from the project that owns the finding.
+     * 
+ * + * string project_id = 2; + * + * @param value The projectId to set. + * @return This builder for chaining. + */ + public Builder setProjectId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Project where the finding was found.
+     * Can be different from the project that owns the finding.
+     * 
+ * + * string project_id = 2; + * + * @return This builder for chaining. + */ + public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Project where the finding was found.
+     * Can be different from the project that owns the finding.
+     * 
+ * + * string project_id = 2; + * + * @param value The bytes for projectId to set. + * @return This builder for chaining. + */ + public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object fullPath_ = ""; + /** + * + * + *
+     * A string representation of the full container name.
+     * Examples:
+     * - BigQuery: 'Project:DataSetId.TableId'
+     * - Google Cloud Storage: 'gs://Bucket/folders/filename.txt'
+     * 
+ * + * string full_path = 3; + * + * @return The fullPath. + */ + public java.lang.String getFullPath() { + java.lang.Object ref = fullPath_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + fullPath_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A string representation of the full container name.
+     * Examples:
+     * - BigQuery: 'Project:DataSetId.TableId'
+     * - Google Cloud Storage: 'gs://Bucket/folders/filename.txt'
+     * 
+ * + * string full_path = 3; + * + * @return The bytes for fullPath. + */ + public com.google.protobuf.ByteString getFullPathBytes() { + java.lang.Object ref = fullPath_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + fullPath_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A string representation of the full container name.
+     * Examples:
+     * - BigQuery: 'Project:DataSetId.TableId'
+     * - Google Cloud Storage: 'gs://Bucket/folders/filename.txt'
+     * 
+ * + * string full_path = 3; + * + * @param value The fullPath to set. + * @return This builder for chaining. + */ + public Builder setFullPath(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + fullPath_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * A string representation of the full container name.
+     * Examples:
+     * - BigQuery: 'Project:DataSetId.TableId'
+     * - Google Cloud Storage: 'gs://Bucket/folders/filename.txt'
+     * 
+ * + * string full_path = 3; + * + * @return This builder for chaining. + */ + public Builder clearFullPath() { + + fullPath_ = getDefaultInstance().getFullPath(); + onChanged(); + return this; + } + /** + * + * + *
+     * A string representation of the full container name.
+     * Examples:
+     * - BigQuery: 'Project:DataSetId.TableId'
+     * - Google Cloud Storage: 'gs://Bucket/folders/filename.txt'
+     * 
+ * + * string full_path = 3; + * + * @param value The bytes for fullPath to set. + * @return This builder for chaining. + */ + public Builder setFullPathBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + fullPath_ = value; + onChanged(); + return this; + } + + private java.lang.Object rootPath_ = ""; + /** + * + * + *
+     * 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
+     *  is `gs://bucket`
+     * 
+ * + * string root_path = 4; + * + * @return The rootPath. + */ + public java.lang.String getRootPath() { + java.lang.Object ref = rootPath_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + rootPath_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * 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
+     *  is `gs://bucket`
+     * 
+ * + * string root_path = 4; + * + * @return The bytes for rootPath. + */ + public com.google.protobuf.ByteString getRootPathBytes() { + java.lang.Object ref = rootPath_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + rootPath_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * 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
+     *  is `gs://bucket`
+     * 
+ * + * string root_path = 4; + * + * @param value The rootPath to set. + * @return This builder for chaining. + */ + public Builder setRootPath(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + rootPath_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * 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
+     *  is `gs://bucket`
+     * 
+ * + * string root_path = 4; + * + * @return This builder for chaining. + */ + public Builder clearRootPath() { + + rootPath_ = getDefaultInstance().getRootPath(); + onChanged(); + return this; + } + /** + * + * + *
+     * 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
+     *  is `gs://bucket`
+     * 
+ * + * string root_path = 4; + * + * @param value The bytes for rootPath to set. + * @return This builder for chaining. + */ + public Builder setRootPathBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + rootPath_ = value; + onChanged(); + return this; + } + + private java.lang.Object relativePath_ = ""; + /** + * + * + *
+     * 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
+     *  path is `folder/filename.txt`
+     * 
+ * + * string relative_path = 5; + * + * @return The relativePath. + */ + public java.lang.String getRelativePath() { + java.lang.Object ref = relativePath_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + relativePath_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * 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
+     *  path is `folder/filename.txt`
+     * 
+ * + * string relative_path = 5; + * + * @return The bytes for relativePath. + */ + public com.google.protobuf.ByteString getRelativePathBytes() { + java.lang.Object ref = relativePath_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + relativePath_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * 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
+     *  path is `folder/filename.txt`
+     * 
+ * + * string relative_path = 5; + * + * @param value The relativePath to set. + * @return This builder for chaining. + */ + public Builder setRelativePath(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + relativePath_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * 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
+     *  path is `folder/filename.txt`
+     * 
+ * + * string relative_path = 5; + * + * @return This builder for chaining. + */ + public Builder clearRelativePath() { + + relativePath_ = getDefaultInstance().getRelativePath(); + onChanged(); + return this; + } + /** + * + * + *
+     * 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
+     *  path is `folder/filename.txt`
+     * 
+ * + * string relative_path = 5; + * + * @param value The bytes for relativePath to set. + * @return This builder for chaining. + */ + public Builder setRelativePathBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + relativePath_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + /** + * + * + *
+     * 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.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 6; + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return updateTimeBuilder_ != null || updateTime_ != null; + } + /** + * + * + *
+     * 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.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 6; + * + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * 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.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 6; + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + onChanged(); + } else { + updateTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * 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.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 6; + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + onChanged(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * 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.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 6; + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (updateTime_ != null) { + updateTime_ = + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + } else { + updateTime_ = value; + } + onChanged(); + } else { + updateTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * 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.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 6; + */ + public Builder clearUpdateTime() { + if (updateTimeBuilder_ == null) { + updateTime_ = null; + onChanged(); + } else { + updateTime_ = null; + updateTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * 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.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 6; + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + + onChanged(); + return getUpdateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * 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.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 6; + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } + } + /** + * + * + *
+     * 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.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private java.lang.Object version_ = ""; + /** + * + * + *
+     * Findings container version, if available
+     * ("generation" for Google Cloud Storage).
+     * 
+ * + * string version = 7; + * + * @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; + } + } + /** + * + * + *
+     * Findings container version, if available
+     * ("generation" for Google Cloud Storage).
+     * 
+ * + * string version = 7; + * + * @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; + } + } + /** + * + * + *
+     * Findings container version, if available
+     * ("generation" for Google Cloud Storage).
+     * 
+ * + * string version = 7; + * + * @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; + } + /** + * + * + *
+     * Findings container version, if available
+     * ("generation" for Google Cloud Storage).
+     * 
+ * + * string version = 7; + * + * @return This builder for chaining. + */ + public Builder clearVersion() { + + version_ = getDefaultInstance().getVersion(); + onChanged(); + return this; + } + /** + * + * + *
+     * Findings container version, if available
+     * ("generation" for Google Cloud Storage).
+     * 
+ * + * string version = 7; + * + * @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; + } + + @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.Container) + } + + // @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.Container) + private static final com.google.privacy.dlp.v2.Container DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.privacy.dlp.v2.Container(); + } + + public static com.google.privacy.dlp.v2.Container getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Container parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Container(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.Container getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} 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 new file mode 100644 index 00000000..074399de --- /dev/null +++ b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ContainerOrBuilder.java @@ -0,0 +1,249 @@ +/* + * 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 ContainerOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.privacy.dlp.v2.Container) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Container type, for example BigQuery or Google Cloud Storage.
+   * 
+ * + * string type = 1; + * + * @return The type. + */ + java.lang.String getType(); + /** + * + * + *
+   * Container type, for example BigQuery or Google Cloud Storage.
+   * 
+ * + * string type = 1; + * + * @return The bytes for type. + */ + com.google.protobuf.ByteString getTypeBytes(); + + /** + * + * + *
+   * Project where the finding was found.
+   * Can be different from the project that owns the finding.
+   * 
+ * + * string project_id = 2; + * + * @return The projectId. + */ + java.lang.String getProjectId(); + /** + * + * + *
+   * Project where the finding was found.
+   * Can be different from the project that owns the finding.
+   * 
+ * + * string project_id = 2; + * + * @return The bytes for projectId. + */ + 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'
+   * 
+ * + * string full_path = 3; + * + * @return The fullPath. + */ + 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'
+   * 
+ * + * string full_path = 3; + * + * @return The bytes for fullPath. + */ + com.google.protobuf.ByteString getFullPathBytes(); + + /** + * + * + *
+   * 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
+   *  is `gs://bucket`
+   * 
+ * + * string root_path = 4; + * + * @return The rootPath. + */ + java.lang.String getRootPath(); + /** + * + * + *
+   * 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
+   *  is `gs://bucket`
+   * 
+ * + * string root_path = 4; + * + * @return The bytes for rootPath. + */ + com.google.protobuf.ByteString getRootPathBytes(); + + /** + * + * + *
+   * 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
+   *  path is `folder/filename.txt`
+   * 
+ * + * string relative_path = 5; + * + * @return The relativePath. + */ + java.lang.String getRelativePath(); + /** + * + * + *
+   * 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
+   *  path is `folder/filename.txt`
+   * 
+ * + * string relative_path = 5; + * + * @return The bytes for relativePath. + */ + 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.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 6; + * + * @return Whether the updateTime field is set. + */ + 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.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 6; + * + * @return The updateTime. + */ + 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.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 6; + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
+   * Findings container version, if available
+   * ("generation" for Google Cloud Storage).
+   * 
+ * + * string version = 7; + * + * @return The version. + */ + java.lang.String getVersion(); + /** + * + * + *
+   * Findings container version, if available
+   * ("generation" for Google Cloud Storage).
+   * 
+ * + * string version = 7; + * + * @return The bytes for version. + */ + com.google.protobuf.ByteString getVersionBytes(); +} 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 f447136b..4f83a07a 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 @@ -22,7 +22,8 @@ * * *
- * Findings container location data.
+ * Precise location of the finding within a document, record, image, or metadata
+ * container.
  * 
* * Protobuf type {@code google.privacy.dlp.v2.ContentLocation} @@ -780,7 +781,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Findings container location data.
+   * Precise location of the finding within a document, record, image, or metadata
+   * container.
    * 
* * Protobuf type {@code google.privacy.dlp.v2.ContentLocation} diff --git a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DateShiftConfig.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DateShiftConfig.java index 40bab571..19c3fc98 100644 --- a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DateShiftConfig.java +++ b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DateShiftConfig.java @@ -195,9 +195,9 @@ public MethodCase getMethodCase() { * * *
-   * Required. Range of shift in days. Actual shift will be selected at random within this
-   * range (inclusive ends). Negative means shift to earlier in time. Must not
-   * be more than 365250 days (1000 years) each direction.
+   * Required. Range of shift in days. Actual shift will be selected at random
+   * within this range (inclusive ends). Negative means shift to earlier in
+   * time. Must not be more than 365250 days (1000 years) each direction.
    * For example, 3 means shift date to at most 3 days into the future.
    * 
* @@ -215,7 +215,8 @@ public int getUpperBoundDays() { * * *
-   * Required. For example, -5 means shift date to at most 5 days back in the past.
+   * Required. For example, -5 means shift date to at most 5 days back in the
+   * past.
    * 
* * int32 lower_bound_days = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -753,9 +754,9 @@ public Builder clearMethod() { * * *
-     * Required. Range of shift in days. Actual shift will be selected at random within this
-     * range (inclusive ends). Negative means shift to earlier in time. Must not
-     * be more than 365250 days (1000 years) each direction.
+     * Required. Range of shift in days. Actual shift will be selected at random
+     * within this range (inclusive ends). Negative means shift to earlier in
+     * time. Must not be more than 365250 days (1000 years) each direction.
      * For example, 3 means shift date to at most 3 days into the future.
      * 
* @@ -770,9 +771,9 @@ public int getUpperBoundDays() { * * *
-     * Required. Range of shift in days. Actual shift will be selected at random within this
-     * range (inclusive ends). Negative means shift to earlier in time. Must not
-     * be more than 365250 days (1000 years) each direction.
+     * Required. Range of shift in days. Actual shift will be selected at random
+     * within this range (inclusive ends). Negative means shift to earlier in
+     * time. Must not be more than 365250 days (1000 years) each direction.
      * For example, 3 means shift date to at most 3 days into the future.
      * 
* @@ -791,9 +792,9 @@ public Builder setUpperBoundDays(int value) { * * *
-     * Required. Range of shift in days. Actual shift will be selected at random within this
-     * range (inclusive ends). Negative means shift to earlier in time. Must not
-     * be more than 365250 days (1000 years) each direction.
+     * Required. Range of shift in days. Actual shift will be selected at random
+     * within this range (inclusive ends). Negative means shift to earlier in
+     * time. Must not be more than 365250 days (1000 years) each direction.
      * For example, 3 means shift date to at most 3 days into the future.
      * 
* @@ -813,7 +814,8 @@ public Builder clearUpperBoundDays() { * * *
-     * Required. For example, -5 means shift date to at most 5 days back in the past.
+     * Required. For example, -5 means shift date to at most 5 days back in the
+     * past.
      * 
* * int32 lower_bound_days = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -827,7 +829,8 @@ public int getLowerBoundDays() { * * *
-     * Required. For example, -5 means shift date to at most 5 days back in the past.
+     * Required. For example, -5 means shift date to at most 5 days back in the
+     * past.
      * 
* * int32 lower_bound_days = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -845,7 +848,8 @@ public Builder setLowerBoundDays(int value) { * * *
-     * Required. For example, -5 means shift date to at most 5 days back in the past.
+     * Required. For example, -5 means shift date to at most 5 days back in the
+     * past.
      * 
* * int32 lower_bound_days = 2 [(.google.api.field_behavior) = REQUIRED]; diff --git a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DateShiftConfigOrBuilder.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DateShiftConfigOrBuilder.java index f5b33a7c..1016a835 100644 --- a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DateShiftConfigOrBuilder.java +++ b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DateShiftConfigOrBuilder.java @@ -27,9 +27,9 @@ public interface DateShiftConfigOrBuilder * * *
-   * Required. Range of shift in days. Actual shift will be selected at random within this
-   * range (inclusive ends). Negative means shift to earlier in time. Must not
-   * be more than 365250 days (1000 years) each direction.
+   * Required. Range of shift in days. Actual shift will be selected at random
+   * within this range (inclusive ends). Negative means shift to earlier in
+   * time. Must not be more than 365250 days (1000 years) each direction.
    * For example, 3 means shift date to at most 3 days into the future.
    * 
* @@ -43,7 +43,8 @@ public interface DateShiftConfigOrBuilder * * *
-   * Required. For example, -5 means shift date to at most 5 days back in the past.
+   * Required. For example, -5 means shift date to at most 5 days back in the
+   * past.
    * 
* * int32 lower_bound_days = 2 [(.google.api.field_behavior) = REQUIRED]; 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 dee2a0e3..6b8bbb7b 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 @@ -104,6 +104,23 @@ private DeidentifyConfig( transformation_ = subBuilder.buildPartial(); } transformationCase_ = 2; + break; + } + case 26: + { + com.google.privacy.dlp.v2.TransformationErrorHandling.Builder subBuilder = null; + if (transformationErrorHandling_ != null) { + subBuilder = transformationErrorHandling_.toBuilder(); + } + transformationErrorHandling_ = + input.readMessage( + com.google.privacy.dlp.v2.TransformationErrorHandling.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(transformationErrorHandling_); + transformationErrorHandling_ = subBuilder.buildPartial(); + } + break; } default: @@ -294,6 +311,58 @@ public com.google.privacy.dlp.v2.RecordTransformations getRecordTransformations( return com.google.privacy.dlp.v2.RecordTransformations.getDefaultInstance(); } + public static final int TRANSFORMATION_ERROR_HANDLING_FIELD_NUMBER = 3; + private com.google.privacy.dlp.v2.TransformationErrorHandling transformationErrorHandling_; + /** + * + * + *
+   * Mode for handling transformation errors. If left unspecified, the default
+   * mode is `TransformationErrorHandling.ThrowError`.
+   * 
+ * + * .google.privacy.dlp.v2.TransformationErrorHandling transformation_error_handling = 3; + * + * + * @return Whether the transformationErrorHandling field is set. + */ + public boolean hasTransformationErrorHandling() { + return transformationErrorHandling_ != null; + } + /** + * + * + *
+   * Mode for handling transformation errors. If left unspecified, the default
+   * mode is `TransformationErrorHandling.ThrowError`.
+   * 
+ * + * .google.privacy.dlp.v2.TransformationErrorHandling transformation_error_handling = 3; + * + * + * @return The transformationErrorHandling. + */ + public com.google.privacy.dlp.v2.TransformationErrorHandling getTransformationErrorHandling() { + return transformationErrorHandling_ == null + ? com.google.privacy.dlp.v2.TransformationErrorHandling.getDefaultInstance() + : transformationErrorHandling_; + } + /** + * + * + *
+   * Mode for handling transformation errors. If left unspecified, the default
+   * mode is `TransformationErrorHandling.ThrowError`.
+   * 
+ * + * .google.privacy.dlp.v2.TransformationErrorHandling transformation_error_handling = 3; + * + */ + public com.google.privacy.dlp.v2.TransformationErrorHandlingOrBuilder + getTransformationErrorHandlingOrBuilder() { + return getTransformationErrorHandling(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -314,6 +383,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (transformationCase_ == 2) { output.writeMessage(2, (com.google.privacy.dlp.v2.RecordTransformations) transformation_); } + if (transformationErrorHandling_ != null) { + output.writeMessage(3, getTransformationErrorHandling()); + } unknownFields.writeTo(output); } @@ -333,6 +405,11 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 2, (com.google.privacy.dlp.v2.RecordTransformations) transformation_); } + if (transformationErrorHandling_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, getTransformationErrorHandling()); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -349,6 +426,11 @@ public boolean equals(final java.lang.Object obj) { com.google.privacy.dlp.v2.DeidentifyConfig other = (com.google.privacy.dlp.v2.DeidentifyConfig) obj; + if (hasTransformationErrorHandling() != other.hasTransformationErrorHandling()) return false; + if (hasTransformationErrorHandling()) { + if (!getTransformationErrorHandling().equals(other.getTransformationErrorHandling())) + return false; + } if (!getTransformationCase().equals(other.getTransformationCase())) return false; switch (transformationCase_) { case 1: @@ -371,6 +453,10 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); + if (hasTransformationErrorHandling()) { + hash = (37 * hash) + TRANSFORMATION_ERROR_HANDLING_FIELD_NUMBER; + hash = (53 * hash) + getTransformationErrorHandling().hashCode(); + } switch (transformationCase_) { case 1: hash = (37 * hash) + INFO_TYPE_TRANSFORMATIONS_FIELD_NUMBER; @@ -528,6 +614,12 @@ private void maybeForceBuilderInitialization() { @java.lang.Override public Builder clear() { super.clear(); + if (transformationErrorHandlingBuilder_ == null) { + transformationErrorHandling_ = null; + } else { + transformationErrorHandling_ = null; + transformationErrorHandlingBuilder_ = null; + } transformationCase_ = 0; transformation_ = null; return this; @@ -571,6 +663,11 @@ public com.google.privacy.dlp.v2.DeidentifyConfig buildPartial() { result.transformation_ = recordTransformationsBuilder_.build(); } } + if (transformationErrorHandlingBuilder_ == null) { + result.transformationErrorHandling_ = transformationErrorHandling_; + } else { + result.transformationErrorHandling_ = transformationErrorHandlingBuilder_.build(); + } result.transformationCase_ = transformationCase_; onBuilt(); return result; @@ -621,6 +718,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.privacy.dlp.v2.DeidentifyConfig other) { if (other == com.google.privacy.dlp.v2.DeidentifyConfig.getDefaultInstance()) return this; + if (other.hasTransformationErrorHandling()) { + mergeTransformationErrorHandling(other.getTransformationErrorHandling()); + } switch (other.getTransformationCase()) { case INFO_TYPE_TRANSFORMATIONS: { @@ -1128,6 +1228,215 @@ public Builder clearRecordTransformations() { return recordTransformationsBuilder_; } + private com.google.privacy.dlp.v2.TransformationErrorHandling transformationErrorHandling_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.TransformationErrorHandling, + com.google.privacy.dlp.v2.TransformationErrorHandling.Builder, + com.google.privacy.dlp.v2.TransformationErrorHandlingOrBuilder> + transformationErrorHandlingBuilder_; + /** + * + * + *
+     * Mode for handling transformation errors. If left unspecified, the default
+     * mode is `TransformationErrorHandling.ThrowError`.
+     * 
+ * + * .google.privacy.dlp.v2.TransformationErrorHandling transformation_error_handling = 3; + * + * + * @return Whether the transformationErrorHandling field is set. + */ + public boolean hasTransformationErrorHandling() { + return transformationErrorHandlingBuilder_ != null || transformationErrorHandling_ != null; + } + /** + * + * + *
+     * Mode for handling transformation errors. If left unspecified, the default
+     * mode is `TransformationErrorHandling.ThrowError`.
+     * 
+ * + * .google.privacy.dlp.v2.TransformationErrorHandling transformation_error_handling = 3; + * + * + * @return The transformationErrorHandling. + */ + public com.google.privacy.dlp.v2.TransformationErrorHandling getTransformationErrorHandling() { + if (transformationErrorHandlingBuilder_ == null) { + return transformationErrorHandling_ == null + ? com.google.privacy.dlp.v2.TransformationErrorHandling.getDefaultInstance() + : transformationErrorHandling_; + } else { + return transformationErrorHandlingBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Mode for handling transformation errors. If left unspecified, the default
+     * mode is `TransformationErrorHandling.ThrowError`.
+     * 
+ * + * .google.privacy.dlp.v2.TransformationErrorHandling transformation_error_handling = 3; + * + */ + public Builder setTransformationErrorHandling( + com.google.privacy.dlp.v2.TransformationErrorHandling value) { + if (transformationErrorHandlingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + transformationErrorHandling_ = value; + onChanged(); + } else { + transformationErrorHandlingBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Mode for handling transformation errors. If left unspecified, the default
+     * mode is `TransformationErrorHandling.ThrowError`.
+     * 
+ * + * .google.privacy.dlp.v2.TransformationErrorHandling transformation_error_handling = 3; + * + */ + public Builder setTransformationErrorHandling( + com.google.privacy.dlp.v2.TransformationErrorHandling.Builder builderForValue) { + if (transformationErrorHandlingBuilder_ == null) { + transformationErrorHandling_ = builderForValue.build(); + onChanged(); + } else { + transformationErrorHandlingBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Mode for handling transformation errors. If left unspecified, the default
+     * mode is `TransformationErrorHandling.ThrowError`.
+     * 
+ * + * .google.privacy.dlp.v2.TransformationErrorHandling transformation_error_handling = 3; + * + */ + public Builder mergeTransformationErrorHandling( + com.google.privacy.dlp.v2.TransformationErrorHandling value) { + if (transformationErrorHandlingBuilder_ == null) { + if (transformationErrorHandling_ != null) { + transformationErrorHandling_ = + com.google.privacy.dlp.v2.TransformationErrorHandling.newBuilder( + transformationErrorHandling_) + .mergeFrom(value) + .buildPartial(); + } else { + transformationErrorHandling_ = value; + } + onChanged(); + } else { + transformationErrorHandlingBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Mode for handling transformation errors. If left unspecified, the default
+     * mode is `TransformationErrorHandling.ThrowError`.
+     * 
+ * + * .google.privacy.dlp.v2.TransformationErrorHandling transformation_error_handling = 3; + * + */ + public Builder clearTransformationErrorHandling() { + if (transformationErrorHandlingBuilder_ == null) { + transformationErrorHandling_ = null; + onChanged(); + } else { + transformationErrorHandling_ = null; + transformationErrorHandlingBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Mode for handling transformation errors. If left unspecified, the default
+     * mode is `TransformationErrorHandling.ThrowError`.
+     * 
+ * + * .google.privacy.dlp.v2.TransformationErrorHandling transformation_error_handling = 3; + * + */ + public com.google.privacy.dlp.v2.TransformationErrorHandling.Builder + getTransformationErrorHandlingBuilder() { + + onChanged(); + return getTransformationErrorHandlingFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Mode for handling transformation errors. If left unspecified, the default
+     * mode is `TransformationErrorHandling.ThrowError`.
+     * 
+ * + * .google.privacy.dlp.v2.TransformationErrorHandling transformation_error_handling = 3; + * + */ + public com.google.privacy.dlp.v2.TransformationErrorHandlingOrBuilder + getTransformationErrorHandlingOrBuilder() { + if (transformationErrorHandlingBuilder_ != null) { + return transformationErrorHandlingBuilder_.getMessageOrBuilder(); + } else { + return transformationErrorHandling_ == null + ? com.google.privacy.dlp.v2.TransformationErrorHandling.getDefaultInstance() + : transformationErrorHandling_; + } + } + /** + * + * + *
+     * Mode for handling transformation errors. If left unspecified, the default
+     * mode is `TransformationErrorHandling.ThrowError`.
+     * 
+ * + * .google.privacy.dlp.v2.TransformationErrorHandling transformation_error_handling = 3; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.TransformationErrorHandling, + com.google.privacy.dlp.v2.TransformationErrorHandling.Builder, + com.google.privacy.dlp.v2.TransformationErrorHandlingOrBuilder> + getTransformationErrorHandlingFieldBuilder() { + if (transformationErrorHandlingBuilder_ == null) { + transformationErrorHandlingBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.TransformationErrorHandling, + com.google.privacy.dlp.v2.TransformationErrorHandling.Builder, + com.google.privacy.dlp.v2.TransformationErrorHandlingOrBuilder>( + getTransformationErrorHandling(), getParentForChildren(), isClean()); + transformationErrorHandling_ = null; + } + return transformationErrorHandlingBuilder_; + } + @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/DeidentifyConfigOrBuilder.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DeidentifyConfigOrBuilder.java index 87d2310b..c9640fb9 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,5 +102,47 @@ public interface DeidentifyConfigOrBuilder */ com.google.privacy.dlp.v2.RecordTransformationsOrBuilder getRecordTransformationsOrBuilder(); + /** + * + * + *
+   * Mode for handling transformation errors. If left unspecified, the default
+   * mode is `TransformationErrorHandling.ThrowError`.
+   * 
+ * + * .google.privacy.dlp.v2.TransformationErrorHandling transformation_error_handling = 3; + * + * + * @return Whether the transformationErrorHandling field is set. + */ + boolean hasTransformationErrorHandling(); + /** + * + * + *
+   * Mode for handling transformation errors. If left unspecified, the default
+   * mode is `TransformationErrorHandling.ThrowError`.
+   * 
+ * + * .google.privacy.dlp.v2.TransformationErrorHandling transformation_error_handling = 3; + * + * + * @return The transformationErrorHandling. + */ + com.google.privacy.dlp.v2.TransformationErrorHandling getTransformationErrorHandling(); + /** + * + * + *
+   * Mode for handling transformation errors. If left unspecified, the default
+   * mode is `TransformationErrorHandling.ThrowError`.
+   * 
+ * + * .google.privacy.dlp.v2.TransformationErrorHandling transformation_error_handling = 3; + * + */ + com.google.privacy.dlp.v2.TransformationErrorHandlingOrBuilder + getTransformationErrorHandlingOrBuilder(); + public com.google.privacy.dlp.v2.DeidentifyConfig.TransformationCase getTransformationCase(); } diff --git a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DeleteDeidentifyTemplateRequest.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DeleteDeidentifyTemplateRequest.java index 04eaa9fa..b7f29d6e 100644 --- a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DeleteDeidentifyTemplateRequest.java +++ b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DeleteDeidentifyTemplateRequest.java @@ -118,8 +118,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Required. Resource name of the organization and deidentify template to be deleted,
-   * for example `organizations/433245324/deidentifyTemplates/432452342` or
+   * Required. Resource name of the organization and deidentify template to be
+   * deleted, for example
+   * `organizations/433245324/deidentifyTemplates/432452342` or
    * projects/project-id/deidentifyTemplates/432452342.
    * 
* @@ -144,8 +145,9 @@ public java.lang.String getName() { * * *
-   * Required. Resource name of the organization and deidentify template to be deleted,
-   * for example `organizations/433245324/deidentifyTemplates/432452342` or
+   * Required. Resource name of the organization and deidentify template to be
+   * deleted, for example
+   * `organizations/433245324/deidentifyTemplates/432452342` or
    * projects/project-id/deidentifyTemplates/432452342.
    * 
* @@ -491,8 +493,9 @@ public Builder mergeFrom( * * *
-     * Required. Resource name of the organization and deidentify template to be deleted,
-     * for example `organizations/433245324/deidentifyTemplates/432452342` or
+     * Required. Resource name of the organization and deidentify template to be
+     * deleted, for example
+     * `organizations/433245324/deidentifyTemplates/432452342` or
      * projects/project-id/deidentifyTemplates/432452342.
      * 
* @@ -517,8 +520,9 @@ public java.lang.String getName() { * * *
-     * Required. Resource name of the organization and deidentify template to be deleted,
-     * for example `organizations/433245324/deidentifyTemplates/432452342` or
+     * Required. Resource name of the organization and deidentify template to be
+     * deleted, for example
+     * `organizations/433245324/deidentifyTemplates/432452342` or
      * projects/project-id/deidentifyTemplates/432452342.
      * 
* @@ -543,8 +547,9 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * Required. Resource name of the organization and deidentify template to be deleted,
-     * for example `organizations/433245324/deidentifyTemplates/432452342` or
+     * Required. Resource name of the organization and deidentify template to be
+     * deleted, for example
+     * `organizations/433245324/deidentifyTemplates/432452342` or
      * projects/project-id/deidentifyTemplates/432452342.
      * 
* @@ -568,8 +573,9 @@ public Builder setName(java.lang.String value) { * * *
-     * Required. Resource name of the organization and deidentify template to be deleted,
-     * for example `organizations/433245324/deidentifyTemplates/432452342` or
+     * Required. Resource name of the organization and deidentify template to be
+     * deleted, for example
+     * `organizations/433245324/deidentifyTemplates/432452342` or
      * projects/project-id/deidentifyTemplates/432452342.
      * 
* @@ -589,8 +595,9 @@ public Builder clearName() { * * *
-     * Required. Resource name of the organization and deidentify template to be deleted,
-     * for example `organizations/433245324/deidentifyTemplates/432452342` or
+     * Required. Resource name of the organization and deidentify template to be
+     * deleted, for example
+     * `organizations/433245324/deidentifyTemplates/432452342` or
      * projects/project-id/deidentifyTemplates/432452342.
      * 
* diff --git a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DeleteDeidentifyTemplateRequestOrBuilder.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DeleteDeidentifyTemplateRequestOrBuilder.java index 4487162a..c3ef7bda 100644 --- a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DeleteDeidentifyTemplateRequestOrBuilder.java +++ b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DeleteDeidentifyTemplateRequestOrBuilder.java @@ -27,8 +27,9 @@ public interface DeleteDeidentifyTemplateRequestOrBuilder * * *
-   * Required. Resource name of the organization and deidentify template to be deleted,
-   * for example `organizations/433245324/deidentifyTemplates/432452342` or
+   * Required. Resource name of the organization and deidentify template to be
+   * deleted, for example
+   * `organizations/433245324/deidentifyTemplates/432452342` or
    * projects/project-id/deidentifyTemplates/432452342.
    * 
* @@ -43,8 +44,9 @@ public interface DeleteDeidentifyTemplateRequestOrBuilder * * *
-   * Required. Resource name of the organization and deidentify template to be deleted,
-   * for example `organizations/433245324/deidentifyTemplates/432452342` or
+   * Required. Resource name of the organization and deidentify template to be
+   * deleted, for example
+   * `organizations/433245324/deidentifyTemplates/432452342` or
    * projects/project-id/deidentifyTemplates/432452342.
    * 
* diff --git a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DeleteInspectTemplateRequest.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DeleteInspectTemplateRequest.java index d2844d3d..9e9f8057 100644 --- a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DeleteInspectTemplateRequest.java +++ b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DeleteInspectTemplateRequest.java @@ -117,9 +117,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Required. Resource name of the organization and inspectTemplate to be deleted, for
-   * example `organizations/433245324/inspectTemplates/432452342` or
-   * projects/project-id/inspectTemplates/432452342.
+   * Required. Resource name of the organization and inspectTemplate to be
+   * deleted, for example `organizations/433245324/inspectTemplates/432452342`
+   * or projects/project-id/inspectTemplates/432452342.
    * 
* * @@ -143,9 +143,9 @@ public java.lang.String getName() { * * *
-   * Required. Resource name of the organization and inspectTemplate to be deleted, for
-   * example `organizations/433245324/inspectTemplates/432452342` or
-   * projects/project-id/inspectTemplates/432452342.
+   * Required. Resource name of the organization and inspectTemplate to be
+   * deleted, for example `organizations/433245324/inspectTemplates/432452342`
+   * or projects/project-id/inspectTemplates/432452342.
    * 
* * @@ -490,9 +490,9 @@ public Builder mergeFrom( * * *
-     * Required. Resource name of the organization and inspectTemplate to be deleted, for
-     * example `organizations/433245324/inspectTemplates/432452342` or
-     * projects/project-id/inspectTemplates/432452342.
+     * Required. Resource name of the organization and inspectTemplate to be
+     * deleted, for example `organizations/433245324/inspectTemplates/432452342`
+     * or projects/project-id/inspectTemplates/432452342.
      * 
* * @@ -516,9 +516,9 @@ public java.lang.String getName() { * * *
-     * Required. Resource name of the organization and inspectTemplate to be deleted, for
-     * example `organizations/433245324/inspectTemplates/432452342` or
-     * projects/project-id/inspectTemplates/432452342.
+     * Required. Resource name of the organization and inspectTemplate to be
+     * deleted, for example `organizations/433245324/inspectTemplates/432452342`
+     * or projects/project-id/inspectTemplates/432452342.
      * 
* * @@ -542,9 +542,9 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * Required. Resource name of the organization and inspectTemplate to be deleted, for
-     * example `organizations/433245324/inspectTemplates/432452342` or
-     * projects/project-id/inspectTemplates/432452342.
+     * Required. Resource name of the organization and inspectTemplate to be
+     * deleted, for example `organizations/433245324/inspectTemplates/432452342`
+     * or projects/project-id/inspectTemplates/432452342.
      * 
* * @@ -567,9 +567,9 @@ public Builder setName(java.lang.String value) { * * *
-     * Required. Resource name of the organization and inspectTemplate to be deleted, for
-     * example `organizations/433245324/inspectTemplates/432452342` or
-     * projects/project-id/inspectTemplates/432452342.
+     * Required. Resource name of the organization and inspectTemplate to be
+     * deleted, for example `organizations/433245324/inspectTemplates/432452342`
+     * or projects/project-id/inspectTemplates/432452342.
      * 
* * @@ -588,9 +588,9 @@ public Builder clearName() { * * *
-     * Required. Resource name of the organization and inspectTemplate to be deleted, for
-     * example `organizations/433245324/inspectTemplates/432452342` or
-     * projects/project-id/inspectTemplates/432452342.
+     * Required. Resource name of the organization and inspectTemplate to be
+     * deleted, for example `organizations/433245324/inspectTemplates/432452342`
+     * or projects/project-id/inspectTemplates/432452342.
      * 
* * diff --git a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DeleteInspectTemplateRequestOrBuilder.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DeleteInspectTemplateRequestOrBuilder.java index cb4a86fd..0e0650e0 100644 --- a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DeleteInspectTemplateRequestOrBuilder.java +++ b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DeleteInspectTemplateRequestOrBuilder.java @@ -27,9 +27,9 @@ public interface DeleteInspectTemplateRequestOrBuilder * * *
-   * Required. Resource name of the organization and inspectTemplate to be deleted, for
-   * example `organizations/433245324/inspectTemplates/432452342` or
-   * projects/project-id/inspectTemplates/432452342.
+   * Required. Resource name of the organization and inspectTemplate to be
+   * deleted, for example `organizations/433245324/inspectTemplates/432452342`
+   * or projects/project-id/inspectTemplates/432452342.
    * 
* * @@ -43,9 +43,9 @@ public interface DeleteInspectTemplateRequestOrBuilder * * *
-   * Required. Resource name of the organization and inspectTemplate to be deleted, for
-   * example `organizations/433245324/inspectTemplates/432452342` or
-   * projects/project-id/inspectTemplates/432452342.
+   * Required. Resource name of the organization and inspectTemplate to be
+   * deleted, for example `organizations/433245324/inspectTemplates/432452342`
+   * or projects/project-id/inspectTemplates/432452342.
    * 
* * diff --git a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DeleteStoredInfoTypeRequest.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DeleteStoredInfoTypeRequest.java index e84be35e..51de30f4 100644 --- a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DeleteStoredInfoTypeRequest.java +++ b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DeleteStoredInfoTypeRequest.java @@ -117,8 +117,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Required. Resource name of the organization and storedInfoType to be deleted, for
-   * example `organizations/433245324/storedInfoTypes/432452342` or
+   * Required. Resource name of the organization and storedInfoType to be
+   * deleted, for example `organizations/433245324/storedInfoTypes/432452342` or
    * projects/project-id/storedInfoTypes/432452342.
    * 
* @@ -143,8 +143,8 @@ public java.lang.String getName() { * * *
-   * Required. Resource name of the organization and storedInfoType to be deleted, for
-   * example `organizations/433245324/storedInfoTypes/432452342` or
+   * Required. Resource name of the organization and storedInfoType to be
+   * deleted, for example `organizations/433245324/storedInfoTypes/432452342` or
    * projects/project-id/storedInfoTypes/432452342.
    * 
* @@ -490,8 +490,8 @@ public Builder mergeFrom( * * *
-     * Required. Resource name of the organization and storedInfoType to be deleted, for
-     * example `organizations/433245324/storedInfoTypes/432452342` or
+     * Required. Resource name of the organization and storedInfoType to be
+     * deleted, for example `organizations/433245324/storedInfoTypes/432452342` or
      * projects/project-id/storedInfoTypes/432452342.
      * 
* @@ -516,8 +516,8 @@ public java.lang.String getName() { * * *
-     * Required. Resource name of the organization and storedInfoType to be deleted, for
-     * example `organizations/433245324/storedInfoTypes/432452342` or
+     * Required. Resource name of the organization and storedInfoType to be
+     * deleted, for example `organizations/433245324/storedInfoTypes/432452342` or
      * projects/project-id/storedInfoTypes/432452342.
      * 
* @@ -542,8 +542,8 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * Required. Resource name of the organization and storedInfoType to be deleted, for
-     * example `organizations/433245324/storedInfoTypes/432452342` or
+     * Required. Resource name of the organization and storedInfoType to be
+     * deleted, for example `organizations/433245324/storedInfoTypes/432452342` or
      * projects/project-id/storedInfoTypes/432452342.
      * 
* @@ -567,8 +567,8 @@ public Builder setName(java.lang.String value) { * * *
-     * Required. Resource name of the organization and storedInfoType to be deleted, for
-     * example `organizations/433245324/storedInfoTypes/432452342` or
+     * Required. Resource name of the organization and storedInfoType to be
+     * deleted, for example `organizations/433245324/storedInfoTypes/432452342` or
      * projects/project-id/storedInfoTypes/432452342.
      * 
* @@ -588,8 +588,8 @@ public Builder clearName() { * * *
-     * Required. Resource name of the organization and storedInfoType to be deleted, for
-     * example `organizations/433245324/storedInfoTypes/432452342` or
+     * Required. Resource name of the organization and storedInfoType to be
+     * deleted, for example `organizations/433245324/storedInfoTypes/432452342` or
      * projects/project-id/storedInfoTypes/432452342.
      * 
* diff --git a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DeleteStoredInfoTypeRequestOrBuilder.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DeleteStoredInfoTypeRequestOrBuilder.java index 75d4b810..2034e22b 100644 --- a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DeleteStoredInfoTypeRequestOrBuilder.java +++ b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DeleteStoredInfoTypeRequestOrBuilder.java @@ -27,8 +27,8 @@ public interface DeleteStoredInfoTypeRequestOrBuilder * * *
-   * Required. Resource name of the organization and storedInfoType to be deleted, for
-   * example `organizations/433245324/storedInfoTypes/432452342` or
+   * Required. Resource name of the organization and storedInfoType to be
+   * deleted, for example `organizations/433245324/storedInfoTypes/432452342` or
    * projects/project-id/storedInfoTypes/432452342.
    * 
* @@ -43,8 +43,8 @@ public interface DeleteStoredInfoTypeRequestOrBuilder * * *
-   * Required. Resource name of the organization and storedInfoType to be deleted, for
-   * example `organizations/433245324/storedInfoTypes/432452342` or
+   * Required. Resource name of the organization and storedInfoType to be
+   * deleted, for example `organizations/433245324/storedInfoTypes/432452342` or
    * projects/project-id/storedInfoTypes/432452342.
    * 
* 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 9f2e0d78..2e343949 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 @@ -235,7 +235,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Possible states of a job.
+   * Possible states of a job. New items may be added.
    * 
* * Protobuf enum {@code google.privacy.dlp.v2.DlpJob.JobState} @@ -265,7 +265,8 @@ public enum JobState implements com.google.protobuf.ProtocolMessageEnum { * * *
-     * The job is currently running.
+     * The job is currently running. Once a job has finished it will transition
+     * to FAILED or DONE.
      * 
* * RUNNING = 2; @@ -301,6 +302,19 @@ public enum JobState implements com.google.protobuf.ProtocolMessageEnum { * FAILED = 5; */ FAILED(5), + /** + * + * + *
+     * 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
+     * calls to hybridInspect may be made. ACTIVE jobs can transition to DONE.
+     * 
+ * + * ACTIVE = 6; + */ + ACTIVE(6), UNRECOGNIZED(-1), ; @@ -328,7 +342,8 @@ public enum JobState implements com.google.protobuf.ProtocolMessageEnum { * * *
-     * The job is currently running.
+     * The job is currently running. Once a job has finished it will transition
+     * to FAILED or DONE.
      * 
* * RUNNING = 2; @@ -364,6 +379,19 @@ public enum JobState implements com.google.protobuf.ProtocolMessageEnum { * FAILED = 5; */ public static final int FAILED_VALUE = 5; + /** + * + * + *
+     * 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
+     * calls to hybridInspect may be made. ACTIVE jobs can transition to DONE.
+     * 
+ * + * ACTIVE = 6; + */ + public static final int ACTIVE_VALUE = 6; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -401,6 +429,8 @@ public static JobState forNumber(int value) { return CANCELED; case 5: return FAILED; + case 6: + return ACTIVE; default: return null; } 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 73e87501..54bbf880 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 @@ -79,6 +79,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_privacy_dlp_v2_Finding_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_privacy_dlp_v2_Finding_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_privacy_dlp_v2_Finding_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_privacy_dlp_v2_Finding_LabelsEntry_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_privacy_dlp_v2_Location_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -99,6 +103,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_privacy_dlp_v2_TableLocation_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_privacy_dlp_v2_TableLocation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_privacy_dlp_v2_Container_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_privacy_dlp_v2_Container_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_privacy_dlp_v2_Range_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -171,6 +179,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_privacy_dlp_v2_InspectDataSourceDetails_Result_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_privacy_dlp_v2_InspectDataSourceDetails_Result_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_privacy_dlp_v2_HybridInspectStatistics_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_privacy_dlp_v2_HybridInspectStatistics_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_privacy_dlp_v2_InfoTypeDescription_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -327,6 +339,18 @@ 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_TransformationErrorHandling_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_privacy_dlp_v2_TransformationErrorHandling_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_privacy_dlp_v2_TransformationErrorHandling_ThrowError_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_privacy_dlp_v2_TransformationErrorHandling_ThrowError_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_privacy_dlp_v2_TransformationErrorHandling_LeaveUntransformed_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_privacy_dlp_v2_TransformationErrorHandling_LeaveUntransformed_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_privacy_dlp_v2_PrimitiveTransformation_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -451,6 +475,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_privacy_dlp_v2_Schedule_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_privacy_dlp_v2_Schedule_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_privacy_dlp_v2_Manual_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_privacy_dlp_v2_Manual_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_privacy_dlp_v2_InspectTemplate_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -579,6 +607,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_privacy_dlp_v2_CancelDlpJobRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_privacy_dlp_v2_CancelDlpJobRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_privacy_dlp_v2_FinishDlpJobRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_privacy_dlp_v2_FinishDlpJobRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_privacy_dlp_v2_DeleteDlpJobRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -655,6 +687,30 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_privacy_dlp_v2_DeleteStoredInfoTypeRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_privacy_dlp_v2_DeleteStoredInfoTypeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_privacy_dlp_v2_HybridInspectJobTriggerRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_privacy_dlp_v2_HybridInspectJobTriggerRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_privacy_dlp_v2_HybridInspectDlpJobRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_privacy_dlp_v2_HybridInspectDlpJobRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_privacy_dlp_v2_HybridContentItem_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_privacy_dlp_v2_HybridContentItem_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_privacy_dlp_v2_HybridFindingDetails_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_privacy_dlp_v2_HybridFindingDetails_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_privacy_dlp_v2_HybridFindingDetails_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_privacy_dlp_v2_HybridFindingDetails_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_privacy_dlp_v2_HybridInspectResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_privacy_dlp_v2_HybridInspectResponse_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -725,596 +781,641 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ble.Row\0323\n\003Row\022,\n\006values\030\001 \003(\0132\034.google." + "privacy.dlp.v2.Value\"]\n\rInspectResult\0220\n" + "\010findings\030\001 \003(\0132\036.google.privacy.dlp.v2." - + "Finding\022\032\n\022findings_truncated\030\002 \001(\010\"\235\002\n\007" - + "Finding\022\r\n\005quote\030\001 \001(\t\0222\n\tinfo_type\030\002 \001(" - + "\0132\037.google.privacy.dlp.v2.InfoType\0225\n\nli" - + "kelihood\030\003 \001(\0162!.google.privacy.dlp.v2.L" - + "ikelihood\0221\n\010location\030\004 \001(\0132\037.google.pri" - + "vacy.dlp.v2.Location\022/\n\013create_time\030\006 \001(" - + "\0132\032.google.protobuf.Timestamp\0224\n\nquote_i" - + "nfo\030\007 \001(\0132 .google.privacy.dlp.v2.QuoteI" - + "nfo\"\266\001\n\010Location\0220\n\nbyte_range\030\001 \001(\0132\034.g" - + "oogle.privacy.dlp.v2.Range\0225\n\017codepoint_" - + "range\030\002 \001(\0132\034.google.privacy.dlp.v2.Rang" - + "e\022A\n\021content_locations\030\007 \003(\0132&.google.pr" - + "ivacy.dlp.v2.ContentLocation\"\321\002\n\017Content" - + "Location\022\026\n\016container_name\030\001 \001(\t\022@\n\017reco" - + "rd_location\030\002 \001(\0132%.google.privacy.dlp.v" - + "2.RecordLocationH\000\022>\n\016image_location\030\003 \001" - + "(\0132$.google.privacy.dlp.v2.ImageLocation" - + "H\000\022D\n\021document_location\030\005 \001(\0132\'.google.p" - + "rivacy.dlp.v2.DocumentLocationH\000\0227\n\023cont" - + "ainer_timestamp\030\006 \001(\0132\032.google.protobuf." - + "Timestamp\022\031\n\021container_version\030\007 \001(\tB\n\n\010" - + "location\"\'\n\020DocumentLocation\022\023\n\013file_off" - + "set\030\001 \001(\003\"\266\001\n\016RecordLocation\0224\n\nrecord_k" - + "ey\030\001 \001(\0132 .google.privacy.dlp.v2.RecordK" - + "ey\0220\n\010field_id\030\002 \001(\0132\036.google.privacy.dl" - + "p.v2.FieldId\022<\n\016table_location\030\003 \001(\0132$.g" - + "oogle.privacy.dlp.v2.TableLocation\"\"\n\rTa" - + "bleLocation\022\021\n\trow_index\030\001 \001(\003\"#\n\005Range\022" - + "\r\n\005start\030\001 \001(\003\022\013\n\003end\030\002 \001(\003\"K\n\rImageLoca" - + "tion\022:\n\016bounding_boxes\030\001 \003(\0132\".google.pr" - + "ivacy.dlp.v2.BoundingBox\"G\n\013BoundingBox\022" - + "\013\n\003top\030\001 \001(\005\022\014\n\004left\030\002 \001(\005\022\r\n\005width\030\003 \001(" - + "\005\022\016\n\006height\030\004 \001(\005\"\212\004\n\022RedactImageRequest" - + "\022@\n\006parent\030\001 \001(\tB0\372A-\n+cloudresourcemana" - + "ger.googleapis.com/Project\022\023\n\013location_i" - + "d\030\010 \001(\t\022<\n\016inspect_config\030\002 \001(\0132$.google" - + ".privacy.dlp.v2.InspectConfig\022_\n\027image_r" - + "edaction_configs\030\005 \003(\0132>.google.privacy." - + "dlp.v2.RedactImageRequest.ImageRedaction" - + "Config\022\030\n\020include_findings\030\006 \001(\010\0229\n\tbyte" - + "_item\030\007 \001(\0132&.google.privacy.dlp.v2.Byte" - + "ContentItem\032\250\001\n\024ImageRedactionConfig\0224\n\t" - + "info_type\030\001 \001(\0132\037.google.privacy.dlp.v2." - + "InfoTypeH\000\022\031\n\017redact_all_text\030\002 \001(\010H\000\0225\n" - + "\017redaction_color\030\003 \001(\0132\034.google.privacy." - + "dlp.v2.ColorB\010\n\006target\"1\n\005Color\022\013\n\003red\030\001" - + " \001(\002\022\r\n\005green\030\002 \001(\002\022\014\n\004blue\030\003 \001(\002\"\203\001\n\023Re" - + "dactImageResponse\022\026\n\016redacted_image\030\001 \001(" - + "\014\022\026\n\016extracted_text\030\002 \001(\t\022<\n\016inspect_res" - + "ult\030\003 \001(\0132$.google.privacy.dlp.v2.Inspec" - + "tResult\"\346\002\n\030DeidentifyContentRequest\022@\n\006" - + "parent\030\001 \001(\tB0\372A-\n+cloudresourcemanager." - + "googleapis.com/Project\022B\n\021deidentify_con" - + "fig\030\002 \001(\0132\'.google.privacy.dlp.v2.Deiden" - + "tifyConfig\022<\n\016inspect_config\030\003 \001(\0132$.goo" - + "gle.privacy.dlp.v2.InspectConfig\0220\n\004item" - + "\030\004 \001(\0132\".google.privacy.dlp.v2.ContentIt" - + "em\022\035\n\025inspect_template_name\030\005 \001(\t\022 \n\030dei" - + "dentify_template_name\030\006 \001(\t\022\023\n\013location_" - + "id\030\007 \001(\t\"\216\001\n\031DeidentifyContentResponse\0220" - + "\n\004item\030\001 \001(\0132\".google.privacy.dlp.v2.Con" - + "tentItem\022?\n\010overview\030\002 \001(\0132-.google.priv" - + "acy.dlp.v2.TransformationOverview\"\351\002\n\030Re" - + "identifyContentRequest\022C\n\006parent\030\001 \001(\tB3" - + "\340A\002\372A-\n+cloudresourcemanager.googleapis." - + "com/Project\022B\n\021reidentify_config\030\002 \001(\0132\'" - + ".google.privacy.dlp.v2.DeidentifyConfig\022" - + "<\n\016inspect_config\030\003 \001(\0132$.google.privacy" - + ".dlp.v2.InspectConfig\0220\n\004item\030\004 \001(\0132\".go" - + "ogle.privacy.dlp.v2.ContentItem\022\035\n\025inspe" - + "ct_template_name\030\005 \001(\t\022 \n\030reidentify_tem" - + "plate_name\030\006 \001(\t\022\023\n\013location_id\030\007 \001(\t\"\216\001" - + "\n\031ReidentifyContentResponse\0220\n\004item\030\001 \001(" - + "\0132\".google.privacy.dlp.v2.ContentItem\022?\n" - + "\010overview\030\002 \001(\0132-.google.privacy.dlp.v2." - + "TransformationOverview\"\375\001\n\025InspectConten" - + "tRequest\022@\n\006parent\030\001 \001(\tB0\372A-\n+cloudreso" - + "urcemanager.googleapis.com/Project\022<\n\016in" - + "spect_config\030\002 \001(\0132$.google.privacy.dlp." - + "v2.InspectConfig\0220\n\004item\030\003 \001(\0132\".google." - + "privacy.dlp.v2.ContentItem\022\035\n\025inspect_te" - + "mplate_name\030\004 \001(\t\022\023\n\013location_id\030\005 \001(\t\"N" - + "\n\026InspectContentResponse\0224\n\006result\030\001 \001(\013" - + "2$.google.privacy.dlp.v2.InspectResult\"\267" - + "\002\n\023OutputStorageConfig\0225\n\005table\030\001 \001(\0132$." - + "google.privacy.dlp.v2.BigQueryTableH\000\022N\n" - + "\routput_schema\030\003 \001(\01627.google.privacy.dl" - + "p.v2.OutputStorageConfig.OutputSchema\"\220\001" - + "\n\014OutputSchema\022\035\n\031OUTPUT_SCHEMA_UNSPECIF" - + "IED\020\000\022\021\n\rBASIC_COLUMNS\020\001\022\017\n\013GCS_COLUMNS\020" - + "\002\022\025\n\021DATASTORE_COLUMNS\020\003\022\025\n\021BIG_QUERY_CO" - + "LUMNS\020\004\022\017\n\013ALL_COLUMNS\020\005B\006\n\004type\"R\n\rInfo" - + "TypeStats\0222\n\tinfo_type\030\001 \001(\0132\037.google.pr" - + "ivacy.dlp.v2.InfoType\022\r\n\005count\030\002 \001(\003\"\335\003\n" - + "\030InspectDataSourceDetails\022[\n\021requested_o" - + "ptions\030\002 \001(\0132@.google.privacy.dlp.v2.Ins" - + "pectDataSourceDetails.RequestedOptions\022F" - + "\n\006result\030\003 \001(\01326.google.privacy.dlp.v2.I" - + "nspectDataSourceDetails.Result\032\232\001\n\020Reque" - + "stedOptions\022I\n\031snapshot_inspect_template" - + "\030\001 \001(\0132&.google.privacy.dlp.v2.InspectTe" - + "mplate\022;\n\njob_config\030\003 \001(\0132\'.google.priv" - + "acy.dlp.v2.InspectJobConfig\032\177\n\006Result\022\027\n" - + "\017processed_bytes\030\001 \001(\003\022\035\n\025total_estimate" - + "d_bytes\030\002 \001(\003\022=\n\017info_type_stats\030\003 \003(\0132$" - + ".google.privacy.dlp.v2.InfoTypeStats\"\220\001\n" - + "\023InfoTypeDescription\022\014\n\004name\030\001 \001(\t\022\024\n\014di" - + "splay_name\030\002 \001(\t\022@\n\014supported_by\030\003 \003(\0162*" - + ".google.privacy.dlp.v2.InfoTypeSupported" - + "By\022\023\n\013description\030\004 \001(\t\"R\n\024ListInfoTypes" - + "Request\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\025ListInfoT" - + "ypesResponse\022>\n\ninfo_types\030\001 \003(\0132*.googl" - + "e.privacy.dlp.v2.InfoTypeDescription\"\301\001\n" - + "\025RiskAnalysisJobConfig\022<\n\016privacy_metric" - + "\030\001 \001(\0132$.google.privacy.dlp.v2.PrivacyMe" - + "tric\022:\n\014source_table\030\002 \001(\0132$.google.priv" - + "acy.dlp.v2.BigQueryTable\022.\n\007actions\030\003 \003(" - + "\0132\035.google.privacy.dlp.v2.Action\"\274\001\n\007Qua" - + "siId\0222\n\005field\030\001 \001(\0132\036.google.privacy.dlp" - + ".v2.FieldIdB\003\340A\002\0224\n\tinfo_type\030\002 \001(\0132\037.go" - + "ogle.privacy.dlp.v2.InfoTypeH\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\020StatisticalT" - + "able\0228\n\005table\030\003 \001(\0132$.google.privacy.dlp" - + ".v2.BigQueryTableB\003\340A\002\022T\n\tquasi_ids\030\001 \003(" - + "\0132<.google.privacy.dlp.v2.StatisticalTab" - + "le.QuasiIdentifierFieldB\003\340A\002\022?\n\022relative" - + "_frequency\030\002 \001(\0132\036.google.privacy.dlp.v2" - + ".FieldIdB\003\340A\002\032Y\n\024QuasiIdentifierField\022-\n" - + "\005field\030\001 \001(\0132\036.google.privacy.dlp.v2.Fie" - + "ldId\022\022\n\ncustom_tag\030\002 \001(\t\"\223\017\n\rPrivacyMetr" - + "ic\022[\n\026numerical_stats_config\030\001 \001(\01329.goo" - + "gle.privacy.dlp.v2.PrivacyMetric.Numeric" - + "alStatsConfigH\000\022_\n\030categorical_stats_con" - + "fig\030\002 \001(\0132;.google.privacy.dlp.v2.Privac" - + "yMetric.CategoricalStatsConfigH\000\022S\n\022k_an" - + "onymity_config\030\003 \001(\01325.google.privacy.dl" - + "p.v2.PrivacyMetric.KAnonymityConfigH\000\022S\n" - + "\022l_diversity_config\030\004 \001(\01325.google.priva" - + "cy.dlp.v2.PrivacyMetric.LDiversityConfig" - + "H\000\022\\\n\027k_map_estimation_config\030\005 \001(\01329.go" - + "ogle.privacy.dlp.v2.PrivacyMetric.KMapEs" - + "timationConfigH\000\022n\n delta_presence_estim" - + "ation_config\030\006 \001(\0132B.google.privacy.dlp." - + "v2.PrivacyMetric.DeltaPresenceEstimation" - + "ConfigH\000\032E\n\024NumericalStatsConfig\022-\n\005fiel" - + "d\030\001 \001(\0132\036.google.privacy.dlp.v2.FieldId\032" - + "G\n\026CategoricalStatsConfig\022-\n\005field\030\001 \001(\013" - + "2\036.google.privacy.dlp.v2.FieldId\032y\n\020KAno" - + "nymityConfig\0221\n\tquasi_ids\030\001 \003(\0132\036.google" - + ".privacy.dlp.v2.FieldId\0222\n\tentity_id\030\002 \001" - + "(\0132\037.google.privacy.dlp.v2.EntityId\032\202\001\n\020" - + "LDiversityConfig\0221\n\tquasi_ids\030\001 \003(\0132\036.go" - + "ogle.privacy.dlp.v2.FieldId\022;\n\023sensitive" - + "_attribute\030\002 \001(\0132\036.google.privacy.dlp.v2" - + ".FieldId\032\201\006\n\024KMapEstimationConfig\022]\n\tqua" - + "si_ids\030\001 \003(\0132E.google.privacy.dlp.v2.Pri" - + "vacyMetric.KMapEstimationConfig.TaggedFi" - + "eldB\003\340A\002\022\023\n\013region_code\030\002 \001(\t\022b\n\020auxilia" - + "ry_tables\030\003 \003(\0132H.google.privacy.dlp.v2." - + "PrivacyMetric.KMapEstimationConfig.Auxil" - + "iaryTable\032\300\001\n\013TaggedField\0222\n\005field\030\001 \001(\013" - + "2\036.google.privacy.dlp.v2.FieldIdB\003\340A\002\0224\n" - + "\tinfo_type\030\002 \001(\0132\037.google.privacy.dlp.v2" - + ".InfoTypeH\000\022\024\n\ncustom_tag\030\003 \001(\tH\000\022*\n\010inf" - + "erred\030\004 \001(\0132\026.google.protobuf.EmptyH\000B\005\n" - + "\003tag\032\315\002\n\016AuxiliaryTable\0228\n\005table\030\003 \001(\0132$" - + ".google.privacy.dlp.v2.BigQueryTableB\003\340A" - + "\002\022m\n\tquasi_ids\030\001 \003(\0132U.google.privacy.dl" - + "p.v2.PrivacyMetric.KMapEstimationConfig." - + "AuxiliaryTable.QuasiIdFieldB\003\340A\002\022?\n\022rela" - + "tive_frequency\030\002 \001(\0132\036.google.privacy.dl" - + "p.v2.FieldIdB\003\340A\002\032Q\n\014QuasiIdField\022-\n\005fie" - + "ld\030\001 \001(\0132\036.google.privacy.dlp.v2.FieldId" - + "\022\022\n\ncustom_tag\030\002 \001(\t\032\257\001\n\035DeltaPresenceEs" - + "timationConfig\0226\n\tquasi_ids\030\001 \003(\0132\036.goog" - + "le.privacy.dlp.v2.QuasiIdB\003\340A\002\022\023\n\013region" - + "_code\030\002 \001(\t\022A\n\020auxiliary_tables\030\003 \003(\0132\'." - + "google.privacy.dlp.v2.StatisticalTableB\006" - + "\n\004type\"\362\035\n\034AnalyzeDataSourceRiskDetails\022" - + "F\n\030requested_privacy_metric\030\001 \001(\0132$.goog" - + "le.privacy.dlp.v2.PrivacyMetric\022D\n\026reque" - + "sted_source_table\030\002 \001(\0132$.google.privacy" - + ".dlp.v2.BigQueryTable\022j\n\026numerical_stats" - + "_result\030\003 \001(\0132H.google.privacy.dlp.v2.An" - + "alyzeDataSourceRiskDetails.NumericalStat" - + "sResultH\000\022n\n\030categorical_stats_result\030\004 " - + "\001(\0132J.google.privacy.dlp.v2.AnalyzeDataS" - + "ourceRiskDetails.CategoricalStatsResultH" - + "\000\022b\n\022k_anonymity_result\030\005 \001(\0132D.google.p" - + "rivacy.dlp.v2.AnalyzeDataSourceRiskDetai" - + "ls.KAnonymityResultH\000\022b\n\022l_diversity_res" - + "ult\030\006 \001(\0132D.google.privacy.dlp.v2.Analyz" - + "eDataSourceRiskDetails.LDiversityResultH" - + "\000\022k\n\027k_map_estimation_result\030\007 \001(\0132H.goo" - + "gle.privacy.dlp.v2.AnalyzeDataSourceRisk" - + "Details.KMapEstimationResultH\000\022}\n delta_" - + "presence_estimation_result\030\t \001(\0132Q.googl" - + "e.privacy.dlp.v2.AnalyzeDataSourceRiskDe" - + "tails.DeltaPresenceEstimationResultH\000\032\257\001" - + "\n\024NumericalStatsResult\022/\n\tmin_value\030\001 \001(" - + "\0132\034.google.privacy.dlp.v2.Value\022/\n\tmax_v" - + "alue\030\002 \001(\0132\034.google.privacy.dlp.v2.Value" - + "\0225\n\017quantile_values\030\004 \003(\0132\034.google.priva" - + "cy.dlp.v2.Value\032\215\003\n\026CategoricalStatsResu" - + "lt\022\225\001\n!value_frequency_histogram_buckets" - + "\030\005 \003(\0132j.google.privacy.dlp.v2.AnalyzeDa" - + "taSourceRiskDetails.CategoricalStatsResu" - + "lt.CategoricalStatsHistogramBucket\032\332\001\n\037C" - + "ategoricalStatsHistogramBucket\022#\n\033value_" - + "frequency_lower_bound\030\001 \001(\003\022#\n\033value_fre" - + "quency_upper_bound\030\002 \001(\003\022\023\n\013bucket_size\030" - + "\003 \001(\003\022<\n\rbucket_values\030\004 \003(\0132%.google.pr" - + "ivacy.dlp.v2.ValueFrequency\022\032\n\022bucket_va" - + "lue_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.AnalyzeDataSo" - + "urceRiskDetails.KAnonymityResult.KAnonym" - + "ityHistogramBucket\032t\n\032KAnonymityEquivale" - + "nceClass\0226\n\020quasi_ids_values\030\001 \003(\0132\034.goo" - + "gle.privacy.dlp.v2.Value\022\036\n\026equivalence_" - + "class_size\030\002 \001(\003\032\234\002\n\031KAnonymityHistogram" - + "Bucket\022*\n\"equivalence_class_size_lower_b" - + "ound\030\001 \001(\003\022*\n\"equivalence_class_size_upp" - + "er_bound\030\002 \001(\003\022\023\n\013bucket_size\030\003 \001(\003\022v\n\rb" - + "ucket_values\030\004 \003(\0132_.google.privacy.dlp." - + "v2.AnalyzeDataSourceRiskDetails.KAnonymi" - + "tyResult.KAnonymityEquivalenceClass\022\032\n\022b" - + "ucket_value_count\030\005 \001(\003\032\260\005\n\020LDiversityRe" - + "sult\022\223\001\n+sensitive_value_frequency_histo" - + "gram_buckets\030\005 \003(\0132^.google.privacy.dlp." - + "v2.AnalyzeDataSourceRiskDetails.LDiversi" - + "tyResult.LDiversityHistogramBucket\032\340\001\n\032L" - + "DiversityEquivalenceClass\0226\n\020quasi_ids_v" - + "alues\030\001 \003(\0132\034.google.privacy.dlp.v2.Valu" - + "e\022\036\n\026equivalence_class_size\030\002 \001(\003\022%\n\035num" - + "_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\031LDiversityHist" - + "ogramBucket\022-\n%sensitive_value_frequency" - + "_lower_bound\030\001 \001(\003\022-\n%sensitive_value_fr" - + "equency_upper_bound\030\002 \001(\003\022\023\n\013bucket_size" - + "\030\003 \001(\003\022v\n\rbucket_values\030\004 \003(\0132_.google.p" - + "rivacy.dlp.v2.AnalyzeDataSourceRiskDetai" - + "ls.LDiversityResult.LDiversityEquivalenc" - + "eClass\022\032\n\022bucket_value_count\030\005 \001(\003\032\225\004\n\024K" - + "MapEstimationResult\022\212\001\n\032k_map_estimation" - + "_histogram\030\001 \003(\0132f.google.privacy.dlp.v2" - + ".AnalyzeDataSourceRiskDetails.KMapEstima" - + "tionResult.KMapEstimationHistogramBucket" - + "\032r\n\033KMapEstimationQuasiIdValues\0226\n\020quasi" - + "_ids_values\030\001 \003(\0132\034.google.privacy.dlp.v" - + "2.Value\022\033\n\023estimated_anonymity\030\002 \001(\003\032\373\001\n" - + "\035KMapEstimationHistogramBucket\022\025\n\rmin_an" - + "onymity\030\001 \001(\003\022\025\n\rmax_anonymity\030\002 \001(\003\022\023\n\013" - + "bucket_size\030\005 \001(\003\022{\n\rbucket_values\030\006 \003(\013" - + "2d.google.privacy.dlp.v2.AnalyzeDataSour" - + "ceRiskDetails.KMapEstimationResult.KMapE" - + "stimationQuasiIdValues\022\032\n\022bucket_value_c" - + "ount\030\007 \001(\003\032\344\004\n\035DeltaPresenceEstimationRe" - + "sult\022\245\001\n#delta_presence_estimation_histo" - + "gram\030\001 \003(\0132x.google.privacy.dlp.v2.Analy" - + "zeDataSourceRiskDetails.DeltaPresenceEst" - + "imationResult.DeltaPresenceEstimationHis" - + "togramBucket\032}\n$DeltaPresenceEstimationQ" - + "uasiIdValues\0226\n\020quasi_ids_values\030\001 \003(\0132\034" - + ".google.privacy.dlp.v2.Value\022\035\n\025estimate" - + "d_probability\030\002 \001(\001\032\233\002\n&DeltaPresenceEst" - + "imationHistogramBucket\022\027\n\017min_probabilit" - + "y\030\001 \001(\001\022\027\n\017max_probability\030\002 \001(\001\022\023\n\013buck" - + "et_size\030\005 \001(\003\022\215\001\n\rbucket_values\030\006 \003(\0132v." + + "Finding\022\032\n\022findings_truncated\030\002 \001(\010\"\322\005\n\007" + + "Finding\022\014\n\004name\030\016 \001(\t\022\r\n\005quote\030\001 \001(\t\0222\n\t" + + "info_type\030\002 \001(\0132\037.google.privacy.dlp.v2." + + "InfoType\0225\n\nlikelihood\030\003 \001(\0162!.google.pr" + + "ivacy.dlp.v2.Likelihood\0221\n\010location\030\004 \001(" + + "\0132\037.google.privacy.dlp.v2.Location\022/\n\013cr" + + "eate_time\030\006 \001(\0132\032.google.protobuf.Timest" + + "amp\0224\n\nquote_info\030\007 \001(\0132 .google.privacy" + + ".dlp.v2.QuoteInfo\0225\n\rresource_name\030\010 \001(\t" + + "B\036\372A\033\n\031dlp.googleapis.com/DlpJob\0228\n\014trig" + + "ger_name\030\t \001(\tB\"\372A\037\n\035dlp.googleapis.com/" + + "JobTrigger\022:\n\006labels\030\n \003(\0132*.google.priv" + + "acy.dlp.v2.Finding.LabelsEntry\0223\n\017job_cr" + + "eate_time\030\013 \001(\0132\032.google.protobuf.Timest" + + "amp\0220\n\010job_name\030\r \001(\tB\036\372A\033\n\031dlp.googleap" + + "is.com/DlpJob\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(" + + "\t\022\r\n\005value\030\002 \001(\t:\0028\001:b\352A_\n!dlp.googleapi" + + "s.com/InspectFinding\022:projects/{project}" + + "/locations/{location}/findings/{finding}" + + "\"\353\001\n\010Location\0220\n\nbyte_range\030\001 \001(\0132\034.goog" + + "le.privacy.dlp.v2.Range\0225\n\017codepoint_ran" + + "ge\030\002 \001(\0132\034.google.privacy.dlp.v2.Range\022A" + + "\n\021content_locations\030\007 \003(\0132&.google.priva" + + "cy.dlp.v2.ContentLocation\0223\n\tcontainer\030\010" + + " \001(\0132 .google.privacy.dlp.v2.Container\"\321" + + "\002\n\017ContentLocation\022\026\n\016container_name\030\001 \001" + + "(\t\022@\n\017record_location\030\002 \001(\0132%.google.pri" + + "vacy.dlp.v2.RecordLocationH\000\022>\n\016image_lo" + + "cation\030\003 \001(\0132$.google.privacy.dlp.v2.Ima" + + "geLocationH\000\022D\n\021document_location\030\005 \001(\0132" + + "\'.google.privacy.dlp.v2.DocumentLocation" + + "H\000\0227\n\023container_timestamp\030\006 \001(\0132\032.google" + + ".protobuf.Timestamp\022\031\n\021container_version" + + "\030\007 \001(\tB\n\n\010location\"\'\n\020DocumentLocation\022\023" + + "\n\013file_offset\030\001 \001(\003\"\266\001\n\016RecordLocation\0224" + + "\n\nrecord_key\030\001 \001(\0132 .google.privacy.dlp." + + "v2.RecordKey\0220\n\010field_id\030\002 \001(\0132\036.google." + + "privacy.dlp.v2.FieldId\022<\n\016table_location" + + "\030\003 \001(\0132$.google.privacy.dlp.v2.TableLoca" + + "tion\"\"\n\rTableLocation\022\021\n\trow_index\030\001 \001(\003" + + "\"\254\001\n\tContainer\022\014\n\004type\030\001 \001(\t\022\022\n\nproject_" + + "id\030\002 \001(\t\022\021\n\tfull_path\030\003 \001(\t\022\021\n\troot_path" + + "\030\004 \001(\t\022\025\n\rrelative_path\030\005 \001(\t\022/\n\013update_" + + "time\030\006 \001(\0132\032.google.protobuf.Timestamp\022\017" + + "\n\007version\030\007 \001(\t\"#\n\005Range\022\r\n\005start\030\001 \001(\003\022" + + "\013\n\003end\030\002 \001(\003\"K\n\rImageLocation\022:\n\016boundin" + + "g_boxes\030\001 \003(\0132\".google.privacy.dlp.v2.Bo" + + "undingBox\"G\n\013BoundingBox\022\013\n\003top\030\001 \001(\005\022\014\n" + + "\004left\030\002 \001(\005\022\r\n\005width\030\003 \001(\005\022\016\n\006height\030\004 \001" + + "(\005\"\212\004\n\022RedactImageRequest\022@\n\006parent\030\001 \001(" + + "\tB0\372A-\n+cloudresourcemanager.googleapis." + + "com/Project\022\023\n\013location_id\030\010 \001(\t\022<\n\016insp" + + "ect_config\030\002 \001(\0132$.google.privacy.dlp.v2" + + ".InspectConfig\022_\n\027image_redaction_config" + + "s\030\005 \003(\0132>.google.privacy.dlp.v2.RedactIm" + + "ageRequest.ImageRedactionConfig\022\030\n\020inclu" + + "de_findings\030\006 \001(\010\0229\n\tbyte_item\030\007 \001(\0132&.g" + + "oogle.privacy.dlp.v2.ByteContentItem\032\250\001\n" + + "\024ImageRedactionConfig\0224\n\tinfo_type\030\001 \001(\013" + + "2\037.google.privacy.dlp.v2.InfoTypeH\000\022\031\n\017r" + + "edact_all_text\030\002 \001(\010H\000\0225\n\017redaction_colo" + + "r\030\003 \001(\0132\034.google.privacy.dlp.v2.ColorB\010\n" + + "\006target\"1\n\005Color\022\013\n\003red\030\001 \001(\002\022\r\n\005green\030\002" + + " \001(\002\022\014\n\004blue\030\003 \001(\002\"\203\001\n\023RedactImageRespon" + + "se\022\026\n\016redacted_image\030\001 \001(\014\022\026\n\016extracted_" + + "text\030\002 \001(\t\022<\n\016inspect_result\030\003 \001(\0132$.goo" + + "gle.privacy.dlp.v2.InspectResult\"\346\002\n\030Dei" + + "dentifyContentRequest\022@\n\006parent\030\001 \001(\tB0\372" + + "A-\n+cloudresourcemanager.googleapis.com/" + + "Project\022B\n\021deidentify_config\030\002 \001(\0132\'.goo" + + "gle.privacy.dlp.v2.DeidentifyConfig\022<\n\016i" + + "nspect_config\030\003 \001(\0132$.google.privacy.dlp" + + ".v2.InspectConfig\0220\n\004item\030\004 \001(\0132\".google" + + ".privacy.dlp.v2.ContentItem\022\035\n\025inspect_t" + + "emplate_name\030\005 \001(\t\022 \n\030deidentify_templat" + + "e_name\030\006 \001(\t\022\023\n\013location_id\030\007 \001(\t\"\216\001\n\031De" + + "identifyContentResponse\0220\n\004item\030\001 \001(\0132\"." + + "google.privacy.dlp.v2.ContentItem\022?\n\010ove" + + "rview\030\002 \001(\0132-.google.privacy.dlp.v2.Tran" + + "sformationOverview\"\351\002\n\030ReidentifyContent" + + "Request\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-\n+cloudre" + + "sourcemanager.googleapis.com/Project\022B\n\021" + + "reidentify_config\030\002 \001(\0132\'.google.privacy" + + ".dlp.v2.DeidentifyConfig\022<\n\016inspect_conf" + + "ig\030\003 \001(\0132$.google.privacy.dlp.v2.Inspect" + + "Config\0220\n\004item\030\004 \001(\0132\".google.privacy.dl" + + "p.v2.ContentItem\022\035\n\025inspect_template_nam" + + "e\030\005 \001(\t\022 \n\030reidentify_template_name\030\006 \001(" + + "\t\022\023\n\013location_id\030\007 \001(\t\"\216\001\n\031ReidentifyCon" + + "tentResponse\0220\n\004item\030\001 \001(\0132\".google.priv" + + "acy.dlp.v2.ContentItem\022?\n\010overview\030\002 \001(\013" + + "2-.google.privacy.dlp.v2.TransformationO" + + "verview\"\375\001\n\025InspectContentRequest\022@\n\006par" + + "ent\030\001 \001(\tB0\372A-\n+cloudresourcemanager.goo" + + "gleapis.com/Project\022<\n\016inspect_config\030\002 " + + "\001(\0132$.google.privacy.dlp.v2.InspectConfi" + + "g\0220\n\004item\030\003 \001(\0132\".google.privacy.dlp.v2." + + "ContentItem\022\035\n\025inspect_template_name\030\004 \001" + + "(\t\022\023\n\013location_id\030\005 \001(\t\"N\n\026InspectConten" + + "tResponse\0224\n\006result\030\001 \001(\0132$.google.priva" + + "cy.dlp.v2.InspectResult\"\267\002\n\023OutputStorag" + + "eConfig\0225\n\005table\030\001 \001(\0132$.google.privacy." + + "dlp.v2.BigQueryTableH\000\022N\n\routput_schema\030" + + "\003 \001(\01627.google.privacy.dlp.v2.OutputStor" + + "ageConfig.OutputSchema\"\220\001\n\014OutputSchema\022" + + "\035\n\031OUTPUT_SCHEMA_UNSPECIFIED\020\000\022\021\n\rBASIC_" + + "COLUMNS\020\001\022\017\n\013GCS_COLUMNS\020\002\022\025\n\021DATASTORE_" + + "COLUMNS\020\003\022\025\n\021BIG_QUERY_COLUMNS\020\004\022\017\n\013ALL_" + + "COLUMNS\020\005B\006\n\004type\"R\n\rInfoTypeStats\0222\n\tin" + + "fo_type\030\001 \001(\0132\037.google.privacy.dlp.v2.In" + + "foType\022\r\n\005count\030\002 \001(\003\"\244\004\n\030InspectDataSou" + + "rceDetails\022[\n\021requested_options\030\002 \001(\0132@." + + "google.privacy.dlp.v2.InspectDataSourceD" + + "etails.RequestedOptions\022F\n\006result\030\003 \001(\0132" + + "6.google.privacy.dlp.v2.InspectDataSourc" + + "eDetails.Result\032\232\001\n\020RequestedOptions\022I\n\031" + + "snapshot_inspect_template\030\001 \001(\0132&.google" + + ".privacy.dlp.v2.InspectTemplate\022;\n\njob_c" + + "onfig\030\003 \001(\0132\'.google.privacy.dlp.v2.Insp" + + "ectJobConfig\032\305\001\n\006Result\022\027\n\017processed_byt" + + "es\030\001 \001(\003\022\035\n\025total_estimated_bytes\030\002 \001(\003\022" + + "=\n\017info_type_stats\030\003 \003(\0132$.google.privac" + + "y.dlp.v2.InfoTypeStats\022D\n\014hybrid_stats\030\007" + + " \001(\0132..google.privacy.dlp.v2.HybridInspe" + + "ctStatistics\"`\n\027HybridInspectStatistics\022" + + "\027\n\017processed_count\030\001 \001(\003\022\025\n\raborted_coun" + + "t\030\002 \001(\003\022\025\n\rpending_count\030\003 \001(\003\"\220\001\n\023InfoT" + + "ypeDescription\022\014\n\004name\030\001 \001(\t\022\024\n\014display_" + + "name\030\002 \001(\t\022@\n\014supported_by\030\003 \003(\0162*.googl" + + "e.privacy.dlp.v2.InfoTypeSupportedBy\022\023\n\013" + + "description\030\004 \001(\t\"R\n\024ListInfoTypesReques" + + "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\025ListInfoTypesRe" + + "sponse\022>\n\ninfo_types\030\001 \003(\0132*.google.priv" + + "acy.dlp.v2.InfoTypeDescription\"\301\001\n\025RiskA" + + "nalysisJobConfig\022<\n\016privacy_metric\030\001 \001(\013" + + "2$.google.privacy.dlp.v2.PrivacyMetric\022:" + + "\n\014source_table\030\002 \001(\0132$.google.privacy.dl" + + "p.v2.BigQueryTable\022.\n\007actions\030\003 \003(\0132\035.go" + + "ogle.privacy.dlp.v2.Action\"\274\001\n\007QuasiId\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\"\276\002\n\020StatisticalTable\0228" + + "\n\005table\030\003 \001(\0132$.google.privacy.dlp.v2.Bi" + + "gQueryTableB\003\340A\002\022T\n\tquasi_ids\030\001 \003(\0132<.go" + + "ogle.privacy.dlp.v2.StatisticalTable.Qua" + + "siIdentifierFieldB\003\340A\002\022?\n\022relative_frequ" + + "ency\030\002 \001(\0132\036.google.privacy.dlp.v2.Field" + + "IdB\003\340A\002\032Y\n\024QuasiIdentifierField\022-\n\005field" + + "\030\001 \001(\0132\036.google.privacy.dlp.v2.FieldId\022\022" + + "\n\ncustom_tag\030\002 \001(\t\"\223\017\n\rPrivacyMetric\022[\n\026" + + "numerical_stats_config\030\001 \001(\01329.google.pr" + + "ivacy.dlp.v2.PrivacyMetric.NumericalStat" + + "sConfigH\000\022_\n\030categorical_stats_config\030\002 " + + "\001(\0132;.google.privacy.dlp.v2.PrivacyMetri" + + "c.CategoricalStatsConfigH\000\022S\n\022k_anonymit" + + "y_config\030\003 \001(\01325.google.privacy.dlp.v2.P" + + "rivacyMetric.KAnonymityConfigH\000\022S\n\022l_div" + + "ersity_config\030\004 \001(\01325.google.privacy.dlp" + + ".v2.PrivacyMetric.LDiversityConfigH\000\022\\\n\027" + + "k_map_estimation_config\030\005 \001(\01329.google.p" + + "rivacy.dlp.v2.PrivacyMetric.KMapEstimati" + + "onConfigH\000\022n\n delta_presence_estimation_" + + "config\030\006 \001(\0132B.google.privacy.dlp.v2.Pri" + + "vacyMetric.DeltaPresenceEstimationConfig" + + "H\000\032E\n\024NumericalStatsConfig\022-\n\005field\030\001 \001(" + + "\0132\036.google.privacy.dlp.v2.FieldId\032G\n\026Cat" + + "egoricalStatsConfig\022-\n\005field\030\001 \001(\0132\036.goo" + + "gle.privacy.dlp.v2.FieldId\032y\n\020KAnonymity" + + "Config\0221\n\tquasi_ids\030\001 \003(\0132\036.google.priva" + + "cy.dlp.v2.FieldId\0222\n\tentity_id\030\002 \001(\0132\037.g" + + "oogle.privacy.dlp.v2.EntityId\032\202\001\n\020LDiver" + + "sityConfig\0221\n\tquasi_ids\030\001 \003(\0132\036.google.p" + + "rivacy.dlp.v2.FieldId\022;\n\023sensitive_attri" + + "bute\030\002 \001(\0132\036.google.privacy.dlp.v2.Field" + + "Id\032\201\006\n\024KMapEstimationConfig\022]\n\tquasi_ids" + + "\030\001 \003(\0132E.google.privacy.dlp.v2.PrivacyMe" + + "tric.KMapEstimationConfig.TaggedFieldB\003\340" + + "A\002\022\023\n\013region_code\030\002 \001(\t\022b\n\020auxiliary_tab" + + "les\030\003 \003(\0132H.google.privacy.dlp.v2.Privac" + + "yMetric.KMapEstimationConfig.AuxiliaryTa" + + "ble\032\300\001\n\013TaggedField\0222\n\005field\030\001 \001(\0132\036.goo" + + "gle.privacy.dlp.v2.FieldIdB\003\340A\002\0224\n\tinfo_" + + "type\030\002 \001(\0132\037.google.privacy.dlp.v2.InfoT" + + "ypeH\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\032\315" + + "\002\n\016AuxiliaryTable\0228\n\005table\030\003 \001(\0132$.googl" + + "e.privacy.dlp.v2.BigQueryTableB\003\340A\002\022m\n\tq" + + "uasi_ids\030\001 \003(\0132U.google.privacy.dlp.v2.P" + + "rivacyMetric.KMapEstimationConfig.Auxili" + + "aryTable.QuasiIdFieldB\003\340A\002\022?\n\022relative_f" + + "requency\030\002 \001(\0132\036.google.privacy.dlp.v2.F" + + "ieldIdB\003\340A\002\032Q\n\014QuasiIdField\022-\n\005field\030\001 \001" + + "(\0132\036.google.privacy.dlp.v2.FieldId\022\022\n\ncu" + + "stom_tag\030\002 \001(\t\032\257\001\n\035DeltaPresenceEstimati" + + "onConfig\0226\n\tquasi_ids\030\001 \003(\0132\036.google.pri" + + "vacy.dlp.v2.QuasiIdB\003\340A\002\022\023\n\013region_code\030" + + "\002 \001(\t\022A\n\020auxiliary_tables\030\003 \003(\0132\'.google" + + ".privacy.dlp.v2.StatisticalTableB\006\n\004type" + + "\"\362\035\n\034AnalyzeDataSourceRiskDetails\022F\n\030req" + + "uested_privacy_metric\030\001 \001(\0132$.google.pri" + + "vacy.dlp.v2.PrivacyMetric\022D\n\026requested_s" + + "ource_table\030\002 \001(\0132$.google.privacy.dlp.v" + + "2.BigQueryTable\022j\n\026numerical_stats_resul" + + "t\030\003 \001(\0132H.google.privacy.dlp.v2.AnalyzeD" + + "ataSourceRiskDetails.NumericalStatsResul" + + "tH\000\022n\n\030categorical_stats_result\030\004 \001(\0132J." + "google.privacy.dlp.v2.AnalyzeDataSourceR" - + "iskDetails.DeltaPresenceEstimationResult" - + ".DeltaPresenceEstimationQuasiIdValues\022\032\n" - + "\022bucket_value_count\030\007 \001(\003B\010\n\006result\"L\n\016V" - + "alueFrequency\022+\n\005value\030\001 \001(\0132\034.google.pr" - + "ivacy.dlp.v2.Value\022\r\n\005count\030\002 \001(\003\"\263\002\n\005Va" - + "lue\022\027\n\rinteger_value\030\001 \001(\003H\000\022\025\n\013float_va" - + "lue\030\002 \001(\001H\000\022\026\n\014string_value\030\003 \001(\tH\000\022\027\n\rb" - + "oolean_value\030\004 \001(\010H\000\0225\n\017timestamp_value\030" - + "\005 \001(\0132\032.google.protobuf.TimestampH\000\022,\n\nt" - + "ime_value\030\006 \001(\0132\026.google.type.TimeOfDayH" - + "\000\022\'\n\ndate_value\030\007 \001(\0132\021.google.type.Date" - + "H\000\0223\n\021day_of_week_value\030\010 \001(\0162\026.google.t" - + "ype.DayOfWeekH\000B\006\n\004type\"Q\n\tQuoteInfo\0224\n\t" - + "date_time\030\002 \001(\0132\037.google.privacy.dlp.v2." - + "DateTimeH\000B\016\n\014parsed_quote\"\337\001\n\010DateTime\022" - + "\037\n\004date\030\001 \001(\0132\021.google.type.Date\022+\n\013day_" - + "of_week\030\002 \001(\0162\026.google.type.DayOfWeek\022$\n" - + "\004time\030\003 \001(\0132\026.google.type.TimeOfDay\022;\n\tt" - + "ime_zone\030\004 \001(\0132(.google.privacy.dlp.v2.D" - + "ateTime.TimeZone\032\"\n\010TimeZone\022\026\n\016offset_m" - + "inutes\030\001 \001(\005\"\311\001\n\020DeidentifyConfig\022S\n\031inf" - + "o_type_transformations\030\001 \001(\0132..google.pr" - + "ivacy.dlp.v2.InfoTypeTransformationsH\000\022N" - + "\n\026record_transformations\030\002 \001(\0132,.google." - + "privacy.dlp.v2.RecordTransformationsH\000B\020" - + "\n\016transformation\"\365\006\n\027PrimitiveTransforma" - + "tion\022C\n\016replace_config\030\001 \001(\0132).google.pr" - + "ivacy.dlp.v2.ReplaceValueConfigH\000\022<\n\rred" - + "act_config\030\002 \001(\0132#.google.privacy.dlp.v2" - + ".RedactConfigH\000\022K\n\025character_mask_config" - + "\030\003 \001(\0132*.google.privacy.dlp.v2.Character" - + "MaskConfigH\000\022Y\n\035crypto_replace_ffx_fpe_c" - + "onfig\030\004 \001(\01320.google.privacy.dlp.v2.Cryp" - + "toReplaceFfxFpeConfigH\000\022V\n\033fixed_size_bu" - + "cketing_config\030\005 \001(\0132/.google.privacy.dl" - + "p.v2.FixedSizeBucketingConfigH\000\022B\n\020bucke" - + "ting_config\030\006 \001(\0132&.google.privacy.dlp.v" - + "2.BucketingConfigH\000\022Y\n\035replace_with_info" - + "_type_config\030\007 \001(\01320.google.privacy.dlp." - + "v2.ReplaceWithInfoTypeConfigH\000\022A\n\020time_p" - + "art_config\030\010 \001(\0132%.google.privacy.dlp.v2" - + ".TimePartConfigH\000\022E\n\022crypto_hash_config\030" - + "\t \001(\0132\'.google.privacy.dlp.v2.CryptoHash" - + "ConfigH\000\022C\n\021date_shift_config\030\013 \001(\0132&.go" - + "ogle.privacy.dlp.v2.DateShiftConfigH\000\022W\n" - + "\033crypto_deterministic_config\030\014 \001(\01320.goo" - + "gle.privacy.dlp.v2.CryptoDeterministicCo" - + "nfigH\000B\020\n\016transformation\"\334\001\n\016TimePartCon" - + "fig\022G\n\017part_to_extract\030\001 \001(\0162..google.pr" - + "ivacy.dlp.v2.TimePartConfig.TimePart\"\200\001\n" - + "\010TimePart\022\031\n\025TIME_PART_UNSPECIFIED\020\000\022\010\n\004" - + "YEAR\020\001\022\t\n\005MONTH\020\002\022\020\n\014DAY_OF_MONTH\020\003\022\017\n\013D" - + "AY_OF_WEEK\020\004\022\020\n\014WEEK_OF_YEAR\020\005\022\017\n\013HOUR_O" - + "F_DAY\020\006\"H\n\020CryptoHashConfig\0224\n\ncrypto_ke" - + "y\030\001 \001(\0132 .google.privacy.dlp.v2.CryptoKe" - + "y\"\300\001\n\031CryptoDeterministicConfig\0224\n\ncrypt" - + "o_key\030\001 \001(\0132 .google.privacy.dlp.v2.Cryp" - + "toKey\022<\n\023surrogate_info_type\030\002 \001(\0132\037.goo" - + "gle.privacy.dlp.v2.InfoType\022/\n\007context\030\003" - + " \001(\0132\036.google.privacy.dlp.v2.FieldId\"E\n\022" - + "ReplaceValueConfig\022/\n\tnew_value\030\001 \001(\0132\034." - + "google.privacy.dlp.v2.Value\"\033\n\031ReplaceWi" - + "thInfoTypeConfig\"\016\n\014RedactConfig\"\266\002\n\rCha" - + "rsToIgnore\022\034\n\022characters_to_skip\030\001 \001(\tH\000" - + "\022_\n\033common_characters_to_ignore\030\002 \001(\01628." - + "google.privacy.dlp.v2.CharsToIgnore.Comm", - "onCharsToIgnoreH\000\"\227\001\n\023CommonCharsToIgnor" - + "e\022&\n\"COMMON_CHARS_TO_IGNORE_UNSPECIFIED\020" - + "\000\022\013\n\007NUMERIC\020\001\022\024\n\020ALPHA_UPPER_CASE\020\002\022\024\n\020" - + "ALPHA_LOWER_CASE\020\003\022\017\n\013PUNCTUATION\020\004\022\016\n\nW" - + "HITESPACE\020\005B\014\n\ncharacters\"\243\001\n\023CharacterM" - + "askConfig\022\031\n\021masking_character\030\001 \001(\t\022\026\n\016" - + "number_to_mask\030\002 \001(\005\022\025\n\rreverse_order\030\003 " - + "\001(\010\022B\n\024characters_to_ignore\030\004 \003(\0132$.goog" - + "le.privacy.dlp.v2.CharsToIgnore\"\244\001\n\030Fixe" - + "dSizeBucketingConfig\0226\n\013lower_bound\030\001 \001(" - + "\0132\034.google.privacy.dlp.v2.ValueB\003\340A\002\0226\n\013" - + "upper_bound\030\002 \001(\0132\034.google.privacy.dlp.v" - + "2.ValueB\003\340A\002\022\030\n\013bucket_size\030\003 \001(\001B\003\340A\002\"\353" - + "\001\n\017BucketingConfig\022>\n\007buckets\030\001 \003(\0132-.go" - + "ogle.privacy.dlp.v2.BucketingConfig.Buck" - + "et\032\227\001\n\006Bucket\022)\n\003min\030\001 \001(\0132\034.google.priv" - + "acy.dlp.v2.Value\022)\n\003max\030\002 \001(\0132\034.google.p" - + "rivacy.dlp.v2.Value\0227\n\021replacement_value" - + "\030\003 \001(\0132\034.google.privacy.dlp.v2.Value\"\371\003\n" - + "\031CryptoReplaceFfxFpeConfig\0229\n\ncrypto_key" - + "\030\001 \001(\0132 .google.privacy.dlp.v2.CryptoKey" - + "B\003\340A\002\022/\n\007context\030\002 \001(\0132\036.google.privacy." - + "dlp.v2.FieldId\022c\n\017common_alphabet\030\004 \001(\0162" - + "H.google.privacy.dlp.v2.CryptoReplaceFfx" - + "FpeConfig.FfxCommonNativeAlphabetH\000\022\031\n\017c" - + "ustom_alphabet\030\005 \001(\tH\000\022\017\n\005radix\030\006 \001(\005H\000\022" - + "<\n\023surrogate_info_type\030\010 \001(\0132\037.google.pr" - + "ivacy.dlp.v2.InfoType\"\224\001\n\027FfxCommonNativ" - + "eAlphabet\022*\n&FFX_COMMON_NATIVE_ALPHABET_" - + "UNSPECIFIED\020\000\022\013\n\007NUMERIC\020\001\022\017\n\013HEXADECIMA" - + "L\020\002\022\034\n\030UPPER_CASE_ALPHA_NUMERIC\020\003\022\021\n\rALP" - + "HA_NUMERIC\020\004B\n\n\010alphabet\"\330\001\n\tCryptoKey\022>" - + "\n\ttransient\030\001 \001(\0132).google.privacy.dlp.v" - + "2.TransientCryptoKeyH\000\022>\n\tunwrapped\030\002 \001(" - + "\0132).google.privacy.dlp.v2.UnwrappedCrypt" - + "oKeyH\000\022A\n\013kms_wrapped\030\003 \001(\0132*.google.pri" - + "vacy.dlp.v2.KmsWrappedCryptoKeyH\000B\010\n\006sou" - + "rce\"\'\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_k" - + "ey\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_d" - + "ays\030\001 \001(\005B\003\340A\002\022\035\n\020lower_bound_days\030\002 \001(\005" - + "B\003\340A\002\022/\n\007context\030\003 \001(\0132\036.google.privacy." - + "dlp.v2.FieldId\0226\n\ncrypto_key\030\004 \001(\0132 .goo" - + "gle.privacy.dlp.v2.CryptoKeyH\000B\010\n\006method" - + "\"\245\002\n\027InfoTypeTransformations\022c\n\017transfor" - + "mations\030\001 \003(\0132E.google.privacy.dlp.v2.In" - + "foTypeTransformations.InfoTypeTransforma" - + "tionB\003\340A\002\032\244\001\n\026InfoTypeTransformation\0223\n\n" - + "info_types\030\001 \003(\0132\037.google.privacy.dlp.v2" - + ".InfoType\022U\n\030primitive_transformation\030\002 " - + "\001(\0132..google.privacy.dlp.v2.PrimitiveTra" - + "nsformationB\003\340A\002\"\300\002\n\023FieldTransformation" - + "\0223\n\006fields\030\001 \003(\0132\036.google.privacy.dlp.v2" - + ".FieldIdB\003\340A\002\0229\n\tcondition\030\003 \001(\0132&.googl" - + "e.privacy.dlp.v2.RecordCondition\022R\n\030prim" - + "itive_transformation\030\004 \001(\0132..google.priv" - + "acy.dlp.v2.PrimitiveTransformationH\000\022S\n\031" - + "info_type_transformations\030\005 \001(\0132..google" - + ".privacy.dlp.v2.InfoTypeTransformationsH" - + "\000B\020\n\016transformation\"\251\001\n\025RecordTransforma" - + "tions\022I\n\025field_transformations\030\001 \003(\0132*.g" - + "oogle.privacy.dlp.v2.FieldTransformation" - + "\022E\n\023record_suppressions\030\002 \003(\0132(.google.p" - + "rivacy.dlp.v2.RecordSuppression\"N\n\021Recor" - + "dSuppression\0229\n\tcondition\030\001 \001(\0132&.google" - + ".privacy.dlp.v2.RecordCondition\"\334\004\n\017Reco" - + "rdCondition\022G\n\013expressions\030\003 \001(\01322.googl" - + "e.privacy.dlp.v2.RecordCondition.Express" - + "ions\032\256\001\n\tCondition\0222\n\005field\030\001 \001(\0132\036.goog" - + "le.privacy.dlp.v2.FieldIdB\003\340A\002\022@\n\010operat" - + "or\030\003 \001(\0162).google.privacy.dlp.v2.Relatio" - + "nalOperatorB\003\340A\002\022+\n\005value\030\004 \001(\0132\034.google" - + ".privacy.dlp.v2.Value\032R\n\nConditions\022D\n\nc" - + "onditions\030\001 \003(\01320.google.privacy.dlp.v2." - + "RecordCondition.Condition\032\372\001\n\013Expression" - + "s\022\\\n\020logical_operator\030\001 \001(\0162B.google.pri" - + "vacy.dlp.v2.RecordCondition.Expressions." - + "LogicalOperator\022G\n\nconditions\030\003 \001(\01321.go" - + "ogle.privacy.dlp.v2.RecordCondition.Cond" - + "itionsH\000\"<\n\017LogicalOperator\022 \n\034LOGICAL_O" - + "PERATOR_UNSPECIFIED\020\000\022\007\n\003AND\020\001B\006\n\004type\"\203" - + "\001\n\026TransformationOverview\022\031\n\021transformed" - + "_bytes\030\002 \001(\003\022N\n\030transformation_summaries" - + "\030\003 \003(\0132,.google.privacy.dlp.v2.Transform" - + "ationSummary\"\237\005\n\025TransformationSummary\0222" - + "\n\tinfo_type\030\001 \001(\0132\037.google.privacy.dlp.v" - + "2.InfoType\022-\n\005field\030\002 \001(\0132\036.google.priva" - + "cy.dlp.v2.FieldId\022F\n\016transformation\030\003 \001(" - + "\0132..google.privacy.dlp.v2.PrimitiveTrans" - + "formation\022I\n\025field_transformations\030\005 \003(\013" - + "2*.google.privacy.dlp.v2.FieldTransforma" - + "tion\022A\n\017record_suppress\030\006 \001(\0132(.google.p" - + "rivacy.dlp.v2.RecordSuppression\022K\n\007resul" - + "ts\030\004 \003(\0132:.google.privacy.dlp.v2.Transfo" - + "rmationSummary.SummaryResult\022\031\n\021transfor" - + "med_bytes\030\007 \001(\003\032\204\001\n\rSummaryResult\022\r\n\005cou" - + "nt\030\001 \001(\003\022S\n\004code\030\002 \001(\0162E.google.privacy." - + "dlp.v2.TransformationSummary.Transformat" - + "ionResultCode\022\017\n\007details\030\003 \001(\t\"^\n\030Transf" - + "ormationResultCode\022*\n&TRANSFORMATION_RES" - + "ULT_CODE_UNSPECIFIED\020\000\022\013\n\007SUCCESS\020\001\022\t\n\005E" - + "RROR\020\002\"U\n\010Schedule\022?\n\032recurrence_period_" - + "duration\030\001 \001(\0132\031.google.protobuf.Duratio" - + "nH\000B\010\n\006option\"\236\003\n\017InspectTemplate\022\021\n\004nam" - + "e\030\001 \001(\tB\003\340A\003\022\024\n\014display_name\030\002 \001(\t\022\023\n\013de" - + "scription\030\003 \001(\t\0224\n\013create_time\030\004 \001(\0132\032.g" - + "oogle.protobuf.TimestampB\003\340A\003\0224\n\013update_" - + "time\030\005 \001(\0132\032.google.protobuf.TimestampB\003" - + "\340A\003\022<\n\016inspect_config\030\006 \001(\0132$.google.pri" - + "vacy.dlp.v2.InspectConfig:\242\001\352A\236\001\n\"dlp.go" - + "ogleapis.com/InspectTemplate\022@organizati" - + "ons/{organization}/inspectTemplates/{ins" - + "pect_template}\0226projects/{project}/inspe" - + "ctTemplates/{inspect_template}\"\266\003\n\022Deide" - + "ntifyTemplate\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\024\n\014disp" - + "lay_name\030\002 \001(\t\022\023\n\013description\030\003 \001(\t\0224\n\013c" - + "reate_time\030\004 \001(\0132\032.google.protobuf.Times" - + "tampB\003\340A\003\0224\n\013update_time\030\005 \001(\0132\032.google." - + "protobuf.TimestampB\003\340A\003\022B\n\021deidentify_co" - + "nfig\030\006 \001(\0132\'.google.privacy.dlp.v2.Deide" - + "ntifyConfig:\261\001\352A\255\001\n%dlp.googleapis.com/D" - + "eidentifyTemplate\022Forganizations/{organi" - + "zation}/deidentifyTemplates/{deidentify_" - + "template}\022\n" - + "\013inspect_job\030\004 \001(\0132\'.google.privacy.dlp." - + "v2.InspectJobConfigH\000\022;\n\010triggers\030\005 \003(\0132" - + ").google.privacy.dlp.v2.JobTrigger.Trigg" - + "er\0221\n\006errors\030\006 \003(\0132\034.google.privacy.dlp." - + "v2.ErrorB\003\340A\003\0224\n\013create_time\030\007 \001(\0132\032.goo" - + "gle.protobuf.TimestampB\003\340A\003\0224\n\013update_ti" - + "me\030\010 \001(\0132\032.google.protobuf.TimestampB\003\340A" - + "\003\0226\n\rlast_run_time\030\t \001(\0132\032.google.protob" - + "uf.TimestampB\003\340A\003\022=\n\006status\030\n \001(\0162(.goog" - + "le.privacy.dlp.v2.JobTrigger.StatusB\003\340A\002" - + "\032I\n\007Trigger\0223\n\010schedule\030\001 \001(\0132\037.google.p" - + "rivacy.dlp.v2.ScheduleH\000B\t\n\007trigger\"H\n\006S" - + "tatus\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:P\352AM\n\035dlp." - + "googleapis.com/JobTrigger\022,projects/{pro" - + "ject}/jobTriggers/{job_trigger}B\005\n\003job\"\364" - + "\005\n\006Action\022C\n\rsave_findings\030\001 \001(\0132*.googl" - + "e.privacy.dlp.v2.Action.SaveFindingsH\000\022@" - + "\n\007pub_sub\030\002 \001(\0132-.google.privacy.dlp.v2." - + "Action.PublishToPubSubH\000\022U\n\027publish_summ" - + "ary_to_cscc\030\003 \001(\01322.google.privacy.dlp.v" - + "2.Action.PublishSummaryToCsccH\000\022q\n&publi" - + "sh_findings_to_cloud_data_catalog\030\005 \001(\0132" - + "?.google.privacy.dlp.v2.Action.PublishFi" - + "ndingsToCloudDataCatalogH\000\022V\n\027job_notifi" - + "cation_emails\030\010 \001(\01323.google.privacy.dlp" - + ".v2.Action.JobNotificationEmailsH\000\022T\n\026pu" - + "blish_to_stackdriver\030\t \001(\01322.google.priv" - + "acy.dlp.v2.Action.PublishToStackdriverH\000" - + "\032Q\n\014SaveFindings\022A\n\routput_config\030\001 \001(\0132" - + "*.google.privacy.dlp.v2.OutputStorageCon" - + "fig\032 \n\017PublishToPubSub\022\r\n\005topic\030\001 \001(\t\032\026\n" - + "\024PublishSummaryToCscc\032#\n!PublishFindings" - + "ToCloudDataCatalog\032\027\n\025JobNotificationEma" - + "ils\032\026\n\024PublishToStackdriverB\010\n\006action\"\313\001" - + "\n\034CreateInspectTemplateRequest\022:\n\006parent" - + "\030\001 \001(\tB*\340A\002\372A$\022\"dlp.googleapis.com/Inspe" - + "ctTemplate\022E\n\020inspect_template\030\002 \001(\0132&.g" - + "oogle.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\034UpdateInspectTemplateRequest\0228\n\004" - + "name\030\001 \001(\tB*\340A\002\372A$\n\"dlp.googleapis.com/I" - + "nspectTemplate\022@\n\020inspect_template\030\002 \001(\013" - + "2&.google.privacy.dlp.v2.InspectTemplate" - + "\022/\n\013update_mask\030\003 \001(\0132\032.google.protobuf." - + "FieldMask\"U\n\031GetInspectTemplateRequest\0228" - + "\n\004name\030\001 \001(\tB*\340A\002\372A$\n\"dlp.googleapis.com" - + "/InspectTemplate\"\247\001\n\033ListInspectTemplate" - + "sRequest\022:\n\006parent\030\001 \001(\tB*\340A\002\372A$\022\"dlp.go" - + "ogleapis.com/InspectTemplate\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\023\n\013location_id\030\005 \001(\t\"z\n\034ListInspec" - + "tTemplatesResponse\022A\n\021inspect_templates\030" - + "\001 \003(\0132&.google.privacy.dlp.v2.InspectTem" - + "plate\022\027\n\017next_page_token\030\002 \001(\t\"X\n\034Delete" - + "InspectTemplateRequest\0228\n\004name\030\001 \001(\tB*\340A" - + "\002\372A$\n\"dlp.googleapis.com/InspectTemplate" - + "\"\304\001\n\027CreateJobTriggerRequest\022C\n\006parent\030\001" - + " \001(\tB3\340A\002\372A-\n+cloudresourcemanager.googl" - + "eapis.com/Project\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\004name\030\001 \001" + + "iskDetails.CategoricalStatsResultH\000\022b\n\022k" + + "_anonymity_result\030\005 \001(\0132D.google.privacy" + + ".dlp.v2.AnalyzeDataSourceRiskDetails.KAn" + + "onymityResultH\000\022b\n\022l_diversity_result\030\006 " + + "\001(\0132D.google.privacy.dlp.v2.AnalyzeDataS" + + "ourceRiskDetails.LDiversityResultH\000\022k\n\027k" + + "_map_estimation_result\030\007 \001(\0132H.google.pr" + + "ivacy.dlp.v2.AnalyzeDataSourceRiskDetail" + + "s.KMapEstimationResultH\000\022}\n delta_presen" + + "ce_estimation_result\030\t \001(\0132Q.google.priv" + + "acy.dlp.v2.AnalyzeDataSourceRiskDetails." + + "DeltaPresenceEstimationResultH\000\032\257\001\n\024Nume" + + "ricalStatsResult\022/\n\tmin_value\030\001 \001(\0132\034.go" + + "ogle.privacy.dlp.v2.Value\022/\n\tmax_value\030\002" + + " \001(\0132\034.google.privacy.dlp.v2.Value\0225\n\017qu" + + "antile_values\030\004 \003(\0132\034.google.privacy.dlp" + + ".v2.Value\032\215\003\n\026CategoricalStatsResult\022\225\001\n" + + "!value_frequency_histogram_buckets\030\005 \003(\013" + + "2j.google.privacy.dlp.v2.AnalyzeDataSour" + + "ceRiskDetails.CategoricalStatsResult.Cat" + + "egoricalStatsHistogramBucket\032\332\001\n\037Categor" + + "icalStatsHistogramBucket\022#\n\033value_freque" + + "ncy_lower_bound\030\001 \001(\003\022#\n\033value_frequency" + + "_upper_bound\030\002 \001(\003\022\023\n\013bucket_size\030\003 \001(\003\022" + + "<\n\rbucket_values\030\004 \003(\0132%.google.privacy." + + "dlp.v2.ValueFrequency\022\032\n\022bucket_value_co" + + "unt\030\005 \001(\003\032\265\004\n\020KAnonymityResult\022\213\001\n#equiv" + + "alence_class_histogram_buckets\030\005 \003(\0132^.g" + + "oogle.privacy.dlp.v2.AnalyzeDataSourceRi" + + "skDetails.KAnonymityResult.KAnonymityHis" + + "togramBucket\032t\n\032KAnonymityEquivalenceCla" + + "ss\0226\n\020quasi_ids_values\030\001 \003(\0132\034.google.pr" + + "ivacy.dlp.v2.Value\022\036\n\026equivalence_class_" + + "size\030\002 \001(\003\032\234\002\n\031KAnonymityHistogramBucket" + + "\022*\n\"equivalence_class_size_lower_bound\030\001" + + " \001(\003\022*\n\"equivalence_class_size_upper_bou" + + "nd\030\002 \001(\003\022\023\n\013bucket_size\030\003 \001(\003\022v\n\rbucket_" + + "values\030\004 \003(\0132_.google.privacy.dlp.v2.Ana" + + "lyzeDataSourceRiskDetails.KAnonymityResu" + + "lt.KAnonymityEquivalenceClass\022\032\n\022bucket_" + + "value_count\030\005 \001(\003\032\260\005\n\020LDiversityResult\022\223" + + "\001\n+sensitive_value_frequency_histogram_b" + + "uckets\030\005 \003(\0132^.google.privacy.dlp.v2.Ana" + + "lyzeDataSourceRiskDetails.LDiversityResu" + + "lt.LDiversityHistogramBucket\032\340\001\n\032LDivers" + + "ityEquivalenceClass\0226\n\020quasi_ids_values\030" + + "\001 \003(\0132\034.google.privacy.dlp.v2.Value\022\036\n\026e" + + "quivalence_class_size\030\002 \001(\003\022%\n\035num_disti" + + "nct_sensitive_values\030\003 \001(\003\022C\n\024top_sensit" + + "ive_values\030\004 \003(\0132%.google.privacy.dlp.v2" + + ".ValueFrequency\032\242\002\n\031LDiversityHistogramB" + + "ucket\022-\n%sensitive_value_frequency_lower" + + "_bound\030\001 \001(\003\022-\n%sensitive_value_frequenc" + + "y_upper_bound\030\002 \001(\003\022\023\n\013bucket_size\030\003 \001(\003" + + "\022v\n\rbucket_values\030\004 \003(\0132_.google.privacy" + + ".dlp.v2.AnalyzeDataSourceRiskDetails.LDi" + + "versityResult.LDiversityEquivalenceClass" + + "\022\032\n\022bucket_value_count\030\005 \001(\003\032\225\004\n\024KMapEst" + + "imationResult\022\212\001\n\032k_map_estimation_histo" + + "gram\030\001 \003(\0132f.google.privacy.dlp.v2.Analy" + + "zeDataSourceRiskDetails.KMapEstimationRe" + + "sult.KMapEstimationHistogramBucket\032r\n\033KM" + + "apEstimationQuasiIdValues\0226\n\020quasi_ids_v" + + "alues\030\001 \003(\0132\034.google.privacy.dlp.v2.Valu" + + "e\022\033\n\023estimated_anonymity\030\002 \001(\003\032\373\001\n\035KMapE" + + "stimationHistogramBucket\022\025\n\rmin_anonymit" + + "y\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.goo" + + "gle.privacy.dlp.v2.AnalyzeDataSourceRisk" + + "Details.KMapEstimationResult.KMapEstimat" + + "ionQuasiIdValues\022\032\n\022bucket_value_count\030\007" + + " \001(\003\032\344\004\n\035DeltaPresenceEstimationResult\022\245" + + "\001\n#delta_presence_estimation_histogram\030\001" + + " \003(\0132x.google.privacy.dlp.v2.AnalyzeData" + + "SourceRiskDetails.DeltaPresenceEstimatio" + + "nResult.DeltaPresenceEstimationHistogram" + + "Bucket\032}\n$DeltaPresenceEstimationQuasiId" + + "Values\0226\n\020quasi_ids_values\030\001 \003(\0132\034.googl" + + "e.privacy.dlp.v2.Value\022\035\n\025estimated_prob" + + "ability\030\002 \001(\001\032\233\002\n&DeltaPresenceEstimatio" + + "nHistogramBucket\022\027\n\017min_probability\030\001 \001(" + + "\001\022\027\n\017max_probability\030\002 \001(\001\022\023\n\013bucket_siz" + + "e\030\005 \001(\003\022\215\001\n\rbucket_values\030\006 \003(\0132v.google" + + ".privacy.dlp.v2.AnalyzeDataSourceRiskDet" + + "ails.DeltaPresenceEstimationResult.Delta" + + "PresenceEstimationQuasiIdValues\022\032\n\022bucke" + + "t_value_count\030\007 \001(\003B\010\n\006result\"L\n\016ValueFr" + + "equency\022+\n\005value\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\0225\n\017timestamp_value\030\005 \001(\0132" + + "\032.google.protobuf.TimestampH\000\022,\n\ntime_va" + + "lue\030\006 \001(\0132\026.google.type.TimeOfDayH\000\022\'\n\nd" + + "ate_value\030\007 \001(\0132\021.google.type.DateH\000\0223\n\021" + + "day_of_week_value\030\010 \001(\0162\026.google.type.Da" + + "yOfWeekH\000B\006\n\004type\"Q\n\tQuoteInfo\0224\n\tdate_t" + + "ime\030\002 \001(\0132\037.google.privacy.dlp.v2.DateTi" + + "meH\000B\016\n\014parsed_quote\"\337\001\n\010DateTime\022\037\n\004dat" + + "e\030\001 \001(\0132\021.google.type.Date\022+\n\013day_of_wee" + + "k\030\002 \001(\0162\026.google.type.DayOfWeek\022$\n\004time\030" + + "\003 \001(\0132\026.google.type.TimeOfDay\022;\n\ttime_zo" + + "ne\030\004 \001(\0132(.google.privacy.dlp.v2.DateTim" + + "e.TimeZone\032\"\n\010TimeZone\022\026\n\016offset_minutes" + + "\030\001 \001(\005\"\244\002\n\020DeidentifyConfig\022S\n\031info_type" + + "_transformations\030\001 \001(\0132..google.privacy." + + "dlp.v2.InfoTypeTransformationsH\000\022N\n\026reco" + + "rd_transformations\030\002 \001(\0132,.google.privac" + + "y.dlp.v2.RecordTransformationsH\000\022Y\n\035tran" + + "sformation_error_handling\030\003 \001(\01322.google" + + ".privacy.dlp.v2.TransformationErrorHandl" + + "ingB\020\n\016transformation\"\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\"\365\006\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\000B\020\n\016t" + + "ransformation\"\334\001\n\016TimePartConfig\022G\n\017part" + + "_to_extract\030\001 \001(\0162..google.privacy.dlp.v" + + "2.TimePartConfig.TimePart\"\200\001\n\010TimePart\022\031" + + "\n\025TIME_PART_UNSPECIFIED\020\000\022\010\n\004YEAR\020\001\022\t\n\005M" + + "ONTH\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\020" + + "CryptoHashConfig\0224\n\ncrypto_key\030\001 \001(\0132 .g" + + "oogle.privacy.dlp.v2.CryptoKey\"\300\001\n\031Crypt" + + "oDeterministicConfig\0224\n\ncrypto_key\030\001 \001(\013" + + "2 .google.privacy.dlp.v2.CryptoKey\022<\n\023su" + + "rrogate_info_type\030\002 \001(\0132\037.google.privacy" + + ".dlp.v2.InfoType\022/\n\007context\030\003 \001(\0132\036.goog" + + "le.privacy.dlp.v2.FieldId\"E\n\022ReplaceValu" + + "eConfig\022/\n\tnew_value\030\001 \001(\0132\034.google.priv" + + "acy.dlp.v2.Value\"\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\"\353\001\n\017Bucketin" + + "gConfig\022>\n\007buckets\030\001 \003(\0132-.google.privac" + + "y.dlp.v2.BucketingConfig.Bucket\032\227\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\0227\n\021replacement_value\030\003 \001(\0132\034.go" + + "ogle.privacy.dlp.v2.Value\"\371\003\n\031CryptoRepl" + + "aceFfxFpeConfig\0229\n\ncrypto_key\030\001 \001(\0132 .go" + + "ogle.privacy.dlp.v2.CryptoKeyB\003\340A\002\022/\n\007co" + + "ntext\030\002 \001(\0132\036.google.privacy.dlp.v2.Fiel" + + "dId\022c\n\017common_alphabet\030\004 \001(\0162H.google.pr" + + "ivacy.dlp.v2.CryptoReplaceFfxFpeConfig.F" + + "fxCommonNativeAlphabetH\000\022\031\n\017custom_alpha" + + "bet\030\005 \001(\tH\000\022\017\n\005radix\030\006 \001(\005H\000\022<\n\023surrogat" + + "e_info_type\030\010 \001(\0132\037.google.privacy.dlp.v" + + "2.InfoType\"\224\001\n\027FfxCommonNativeAlphabet\022*" + + "\n&FFX_COMMON_NATIVE_ALPHABET_UNSPECIFIED" + + "\020\000\022\013\n\007NUMERIC\020\001\022\017\n\013HEXADECIMAL\020\002\022\034\n\030UPPE" + + "R_CASE_ALPHA_NUMERIC\020\003\022\021\n\rALPHA_NUMERIC\020" + + "\004B\n\n\010alphabet\"\330\001\n\tCryptoKey\022>\n\ttransient" + + "\030\001 \001(\0132).google.privacy.dlp.v2.Transient" + + "CryptoKeyH\000\022>\n\tunwrapped\030\002 \001(\0132).google." + + "privacy.dlp.v2.UnwrappedCryptoKeyH\000\022A\n\013k" + + "ms_wrapped\030\003 \001(\0132*.google.privacy.dlp.v2" + + ".KmsWrappedCryptoKeyH\000B\010\n\006source\"\'\n\022Tran" + + "sientCryptoKey\022\021\n\004name\030\001 \001(\tB\003\340A\002\"&\n\022Unw" + + "rappedCryptoKey\022\020\n\003key\030\001 \001(\014B\003\340A\002\"M\n\023Kms" + + "WrappedCryptoKey\022\030\n\013wrapped_key\030\001 \001(\014B\003\340" + + "A\002\022\034\n\017crypto_key_name\030\002 \001(\tB\003\340A\002\"\302\001\n\017Dat" + + "eShiftConfig\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\007co" + + "ntext\030\003 \001(\0132\036.google.privacy.dlp.v2.Fiel" + + "dId\0226\n\ncrypto_key\030\004 \001(\0132 .google.privacy" + + ".dlp.v2.CryptoKeyH\000B\010\n\006method\"\245\002\n\027InfoTy" + + "peTransformations\022c\n\017transformations\030\001 \003" + + "(\0132E.google.privacy.dlp.v2.InfoTypeTrans" + + "formations.InfoTypeTransformationB\003\340A\002\032\244" + + "\001\n\026InfoTypeTransformation\0223\n\ninfo_types\030" + + "\001 \003(\0132\037.google.privacy.dlp.v2.InfoType\022U" + + "\n\030primitive_transformation\030\002 \001(\0132..googl" + + "e.privacy.dlp.v2.PrimitiveTransformation" + + "B\003\340A\002\"\300\002\n\023FieldTransformation\0223\n\006fields\030" + + "\001 \003(\0132\036.google.privacy.dlp.v2.FieldIdB\003\340" + + "A\002\0229\n\tcondition\030\003 \001(\0132&.google.privacy.d" + + "lp.v2.RecordCondition\022R\n\030primitive_trans" + + "formation\030\004 \001(\0132..google.privacy.dlp.v2." + + "PrimitiveTransformationH\000\022S\n\031info_type_t" + + "ransformations\030\005 \001(\0132..google.privacy.dl" + + "p.v2.InfoTypeTransformationsH\000B\020\n\016transf" + + "ormation\"\251\001\n\025RecordTransformations\022I\n\025fi" + + "eld_transformations\030\001 \003(\0132*.google.priva" + + "cy.dlp.v2.FieldTransformation\022E\n\023record_" + + "suppressions\030\002 \003(\0132(.google.privacy.dlp." + + "v2.RecordSuppression\"N\n\021RecordSuppressio" + + "n\0229\n\tcondition\030\001 \001(\0132&.google.privacy.dl" + + "p.v2.RecordCondition\"\334\004\n\017RecordCondition" + + "\022G\n\013expressions\030\003 \001(\01322.google.privacy.d" + + "lp.v2.RecordCondition.Expressions\032\256\001\n\tCo" + + "ndition\0222\n\005field\030\001 \001(\0132\036.google.privacy." + + "dlp.v2.FieldIdB\003\340A\002\022@\n\010operator\030\003 \001(\0162)." + + "google.privacy.dlp.v2.RelationalOperator" + + "B\003\340A\002\022+\n\005value\030\004 \001(\0132\034.google.privacy.dl" + + "p.v2.Value\032R\n\nConditions\022D\n\nconditions\030\001" + + " \003(\01320.google.privacy.dlp.v2.RecordCondi" + + "tion.Condition\032\372\001\n\013Expressions\022\\\n\020logica" + + "l_operator\030\001 \001(\0162B.google.privacy.dlp.v2" + + ".RecordCondition.Expressions.LogicalOper" + + "ator\022G\n\nconditions\030\003 \001(\01321.google.privac" + + "y.dlp.v2.RecordCondition.ConditionsH\000\"<\n" + + "\017LogicalOperator\022 \n\034LOGICAL_OPERATOR_UNS" + + "PECIFIED\020\000\022\007\n\003AND\020\001B\006\n\004type\"\203\001\n\026Transfor" + + "mationOverview\022\031\n\021transformed_bytes\030\002 \001(" + + "\003\022N\n\030transformation_summaries\030\003 \003(\0132,.go" + + "ogle.privacy.dlp.v2.TransformationSummar" + + "y\"\237\005\n\025TransformationSummary\0222\n\tinfo_type" + + "\030\001 \001(\0132\037.google.privacy.dlp.v2.InfoType\022" + + "-\n\005field\030\002 \001(\0132\036.google.privacy.dlp.v2.F" + + "ieldId\022F\n\016transformation\030\003 \001(\0132..google." + + "privacy.dlp.v2.PrimitiveTransformation\022I" + + "\n\025field_transformations\030\005 \003(\0132*.google.p" + + "rivacy.dlp.v2.FieldTransformation\022A\n\017rec" + + "ord_suppress\030\006 \001(\0132(.google.privacy.dlp." + + "v2.RecordSuppression\022K\n\007results\030\004 \003(\0132:." + + "google.privacy.dlp.v2.TransformationSumm" + + "ary.SummaryResult\022\031\n\021transformed_bytes\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.Tran" + + "sformationSummary.TransformationResultCo" + + "de\022\017\n\007details\030\003 \001(\t\"^\n\030TransformationRes" + + "ultCode\022*\n&TRANSFORMATION_RESULT_CODE_UN" + + "SPECIFIED\020\000\022\013\n\007SUCCESS\020\001\022\t\n\005ERROR\020\002\"U\n\010S" + + "chedule\022?\n\032recurrence_period_duration\030\001 " + + "\001(\0132\031.google.protobuf.DurationH\000B\010\n\006opti" + + "on\"\010\n\006Manual\"\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\013des" + + "cription\030\003 \001(\t\0224\n\013create_time\030\004 \001(\0132\032.go" + + "ogle.protobuf.TimestampB\003\340A\003\0224\n\013update_t" + + "ime\030\005 \001(\0132\032.google.protobuf.TimestampB\003\340" + + "A\003\022<\n\016inspect_config\030\006 \001(\0132$.google.priv" + + "acy.dlp.v2.InspectConfig:\306\002\352A\302\002\n\"dlp.goo" + + "gleapis.com/InspectTemplate\022@organizatio" + + "ns/{organization}/inspectTemplates/{insp" + + "ect_template}\0226projects/{project}/inspec" + + "tTemplates/{inspect_template}\022Uorganizat" + + "ions/{organization}/locations/{location}" + + "/inspectTemplates/{inspect_template}\022Kpr" + + "ojects/{project}/locations/{location}/in" + + "spectTemplates/{inspect_template}\"\346\004\n\022De" + + "identifyTemplate\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\022B\n\021deidentify" + + "_config\030\006 \001(\0132\'.google.privacy.dlp.v2.De" + + "identifyConfig:\341\002\352A\335\002\n%dlp.googleapis.co" + + "m/DeidentifyTemplate\022Forganizations/{org" + + "anization}/deidentifyTemplates/{deidenti" + + "fy_template}\022\n\013inspect_job\030\004 \001(\0132\'." + + "google.privacy.dlp.v2.InspectJobConfigH\000" + + "\022;\n\010triggers\030\005 \003(\0132).google.privacy.dlp." + + "v2.JobTrigger.Trigger\0221\n\006errors\030\006 \003(\0132\034." + + "google.privacy.dlp.v2.ErrorB\003\340A\003\0224\n\013crea" + + "te_time\030\007 \001(\0132\032.google.protobuf.Timestam" + + "pB\003\340A\003\0224\n\013update_time\030\010 \001(\0132\032.google.pro" + + "tobuf.TimestampB\003\340A\003\0226\n\rlast_run_time\030\t " + + "\001(\0132\032.google.protobuf.TimestampB\003\340A\003\022=\n\006" + + "status\030\n \001(\0162(.google.privacy.dlp.v2.Job" + + "Trigger.StatusB\003\340A\002\032z\n\007Trigger\0223\n\010schedu" + + "le\030\001 \001(\0132\037.google.privacy.dlp.v2.Schedul" + + "eH\000\022/\n\006manual\030\002 \001(\0132\035.google.privacy.dlp" + + ".v2.ManualH\000B\t\n\007trigger\"H\n\006Status\022\026\n\022STA" + + "TUS_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}/jobT" + + "riggers/{job_trigger}\022Aprojects/{project" + + "}/locations/{location}/jobTriggers/{job_" + + "trigger}B\005\n\003job\"\364\005\n\006Action\022C\n\rsave_findi" + + "ngs\030\001 \001(\0132*.google.privacy.dlp.v2.Action" + + ".SaveFindingsH\000\022@\n\007pub_sub\030\002 \001(\0132-.googl" + + "e.privacy.dlp.v2.Action.PublishToPubSubH" + + "\000\022U\n\027publish_summary_to_cscc\030\003 \001(\01322.goo" + + "gle.privacy.dlp.v2.Action.PublishSummary" + + "ToCsccH\000\022q\n&publish_findings_to_cloud_da" + + "ta_catalog\030\005 \001(\0132?.google.privacy.dlp.v2" + + ".Action.PublishFindingsToCloudDataCatalo" + + "gH\000\022V\n\027job_notification_emails\030\010 \001(\01323.g" + + "oogle.privacy.dlp.v2.Action.JobNotificat" + + "ionEmailsH\000\022T\n\026publish_to_stackdriver\030\t " + + "\001(\01322.google.privacy.dlp.v2.Action.Publi" + + "shToStackdriverH\000\032Q\n\014SaveFindings\022A\n\rout" + + "put_config\030\001 \001(\0132*.google.privacy.dlp.v2" + + ".OutputStorageConfig\032 \n\017PublishToPubSub\022" + + "\r\n\005topic\030\001 \001(\t\032\026\n\024PublishSummaryToCscc\032#" + + "\n!PublishFindingsToCloudDataCatalog\032\027\n\025J" + + "obNotificationEmails\032\026\n\024PublishToStackdr" + + "iverB\010\n\006action\"\313\001\n\034CreateInspectTemplate" + + "Request\022:\n\006parent\030\001 \001(\tB*\340A\002\372A$\022\"dlp.goo" + + "gleapis.com/InspectTemplate\022E\n\020inspect_t" + + "emplate\030\002 \001(\0132&.google.privacy.dlp.v2.In" + + "spectTemplateB\003\340A\002\022\023\n\013template_id\030\003 \001(\t\022" + + "\023\n\013location_id\030\004 \001(\t\"\313\001\n\034UpdateInspectTe" + + "mplateRequest\0228\n\004name\030\001 \001(\tB*\340A\002\372A$\n\"dlp" + + ".googleapis.com/InspectTemplate\022@\n\020inspe" + + "ct_template\030\002 \001(\0132&.google.privacy.dlp.v" + + "2.InspectTemplate\022/\n\013update_mask\030\003 \001(\0132\032" + + ".google.protobuf.FieldMask\"U\n\031GetInspect" + + "TemplateRequest\0228\n\004name\030\001 \001(\tB*\340A\002\372A$\n\"d" + + "lp.googleapis.com/InspectTemplate\"\247\001\n\033Li" + + "stInspectTemplatesRequest\022:\n\006parent\030\001 \001(" + + "\tB*\340A\002\372A$\022\"dlp.googleapis.com/InspectTem" + + "plate\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\021i" + + "nspect_templates\030\001 \003(\0132&.google.privacy." + + "dlp.v2.InspectTemplate\022\027\n\017next_page_toke" + + "n\030\002 \001(\t\"X\n\034DeleteInspectTemplateRequest\022" + + "8\n\004name\030\001 \001(\tB*\340A\002\372A$\n\"dlp.googleapis.co" + + "m/InspectTemplate\"\304\001\n\027CreateJobTriggerRe" + + "quest\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-\n+cloudreso" + + "urcemanager.googleapis.com/Project\022;\n\013jo" + + "b_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\013l" + + "ocation_id\030\004 \001(\t\"P\n\031ActivateJobTriggerRe" + + "quest\0223\n\004name\030\001 \001(\tB%\340A\002\372A\037\n\035dlp.googlea" + + "pis.com/JobTrigger\"\267\001\n\027UpdateJobTriggerR" + + "equest\0223\n\004name\030\001 \001(\tB%\340A\002\372A\037\n\035dlp.google" + + "apis.com/JobTrigger\0226\n\013job_trigger\030\002 \001(\013" + + "2!.google.privacy.dlp.v2.JobTrigger\022/\n\013u" + + "pdate_mask\030\003 \001(\0132\032.google.protobuf.Field" + + "Mask\"K\n\024GetJobTriggerRequest\0223\n\004name\030\001 \001" + "(\tB%\340A\002\372A\037\n\035dlp.googleapis.com/JobTrigge" - + "r\"\267\001\n\027UpdateJobTriggerRequest\0223\n\004name\030\001 " - + "\001(\tB%\340A\002\372A\037\n\035dlp.googleapis.com/JobTrigg" - + "er\0226\n\013job_trigger\030\002 \001(\0132!.google.privacy" - + ".dlp.v2.JobTrigger\022/\n\013update_mask\030\003 \001(\0132" - + "\032.google.protobuf.FieldMask\"K\n\024GetJobTri" - + "ggerRequest\0223\n\004name\030\001 \001(\tB%\340A\002\372A\037\n\035dlp.g" - + "oogleapis.com/JobTrigger\"\210\002\n\023CreateDlpJo" - + "bRequest\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-\n+cloudr" - + "esourcemanager.googleapis.com/Project\022>\n" - + "\013inspect_job\030\002 \001(\0132\'.google.privacy.dlp." - + "v2.InspectJobConfigH\000\022@\n\010risk_job\030\003 \001(\0132" - + ",.google.privacy.dlp.v2.RiskAnalysisJobC" - + "onfigH\000\022\016\n\006job_id\030\004 \001(\t\022\023\n\013location_id\030\005" - + " \001(\tB\005\n\003job\"\273\001\n\026ListJobTriggersRequest\022C" - + "\n\006parent\030\001 \001(\tB3\340A\002\372A-\n+cloudresourceman" - + "ager.googleapis.com/Project\022\022\n\npage_toke" - + "n\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\023\n\013location_id\030\007 \001(" - + "\t\"k\n\027ListJobTriggersResponse\0227\n\014job_trig" - + "gers\030\001 \003(\0132!.google.privacy.dlp.v2.JobTr" - + "igger\022\027\n\017next_page_token\030\002 \001(\t\"N\n\027Delete" - + "JobTriggerRequest\0223\n\004name\030\001 \001(\tB%\340A\002\372A\037\n" - + "\035dlp.googleapis.com/JobTrigger\"\335\001\n\020Inspe" - + "ctJobConfig\022<\n\016storage_config\030\001 \001(\0132$.go" - + "ogle.privacy.dlp.v2.StorageConfig\022<\n\016ins" - + "pect_config\030\002 \001(\0132$.google.privacy.dlp.v" - + "2.InspectConfig\022\035\n\025inspect_template_name" - + "\030\003 \001(\t\022.\n\007actions\030\004 \003(\0132\035.google.privacy" - + ".dlp.v2.Action\"\244\005\n\006DlpJob\022\014\n\004name\030\001 \001(\t\022" - + "/\n\004type\030\002 \001(\0162!.google.privacy.dlp.v2.Dl" - + "pJobType\0225\n\005state\030\003 \001(\0162&.google.privacy" - + ".dlp.v2.DlpJob.JobState\022K\n\014risk_details\030" - + "\004 \001(\01323.google.privacy.dlp.v2.AnalyzeDat" - + "aSourceRiskDetailsH\000\022J\n\017inspect_details\030" - + "\005 \001(\0132/.google.privacy.dlp.v2.InspectDat" - + "aSourceDetailsH\000\022/\n\013create_time\030\006 \001(\0132\032." - + "google.protobuf.Timestamp\022.\n\nstart_time\030" - + "\007 \001(\0132\032.google.protobuf.Timestamp\022,\n\010end" - + "_time\030\010 \001(\0132\032.google.protobuf.Timestamp\022" - + "\030\n\020job_trigger_name\030\n \001(\t\022,\n\006errors\030\013 \003(" - + "\0132\034.google.privacy.dlp.v2.Error\"c\n\010JobSt" - + "ate\022\031\n\025JOB_STATE_UNSPECIFIED\020\000\022\013\n\007PENDIN" - + "G\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:D\352AA\n\031dlp.googleapis.com/Dl" - + "pJob\022$projects/{project}/dlpJobs/{dlp_jo" - + "b}B\t\n\007details\"C\n\020GetDlpJobRequest\022/\n\004nam" - + "e\030\001 \001(\tB!\340A\002\372A\033\n\031dlp.googleapis.com/DlpJ" - + "ob\"\350\001\n\022ListDlpJobsRequest\022C\n\006parent\030\004 \001(" + + "r\"\210\002\n\023CreateDlpJobRequest\022C\n\006parent\030\001 \001(" + "\tB3\340A\002\372A-\n+cloudresourcemanager.googleap" - + "is.com/Project\022\016\n\006filter\030\001 \001(\t\022\021\n\tpage_s" - + "ize\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\010order_by\030\006 \001(\t\022\023\n\013location_id\030\007 \001(\t\"[\n" - + "\023ListDlpJobsResponse\022+\n\004jobs\030\001 \003(\0132\035.goo" - + "gle.privacy.dlp.v2.DlpJob\022\027\n\017next_page_t" - + "oken\030\002 \001(\t\"F\n\023CancelDlpJobRequest\022/\n\004nam" + + "is.com/Project\022>\n\013inspect_job\030\002 \001(\0132\'.go" + + "ogle.privacy.dlp.v2.InspectJobConfigH\000\022@" + + "\n\010risk_job\030\003 \001(\0132,.google.privacy.dlp.v2" + + ".RiskAnalysisJobConfigH\000\022\016\n\006job_id\030\004 \001(\t" + + "\022\023\n\013location_id\030\005 \001(\tB\005\n\003job\"\273\001\n\026ListJob" + + "TriggersRequest\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-\n" + + "+cloudresourcemanager.googleapis.com/Pro" + + "ject\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\023\n" + + "\013location_id\030\007 \001(\t\"k\n\027ListJobTriggersRes" + + "ponse\0227\n\014job_triggers\030\001 \003(\0132!.google.pri" + + "vacy.dlp.v2.JobTrigger\022\027\n\017next_page_toke" + + "n\030\002 \001(\t\"N\n\027DeleteJobTriggerRequest\0223\n\004na" + + "me\030\001 \001(\tB%\340A\002\372A\037\n\035dlp.googleapis.com/Job" + + "Trigger\"\335\001\n\020InspectJobConfig\022<\n\016storage_" + + "config\030\001 \001(\0132$.google.privacy.dlp.v2.Sto" + + "rageConfig\022<\n\016inspect_config\030\002 \001(\0132$.goo" + + "gle.privacy.dlp.v2.InspectConfig\022\035\n\025insp" + + "ect_template_name\030\003 \001(\t\022.\n\007actions\030\004 \003(\013" + + "2\035.google.privacy.dlp.v2.Action\"\353\005\n\006DlpJ" + + "ob\022\014\n\004name\030\001 \001(\t\022/\n\004type\030\002 \001(\0162!.google." + + "privacy.dlp.v2.DlpJobType\0225\n\005state\030\003 \001(\016" + + "2&.google.privacy.dlp.v2.DlpJob.JobState" + + "\022K\n\014risk_details\030\004 \001(\01323.google.privacy." + + "dlp.v2.AnalyzeDataSourceRiskDetailsH\000\022J\n" + + "\017inspect_details\030\005 \001(\0132/.google.privacy." + + "dlp.v2.InspectDataSourceDetailsH\000\022/\n\013cre" + + "ate_time\030\006 \001(\0132\032.google.protobuf.Timesta" + + "mp\022.\n\nstart_time\030\007 \001(\0132\032.google.protobuf" + + ".Timestamp\022,\n\010end_time\030\010 \001(\0132\032.google.pr" + + "otobuf.Timestamp\022\030\n\020job_trigger_name\030\n \001" + + "(\t\022,\n\006errors\030\013 \003(\0132\034.google.privacy.dlp." + + "v2.Error\"o\n\010JobState\022\031\n\025JOB_STATE_UNSPEC" + + "IFIED\020\000\022\013\n\007PENDING\020\001\022\013\n\007RUNNING\020\002\022\010\n\004DON" + + "E\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$proje" + + "cts/{project}/dlpJobs/{dlp_job}\0229project" + + "s/{project}/locations/{location}/dlpJobs" + + "/{dlp_job}B\t\n\007details\"C\n\020GetDlpJobReques" + + "t\022/\n\004name\030\001 \001(\tB!\340A\002\372A\033\n\031dlp.googleapis." + + "com/DlpJob\"\350\001\n\022ListDlpJobsRequest\022C\n\006par" + + "ent\030\004 \001(\tB3\340A\002\372A-\n+cloudresourcemanager." + + "googleapis.com/Project\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.DlpJ" + + "obType\022\020\n\010order_by\030\006 \001(\t\022\023\n\013location_id\030" + + "\007 \001(\t\"[\n\023ListDlpJobsResponse\022+\n\004jobs\030\001 \003" + + "(\0132\035.google.privacy.dlp.v2.DlpJob\022\027\n\017nex" + + "t_page_token\030\002 \001(\t\"F\n\023CancelDlpJobReques" + + "t\022/\n\004name\030\001 \001(\tB!\340A\002\372A\033\n\031dlp.googleapis." + + "com/DlpJob\"F\n\023FinishDlpJobRequest\022/\n\004nam" + "e\030\001 \001(\tB!\340A\002\372A\033\n\031dlp.googleapis.com/DlpJ" + "ob\"F\n\023DeleteDlpJobRequest\022/\n\004name\030\001 \001(\tB" + "!\340A\002\372A\033\n\031dlp.googleapis.com/DlpJob\"\327\001\n\037C" @@ -1348,306 +1449,346 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "CloudStorageFileSetH\000\022?\n\017big_query_field" + "\030\003 \001(\0132$.google.privacy.dlp.v2.BigQueryF" + "ieldH\000B\010\n\006source\"8\n\032LargeCustomDictionar" - + "yStats\022\032\n\022approx_num_phrases\030\001 \001(\003\"\240\001\n\024S" + + "yStats\022\032\n\022approx_num_phrases\030\001 \001(\003\"\246\002\n\024S" + "toredInfoTypeConfig\022\024\n\014display_name\030\001 \001(" + "\t\022\023\n\013description\030\002 \001(\t\022U\n\027large_custom_d" + "ictionary\030\003 \001(\01322.google.privacy.dlp.v2." - + "LargeCustomDictionaryConfigH\000B\006\n\004type\"s\n" - + "\023StoredInfoTypeStats\022T\n\027large_custom_dic" - + "tionary\030\001 \001(\01321.google.privacy.dlp.v2.La" - + "rgeCustomDictionaryStatsH\000B\006\n\004type\"\251\002\n\025S" - + "toredInfoTypeVersion\022;\n\006config\030\001 \001(\0132+.g" - + "oogle.privacy.dlp.v2.StoredInfoTypeConfi" - + "g\022/\n\013create_time\030\002 \001(\0132\032.google.protobuf" - + ".Timestamp\0229\n\005state\030\003 \001(\0162*.google.priva" - + "cy.dlp.v2.StoredInfoTypeState\022,\n\006errors\030" - + "\004 \003(\0132\034.google.privacy.dlp.v2.Error\0229\n\005s" - + "tats\030\005 \001(\0132*.google.privacy.dlp.v2.Store" - + "dInfoTypeStats\"\317\002\n\016StoredInfoType\022\014\n\004nam" - + "e\030\001 \001(\t\022E\n\017current_version\030\002 \001(\0132,.googl" - + "e.privacy.dlp.v2.StoredInfoTypeVersion\022F" - + "\n\020pending_versions\030\003 \003(\0132,.google.privac" - + "y.dlp.v2.StoredInfoTypeVersion:\237\001\352A\233\001\n!d" - + "lp.googleapis.com/StoredInfoType\022?organi" - + "zations/{organization}/storedInfoTypes/{" - + "stored_info_type}\0225projects/{project}/st" - + "oredInfoTypes/{stored_info_type}\"\314\001\n\033Cre" - + "ateStoredInfoTypeRequest\0229\n\006parent\030\001 \001(\t" - + "B)\340A\002\372A#\022!dlp.googleapis.com/StoredInfoT" - + "ype\022@\n\006config\030\002 \001(\0132+.google.privacy.dlp" - + ".v2.StoredInfoTypeConfigB\003\340A\002\022\033\n\023stored_" - + "info_type_id\030\003 \001(\t\022\023\n\013location_id\030\004 \001(\t\"" - + "\304\001\n\033UpdateStoredInfoTypeRequest\0227\n\004name\030" - + "\001 \001(\tB)\340A\002\372A#\n!dlp.googleapis.com/Stored" - + "InfoType\022;\n\006config\030\002 \001(\0132+.google.privac" - + "y.dlp.v2.StoredInfoTypeConfig\022/\n\013update_" - + "mask\030\003 \001(\0132\032.google.protobuf.FieldMask\"S" - + "\n\030GetStoredInfoTypeRequest\0227\n\004name\030\001 \001(\t" - + "B)\340A\002\372A#\n!dlp.googleapis.com/StoredInfoT" - + "ype\"\245\001\n\032ListStoredInfoTypesRequest\0229\n\006pa" - + "rent\030\001 \001(\tB)\340A\002\372A#\022!dlp.googleapis.com/S" - + "toredInfoType\022\022\n\npage_token\030\002 \001(\t\022\021\n\tpag" - + "e_size\030\003 \001(\005\022\020\n\010order_by\030\004 \001(\t\022\023\n\013locati" - + "on_id\030\005 \001(\t\"x\n\033ListStoredInfoTypesRespon" - + "se\022@\n\021stored_info_types\030\001 \003(\0132%.google.p" - + "rivacy.dlp.v2.StoredInfoType\022\027\n\017next_pag" - + "e_token\030\002 \001(\t\"V\n\033DeleteStoredInfoTypeReq" - + "uest\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n!dlp.googleap" - + "is.com/StoredInfoType*\273\001\n\022RelationalOper" - + "ator\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\014GRE" - + "ATER_THAN\020\003\022\r\n\tLESS_THAN\020\004\022\032\n\026GREATER_TH" - + "AN_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_FUL" - + "L_MATCH\020\001\022\037\n\033MATCHING_TYPE_PARTIAL_MATCH" - + "\020\002\022\037\n\033MATCHING_TYPE_INVERSE_MATCH\020\003*M\n\rC" - + "ontentOption\022\027\n\023CONTENT_UNSPECIFIED\020\000\022\020\n" - + "\014CONTENT_TEXT\020\001\022\021\n\rCONTENT_IMAGE\020\002*P\n\023In" - + "foTypeSupportedBy\022\031\n\025ENUM_TYPE_UNSPECIFI" - + "ED\020\000\022\013\n\007INSPECT\020\001\022\021\n\rRISK_ANALYSIS\020\002*R\n\n" - + "DlpJobType\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_T" - + "YPE_STATE_UNSPECIFIED\020\000\022\013\n\007PENDING\020\001\022\t\n\005" - + "READY\020\002\022\n\n\006FAILED\020\003\022\013\n\007INVALID\020\0042\333H\n\nDlp" - + "Service\022\347\001\n\016InspectContent\022,.google.priv" - + "acy.dlp.v2.InspectContentRequest\032-.googl" - + "e.privacy.dlp.v2.InspectContentResponse\"" - + "x\202\323\344\223\002r\"\'/v2/{parent=projects/*}/content" - + ":inspect:\001*ZD\"?/v2/{parent=projects/*}/l" - + "ocations/{location_id}/content:inspect:\001" - + "*\022\330\001\n\013RedactImage\022).google.privacy.dlp.v" - + "2.RedactImageRequest\032*.google.privacy.dl" - + "p.v2.RedactImageResponse\"r\202\323\344\223\002l\"$/v2/{p" - + "arent=projects/*}/image:redact:\001*ZA\"29/v2/{name=o" + + "rganizations/*/locations/*/inspectTempla" + + "tes/*}:\001*Z-2(/v2/{name=projects/*/inspec" + + "tTemplates/*}:\001*Z924/v2/{name=projects/*" + + "/locations/*/inspectTemplates/*}:\001*\332A!na" + + "me,inspect_template,update_mask\022\317\002\n\022GetI" + + "nspectTemplate\0220.google.privacy.dlp.v2.G" + + "etInspectTemplateRequest\032&.google.privac" + + "y.dlp.v2.InspectTemplate\"\336\001\202\323\344\223\002\320\001\022-/v2/" + + "{name=organizations/*/inspectTemplates/*" + + "}Z;\0229/v2/{name=organizations/*/locations" + + "/*/inspectTemplates/*}Z*\022(/v2/{name=proj" + + "ects/*/inspectTemplates/*}Z6\0224/v2/{name=" + + "projects/*/locations/*/inspectTemplates/" + + "*}\332A\004name\022\372\002\n\024ListInspectTemplates\0222.goo" + + "gle.privacy.dlp.v2.ListInspectTemplatesR" + + "equest\0323.google.privacy.dlp.v2.ListInspe" + + "ctTemplatesResponse\"\370\001\202\323\344\223\002\350\001\022-/v2/{pare" + + "nt=organizations/*}/inspectTemplatesZG\022E" + + "/v2/{parent=organizations/*}/locations/{" + + "location_id}/inspectTemplatesZ*\022(/v2/{pa" + + "rent=projects/*}/inspectTemplatesZB\022@/v2" + "/{parent=projects/*}/locations/{location" - + "_id}/image:redact:\001*\022\366\001\n\021DeidentifyConte" - + "nt\022/.google.privacy.dlp.v2.DeidentifyCon" - + "tentRequest\0320.google.privacy.dlp.v2.Deid" - + "entifyContentResponse\"~\202\323\344\223\002x\"*/v2/{pare" - + "nt=projects/*}/content:deidentify:\001*ZG\"B" - + "/v2/{parent=projects/*}/locations/{locat" - + "ion_id}/content:deidentify:\001*\022\366\001\n\021Reiden" - + "tifyContent\022/.google.privacy.dlp.v2.Reid" - + "entifyContentRequest\0320.google.privacy.dl" - + "p.v2.ReidentifyContentResponse\"~\202\323\344\223\002x\"*" - + "/v2/{parent=projects/*}/content:reidenti" - + "fy:\001*ZG\"B/v2/{parent=projects/*}/locatio" - + "ns/{location_id}/content:reidentify:\001*\022\270" - + "\001\n\rListInfoTypes\022+.google.privacy.dlp.v2" - + ".ListInfoTypesRequest\032,.google.privacy.d" - + "lp.v2.ListInfoTypesResponse\"L\202\323\344\223\0028\022\r/v2" - + "/infoTypesZ\'\022%/v2/locations/{location_id" - + "}/infoTypes\332A\013location_id\022\262\003\n\025CreateInsp" - + "ectTemplate\0223.google.privacy.dlp.v2.Crea" - + "teInspectTemplateRequest\032&.google.privac" - + "y.dlp.v2.InspectTemplate\"\273\002\202\323\344\223\002\364\001\"-/v2/" - + "{parent=organizations/*}/inspectTemplate" - + "s:\001*ZJ\"E/v2/{parent=organizations/*}/loc" - + "ations/{location_id}/inspectTemplates:\001*" - + "Z-\"(/v2/{parent=projects/*}/inspectTempl" - + "ates:\001*ZE\"@/v2/{parent=projects/*}/locat" - + "ions/{location_id}/inspectTemplates:\001*\332A" - + "\027parent,inspect_template\332A#parent,inspec" - + "t_template,location_id\022\376\002\n\025UpdateInspect" - + "Template\0223.google.privacy.dlp.v2.UpdateI" - + "nspectTemplateRequest\032&.google.privacy.d" - + "lp.v2.InspectTemplate\"\207\002\202\323\344\223\002\334\0012-/v2/{na" - + "me=organizations/*/inspectTemplates/*}:\001" - + "*Z>29/v2/{name=organizations/*/locations" - + "/*/inspectTemplates/*}:\001*Z-2(/v2/{name=p" - + "rojects/*/inspectTemplates/*}:\001*Z924/v2/" - + "{name=projects/*/locations/*/inspectTemp" - + "lates/*}:\001*\332A!name,inspect_template,upda" - + "te_mask\022\317\002\n\022GetInspectTemplate\0220.google." - + "privacy.dlp.v2.GetInspectTemplateRequest" - + "\032&.google.privacy.dlp.v2.InspectTemplate" - + "\"\336\001\202\323\344\223\002\320\001\022-/v2/{name=organizations/*/in", - "spectTemplates/*}Z;\0229/v2/{name=organizat" - + "ions/*/locations/*/inspectTemplates/*}Z*" - + "\022(/v2/{name=projects/*/inspectTemplates/" - + "*}Z6\0224/v2/{name=projects/*/locations/*/i" - + "nspectTemplates/*}\332A\004name\022\372\002\n\024ListInspec" - + "tTemplates\0222.google.privacy.dlp.v2.ListI" - + "nspectTemplatesRequest\0323.google.privacy." - + "dlp.v2.ListInspectTemplatesResponse\"\370\001\202\323" - + "\344\223\002\350\001\022-/v2/{parent=organizations/*}/insp" - + "ectTemplatesZG\022E/v2/{parent=organization" - + "s/*}/locations/{location_id}/inspectTemp" - + "latesZ*\022(/v2/{parent=projects/*}/inspect" - + "TemplatesZB\022@/v2/{parent=projects/*}/loc" - + "ations/{location_id}/inspectTemplates\332A\006" - + "parent\022\305\002\n\025DeleteInspectTemplate\0223.googl" - + "e.privacy.dlp.v2.DeleteInspectTemplateRe" - + "quest\032\026.google.protobuf.Empty\"\336\001\202\323\344\223\002\320\001*" - + "-/v2/{name=organizations/*/inspectTempla" - + "tes/*}Z;*9/v2/{name=organizations/*/loca" - + "tions/*/inspectTemplates/*}Z**(/v2/{name" - + "=projects/*/inspectTemplates/*}Z6*4/v2/{" - + "name=projects/*/locations/*/inspectTempl" - + "ates/*}\332A\004name\022\315\003\n\030CreateDeidentifyTempl" - + "ate\0226.google.privacy.dlp.v2.CreateDeiden" - + "tifyTemplateRequest\032).google.privacy.dlp" - + ".v2.DeidentifyTemplate\"\315\002\202\323\344\223\002\200\002\"0/v2/{p" - + "arent=organizations/*}/deidentifyTemplat" - + "es:\001*ZM\"H/v2/{parent=organizations/*}/lo" - + "cations/{location_id}/deidentifyTemplate" - + "s:\001*Z0\"+/v2/{parent=projects/*}/deidenti" - + "fyTemplates:\001*ZH\"C/v2/{parent=projects/*" - + "}/locations/{location_id}/deidentifyTemp" - + "lates:\001*\332A\032parent,deidentify_template\332A&" - + "parent,deidentify_template,location_id\022\226" - + "\003\n\030UpdateDeidentifyTemplate\0226.google.pri" - + "vacy.dlp.v2.UpdateDeidentifyTemplateRequ" + + "_id}/inspectTemplates\332A\006parent\022\305\002\n\025Delet" + + "eInspectTemplate\0223.google.privacy.dlp.v2" + + ".DeleteInspectTemplateRequest\032\026.google.p" + + "rotobuf.Empty\"\336\001\202\323\344\223\002\320\001*-/v2/{name=organ" + + "izations/*/inspectTemplates/*}Z;*9/v2/{n" + + "ame=organizations/*/locations/*/inspectT" + + "emplates/*}Z**(/v2/{name=projects/*/insp" + + "ectTemplates/*}Z6*4/v2/{name=projects/*/" + + "locations/*/inspectTemplates/*}\332A\004name\022\315" + + "\003\n\030CreateDeidentifyTemplate\0226.google.pri" + + "vacy.dlp.v2.CreateDeidentifyTemplateRequ" + "est\032).google.privacy.dlp.v2.DeidentifyTe" - + "mplate\"\226\002\202\323\344\223\002\350\00120/v2/{name=organization" - + "s/*/deidentifyTemplates/*}:\001*ZA2\022*\022*\"9/v2/{" + + "name=projects/*/locations/*/dlpJobs/*}:h" + + "ybridInspect:\001*\332A\004name\022\221\001\n\014FinishDlpJob\022" + + "*.google.privacy.dlp.v2.FinishDlpJobRequ" + + "est\032\026.google.protobuf.Empty\"=\202\323\344\223\0027\"2/v2" + + "/{name=projects/*/locations/*/dlpJobs/*}" + + ":finish:\001*\032F\312A\022dlp.googleapis.com\322A.http" + + "s://www.googleapis.com/auth/cloud-platfo" + + "rmB\215\001\n\031com.google.privacy.dlp.v2B\010DlpPro" + + "toP\001Z8google.golang.org/genproto/googlea" + + "pis/privacy/dlp/v2;dlp\252\002\023Google.Cloud.Dl" + + "p.V2\312\002\023Google\\Cloud\\Dlp\\V2b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -1778,7 +1919,26 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_Finding_descriptor, new java.lang.String[] { - "Quote", "InfoType", "Likelihood", "Location", "CreateTime", "QuoteInfo", + "Name", + "Quote", + "InfoType", + "Likelihood", + "Location", + "CreateTime", + "QuoteInfo", + "ResourceName", + "TriggerName", + "Labels", + "JobCreateTime", + "JobName", + }); + internal_static_google_privacy_dlp_v2_Finding_LabelsEntry_descriptor = + internal_static_google_privacy_dlp_v2_Finding_descriptor.getNestedTypes().get(0); + internal_static_google_privacy_dlp_v2_Finding_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_privacy_dlp_v2_Finding_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", }); internal_static_google_privacy_dlp_v2_Location_descriptor = getDescriptor().getMessageTypes().get(10); @@ -1786,7 +1946,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_Location_descriptor, new java.lang.String[] { - "ByteRange", "CodepointRange", "ContentLocations", + "ByteRange", "CodepointRange", "ContentLocations", "Container", }); internal_static_google_privacy_dlp_v2_ContentLocation_descriptor = getDescriptor().getMessageTypes().get(11); @@ -1826,8 +1986,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "RowIndex", }); - internal_static_google_privacy_dlp_v2_Range_descriptor = + internal_static_google_privacy_dlp_v2_Container_descriptor = getDescriptor().getMessageTypes().get(15); + internal_static_google_privacy_dlp_v2_Container_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_privacy_dlp_v2_Container_descriptor, + new java.lang.String[] { + "Type", "ProjectId", "FullPath", "RootPath", "RelativePath", "UpdateTime", "Version", + }); + internal_static_google_privacy_dlp_v2_Range_descriptor = + getDescriptor().getMessageTypes().get(16); internal_static_google_privacy_dlp_v2_Range_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_Range_descriptor, @@ -1835,7 +2003,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Start", "End", }); internal_static_google_privacy_dlp_v2_ImageLocation_descriptor = - getDescriptor().getMessageTypes().get(16); + getDescriptor().getMessageTypes().get(17); internal_static_google_privacy_dlp_v2_ImageLocation_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_ImageLocation_descriptor, @@ -1843,7 +2011,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "BoundingBoxes", }); internal_static_google_privacy_dlp_v2_BoundingBox_descriptor = - getDescriptor().getMessageTypes().get(17); + getDescriptor().getMessageTypes().get(18); internal_static_google_privacy_dlp_v2_BoundingBox_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_BoundingBox_descriptor, @@ -1851,7 +2019,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Top", "Left", "Width", "Height", }); internal_static_google_privacy_dlp_v2_RedactImageRequest_descriptor = - getDescriptor().getMessageTypes().get(18); + getDescriptor().getMessageTypes().get(19); internal_static_google_privacy_dlp_v2_RedactImageRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_RedactImageRequest_descriptor, @@ -1872,7 +2040,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "InfoType", "RedactAllText", "RedactionColor", "Target", }); internal_static_google_privacy_dlp_v2_Color_descriptor = - getDescriptor().getMessageTypes().get(19); + getDescriptor().getMessageTypes().get(20); internal_static_google_privacy_dlp_v2_Color_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_Color_descriptor, @@ -1880,7 +2048,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Red", "Green", "Blue", }); internal_static_google_privacy_dlp_v2_RedactImageResponse_descriptor = - getDescriptor().getMessageTypes().get(20); + getDescriptor().getMessageTypes().get(21); internal_static_google_privacy_dlp_v2_RedactImageResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_RedactImageResponse_descriptor, @@ -1888,7 +2056,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "RedactedImage", "ExtractedText", "InspectResult", }); internal_static_google_privacy_dlp_v2_DeidentifyContentRequest_descriptor = - getDescriptor().getMessageTypes().get(21); + getDescriptor().getMessageTypes().get(22); internal_static_google_privacy_dlp_v2_DeidentifyContentRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_DeidentifyContentRequest_descriptor, @@ -1902,7 +2070,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "LocationId", }); internal_static_google_privacy_dlp_v2_DeidentifyContentResponse_descriptor = - getDescriptor().getMessageTypes().get(22); + getDescriptor().getMessageTypes().get(23); internal_static_google_privacy_dlp_v2_DeidentifyContentResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_DeidentifyContentResponse_descriptor, @@ -1910,7 +2078,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Item", "Overview", }); internal_static_google_privacy_dlp_v2_ReidentifyContentRequest_descriptor = - getDescriptor().getMessageTypes().get(23); + getDescriptor().getMessageTypes().get(24); internal_static_google_privacy_dlp_v2_ReidentifyContentRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_ReidentifyContentRequest_descriptor, @@ -1924,7 +2092,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "LocationId", }); internal_static_google_privacy_dlp_v2_ReidentifyContentResponse_descriptor = - getDescriptor().getMessageTypes().get(24); + getDescriptor().getMessageTypes().get(25); internal_static_google_privacy_dlp_v2_ReidentifyContentResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_ReidentifyContentResponse_descriptor, @@ -1932,7 +2100,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Item", "Overview", }); internal_static_google_privacy_dlp_v2_InspectContentRequest_descriptor = - getDescriptor().getMessageTypes().get(25); + getDescriptor().getMessageTypes().get(26); internal_static_google_privacy_dlp_v2_InspectContentRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_InspectContentRequest_descriptor, @@ -1940,7 +2108,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "InspectConfig", "Item", "InspectTemplateName", "LocationId", }); internal_static_google_privacy_dlp_v2_InspectContentResponse_descriptor = - getDescriptor().getMessageTypes().get(26); + getDescriptor().getMessageTypes().get(27); internal_static_google_privacy_dlp_v2_InspectContentResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_InspectContentResponse_descriptor, @@ -1948,7 +2116,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Result", }); internal_static_google_privacy_dlp_v2_OutputStorageConfig_descriptor = - getDescriptor().getMessageTypes().get(27); + getDescriptor().getMessageTypes().get(28); internal_static_google_privacy_dlp_v2_OutputStorageConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_OutputStorageConfig_descriptor, @@ -1956,7 +2124,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Table", "OutputSchema", "Type", }); internal_static_google_privacy_dlp_v2_InfoTypeStats_descriptor = - getDescriptor().getMessageTypes().get(28); + getDescriptor().getMessageTypes().get(29); internal_static_google_privacy_dlp_v2_InfoTypeStats_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_InfoTypeStats_descriptor, @@ -1964,7 +2132,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "InfoType", "Count", }); internal_static_google_privacy_dlp_v2_InspectDataSourceDetails_descriptor = - getDescriptor().getMessageTypes().get(29); + getDescriptor().getMessageTypes().get(30); internal_static_google_privacy_dlp_v2_InspectDataSourceDetails_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_InspectDataSourceDetails_descriptor, @@ -1989,10 +2157,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_InspectDataSourceDetails_Result_descriptor, new java.lang.String[] { - "ProcessedBytes", "TotalEstimatedBytes", "InfoTypeStats", + "ProcessedBytes", "TotalEstimatedBytes", "InfoTypeStats", "HybridStats", + }); + internal_static_google_privacy_dlp_v2_HybridInspectStatistics_descriptor = + getDescriptor().getMessageTypes().get(31); + internal_static_google_privacy_dlp_v2_HybridInspectStatistics_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_privacy_dlp_v2_HybridInspectStatistics_descriptor, + new java.lang.String[] { + "ProcessedCount", "AbortedCount", "PendingCount", }); internal_static_google_privacy_dlp_v2_InfoTypeDescription_descriptor = - getDescriptor().getMessageTypes().get(30); + getDescriptor().getMessageTypes().get(32); internal_static_google_privacy_dlp_v2_InfoTypeDescription_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_InfoTypeDescription_descriptor, @@ -2000,7 +2176,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "DisplayName", "SupportedBy", "Description", }); internal_static_google_privacy_dlp_v2_ListInfoTypesRequest_descriptor = - getDescriptor().getMessageTypes().get(31); + getDescriptor().getMessageTypes().get(33); internal_static_google_privacy_dlp_v2_ListInfoTypesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_ListInfoTypesRequest_descriptor, @@ -2008,7 +2184,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "LanguageCode", "Filter", "LocationId", }); internal_static_google_privacy_dlp_v2_ListInfoTypesResponse_descriptor = - getDescriptor().getMessageTypes().get(32); + getDescriptor().getMessageTypes().get(34); internal_static_google_privacy_dlp_v2_ListInfoTypesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_ListInfoTypesResponse_descriptor, @@ -2016,7 +2192,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "InfoTypes", }); internal_static_google_privacy_dlp_v2_RiskAnalysisJobConfig_descriptor = - getDescriptor().getMessageTypes().get(33); + getDescriptor().getMessageTypes().get(35); internal_static_google_privacy_dlp_v2_RiskAnalysisJobConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_RiskAnalysisJobConfig_descriptor, @@ -2024,7 +2200,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PrivacyMetric", "SourceTable", "Actions", }); internal_static_google_privacy_dlp_v2_QuasiId_descriptor = - getDescriptor().getMessageTypes().get(34); + getDescriptor().getMessageTypes().get(36); internal_static_google_privacy_dlp_v2_QuasiId_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_QuasiId_descriptor, @@ -2032,7 +2208,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(35); + getDescriptor().getMessageTypes().get(37); internal_static_google_privacy_dlp_v2_StatisticalTable_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_StatisticalTable_descriptor, @@ -2048,7 +2224,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Field", "CustomTag", }); internal_static_google_privacy_dlp_v2_PrivacyMetric_descriptor = - getDescriptor().getMessageTypes().get(36); + getDescriptor().getMessageTypes().get(38); internal_static_google_privacy_dlp_v2_PrivacyMetric_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_PrivacyMetric_descriptor, @@ -2140,7 +2316,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "QuasiIds", "RegionCode", "AuxiliaryTables", }); internal_static_google_privacy_dlp_v2_AnalyzeDataSourceRiskDetails_descriptor = - getDescriptor().getMessageTypes().get(37); + getDescriptor().getMessageTypes().get(39); internal_static_google_privacy_dlp_v2_AnalyzeDataSourceRiskDetails_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_AnalyzeDataSourceRiskDetails_descriptor, @@ -2321,7 +2497,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "MinProbability", "MaxProbability", "BucketSize", "BucketValues", "BucketValueCount", }); internal_static_google_privacy_dlp_v2_ValueFrequency_descriptor = - getDescriptor().getMessageTypes().get(38); + getDescriptor().getMessageTypes().get(40); internal_static_google_privacy_dlp_v2_ValueFrequency_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_ValueFrequency_descriptor, @@ -2329,7 +2505,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Value", "Count", }); internal_static_google_privacy_dlp_v2_Value_descriptor = - getDescriptor().getMessageTypes().get(39); + getDescriptor().getMessageTypes().get(41); internal_static_google_privacy_dlp_v2_Value_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_Value_descriptor, @@ -2345,7 +2521,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Type", }); internal_static_google_privacy_dlp_v2_QuoteInfo_descriptor = - getDescriptor().getMessageTypes().get(40); + getDescriptor().getMessageTypes().get(42); internal_static_google_privacy_dlp_v2_QuoteInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_QuoteInfo_descriptor, @@ -2353,7 +2529,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DateTime", "ParsedQuote", }); internal_static_google_privacy_dlp_v2_DateTime_descriptor = - getDescriptor().getMessageTypes().get(41); + getDescriptor().getMessageTypes().get(43); internal_static_google_privacy_dlp_v2_DateTime_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_DateTime_descriptor, @@ -2369,15 +2545,42 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "OffsetMinutes", }); internal_static_google_privacy_dlp_v2_DeidentifyConfig_descriptor = - getDescriptor().getMessageTypes().get(42); + getDescriptor().getMessageTypes().get(44); 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", "Transformation", + "InfoTypeTransformations", + "RecordTransformations", + "TransformationErrorHandling", + "Transformation", + }); + internal_static_google_privacy_dlp_v2_TransformationErrorHandling_descriptor = + getDescriptor().getMessageTypes().get(45); + internal_static_google_privacy_dlp_v2_TransformationErrorHandling_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_privacy_dlp_v2_TransformationErrorHandling_descriptor, + new java.lang.String[] { + "ThrowError", "LeaveUntransformed", "Mode", }); + internal_static_google_privacy_dlp_v2_TransformationErrorHandling_ThrowError_descriptor = + internal_static_google_privacy_dlp_v2_TransformationErrorHandling_descriptor + .getNestedTypes() + .get(0); + internal_static_google_privacy_dlp_v2_TransformationErrorHandling_ThrowError_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_privacy_dlp_v2_TransformationErrorHandling_ThrowError_descriptor, + new java.lang.String[] {}); + internal_static_google_privacy_dlp_v2_TransformationErrorHandling_LeaveUntransformed_descriptor = + internal_static_google_privacy_dlp_v2_TransformationErrorHandling_descriptor + .getNestedTypes() + .get(1); + internal_static_google_privacy_dlp_v2_TransformationErrorHandling_LeaveUntransformed_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_privacy_dlp_v2_TransformationErrorHandling_LeaveUntransformed_descriptor, + new java.lang.String[] {}); internal_static_google_privacy_dlp_v2_PrimitiveTransformation_descriptor = - getDescriptor().getMessageTypes().get(43); + getDescriptor().getMessageTypes().get(46); internal_static_google_privacy_dlp_v2_PrimitiveTransformation_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_PrimitiveTransformation_descriptor, @@ -2396,7 +2599,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Transformation", }); internal_static_google_privacy_dlp_v2_TimePartConfig_descriptor = - getDescriptor().getMessageTypes().get(44); + getDescriptor().getMessageTypes().get(47); internal_static_google_privacy_dlp_v2_TimePartConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_TimePartConfig_descriptor, @@ -2404,7 +2607,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PartToExtract", }); internal_static_google_privacy_dlp_v2_CryptoHashConfig_descriptor = - getDescriptor().getMessageTypes().get(45); + getDescriptor().getMessageTypes().get(48); internal_static_google_privacy_dlp_v2_CryptoHashConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_CryptoHashConfig_descriptor, @@ -2412,7 +2615,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CryptoKey", }); internal_static_google_privacy_dlp_v2_CryptoDeterministicConfig_descriptor = - getDescriptor().getMessageTypes().get(46); + getDescriptor().getMessageTypes().get(49); internal_static_google_privacy_dlp_v2_CryptoDeterministicConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_CryptoDeterministicConfig_descriptor, @@ -2420,7 +2623,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CryptoKey", "SurrogateInfoType", "Context", }); internal_static_google_privacy_dlp_v2_ReplaceValueConfig_descriptor = - getDescriptor().getMessageTypes().get(47); + getDescriptor().getMessageTypes().get(50); internal_static_google_privacy_dlp_v2_ReplaceValueConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_ReplaceValueConfig_descriptor, @@ -2428,19 +2631,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "NewValue", }); internal_static_google_privacy_dlp_v2_ReplaceWithInfoTypeConfig_descriptor = - getDescriptor().getMessageTypes().get(48); + getDescriptor().getMessageTypes().get(51); 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(49); + getDescriptor().getMessageTypes().get(52); 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(50); + getDescriptor().getMessageTypes().get(53); internal_static_google_privacy_dlp_v2_CharsToIgnore_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_CharsToIgnore_descriptor, @@ -2448,7 +2651,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CharactersToSkip", "CommonCharactersToIgnore", "Characters", }); internal_static_google_privacy_dlp_v2_CharacterMaskConfig_descriptor = - getDescriptor().getMessageTypes().get(51); + getDescriptor().getMessageTypes().get(54); internal_static_google_privacy_dlp_v2_CharacterMaskConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_CharacterMaskConfig_descriptor, @@ -2456,7 +2659,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "MaskingCharacter", "NumberToMask", "ReverseOrder", "CharactersToIgnore", }); internal_static_google_privacy_dlp_v2_FixedSizeBucketingConfig_descriptor = - getDescriptor().getMessageTypes().get(52); + getDescriptor().getMessageTypes().get(55); internal_static_google_privacy_dlp_v2_FixedSizeBucketingConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_FixedSizeBucketingConfig_descriptor, @@ -2464,7 +2667,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "LowerBound", "UpperBound", "BucketSize", }); internal_static_google_privacy_dlp_v2_BucketingConfig_descriptor = - getDescriptor().getMessageTypes().get(53); + getDescriptor().getMessageTypes().get(56); internal_static_google_privacy_dlp_v2_BucketingConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_BucketingConfig_descriptor, @@ -2480,7 +2683,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Min", "Max", "ReplacementValue", }); internal_static_google_privacy_dlp_v2_CryptoReplaceFfxFpeConfig_descriptor = - getDescriptor().getMessageTypes().get(54); + getDescriptor().getMessageTypes().get(57); internal_static_google_privacy_dlp_v2_CryptoReplaceFfxFpeConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_CryptoReplaceFfxFpeConfig_descriptor, @@ -2494,7 +2697,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Alphabet", }); internal_static_google_privacy_dlp_v2_CryptoKey_descriptor = - getDescriptor().getMessageTypes().get(55); + getDescriptor().getMessageTypes().get(58); internal_static_google_privacy_dlp_v2_CryptoKey_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_CryptoKey_descriptor, @@ -2502,7 +2705,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Transient", "Unwrapped", "KmsWrapped", "Source", }); internal_static_google_privacy_dlp_v2_TransientCryptoKey_descriptor = - getDescriptor().getMessageTypes().get(56); + getDescriptor().getMessageTypes().get(59); internal_static_google_privacy_dlp_v2_TransientCryptoKey_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_TransientCryptoKey_descriptor, @@ -2510,7 +2713,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_privacy_dlp_v2_UnwrappedCryptoKey_descriptor = - getDescriptor().getMessageTypes().get(57); + getDescriptor().getMessageTypes().get(60); internal_static_google_privacy_dlp_v2_UnwrappedCryptoKey_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_UnwrappedCryptoKey_descriptor, @@ -2518,7 +2721,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", }); internal_static_google_privacy_dlp_v2_KmsWrappedCryptoKey_descriptor = - getDescriptor().getMessageTypes().get(58); + getDescriptor().getMessageTypes().get(61); internal_static_google_privacy_dlp_v2_KmsWrappedCryptoKey_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_KmsWrappedCryptoKey_descriptor, @@ -2526,7 +2729,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "WrappedKey", "CryptoKeyName", }); internal_static_google_privacy_dlp_v2_DateShiftConfig_descriptor = - getDescriptor().getMessageTypes().get(59); + getDescriptor().getMessageTypes().get(62); internal_static_google_privacy_dlp_v2_DateShiftConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_DateShiftConfig_descriptor, @@ -2534,7 +2737,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(60); + getDescriptor().getMessageTypes().get(63); internal_static_google_privacy_dlp_v2_InfoTypeTransformations_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_InfoTypeTransformations_descriptor, @@ -2552,7 +2755,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "InfoTypes", "PrimitiveTransformation", }); internal_static_google_privacy_dlp_v2_FieldTransformation_descriptor = - getDescriptor().getMessageTypes().get(61); + getDescriptor().getMessageTypes().get(64); internal_static_google_privacy_dlp_v2_FieldTransformation_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_FieldTransformation_descriptor, @@ -2564,7 +2767,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Transformation", }); internal_static_google_privacy_dlp_v2_RecordTransformations_descriptor = - getDescriptor().getMessageTypes().get(62); + getDescriptor().getMessageTypes().get(65); internal_static_google_privacy_dlp_v2_RecordTransformations_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_RecordTransformations_descriptor, @@ -2572,7 +2775,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "FieldTransformations", "RecordSuppressions", }); internal_static_google_privacy_dlp_v2_RecordSuppression_descriptor = - getDescriptor().getMessageTypes().get(63); + getDescriptor().getMessageTypes().get(66); internal_static_google_privacy_dlp_v2_RecordSuppression_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_RecordSuppression_descriptor, @@ -2580,7 +2783,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Condition", }); internal_static_google_privacy_dlp_v2_RecordCondition_descriptor = - getDescriptor().getMessageTypes().get(64); + getDescriptor().getMessageTypes().get(67); internal_static_google_privacy_dlp_v2_RecordCondition_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_RecordCondition_descriptor, @@ -2612,7 +2815,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "LogicalOperator", "Conditions", "Type", }); internal_static_google_privacy_dlp_v2_TransformationOverview_descriptor = - getDescriptor().getMessageTypes().get(65); + getDescriptor().getMessageTypes().get(68); internal_static_google_privacy_dlp_v2_TransformationOverview_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_TransformationOverview_descriptor, @@ -2620,7 +2823,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "TransformedBytes", "TransformationSummaries", }); internal_static_google_privacy_dlp_v2_TransformationSummary_descriptor = - getDescriptor().getMessageTypes().get(66); + getDescriptor().getMessageTypes().get(69); internal_static_google_privacy_dlp_v2_TransformationSummary_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_TransformationSummary_descriptor, @@ -2644,15 +2847,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Count", "Code", "Details", }); internal_static_google_privacy_dlp_v2_Schedule_descriptor = - getDescriptor().getMessageTypes().get(67); + getDescriptor().getMessageTypes().get(70); internal_static_google_privacy_dlp_v2_Schedule_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_Schedule_descriptor, new java.lang.String[] { "RecurrencePeriodDuration", "Option", }); + internal_static_google_privacy_dlp_v2_Manual_descriptor = + getDescriptor().getMessageTypes().get(71); + 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(68); + getDescriptor().getMessageTypes().get(72); internal_static_google_privacy_dlp_v2_InspectTemplate_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_InspectTemplate_descriptor, @@ -2660,7 +2868,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(69); + getDescriptor().getMessageTypes().get(73); internal_static_google_privacy_dlp_v2_DeidentifyTemplate_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_DeidentifyTemplate_descriptor, @@ -2668,7 +2876,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(70); + getDescriptor().getMessageTypes().get(74); internal_static_google_privacy_dlp_v2_Error_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_Error_descriptor, @@ -2676,7 +2884,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Details", "Timestamps", }); internal_static_google_privacy_dlp_v2_JobTrigger_descriptor = - getDescriptor().getMessageTypes().get(71); + getDescriptor().getMessageTypes().get(75); internal_static_google_privacy_dlp_v2_JobTrigger_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_JobTrigger_descriptor, @@ -2699,10 +2907,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_JobTrigger_Trigger_descriptor, new java.lang.String[] { - "Schedule", "Trigger", + "Schedule", "Manual", "Trigger", }); internal_static_google_privacy_dlp_v2_Action_descriptor = - getDescriptor().getMessageTypes().get(72); + getDescriptor().getMessageTypes().get(76); internal_static_google_privacy_dlp_v2_Action_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_Action_descriptor, @@ -2756,7 +2964,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { internal_static_google_privacy_dlp_v2_Action_PublishToStackdriver_descriptor, new java.lang.String[] {}); internal_static_google_privacy_dlp_v2_CreateInspectTemplateRequest_descriptor = - getDescriptor().getMessageTypes().get(73); + getDescriptor().getMessageTypes().get(77); internal_static_google_privacy_dlp_v2_CreateInspectTemplateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_CreateInspectTemplateRequest_descriptor, @@ -2764,7 +2972,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "InspectTemplate", "TemplateId", "LocationId", }); internal_static_google_privacy_dlp_v2_UpdateInspectTemplateRequest_descriptor = - getDescriptor().getMessageTypes().get(74); + getDescriptor().getMessageTypes().get(78); internal_static_google_privacy_dlp_v2_UpdateInspectTemplateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_UpdateInspectTemplateRequest_descriptor, @@ -2772,7 +2980,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "InspectTemplate", "UpdateMask", }); internal_static_google_privacy_dlp_v2_GetInspectTemplateRequest_descriptor = - getDescriptor().getMessageTypes().get(75); + getDescriptor().getMessageTypes().get(79); internal_static_google_privacy_dlp_v2_GetInspectTemplateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_GetInspectTemplateRequest_descriptor, @@ -2780,7 +2988,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_privacy_dlp_v2_ListInspectTemplatesRequest_descriptor = - getDescriptor().getMessageTypes().get(76); + getDescriptor().getMessageTypes().get(80); internal_static_google_privacy_dlp_v2_ListInspectTemplatesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_ListInspectTemplatesRequest_descriptor, @@ -2788,7 +2996,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(77); + getDescriptor().getMessageTypes().get(81); internal_static_google_privacy_dlp_v2_ListInspectTemplatesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_ListInspectTemplatesResponse_descriptor, @@ -2796,7 +3004,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "InspectTemplates", "NextPageToken", }); internal_static_google_privacy_dlp_v2_DeleteInspectTemplateRequest_descriptor = - getDescriptor().getMessageTypes().get(78); + getDescriptor().getMessageTypes().get(82); internal_static_google_privacy_dlp_v2_DeleteInspectTemplateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_DeleteInspectTemplateRequest_descriptor, @@ -2804,7 +3012,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_privacy_dlp_v2_CreateJobTriggerRequest_descriptor = - getDescriptor().getMessageTypes().get(79); + getDescriptor().getMessageTypes().get(83); internal_static_google_privacy_dlp_v2_CreateJobTriggerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_CreateJobTriggerRequest_descriptor, @@ -2812,7 +3020,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "JobTrigger", "TriggerId", "LocationId", }); internal_static_google_privacy_dlp_v2_ActivateJobTriggerRequest_descriptor = - getDescriptor().getMessageTypes().get(80); + getDescriptor().getMessageTypes().get(84); internal_static_google_privacy_dlp_v2_ActivateJobTriggerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_ActivateJobTriggerRequest_descriptor, @@ -2820,7 +3028,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_privacy_dlp_v2_UpdateJobTriggerRequest_descriptor = - getDescriptor().getMessageTypes().get(81); + getDescriptor().getMessageTypes().get(85); internal_static_google_privacy_dlp_v2_UpdateJobTriggerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_UpdateJobTriggerRequest_descriptor, @@ -2828,7 +3036,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "JobTrigger", "UpdateMask", }); internal_static_google_privacy_dlp_v2_GetJobTriggerRequest_descriptor = - getDescriptor().getMessageTypes().get(82); + getDescriptor().getMessageTypes().get(86); internal_static_google_privacy_dlp_v2_GetJobTriggerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_GetJobTriggerRequest_descriptor, @@ -2836,7 +3044,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_privacy_dlp_v2_CreateDlpJobRequest_descriptor = - getDescriptor().getMessageTypes().get(83); + getDescriptor().getMessageTypes().get(87); internal_static_google_privacy_dlp_v2_CreateDlpJobRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_CreateDlpJobRequest_descriptor, @@ -2844,7 +3052,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(84); + getDescriptor().getMessageTypes().get(88); internal_static_google_privacy_dlp_v2_ListJobTriggersRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_ListJobTriggersRequest_descriptor, @@ -2852,7 +3060,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageToken", "PageSize", "OrderBy", "Filter", "LocationId", }); internal_static_google_privacy_dlp_v2_ListJobTriggersResponse_descriptor = - getDescriptor().getMessageTypes().get(85); + getDescriptor().getMessageTypes().get(89); internal_static_google_privacy_dlp_v2_ListJobTriggersResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_ListJobTriggersResponse_descriptor, @@ -2860,7 +3068,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "JobTriggers", "NextPageToken", }); internal_static_google_privacy_dlp_v2_DeleteJobTriggerRequest_descriptor = - getDescriptor().getMessageTypes().get(86); + getDescriptor().getMessageTypes().get(90); internal_static_google_privacy_dlp_v2_DeleteJobTriggerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_DeleteJobTriggerRequest_descriptor, @@ -2868,7 +3076,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_privacy_dlp_v2_InspectJobConfig_descriptor = - getDescriptor().getMessageTypes().get(87); + getDescriptor().getMessageTypes().get(91); internal_static_google_privacy_dlp_v2_InspectJobConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_InspectJobConfig_descriptor, @@ -2876,7 +3084,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "StorageConfig", "InspectConfig", "InspectTemplateName", "Actions", }); internal_static_google_privacy_dlp_v2_DlpJob_descriptor = - getDescriptor().getMessageTypes().get(88); + getDescriptor().getMessageTypes().get(92); internal_static_google_privacy_dlp_v2_DlpJob_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_DlpJob_descriptor, @@ -2894,7 +3102,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Details", }); internal_static_google_privacy_dlp_v2_GetDlpJobRequest_descriptor = - getDescriptor().getMessageTypes().get(89); + getDescriptor().getMessageTypes().get(93); internal_static_google_privacy_dlp_v2_GetDlpJobRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_GetDlpJobRequest_descriptor, @@ -2902,7 +3110,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_privacy_dlp_v2_ListDlpJobsRequest_descriptor = - getDescriptor().getMessageTypes().get(90); + getDescriptor().getMessageTypes().get(94); internal_static_google_privacy_dlp_v2_ListDlpJobsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_ListDlpJobsRequest_descriptor, @@ -2910,7 +3118,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(91); + getDescriptor().getMessageTypes().get(95); internal_static_google_privacy_dlp_v2_ListDlpJobsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_ListDlpJobsResponse_descriptor, @@ -2918,15 +3126,23 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Jobs", "NextPageToken", }); internal_static_google_privacy_dlp_v2_CancelDlpJobRequest_descriptor = - getDescriptor().getMessageTypes().get(92); + getDescriptor().getMessageTypes().get(96); internal_static_google_privacy_dlp_v2_CancelDlpJobRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_CancelDlpJobRequest_descriptor, new java.lang.String[] { "Name", }); + internal_static_google_privacy_dlp_v2_FinishDlpJobRequest_descriptor = + getDescriptor().getMessageTypes().get(97); + internal_static_google_privacy_dlp_v2_FinishDlpJobRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_privacy_dlp_v2_FinishDlpJobRequest_descriptor, + new java.lang.String[] { + "Name", + }); internal_static_google_privacy_dlp_v2_DeleteDlpJobRequest_descriptor = - getDescriptor().getMessageTypes().get(93); + getDescriptor().getMessageTypes().get(98); internal_static_google_privacy_dlp_v2_DeleteDlpJobRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_DeleteDlpJobRequest_descriptor, @@ -2934,7 +3150,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_privacy_dlp_v2_CreateDeidentifyTemplateRequest_descriptor = - getDescriptor().getMessageTypes().get(94); + getDescriptor().getMessageTypes().get(99); internal_static_google_privacy_dlp_v2_CreateDeidentifyTemplateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_CreateDeidentifyTemplateRequest_descriptor, @@ -2942,7 +3158,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "DeidentifyTemplate", "TemplateId", "LocationId", }); internal_static_google_privacy_dlp_v2_UpdateDeidentifyTemplateRequest_descriptor = - getDescriptor().getMessageTypes().get(95); + getDescriptor().getMessageTypes().get(100); internal_static_google_privacy_dlp_v2_UpdateDeidentifyTemplateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_UpdateDeidentifyTemplateRequest_descriptor, @@ -2950,7 +3166,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "DeidentifyTemplate", "UpdateMask", }); internal_static_google_privacy_dlp_v2_GetDeidentifyTemplateRequest_descriptor = - getDescriptor().getMessageTypes().get(96); + getDescriptor().getMessageTypes().get(101); internal_static_google_privacy_dlp_v2_GetDeidentifyTemplateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_GetDeidentifyTemplateRequest_descriptor, @@ -2958,7 +3174,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_privacy_dlp_v2_ListDeidentifyTemplatesRequest_descriptor = - getDescriptor().getMessageTypes().get(97); + getDescriptor().getMessageTypes().get(102); internal_static_google_privacy_dlp_v2_ListDeidentifyTemplatesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_ListDeidentifyTemplatesRequest_descriptor, @@ -2966,7 +3182,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(98); + getDescriptor().getMessageTypes().get(103); internal_static_google_privacy_dlp_v2_ListDeidentifyTemplatesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_ListDeidentifyTemplatesResponse_descriptor, @@ -2974,7 +3190,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DeidentifyTemplates", "NextPageToken", }); internal_static_google_privacy_dlp_v2_DeleteDeidentifyTemplateRequest_descriptor = - getDescriptor().getMessageTypes().get(99); + getDescriptor().getMessageTypes().get(104); internal_static_google_privacy_dlp_v2_DeleteDeidentifyTemplateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_DeleteDeidentifyTemplateRequest_descriptor, @@ -2982,7 +3198,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_privacy_dlp_v2_LargeCustomDictionaryConfig_descriptor = - getDescriptor().getMessageTypes().get(100); + getDescriptor().getMessageTypes().get(105); internal_static_google_privacy_dlp_v2_LargeCustomDictionaryConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_LargeCustomDictionaryConfig_descriptor, @@ -2990,7 +3206,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "OutputPath", "CloudStorageFileSet", "BigQueryField", "Source", }); internal_static_google_privacy_dlp_v2_LargeCustomDictionaryStats_descriptor = - getDescriptor().getMessageTypes().get(101); + getDescriptor().getMessageTypes().get(106); internal_static_google_privacy_dlp_v2_LargeCustomDictionaryStats_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_LargeCustomDictionaryStats_descriptor, @@ -2998,15 +3214,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ApproxNumPhrases", }); internal_static_google_privacy_dlp_v2_StoredInfoTypeConfig_descriptor = - getDescriptor().getMessageTypes().get(102); + getDescriptor().getMessageTypes().get(107); internal_static_google_privacy_dlp_v2_StoredInfoTypeConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_StoredInfoTypeConfig_descriptor, new java.lang.String[] { - "DisplayName", "Description", "LargeCustomDictionary", "Type", + "DisplayName", "Description", "LargeCustomDictionary", "Dictionary", "Regex", "Type", }); internal_static_google_privacy_dlp_v2_StoredInfoTypeStats_descriptor = - getDescriptor().getMessageTypes().get(103); + getDescriptor().getMessageTypes().get(108); internal_static_google_privacy_dlp_v2_StoredInfoTypeStats_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_StoredInfoTypeStats_descriptor, @@ -3014,7 +3230,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "LargeCustomDictionary", "Type", }); internal_static_google_privacy_dlp_v2_StoredInfoTypeVersion_descriptor = - getDescriptor().getMessageTypes().get(104); + getDescriptor().getMessageTypes().get(109); internal_static_google_privacy_dlp_v2_StoredInfoTypeVersion_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_StoredInfoTypeVersion_descriptor, @@ -3022,7 +3238,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(105); + getDescriptor().getMessageTypes().get(110); internal_static_google_privacy_dlp_v2_StoredInfoType_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_StoredInfoType_descriptor, @@ -3030,7 +3246,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "CurrentVersion", "PendingVersions", }); internal_static_google_privacy_dlp_v2_CreateStoredInfoTypeRequest_descriptor = - getDescriptor().getMessageTypes().get(106); + getDescriptor().getMessageTypes().get(111); internal_static_google_privacy_dlp_v2_CreateStoredInfoTypeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_CreateStoredInfoTypeRequest_descriptor, @@ -3038,7 +3254,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "Config", "StoredInfoTypeId", "LocationId", }); internal_static_google_privacy_dlp_v2_UpdateStoredInfoTypeRequest_descriptor = - getDescriptor().getMessageTypes().get(107); + getDescriptor().getMessageTypes().get(112); internal_static_google_privacy_dlp_v2_UpdateStoredInfoTypeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_UpdateStoredInfoTypeRequest_descriptor, @@ -3046,7 +3262,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "Config", "UpdateMask", }); internal_static_google_privacy_dlp_v2_GetStoredInfoTypeRequest_descriptor = - getDescriptor().getMessageTypes().get(108); + getDescriptor().getMessageTypes().get(113); internal_static_google_privacy_dlp_v2_GetStoredInfoTypeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_GetStoredInfoTypeRequest_descriptor, @@ -3054,7 +3270,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_privacy_dlp_v2_ListStoredInfoTypesRequest_descriptor = - getDescriptor().getMessageTypes().get(109); + getDescriptor().getMessageTypes().get(114); internal_static_google_privacy_dlp_v2_ListStoredInfoTypesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_ListStoredInfoTypesRequest_descriptor, @@ -3062,7 +3278,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(110); + getDescriptor().getMessageTypes().get(115); internal_static_google_privacy_dlp_v2_ListStoredInfoTypesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_ListStoredInfoTypesResponse_descriptor, @@ -3070,13 +3286,61 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "StoredInfoTypes", "NextPageToken", }); internal_static_google_privacy_dlp_v2_DeleteStoredInfoTypeRequest_descriptor = - getDescriptor().getMessageTypes().get(111); + getDescriptor().getMessageTypes().get(116); internal_static_google_privacy_dlp_v2_DeleteStoredInfoTypeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_DeleteStoredInfoTypeRequest_descriptor, new java.lang.String[] { "Name", }); + internal_static_google_privacy_dlp_v2_HybridInspectJobTriggerRequest_descriptor = + getDescriptor().getMessageTypes().get(117); + internal_static_google_privacy_dlp_v2_HybridInspectJobTriggerRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_privacy_dlp_v2_HybridInspectJobTriggerRequest_descriptor, + new java.lang.String[] { + "Name", "HybridItem", + }); + internal_static_google_privacy_dlp_v2_HybridInspectDlpJobRequest_descriptor = + getDescriptor().getMessageTypes().get(118); + internal_static_google_privacy_dlp_v2_HybridInspectDlpJobRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_privacy_dlp_v2_HybridInspectDlpJobRequest_descriptor, + new java.lang.String[] { + "Name", "HybridItem", + }); + internal_static_google_privacy_dlp_v2_HybridContentItem_descriptor = + getDescriptor().getMessageTypes().get(119); + internal_static_google_privacy_dlp_v2_HybridContentItem_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_privacy_dlp_v2_HybridContentItem_descriptor, + new java.lang.String[] { + "Item", "FindingDetails", + }); + internal_static_google_privacy_dlp_v2_HybridFindingDetails_descriptor = + getDescriptor().getMessageTypes().get(120); + internal_static_google_privacy_dlp_v2_HybridFindingDetails_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_privacy_dlp_v2_HybridFindingDetails_descriptor, + new java.lang.String[] { + "ContainerDetails", "FileOffset", "RowOffset", "TableOptions", "Labels", + }); + internal_static_google_privacy_dlp_v2_HybridFindingDetails_LabelsEntry_descriptor = + internal_static_google_privacy_dlp_v2_HybridFindingDetails_descriptor + .getNestedTypes() + .get(0); + internal_static_google_privacy_dlp_v2_HybridFindingDetails_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_privacy_dlp_v2_HybridFindingDetails_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_privacy_dlp_v2_HybridInspectResponse_descriptor = + getDescriptor().getMessageTypes().get(121); + 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[] {}); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.ClientProto.defaultHost); 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 7ae4e537..cc4ccc16 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 @@ -119,6 +119,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_privacy_dlp_v2_StorageConfig_TimespanConfig_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_privacy_dlp_v2_StorageConfig_TimespanConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_privacy_dlp_v2_HybridOptions_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_privacy_dlp_v2_HybridOptions_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_privacy_dlp_v2_HybridOptions_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_privacy_dlp_v2_HybridOptions_LabelsEntry_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_privacy_dlp_v2_BigQueryKey_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -151,6 +159,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_privacy_dlp_v2_EntityId_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_privacy_dlp_v2_EntityId_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_privacy_dlp_v2_TableOptions_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_privacy_dlp_v2_TableOptions_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -235,49 +247,58 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "7\n\017excluded_fields\030\005 \003(\0132\036.google.privac" + "y.dlp.v2.FieldId\"H\n\014SampleMethod\022\035\n\031SAMP" + "LE_METHOD_UNSPECIFIED\020\000\022\007\n\003TOP\020\001\022\020\n\014RAND" - + "OM_START\020\002\"\232\004\n\rStorageConfig\022D\n\021datastor" + + "OM_START\020\002\"\332\004\n\rStorageConfig\022D\n\021datastor" + "e_options\030\002 \001(\0132\'.google.privacy.dlp.v2." + "DatastoreOptionsH\000\022K\n\025cloud_storage_opti" + "ons\030\003 \001(\0132*.google.privacy.dlp.v2.CloudS" + "torageOptionsH\000\022C\n\021big_query_options\030\004 \001" + "(\0132&.google.privacy.dlp.v2.BigQueryOptio" - + "nsH\000\022L\n\017timespan_config\030\006 \001(\01323.google.p" - + "rivacy.dlp.v2.StorageConfig.TimespanConf" - + "ig\032\332\001\n\016TimespanConfig\022.\n\nstart_time\030\001 \001(" - + "\0132\032.google.protobuf.Timestamp\022,\n\010end_tim" - + "e\030\002 \001(\0132\032.google.protobuf.Timestamp\0227\n\017t" - + "imestamp_field\030\003 \001(\0132\036.google.privacy.dl" - + "p.v2.FieldId\0221\n)enable_auto_population_o" - + "f_timespan_config\030\004 \001(\010B\006\n\004type\"`\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*t" - + "\n\nLikelihood\022\032\n\026LIKELIHOOD_UNSPECIFIED\020\000" - + "\022\021\n\rVERY_UNLIKELY\020\001\022\014\n\010UNLIKELY\020\002\022\014\n\010POS" - + "SIBLE\020\003\022\n\n\006LIKELY\020\004\022\017\n\013VERY_LIKELY\020\005*Z\n\010" - + "FileType\022\031\n\025FILE_TYPE_UNSPECIFIED\020\000\022\017\n\013B" - + "INARY_FILE\020\001\022\r\n\tTEXT_FILE\020\002\022\t\n\005IMAGE\020\003\022\010" - + "\n\004AVRO\020\007B\217\001\n\031com.google.privacy.dlp.v2B\n" - + "DlpStorageP\001Z8google.golang.org/genproto" - + "/googleapis/privacy/dlp/v2;dlp\252\002\023Google." - + "Cloud.Dlp.V2\312\002\023Google\\Cloud\\Dlp\\V2b\006prot" - + "o3" + + "nsH\000\022>\n\016hybrid_options\030\t \001(\0132$.google.pr" + + "ivacy.dlp.v2.HybridOptionsH\000\022L\n\017timespan" + + "_config\030\006 \001(\01323.google.privacy.dlp.v2.St" + + "orageConfig.TimespanConfig\032\332\001\n\016TimespanC" + + "onfig\022.\n\nstart_time\030\001 \001(\0132\032.google.proto" + + "buf.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.FieldId\0221\n)" + + "enable_auto_population_of_timespan_confi" + + "g\030\004 \001(\010B\006\n\004type\"\366\001\n\rHybridOptions\022\023\n\013des" + + "cription\030\001 \001(\t\022#\n\033required_finding_label" + + "_keys\030\002 \003(\t\022@\n\006labels\030\003 \003(\01320.google.pri" + + "vacy.dlp.v2.HybridOptions.LabelsEntry\022:\n" + + "\rtable_options\030\004 \001(\0132#.google.privacy.dl" + + "p.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.privac" + + "y.dlp.v2.BigQueryTable\022\022\n\nrow_number\030\002 \001" + + "(\003\">\n\014DatastoreKey\022.\n\nentity_key\030\001 \001(\0132\032" + + ".google.privacy.dlp.v2.Key\"\273\001\n\003Key\0228\n\014pa" + + "rtition_id\030\001 \001(\0132\".google.privacy.dlp.v2" + + ".PartitionId\0224\n\004path\030\002 \003(\0132&.google.priv" + + "acy.dlp.v2.Key.PathElement\032D\n\013PathElemen" + + "t\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\rdatast" + + "ore_key\030\002 \001(\0132#.google.privacy.dlp.v2.Da" + + "tastoreKeyH\000\022;\n\rbig_query_key\030\003 \001(\0132\".go" + + "ogle.privacy.dlp.v2.BigQueryKeyH\000\022\021\n\tid_" + + "values\030\005 \003(\tB\006\n\004type\"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\005tabl" + + "e\030\001 \001(\0132$.google.privacy.dlp.v2.BigQuery" + + "Table\022-\n\005field\030\002 \001(\0132\036.google.privacy.dl" + + "p.v2.FieldId\"9\n\010EntityId\022-\n\005field\030\001 \001(\0132" + + "\036.google.privacy.dlp.v2.FieldId\"J\n\014Table" + + "Options\022:\n\022identifying_fields\030\001 \003(\0132\036.go" + + "ogle.privacy.dlp.v2.FieldId*t\n\nLikelihoo" + + "d\022\032\n\026LIKELIHOOD_UNSPECIFIED\020\000\022\021\n\rVERY_UN" + + "LIKELY\020\001\022\014\n\010UNLIKELY\020\002\022\014\n\010POSSIBLE\020\003\022\n\n\006" + + "LIKELY\020\004\022\017\n\013VERY_LIKELY\020\005*Z\n\010FileType\022\031\n" + + "\025FILE_TYPE_UNSPECIFIED\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\004AVRO\020\007B\217\001" + + "\n\031com.google.privacy.dlp.v2B\nDlpStorageP" + + "\001Z8google.golang.org/genproto/googleapis" + + "/privacy/dlp/v2;dlp\252\002\023Google.Cloud.Dlp.V" + + "2\312\002\023Google\\Cloud\\Dlp\\V2b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -489,6 +510,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DatastoreOptions", "CloudStorageOptions", "BigQueryOptions", + "HybridOptions", "TimespanConfig", "Type", }); @@ -500,8 +522,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "StartTime", "EndTime", "TimestampField", "EnableAutoPopulationOfTimespanConfig", }); - internal_static_google_privacy_dlp_v2_BigQueryKey_descriptor = + internal_static_google_privacy_dlp_v2_HybridOptions_descriptor = getDescriptor().getMessageTypes().get(13); + internal_static_google_privacy_dlp_v2_HybridOptions_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_privacy_dlp_v2_HybridOptions_descriptor, + new java.lang.String[] { + "Description", "RequiredFindingLabelKeys", "Labels", "TableOptions", + }); + internal_static_google_privacy_dlp_v2_HybridOptions_LabelsEntry_descriptor = + internal_static_google_privacy_dlp_v2_HybridOptions_descriptor.getNestedTypes().get(0); + internal_static_google_privacy_dlp_v2_HybridOptions_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_privacy_dlp_v2_HybridOptions_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_privacy_dlp_v2_BigQueryKey_descriptor = + getDescriptor().getMessageTypes().get(14); internal_static_google_privacy_dlp_v2_BigQueryKey_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_BigQueryKey_descriptor, @@ -509,7 +547,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "TableReference", "RowNumber", }); internal_static_google_privacy_dlp_v2_DatastoreKey_descriptor = - getDescriptor().getMessageTypes().get(14); + getDescriptor().getMessageTypes().get(15); internal_static_google_privacy_dlp_v2_DatastoreKey_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_DatastoreKey_descriptor, @@ -517,7 +555,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "EntityKey", }); internal_static_google_privacy_dlp_v2_Key_descriptor = - getDescriptor().getMessageTypes().get(15); + getDescriptor().getMessageTypes().get(16); internal_static_google_privacy_dlp_v2_Key_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_Key_descriptor, @@ -533,7 +571,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Kind", "Id", "Name", "IdType", }); internal_static_google_privacy_dlp_v2_RecordKey_descriptor = - getDescriptor().getMessageTypes().get(16); + getDescriptor().getMessageTypes().get(17); internal_static_google_privacy_dlp_v2_RecordKey_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_RecordKey_descriptor, @@ -541,7 +579,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DatastoreKey", "BigQueryKey", "IdValues", "Type", }); internal_static_google_privacy_dlp_v2_BigQueryTable_descriptor = - getDescriptor().getMessageTypes().get(17); + getDescriptor().getMessageTypes().get(18); internal_static_google_privacy_dlp_v2_BigQueryTable_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_BigQueryTable_descriptor, @@ -549,7 +587,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ProjectId", "DatasetId", "TableId", }); internal_static_google_privacy_dlp_v2_BigQueryField_descriptor = - getDescriptor().getMessageTypes().get(18); + getDescriptor().getMessageTypes().get(19); internal_static_google_privacy_dlp_v2_BigQueryField_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_BigQueryField_descriptor, @@ -557,13 +595,21 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Table", "Field", }); internal_static_google_privacy_dlp_v2_EntityId_descriptor = - getDescriptor().getMessageTypes().get(19); + getDescriptor().getMessageTypes().get(20); internal_static_google_privacy_dlp_v2_EntityId_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_EntityId_descriptor, new java.lang.String[] { "Field", }); + internal_static_google_privacy_dlp_v2_TableOptions_descriptor = + getDescriptor().getMessageTypes().get(21); + 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/Finding.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/Finding.java index cb06c653..c937310b 100644 --- a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/Finding.java +++ b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/Finding.java @@ -38,8 +38,12 @@ private Finding(com.google.protobuf.GeneratedMessageV3.Builder builder) { } private Finding() { + name_ = ""; quote_ = ""; likelihood_ = 0; + resourceName_ = ""; + triggerName_ = ""; + jobName_ = ""; } @java.lang.Override @@ -61,6 +65,7 @@ private Finding( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } + int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -144,6 +149,62 @@ private Finding( quoteInfo_ = subBuilder.buildPartial(); } + break; + } + case 66: + { + java.lang.String s = input.readStringRequireUtf8(); + + resourceName_ = s; + break; + } + case 74: + { + java.lang.String s = input.readStringRequireUtf8(); + + triggerName_ = s; + break; + } + case 82: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + labels_ = + com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + labels_.getMutableMap().put(labels__.getKey(), labels__.getValue()); + break; + } + case 90: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (jobCreateTime_ != null) { + subBuilder = jobCreateTime_.toBuilder(); + } + jobCreateTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(jobCreateTime_); + jobCreateTime_ = subBuilder.buildPartial(); + } + + break; + } + case 106: + { + java.lang.String s = input.readStringRequireUtf8(); + + jobName_ = s; + break; + } + case 114: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; break; } default: @@ -170,6 +231,17 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { .internal_static_google_privacy_dlp_v2_Finding_descriptor; } + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 10: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { @@ -180,6 +252,57 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.privacy.dlp.v2.Finding.Builder.class); } + public static final int NAME_FIELD_NUMBER = 14; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Resource name in format
+   * projects/{project}/locations/{location}/findings/{finding}
+   * Populated only when viewing persisted findings.
+   * 
+ * + * string name = 14; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Resource name in format
+   * projects/{project}/locations/{location}/findings/{finding}
+   * Populated only when viewing persisted findings.
+   * 
+ * + * string name = 14; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + public static final int QUOTE_FIELD_NUMBER = 1; private volatile java.lang.Object quote_; /** @@ -452,6 +575,329 @@ public com.google.privacy.dlp.v2.QuoteInfoOrBuilder getQuoteInfoOrBuilder() { return getQuoteInfo(); } + public static final int RESOURCE_NAME_FIELD_NUMBER = 8; + private volatile java.lang.Object resourceName_; + /** + * + * + *
+   * The job that stored the finding.
+   * 
+ * + * string resource_name = 8 [(.google.api.resource_reference) = { ... } + * + * @return The resourceName. + */ + 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 job that stored the finding.
+   * 
+ * + * string resource_name = 8 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for resourceName. + */ + 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 TRIGGER_NAME_FIELD_NUMBER = 9; + private volatile java.lang.Object triggerName_; + /** + * + * + *
+   * Job trigger name, if applicable, for this finding.
+   * (-- api-linter: core::0122::name-suffix=disabled
+   *     aip.dev/not-precedent: AIP-122 discourages _name suffixes for
+   *     resource names, but this has existed as part of the bigquery schema
+   *     before this rule existed. --)
+   * 
+ * + * string trigger_name = 9 [(.google.api.resource_reference) = { ... } + * + * @return The triggerName. + */ + public java.lang.String getTriggerName() { + java.lang.Object ref = triggerName_; + 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(); + triggerName_ = s; + return s; + } + } + /** + * + * + *
+   * Job trigger name, if applicable, for this finding.
+   * (-- api-linter: core::0122::name-suffix=disabled
+   *     aip.dev/not-precedent: AIP-122 discourages _name suffixes for
+   *     resource names, but this has existed as part of the bigquery schema
+   *     before this rule existed. --)
+   * 
+ * + * string trigger_name = 9 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for triggerName. + */ + public com.google.protobuf.ByteString getTriggerNameBytes() { + java.lang.Object ref = triggerName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + triggerName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LABELS_FIELD_NUMBER = 10; + + private static final class LabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_Finding_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + /** + * + * + *
+   * The labels associated with this `InspectFinding`.
+   * Label keys must be between 1 and 63 characters long and must conform
+   * to the following regular expression: \[a-z\](\[-a-z0-9\]*\[a-z0-9\])?.
+   * Label values must be between 0 and 63 characters long and must conform
+   * to the regular expression (\[a-z\](\[-a-z0-9\]*\[a-z0-9\])?)?.
+   * No more than 10 labels can be associated with a given finding.
+   * Example: <code>"environment" : "production"</code>
+   * Example: <code>"pipeline" : "etl"</code>
+   * 
+ * + * map<string, string> labels = 10; + */ + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + return internalGetLabels().getMap().containsKey(key); + } + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + /** + * + * + *
+   * The labels associated with this `InspectFinding`.
+   * Label keys must be between 1 and 63 characters long and must conform
+   * to the following regular expression: \[a-z\](\[-a-z0-9\]*\[a-z0-9\])?.
+   * Label values must be between 0 and 63 characters long and must conform
+   * to the regular expression (\[a-z\](\[-a-z0-9\]*\[a-z0-9\])?)?.
+   * No more than 10 labels can be associated with a given finding.
+   * Example: <code>"environment" : "production"</code>
+   * Example: <code>"pipeline" : "etl"</code>
+   * 
+ * + * map<string, string> labels = 10; + */ + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + * + * + *
+   * The labels associated with this `InspectFinding`.
+   * Label keys must be between 1 and 63 characters long and must conform
+   * to the following regular expression: \[a-z\](\[-a-z0-9\]*\[a-z0-9\])?.
+   * Label values must be between 0 and 63 characters long and must conform
+   * to the regular expression (\[a-z\](\[-a-z0-9\]*\[a-z0-9\])?)?.
+   * No more than 10 labels can be associated with a given finding.
+   * Example: <code>"environment" : "production"</code>
+   * Example: <code>"pipeline" : "etl"</code>
+   * 
+ * + * map<string, string> labels = 10; + */ + public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+   * The labels associated with this `InspectFinding`.
+   * Label keys must be between 1 and 63 characters long and must conform
+   * to the following regular expression: \[a-z\](\[-a-z0-9\]*\[a-z0-9\])?.
+   * Label values must be between 0 and 63 characters long and must conform
+   * to the regular expression (\[a-z\](\[-a-z0-9\]*\[a-z0-9\])?)?.
+   * No more than 10 labels can be associated with a given finding.
+   * Example: <code>"environment" : "production"</code>
+   * Example: <code>"pipeline" : "etl"</code>
+   * 
+ * + * map<string, string> labels = 10; + */ + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int JOB_CREATE_TIME_FIELD_NUMBER = 11; + private com.google.protobuf.Timestamp jobCreateTime_; + /** + * + * + *
+   * Time the job started that produced this finding.
+   * 
+ * + * .google.protobuf.Timestamp job_create_time = 11; + * + * @return Whether the jobCreateTime field is set. + */ + public boolean hasJobCreateTime() { + return jobCreateTime_ != null; + } + /** + * + * + *
+   * Time the job started that produced this finding.
+   * 
+ * + * .google.protobuf.Timestamp job_create_time = 11; + * + * @return The jobCreateTime. + */ + public com.google.protobuf.Timestamp getJobCreateTime() { + return jobCreateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : jobCreateTime_; + } + /** + * + * + *
+   * Time the job started that produced this finding.
+   * 
+ * + * .google.protobuf.Timestamp job_create_time = 11; + */ + public com.google.protobuf.TimestampOrBuilder getJobCreateTimeOrBuilder() { + return getJobCreateTime(); + } + + public static final int JOB_NAME_FIELD_NUMBER = 13; + private volatile java.lang.Object jobName_; + /** + * + * + *
+   * The job that stored the finding.
+   * (-- api-linter: core::0122::name-suffix=disabled
+   *     aip.dev/not-precedent: AIP-122 discourages _name suffixes for
+   *     resource names, but this has existed as part of the bigquery schema
+   *     before this rule existed. --)
+   * 
+ * + * string job_name = 13 [(.google.api.resource_reference) = { ... } + * + * @return The jobName. + */ + public java.lang.String getJobName() { + java.lang.Object ref = jobName_; + 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(); + jobName_ = s; + return s; + } + } + /** + * + * + *
+   * The job that stored the finding.
+   * (-- api-linter: core::0122::name-suffix=disabled
+   *     aip.dev/not-precedent: AIP-122 discourages _name suffixes for
+   *     resource names, but this has existed as part of the bigquery schema
+   *     before this rule existed. --)
+   * 
+ * + * string job_name = 13 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for jobName. + */ + public com.google.protobuf.ByteString getJobNameBytes() { + java.lang.Object ref = jobName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + jobName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -484,6 +930,23 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (quoteInfo_ != null) { output.writeMessage(7, getQuoteInfo()); } + if (!getResourceNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, resourceName_); + } + if (!getTriggerNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, triggerName_); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 10); + if (jobCreateTime_ != null) { + output.writeMessage(11, getJobCreateTime()); + } + if (!getJobNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 13, jobName_); + } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 14, name_); + } unknownFields.writeTo(output); } @@ -511,6 +974,31 @@ public int getSerializedSize() { if (quoteInfo_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getQuoteInfo()); } + if (!getResourceNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, resourceName_); + } + if (!getTriggerNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, triggerName_); + } + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, labels__); + } + if (jobCreateTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getJobCreateTime()); + } + if (!getJobNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, jobName_); + } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, name_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -526,6 +1014,7 @@ public boolean equals(final java.lang.Object obj) { } com.google.privacy.dlp.v2.Finding other = (com.google.privacy.dlp.v2.Finding) obj; + if (!getName().equals(other.getName())) return false; if (!getQuote().equals(other.getQuote())) return false; if (hasInfoType() != other.hasInfoType()) return false; if (hasInfoType()) { @@ -544,6 +1033,14 @@ public boolean equals(final java.lang.Object obj) { if (hasQuoteInfo()) { if (!getQuoteInfo().equals(other.getQuoteInfo())) return false; } + if (!getResourceName().equals(other.getResourceName())) return false; + if (!getTriggerName().equals(other.getTriggerName())) return false; + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (hasJobCreateTime() != other.hasJobCreateTime()) return false; + if (hasJobCreateTime()) { + if (!getJobCreateTime().equals(other.getJobCreateTime())) return false; + } + if (!getJobName().equals(other.getJobName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -555,6 +1052,8 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + QUOTE_FIELD_NUMBER; hash = (53 * hash) + getQuote().hashCode(); if (hasInfoType()) { @@ -575,6 +1074,20 @@ public int hashCode() { hash = (37 * hash) + QUOTE_INFO_FIELD_NUMBER; hash = (53 * hash) + getQuoteInfo().hashCode(); } + hash = (37 * hash) + RESOURCE_NAME_FIELD_NUMBER; + hash = (53 * hash) + getResourceName().hashCode(); + hash = (37 * hash) + TRIGGER_NAME_FIELD_NUMBER; + hash = (53 * hash) + getTriggerName().hashCode(); + if (!internalGetLabels().getMap().isEmpty()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLabels().hashCode(); + } + if (hasJobCreateTime()) { + hash = (37 * hash) + JOB_CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getJobCreateTime().hashCode(); + } + hash = (37 * hash) + JOB_NAME_FIELD_NUMBER; + hash = (53 * hash) + getJobName().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -692,6 +1205,26 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { .internal_static_google_privacy_dlp_v2_Finding_descriptor; } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 10: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + switch (number) { + case 10: + return internalGetMutableLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { @@ -719,6 +1252,8 @@ private void maybeForceBuilderInitialization() { @java.lang.Override public Builder clear() { super.clear(); + name_ = ""; + quote_ = ""; if (infoTypeBuilder_ == null) { @@ -747,6 +1282,19 @@ public Builder clear() { quoteInfo_ = null; quoteInfoBuilder_ = null; } + resourceName_ = ""; + + triggerName_ = ""; + + internalGetMutableLabels().clear(); + if (jobCreateTimeBuilder_ == null) { + jobCreateTime_ = null; + } else { + jobCreateTime_ = null; + jobCreateTimeBuilder_ = null; + } + jobName_ = ""; + return this; } @@ -773,6 +1321,8 @@ public com.google.privacy.dlp.v2.Finding build() { @java.lang.Override public com.google.privacy.dlp.v2.Finding buildPartial() { com.google.privacy.dlp.v2.Finding result = new com.google.privacy.dlp.v2.Finding(this); + int from_bitField0_ = bitField0_; + result.name_ = name_; result.quote_ = quote_; if (infoTypeBuilder_ == null) { result.infoType_ = infoType_; @@ -795,6 +1345,16 @@ public com.google.privacy.dlp.v2.Finding buildPartial() { } else { result.quoteInfo_ = quoteInfoBuilder_.build(); } + result.resourceName_ = resourceName_; + result.triggerName_ = triggerName_; + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + if (jobCreateTimeBuilder_ == null) { + result.jobCreateTime_ = jobCreateTime_; + } else { + result.jobCreateTime_ = jobCreateTimeBuilder_.build(); + } + result.jobName_ = jobName_; onBuilt(); return result; } @@ -844,6 +1404,10 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.privacy.dlp.v2.Finding other) { if (other == com.google.privacy.dlp.v2.Finding.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } if (!other.getQuote().isEmpty()) { quote_ = other.quote_; onChanged(); @@ -863,6 +1427,22 @@ public Builder mergeFrom(com.google.privacy.dlp.v2.Finding other) { if (other.hasQuoteInfo()) { mergeQuoteInfo(other.getQuoteInfo()); } + if (!other.getResourceName().isEmpty()) { + resourceName_ = other.resourceName_; + onChanged(); + } + if (!other.getTriggerName().isEmpty()) { + triggerName_ = other.triggerName_; + onChanged(); + } + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + if (other.hasJobCreateTime()) { + mergeJobCreateTime(other.getJobCreateTime()); + } + if (!other.getJobName().isEmpty()) { + jobName_ = other.jobName_; + onChanged(); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -892,6 +1472,124 @@ public Builder mergeFrom( return this; } + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Resource name in format
+     * projects/{project}/locations/{location}/findings/{finding}
+     * Populated only when viewing persisted findings.
+     * 
+ * + * string name = 14; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Resource name in format
+     * projects/{project}/locations/{location}/findings/{finding}
+     * Populated only when viewing persisted findings.
+     * 
+ * + * string name = 14; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Resource name in format
+     * projects/{project}/locations/{location}/findings/{finding}
+     * Populated only when viewing persisted findings.
+     * 
+ * + * string name = 14; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Resource name in format
+     * projects/{project}/locations/{location}/findings/{finding}
+     * Populated only when viewing persisted findings.
+     * 
+ * + * string name = 14; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Resource name in format
+     * projects/{project}/locations/{location}/findings/{finding}
+     * Populated only when viewing persisted findings.
+     * 
+ * + * string name = 14; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + private java.lang.Object quote_ = ""; /** * @@ -1871,6 +2569,750 @@ public com.google.privacy.dlp.v2.QuoteInfoOrBuilder getQuoteInfoOrBuilder() { return quoteInfoBuilder_; } + private java.lang.Object resourceName_ = ""; + /** + * + * + *
+     * The job that stored the finding.
+     * 
+ * + * string resource_name = 8 [(.google.api.resource_reference) = { ... } + * + * @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 job that stored the finding.
+     * 
+ * + * string resource_name = 8 [(.google.api.resource_reference) = { ... } + * + * @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 job that stored the finding.
+     * 
+ * + * string resource_name = 8 [(.google.api.resource_reference) = { ... } + * + * @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 job that stored the finding.
+     * 
+ * + * string resource_name = 8 [(.google.api.resource_reference) = { ... } + * + * @return This builder for chaining. + */ + public Builder clearResourceName() { + + resourceName_ = getDefaultInstance().getResourceName(); + onChanged(); + return this; + } + /** + * + * + *
+     * The job that stored the finding.
+     * 
+ * + * string resource_name = 8 [(.google.api.resource_reference) = { ... } + * + * @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 triggerName_ = ""; + /** + * + * + *
+     * Job trigger name, if applicable, for this finding.
+     * (-- api-linter: core::0122::name-suffix=disabled
+     *     aip.dev/not-precedent: AIP-122 discourages _name suffixes for
+     *     resource names, but this has existed as part of the bigquery schema
+     *     before this rule existed. --)
+     * 
+ * + * string trigger_name = 9 [(.google.api.resource_reference) = { ... } + * + * @return The triggerName. + */ + public java.lang.String getTriggerName() { + java.lang.Object ref = triggerName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + triggerName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Job trigger name, if applicable, for this finding.
+     * (-- api-linter: core::0122::name-suffix=disabled
+     *     aip.dev/not-precedent: AIP-122 discourages _name suffixes for
+     *     resource names, but this has existed as part of the bigquery schema
+     *     before this rule existed. --)
+     * 
+ * + * string trigger_name = 9 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for triggerName. + */ + public com.google.protobuf.ByteString getTriggerNameBytes() { + java.lang.Object ref = triggerName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + triggerName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Job trigger name, if applicable, for this finding.
+     * (-- api-linter: core::0122::name-suffix=disabled
+     *     aip.dev/not-precedent: AIP-122 discourages _name suffixes for
+     *     resource names, but this has existed as part of the bigquery schema
+     *     before this rule existed. --)
+     * 
+ * + * string trigger_name = 9 [(.google.api.resource_reference) = { ... } + * + * @param value The triggerName to set. + * @return This builder for chaining. + */ + public Builder setTriggerName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + triggerName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Job trigger name, if applicable, for this finding.
+     * (-- api-linter: core::0122::name-suffix=disabled
+     *     aip.dev/not-precedent: AIP-122 discourages _name suffixes for
+     *     resource names, but this has existed as part of the bigquery schema
+     *     before this rule existed. --)
+     * 
+ * + * string trigger_name = 9 [(.google.api.resource_reference) = { ... } + * + * @return This builder for chaining. + */ + public Builder clearTriggerName() { + + triggerName_ = getDefaultInstance().getTriggerName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Job trigger name, if applicable, for this finding.
+     * (-- api-linter: core::0122::name-suffix=disabled
+     *     aip.dev/not-precedent: AIP-122 discourages _name suffixes for
+     *     resource names, but this has existed as part of the bigquery schema
+     *     before this rule existed. --)
+     * 
+ * + * string trigger_name = 9 [(.google.api.resource_reference) = { ... } + * + * @param value The bytes for triggerName to set. + * @return This builder for chaining. + */ + public Builder setTriggerNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + triggerName_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + private com.google.protobuf.MapField + internalGetMutableLabels() { + onChanged(); + ; + if (labels_ == null) { + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + } + if (!labels_.isMutable()) { + labels_ = labels_.copy(); + } + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + /** + * + * + *
+     * The labels associated with this `InspectFinding`.
+     * Label keys must be between 1 and 63 characters long and must conform
+     * to the following regular expression: \[a-z\](\[-a-z0-9\]*\[a-z0-9\])?.
+     * Label values must be between 0 and 63 characters long and must conform
+     * to the regular expression (\[a-z\](\[-a-z0-9\]*\[a-z0-9\])?)?.
+     * No more than 10 labels can be associated with a given finding.
+     * Example: <code>"environment" : "production"</code>
+     * Example: <code>"pipeline" : "etl"</code>
+     * 
+ * + * map<string, string> labels = 10; + */ + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + return internalGetLabels().getMap().containsKey(key); + } + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + /** + * + * + *
+     * The labels associated with this `InspectFinding`.
+     * Label keys must be between 1 and 63 characters long and must conform
+     * to the following regular expression: \[a-z\](\[-a-z0-9\]*\[a-z0-9\])?.
+     * Label values must be between 0 and 63 characters long and must conform
+     * to the regular expression (\[a-z\](\[-a-z0-9\]*\[a-z0-9\])?)?.
+     * No more than 10 labels can be associated with a given finding.
+     * Example: <code>"environment" : "production"</code>
+     * Example: <code>"pipeline" : "etl"</code>
+     * 
+ * + * map<string, string> labels = 10; + */ + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + * + * + *
+     * The labels associated with this `InspectFinding`.
+     * Label keys must be between 1 and 63 characters long and must conform
+     * to the following regular expression: \[a-z\](\[-a-z0-9\]*\[a-z0-9\])?.
+     * Label values must be between 0 and 63 characters long and must conform
+     * to the regular expression (\[a-z\](\[-a-z0-9\]*\[a-z0-9\])?)?.
+     * No more than 10 labels can be associated with a given finding.
+     * Example: <code>"environment" : "production"</code>
+     * Example: <code>"pipeline" : "etl"</code>
+     * 
+ * + * map<string, string> labels = 10; + */ + public java.lang.String getLabelsOrDefault( + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+     * The labels associated with this `InspectFinding`.
+     * Label keys must be between 1 and 63 characters long and must conform
+     * to the following regular expression: \[a-z\](\[-a-z0-9\]*\[a-z0-9\])?.
+     * Label values must be between 0 and 63 characters long and must conform
+     * to the regular expression (\[a-z\](\[-a-z0-9\]*\[a-z0-9\])?)?.
+     * No more than 10 labels can be associated with a given finding.
+     * Example: <code>"environment" : "production"</code>
+     * Example: <code>"pipeline" : "etl"</code>
+     * 
+ * + * map<string, string> labels = 10; + */ + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearLabels() { + internalGetMutableLabels().getMutableMap().clear(); + return this; + } + /** + * + * + *
+     * The labels associated with this `InspectFinding`.
+     * Label keys must be between 1 and 63 characters long and must conform
+     * to the following regular expression: \[a-z\](\[-a-z0-9\]*\[a-z0-9\])?.
+     * Label values must be between 0 and 63 characters long and must conform
+     * to the regular expression (\[a-z\](\[-a-z0-9\]*\[a-z0-9\])?)?.
+     * No more than 10 labels can be associated with a given finding.
+     * Example: <code>"environment" : "production"</code>
+     * Example: <code>"pipeline" : "etl"</code>
+     * 
+ * + * map<string, string> labels = 10; + */ + public Builder removeLabels(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableLabels().getMutableMap().remove(key); + return this; + } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableLabels() { + return internalGetMutableLabels().getMutableMap(); + } + /** + * + * + *
+     * The labels associated with this `InspectFinding`.
+     * Label keys must be between 1 and 63 characters long and must conform
+     * to the following regular expression: \[a-z\](\[-a-z0-9\]*\[a-z0-9\])?.
+     * Label values must be between 0 and 63 characters long and must conform
+     * to the regular expression (\[a-z\](\[-a-z0-9\]*\[a-z0-9\])?)?.
+     * No more than 10 labels can be associated with a given finding.
+     * Example: <code>"environment" : "production"</code>
+     * Example: <code>"pipeline" : "etl"</code>
+     * 
+ * + * map<string, string> labels = 10; + */ + public Builder putLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + if (value == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableLabels().getMutableMap().put(key, value); + return this; + } + /** + * + * + *
+     * The labels associated with this `InspectFinding`.
+     * Label keys must be between 1 and 63 characters long and must conform
+     * to the following regular expression: \[a-z\](\[-a-z0-9\]*\[a-z0-9\])?.
+     * Label values must be between 0 and 63 characters long and must conform
+     * to the regular expression (\[a-z\](\[-a-z0-9\]*\[a-z0-9\])?)?.
+     * No more than 10 labels can be associated with a given finding.
+     * Example: <code>"environment" : "production"</code>
+     * Example: <code>"pipeline" : "etl"</code>
+     * 
+ * + * map<string, string> labels = 10; + */ + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); + return this; + } + + private com.google.protobuf.Timestamp jobCreateTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + jobCreateTimeBuilder_; + /** + * + * + *
+     * Time the job started that produced this finding.
+     * 
+ * + * .google.protobuf.Timestamp job_create_time = 11; + * + * @return Whether the jobCreateTime field is set. + */ + public boolean hasJobCreateTime() { + return jobCreateTimeBuilder_ != null || jobCreateTime_ != null; + } + /** + * + * + *
+     * Time the job started that produced this finding.
+     * 
+ * + * .google.protobuf.Timestamp job_create_time = 11; + * + * @return The jobCreateTime. + */ + public com.google.protobuf.Timestamp getJobCreateTime() { + if (jobCreateTimeBuilder_ == null) { + return jobCreateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : jobCreateTime_; + } else { + return jobCreateTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Time the job started that produced this finding.
+     * 
+ * + * .google.protobuf.Timestamp job_create_time = 11; + */ + public Builder setJobCreateTime(com.google.protobuf.Timestamp value) { + if (jobCreateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + jobCreateTime_ = value; + onChanged(); + } else { + jobCreateTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Time the job started that produced this finding.
+     * 
+ * + * .google.protobuf.Timestamp job_create_time = 11; + */ + public Builder setJobCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (jobCreateTimeBuilder_ == null) { + jobCreateTime_ = builderForValue.build(); + onChanged(); + } else { + jobCreateTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Time the job started that produced this finding.
+     * 
+ * + * .google.protobuf.Timestamp job_create_time = 11; + */ + public Builder mergeJobCreateTime(com.google.protobuf.Timestamp value) { + if (jobCreateTimeBuilder_ == null) { + if (jobCreateTime_ != null) { + jobCreateTime_ = + com.google.protobuf.Timestamp.newBuilder(jobCreateTime_) + .mergeFrom(value) + .buildPartial(); + } else { + jobCreateTime_ = value; + } + onChanged(); + } else { + jobCreateTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Time the job started that produced this finding.
+     * 
+ * + * .google.protobuf.Timestamp job_create_time = 11; + */ + public Builder clearJobCreateTime() { + if (jobCreateTimeBuilder_ == null) { + jobCreateTime_ = null; + onChanged(); + } else { + jobCreateTime_ = null; + jobCreateTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Time the job started that produced this finding.
+     * 
+ * + * .google.protobuf.Timestamp job_create_time = 11; + */ + public com.google.protobuf.Timestamp.Builder getJobCreateTimeBuilder() { + + onChanged(); + return getJobCreateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Time the job started that produced this finding.
+     * 
+ * + * .google.protobuf.Timestamp job_create_time = 11; + */ + public com.google.protobuf.TimestampOrBuilder getJobCreateTimeOrBuilder() { + if (jobCreateTimeBuilder_ != null) { + return jobCreateTimeBuilder_.getMessageOrBuilder(); + } else { + return jobCreateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : jobCreateTime_; + } + } + /** + * + * + *
+     * Time the job started that produced this finding.
+     * 
+ * + * .google.protobuf.Timestamp job_create_time = 11; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getJobCreateTimeFieldBuilder() { + if (jobCreateTimeBuilder_ == null) { + jobCreateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getJobCreateTime(), getParentForChildren(), isClean()); + jobCreateTime_ = null; + } + return jobCreateTimeBuilder_; + } + + private java.lang.Object jobName_ = ""; + /** + * + * + *
+     * The job that stored the finding.
+     * (-- api-linter: core::0122::name-suffix=disabled
+     *     aip.dev/not-precedent: AIP-122 discourages _name suffixes for
+     *     resource names, but this has existed as part of the bigquery schema
+     *     before this rule existed. --)
+     * 
+ * + * string job_name = 13 [(.google.api.resource_reference) = { ... } + * + * @return The jobName. + */ + public java.lang.String getJobName() { + java.lang.Object ref = jobName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + jobName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The job that stored the finding.
+     * (-- api-linter: core::0122::name-suffix=disabled
+     *     aip.dev/not-precedent: AIP-122 discourages _name suffixes for
+     *     resource names, but this has existed as part of the bigquery schema
+     *     before this rule existed. --)
+     * 
+ * + * string job_name = 13 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for jobName. + */ + public com.google.protobuf.ByteString getJobNameBytes() { + java.lang.Object ref = jobName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + jobName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The job that stored the finding.
+     * (-- api-linter: core::0122::name-suffix=disabled
+     *     aip.dev/not-precedent: AIP-122 discourages _name suffixes for
+     *     resource names, but this has existed as part of the bigquery schema
+     *     before this rule existed. --)
+     * 
+ * + * string job_name = 13 [(.google.api.resource_reference) = { ... } + * + * @param value The jobName to set. + * @return This builder for chaining. + */ + public Builder setJobName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + jobName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The job that stored the finding.
+     * (-- api-linter: core::0122::name-suffix=disabled
+     *     aip.dev/not-precedent: AIP-122 discourages _name suffixes for
+     *     resource names, but this has existed as part of the bigquery schema
+     *     before this rule existed. --)
+     * 
+ * + * string job_name = 13 [(.google.api.resource_reference) = { ... } + * + * @return This builder for chaining. + */ + public Builder clearJobName() { + + jobName_ = getDefaultInstance().getJobName(); + onChanged(); + return this; + } + /** + * + * + *
+     * The job that stored the finding.
+     * (-- api-linter: core::0122::name-suffix=disabled
+     *     aip.dev/not-precedent: AIP-122 discourages _name suffixes for
+     *     resource names, but this has existed as part of the bigquery schema
+     *     before this rule existed. --)
+     * 
+ * + * string job_name = 13 [(.google.api.resource_reference) = { ... } + * + * @param value The bytes for jobName to set. + * @return This builder for chaining. + */ + public Builder setJobNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + jobName_ = value; + 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/FindingOrBuilder.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/FindingOrBuilder.java index b9713f7a..8d1405d6 100644 --- a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/FindingOrBuilder.java +++ b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/FindingOrBuilder.java @@ -23,6 +23,35 @@ public interface FindingOrBuilder // @@protoc_insertion_point(interface_extends:google.privacy.dlp.v2.Finding) com.google.protobuf.MessageOrBuilder { + /** + * + * + *
+   * Resource name in format
+   * projects/{project}/locations/{location}/findings/{finding}
+   * Populated only when viewing persisted findings.
+   * 
+ * + * string name = 14; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Resource name in format
+   * projects/{project}/locations/{location}/findings/{finding}
+   * Populated only when viewing persisted findings.
+   * 
+ * + * string name = 14; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + /** * * @@ -229,4 +258,219 @@ public interface FindingOrBuilder * .google.privacy.dlp.v2.QuoteInfo quote_info = 7; */ com.google.privacy.dlp.v2.QuoteInfoOrBuilder getQuoteInfoOrBuilder(); + + /** + * + * + *
+   * The job that stored the finding.
+   * 
+ * + * string resource_name = 8 [(.google.api.resource_reference) = { ... } + * + * @return The resourceName. + */ + java.lang.String getResourceName(); + /** + * + * + *
+   * The job that stored the finding.
+   * 
+ * + * string resource_name = 8 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for resourceName. + */ + com.google.protobuf.ByteString getResourceNameBytes(); + + /** + * + * + *
+   * Job trigger name, if applicable, for this finding.
+   * (-- api-linter: core::0122::name-suffix=disabled
+   *     aip.dev/not-precedent: AIP-122 discourages _name suffixes for
+   *     resource names, but this has existed as part of the bigquery schema
+   *     before this rule existed. --)
+   * 
+ * + * string trigger_name = 9 [(.google.api.resource_reference) = { ... } + * + * @return The triggerName. + */ + java.lang.String getTriggerName(); + /** + * + * + *
+   * Job trigger name, if applicable, for this finding.
+   * (-- api-linter: core::0122::name-suffix=disabled
+   *     aip.dev/not-precedent: AIP-122 discourages _name suffixes for
+   *     resource names, but this has existed as part of the bigquery schema
+   *     before this rule existed. --)
+   * 
+ * + * string trigger_name = 9 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for triggerName. + */ + com.google.protobuf.ByteString getTriggerNameBytes(); + + /** + * + * + *
+   * The labels associated with this `InspectFinding`.
+   * Label keys must be between 1 and 63 characters long and must conform
+   * to the following regular expression: \[a-z\](\[-a-z0-9\]*\[a-z0-9\])?.
+   * Label values must be between 0 and 63 characters long and must conform
+   * to the regular expression (\[a-z\](\[-a-z0-9\]*\[a-z0-9\])?)?.
+   * No more than 10 labels can be associated with a given finding.
+   * Example: <code>"environment" : "production"</code>
+   * Example: <code>"pipeline" : "etl"</code>
+   * 
+ * + * map<string, string> labels = 10; + */ + int getLabelsCount(); + /** + * + * + *
+   * The labels associated with this `InspectFinding`.
+   * Label keys must be between 1 and 63 characters long and must conform
+   * to the following regular expression: \[a-z\](\[-a-z0-9\]*\[a-z0-9\])?.
+   * Label values must be between 0 and 63 characters long and must conform
+   * to the regular expression (\[a-z\](\[-a-z0-9\]*\[a-z0-9\])?)?.
+   * No more than 10 labels can be associated with a given finding.
+   * Example: <code>"environment" : "production"</code>
+   * Example: <code>"pipeline" : "etl"</code>
+   * 
+ * + * map<string, string> labels = 10; + */ + boolean containsLabels(java.lang.String key); + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getLabels(); + /** + * + * + *
+   * The labels associated with this `InspectFinding`.
+   * Label keys must be between 1 and 63 characters long and must conform
+   * to the following regular expression: \[a-z\](\[-a-z0-9\]*\[a-z0-9\])?.
+   * Label values must be between 0 and 63 characters long and must conform
+   * to the regular expression (\[a-z\](\[-a-z0-9\]*\[a-z0-9\])?)?.
+   * No more than 10 labels can be associated with a given finding.
+   * Example: <code>"environment" : "production"</code>
+   * Example: <code>"pipeline" : "etl"</code>
+   * 
+ * + * map<string, string> labels = 10; + */ + java.util.Map getLabelsMap(); + /** + * + * + *
+   * The labels associated with this `InspectFinding`.
+   * Label keys must be between 1 and 63 characters long and must conform
+   * to the following regular expression: \[a-z\](\[-a-z0-9\]*\[a-z0-9\])?.
+   * Label values must be between 0 and 63 characters long and must conform
+   * to the regular expression (\[a-z\](\[-a-z0-9\]*\[a-z0-9\])?)?.
+   * No more than 10 labels can be associated with a given finding.
+   * Example: <code>"environment" : "production"</code>
+   * Example: <code>"pipeline" : "etl"</code>
+   * 
+ * + * map<string, string> labels = 10; + */ + java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue); + /** + * + * + *
+   * The labels associated with this `InspectFinding`.
+   * Label keys must be between 1 and 63 characters long and must conform
+   * to the following regular expression: \[a-z\](\[-a-z0-9\]*\[a-z0-9\])?.
+   * Label values must be between 0 and 63 characters long and must conform
+   * to the regular expression (\[a-z\](\[-a-z0-9\]*\[a-z0-9\])?)?.
+   * No more than 10 labels can be associated with a given finding.
+   * Example: <code>"environment" : "production"</code>
+   * Example: <code>"pipeline" : "etl"</code>
+   * 
+ * + * map<string, string> labels = 10; + */ + java.lang.String getLabelsOrThrow(java.lang.String key); + + /** + * + * + *
+   * Time the job started that produced this finding.
+   * 
+ * + * .google.protobuf.Timestamp job_create_time = 11; + * + * @return Whether the jobCreateTime field is set. + */ + boolean hasJobCreateTime(); + /** + * + * + *
+   * Time the job started that produced this finding.
+   * 
+ * + * .google.protobuf.Timestamp job_create_time = 11; + * + * @return The jobCreateTime. + */ + com.google.protobuf.Timestamp getJobCreateTime(); + /** + * + * + *
+   * Time the job started that produced this finding.
+   * 
+ * + * .google.protobuf.Timestamp job_create_time = 11; + */ + com.google.protobuf.TimestampOrBuilder getJobCreateTimeOrBuilder(); + + /** + * + * + *
+   * The job that stored the finding.
+   * (-- api-linter: core::0122::name-suffix=disabled
+   *     aip.dev/not-precedent: AIP-122 discourages _name suffixes for
+   *     resource names, but this has existed as part of the bigquery schema
+   *     before this rule existed. --)
+   * 
+ * + * string job_name = 13 [(.google.api.resource_reference) = { ... } + * + * @return The jobName. + */ + java.lang.String getJobName(); + /** + * + * + *
+   * The job that stored the finding.
+   * (-- api-linter: core::0122::name-suffix=disabled
+   *     aip.dev/not-precedent: AIP-122 discourages _name suffixes for
+   *     resource names, but this has existed as part of the bigquery schema
+   *     before this rule existed. --)
+   * 
+ * + * string job_name = 13 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for jobName. + */ + com.google.protobuf.ByteString getJobNameBytes(); } diff --git a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/FinishDlpJobRequest.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/FinishDlpJobRequest.java new file mode 100644 index 00000000..097ac502 --- /dev/null +++ b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/FinishDlpJobRequest.java @@ -0,0 +1,646 @@ +/* + * 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; + +/** + * + * + *
+ * The request message for finishing a DLP hybrid job.
+ * 
+ * + * Protobuf type {@code google.privacy.dlp.v2.FinishDlpJobRequest} + */ +public final class FinishDlpJobRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2.FinishDlpJobRequest) + FinishDlpJobRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use FinishDlpJobRequest.newBuilder() to construct. + private FinishDlpJobRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private FinishDlpJobRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new FinishDlpJobRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private FinishDlpJobRequest( + 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(); + + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.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_FinishDlpJobRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_FinishDlpJobRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.privacy.dlp.v2.FinishDlpJobRequest.class, + com.google.privacy.dlp.v2.FinishDlpJobRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required. The name of the DlpJob resource to be cancelled.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the DlpJob resource to be cancelled.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = 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 (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + 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.FinishDlpJobRequest)) { + return super.equals(obj); + } + com.google.privacy.dlp.v2.FinishDlpJobRequest other = + (com.google.privacy.dlp.v2.FinishDlpJobRequest) obj; + + if (!getName().equals(other.getName())) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.privacy.dlp.v2.FinishDlpJobRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.privacy.dlp.v2.FinishDlpJobRequest 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.FinishDlpJobRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.privacy.dlp.v2.FinishDlpJobRequest 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.FinishDlpJobRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.privacy.dlp.v2.FinishDlpJobRequest 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.FinishDlpJobRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.privacy.dlp.v2.FinishDlpJobRequest 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.FinishDlpJobRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.privacy.dlp.v2.FinishDlpJobRequest 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.FinishDlpJobRequest 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.FinishDlpJobRequest 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.FinishDlpJobRequest 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; + } + /** + * + * + *
+   * The request message for finishing a DLP hybrid job.
+   * 
+ * + * Protobuf type {@code google.privacy.dlp.v2.FinishDlpJobRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.privacy.dlp.v2.FinishDlpJobRequest) + com.google.privacy.dlp.v2.FinishDlpJobRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_FinishDlpJobRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_FinishDlpJobRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.privacy.dlp.v2.FinishDlpJobRequest.class, + com.google.privacy.dlp.v2.FinishDlpJobRequest.Builder.class); + } + + // Construct using com.google.privacy.dlp.v2.FinishDlpJobRequest.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(); + name_ = ""; + + 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_FinishDlpJobRequest_descriptor; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.FinishDlpJobRequest getDefaultInstanceForType() { + return com.google.privacy.dlp.v2.FinishDlpJobRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.privacy.dlp.v2.FinishDlpJobRequest build() { + com.google.privacy.dlp.v2.FinishDlpJobRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.FinishDlpJobRequest buildPartial() { + com.google.privacy.dlp.v2.FinishDlpJobRequest result = + new com.google.privacy.dlp.v2.FinishDlpJobRequest(this); + result.name_ = name_; + 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.FinishDlpJobRequest) { + return mergeFrom((com.google.privacy.dlp.v2.FinishDlpJobRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.privacy.dlp.v2.FinishDlpJobRequest other) { + if (other == com.google.privacy.dlp.v2.FinishDlpJobRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + 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.FinishDlpJobRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.privacy.dlp.v2.FinishDlpJobRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The name of the DlpJob resource to be cancelled.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the DlpJob resource to be cancelled.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the DlpJob resource to be cancelled.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the DlpJob resource to be cancelled.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the DlpJob resource to be cancelled.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = 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.FinishDlpJobRequest) + } + + // @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.FinishDlpJobRequest) + private static final com.google.privacy.dlp.v2.FinishDlpJobRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.privacy.dlp.v2.FinishDlpJobRequest(); + } + + public static com.google.privacy.dlp.v2.FinishDlpJobRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FinishDlpJobRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new FinishDlpJobRequest(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.FinishDlpJobRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/FinishDlpJobRequestOrBuilder.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/FinishDlpJobRequestOrBuilder.java new file mode 100644 index 00000000..a8a22f69 --- /dev/null +++ b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/FinishDlpJobRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * 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 FinishDlpJobRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.privacy.dlp.v2.FinishDlpJobRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the DlpJob resource to be cancelled.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the DlpJob resource to be cancelled.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/FixedSizeBucketingConfig.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/FixedSizeBucketingConfig.java index 1fe53331..6fbbdba6 100644 --- a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/FixedSizeBucketingConfig.java +++ b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/FixedSizeBucketingConfig.java @@ -154,9 +154,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Required. Lower bound value of buckets. All values less than `lower_bound` are
-   * grouped together into a single bucket; for example if `lower_bound` = 10,
-   * then all values less than 10 are replaced with the value “-10”.
+   * Required. Lower bound value of buckets. All values less than `lower_bound`
+   * are grouped together into a single bucket; for example if `lower_bound` =
+   * 10, then all values less than 10 are replaced with the value “-10”.
    * 
* * .google.privacy.dlp.v2.Value lower_bound = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -171,9 +171,9 @@ public boolean hasLowerBound() { * * *
-   * Required. Lower bound value of buckets. All values less than `lower_bound` are
-   * grouped together into a single bucket; for example if `lower_bound` = 10,
-   * then all values less than 10 are replaced with the value “-10”.
+   * Required. Lower bound value of buckets. All values less than `lower_bound`
+   * are grouped together into a single bucket; for example if `lower_bound` =
+   * 10, then all values less than 10 are replaced with the value “-10”.
    * 
* * .google.privacy.dlp.v2.Value lower_bound = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -188,9 +188,9 @@ public com.google.privacy.dlp.v2.Value getLowerBound() { * * *
-   * Required. Lower bound value of buckets. All values less than `lower_bound` are
-   * grouped together into a single bucket; for example if `lower_bound` = 10,
-   * then all values less than 10 are replaced with the value “-10”.
+   * Required. Lower bound value of buckets. All values less than `lower_bound`
+   * are grouped together into a single bucket; for example if `lower_bound` =
+   * 10, then all values less than 10 are replaced with the value “-10”.
    * 
* * .google.privacy.dlp.v2.Value lower_bound = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -206,9 +206,9 @@ public com.google.privacy.dlp.v2.ValueOrBuilder getLowerBoundOrBuilder() { * * *
-   * Required. Upper bound value of buckets. All values greater than upper_bound are
-   * grouped together into a single bucket; for example if `upper_bound` = 89,
-   * then all values greater than 89 are replaced with the value “89+”.
+   * Required. Upper bound value of buckets. All values greater than upper_bound
+   * are grouped together into a single bucket; for example if `upper_bound` =
+   * 89, then all values greater than 89 are replaced with the value “89+”.
    * 
* * .google.privacy.dlp.v2.Value upper_bound = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -223,9 +223,9 @@ public boolean hasUpperBound() { * * *
-   * Required. Upper bound value of buckets. All values greater than upper_bound are
-   * grouped together into a single bucket; for example if `upper_bound` = 89,
-   * then all values greater than 89 are replaced with the value “89+”.
+   * Required. Upper bound value of buckets. All values greater than upper_bound
+   * are grouped together into a single bucket; for example if `upper_bound` =
+   * 89, then all values greater than 89 are replaced with the value “89+”.
    * 
* * .google.privacy.dlp.v2.Value upper_bound = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -240,9 +240,9 @@ public com.google.privacy.dlp.v2.Value getUpperBound() { * * *
-   * Required. Upper bound value of buckets. All values greater than upper_bound are
-   * grouped together into a single bucket; for example if `upper_bound` = 89,
-   * then all values greater than 89 are replaced with the value “89+”.
+   * Required. Upper bound value of buckets. All values greater than upper_bound
+   * are grouped together into a single bucket; for example if `upper_bound` =
+   * 89, then all values greater than 89 are replaced with the value “89+”.
    * 
* * .google.privacy.dlp.v2.Value upper_bound = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -258,8 +258,8 @@ public com.google.privacy.dlp.v2.ValueOrBuilder getUpperBoundOrBuilder() { * * *
-   * Required. Size of each bucket (except for minimum and maximum buckets). So if
-   * `lower_bound` = 10, `upper_bound` = 89, and `bucket_size` = 10, then the
+   * Required. Size of each bucket (except for minimum and maximum buckets). So
+   * if `lower_bound` = 10, `upper_bound` = 89, and `bucket_size` = 10, then the
    * following buckets would be used: -10, 10-20, 20-30, 30-40, 40-50, 50-60,
    * 60-70, 70-80, 80-89, 89+. Precision up to 2 decimals works.
    * 
@@ -670,9 +670,9 @@ public Builder mergeFrom( * * *
-     * Required. Lower bound value of buckets. All values less than `lower_bound` are
-     * grouped together into a single bucket; for example if `lower_bound` = 10,
-     * then all values less than 10 are replaced with the value “-10”.
+     * Required. Lower bound value of buckets. All values less than `lower_bound`
+     * are grouped together into a single bucket; for example if `lower_bound` =
+     * 10, then all values less than 10 are replaced with the value “-10”.
      * 
* * .google.privacy.dlp.v2.Value lower_bound = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -687,9 +687,9 @@ public boolean hasLowerBound() { * * *
-     * Required. Lower bound value of buckets. All values less than `lower_bound` are
-     * grouped together into a single bucket; for example if `lower_bound` = 10,
-     * then all values less than 10 are replaced with the value “-10”.
+     * Required. Lower bound value of buckets. All values less than `lower_bound`
+     * are grouped together into a single bucket; for example if `lower_bound` =
+     * 10, then all values less than 10 are replaced with the value “-10”.
      * 
* * .google.privacy.dlp.v2.Value lower_bound = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -710,9 +710,9 @@ public com.google.privacy.dlp.v2.Value getLowerBound() { * * *
-     * Required. Lower bound value of buckets. All values less than `lower_bound` are
-     * grouped together into a single bucket; for example if `lower_bound` = 10,
-     * then all values less than 10 are replaced with the value “-10”.
+     * Required. Lower bound value of buckets. All values less than `lower_bound`
+     * are grouped together into a single bucket; for example if `lower_bound` =
+     * 10, then all values less than 10 are replaced with the value “-10”.
      * 
* * .google.privacy.dlp.v2.Value lower_bound = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -735,9 +735,9 @@ public Builder setLowerBound(com.google.privacy.dlp.v2.Value value) { * * *
-     * Required. Lower bound value of buckets. All values less than `lower_bound` are
-     * grouped together into a single bucket; for example if `lower_bound` = 10,
-     * then all values less than 10 are replaced with the value “-10”.
+     * Required. Lower bound value of buckets. All values less than `lower_bound`
+     * are grouped together into a single bucket; for example if `lower_bound` =
+     * 10, then all values less than 10 are replaced with the value “-10”.
      * 
* * .google.privacy.dlp.v2.Value lower_bound = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -757,9 +757,9 @@ public Builder setLowerBound(com.google.privacy.dlp.v2.Value.Builder builderForV * * *
-     * Required. Lower bound value of buckets. All values less than `lower_bound` are
-     * grouped together into a single bucket; for example if `lower_bound` = 10,
-     * then all values less than 10 are replaced with the value “-10”.
+     * Required. Lower bound value of buckets. All values less than `lower_bound`
+     * are grouped together into a single bucket; for example if `lower_bound` =
+     * 10, then all values less than 10 are replaced with the value “-10”.
      * 
* * .google.privacy.dlp.v2.Value lower_bound = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -786,9 +786,9 @@ public Builder mergeLowerBound(com.google.privacy.dlp.v2.Value value) { * * *
-     * Required. Lower bound value of buckets. All values less than `lower_bound` are
-     * grouped together into a single bucket; for example if `lower_bound` = 10,
-     * then all values less than 10 are replaced with the value “-10”.
+     * Required. Lower bound value of buckets. All values less than `lower_bound`
+     * are grouped together into a single bucket; for example if `lower_bound` =
+     * 10, then all values less than 10 are replaced with the value “-10”.
      * 
* * .google.privacy.dlp.v2.Value lower_bound = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -809,9 +809,9 @@ public Builder clearLowerBound() { * * *
-     * Required. Lower bound value of buckets. All values less than `lower_bound` are
-     * grouped together into a single bucket; for example if `lower_bound` = 10,
-     * then all values less than 10 are replaced with the value “-10”.
+     * Required. Lower bound value of buckets. All values less than `lower_bound`
+     * are grouped together into a single bucket; for example if `lower_bound` =
+     * 10, then all values less than 10 are replaced with the value “-10”.
      * 
* * .google.privacy.dlp.v2.Value lower_bound = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -826,9 +826,9 @@ public com.google.privacy.dlp.v2.Value.Builder getLowerBoundBuilder() { * * *
-     * Required. Lower bound value of buckets. All values less than `lower_bound` are
-     * grouped together into a single bucket; for example if `lower_bound` = 10,
-     * then all values less than 10 are replaced with the value “-10”.
+     * Required. Lower bound value of buckets. All values less than `lower_bound`
+     * are grouped together into a single bucket; for example if `lower_bound` =
+     * 10, then all values less than 10 are replaced with the value “-10”.
      * 
* * .google.privacy.dlp.v2.Value lower_bound = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -847,9 +847,9 @@ public com.google.privacy.dlp.v2.ValueOrBuilder getLowerBoundOrBuilder() { * * *
-     * Required. Lower bound value of buckets. All values less than `lower_bound` are
-     * grouped together into a single bucket; for example if `lower_bound` = 10,
-     * then all values less than 10 are replaced with the value “-10”.
+     * Required. Lower bound value of buckets. All values less than `lower_bound`
+     * are grouped together into a single bucket; for example if `lower_bound` =
+     * 10, then all values less than 10 are replaced with the value “-10”.
      * 
* * .google.privacy.dlp.v2.Value lower_bound = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -882,9 +882,9 @@ public com.google.privacy.dlp.v2.ValueOrBuilder getLowerBoundOrBuilder() { * * *
-     * Required. Upper bound value of buckets. All values greater than upper_bound are
-     * grouped together into a single bucket; for example if `upper_bound` = 89,
-     * then all values greater than 89 are replaced with the value “89+”.
+     * Required. Upper bound value of buckets. All values greater than upper_bound
+     * are grouped together into a single bucket; for example if `upper_bound` =
+     * 89, then all values greater than 89 are replaced with the value “89+”.
      * 
* * .google.privacy.dlp.v2.Value upper_bound = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -899,9 +899,9 @@ public boolean hasUpperBound() { * * *
-     * Required. Upper bound value of buckets. All values greater than upper_bound are
-     * grouped together into a single bucket; for example if `upper_bound` = 89,
-     * then all values greater than 89 are replaced with the value “89+”.
+     * Required. Upper bound value of buckets. All values greater than upper_bound
+     * are grouped together into a single bucket; for example if `upper_bound` =
+     * 89, then all values greater than 89 are replaced with the value “89+”.
      * 
* * .google.privacy.dlp.v2.Value upper_bound = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -922,9 +922,9 @@ public com.google.privacy.dlp.v2.Value getUpperBound() { * * *
-     * Required. Upper bound value of buckets. All values greater than upper_bound are
-     * grouped together into a single bucket; for example if `upper_bound` = 89,
-     * then all values greater than 89 are replaced with the value “89+”.
+     * Required. Upper bound value of buckets. All values greater than upper_bound
+     * are grouped together into a single bucket; for example if `upper_bound` =
+     * 89, then all values greater than 89 are replaced with the value “89+”.
      * 
* * .google.privacy.dlp.v2.Value upper_bound = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -947,9 +947,9 @@ public Builder setUpperBound(com.google.privacy.dlp.v2.Value value) { * * *
-     * Required. Upper bound value of buckets. All values greater than upper_bound are
-     * grouped together into a single bucket; for example if `upper_bound` = 89,
-     * then all values greater than 89 are replaced with the value “89+”.
+     * Required. Upper bound value of buckets. All values greater than upper_bound
+     * are grouped together into a single bucket; for example if `upper_bound` =
+     * 89, then all values greater than 89 are replaced with the value “89+”.
      * 
* * .google.privacy.dlp.v2.Value upper_bound = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -969,9 +969,9 @@ public Builder setUpperBound(com.google.privacy.dlp.v2.Value.Builder builderForV * * *
-     * Required. Upper bound value of buckets. All values greater than upper_bound are
-     * grouped together into a single bucket; for example if `upper_bound` = 89,
-     * then all values greater than 89 are replaced with the value “89+”.
+     * Required. Upper bound value of buckets. All values greater than upper_bound
+     * are grouped together into a single bucket; for example if `upper_bound` =
+     * 89, then all values greater than 89 are replaced with the value “89+”.
      * 
* * .google.privacy.dlp.v2.Value upper_bound = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -998,9 +998,9 @@ public Builder mergeUpperBound(com.google.privacy.dlp.v2.Value value) { * * *
-     * Required. Upper bound value of buckets. All values greater than upper_bound are
-     * grouped together into a single bucket; for example if `upper_bound` = 89,
-     * then all values greater than 89 are replaced with the value “89+”.
+     * Required. Upper bound value of buckets. All values greater than upper_bound
+     * are grouped together into a single bucket; for example if `upper_bound` =
+     * 89, then all values greater than 89 are replaced with the value “89+”.
      * 
* * .google.privacy.dlp.v2.Value upper_bound = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -1021,9 +1021,9 @@ public Builder clearUpperBound() { * * *
-     * Required. Upper bound value of buckets. All values greater than upper_bound are
-     * grouped together into a single bucket; for example if `upper_bound` = 89,
-     * then all values greater than 89 are replaced with the value “89+”.
+     * Required. Upper bound value of buckets. All values greater than upper_bound
+     * are grouped together into a single bucket; for example if `upper_bound` =
+     * 89, then all values greater than 89 are replaced with the value “89+”.
      * 
* * .google.privacy.dlp.v2.Value upper_bound = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -1038,9 +1038,9 @@ public com.google.privacy.dlp.v2.Value.Builder getUpperBoundBuilder() { * * *
-     * Required. Upper bound value of buckets. All values greater than upper_bound are
-     * grouped together into a single bucket; for example if `upper_bound` = 89,
-     * then all values greater than 89 are replaced with the value “89+”.
+     * Required. Upper bound value of buckets. All values greater than upper_bound
+     * are grouped together into a single bucket; for example if `upper_bound` =
+     * 89, then all values greater than 89 are replaced with the value “89+”.
      * 
* * .google.privacy.dlp.v2.Value upper_bound = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -1059,9 +1059,9 @@ public com.google.privacy.dlp.v2.ValueOrBuilder getUpperBoundOrBuilder() { * * *
-     * Required. Upper bound value of buckets. All values greater than upper_bound are
-     * grouped together into a single bucket; for example if `upper_bound` = 89,
-     * then all values greater than 89 are replaced with the value “89+”.
+     * Required. Upper bound value of buckets. All values greater than upper_bound
+     * are grouped together into a single bucket; for example if `upper_bound` =
+     * 89, then all values greater than 89 are replaced with the value “89+”.
      * 
* * .google.privacy.dlp.v2.Value upper_bound = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -1089,8 +1089,8 @@ public com.google.privacy.dlp.v2.ValueOrBuilder getUpperBoundOrBuilder() { * * *
-     * Required. Size of each bucket (except for minimum and maximum buckets). So if
-     * `lower_bound` = 10, `upper_bound` = 89, and `bucket_size` = 10, then the
+     * Required. Size of each bucket (except for minimum and maximum buckets). So
+     * if `lower_bound` = 10, `upper_bound` = 89, and `bucket_size` = 10, then the
      * following buckets would be used: -10, 10-20, 20-30, 30-40, 40-50, 50-60,
      * 60-70, 70-80, 80-89, 89+. Precision up to 2 decimals works.
      * 
@@ -1106,8 +1106,8 @@ public double getBucketSize() { * * *
-     * Required. Size of each bucket (except for minimum and maximum buckets). So if
-     * `lower_bound` = 10, `upper_bound` = 89, and `bucket_size` = 10, then the
+     * Required. Size of each bucket (except for minimum and maximum buckets). So
+     * if `lower_bound` = 10, `upper_bound` = 89, and `bucket_size` = 10, then the
      * following buckets would be used: -10, 10-20, 20-30, 30-40, 40-50, 50-60,
      * 60-70, 70-80, 80-89, 89+. Precision up to 2 decimals works.
      * 
@@ -1127,8 +1127,8 @@ public Builder setBucketSize(double value) { * * *
-     * Required. Size of each bucket (except for minimum and maximum buckets). So if
-     * `lower_bound` = 10, `upper_bound` = 89, and `bucket_size` = 10, then the
+     * Required. Size of each bucket (except for minimum and maximum buckets). So
+     * if `lower_bound` = 10, `upper_bound` = 89, and `bucket_size` = 10, then the
      * following buckets would be used: -10, 10-20, 20-30, 30-40, 40-50, 50-60,
      * 60-70, 70-80, 80-89, 89+. Precision up to 2 decimals works.
      * 
diff --git a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/FixedSizeBucketingConfigOrBuilder.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/FixedSizeBucketingConfigOrBuilder.java index 66c0fc14..01024f7c 100644 --- a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/FixedSizeBucketingConfigOrBuilder.java +++ b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/FixedSizeBucketingConfigOrBuilder.java @@ -27,9 +27,9 @@ public interface FixedSizeBucketingConfigOrBuilder * * *
-   * Required. Lower bound value of buckets. All values less than `lower_bound` are
-   * grouped together into a single bucket; for example if `lower_bound` = 10,
-   * then all values less than 10 are replaced with the value “-10”.
+   * Required. Lower bound value of buckets. All values less than `lower_bound`
+   * are grouped together into a single bucket; for example if `lower_bound` =
+   * 10, then all values less than 10 are replaced with the value “-10”.
    * 
* * .google.privacy.dlp.v2.Value lower_bound = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -42,9 +42,9 @@ public interface FixedSizeBucketingConfigOrBuilder * * *
-   * Required. Lower bound value of buckets. All values less than `lower_bound` are
-   * grouped together into a single bucket; for example if `lower_bound` = 10,
-   * then all values less than 10 are replaced with the value “-10”.
+   * Required. Lower bound value of buckets. All values less than `lower_bound`
+   * are grouped together into a single bucket; for example if `lower_bound` =
+   * 10, then all values less than 10 are replaced with the value “-10”.
    * 
* * .google.privacy.dlp.v2.Value lower_bound = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -57,9 +57,9 @@ public interface FixedSizeBucketingConfigOrBuilder * * *
-   * Required. Lower bound value of buckets. All values less than `lower_bound` are
-   * grouped together into a single bucket; for example if `lower_bound` = 10,
-   * then all values less than 10 are replaced with the value “-10”.
+   * Required. Lower bound value of buckets. All values less than `lower_bound`
+   * are grouped together into a single bucket; for example if `lower_bound` =
+   * 10, then all values less than 10 are replaced with the value “-10”.
    * 
* * .google.privacy.dlp.v2.Value lower_bound = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -71,9 +71,9 @@ public interface FixedSizeBucketingConfigOrBuilder * * *
-   * Required. Upper bound value of buckets. All values greater than upper_bound are
-   * grouped together into a single bucket; for example if `upper_bound` = 89,
-   * then all values greater than 89 are replaced with the value “89+”.
+   * Required. Upper bound value of buckets. All values greater than upper_bound
+   * are grouped together into a single bucket; for example if `upper_bound` =
+   * 89, then all values greater than 89 are replaced with the value “89+”.
    * 
* * .google.privacy.dlp.v2.Value upper_bound = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -86,9 +86,9 @@ public interface FixedSizeBucketingConfigOrBuilder * * *
-   * Required. Upper bound value of buckets. All values greater than upper_bound are
-   * grouped together into a single bucket; for example if `upper_bound` = 89,
-   * then all values greater than 89 are replaced with the value “89+”.
+   * Required. Upper bound value of buckets. All values greater than upper_bound
+   * are grouped together into a single bucket; for example if `upper_bound` =
+   * 89, then all values greater than 89 are replaced with the value “89+”.
    * 
* * .google.privacy.dlp.v2.Value upper_bound = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -101,9 +101,9 @@ public interface FixedSizeBucketingConfigOrBuilder * * *
-   * Required. Upper bound value of buckets. All values greater than upper_bound are
-   * grouped together into a single bucket; for example if `upper_bound` = 89,
-   * then all values greater than 89 are replaced with the value “89+”.
+   * Required. Upper bound value of buckets. All values greater than upper_bound
+   * are grouped together into a single bucket; for example if `upper_bound` =
+   * 89, then all values greater than 89 are replaced with the value “89+”.
    * 
* * .google.privacy.dlp.v2.Value upper_bound = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -115,8 +115,8 @@ public interface FixedSizeBucketingConfigOrBuilder * * *
-   * Required. Size of each bucket (except for minimum and maximum buckets). So if
-   * `lower_bound` = 10, `upper_bound` = 89, and `bucket_size` = 10, then the
+   * Required. Size of each bucket (except for minimum and maximum buckets). So
+   * if `lower_bound` = 10, `upper_bound` = 89, and `bucket_size` = 10, then the
    * following buckets would be used: -10, 10-20, 20-30, 30-40, 40-50, 50-60,
    * 60-70, 70-80, 80-89, 89+. Precision up to 2 decimals works.
    * 
diff --git a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/GetDeidentifyTemplateRequest.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/GetDeidentifyTemplateRequest.java index 19af5d62..d91d618b 100644 --- a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/GetDeidentifyTemplateRequest.java +++ b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/GetDeidentifyTemplateRequest.java @@ -117,9 +117,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Required. Resource name of the organization and deidentify template to be read, for
-   * example `organizations/433245324/deidentifyTemplates/432452342` or
-   * projects/project-id/deidentifyTemplates/432452342.
+   * Required. Resource name of the organization and deidentify template to be
+   * read, for example `organizations/433245324/deidentifyTemplates/432452342`
+   * or projects/project-id/deidentifyTemplates/432452342.
    * 
* * @@ -143,9 +143,9 @@ public java.lang.String getName() { * * *
-   * Required. Resource name of the organization and deidentify template to be read, for
-   * example `organizations/433245324/deidentifyTemplates/432452342` or
-   * projects/project-id/deidentifyTemplates/432452342.
+   * Required. Resource name of the organization and deidentify template to be
+   * read, for example `organizations/433245324/deidentifyTemplates/432452342`
+   * or projects/project-id/deidentifyTemplates/432452342.
    * 
* * @@ -490,9 +490,9 @@ public Builder mergeFrom( * * *
-     * Required. Resource name of the organization and deidentify template to be read, for
-     * example `organizations/433245324/deidentifyTemplates/432452342` or
-     * projects/project-id/deidentifyTemplates/432452342.
+     * Required. Resource name of the organization and deidentify template to be
+     * read, for example `organizations/433245324/deidentifyTemplates/432452342`
+     * or projects/project-id/deidentifyTemplates/432452342.
      * 
* * @@ -516,9 +516,9 @@ public java.lang.String getName() { * * *
-     * Required. Resource name of the organization and deidentify template to be read, for
-     * example `organizations/433245324/deidentifyTemplates/432452342` or
-     * projects/project-id/deidentifyTemplates/432452342.
+     * Required. Resource name of the organization and deidentify template to be
+     * read, for example `organizations/433245324/deidentifyTemplates/432452342`
+     * or projects/project-id/deidentifyTemplates/432452342.
      * 
* * @@ -542,9 +542,9 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * Required. Resource name of the organization and deidentify template to be read, for
-     * example `organizations/433245324/deidentifyTemplates/432452342` or
-     * projects/project-id/deidentifyTemplates/432452342.
+     * Required. Resource name of the organization and deidentify template to be
+     * read, for example `organizations/433245324/deidentifyTemplates/432452342`
+     * or projects/project-id/deidentifyTemplates/432452342.
      * 
* * @@ -567,9 +567,9 @@ public Builder setName(java.lang.String value) { * * *
-     * Required. Resource name of the organization and deidentify template to be read, for
-     * example `organizations/433245324/deidentifyTemplates/432452342` or
-     * projects/project-id/deidentifyTemplates/432452342.
+     * Required. Resource name of the organization and deidentify template to be
+     * read, for example `organizations/433245324/deidentifyTemplates/432452342`
+     * or projects/project-id/deidentifyTemplates/432452342.
      * 
* * @@ -588,9 +588,9 @@ public Builder clearName() { * * *
-     * Required. Resource name of the organization and deidentify template to be read, for
-     * example `organizations/433245324/deidentifyTemplates/432452342` or
-     * projects/project-id/deidentifyTemplates/432452342.
+     * Required. Resource name of the organization and deidentify template to be
+     * read, for example `organizations/433245324/deidentifyTemplates/432452342`
+     * or projects/project-id/deidentifyTemplates/432452342.
      * 
* * diff --git a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/GetDeidentifyTemplateRequestOrBuilder.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/GetDeidentifyTemplateRequestOrBuilder.java index d2fe67a9..1b7aa70c 100644 --- a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/GetDeidentifyTemplateRequestOrBuilder.java +++ b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/GetDeidentifyTemplateRequestOrBuilder.java @@ -27,9 +27,9 @@ public interface GetDeidentifyTemplateRequestOrBuilder * * *
-   * Required. Resource name of the organization and deidentify template to be read, for
-   * example `organizations/433245324/deidentifyTemplates/432452342` or
-   * projects/project-id/deidentifyTemplates/432452342.
+   * Required. Resource name of the organization and deidentify template to be
+   * read, for example `organizations/433245324/deidentifyTemplates/432452342`
+   * or projects/project-id/deidentifyTemplates/432452342.
    * 
* * @@ -43,9 +43,9 @@ public interface GetDeidentifyTemplateRequestOrBuilder * * *
-   * Required. Resource name of the organization and deidentify template to be read, for
-   * example `organizations/433245324/deidentifyTemplates/432452342` or
-   * projects/project-id/deidentifyTemplates/432452342.
+   * Required. Resource name of the organization and deidentify template to be
+   * read, for example `organizations/433245324/deidentifyTemplates/432452342`
+   * or projects/project-id/deidentifyTemplates/432452342.
    * 
* * diff --git a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/GetInspectTemplateRequest.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/GetInspectTemplateRequest.java index c1a8b62d..8113660c 100644 --- a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/GetInspectTemplateRequest.java +++ b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/GetInspectTemplateRequest.java @@ -117,8 +117,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Required. Resource name of the organization and inspectTemplate to be read, for
-   * example `organizations/433245324/inspectTemplates/432452342` or
+   * Required. Resource name of the organization and inspectTemplate to be read,
+   * for example `organizations/433245324/inspectTemplates/432452342` or
    * projects/project-id/inspectTemplates/432452342.
    * 
* @@ -143,8 +143,8 @@ public java.lang.String getName() { * * *
-   * Required. Resource name of the organization and inspectTemplate to be read, for
-   * example `organizations/433245324/inspectTemplates/432452342` or
+   * Required. Resource name of the organization and inspectTemplate to be read,
+   * for example `organizations/433245324/inspectTemplates/432452342` or
    * projects/project-id/inspectTemplates/432452342.
    * 
* @@ -489,8 +489,8 @@ public Builder mergeFrom( * * *
-     * Required. Resource name of the organization and inspectTemplate to be read, for
-     * example `organizations/433245324/inspectTemplates/432452342` or
+     * Required. Resource name of the organization and inspectTemplate to be read,
+     * for example `organizations/433245324/inspectTemplates/432452342` or
      * projects/project-id/inspectTemplates/432452342.
      * 
* @@ -515,8 +515,8 @@ public java.lang.String getName() { * * *
-     * Required. Resource name of the organization and inspectTemplate to be read, for
-     * example `organizations/433245324/inspectTemplates/432452342` or
+     * Required. Resource name of the organization and inspectTemplate to be read,
+     * for example `organizations/433245324/inspectTemplates/432452342` or
      * projects/project-id/inspectTemplates/432452342.
      * 
* @@ -541,8 +541,8 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * Required. Resource name of the organization and inspectTemplate to be read, for
-     * example `organizations/433245324/inspectTemplates/432452342` or
+     * Required. Resource name of the organization and inspectTemplate to be read,
+     * for example `organizations/433245324/inspectTemplates/432452342` or
      * projects/project-id/inspectTemplates/432452342.
      * 
* @@ -566,8 +566,8 @@ public Builder setName(java.lang.String value) { * * *
-     * Required. Resource name of the organization and inspectTemplate to be read, for
-     * example `organizations/433245324/inspectTemplates/432452342` or
+     * Required. Resource name of the organization and inspectTemplate to be read,
+     * for example `organizations/433245324/inspectTemplates/432452342` or
      * projects/project-id/inspectTemplates/432452342.
      * 
* @@ -587,8 +587,8 @@ public Builder clearName() { * * *
-     * Required. Resource name of the organization and inspectTemplate to be read, for
-     * example `organizations/433245324/inspectTemplates/432452342` or
+     * Required. Resource name of the organization and inspectTemplate to be read,
+     * for example `organizations/433245324/inspectTemplates/432452342` or
      * projects/project-id/inspectTemplates/432452342.
      * 
* diff --git a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/GetInspectTemplateRequestOrBuilder.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/GetInspectTemplateRequestOrBuilder.java index f0a69421..b6e68e78 100644 --- a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/GetInspectTemplateRequestOrBuilder.java +++ b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/GetInspectTemplateRequestOrBuilder.java @@ -27,8 +27,8 @@ public interface GetInspectTemplateRequestOrBuilder * * *
-   * Required. Resource name of the organization and inspectTemplate to be read, for
-   * example `organizations/433245324/inspectTemplates/432452342` or
+   * Required. Resource name of the organization and inspectTemplate to be read,
+   * for example `organizations/433245324/inspectTemplates/432452342` or
    * projects/project-id/inspectTemplates/432452342.
    * 
* @@ -43,8 +43,8 @@ public interface GetInspectTemplateRequestOrBuilder * * *
-   * Required. Resource name of the organization and inspectTemplate to be read, for
-   * example `organizations/433245324/inspectTemplates/432452342` or
+   * Required. Resource name of the organization and inspectTemplate to be read,
+   * for example `organizations/433245324/inspectTemplates/432452342` or
    * projects/project-id/inspectTemplates/432452342.
    * 
* diff --git a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/GetStoredInfoTypeRequest.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/GetStoredInfoTypeRequest.java index 4353927b..60248ad8 100644 --- a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/GetStoredInfoTypeRequest.java +++ b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/GetStoredInfoTypeRequest.java @@ -117,8 +117,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Required. Resource name of the organization and storedInfoType to be read, for
-   * example `organizations/433245324/storedInfoTypes/432452342` or
+   * Required. Resource name of the organization and storedInfoType to be read,
+   * for example `organizations/433245324/storedInfoTypes/432452342` or
    * projects/project-id/storedInfoTypes/432452342.
    * 
* @@ -143,8 +143,8 @@ public java.lang.String getName() { * * *
-   * Required. Resource name of the organization and storedInfoType to be read, for
-   * example `organizations/433245324/storedInfoTypes/432452342` or
+   * Required. Resource name of the organization and storedInfoType to be read,
+   * for example `organizations/433245324/storedInfoTypes/432452342` or
    * projects/project-id/storedInfoTypes/432452342.
    * 
* @@ -489,8 +489,8 @@ public Builder mergeFrom( * * *
-     * Required. Resource name of the organization and storedInfoType to be read, for
-     * example `organizations/433245324/storedInfoTypes/432452342` or
+     * Required. Resource name of the organization and storedInfoType to be read,
+     * for example `organizations/433245324/storedInfoTypes/432452342` or
      * projects/project-id/storedInfoTypes/432452342.
      * 
* @@ -515,8 +515,8 @@ public java.lang.String getName() { * * *
-     * Required. Resource name of the organization and storedInfoType to be read, for
-     * example `organizations/433245324/storedInfoTypes/432452342` or
+     * Required. Resource name of the organization and storedInfoType to be read,
+     * for example `organizations/433245324/storedInfoTypes/432452342` or
      * projects/project-id/storedInfoTypes/432452342.
      * 
* @@ -541,8 +541,8 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * Required. Resource name of the organization and storedInfoType to be read, for
-     * example `organizations/433245324/storedInfoTypes/432452342` or
+     * Required. Resource name of the organization and storedInfoType to be read,
+     * for example `organizations/433245324/storedInfoTypes/432452342` or
      * projects/project-id/storedInfoTypes/432452342.
      * 
* @@ -566,8 +566,8 @@ public Builder setName(java.lang.String value) { * * *
-     * Required. Resource name of the organization and storedInfoType to be read, for
-     * example `organizations/433245324/storedInfoTypes/432452342` or
+     * Required. Resource name of the organization and storedInfoType to be read,
+     * for example `organizations/433245324/storedInfoTypes/432452342` or
      * projects/project-id/storedInfoTypes/432452342.
      * 
* @@ -587,8 +587,8 @@ public Builder clearName() { * * *
-     * Required. Resource name of the organization and storedInfoType to be read, for
-     * example `organizations/433245324/storedInfoTypes/432452342` or
+     * Required. Resource name of the organization and storedInfoType to be read,
+     * for example `organizations/433245324/storedInfoTypes/432452342` or
      * projects/project-id/storedInfoTypes/432452342.
      * 
* diff --git a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/GetStoredInfoTypeRequestOrBuilder.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/GetStoredInfoTypeRequestOrBuilder.java index 42cbf504..9b4cdad7 100644 --- a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/GetStoredInfoTypeRequestOrBuilder.java +++ b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/GetStoredInfoTypeRequestOrBuilder.java @@ -27,8 +27,8 @@ public interface GetStoredInfoTypeRequestOrBuilder * * *
-   * Required. Resource name of the organization and storedInfoType to be read, for
-   * example `organizations/433245324/storedInfoTypes/432452342` or
+   * Required. Resource name of the organization and storedInfoType to be read,
+   * for example `organizations/433245324/storedInfoTypes/432452342` or
    * projects/project-id/storedInfoTypes/432452342.
    * 
* @@ -43,8 +43,8 @@ public interface GetStoredInfoTypeRequestOrBuilder * * *
-   * Required. Resource name of the organization and storedInfoType to be read, for
-   * example `organizations/433245324/storedInfoTypes/432452342` or
+   * Required. Resource name of the organization and storedInfoType to be read,
+   * for example `organizations/433245324/storedInfoTypes/432452342` or
    * projects/project-id/storedInfoTypes/432452342.
    * 
* diff --git a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/HybridContentItem.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/HybridContentItem.java new file mode 100644 index 00000000..f6548025 --- /dev/null +++ b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/HybridContentItem.java @@ -0,0 +1,999 @@ +/* + * 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 individual hybrid item to inspect. Will be stored temporarily during
+ * processing.
+ * 
+ * + * Protobuf type {@code google.privacy.dlp.v2.HybridContentItem} + */ +public final class HybridContentItem extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2.HybridContentItem) + HybridContentItemOrBuilder { + private static final long serialVersionUID = 0L; + // Use HybridContentItem.newBuilder() to construct. + private HybridContentItem(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private HybridContentItem() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new HybridContentItem(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private HybridContentItem( + 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.ContentItem.Builder subBuilder = null; + if (item_ != null) { + subBuilder = item_.toBuilder(); + } + item_ = + input.readMessage( + com.google.privacy.dlp.v2.ContentItem.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(item_); + item_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + com.google.privacy.dlp.v2.HybridFindingDetails.Builder subBuilder = null; + if (findingDetails_ != null) { + subBuilder = findingDetails_.toBuilder(); + } + findingDetails_ = + input.readMessage( + com.google.privacy.dlp.v2.HybridFindingDetails.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(findingDetails_); + findingDetails_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.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_HybridContentItem_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_HybridContentItem_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.privacy.dlp.v2.HybridContentItem.class, + com.google.privacy.dlp.v2.HybridContentItem.Builder.class); + } + + public static final int ITEM_FIELD_NUMBER = 1; + private com.google.privacy.dlp.v2.ContentItem item_; + /** + * + * + *
+   * The item to inspect.
+   * 
+ * + * .google.privacy.dlp.v2.ContentItem item = 1; + * + * @return Whether the item field is set. + */ + public boolean hasItem() { + return item_ != null; + } + /** + * + * + *
+   * The item to inspect.
+   * 
+ * + * .google.privacy.dlp.v2.ContentItem item = 1; + * + * @return The item. + */ + public com.google.privacy.dlp.v2.ContentItem getItem() { + return item_ == null ? com.google.privacy.dlp.v2.ContentItem.getDefaultInstance() : item_; + } + /** + * + * + *
+   * The item to inspect.
+   * 
+ * + * .google.privacy.dlp.v2.ContentItem item = 1; + */ + public com.google.privacy.dlp.v2.ContentItemOrBuilder getItemOrBuilder() { + return getItem(); + } + + public static final int FINDING_DETAILS_FIELD_NUMBER = 2; + private com.google.privacy.dlp.v2.HybridFindingDetails findingDetails_; + /** + * + * + *
+   * Supplementary information that will be added to each finding.
+   * 
+ * + * .google.privacy.dlp.v2.HybridFindingDetails finding_details = 2; + * + * @return Whether the findingDetails field is set. + */ + public boolean hasFindingDetails() { + return findingDetails_ != null; + } + /** + * + * + *
+   * Supplementary information that will be added to each finding.
+   * 
+ * + * .google.privacy.dlp.v2.HybridFindingDetails finding_details = 2; + * + * @return The findingDetails. + */ + public com.google.privacy.dlp.v2.HybridFindingDetails getFindingDetails() { + return findingDetails_ == null + ? com.google.privacy.dlp.v2.HybridFindingDetails.getDefaultInstance() + : findingDetails_; + } + /** + * + * + *
+   * Supplementary information that will be added to each finding.
+   * 
+ * + * .google.privacy.dlp.v2.HybridFindingDetails finding_details = 2; + */ + public com.google.privacy.dlp.v2.HybridFindingDetailsOrBuilder getFindingDetailsOrBuilder() { + return getFindingDetails(); + } + + 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 (item_ != null) { + output.writeMessage(1, getItem()); + } + if (findingDetails_ != null) { + output.writeMessage(2, getFindingDetails()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (item_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getItem()); + } + if (findingDetails_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getFindingDetails()); + } + 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.HybridContentItem)) { + return super.equals(obj); + } + com.google.privacy.dlp.v2.HybridContentItem other = + (com.google.privacy.dlp.v2.HybridContentItem) obj; + + if (hasItem() != other.hasItem()) return false; + if (hasItem()) { + if (!getItem().equals(other.getItem())) return false; + } + if (hasFindingDetails() != other.hasFindingDetails()) return false; + if (hasFindingDetails()) { + if (!getFindingDetails().equals(other.getFindingDetails())) 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 (hasItem()) { + hash = (37 * hash) + ITEM_FIELD_NUMBER; + hash = (53 * hash) + getItem().hashCode(); + } + if (hasFindingDetails()) { + hash = (37 * hash) + FINDING_DETAILS_FIELD_NUMBER; + hash = (53 * hash) + getFindingDetails().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.privacy.dlp.v2.HybridContentItem parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.privacy.dlp.v2.HybridContentItem 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.HybridContentItem parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.privacy.dlp.v2.HybridContentItem 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.HybridContentItem parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.privacy.dlp.v2.HybridContentItem 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.HybridContentItem parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.privacy.dlp.v2.HybridContentItem 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.HybridContentItem parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.privacy.dlp.v2.HybridContentItem 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.HybridContentItem 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.HybridContentItem 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.HybridContentItem 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; + } + /** + * + * + *
+   * An individual hybrid item to inspect. Will be stored temporarily during
+   * processing.
+   * 
+ * + * Protobuf type {@code google.privacy.dlp.v2.HybridContentItem} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.privacy.dlp.v2.HybridContentItem) + com.google.privacy.dlp.v2.HybridContentItemOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_HybridContentItem_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_HybridContentItem_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.privacy.dlp.v2.HybridContentItem.class, + com.google.privacy.dlp.v2.HybridContentItem.Builder.class); + } + + // Construct using com.google.privacy.dlp.v2.HybridContentItem.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 (itemBuilder_ == null) { + item_ = null; + } else { + item_ = null; + itemBuilder_ = null; + } + if (findingDetailsBuilder_ == null) { + findingDetails_ = null; + } else { + findingDetails_ = null; + findingDetailsBuilder_ = 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_HybridContentItem_descriptor; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.HybridContentItem getDefaultInstanceForType() { + return com.google.privacy.dlp.v2.HybridContentItem.getDefaultInstance(); + } + + @java.lang.Override + public com.google.privacy.dlp.v2.HybridContentItem build() { + com.google.privacy.dlp.v2.HybridContentItem result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.HybridContentItem buildPartial() { + com.google.privacy.dlp.v2.HybridContentItem result = + new com.google.privacy.dlp.v2.HybridContentItem(this); + if (itemBuilder_ == null) { + result.item_ = item_; + } else { + result.item_ = itemBuilder_.build(); + } + if (findingDetailsBuilder_ == null) { + result.findingDetails_ = findingDetails_; + } else { + result.findingDetails_ = findingDetailsBuilder_.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.HybridContentItem) { + return mergeFrom((com.google.privacy.dlp.v2.HybridContentItem) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.privacy.dlp.v2.HybridContentItem other) { + if (other == com.google.privacy.dlp.v2.HybridContentItem.getDefaultInstance()) return this; + if (other.hasItem()) { + mergeItem(other.getItem()); + } + if (other.hasFindingDetails()) { + mergeFindingDetails(other.getFindingDetails()); + } + 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.HybridContentItem parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.privacy.dlp.v2.HybridContentItem) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.privacy.dlp.v2.ContentItem item_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.ContentItem, + com.google.privacy.dlp.v2.ContentItem.Builder, + com.google.privacy.dlp.v2.ContentItemOrBuilder> + itemBuilder_; + /** + * + * + *
+     * The item to inspect.
+     * 
+ * + * .google.privacy.dlp.v2.ContentItem item = 1; + * + * @return Whether the item field is set. + */ + public boolean hasItem() { + return itemBuilder_ != null || item_ != null; + } + /** + * + * + *
+     * The item to inspect.
+     * 
+ * + * .google.privacy.dlp.v2.ContentItem item = 1; + * + * @return The item. + */ + public com.google.privacy.dlp.v2.ContentItem getItem() { + if (itemBuilder_ == null) { + return item_ == null ? com.google.privacy.dlp.v2.ContentItem.getDefaultInstance() : item_; + } else { + return itemBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The item to inspect.
+     * 
+ * + * .google.privacy.dlp.v2.ContentItem item = 1; + */ + public Builder setItem(com.google.privacy.dlp.v2.ContentItem value) { + if (itemBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + item_ = value; + onChanged(); + } else { + itemBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The item to inspect.
+     * 
+ * + * .google.privacy.dlp.v2.ContentItem item = 1; + */ + public Builder setItem(com.google.privacy.dlp.v2.ContentItem.Builder builderForValue) { + if (itemBuilder_ == null) { + item_ = builderForValue.build(); + onChanged(); + } else { + itemBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The item to inspect.
+     * 
+ * + * .google.privacy.dlp.v2.ContentItem item = 1; + */ + public Builder mergeItem(com.google.privacy.dlp.v2.ContentItem value) { + if (itemBuilder_ == null) { + if (item_ != null) { + item_ = + com.google.privacy.dlp.v2.ContentItem.newBuilder(item_) + .mergeFrom(value) + .buildPartial(); + } else { + item_ = value; + } + onChanged(); + } else { + itemBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The item to inspect.
+     * 
+ * + * .google.privacy.dlp.v2.ContentItem item = 1; + */ + public Builder clearItem() { + if (itemBuilder_ == null) { + item_ = null; + onChanged(); + } else { + item_ = null; + itemBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The item to inspect.
+     * 
+ * + * .google.privacy.dlp.v2.ContentItem item = 1; + */ + public com.google.privacy.dlp.v2.ContentItem.Builder getItemBuilder() { + + onChanged(); + return getItemFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The item to inspect.
+     * 
+ * + * .google.privacy.dlp.v2.ContentItem item = 1; + */ + public com.google.privacy.dlp.v2.ContentItemOrBuilder getItemOrBuilder() { + if (itemBuilder_ != null) { + return itemBuilder_.getMessageOrBuilder(); + } else { + return item_ == null ? com.google.privacy.dlp.v2.ContentItem.getDefaultInstance() : item_; + } + } + /** + * + * + *
+     * The item to inspect.
+     * 
+ * + * .google.privacy.dlp.v2.ContentItem item = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.ContentItem, + com.google.privacy.dlp.v2.ContentItem.Builder, + com.google.privacy.dlp.v2.ContentItemOrBuilder> + getItemFieldBuilder() { + if (itemBuilder_ == null) { + itemBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.ContentItem, + com.google.privacy.dlp.v2.ContentItem.Builder, + com.google.privacy.dlp.v2.ContentItemOrBuilder>( + getItem(), getParentForChildren(), isClean()); + item_ = null; + } + return itemBuilder_; + } + + private com.google.privacy.dlp.v2.HybridFindingDetails findingDetails_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.HybridFindingDetails, + com.google.privacy.dlp.v2.HybridFindingDetails.Builder, + com.google.privacy.dlp.v2.HybridFindingDetailsOrBuilder> + findingDetailsBuilder_; + /** + * + * + *
+     * Supplementary information that will be added to each finding.
+     * 
+ * + * .google.privacy.dlp.v2.HybridFindingDetails finding_details = 2; + * + * @return Whether the findingDetails field is set. + */ + public boolean hasFindingDetails() { + return findingDetailsBuilder_ != null || findingDetails_ != null; + } + /** + * + * + *
+     * Supplementary information that will be added to each finding.
+     * 
+ * + * .google.privacy.dlp.v2.HybridFindingDetails finding_details = 2; + * + * @return The findingDetails. + */ + public com.google.privacy.dlp.v2.HybridFindingDetails getFindingDetails() { + if (findingDetailsBuilder_ == null) { + return findingDetails_ == null + ? com.google.privacy.dlp.v2.HybridFindingDetails.getDefaultInstance() + : findingDetails_; + } else { + return findingDetailsBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Supplementary information that will be added to each finding.
+     * 
+ * + * .google.privacy.dlp.v2.HybridFindingDetails finding_details = 2; + */ + public Builder setFindingDetails(com.google.privacy.dlp.v2.HybridFindingDetails value) { + if (findingDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + findingDetails_ = value; + onChanged(); + } else { + findingDetailsBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Supplementary information that will be added to each finding.
+     * 
+ * + * .google.privacy.dlp.v2.HybridFindingDetails finding_details = 2; + */ + public Builder setFindingDetails( + com.google.privacy.dlp.v2.HybridFindingDetails.Builder builderForValue) { + if (findingDetailsBuilder_ == null) { + findingDetails_ = builderForValue.build(); + onChanged(); + } else { + findingDetailsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Supplementary information that will be added to each finding.
+     * 
+ * + * .google.privacy.dlp.v2.HybridFindingDetails finding_details = 2; + */ + public Builder mergeFindingDetails(com.google.privacy.dlp.v2.HybridFindingDetails value) { + if (findingDetailsBuilder_ == null) { + if (findingDetails_ != null) { + findingDetails_ = + com.google.privacy.dlp.v2.HybridFindingDetails.newBuilder(findingDetails_) + .mergeFrom(value) + .buildPartial(); + } else { + findingDetails_ = value; + } + onChanged(); + } else { + findingDetailsBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Supplementary information that will be added to each finding.
+     * 
+ * + * .google.privacy.dlp.v2.HybridFindingDetails finding_details = 2; + */ + public Builder clearFindingDetails() { + if (findingDetailsBuilder_ == null) { + findingDetails_ = null; + onChanged(); + } else { + findingDetails_ = null; + findingDetailsBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Supplementary information that will be added to each finding.
+     * 
+ * + * .google.privacy.dlp.v2.HybridFindingDetails finding_details = 2; + */ + public com.google.privacy.dlp.v2.HybridFindingDetails.Builder getFindingDetailsBuilder() { + + onChanged(); + return getFindingDetailsFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Supplementary information that will be added to each finding.
+     * 
+ * + * .google.privacy.dlp.v2.HybridFindingDetails finding_details = 2; + */ + public com.google.privacy.dlp.v2.HybridFindingDetailsOrBuilder getFindingDetailsOrBuilder() { + if (findingDetailsBuilder_ != null) { + return findingDetailsBuilder_.getMessageOrBuilder(); + } else { + return findingDetails_ == null + ? com.google.privacy.dlp.v2.HybridFindingDetails.getDefaultInstance() + : findingDetails_; + } + } + /** + * + * + *
+     * Supplementary information that will be added to each finding.
+     * 
+ * + * .google.privacy.dlp.v2.HybridFindingDetails finding_details = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.HybridFindingDetails, + com.google.privacy.dlp.v2.HybridFindingDetails.Builder, + com.google.privacy.dlp.v2.HybridFindingDetailsOrBuilder> + getFindingDetailsFieldBuilder() { + if (findingDetailsBuilder_ == null) { + findingDetailsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.HybridFindingDetails, + com.google.privacy.dlp.v2.HybridFindingDetails.Builder, + com.google.privacy.dlp.v2.HybridFindingDetailsOrBuilder>( + getFindingDetails(), getParentForChildren(), isClean()); + findingDetails_ = null; + } + return findingDetailsBuilder_; + } + + @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.HybridContentItem) + } + + // @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.HybridContentItem) + private static final com.google.privacy.dlp.v2.HybridContentItem DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.privacy.dlp.v2.HybridContentItem(); + } + + public static com.google.privacy.dlp.v2.HybridContentItem getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HybridContentItem parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new HybridContentItem(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.HybridContentItem getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/HybridContentItemOrBuilder.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/HybridContentItemOrBuilder.java new file mode 100644 index 00000000..cc4b61d4 --- /dev/null +++ b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/HybridContentItemOrBuilder.java @@ -0,0 +1,95 @@ +/* + * 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 HybridContentItemOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.privacy.dlp.v2.HybridContentItem) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The item to inspect.
+   * 
+ * + * .google.privacy.dlp.v2.ContentItem item = 1; + * + * @return Whether the item field is set. + */ + boolean hasItem(); + /** + * + * + *
+   * The item to inspect.
+   * 
+ * + * .google.privacy.dlp.v2.ContentItem item = 1; + * + * @return The item. + */ + com.google.privacy.dlp.v2.ContentItem getItem(); + /** + * + * + *
+   * The item to inspect.
+   * 
+ * + * .google.privacy.dlp.v2.ContentItem item = 1; + */ + com.google.privacy.dlp.v2.ContentItemOrBuilder getItemOrBuilder(); + + /** + * + * + *
+   * Supplementary information that will be added to each finding.
+   * 
+ * + * .google.privacy.dlp.v2.HybridFindingDetails finding_details = 2; + * + * @return Whether the findingDetails field is set. + */ + boolean hasFindingDetails(); + /** + * + * + *
+   * Supplementary information that will be added to each finding.
+   * 
+ * + * .google.privacy.dlp.v2.HybridFindingDetails finding_details = 2; + * + * @return The findingDetails. + */ + com.google.privacy.dlp.v2.HybridFindingDetails getFindingDetails(); + /** + * + * + *
+   * Supplementary information that will be added to each finding.
+   * 
+ * + * .google.privacy.dlp.v2.HybridFindingDetails finding_details = 2; + */ + com.google.privacy.dlp.v2.HybridFindingDetailsOrBuilder getFindingDetailsOrBuilder(); +} diff --git a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/HybridFindingDetails.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/HybridFindingDetails.java new file mode 100644 index 00000000..5ef2a7df --- /dev/null +++ b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/HybridFindingDetails.java @@ -0,0 +1,1671 @@ +/* + * 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; + +/** + * + * + *
+ * Populate to associate additional data with each finding.
+ * 
+ * + * Protobuf type {@code google.privacy.dlp.v2.HybridFindingDetails} + */ +public final class HybridFindingDetails extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2.HybridFindingDetails) + HybridFindingDetailsOrBuilder { + private static final long serialVersionUID = 0L; + // Use HybridFindingDetails.newBuilder() to construct. + private HybridFindingDetails(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private HybridFindingDetails() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new HybridFindingDetails(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private HybridFindingDetails( + 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: + { + com.google.privacy.dlp.v2.Container.Builder subBuilder = null; + if (containerDetails_ != null) { + subBuilder = containerDetails_.toBuilder(); + } + containerDetails_ = + input.readMessage( + com.google.privacy.dlp.v2.Container.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(containerDetails_); + containerDetails_ = subBuilder.buildPartial(); + } + + break; + } + case 16: + { + fileOffset_ = input.readInt64(); + break; + } + case 24: + { + rowOffset_ = input.readInt64(); + break; + } + case 34: + { + com.google.privacy.dlp.v2.TableOptions.Builder subBuilder = null; + if (tableOptions_ != null) { + subBuilder = tableOptions_.toBuilder(); + } + tableOptions_ = + input.readMessage( + com.google.privacy.dlp.v2.TableOptions.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(tableOptions_); + tableOptions_ = subBuilder.buildPartial(); + } + + break; + } + case 42: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + labels_ = + com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + labels_.getMutableMap().put(labels__.getKey(), labels__.getValue()); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.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_HybridFindingDetails_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 5: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_HybridFindingDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.privacy.dlp.v2.HybridFindingDetails.class, + com.google.privacy.dlp.v2.HybridFindingDetails.Builder.class); + } + + public static final int CONTAINER_DETAILS_FIELD_NUMBER = 1; + private com.google.privacy.dlp.v2.Container containerDetails_; + /** + * + * + *
+   * Details about the container where the content being inspected is from.
+   * 
+ * + * .google.privacy.dlp.v2.Container container_details = 1; + * + * @return Whether the containerDetails field is set. + */ + public boolean hasContainerDetails() { + return containerDetails_ != null; + } + /** + * + * + *
+   * Details about the container where the content being inspected is from.
+   * 
+ * + * .google.privacy.dlp.v2.Container container_details = 1; + * + * @return The containerDetails. + */ + public com.google.privacy.dlp.v2.Container getContainerDetails() { + return containerDetails_ == null + ? com.google.privacy.dlp.v2.Container.getDefaultInstance() + : containerDetails_; + } + /** + * + * + *
+   * Details about the container where the content being inspected is from.
+   * 
+ * + * .google.privacy.dlp.v2.Container container_details = 1; + */ + public com.google.privacy.dlp.v2.ContainerOrBuilder getContainerDetailsOrBuilder() { + return getContainerDetails(); + } + + public static final int FILE_OFFSET_FIELD_NUMBER = 2; + private long fileOffset_; + /** + * + * + *
+   * Offset in bytes of the line, from the beginning of the file, where the
+   * finding  is located. Populate if the item being scanned is only part of a
+   * bigger item, such as a shard of a file and you want to track the absolute
+   * position of the finding.
+   * 
+ * + * int64 file_offset = 2; + * + * @return The fileOffset. + */ + public long getFileOffset() { + return fileOffset_; + } + + public static final int ROW_OFFSET_FIELD_NUMBER = 3; + private long rowOffset_; + /** + * + * + *
+   * Offset of the row for tables. Populate if the row(s) being scanned are
+   * part of a bigger dataset and you want to keep track of their absolute
+   * position.
+   * 
+ * + * int64 row_offset = 3; + * + * @return The rowOffset. + */ + public long getRowOffset() { + return rowOffset_; + } + + public static final int TABLE_OPTIONS_FIELD_NUMBER = 4; + private com.google.privacy.dlp.v2.TableOptions tableOptions_; + /** + * + * + *
+   * If the container is a table, additional information to make findings
+   * meaningful such as the columns that are primary keys. If not known ahead
+   * of time, can also be set within each inspect hybrid call and the two
+   * will be merged. Note that identifying_fields will only be stored to
+   * BigQuery, and only if the BigQuery action has been included.
+   * 
+ * + * .google.privacy.dlp.v2.TableOptions table_options = 4; + * + * @return Whether the tableOptions field is set. + */ + public boolean hasTableOptions() { + return tableOptions_ != null; + } + /** + * + * + *
+   * If the container is a table, additional information to make findings
+   * meaningful such as the columns that are primary keys. If not known ahead
+   * of time, can also be set within each inspect hybrid call and the two
+   * will be merged. Note that identifying_fields will only be stored to
+   * BigQuery, and only if the BigQuery action has been included.
+   * 
+ * + * .google.privacy.dlp.v2.TableOptions table_options = 4; + * + * @return The tableOptions. + */ + public com.google.privacy.dlp.v2.TableOptions getTableOptions() { + return tableOptions_ == null + ? com.google.privacy.dlp.v2.TableOptions.getDefaultInstance() + : tableOptions_; + } + /** + * + * + *
+   * If the container is a table, additional information to make findings
+   * meaningful such as the columns that are primary keys. If not known ahead
+   * of time, can also be set within each inspect hybrid call and the two
+   * will be merged. Note that identifying_fields will only be stored to
+   * BigQuery, and only if the BigQuery action has been included.
+   * 
+ * + * .google.privacy.dlp.v2.TableOptions table_options = 4; + */ + public com.google.privacy.dlp.v2.TableOptionsOrBuilder getTableOptionsOrBuilder() { + return getTableOptions(); + } + + public static final int LABELS_FIELD_NUMBER = 5; + + private static final class LabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_HybridFindingDetails_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + /** + * + * + *
+   * Labels to represent user provided metadata about the data being inspected.
+   * If configured by the job, some key values may be required.
+   * The labels associated with `Finding`'s produced by hybrid
+   * inspection.
+   * Label keys must be between 1 and 63 characters long and must conform
+   * to the following regular expression: \[a-z\](\[-a-z0-9\]*\[a-z0-9\])?.
+   * Label values must be between 0 and 63 characters long and must conform
+   * to the regular expression (\[a-z\](\[-a-z0-9\]*\[a-z0-9\])?)?.
+   * No more than 10 labels can be associated with a given finding.
+   * Example: <code>"environment" : "production"</code>
+   * Example: <code>"pipeline" : "etl"</code>
+   * 
+ * + * map<string, string> labels = 5; + */ + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + return internalGetLabels().getMap().containsKey(key); + } + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + /** + * + * + *
+   * Labels to represent user provided metadata about the data being inspected.
+   * If configured by the job, some key values may be required.
+   * The labels associated with `Finding`'s produced by hybrid
+   * inspection.
+   * Label keys must be between 1 and 63 characters long and must conform
+   * to the following regular expression: \[a-z\](\[-a-z0-9\]*\[a-z0-9\])?.
+   * Label values must be between 0 and 63 characters long and must conform
+   * to the regular expression (\[a-z\](\[-a-z0-9\]*\[a-z0-9\])?)?.
+   * No more than 10 labels can be associated with a given finding.
+   * Example: <code>"environment" : "production"</code>
+   * Example: <code>"pipeline" : "etl"</code>
+   * 
+ * + * map<string, string> labels = 5; + */ + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + * + * + *
+   * Labels to represent user provided metadata about the data being inspected.
+   * If configured by the job, some key values may be required.
+   * The labels associated with `Finding`'s produced by hybrid
+   * inspection.
+   * Label keys must be between 1 and 63 characters long and must conform
+   * to the following regular expression: \[a-z\](\[-a-z0-9\]*\[a-z0-9\])?.
+   * Label values must be between 0 and 63 characters long and must conform
+   * to the regular expression (\[a-z\](\[-a-z0-9\]*\[a-z0-9\])?)?.
+   * No more than 10 labels can be associated with a given finding.
+   * Example: <code>"environment" : "production"</code>
+   * Example: <code>"pipeline" : "etl"</code>
+   * 
+ * + * map<string, string> labels = 5; + */ + public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+   * Labels to represent user provided metadata about the data being inspected.
+   * If configured by the job, some key values may be required.
+   * The labels associated with `Finding`'s produced by hybrid
+   * inspection.
+   * Label keys must be between 1 and 63 characters long and must conform
+   * to the following regular expression: \[a-z\](\[-a-z0-9\]*\[a-z0-9\])?.
+   * Label values must be between 0 and 63 characters long and must conform
+   * to the regular expression (\[a-z\](\[-a-z0-9\]*\[a-z0-9\])?)?.
+   * No more than 10 labels can be associated with a given finding.
+   * Example: <code>"environment" : "production"</code>
+   * Example: <code>"pipeline" : "etl"</code>
+   * 
+ * + * map<string, string> labels = 5; + */ + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + 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 (containerDetails_ != null) { + output.writeMessage(1, getContainerDetails()); + } + if (fileOffset_ != 0L) { + output.writeInt64(2, fileOffset_); + } + if (rowOffset_ != 0L) { + output.writeInt64(3, rowOffset_); + } + if (tableOptions_ != null) { + output.writeMessage(4, getTableOptions()); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 5); + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (containerDetails_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getContainerDetails()); + } + if (fileOffset_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, fileOffset_); + } + if (rowOffset_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, rowOffset_); + } + if (tableOptions_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getTableOptions()); + } + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, labels__); + } + 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.HybridFindingDetails)) { + return super.equals(obj); + } + com.google.privacy.dlp.v2.HybridFindingDetails other = + (com.google.privacy.dlp.v2.HybridFindingDetails) obj; + + if (hasContainerDetails() != other.hasContainerDetails()) return false; + if (hasContainerDetails()) { + if (!getContainerDetails().equals(other.getContainerDetails())) return false; + } + if (getFileOffset() != other.getFileOffset()) return false; + if (getRowOffset() != other.getRowOffset()) return false; + if (hasTableOptions() != other.hasTableOptions()) return false; + if (hasTableOptions()) { + if (!getTableOptions().equals(other.getTableOptions())) return false; + } + if (!internalGetLabels().equals(other.internalGetLabels())) 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 (hasContainerDetails()) { + hash = (37 * hash) + CONTAINER_DETAILS_FIELD_NUMBER; + hash = (53 * hash) + getContainerDetails().hashCode(); + } + hash = (37 * hash) + FILE_OFFSET_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getFileOffset()); + hash = (37 * hash) + ROW_OFFSET_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getRowOffset()); + if (hasTableOptions()) { + hash = (37 * hash) + TABLE_OPTIONS_FIELD_NUMBER; + hash = (53 * hash) + getTableOptions().hashCode(); + } + if (!internalGetLabels().getMap().isEmpty()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLabels().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.privacy.dlp.v2.HybridFindingDetails parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.privacy.dlp.v2.HybridFindingDetails 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.HybridFindingDetails parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.privacy.dlp.v2.HybridFindingDetails 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.HybridFindingDetails parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.privacy.dlp.v2.HybridFindingDetails 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.HybridFindingDetails parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.privacy.dlp.v2.HybridFindingDetails 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.HybridFindingDetails parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.privacy.dlp.v2.HybridFindingDetails 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.HybridFindingDetails 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.HybridFindingDetails 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.HybridFindingDetails 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; + } + /** + * + * + *
+   * Populate to associate additional data with each finding.
+   * 
+ * + * Protobuf type {@code google.privacy.dlp.v2.HybridFindingDetails} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.privacy.dlp.v2.HybridFindingDetails) + com.google.privacy.dlp.v2.HybridFindingDetailsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_HybridFindingDetails_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 5: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + switch (number) { + case 5: + return internalGetMutableLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_HybridFindingDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.privacy.dlp.v2.HybridFindingDetails.class, + com.google.privacy.dlp.v2.HybridFindingDetails.Builder.class); + } + + // Construct using com.google.privacy.dlp.v2.HybridFindingDetails.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 (containerDetailsBuilder_ == null) { + containerDetails_ = null; + } else { + containerDetails_ = null; + containerDetailsBuilder_ = null; + } + fileOffset_ = 0L; + + rowOffset_ = 0L; + + if (tableOptionsBuilder_ == null) { + tableOptions_ = null; + } else { + tableOptions_ = null; + tableOptionsBuilder_ = null; + } + internalGetMutableLabels().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_HybridFindingDetails_descriptor; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.HybridFindingDetails getDefaultInstanceForType() { + return com.google.privacy.dlp.v2.HybridFindingDetails.getDefaultInstance(); + } + + @java.lang.Override + public com.google.privacy.dlp.v2.HybridFindingDetails build() { + com.google.privacy.dlp.v2.HybridFindingDetails result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.HybridFindingDetails buildPartial() { + com.google.privacy.dlp.v2.HybridFindingDetails result = + new com.google.privacy.dlp.v2.HybridFindingDetails(this); + int from_bitField0_ = bitField0_; + if (containerDetailsBuilder_ == null) { + result.containerDetails_ = containerDetails_; + } else { + result.containerDetails_ = containerDetailsBuilder_.build(); + } + result.fileOffset_ = fileOffset_; + result.rowOffset_ = rowOffset_; + if (tableOptionsBuilder_ == null) { + result.tableOptions_ = tableOptions_; + } else { + result.tableOptions_ = tableOptionsBuilder_.build(); + } + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + 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.HybridFindingDetails) { + return mergeFrom((com.google.privacy.dlp.v2.HybridFindingDetails) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.privacy.dlp.v2.HybridFindingDetails other) { + if (other == com.google.privacy.dlp.v2.HybridFindingDetails.getDefaultInstance()) return this; + if (other.hasContainerDetails()) { + mergeContainerDetails(other.getContainerDetails()); + } + if (other.getFileOffset() != 0L) { + setFileOffset(other.getFileOffset()); + } + if (other.getRowOffset() != 0L) { + setRowOffset(other.getRowOffset()); + } + if (other.hasTableOptions()) { + mergeTableOptions(other.getTableOptions()); + } + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + 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.HybridFindingDetails parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.privacy.dlp.v2.HybridFindingDetails) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private com.google.privacy.dlp.v2.Container containerDetails_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.Container, + com.google.privacy.dlp.v2.Container.Builder, + com.google.privacy.dlp.v2.ContainerOrBuilder> + containerDetailsBuilder_; + /** + * + * + *
+     * Details about the container where the content being inspected is from.
+     * 
+ * + * .google.privacy.dlp.v2.Container container_details = 1; + * + * @return Whether the containerDetails field is set. + */ + public boolean hasContainerDetails() { + return containerDetailsBuilder_ != null || containerDetails_ != null; + } + /** + * + * + *
+     * Details about the container where the content being inspected is from.
+     * 
+ * + * .google.privacy.dlp.v2.Container container_details = 1; + * + * @return The containerDetails. + */ + public com.google.privacy.dlp.v2.Container getContainerDetails() { + if (containerDetailsBuilder_ == null) { + return containerDetails_ == null + ? com.google.privacy.dlp.v2.Container.getDefaultInstance() + : containerDetails_; + } else { + return containerDetailsBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Details about the container where the content being inspected is from.
+     * 
+ * + * .google.privacy.dlp.v2.Container container_details = 1; + */ + public Builder setContainerDetails(com.google.privacy.dlp.v2.Container value) { + if (containerDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + containerDetails_ = value; + onChanged(); + } else { + containerDetailsBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Details about the container where the content being inspected is from.
+     * 
+ * + * .google.privacy.dlp.v2.Container container_details = 1; + */ + public Builder setContainerDetails( + com.google.privacy.dlp.v2.Container.Builder builderForValue) { + if (containerDetailsBuilder_ == null) { + containerDetails_ = builderForValue.build(); + onChanged(); + } else { + containerDetailsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Details about the container where the content being inspected is from.
+     * 
+ * + * .google.privacy.dlp.v2.Container container_details = 1; + */ + public Builder mergeContainerDetails(com.google.privacy.dlp.v2.Container value) { + if (containerDetailsBuilder_ == null) { + if (containerDetails_ != null) { + containerDetails_ = + com.google.privacy.dlp.v2.Container.newBuilder(containerDetails_) + .mergeFrom(value) + .buildPartial(); + } else { + containerDetails_ = value; + } + onChanged(); + } else { + containerDetailsBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Details about the container where the content being inspected is from.
+     * 
+ * + * .google.privacy.dlp.v2.Container container_details = 1; + */ + public Builder clearContainerDetails() { + if (containerDetailsBuilder_ == null) { + containerDetails_ = null; + onChanged(); + } else { + containerDetails_ = null; + containerDetailsBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Details about the container where the content being inspected is from.
+     * 
+ * + * .google.privacy.dlp.v2.Container container_details = 1; + */ + public com.google.privacy.dlp.v2.Container.Builder getContainerDetailsBuilder() { + + onChanged(); + return getContainerDetailsFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Details about the container where the content being inspected is from.
+     * 
+ * + * .google.privacy.dlp.v2.Container container_details = 1; + */ + public com.google.privacy.dlp.v2.ContainerOrBuilder getContainerDetailsOrBuilder() { + if (containerDetailsBuilder_ != null) { + return containerDetailsBuilder_.getMessageOrBuilder(); + } else { + return containerDetails_ == null + ? com.google.privacy.dlp.v2.Container.getDefaultInstance() + : containerDetails_; + } + } + /** + * + * + *
+     * Details about the container where the content being inspected is from.
+     * 
+ * + * .google.privacy.dlp.v2.Container container_details = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.Container, + com.google.privacy.dlp.v2.Container.Builder, + com.google.privacy.dlp.v2.ContainerOrBuilder> + getContainerDetailsFieldBuilder() { + if (containerDetailsBuilder_ == null) { + containerDetailsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.Container, + com.google.privacy.dlp.v2.Container.Builder, + com.google.privacy.dlp.v2.ContainerOrBuilder>( + getContainerDetails(), getParentForChildren(), isClean()); + containerDetails_ = null; + } + return containerDetailsBuilder_; + } + + private long fileOffset_; + /** + * + * + *
+     * Offset in bytes of the line, from the beginning of the file, where the
+     * finding  is located. Populate if the item being scanned is only part of a
+     * bigger item, such as a shard of a file and you want to track the absolute
+     * position of the finding.
+     * 
+ * + * int64 file_offset = 2; + * + * @return The fileOffset. + */ + public long getFileOffset() { + return fileOffset_; + } + /** + * + * + *
+     * Offset in bytes of the line, from the beginning of the file, where the
+     * finding  is located. Populate if the item being scanned is only part of a
+     * bigger item, such as a shard of a file and you want to track the absolute
+     * position of the finding.
+     * 
+ * + * int64 file_offset = 2; + * + * @param value The fileOffset to set. + * @return This builder for chaining. + */ + public Builder setFileOffset(long value) { + + fileOffset_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Offset in bytes of the line, from the beginning of the file, where the
+     * finding  is located. Populate if the item being scanned is only part of a
+     * bigger item, such as a shard of a file and you want to track the absolute
+     * position of the finding.
+     * 
+ * + * int64 file_offset = 2; + * + * @return This builder for chaining. + */ + public Builder clearFileOffset() { + + fileOffset_ = 0L; + onChanged(); + return this; + } + + private long rowOffset_; + /** + * + * + *
+     * Offset of the row for tables. Populate if the row(s) being scanned are
+     * part of a bigger dataset and you want to keep track of their absolute
+     * position.
+     * 
+ * + * int64 row_offset = 3; + * + * @return The rowOffset. + */ + public long getRowOffset() { + return rowOffset_; + } + /** + * + * + *
+     * Offset of the row for tables. Populate if the row(s) being scanned are
+     * part of a bigger dataset and you want to keep track of their absolute
+     * position.
+     * 
+ * + * int64 row_offset = 3; + * + * @param value The rowOffset to set. + * @return This builder for chaining. + */ + public Builder setRowOffset(long value) { + + rowOffset_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Offset of the row for tables. Populate if the row(s) being scanned are
+     * part of a bigger dataset and you want to keep track of their absolute
+     * position.
+     * 
+ * + * int64 row_offset = 3; + * + * @return This builder for chaining. + */ + public Builder clearRowOffset() { + + rowOffset_ = 0L; + onChanged(); + return this; + } + + private com.google.privacy.dlp.v2.TableOptions tableOptions_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.TableOptions, + com.google.privacy.dlp.v2.TableOptions.Builder, + com.google.privacy.dlp.v2.TableOptionsOrBuilder> + tableOptionsBuilder_; + /** + * + * + *
+     * If the container is a table, additional information to make findings
+     * meaningful such as the columns that are primary keys. If not known ahead
+     * of time, can also be set within each inspect hybrid call and the two
+     * will be merged. Note that identifying_fields will only be stored to
+     * BigQuery, and only if the BigQuery action has been included.
+     * 
+ * + * .google.privacy.dlp.v2.TableOptions table_options = 4; + * + * @return Whether the tableOptions field is set. + */ + public boolean hasTableOptions() { + return tableOptionsBuilder_ != null || tableOptions_ != null; + } + /** + * + * + *
+     * If the container is a table, additional information to make findings
+     * meaningful such as the columns that are primary keys. If not known ahead
+     * of time, can also be set within each inspect hybrid call and the two
+     * will be merged. Note that identifying_fields will only be stored to
+     * BigQuery, and only if the BigQuery action has been included.
+     * 
+ * + * .google.privacy.dlp.v2.TableOptions table_options = 4; + * + * @return The tableOptions. + */ + public com.google.privacy.dlp.v2.TableOptions getTableOptions() { + if (tableOptionsBuilder_ == null) { + return tableOptions_ == null + ? com.google.privacy.dlp.v2.TableOptions.getDefaultInstance() + : tableOptions_; + } else { + return tableOptionsBuilder_.getMessage(); + } + } + /** + * + * + *
+     * If the container is a table, additional information to make findings
+     * meaningful such as the columns that are primary keys. If not known ahead
+     * of time, can also be set within each inspect hybrid call and the two
+     * will be merged. Note that identifying_fields will only be stored to
+     * BigQuery, and only if the BigQuery action has been included.
+     * 
+ * + * .google.privacy.dlp.v2.TableOptions table_options = 4; + */ + public Builder setTableOptions(com.google.privacy.dlp.v2.TableOptions value) { + if (tableOptionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + tableOptions_ = value; + onChanged(); + } else { + tableOptionsBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * If the container is a table, additional information to make findings
+     * meaningful such as the columns that are primary keys. If not known ahead
+     * of time, can also be set within each inspect hybrid call and the two
+     * will be merged. Note that identifying_fields will only be stored to
+     * BigQuery, and only if the BigQuery action has been included.
+     * 
+ * + * .google.privacy.dlp.v2.TableOptions table_options = 4; + */ + public Builder setTableOptions(com.google.privacy.dlp.v2.TableOptions.Builder builderForValue) { + if (tableOptionsBuilder_ == null) { + tableOptions_ = builderForValue.build(); + onChanged(); + } else { + tableOptionsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * If the container is a table, additional information to make findings
+     * meaningful such as the columns that are primary keys. If not known ahead
+     * of time, can also be set within each inspect hybrid call and the two
+     * will be merged. Note that identifying_fields will only be stored to
+     * BigQuery, and only if the BigQuery action has been included.
+     * 
+ * + * .google.privacy.dlp.v2.TableOptions table_options = 4; + */ + public Builder mergeTableOptions(com.google.privacy.dlp.v2.TableOptions value) { + if (tableOptionsBuilder_ == null) { + if (tableOptions_ != null) { + tableOptions_ = + com.google.privacy.dlp.v2.TableOptions.newBuilder(tableOptions_) + .mergeFrom(value) + .buildPartial(); + } else { + tableOptions_ = value; + } + onChanged(); + } else { + tableOptionsBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * If the container is a table, additional information to make findings
+     * meaningful such as the columns that are primary keys. If not known ahead
+     * of time, can also be set within each inspect hybrid call and the two
+     * will be merged. Note that identifying_fields will only be stored to
+     * BigQuery, and only if the BigQuery action has been included.
+     * 
+ * + * .google.privacy.dlp.v2.TableOptions table_options = 4; + */ + public Builder clearTableOptions() { + if (tableOptionsBuilder_ == null) { + tableOptions_ = null; + onChanged(); + } else { + tableOptions_ = null; + tableOptionsBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * If the container is a table, additional information to make findings
+     * meaningful such as the columns that are primary keys. If not known ahead
+     * of time, can also be set within each inspect hybrid call and the two
+     * will be merged. Note that identifying_fields will only be stored to
+     * BigQuery, and only if the BigQuery action has been included.
+     * 
+ * + * .google.privacy.dlp.v2.TableOptions table_options = 4; + */ + public com.google.privacy.dlp.v2.TableOptions.Builder getTableOptionsBuilder() { + + onChanged(); + return getTableOptionsFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * If the container is a table, additional information to make findings
+     * meaningful such as the columns that are primary keys. If not known ahead
+     * of time, can also be set within each inspect hybrid call and the two
+     * will be merged. Note that identifying_fields will only be stored to
+     * BigQuery, and only if the BigQuery action has been included.
+     * 
+ * + * .google.privacy.dlp.v2.TableOptions table_options = 4; + */ + public com.google.privacy.dlp.v2.TableOptionsOrBuilder getTableOptionsOrBuilder() { + if (tableOptionsBuilder_ != null) { + return tableOptionsBuilder_.getMessageOrBuilder(); + } else { + return tableOptions_ == null + ? com.google.privacy.dlp.v2.TableOptions.getDefaultInstance() + : tableOptions_; + } + } + /** + * + * + *
+     * If the container is a table, additional information to make findings
+     * meaningful such as the columns that are primary keys. If not known ahead
+     * of time, can also be set within each inspect hybrid call and the two
+     * will be merged. Note that identifying_fields will only be stored to
+     * BigQuery, and only if the BigQuery action has been included.
+     * 
+ * + * .google.privacy.dlp.v2.TableOptions table_options = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.TableOptions, + com.google.privacy.dlp.v2.TableOptions.Builder, + com.google.privacy.dlp.v2.TableOptionsOrBuilder> + getTableOptionsFieldBuilder() { + if (tableOptionsBuilder_ == null) { + tableOptionsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.TableOptions, + com.google.privacy.dlp.v2.TableOptions.Builder, + com.google.privacy.dlp.v2.TableOptionsOrBuilder>( + getTableOptions(), getParentForChildren(), isClean()); + tableOptions_ = null; + } + return tableOptionsBuilder_; + } + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + private com.google.protobuf.MapField + internalGetMutableLabels() { + onChanged(); + ; + if (labels_ == null) { + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + } + if (!labels_.isMutable()) { + labels_ = labels_.copy(); + } + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + /** + * + * + *
+     * Labels to represent user provided metadata about the data being inspected.
+     * If configured by the job, some key values may be required.
+     * The labels associated with `Finding`'s produced by hybrid
+     * inspection.
+     * Label keys must be between 1 and 63 characters long and must conform
+     * to the following regular expression: \[a-z\](\[-a-z0-9\]*\[a-z0-9\])?.
+     * Label values must be between 0 and 63 characters long and must conform
+     * to the regular expression (\[a-z\](\[-a-z0-9\]*\[a-z0-9\])?)?.
+     * No more than 10 labels can be associated with a given finding.
+     * Example: <code>"environment" : "production"</code>
+     * Example: <code>"pipeline" : "etl"</code>
+     * 
+ * + * map<string, string> labels = 5; + */ + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + return internalGetLabels().getMap().containsKey(key); + } + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + /** + * + * + *
+     * Labels to represent user provided metadata about the data being inspected.
+     * If configured by the job, some key values may be required.
+     * The labels associated with `Finding`'s produced by hybrid
+     * inspection.
+     * Label keys must be between 1 and 63 characters long and must conform
+     * to the following regular expression: \[a-z\](\[-a-z0-9\]*\[a-z0-9\])?.
+     * Label values must be between 0 and 63 characters long and must conform
+     * to the regular expression (\[a-z\](\[-a-z0-9\]*\[a-z0-9\])?)?.
+     * No more than 10 labels can be associated with a given finding.
+     * Example: <code>"environment" : "production"</code>
+     * Example: <code>"pipeline" : "etl"</code>
+     * 
+ * + * map<string, string> labels = 5; + */ + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + * + * + *
+     * Labels to represent user provided metadata about the data being inspected.
+     * If configured by the job, some key values may be required.
+     * The labels associated with `Finding`'s produced by hybrid
+     * inspection.
+     * Label keys must be between 1 and 63 characters long and must conform
+     * to the following regular expression: \[a-z\](\[-a-z0-9\]*\[a-z0-9\])?.
+     * Label values must be between 0 and 63 characters long and must conform
+     * to the regular expression (\[a-z\](\[-a-z0-9\]*\[a-z0-9\])?)?.
+     * No more than 10 labels can be associated with a given finding.
+     * Example: <code>"environment" : "production"</code>
+     * Example: <code>"pipeline" : "etl"</code>
+     * 
+ * + * map<string, string> labels = 5; + */ + public java.lang.String getLabelsOrDefault( + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+     * Labels to represent user provided metadata about the data being inspected.
+     * If configured by the job, some key values may be required.
+     * The labels associated with `Finding`'s produced by hybrid
+     * inspection.
+     * Label keys must be between 1 and 63 characters long and must conform
+     * to the following regular expression: \[a-z\](\[-a-z0-9\]*\[a-z0-9\])?.
+     * Label values must be between 0 and 63 characters long and must conform
+     * to the regular expression (\[a-z\](\[-a-z0-9\]*\[a-z0-9\])?)?.
+     * No more than 10 labels can be associated with a given finding.
+     * Example: <code>"environment" : "production"</code>
+     * Example: <code>"pipeline" : "etl"</code>
+     * 
+ * + * map<string, string> labels = 5; + */ + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearLabels() { + internalGetMutableLabels().getMutableMap().clear(); + return this; + } + /** + * + * + *
+     * Labels to represent user provided metadata about the data being inspected.
+     * If configured by the job, some key values may be required.
+     * The labels associated with `Finding`'s produced by hybrid
+     * inspection.
+     * Label keys must be between 1 and 63 characters long and must conform
+     * to the following regular expression: \[a-z\](\[-a-z0-9\]*\[a-z0-9\])?.
+     * Label values must be between 0 and 63 characters long and must conform
+     * to the regular expression (\[a-z\](\[-a-z0-9\]*\[a-z0-9\])?)?.
+     * No more than 10 labels can be associated with a given finding.
+     * Example: <code>"environment" : "production"</code>
+     * Example: <code>"pipeline" : "etl"</code>
+     * 
+ * + * map<string, string> labels = 5; + */ + public Builder removeLabels(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableLabels().getMutableMap().remove(key); + return this; + } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableLabels() { + return internalGetMutableLabels().getMutableMap(); + } + /** + * + * + *
+     * Labels to represent user provided metadata about the data being inspected.
+     * If configured by the job, some key values may be required.
+     * The labels associated with `Finding`'s produced by hybrid
+     * inspection.
+     * Label keys must be between 1 and 63 characters long and must conform
+     * to the following regular expression: \[a-z\](\[-a-z0-9\]*\[a-z0-9\])?.
+     * Label values must be between 0 and 63 characters long and must conform
+     * to the regular expression (\[a-z\](\[-a-z0-9\]*\[a-z0-9\])?)?.
+     * No more than 10 labels can be associated with a given finding.
+     * Example: <code>"environment" : "production"</code>
+     * Example: <code>"pipeline" : "etl"</code>
+     * 
+ * + * map<string, string> labels = 5; + */ + public Builder putLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + if (value == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableLabels().getMutableMap().put(key, value); + return this; + } + /** + * + * + *
+     * Labels to represent user provided metadata about the data being inspected.
+     * If configured by the job, some key values may be required.
+     * The labels associated with `Finding`'s produced by hybrid
+     * inspection.
+     * Label keys must be between 1 and 63 characters long and must conform
+     * to the following regular expression: \[a-z\](\[-a-z0-9\]*\[a-z0-9\])?.
+     * Label values must be between 0 and 63 characters long and must conform
+     * to the regular expression (\[a-z\](\[-a-z0-9\]*\[a-z0-9\])?)?.
+     * No more than 10 labels can be associated with a given finding.
+     * Example: <code>"environment" : "production"</code>
+     * Example: <code>"pipeline" : "etl"</code>
+     * 
+ * + * map<string, string> labels = 5; + */ + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); + 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.HybridFindingDetails) + } + + // @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.HybridFindingDetails) + private static final com.google.privacy.dlp.v2.HybridFindingDetails DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.privacy.dlp.v2.HybridFindingDetails(); + } + + public static com.google.privacy.dlp.v2.HybridFindingDetails getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HybridFindingDetails parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new HybridFindingDetails(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.HybridFindingDetails getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/HybridFindingDetailsOrBuilder.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/HybridFindingDetailsOrBuilder.java new file mode 100644 index 00000000..e3430ff6 --- /dev/null +++ b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/HybridFindingDetailsOrBuilder.java @@ -0,0 +1,242 @@ +/* + * 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 HybridFindingDetailsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.privacy.dlp.v2.HybridFindingDetails) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Details about the container where the content being inspected is from.
+   * 
+ * + * .google.privacy.dlp.v2.Container container_details = 1; + * + * @return Whether the containerDetails field is set. + */ + boolean hasContainerDetails(); + /** + * + * + *
+   * Details about the container where the content being inspected is from.
+   * 
+ * + * .google.privacy.dlp.v2.Container container_details = 1; + * + * @return The containerDetails. + */ + com.google.privacy.dlp.v2.Container getContainerDetails(); + /** + * + * + *
+   * Details about the container where the content being inspected is from.
+   * 
+ * + * .google.privacy.dlp.v2.Container container_details = 1; + */ + com.google.privacy.dlp.v2.ContainerOrBuilder getContainerDetailsOrBuilder(); + + /** + * + * + *
+   * Offset in bytes of the line, from the beginning of the file, where the
+   * finding  is located. Populate if the item being scanned is only part of a
+   * bigger item, such as a shard of a file and you want to track the absolute
+   * position of the finding.
+   * 
+ * + * int64 file_offset = 2; + * + * @return The fileOffset. + */ + long getFileOffset(); + + /** + * + * + *
+   * Offset of the row for tables. Populate if the row(s) being scanned are
+   * part of a bigger dataset and you want to keep track of their absolute
+   * position.
+   * 
+ * + * int64 row_offset = 3; + * + * @return The rowOffset. + */ + long getRowOffset(); + + /** + * + * + *
+   * If the container is a table, additional information to make findings
+   * meaningful such as the columns that are primary keys. If not known ahead
+   * of time, can also be set within each inspect hybrid call and the two
+   * will be merged. Note that identifying_fields will only be stored to
+   * BigQuery, and only if the BigQuery action has been included.
+   * 
+ * + * .google.privacy.dlp.v2.TableOptions table_options = 4; + * + * @return Whether the tableOptions field is set. + */ + boolean hasTableOptions(); + /** + * + * + *
+   * If the container is a table, additional information to make findings
+   * meaningful such as the columns that are primary keys. If not known ahead
+   * of time, can also be set within each inspect hybrid call and the two
+   * will be merged. Note that identifying_fields will only be stored to
+   * BigQuery, and only if the BigQuery action has been included.
+   * 
+ * + * .google.privacy.dlp.v2.TableOptions table_options = 4; + * + * @return The tableOptions. + */ + com.google.privacy.dlp.v2.TableOptions getTableOptions(); + /** + * + * + *
+   * If the container is a table, additional information to make findings
+   * meaningful such as the columns that are primary keys. If not known ahead
+   * of time, can also be set within each inspect hybrid call and the two
+   * will be merged. Note that identifying_fields will only be stored to
+   * BigQuery, and only if the BigQuery action has been included.
+   * 
+ * + * .google.privacy.dlp.v2.TableOptions table_options = 4; + */ + com.google.privacy.dlp.v2.TableOptionsOrBuilder getTableOptionsOrBuilder(); + + /** + * + * + *
+   * Labels to represent user provided metadata about the data being inspected.
+   * If configured by the job, some key values may be required.
+   * The labels associated with `Finding`'s produced by hybrid
+   * inspection.
+   * Label keys must be between 1 and 63 characters long and must conform
+   * to the following regular expression: \[a-z\](\[-a-z0-9\]*\[a-z0-9\])?.
+   * Label values must be between 0 and 63 characters long and must conform
+   * to the regular expression (\[a-z\](\[-a-z0-9\]*\[a-z0-9\])?)?.
+   * No more than 10 labels can be associated with a given finding.
+   * Example: <code>"environment" : "production"</code>
+   * Example: <code>"pipeline" : "etl"</code>
+   * 
+ * + * map<string, string> labels = 5; + */ + int getLabelsCount(); + /** + * + * + *
+   * Labels to represent user provided metadata about the data being inspected.
+   * If configured by the job, some key values may be required.
+   * The labels associated with `Finding`'s produced by hybrid
+   * inspection.
+   * Label keys must be between 1 and 63 characters long and must conform
+   * to the following regular expression: \[a-z\](\[-a-z0-9\]*\[a-z0-9\])?.
+   * Label values must be between 0 and 63 characters long and must conform
+   * to the regular expression (\[a-z\](\[-a-z0-9\]*\[a-z0-9\])?)?.
+   * No more than 10 labels can be associated with a given finding.
+   * Example: <code>"environment" : "production"</code>
+   * Example: <code>"pipeline" : "etl"</code>
+   * 
+ * + * map<string, string> labels = 5; + */ + boolean containsLabels(java.lang.String key); + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getLabels(); + /** + * + * + *
+   * Labels to represent user provided metadata about the data being inspected.
+   * If configured by the job, some key values may be required.
+   * The labels associated with `Finding`'s produced by hybrid
+   * inspection.
+   * Label keys must be between 1 and 63 characters long and must conform
+   * to the following regular expression: \[a-z\](\[-a-z0-9\]*\[a-z0-9\])?.
+   * Label values must be between 0 and 63 characters long and must conform
+   * to the regular expression (\[a-z\](\[-a-z0-9\]*\[a-z0-9\])?)?.
+   * No more than 10 labels can be associated with a given finding.
+   * Example: <code>"environment" : "production"</code>
+   * Example: <code>"pipeline" : "etl"</code>
+   * 
+ * + * map<string, string> labels = 5; + */ + java.util.Map getLabelsMap(); + /** + * + * + *
+   * Labels to represent user provided metadata about the data being inspected.
+   * If configured by the job, some key values may be required.
+   * The labels associated with `Finding`'s produced by hybrid
+   * inspection.
+   * Label keys must be between 1 and 63 characters long and must conform
+   * to the following regular expression: \[a-z\](\[-a-z0-9\]*\[a-z0-9\])?.
+   * Label values must be between 0 and 63 characters long and must conform
+   * to the regular expression (\[a-z\](\[-a-z0-9\]*\[a-z0-9\])?)?.
+   * No more than 10 labels can be associated with a given finding.
+   * Example: <code>"environment" : "production"</code>
+   * Example: <code>"pipeline" : "etl"</code>
+   * 
+ * + * map<string, string> labels = 5; + */ + java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue); + /** + * + * + *
+   * Labels to represent user provided metadata about the data being inspected.
+   * If configured by the job, some key values may be required.
+   * The labels associated with `Finding`'s produced by hybrid
+   * inspection.
+   * Label keys must be between 1 and 63 characters long and must conform
+   * to the following regular expression: \[a-z\](\[-a-z0-9\]*\[a-z0-9\])?.
+   * Label values must be between 0 and 63 characters long and must conform
+   * to the regular expression (\[a-z\](\[-a-z0-9\]*\[a-z0-9\])?)?.
+   * No more than 10 labels can be associated with a given finding.
+   * Example: <code>"environment" : "production"</code>
+   * Example: <code>"pipeline" : "etl"</code>
+   * 
+ * + * map<string, string> labels = 5; + */ + java.lang.String getLabelsOrThrow(java.lang.String key); +} diff --git a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/HybridInspectDlpJobRequest.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/HybridInspectDlpJobRequest.java new file mode 100644 index 00000000..4e64bf66 --- /dev/null +++ b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/HybridInspectDlpJobRequest.java @@ -0,0 +1,930 @@ +/* + * 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; + +/** + * + * + *
+ * Request to search for potentially sensitive info in a custom location.
+ * 
+ * + * Protobuf type {@code google.privacy.dlp.v2.HybridInspectDlpJobRequest} + */ +public final class HybridInspectDlpJobRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2.HybridInspectDlpJobRequest) + HybridInspectDlpJobRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use HybridInspectDlpJobRequest.newBuilder() to construct. + private HybridInspectDlpJobRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private HybridInspectDlpJobRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new HybridInspectDlpJobRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private HybridInspectDlpJobRequest( + 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(); + + name_ = s; + break; + } + case 26: + { + com.google.privacy.dlp.v2.HybridContentItem.Builder subBuilder = null; + if (hybridItem_ != null) { + subBuilder = hybridItem_.toBuilder(); + } + hybridItem_ = + input.readMessage( + com.google.privacy.dlp.v2.HybridContentItem.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(hybridItem_); + hybridItem_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.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_HybridInspectDlpJobRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_HybridInspectDlpJobRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.privacy.dlp.v2.HybridInspectDlpJobRequest.class, + com.google.privacy.dlp.v2.HybridInspectDlpJobRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required. Resource name of the job to execute a hybrid inspect on, for
+   * example `projects/dlp-test-project/dlpJob/53234423`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Resource name of the job to execute a hybrid inspect on, for
+   * example `projects/dlp-test-project/dlpJob/53234423`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int HYBRID_ITEM_FIELD_NUMBER = 3; + private com.google.privacy.dlp.v2.HybridContentItem hybridItem_; + /** + * + * + *
+   * The item to inspect.
+   * 
+ * + * .google.privacy.dlp.v2.HybridContentItem hybrid_item = 3; + * + * @return Whether the hybridItem field is set. + */ + public boolean hasHybridItem() { + return hybridItem_ != null; + } + /** + * + * + *
+   * The item to inspect.
+   * 
+ * + * .google.privacy.dlp.v2.HybridContentItem hybrid_item = 3; + * + * @return The hybridItem. + */ + public com.google.privacy.dlp.v2.HybridContentItem getHybridItem() { + return hybridItem_ == null + ? com.google.privacy.dlp.v2.HybridContentItem.getDefaultInstance() + : hybridItem_; + } + /** + * + * + *
+   * The item to inspect.
+   * 
+ * + * .google.privacy.dlp.v2.HybridContentItem hybrid_item = 3; + */ + public com.google.privacy.dlp.v2.HybridContentItemOrBuilder getHybridItemOrBuilder() { + return getHybridItem(); + } + + 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 (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (hybridItem_ != null) { + output.writeMessage(3, getHybridItem()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (hybridItem_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getHybridItem()); + } + 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.HybridInspectDlpJobRequest)) { + return super.equals(obj); + } + com.google.privacy.dlp.v2.HybridInspectDlpJobRequest other = + (com.google.privacy.dlp.v2.HybridInspectDlpJobRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (hasHybridItem() != other.hasHybridItem()) return false; + if (hasHybridItem()) { + if (!getHybridItem().equals(other.getHybridItem())) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasHybridItem()) { + hash = (37 * hash) + HYBRID_ITEM_FIELD_NUMBER; + hash = (53 * hash) + getHybridItem().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.privacy.dlp.v2.HybridInspectDlpJobRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.privacy.dlp.v2.HybridInspectDlpJobRequest 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.HybridInspectDlpJobRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.privacy.dlp.v2.HybridInspectDlpJobRequest 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.HybridInspectDlpJobRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.privacy.dlp.v2.HybridInspectDlpJobRequest 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.HybridInspectDlpJobRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.privacy.dlp.v2.HybridInspectDlpJobRequest 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.HybridInspectDlpJobRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.privacy.dlp.v2.HybridInspectDlpJobRequest 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.HybridInspectDlpJobRequest 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.HybridInspectDlpJobRequest 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.HybridInspectDlpJobRequest 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; + } + /** + * + * + *
+   * Request to search for potentially sensitive info in a custom location.
+   * 
+ * + * Protobuf type {@code google.privacy.dlp.v2.HybridInspectDlpJobRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.privacy.dlp.v2.HybridInspectDlpJobRequest) + com.google.privacy.dlp.v2.HybridInspectDlpJobRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_HybridInspectDlpJobRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_HybridInspectDlpJobRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.privacy.dlp.v2.HybridInspectDlpJobRequest.class, + com.google.privacy.dlp.v2.HybridInspectDlpJobRequest.Builder.class); + } + + // Construct using com.google.privacy.dlp.v2.HybridInspectDlpJobRequest.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(); + name_ = ""; + + if (hybridItemBuilder_ == null) { + hybridItem_ = null; + } else { + hybridItem_ = null; + hybridItemBuilder_ = 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_HybridInspectDlpJobRequest_descriptor; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.HybridInspectDlpJobRequest getDefaultInstanceForType() { + return com.google.privacy.dlp.v2.HybridInspectDlpJobRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.privacy.dlp.v2.HybridInspectDlpJobRequest build() { + com.google.privacy.dlp.v2.HybridInspectDlpJobRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.HybridInspectDlpJobRequest buildPartial() { + com.google.privacy.dlp.v2.HybridInspectDlpJobRequest result = + new com.google.privacy.dlp.v2.HybridInspectDlpJobRequest(this); + result.name_ = name_; + if (hybridItemBuilder_ == null) { + result.hybridItem_ = hybridItem_; + } else { + result.hybridItem_ = hybridItemBuilder_.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.HybridInspectDlpJobRequest) { + return mergeFrom((com.google.privacy.dlp.v2.HybridInspectDlpJobRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.privacy.dlp.v2.HybridInspectDlpJobRequest other) { + if (other == com.google.privacy.dlp.v2.HybridInspectDlpJobRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.hasHybridItem()) { + mergeHybridItem(other.getHybridItem()); + } + 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.HybridInspectDlpJobRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.privacy.dlp.v2.HybridInspectDlpJobRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. Resource name of the job to execute a hybrid inspect on, for
+     * example `projects/dlp-test-project/dlpJob/53234423`.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Resource name of the job to execute a hybrid inspect on, for
+     * example `projects/dlp-test-project/dlpJob/53234423`.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Resource name of the job to execute a hybrid inspect on, for
+     * example `projects/dlp-test-project/dlpJob/53234423`.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Resource name of the job to execute a hybrid inspect on, for
+     * example `projects/dlp-test-project/dlpJob/53234423`.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Resource name of the job to execute a hybrid inspect on, for
+     * example `projects/dlp-test-project/dlpJob/53234423`.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private com.google.privacy.dlp.v2.HybridContentItem hybridItem_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.HybridContentItem, + com.google.privacy.dlp.v2.HybridContentItem.Builder, + com.google.privacy.dlp.v2.HybridContentItemOrBuilder> + hybridItemBuilder_; + /** + * + * + *
+     * The item to inspect.
+     * 
+ * + * .google.privacy.dlp.v2.HybridContentItem hybrid_item = 3; + * + * @return Whether the hybridItem field is set. + */ + public boolean hasHybridItem() { + return hybridItemBuilder_ != null || hybridItem_ != null; + } + /** + * + * + *
+     * The item to inspect.
+     * 
+ * + * .google.privacy.dlp.v2.HybridContentItem hybrid_item = 3; + * + * @return The hybridItem. + */ + public com.google.privacy.dlp.v2.HybridContentItem getHybridItem() { + if (hybridItemBuilder_ == null) { + return hybridItem_ == null + ? com.google.privacy.dlp.v2.HybridContentItem.getDefaultInstance() + : hybridItem_; + } else { + return hybridItemBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The item to inspect.
+     * 
+ * + * .google.privacy.dlp.v2.HybridContentItem hybrid_item = 3; + */ + public Builder setHybridItem(com.google.privacy.dlp.v2.HybridContentItem value) { + if (hybridItemBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + hybridItem_ = value; + onChanged(); + } else { + hybridItemBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The item to inspect.
+     * 
+ * + * .google.privacy.dlp.v2.HybridContentItem hybrid_item = 3; + */ + public Builder setHybridItem( + com.google.privacy.dlp.v2.HybridContentItem.Builder builderForValue) { + if (hybridItemBuilder_ == null) { + hybridItem_ = builderForValue.build(); + onChanged(); + } else { + hybridItemBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The item to inspect.
+     * 
+ * + * .google.privacy.dlp.v2.HybridContentItem hybrid_item = 3; + */ + public Builder mergeHybridItem(com.google.privacy.dlp.v2.HybridContentItem value) { + if (hybridItemBuilder_ == null) { + if (hybridItem_ != null) { + hybridItem_ = + com.google.privacy.dlp.v2.HybridContentItem.newBuilder(hybridItem_) + .mergeFrom(value) + .buildPartial(); + } else { + hybridItem_ = value; + } + onChanged(); + } else { + hybridItemBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The item to inspect.
+     * 
+ * + * .google.privacy.dlp.v2.HybridContentItem hybrid_item = 3; + */ + public Builder clearHybridItem() { + if (hybridItemBuilder_ == null) { + hybridItem_ = null; + onChanged(); + } else { + hybridItem_ = null; + hybridItemBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The item to inspect.
+     * 
+ * + * .google.privacy.dlp.v2.HybridContentItem hybrid_item = 3; + */ + public com.google.privacy.dlp.v2.HybridContentItem.Builder getHybridItemBuilder() { + + onChanged(); + return getHybridItemFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The item to inspect.
+     * 
+ * + * .google.privacy.dlp.v2.HybridContentItem hybrid_item = 3; + */ + public com.google.privacy.dlp.v2.HybridContentItemOrBuilder getHybridItemOrBuilder() { + if (hybridItemBuilder_ != null) { + return hybridItemBuilder_.getMessageOrBuilder(); + } else { + return hybridItem_ == null + ? com.google.privacy.dlp.v2.HybridContentItem.getDefaultInstance() + : hybridItem_; + } + } + /** + * + * + *
+     * The item to inspect.
+     * 
+ * + * .google.privacy.dlp.v2.HybridContentItem hybrid_item = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.HybridContentItem, + com.google.privacy.dlp.v2.HybridContentItem.Builder, + com.google.privacy.dlp.v2.HybridContentItemOrBuilder> + getHybridItemFieldBuilder() { + if (hybridItemBuilder_ == null) { + hybridItemBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.HybridContentItem, + com.google.privacy.dlp.v2.HybridContentItem.Builder, + com.google.privacy.dlp.v2.HybridContentItemOrBuilder>( + getHybridItem(), getParentForChildren(), isClean()); + hybridItem_ = null; + } + return hybridItemBuilder_; + } + + @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.HybridInspectDlpJobRequest) + } + + // @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.HybridInspectDlpJobRequest) + private static final com.google.privacy.dlp.v2.HybridInspectDlpJobRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.privacy.dlp.v2.HybridInspectDlpJobRequest(); + } + + public static com.google.privacy.dlp.v2.HybridInspectDlpJobRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HybridInspectDlpJobRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new HybridInspectDlpJobRequest(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.HybridInspectDlpJobRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/HybridInspectDlpJobRequestOrBuilder.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/HybridInspectDlpJobRequestOrBuilder.java new file mode 100644 index 00000000..e6f39f79 --- /dev/null +++ b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/HybridInspectDlpJobRequestOrBuilder.java @@ -0,0 +1,91 @@ +/* + * 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 HybridInspectDlpJobRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.privacy.dlp.v2.HybridInspectDlpJobRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Resource name of the job to execute a hybrid inspect on, for
+   * example `projects/dlp-test-project/dlpJob/53234423`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Resource name of the job to execute a hybrid inspect on, for
+   * example `projects/dlp-test-project/dlpJob/53234423`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * The item to inspect.
+   * 
+ * + * .google.privacy.dlp.v2.HybridContentItem hybrid_item = 3; + * + * @return Whether the hybridItem field is set. + */ + boolean hasHybridItem(); + /** + * + * + *
+   * The item to inspect.
+   * 
+ * + * .google.privacy.dlp.v2.HybridContentItem hybrid_item = 3; + * + * @return The hybridItem. + */ + com.google.privacy.dlp.v2.HybridContentItem getHybridItem(); + /** + * + * + *
+   * The item to inspect.
+   * 
+ * + * .google.privacy.dlp.v2.HybridContentItem hybrid_item = 3; + */ + com.google.privacy.dlp.v2.HybridContentItemOrBuilder getHybridItemOrBuilder(); +} diff --git a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/HybridInspectJobTriggerRequest.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/HybridInspectJobTriggerRequest.java new file mode 100644 index 00000000..6c1ea46d --- /dev/null +++ b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/HybridInspectJobTriggerRequest.java @@ -0,0 +1,932 @@ +/* + * 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; + +/** + * + * + *
+ * Request to search for potentially sensitive info in a custom location.
+ * 
+ * + * Protobuf type {@code google.privacy.dlp.v2.HybridInspectJobTriggerRequest} + */ +public final class HybridInspectJobTriggerRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2.HybridInspectJobTriggerRequest) + HybridInspectJobTriggerRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use HybridInspectJobTriggerRequest.newBuilder() to construct. + private HybridInspectJobTriggerRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private HybridInspectJobTriggerRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new HybridInspectJobTriggerRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private HybridInspectJobTriggerRequest( + 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(); + + name_ = s; + break; + } + case 26: + { + com.google.privacy.dlp.v2.HybridContentItem.Builder subBuilder = null; + if (hybridItem_ != null) { + subBuilder = hybridItem_.toBuilder(); + } + hybridItem_ = + input.readMessage( + com.google.privacy.dlp.v2.HybridContentItem.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(hybridItem_); + hybridItem_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.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_HybridInspectJobTriggerRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_HybridInspectJobTriggerRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.privacy.dlp.v2.HybridInspectJobTriggerRequest.class, + com.google.privacy.dlp.v2.HybridInspectJobTriggerRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required. Resource name of the trigger to execute a hybrid inspect on, for
+   * example `projects/dlp-test-project/jobTriggers/53234423`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Resource name of the trigger to execute a hybrid inspect on, for
+   * example `projects/dlp-test-project/jobTriggers/53234423`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int HYBRID_ITEM_FIELD_NUMBER = 3; + private com.google.privacy.dlp.v2.HybridContentItem hybridItem_; + /** + * + * + *
+   * The item to inspect.
+   * 
+ * + * .google.privacy.dlp.v2.HybridContentItem hybrid_item = 3; + * + * @return Whether the hybridItem field is set. + */ + public boolean hasHybridItem() { + return hybridItem_ != null; + } + /** + * + * + *
+   * The item to inspect.
+   * 
+ * + * .google.privacy.dlp.v2.HybridContentItem hybrid_item = 3; + * + * @return The hybridItem. + */ + public com.google.privacy.dlp.v2.HybridContentItem getHybridItem() { + return hybridItem_ == null + ? com.google.privacy.dlp.v2.HybridContentItem.getDefaultInstance() + : hybridItem_; + } + /** + * + * + *
+   * The item to inspect.
+   * 
+ * + * .google.privacy.dlp.v2.HybridContentItem hybrid_item = 3; + */ + public com.google.privacy.dlp.v2.HybridContentItemOrBuilder getHybridItemOrBuilder() { + return getHybridItem(); + } + + 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 (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (hybridItem_ != null) { + output.writeMessage(3, getHybridItem()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (hybridItem_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getHybridItem()); + } + 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.HybridInspectJobTriggerRequest)) { + return super.equals(obj); + } + com.google.privacy.dlp.v2.HybridInspectJobTriggerRequest other = + (com.google.privacy.dlp.v2.HybridInspectJobTriggerRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (hasHybridItem() != other.hasHybridItem()) return false; + if (hasHybridItem()) { + if (!getHybridItem().equals(other.getHybridItem())) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasHybridItem()) { + hash = (37 * hash) + HYBRID_ITEM_FIELD_NUMBER; + hash = (53 * hash) + getHybridItem().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.privacy.dlp.v2.HybridInspectJobTriggerRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.privacy.dlp.v2.HybridInspectJobTriggerRequest 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.HybridInspectJobTriggerRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.privacy.dlp.v2.HybridInspectJobTriggerRequest 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.HybridInspectJobTriggerRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.privacy.dlp.v2.HybridInspectJobTriggerRequest 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.HybridInspectJobTriggerRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.privacy.dlp.v2.HybridInspectJobTriggerRequest 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.HybridInspectJobTriggerRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.privacy.dlp.v2.HybridInspectJobTriggerRequest 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.HybridInspectJobTriggerRequest 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.HybridInspectJobTriggerRequest 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.HybridInspectJobTriggerRequest 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; + } + /** + * + * + *
+   * Request to search for potentially sensitive info in a custom location.
+   * 
+ * + * Protobuf type {@code google.privacy.dlp.v2.HybridInspectJobTriggerRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.privacy.dlp.v2.HybridInspectJobTriggerRequest) + com.google.privacy.dlp.v2.HybridInspectJobTriggerRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_HybridInspectJobTriggerRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_HybridInspectJobTriggerRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.privacy.dlp.v2.HybridInspectJobTriggerRequest.class, + com.google.privacy.dlp.v2.HybridInspectJobTriggerRequest.Builder.class); + } + + // Construct using com.google.privacy.dlp.v2.HybridInspectJobTriggerRequest.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(); + name_ = ""; + + if (hybridItemBuilder_ == null) { + hybridItem_ = null; + } else { + hybridItem_ = null; + hybridItemBuilder_ = 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_HybridInspectJobTriggerRequest_descriptor; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.HybridInspectJobTriggerRequest getDefaultInstanceForType() { + return com.google.privacy.dlp.v2.HybridInspectJobTriggerRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.privacy.dlp.v2.HybridInspectJobTriggerRequest build() { + com.google.privacy.dlp.v2.HybridInspectJobTriggerRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.HybridInspectJobTriggerRequest buildPartial() { + com.google.privacy.dlp.v2.HybridInspectJobTriggerRequest result = + new com.google.privacy.dlp.v2.HybridInspectJobTriggerRequest(this); + result.name_ = name_; + if (hybridItemBuilder_ == null) { + result.hybridItem_ = hybridItem_; + } else { + result.hybridItem_ = hybridItemBuilder_.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.HybridInspectJobTriggerRequest) { + return mergeFrom((com.google.privacy.dlp.v2.HybridInspectJobTriggerRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.privacy.dlp.v2.HybridInspectJobTriggerRequest other) { + if (other == com.google.privacy.dlp.v2.HybridInspectJobTriggerRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.hasHybridItem()) { + mergeHybridItem(other.getHybridItem()); + } + 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.HybridInspectJobTriggerRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.privacy.dlp.v2.HybridInspectJobTriggerRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. Resource name of the trigger to execute a hybrid inspect on, for
+     * example `projects/dlp-test-project/jobTriggers/53234423`.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Resource name of the trigger to execute a hybrid inspect on, for
+     * example `projects/dlp-test-project/jobTriggers/53234423`.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Resource name of the trigger to execute a hybrid inspect on, for
+     * example `projects/dlp-test-project/jobTriggers/53234423`.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Resource name of the trigger to execute a hybrid inspect on, for
+     * example `projects/dlp-test-project/jobTriggers/53234423`.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Resource name of the trigger to execute a hybrid inspect on, for
+     * example `projects/dlp-test-project/jobTriggers/53234423`.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private com.google.privacy.dlp.v2.HybridContentItem hybridItem_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.HybridContentItem, + com.google.privacy.dlp.v2.HybridContentItem.Builder, + com.google.privacy.dlp.v2.HybridContentItemOrBuilder> + hybridItemBuilder_; + /** + * + * + *
+     * The item to inspect.
+     * 
+ * + * .google.privacy.dlp.v2.HybridContentItem hybrid_item = 3; + * + * @return Whether the hybridItem field is set. + */ + public boolean hasHybridItem() { + return hybridItemBuilder_ != null || hybridItem_ != null; + } + /** + * + * + *
+     * The item to inspect.
+     * 
+ * + * .google.privacy.dlp.v2.HybridContentItem hybrid_item = 3; + * + * @return The hybridItem. + */ + public com.google.privacy.dlp.v2.HybridContentItem getHybridItem() { + if (hybridItemBuilder_ == null) { + return hybridItem_ == null + ? com.google.privacy.dlp.v2.HybridContentItem.getDefaultInstance() + : hybridItem_; + } else { + return hybridItemBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The item to inspect.
+     * 
+ * + * .google.privacy.dlp.v2.HybridContentItem hybrid_item = 3; + */ + public Builder setHybridItem(com.google.privacy.dlp.v2.HybridContentItem value) { + if (hybridItemBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + hybridItem_ = value; + onChanged(); + } else { + hybridItemBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The item to inspect.
+     * 
+ * + * .google.privacy.dlp.v2.HybridContentItem hybrid_item = 3; + */ + public Builder setHybridItem( + com.google.privacy.dlp.v2.HybridContentItem.Builder builderForValue) { + if (hybridItemBuilder_ == null) { + hybridItem_ = builderForValue.build(); + onChanged(); + } else { + hybridItemBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The item to inspect.
+     * 
+ * + * .google.privacy.dlp.v2.HybridContentItem hybrid_item = 3; + */ + public Builder mergeHybridItem(com.google.privacy.dlp.v2.HybridContentItem value) { + if (hybridItemBuilder_ == null) { + if (hybridItem_ != null) { + hybridItem_ = + com.google.privacy.dlp.v2.HybridContentItem.newBuilder(hybridItem_) + .mergeFrom(value) + .buildPartial(); + } else { + hybridItem_ = value; + } + onChanged(); + } else { + hybridItemBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The item to inspect.
+     * 
+ * + * .google.privacy.dlp.v2.HybridContentItem hybrid_item = 3; + */ + public Builder clearHybridItem() { + if (hybridItemBuilder_ == null) { + hybridItem_ = null; + onChanged(); + } else { + hybridItem_ = null; + hybridItemBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The item to inspect.
+     * 
+ * + * .google.privacy.dlp.v2.HybridContentItem hybrid_item = 3; + */ + public com.google.privacy.dlp.v2.HybridContentItem.Builder getHybridItemBuilder() { + + onChanged(); + return getHybridItemFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The item to inspect.
+     * 
+ * + * .google.privacy.dlp.v2.HybridContentItem hybrid_item = 3; + */ + public com.google.privacy.dlp.v2.HybridContentItemOrBuilder getHybridItemOrBuilder() { + if (hybridItemBuilder_ != null) { + return hybridItemBuilder_.getMessageOrBuilder(); + } else { + return hybridItem_ == null + ? com.google.privacy.dlp.v2.HybridContentItem.getDefaultInstance() + : hybridItem_; + } + } + /** + * + * + *
+     * The item to inspect.
+     * 
+ * + * .google.privacy.dlp.v2.HybridContentItem hybrid_item = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.HybridContentItem, + com.google.privacy.dlp.v2.HybridContentItem.Builder, + com.google.privacy.dlp.v2.HybridContentItemOrBuilder> + getHybridItemFieldBuilder() { + if (hybridItemBuilder_ == null) { + hybridItemBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.HybridContentItem, + com.google.privacy.dlp.v2.HybridContentItem.Builder, + com.google.privacy.dlp.v2.HybridContentItemOrBuilder>( + getHybridItem(), getParentForChildren(), isClean()); + hybridItem_ = null; + } + return hybridItemBuilder_; + } + + @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.HybridInspectJobTriggerRequest) + } + + // @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.HybridInspectJobTriggerRequest) + private static final com.google.privacy.dlp.v2.HybridInspectJobTriggerRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.privacy.dlp.v2.HybridInspectJobTriggerRequest(); + } + + public static com.google.privacy.dlp.v2.HybridInspectJobTriggerRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HybridInspectJobTriggerRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new HybridInspectJobTriggerRequest(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.HybridInspectJobTriggerRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/HybridInspectJobTriggerRequestOrBuilder.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/HybridInspectJobTriggerRequestOrBuilder.java new file mode 100644 index 00000000..94363c8a --- /dev/null +++ b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/HybridInspectJobTriggerRequestOrBuilder.java @@ -0,0 +1,91 @@ +/* + * 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 HybridInspectJobTriggerRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.privacy.dlp.v2.HybridInspectJobTriggerRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Resource name of the trigger to execute a hybrid inspect on, for
+   * example `projects/dlp-test-project/jobTriggers/53234423`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Resource name of the trigger to execute a hybrid inspect on, for
+   * example `projects/dlp-test-project/jobTriggers/53234423`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * The item to inspect.
+   * 
+ * + * .google.privacy.dlp.v2.HybridContentItem hybrid_item = 3; + * + * @return Whether the hybridItem field is set. + */ + boolean hasHybridItem(); + /** + * + * + *
+   * The item to inspect.
+   * 
+ * + * .google.privacy.dlp.v2.HybridContentItem hybrid_item = 3; + * + * @return The hybridItem. + */ + com.google.privacy.dlp.v2.HybridContentItem getHybridItem(); + /** + * + * + *
+   * The item to inspect.
+   * 
+ * + * .google.privacy.dlp.v2.HybridContentItem hybrid_item = 3; + */ + com.google.privacy.dlp.v2.HybridContentItemOrBuilder getHybridItemOrBuilder(); +} diff --git a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/HybridInspectResponse.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/HybridInspectResponse.java new file mode 100644 index 00000000..0bfc14fb --- /dev/null +++ b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/HybridInspectResponse.java @@ -0,0 +1,455 @@ +/* + * 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; + +/** + * + * + *
+ * Quota exceeded errors will be thrown once quota has been met.
+ * 
+ * + * Protobuf type {@code google.privacy.dlp.v2.HybridInspectResponse} + */ +public final class HybridInspectResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2.HybridInspectResponse) + HybridInspectResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use HybridInspectResponse.newBuilder() to construct. + private HybridInspectResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private HybridInspectResponse() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new HybridInspectResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private HybridInspectResponse( + 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 (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_HybridInspectResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_HybridInspectResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.privacy.dlp.v2.HybridInspectResponse.class, + com.google.privacy.dlp.v2.HybridInspectResponse.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.HybridInspectResponse)) { + return super.equals(obj); + } + com.google.privacy.dlp.v2.HybridInspectResponse other = + (com.google.privacy.dlp.v2.HybridInspectResponse) 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.HybridInspectResponse parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.privacy.dlp.v2.HybridInspectResponse 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.HybridInspectResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.privacy.dlp.v2.HybridInspectResponse 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.HybridInspectResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.privacy.dlp.v2.HybridInspectResponse 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.HybridInspectResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.privacy.dlp.v2.HybridInspectResponse 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.HybridInspectResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.privacy.dlp.v2.HybridInspectResponse 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.HybridInspectResponse 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.HybridInspectResponse 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.HybridInspectResponse 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; + } + /** + * + * + *
+   * Quota exceeded errors will be thrown once quota has been met.
+   * 
+ * + * Protobuf type {@code google.privacy.dlp.v2.HybridInspectResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.privacy.dlp.v2.HybridInspectResponse) + com.google.privacy.dlp.v2.HybridInspectResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_HybridInspectResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_HybridInspectResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.privacy.dlp.v2.HybridInspectResponse.class, + com.google.privacy.dlp.v2.HybridInspectResponse.Builder.class); + } + + // Construct using com.google.privacy.dlp.v2.HybridInspectResponse.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_HybridInspectResponse_descriptor; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.HybridInspectResponse getDefaultInstanceForType() { + return com.google.privacy.dlp.v2.HybridInspectResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.privacy.dlp.v2.HybridInspectResponse build() { + com.google.privacy.dlp.v2.HybridInspectResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.HybridInspectResponse buildPartial() { + com.google.privacy.dlp.v2.HybridInspectResponse result = + new com.google.privacy.dlp.v2.HybridInspectResponse(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.HybridInspectResponse) { + return mergeFrom((com.google.privacy.dlp.v2.HybridInspectResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.privacy.dlp.v2.HybridInspectResponse other) { + if (other == com.google.privacy.dlp.v2.HybridInspectResponse.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.HybridInspectResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.privacy.dlp.v2.HybridInspectResponse) 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.HybridInspectResponse) + } + + // @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.HybridInspectResponse) + private static final com.google.privacy.dlp.v2.HybridInspectResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.privacy.dlp.v2.HybridInspectResponse(); + } + + public static com.google.privacy.dlp.v2.HybridInspectResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HybridInspectResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new HybridInspectResponse(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.HybridInspectResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/HybridInspectResponseOrBuilder.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/HybridInspectResponseOrBuilder.java new file mode 100644 index 00000000..22d236c9 --- /dev/null +++ b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/HybridInspectResponseOrBuilder.java @@ -0,0 +1,24 @@ +/* + * 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 HybridInspectResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.privacy.dlp.v2.HybridInspectResponse) + com.google.protobuf.MessageOrBuilder {} diff --git a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/HybridInspectStatistics.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/HybridInspectStatistics.java new file mode 100644 index 00000000..ed8ecde7 --- /dev/null +++ b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/HybridInspectStatistics.java @@ -0,0 +1,740 @@ +/* + * 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; + +/** + * + * + *
+ * Statistics related to processing hybrid inspect requests.s
+ * 
+ * + * Protobuf type {@code google.privacy.dlp.v2.HybridInspectStatistics} + */ +public final class HybridInspectStatistics extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2.HybridInspectStatistics) + HybridInspectStatisticsOrBuilder { + private static final long serialVersionUID = 0L; + // Use HybridInspectStatistics.newBuilder() to construct. + private HybridInspectStatistics(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private HybridInspectStatistics() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new HybridInspectStatistics(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private HybridInspectStatistics( + 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: + { + processedCount_ = input.readInt64(); + break; + } + case 16: + { + abortedCount_ = input.readInt64(); + break; + } + case 24: + { + pendingCount_ = input.readInt64(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.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_HybridInspectStatistics_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_HybridInspectStatistics_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.privacy.dlp.v2.HybridInspectStatistics.class, + com.google.privacy.dlp.v2.HybridInspectStatistics.Builder.class); + } + + public static final int PROCESSED_COUNT_FIELD_NUMBER = 1; + private long processedCount_; + /** + * + * + *
+   * The number of hybrid inspection requests processed within this job.
+   * 
+ * + * int64 processed_count = 1; + * + * @return The processedCount. + */ + public long getProcessedCount() { + return processedCount_; + } + + public static final int ABORTED_COUNT_FIELD_NUMBER = 2; + private long abortedCount_; + /** + * + * + *
+   * The number of hybrid inspection requests aborted because the job ran
+   * out of quota or was ended before they could be processed.
+   * 
+ * + * int64 aborted_count = 2; + * + * @return The abortedCount. + */ + public long getAbortedCount() { + return abortedCount_; + } + + public static final int PENDING_COUNT_FIELD_NUMBER = 3; + private long pendingCount_; + /** + * + * + *
+   * The number of hybrid requests currently being processed. Only populated
+   * when called via method `getDlpJob`.
+   * A burst of traffic may cause hybrid inspect requests to be enqueued.
+   * Processing will take place as quickly as possible, but resource limitations
+   * may impact how long a request is enqueued for.
+   * 
+ * + * int64 pending_count = 3; + * + * @return The pendingCount. + */ + public long getPendingCount() { + return pendingCount_; + } + + 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 (processedCount_ != 0L) { + output.writeInt64(1, processedCount_); + } + if (abortedCount_ != 0L) { + output.writeInt64(2, abortedCount_); + } + if (pendingCount_ != 0L) { + output.writeInt64(3, pendingCount_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (processedCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, processedCount_); + } + if (abortedCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, abortedCount_); + } + if (pendingCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, pendingCount_); + } + 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.HybridInspectStatistics)) { + return super.equals(obj); + } + com.google.privacy.dlp.v2.HybridInspectStatistics other = + (com.google.privacy.dlp.v2.HybridInspectStatistics) obj; + + if (getProcessedCount() != other.getProcessedCount()) return false; + if (getAbortedCount() != other.getAbortedCount()) return false; + if (getPendingCount() != other.getPendingCount()) 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) + PROCESSED_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getProcessedCount()); + hash = (37 * hash) + ABORTED_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getAbortedCount()); + hash = (37 * hash) + PENDING_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getPendingCount()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.privacy.dlp.v2.HybridInspectStatistics parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.privacy.dlp.v2.HybridInspectStatistics 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.HybridInspectStatistics parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.privacy.dlp.v2.HybridInspectStatistics 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.HybridInspectStatistics parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.privacy.dlp.v2.HybridInspectStatistics 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.HybridInspectStatistics parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.privacy.dlp.v2.HybridInspectStatistics 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.HybridInspectStatistics parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.privacy.dlp.v2.HybridInspectStatistics 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.HybridInspectStatistics 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.HybridInspectStatistics 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.HybridInspectStatistics 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; + } + /** + * + * + *
+   * Statistics related to processing hybrid inspect requests.s
+   * 
+ * + * Protobuf type {@code google.privacy.dlp.v2.HybridInspectStatistics} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.privacy.dlp.v2.HybridInspectStatistics) + com.google.privacy.dlp.v2.HybridInspectStatisticsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_HybridInspectStatistics_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_HybridInspectStatistics_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.privacy.dlp.v2.HybridInspectStatistics.class, + com.google.privacy.dlp.v2.HybridInspectStatistics.Builder.class); + } + + // Construct using com.google.privacy.dlp.v2.HybridInspectStatistics.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(); + processedCount_ = 0L; + + abortedCount_ = 0L; + + pendingCount_ = 0L; + + 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_HybridInspectStatistics_descriptor; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.HybridInspectStatistics getDefaultInstanceForType() { + return com.google.privacy.dlp.v2.HybridInspectStatistics.getDefaultInstance(); + } + + @java.lang.Override + public com.google.privacy.dlp.v2.HybridInspectStatistics build() { + com.google.privacy.dlp.v2.HybridInspectStatistics result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.HybridInspectStatistics buildPartial() { + com.google.privacy.dlp.v2.HybridInspectStatistics result = + new com.google.privacy.dlp.v2.HybridInspectStatistics(this); + result.processedCount_ = processedCount_; + result.abortedCount_ = abortedCount_; + result.pendingCount_ = pendingCount_; + 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.HybridInspectStatistics) { + return mergeFrom((com.google.privacy.dlp.v2.HybridInspectStatistics) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.privacy.dlp.v2.HybridInspectStatistics other) { + if (other == com.google.privacy.dlp.v2.HybridInspectStatistics.getDefaultInstance()) + return this; + if (other.getProcessedCount() != 0L) { + setProcessedCount(other.getProcessedCount()); + } + if (other.getAbortedCount() != 0L) { + setAbortedCount(other.getAbortedCount()); + } + if (other.getPendingCount() != 0L) { + setPendingCount(other.getPendingCount()); + } + 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.HybridInspectStatistics parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.privacy.dlp.v2.HybridInspectStatistics) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private long processedCount_; + /** + * + * + *
+     * The number of hybrid inspection requests processed within this job.
+     * 
+ * + * int64 processed_count = 1; + * + * @return The processedCount. + */ + public long getProcessedCount() { + return processedCount_; + } + /** + * + * + *
+     * The number of hybrid inspection requests processed within this job.
+     * 
+ * + * int64 processed_count = 1; + * + * @param value The processedCount to set. + * @return This builder for chaining. + */ + public Builder setProcessedCount(long value) { + + processedCount_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The number of hybrid inspection requests processed within this job.
+     * 
+ * + * int64 processed_count = 1; + * + * @return This builder for chaining. + */ + public Builder clearProcessedCount() { + + processedCount_ = 0L; + onChanged(); + return this; + } + + private long abortedCount_; + /** + * + * + *
+     * The number of hybrid inspection requests aborted because the job ran
+     * out of quota or was ended before they could be processed.
+     * 
+ * + * int64 aborted_count = 2; + * + * @return The abortedCount. + */ + public long getAbortedCount() { + return abortedCount_; + } + /** + * + * + *
+     * The number of hybrid inspection requests aborted because the job ran
+     * out of quota or was ended before they could be processed.
+     * 
+ * + * int64 aborted_count = 2; + * + * @param value The abortedCount to set. + * @return This builder for chaining. + */ + public Builder setAbortedCount(long value) { + + abortedCount_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The number of hybrid inspection requests aborted because the job ran
+     * out of quota or was ended before they could be processed.
+     * 
+ * + * int64 aborted_count = 2; + * + * @return This builder for chaining. + */ + public Builder clearAbortedCount() { + + abortedCount_ = 0L; + onChanged(); + return this; + } + + private long pendingCount_; + /** + * + * + *
+     * The number of hybrid requests currently being processed. Only populated
+     * when called via method `getDlpJob`.
+     * A burst of traffic may cause hybrid inspect requests to be enqueued.
+     * Processing will take place as quickly as possible, but resource limitations
+     * may impact how long a request is enqueued for.
+     * 
+ * + * int64 pending_count = 3; + * + * @return The pendingCount. + */ + public long getPendingCount() { + return pendingCount_; + } + /** + * + * + *
+     * The number of hybrid requests currently being processed. Only populated
+     * when called via method `getDlpJob`.
+     * A burst of traffic may cause hybrid inspect requests to be enqueued.
+     * Processing will take place as quickly as possible, but resource limitations
+     * may impact how long a request is enqueued for.
+     * 
+ * + * int64 pending_count = 3; + * + * @param value The pendingCount to set. + * @return This builder for chaining. + */ + public Builder setPendingCount(long value) { + + pendingCount_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The number of hybrid requests currently being processed. Only populated
+     * when called via method `getDlpJob`.
+     * A burst of traffic may cause hybrid inspect requests to be enqueued.
+     * Processing will take place as quickly as possible, but resource limitations
+     * may impact how long a request is enqueued for.
+     * 
+ * + * int64 pending_count = 3; + * + * @return This builder for chaining. + */ + public Builder clearPendingCount() { + + pendingCount_ = 0L; + 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.HybridInspectStatistics) + } + + // @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.HybridInspectStatistics) + private static final com.google.privacy.dlp.v2.HybridInspectStatistics DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.privacy.dlp.v2.HybridInspectStatistics(); + } + + public static com.google.privacy.dlp.v2.HybridInspectStatistics getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HybridInspectStatistics parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new HybridInspectStatistics(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.HybridInspectStatistics getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/HybridInspectStatisticsOrBuilder.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/HybridInspectStatisticsOrBuilder.java new file mode 100644 index 00000000..e092c04d --- /dev/null +++ b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/HybridInspectStatisticsOrBuilder.java @@ -0,0 +1,69 @@ +/* + * 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 HybridInspectStatisticsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.privacy.dlp.v2.HybridInspectStatistics) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The number of hybrid inspection requests processed within this job.
+   * 
+ * + * int64 processed_count = 1; + * + * @return The processedCount. + */ + long getProcessedCount(); + + /** + * + * + *
+   * The number of hybrid inspection requests aborted because the job ran
+   * out of quota or was ended before they could be processed.
+   * 
+ * + * int64 aborted_count = 2; + * + * @return The abortedCount. + */ + long getAbortedCount(); + + /** + * + * + *
+   * The number of hybrid requests currently being processed. Only populated
+   * when called via method `getDlpJob`.
+   * A burst of traffic may cause hybrid inspect requests to be enqueued.
+   * Processing will take place as quickly as possible, but resource limitations
+   * may impact how long a request is enqueued for.
+   * 
+ * + * int64 pending_count = 3; + * + * @return The pendingCount. + */ + long getPendingCount(); +} diff --git a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/HybridOptions.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/HybridOptions.java new file mode 100644 index 00000000..843a4b39 --- /dev/null +++ b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/HybridOptions.java @@ -0,0 +1,1661 @@ +/* + * 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/storage.proto + +package com.google.privacy.dlp.v2; + +/** + * + * + *
+ * Configuration to control jobs where the content being inspected is outside
+ * of Google Cloud Platform.
+ * 
+ * + * Protobuf type {@code google.privacy.dlp.v2.HybridOptions} + */ +public final class HybridOptions extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2.HybridOptions) + HybridOptionsOrBuilder { + private static final long serialVersionUID = 0L; + // Use HybridOptions.newBuilder() to construct. + private HybridOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private HybridOptions() { + description_ = ""; + requiredFindingLabelKeys_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new HybridOptions(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private HybridOptions( + 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(); + + description_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + requiredFindingLabelKeys_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + requiredFindingLabelKeys_.add(s); + break; + } + case 26: + { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + labels_ = + com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000002; + } + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + labels_.getMutableMap().put(labels__.getKey(), labels__.getValue()); + break; + } + case 34: + { + com.google.privacy.dlp.v2.TableOptions.Builder subBuilder = null; + if (tableOptions_ != null) { + subBuilder = tableOptions_.toBuilder(); + } + tableOptions_ = + input.readMessage( + com.google.privacy.dlp.v2.TableOptions.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(tableOptions_); + tableOptions_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + requiredFindingLabelKeys_ = requiredFindingLabelKeys_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.privacy.dlp.v2.DlpStorage + .internal_static_google_privacy_dlp_v2_HybridOptions_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 3: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.privacy.dlp.v2.DlpStorage + .internal_static_google_privacy_dlp_v2_HybridOptions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.privacy.dlp.v2.HybridOptions.class, + com.google.privacy.dlp.v2.HybridOptions.Builder.class); + } + + public static final int DESCRIPTION_FIELD_NUMBER = 1; + private volatile java.lang.Object description_; + /** + * + * + *
+   * A short description of where the data is coming from. Will be stored once
+   * in the job. 256 max length.
+   * 
+ * + * string description = 1; + * + * @return The description. + */ + 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 short description of where the data is coming from. Will be stored once
+   * in the job. 256 max length.
+   * 
+ * + * string description = 1; + * + * @return The bytes for description. + */ + 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 REQUIRED_FINDING_LABEL_KEYS_FIELD_NUMBER = 2; + private com.google.protobuf.LazyStringList requiredFindingLabelKeys_; + /** + * + * + *
+   * These are labels that each inspection request must include within their
+   * 'finding_labels' map. Request may contain others, but any missing one of
+   * these will be rejected.
+   * Label keys must be between 1 and 63 characters long and must conform
+   * to the following regular expression: \[a-z\](\[-a-z0-9\]*\[a-z0-9\])?.
+   * No more than 10 keys can be required.
+   * 
+ * + * repeated string required_finding_label_keys = 2; + * + * @return A list containing the requiredFindingLabelKeys. + */ + public com.google.protobuf.ProtocolStringList getRequiredFindingLabelKeysList() { + return requiredFindingLabelKeys_; + } + /** + * + * + *
+   * These are labels that each inspection request must include within their
+   * 'finding_labels' map. Request may contain others, but any missing one of
+   * these will be rejected.
+   * Label keys must be between 1 and 63 characters long and must conform
+   * to the following regular expression: \[a-z\](\[-a-z0-9\]*\[a-z0-9\])?.
+   * No more than 10 keys can be required.
+   * 
+ * + * repeated string required_finding_label_keys = 2; + * + * @return The count of requiredFindingLabelKeys. + */ + public int getRequiredFindingLabelKeysCount() { + return requiredFindingLabelKeys_.size(); + } + /** + * + * + *
+   * These are labels that each inspection request must include within their
+   * 'finding_labels' map. Request may contain others, but any missing one of
+   * these will be rejected.
+   * Label keys must be between 1 and 63 characters long and must conform
+   * to the following regular expression: \[a-z\](\[-a-z0-9\]*\[a-z0-9\])?.
+   * No more than 10 keys can be required.
+   * 
+ * + * repeated string required_finding_label_keys = 2; + * + * @param index The index of the element to return. + * @return The requiredFindingLabelKeys at the given index. + */ + public java.lang.String getRequiredFindingLabelKeys(int index) { + return requiredFindingLabelKeys_.get(index); + } + /** + * + * + *
+   * These are labels that each inspection request must include within their
+   * 'finding_labels' map. Request may contain others, but any missing one of
+   * these will be rejected.
+   * Label keys must be between 1 and 63 characters long and must conform
+   * to the following regular expression: \[a-z\](\[-a-z0-9\]*\[a-z0-9\])?.
+   * No more than 10 keys can be required.
+   * 
+ * + * repeated string required_finding_label_keys = 2; + * + * @param index The index of the value to return. + * @return The bytes of the requiredFindingLabelKeys at the given index. + */ + public com.google.protobuf.ByteString getRequiredFindingLabelKeysBytes(int index) { + return requiredFindingLabelKeys_.getByteString(index); + } + + public static final int LABELS_FIELD_NUMBER = 3; + + private static final class LabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.privacy.dlp.v2.DlpStorage + .internal_static_google_privacy_dlp_v2_HybridOptions_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + /** + * + * + *
+   * To organize findings, these labels will be added to each finding.
+   * Label keys must be between 1 and 63 characters long and must conform
+   * to the following regular expression: \[a-z\](\[-a-z0-9\]*\[a-z0-9\])?.
+   * Label values must be between 0 and 63 characters long and must conform
+   * to the regular expression (\[a-z\](\[-a-z0-9\]*\[a-z0-9\])?)?.
+   * No more than 10 labels can be associated with a given finding.
+   * Example: <code>"environment" : "production"</code>
+   * Example: <code>"pipeline" : "etl"</code>
+   * 
+ * + * map<string, string> labels = 3; + */ + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + return internalGetLabels().getMap().containsKey(key); + } + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + /** + * + * + *
+   * To organize findings, these labels will be added to each finding.
+   * Label keys must be between 1 and 63 characters long and must conform
+   * to the following regular expression: \[a-z\](\[-a-z0-9\]*\[a-z0-9\])?.
+   * Label values must be between 0 and 63 characters long and must conform
+   * to the regular expression (\[a-z\](\[-a-z0-9\]*\[a-z0-9\])?)?.
+   * No more than 10 labels can be associated with a given finding.
+   * Example: <code>"environment" : "production"</code>
+   * Example: <code>"pipeline" : "etl"</code>
+   * 
+ * + * map<string, string> labels = 3; + */ + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + * + * + *
+   * To organize findings, these labels will be added to each finding.
+   * Label keys must be between 1 and 63 characters long and must conform
+   * to the following regular expression: \[a-z\](\[-a-z0-9\]*\[a-z0-9\])?.
+   * Label values must be between 0 and 63 characters long and must conform
+   * to the regular expression (\[a-z\](\[-a-z0-9\]*\[a-z0-9\])?)?.
+   * No more than 10 labels can be associated with a given finding.
+   * Example: <code>"environment" : "production"</code>
+   * Example: <code>"pipeline" : "etl"</code>
+   * 
+ * + * map<string, string> labels = 3; + */ + public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+   * To organize findings, these labels will be added to each finding.
+   * Label keys must be between 1 and 63 characters long and must conform
+   * to the following regular expression: \[a-z\](\[-a-z0-9\]*\[a-z0-9\])?.
+   * Label values must be between 0 and 63 characters long and must conform
+   * to the regular expression (\[a-z\](\[-a-z0-9\]*\[a-z0-9\])?)?.
+   * No more than 10 labels can be associated with a given finding.
+   * Example: <code>"environment" : "production"</code>
+   * Example: <code>"pipeline" : "etl"</code>
+   * 
+ * + * map<string, string> labels = 3; + */ + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int TABLE_OPTIONS_FIELD_NUMBER = 4; + private com.google.privacy.dlp.v2.TableOptions tableOptions_; + /** + * + * + *
+   * If the container is a table, additional information to make findings
+   * meaningful such as the columns that are primary keys.
+   * 
+ * + * .google.privacy.dlp.v2.TableOptions table_options = 4; + * + * @return Whether the tableOptions field is set. + */ + public boolean hasTableOptions() { + return tableOptions_ != null; + } + /** + * + * + *
+   * If the container is a table, additional information to make findings
+   * meaningful such as the columns that are primary keys.
+   * 
+ * + * .google.privacy.dlp.v2.TableOptions table_options = 4; + * + * @return The tableOptions. + */ + public com.google.privacy.dlp.v2.TableOptions getTableOptions() { + return tableOptions_ == null + ? com.google.privacy.dlp.v2.TableOptions.getDefaultInstance() + : tableOptions_; + } + /** + * + * + *
+   * If the container is a table, additional information to make findings
+   * meaningful such as the columns that are primary keys.
+   * 
+ * + * .google.privacy.dlp.v2.TableOptions table_options = 4; + */ + public com.google.privacy.dlp.v2.TableOptionsOrBuilder getTableOptionsOrBuilder() { + return getTableOptions(); + } + + 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 (!getDescriptionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, description_); + } + for (int i = 0; i < requiredFindingLabelKeys_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString( + output, 2, requiredFindingLabelKeys_.getRaw(i)); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 3); + if (tableOptions_ != null) { + output.writeMessage(4, getTableOptions()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getDescriptionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, description_); + } + { + int dataSize = 0; + for (int i = 0; i < requiredFindingLabelKeys_.size(); i++) { + dataSize += computeStringSizeNoTag(requiredFindingLabelKeys_.getRaw(i)); + } + size += dataSize; + size += 1 * getRequiredFindingLabelKeysList().size(); + } + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, labels__); + } + if (tableOptions_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getTableOptions()); + } + 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.HybridOptions)) { + return super.equals(obj); + } + com.google.privacy.dlp.v2.HybridOptions other = (com.google.privacy.dlp.v2.HybridOptions) obj; + + if (!getDescription().equals(other.getDescription())) return false; + if (!getRequiredFindingLabelKeysList().equals(other.getRequiredFindingLabelKeysList())) + return false; + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (hasTableOptions() != other.hasTableOptions()) return false; + if (hasTableOptions()) { + if (!getTableOptions().equals(other.getTableOptions())) 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) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + if (getRequiredFindingLabelKeysCount() > 0) { + hash = (37 * hash) + REQUIRED_FINDING_LABEL_KEYS_FIELD_NUMBER; + hash = (53 * hash) + getRequiredFindingLabelKeysList().hashCode(); + } + if (!internalGetLabels().getMap().isEmpty()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLabels().hashCode(); + } + if (hasTableOptions()) { + hash = (37 * hash) + TABLE_OPTIONS_FIELD_NUMBER; + hash = (53 * hash) + getTableOptions().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.privacy.dlp.v2.HybridOptions parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.privacy.dlp.v2.HybridOptions 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.HybridOptions parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.privacy.dlp.v2.HybridOptions 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.HybridOptions parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.privacy.dlp.v2.HybridOptions 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.HybridOptions parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.privacy.dlp.v2.HybridOptions 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.HybridOptions parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.privacy.dlp.v2.HybridOptions 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.HybridOptions 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.HybridOptions 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.HybridOptions 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 to control jobs where the content being inspected is outside
+   * of Google Cloud Platform.
+   * 
+ * + * Protobuf type {@code google.privacy.dlp.v2.HybridOptions} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.privacy.dlp.v2.HybridOptions) + com.google.privacy.dlp.v2.HybridOptionsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.privacy.dlp.v2.DlpStorage + .internal_static_google_privacy_dlp_v2_HybridOptions_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 3: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + switch (number) { + case 3: + return internalGetMutableLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.privacy.dlp.v2.DlpStorage + .internal_static_google_privacy_dlp_v2_HybridOptions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.privacy.dlp.v2.HybridOptions.class, + com.google.privacy.dlp.v2.HybridOptions.Builder.class); + } + + // Construct using com.google.privacy.dlp.v2.HybridOptions.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(); + description_ = ""; + + requiredFindingLabelKeys_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + internalGetMutableLabels().clear(); + if (tableOptionsBuilder_ == null) { + tableOptions_ = null; + } else { + tableOptions_ = null; + tableOptionsBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.privacy.dlp.v2.DlpStorage + .internal_static_google_privacy_dlp_v2_HybridOptions_descriptor; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.HybridOptions getDefaultInstanceForType() { + return com.google.privacy.dlp.v2.HybridOptions.getDefaultInstance(); + } + + @java.lang.Override + public com.google.privacy.dlp.v2.HybridOptions build() { + com.google.privacy.dlp.v2.HybridOptions result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.HybridOptions buildPartial() { + com.google.privacy.dlp.v2.HybridOptions result = + new com.google.privacy.dlp.v2.HybridOptions(this); + int from_bitField0_ = bitField0_; + result.description_ = description_; + if (((bitField0_ & 0x00000001) != 0)) { + requiredFindingLabelKeys_ = requiredFindingLabelKeys_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.requiredFindingLabelKeys_ = requiredFindingLabelKeys_; + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + if (tableOptionsBuilder_ == null) { + result.tableOptions_ = tableOptions_; + } else { + result.tableOptions_ = tableOptionsBuilder_.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.HybridOptions) { + return mergeFrom((com.google.privacy.dlp.v2.HybridOptions) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.privacy.dlp.v2.HybridOptions other) { + if (other == com.google.privacy.dlp.v2.HybridOptions.getDefaultInstance()) return this; + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + onChanged(); + } + if (!other.requiredFindingLabelKeys_.isEmpty()) { + if (requiredFindingLabelKeys_.isEmpty()) { + requiredFindingLabelKeys_ = other.requiredFindingLabelKeys_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureRequiredFindingLabelKeysIsMutable(); + requiredFindingLabelKeys_.addAll(other.requiredFindingLabelKeys_); + } + onChanged(); + } + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + if (other.hasTableOptions()) { + mergeTableOptions(other.getTableOptions()); + } + 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.HybridOptions parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.privacy.dlp.v2.HybridOptions) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.lang.Object description_ = ""; + /** + * + * + *
+     * A short description of where the data is coming from. Will be stored once
+     * in the job. 256 max length.
+     * 
+ * + * string description = 1; + * + * @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 short description of where the data is coming from. Will be stored once
+     * in the job. 256 max length.
+     * 
+ * + * string description = 1; + * + * @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 short description of where the data is coming from. Will be stored once
+     * in the job. 256 max length.
+     * 
+ * + * string description = 1; + * + * @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 short description of where the data is coming from. Will be stored once
+     * in the job. 256 max length.
+     * 
+ * + * string description = 1; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + + description_ = getDefaultInstance().getDescription(); + onChanged(); + return this; + } + /** + * + * + *
+     * A short description of where the data is coming from. Will be stored once
+     * in the job. 256 max length.
+     * 
+ * + * string description = 1; + * + * @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 com.google.protobuf.LazyStringList requiredFindingLabelKeys_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureRequiredFindingLabelKeysIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + requiredFindingLabelKeys_ = + new com.google.protobuf.LazyStringArrayList(requiredFindingLabelKeys_); + bitField0_ |= 0x00000001; + } + } + /** + * + * + *
+     * These are labels that each inspection request must include within their
+     * 'finding_labels' map. Request may contain others, but any missing one of
+     * these will be rejected.
+     * Label keys must be between 1 and 63 characters long and must conform
+     * to the following regular expression: \[a-z\](\[-a-z0-9\]*\[a-z0-9\])?.
+     * No more than 10 keys can be required.
+     * 
+ * + * repeated string required_finding_label_keys = 2; + * + * @return A list containing the requiredFindingLabelKeys. + */ + public com.google.protobuf.ProtocolStringList getRequiredFindingLabelKeysList() { + return requiredFindingLabelKeys_.getUnmodifiableView(); + } + /** + * + * + *
+     * These are labels that each inspection request must include within their
+     * 'finding_labels' map. Request may contain others, but any missing one of
+     * these will be rejected.
+     * Label keys must be between 1 and 63 characters long and must conform
+     * to the following regular expression: \[a-z\](\[-a-z0-9\]*\[a-z0-9\])?.
+     * No more than 10 keys can be required.
+     * 
+ * + * repeated string required_finding_label_keys = 2; + * + * @return The count of requiredFindingLabelKeys. + */ + public int getRequiredFindingLabelKeysCount() { + return requiredFindingLabelKeys_.size(); + } + /** + * + * + *
+     * These are labels that each inspection request must include within their
+     * 'finding_labels' map. Request may contain others, but any missing one of
+     * these will be rejected.
+     * Label keys must be between 1 and 63 characters long and must conform
+     * to the following regular expression: \[a-z\](\[-a-z0-9\]*\[a-z0-9\])?.
+     * No more than 10 keys can be required.
+     * 
+ * + * repeated string required_finding_label_keys = 2; + * + * @param index The index of the element to return. + * @return The requiredFindingLabelKeys at the given index. + */ + public java.lang.String getRequiredFindingLabelKeys(int index) { + return requiredFindingLabelKeys_.get(index); + } + /** + * + * + *
+     * These are labels that each inspection request must include within their
+     * 'finding_labels' map. Request may contain others, but any missing one of
+     * these will be rejected.
+     * Label keys must be between 1 and 63 characters long and must conform
+     * to the following regular expression: \[a-z\](\[-a-z0-9\]*\[a-z0-9\])?.
+     * No more than 10 keys can be required.
+     * 
+ * + * repeated string required_finding_label_keys = 2; + * + * @param index The index of the value to return. + * @return The bytes of the requiredFindingLabelKeys at the given index. + */ + public com.google.protobuf.ByteString getRequiredFindingLabelKeysBytes(int index) { + return requiredFindingLabelKeys_.getByteString(index); + } + /** + * + * + *
+     * These are labels that each inspection request must include within their
+     * 'finding_labels' map. Request may contain others, but any missing one of
+     * these will be rejected.
+     * Label keys must be between 1 and 63 characters long and must conform
+     * to the following regular expression: \[a-z\](\[-a-z0-9\]*\[a-z0-9\])?.
+     * No more than 10 keys can be required.
+     * 
+ * + * repeated string required_finding_label_keys = 2; + * + * @param index The index to set the value at. + * @param value The requiredFindingLabelKeys to set. + * @return This builder for chaining. + */ + public Builder setRequiredFindingLabelKeys(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRequiredFindingLabelKeysIsMutable(); + requiredFindingLabelKeys_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * These are labels that each inspection request must include within their
+     * 'finding_labels' map. Request may contain others, but any missing one of
+     * these will be rejected.
+     * Label keys must be between 1 and 63 characters long and must conform
+     * to the following regular expression: \[a-z\](\[-a-z0-9\]*\[a-z0-9\])?.
+     * No more than 10 keys can be required.
+     * 
+ * + * repeated string required_finding_label_keys = 2; + * + * @param value The requiredFindingLabelKeys to add. + * @return This builder for chaining. + */ + public Builder addRequiredFindingLabelKeys(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRequiredFindingLabelKeysIsMutable(); + requiredFindingLabelKeys_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * These are labels that each inspection request must include within their
+     * 'finding_labels' map. Request may contain others, but any missing one of
+     * these will be rejected.
+     * Label keys must be between 1 and 63 characters long and must conform
+     * to the following regular expression: \[a-z\](\[-a-z0-9\]*\[a-z0-9\])?.
+     * No more than 10 keys can be required.
+     * 
+ * + * repeated string required_finding_label_keys = 2; + * + * @param values The requiredFindingLabelKeys to add. + * @return This builder for chaining. + */ + public Builder addAllRequiredFindingLabelKeys(java.lang.Iterable values) { + ensureRequiredFindingLabelKeysIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, requiredFindingLabelKeys_); + onChanged(); + return this; + } + /** + * + * + *
+     * These are labels that each inspection request must include within their
+     * 'finding_labels' map. Request may contain others, but any missing one of
+     * these will be rejected.
+     * Label keys must be between 1 and 63 characters long and must conform
+     * to the following regular expression: \[a-z\](\[-a-z0-9\]*\[a-z0-9\])?.
+     * No more than 10 keys can be required.
+     * 
+ * + * repeated string required_finding_label_keys = 2; + * + * @return This builder for chaining. + */ + public Builder clearRequiredFindingLabelKeys() { + requiredFindingLabelKeys_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * These are labels that each inspection request must include within their
+     * 'finding_labels' map. Request may contain others, but any missing one of
+     * these will be rejected.
+     * Label keys must be between 1 and 63 characters long and must conform
+     * to the following regular expression: \[a-z\](\[-a-z0-9\]*\[a-z0-9\])?.
+     * No more than 10 keys can be required.
+     * 
+ * + * repeated string required_finding_label_keys = 2; + * + * @param value The bytes of the requiredFindingLabelKeys to add. + * @return This builder for chaining. + */ + public Builder addRequiredFindingLabelKeysBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureRequiredFindingLabelKeysIsMutable(); + requiredFindingLabelKeys_.add(value); + onChanged(); + return this; + } + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + private com.google.protobuf.MapField + internalGetMutableLabels() { + onChanged(); + ; + if (labels_ == null) { + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + } + if (!labels_.isMutable()) { + labels_ = labels_.copy(); + } + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + /** + * + * + *
+     * To organize findings, these labels will be added to each finding.
+     * Label keys must be between 1 and 63 characters long and must conform
+     * to the following regular expression: \[a-z\](\[-a-z0-9\]*\[a-z0-9\])?.
+     * Label values must be between 0 and 63 characters long and must conform
+     * to the regular expression (\[a-z\](\[-a-z0-9\]*\[a-z0-9\])?)?.
+     * No more than 10 labels can be associated with a given finding.
+     * Example: <code>"environment" : "production"</code>
+     * Example: <code>"pipeline" : "etl"</code>
+     * 
+ * + * map<string, string> labels = 3; + */ + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + return internalGetLabels().getMap().containsKey(key); + } + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + /** + * + * + *
+     * To organize findings, these labels will be added to each finding.
+     * Label keys must be between 1 and 63 characters long and must conform
+     * to the following regular expression: \[a-z\](\[-a-z0-9\]*\[a-z0-9\])?.
+     * Label values must be between 0 and 63 characters long and must conform
+     * to the regular expression (\[a-z\](\[-a-z0-9\]*\[a-z0-9\])?)?.
+     * No more than 10 labels can be associated with a given finding.
+     * Example: <code>"environment" : "production"</code>
+     * Example: <code>"pipeline" : "etl"</code>
+     * 
+ * + * map<string, string> labels = 3; + */ + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + * + * + *
+     * To organize findings, these labels will be added to each finding.
+     * Label keys must be between 1 and 63 characters long and must conform
+     * to the following regular expression: \[a-z\](\[-a-z0-9\]*\[a-z0-9\])?.
+     * Label values must be between 0 and 63 characters long and must conform
+     * to the regular expression (\[a-z\](\[-a-z0-9\]*\[a-z0-9\])?)?.
+     * No more than 10 labels can be associated with a given finding.
+     * Example: <code>"environment" : "production"</code>
+     * Example: <code>"pipeline" : "etl"</code>
+     * 
+ * + * map<string, string> labels = 3; + */ + public java.lang.String getLabelsOrDefault( + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+     * To organize findings, these labels will be added to each finding.
+     * Label keys must be between 1 and 63 characters long and must conform
+     * to the following regular expression: \[a-z\](\[-a-z0-9\]*\[a-z0-9\])?.
+     * Label values must be between 0 and 63 characters long and must conform
+     * to the regular expression (\[a-z\](\[-a-z0-9\]*\[a-z0-9\])?)?.
+     * No more than 10 labels can be associated with a given finding.
+     * Example: <code>"environment" : "production"</code>
+     * Example: <code>"pipeline" : "etl"</code>
+     * 
+ * + * map<string, string> labels = 3; + */ + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearLabels() { + internalGetMutableLabels().getMutableMap().clear(); + return this; + } + /** + * + * + *
+     * To organize findings, these labels will be added to each finding.
+     * Label keys must be between 1 and 63 characters long and must conform
+     * to the following regular expression: \[a-z\](\[-a-z0-9\]*\[a-z0-9\])?.
+     * Label values must be between 0 and 63 characters long and must conform
+     * to the regular expression (\[a-z\](\[-a-z0-9\]*\[a-z0-9\])?)?.
+     * No more than 10 labels can be associated with a given finding.
+     * Example: <code>"environment" : "production"</code>
+     * Example: <code>"pipeline" : "etl"</code>
+     * 
+ * + * map<string, string> labels = 3; + */ + public Builder removeLabels(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableLabels().getMutableMap().remove(key); + return this; + } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableLabels() { + return internalGetMutableLabels().getMutableMap(); + } + /** + * + * + *
+     * To organize findings, these labels will be added to each finding.
+     * Label keys must be between 1 and 63 characters long and must conform
+     * to the following regular expression: \[a-z\](\[-a-z0-9\]*\[a-z0-9\])?.
+     * Label values must be between 0 and 63 characters long and must conform
+     * to the regular expression (\[a-z\](\[-a-z0-9\]*\[a-z0-9\])?)?.
+     * No more than 10 labels can be associated with a given finding.
+     * Example: <code>"environment" : "production"</code>
+     * Example: <code>"pipeline" : "etl"</code>
+     * 
+ * + * map<string, string> labels = 3; + */ + public Builder putLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + if (value == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableLabels().getMutableMap().put(key, value); + return this; + } + /** + * + * + *
+     * To organize findings, these labels will be added to each finding.
+     * Label keys must be between 1 and 63 characters long and must conform
+     * to the following regular expression: \[a-z\](\[-a-z0-9\]*\[a-z0-9\])?.
+     * Label values must be between 0 and 63 characters long and must conform
+     * to the regular expression (\[a-z\](\[-a-z0-9\]*\[a-z0-9\])?)?.
+     * No more than 10 labels can be associated with a given finding.
+     * Example: <code>"environment" : "production"</code>
+     * Example: <code>"pipeline" : "etl"</code>
+     * 
+ * + * map<string, string> labels = 3; + */ + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); + return this; + } + + private com.google.privacy.dlp.v2.TableOptions tableOptions_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.TableOptions, + com.google.privacy.dlp.v2.TableOptions.Builder, + com.google.privacy.dlp.v2.TableOptionsOrBuilder> + tableOptionsBuilder_; + /** + * + * + *
+     * If the container is a table, additional information to make findings
+     * meaningful such as the columns that are primary keys.
+     * 
+ * + * .google.privacy.dlp.v2.TableOptions table_options = 4; + * + * @return Whether the tableOptions field is set. + */ + public boolean hasTableOptions() { + return tableOptionsBuilder_ != null || tableOptions_ != null; + } + /** + * + * + *
+     * If the container is a table, additional information to make findings
+     * meaningful such as the columns that are primary keys.
+     * 
+ * + * .google.privacy.dlp.v2.TableOptions table_options = 4; + * + * @return The tableOptions. + */ + public com.google.privacy.dlp.v2.TableOptions getTableOptions() { + if (tableOptionsBuilder_ == null) { + return tableOptions_ == null + ? com.google.privacy.dlp.v2.TableOptions.getDefaultInstance() + : tableOptions_; + } else { + return tableOptionsBuilder_.getMessage(); + } + } + /** + * + * + *
+     * If the container is a table, additional information to make findings
+     * meaningful such as the columns that are primary keys.
+     * 
+ * + * .google.privacy.dlp.v2.TableOptions table_options = 4; + */ + public Builder setTableOptions(com.google.privacy.dlp.v2.TableOptions value) { + if (tableOptionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + tableOptions_ = value; + onChanged(); + } else { + tableOptionsBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * If the container is a table, additional information to make findings
+     * meaningful such as the columns that are primary keys.
+     * 
+ * + * .google.privacy.dlp.v2.TableOptions table_options = 4; + */ + public Builder setTableOptions(com.google.privacy.dlp.v2.TableOptions.Builder builderForValue) { + if (tableOptionsBuilder_ == null) { + tableOptions_ = builderForValue.build(); + onChanged(); + } else { + tableOptionsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * If the container is a table, additional information to make findings
+     * meaningful such as the columns that are primary keys.
+     * 
+ * + * .google.privacy.dlp.v2.TableOptions table_options = 4; + */ + public Builder mergeTableOptions(com.google.privacy.dlp.v2.TableOptions value) { + if (tableOptionsBuilder_ == null) { + if (tableOptions_ != null) { + tableOptions_ = + com.google.privacy.dlp.v2.TableOptions.newBuilder(tableOptions_) + .mergeFrom(value) + .buildPartial(); + } else { + tableOptions_ = value; + } + onChanged(); + } else { + tableOptionsBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * If the container is a table, additional information to make findings
+     * meaningful such as the columns that are primary keys.
+     * 
+ * + * .google.privacy.dlp.v2.TableOptions table_options = 4; + */ + public Builder clearTableOptions() { + if (tableOptionsBuilder_ == null) { + tableOptions_ = null; + onChanged(); + } else { + tableOptions_ = null; + tableOptionsBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * If the container is a table, additional information to make findings
+     * meaningful such as the columns that are primary keys.
+     * 
+ * + * .google.privacy.dlp.v2.TableOptions table_options = 4; + */ + public com.google.privacy.dlp.v2.TableOptions.Builder getTableOptionsBuilder() { + + onChanged(); + return getTableOptionsFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * If the container is a table, additional information to make findings
+     * meaningful such as the columns that are primary keys.
+     * 
+ * + * .google.privacy.dlp.v2.TableOptions table_options = 4; + */ + public com.google.privacy.dlp.v2.TableOptionsOrBuilder getTableOptionsOrBuilder() { + if (tableOptionsBuilder_ != null) { + return tableOptionsBuilder_.getMessageOrBuilder(); + } else { + return tableOptions_ == null + ? com.google.privacy.dlp.v2.TableOptions.getDefaultInstance() + : tableOptions_; + } + } + /** + * + * + *
+     * If the container is a table, additional information to make findings
+     * meaningful such as the columns that are primary keys.
+     * 
+ * + * .google.privacy.dlp.v2.TableOptions table_options = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.TableOptions, + com.google.privacy.dlp.v2.TableOptions.Builder, + com.google.privacy.dlp.v2.TableOptionsOrBuilder> + getTableOptionsFieldBuilder() { + if (tableOptionsBuilder_ == null) { + tableOptionsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.TableOptions, + com.google.privacy.dlp.v2.TableOptions.Builder, + com.google.privacy.dlp.v2.TableOptionsOrBuilder>( + getTableOptions(), getParentForChildren(), isClean()); + tableOptions_ = null; + } + return tableOptionsBuilder_; + } + + @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.HybridOptions) + } + + // @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.HybridOptions) + private static final com.google.privacy.dlp.v2.HybridOptions DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.privacy.dlp.v2.HybridOptions(); + } + + public static com.google.privacy.dlp.v2.HybridOptions getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HybridOptions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new HybridOptions(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.HybridOptions getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/HybridOptionsOrBuilder.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/HybridOptionsOrBuilder.java new file mode 100644 index 00000000..2c27b6b8 --- /dev/null +++ b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/HybridOptionsOrBuilder.java @@ -0,0 +1,250 @@ +/* + * 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/storage.proto + +package com.google.privacy.dlp.v2; + +public interface HybridOptionsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.privacy.dlp.v2.HybridOptions) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * A short description of where the data is coming from. Will be stored once
+   * in the job. 256 max length.
+   * 
+ * + * string description = 1; + * + * @return The description. + */ + java.lang.String getDescription(); + /** + * + * + *
+   * A short description of where the data is coming from. Will be stored once
+   * in the job. 256 max length.
+   * 
+ * + * string description = 1; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
+   * These are labels that each inspection request must include within their
+   * 'finding_labels' map. Request may contain others, but any missing one of
+   * these will be rejected.
+   * Label keys must be between 1 and 63 characters long and must conform
+   * to the following regular expression: \[a-z\](\[-a-z0-9\]*\[a-z0-9\])?.
+   * No more than 10 keys can be required.
+   * 
+ * + * repeated string required_finding_label_keys = 2; + * + * @return A list containing the requiredFindingLabelKeys. + */ + java.util.List getRequiredFindingLabelKeysList(); + /** + * + * + *
+   * These are labels that each inspection request must include within their
+   * 'finding_labels' map. Request may contain others, but any missing one of
+   * these will be rejected.
+   * Label keys must be between 1 and 63 characters long and must conform
+   * to the following regular expression: \[a-z\](\[-a-z0-9\]*\[a-z0-9\])?.
+   * No more than 10 keys can be required.
+   * 
+ * + * repeated string required_finding_label_keys = 2; + * + * @return The count of requiredFindingLabelKeys. + */ + int getRequiredFindingLabelKeysCount(); + /** + * + * + *
+   * These are labels that each inspection request must include within their
+   * 'finding_labels' map. Request may contain others, but any missing one of
+   * these will be rejected.
+   * Label keys must be between 1 and 63 characters long and must conform
+   * to the following regular expression: \[a-z\](\[-a-z0-9\]*\[a-z0-9\])?.
+   * No more than 10 keys can be required.
+   * 
+ * + * repeated string required_finding_label_keys = 2; + * + * @param index The index of the element to return. + * @return The requiredFindingLabelKeys at the given index. + */ + java.lang.String getRequiredFindingLabelKeys(int index); + /** + * + * + *
+   * These are labels that each inspection request must include within their
+   * 'finding_labels' map. Request may contain others, but any missing one of
+   * these will be rejected.
+   * Label keys must be between 1 and 63 characters long and must conform
+   * to the following regular expression: \[a-z\](\[-a-z0-9\]*\[a-z0-9\])?.
+   * No more than 10 keys can be required.
+   * 
+ * + * repeated string required_finding_label_keys = 2; + * + * @param index The index of the value to return. + * @return The bytes of the requiredFindingLabelKeys at the given index. + */ + com.google.protobuf.ByteString getRequiredFindingLabelKeysBytes(int index); + + /** + * + * + *
+   * To organize findings, these labels will be added to each finding.
+   * Label keys must be between 1 and 63 characters long and must conform
+   * to the following regular expression: \[a-z\](\[-a-z0-9\]*\[a-z0-9\])?.
+   * Label values must be between 0 and 63 characters long and must conform
+   * to the regular expression (\[a-z\](\[-a-z0-9\]*\[a-z0-9\])?)?.
+   * No more than 10 labels can be associated with a given finding.
+   * Example: <code>"environment" : "production"</code>
+   * Example: <code>"pipeline" : "etl"</code>
+   * 
+ * + * map<string, string> labels = 3; + */ + int getLabelsCount(); + /** + * + * + *
+   * To organize findings, these labels will be added to each finding.
+   * Label keys must be between 1 and 63 characters long and must conform
+   * to the following regular expression: \[a-z\](\[-a-z0-9\]*\[a-z0-9\])?.
+   * Label values must be between 0 and 63 characters long and must conform
+   * to the regular expression (\[a-z\](\[-a-z0-9\]*\[a-z0-9\])?)?.
+   * No more than 10 labels can be associated with a given finding.
+   * Example: <code>"environment" : "production"</code>
+   * Example: <code>"pipeline" : "etl"</code>
+   * 
+ * + * map<string, string> labels = 3; + */ + boolean containsLabels(java.lang.String key); + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getLabels(); + /** + * + * + *
+   * To organize findings, these labels will be added to each finding.
+   * Label keys must be between 1 and 63 characters long and must conform
+   * to the following regular expression: \[a-z\](\[-a-z0-9\]*\[a-z0-9\])?.
+   * Label values must be between 0 and 63 characters long and must conform
+   * to the regular expression (\[a-z\](\[-a-z0-9\]*\[a-z0-9\])?)?.
+   * No more than 10 labels can be associated with a given finding.
+   * Example: <code>"environment" : "production"</code>
+   * Example: <code>"pipeline" : "etl"</code>
+   * 
+ * + * map<string, string> labels = 3; + */ + java.util.Map getLabelsMap(); + /** + * + * + *
+   * To organize findings, these labels will be added to each finding.
+   * Label keys must be between 1 and 63 characters long and must conform
+   * to the following regular expression: \[a-z\](\[-a-z0-9\]*\[a-z0-9\])?.
+   * Label values must be between 0 and 63 characters long and must conform
+   * to the regular expression (\[a-z\](\[-a-z0-9\]*\[a-z0-9\])?)?.
+   * No more than 10 labels can be associated with a given finding.
+   * Example: <code>"environment" : "production"</code>
+   * Example: <code>"pipeline" : "etl"</code>
+   * 
+ * + * map<string, string> labels = 3; + */ + java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue); + /** + * + * + *
+   * To organize findings, these labels will be added to each finding.
+   * Label keys must be between 1 and 63 characters long and must conform
+   * to the following regular expression: \[a-z\](\[-a-z0-9\]*\[a-z0-9\])?.
+   * Label values must be between 0 and 63 characters long and must conform
+   * to the regular expression (\[a-z\](\[-a-z0-9\]*\[a-z0-9\])?)?.
+   * No more than 10 labels can be associated with a given finding.
+   * Example: <code>"environment" : "production"</code>
+   * Example: <code>"pipeline" : "etl"</code>
+   * 
+ * + * map<string, string> labels = 3; + */ + java.lang.String getLabelsOrThrow(java.lang.String key); + + /** + * + * + *
+   * If the container is a table, additional information to make findings
+   * meaningful such as the columns that are primary keys.
+   * 
+ * + * .google.privacy.dlp.v2.TableOptions table_options = 4; + * + * @return Whether the tableOptions field is set. + */ + boolean hasTableOptions(); + /** + * + * + *
+   * If the container is a table, additional information to make findings
+   * meaningful such as the columns that are primary keys.
+   * 
+ * + * .google.privacy.dlp.v2.TableOptions table_options = 4; + * + * @return The tableOptions. + */ + com.google.privacy.dlp.v2.TableOptions getTableOptions(); + /** + * + * + *
+   * If the container is a table, additional information to make findings
+   * meaningful such as the columns that are primary keys.
+   * 
+ * + * .google.privacy.dlp.v2.TableOptions table_options = 4; + */ + com.google.privacy.dlp.v2.TableOptionsOrBuilder getTableOptionsOrBuilder(); +} 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 2aeb4951..5c8fb00b 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 @@ -226,7 +226,7 @@ public interface FindingLimitsOrBuilder * *
      * Max number of findings that will be returned for each item scanned.
-     * When set within `InspectDataSourceRequest`,
+     * When set within `InspectJobConfig`,
      * the maximum returned is 2000 regardless if this is set higher.
      * When set within `InspectContentRequest`, this field is ignored.
      * 
@@ -1362,7 +1362,7 @@ public com.google.protobuf.Parser getParserForType() { * *
      * Max number of findings that will be returned for each item scanned.
-     * When set within `InspectDataSourceRequest`,
+     * When set within `InspectJobConfig`,
      * the maximum returned is 2000 regardless if this is set higher.
      * When set within `InspectContentRequest`, this field is ignored.
      * 
@@ -1878,7 +1878,7 @@ public Builder mergeFrom( * *
        * Max number of findings that will be returned for each item scanned.
-       * When set within `InspectDataSourceRequest`,
+       * When set within `InspectJobConfig`,
        * the maximum returned is 2000 regardless if this is set higher.
        * When set within `InspectContentRequest`, this field is ignored.
        * 
@@ -1895,7 +1895,7 @@ public int getMaxFindingsPerItem() { * *
        * Max number of findings that will be returned for each item scanned.
-       * When set within `InspectDataSourceRequest`,
+       * When set within `InspectJobConfig`,
        * the maximum returned is 2000 regardless if this is set higher.
        * When set within `InspectContentRequest`, this field is ignored.
        * 
@@ -1916,7 +1916,7 @@ public Builder setMaxFindingsPerItem(int value) { * *
        * Max number of findings that will be returned for each item scanned.
-       * When set within `InspectDataSourceRequest`,
+       * When set within `InspectJobConfig`,
        * the maximum returned is 2000 regardless if this is set higher.
        * When set within `InspectContentRequest`, this field is ignored.
        * 
diff --git a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InspectDataSourceDetails.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InspectDataSourceDetails.java index 63c468b7..55b8ab4b 100644 --- a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InspectDataSourceDetails.java +++ b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InspectDataSourceDetails.java @@ -1322,6 +1322,50 @@ public interface ResultOrBuilder * repeated .google.privacy.dlp.v2.InfoTypeStats info_type_stats = 3; */ com.google.privacy.dlp.v2.InfoTypeStatsOrBuilder getInfoTypeStatsOrBuilder(int index); + + /** + * + * + *
+     * Statistics related to the processing of hybrid inspect.
+     * Early access feature is in a pre-release state and might change or have
+     * limited support. For more information, see
+     * https://cloud.google.com/products#product-launch-stages.
+     * 
+ * + * .google.privacy.dlp.v2.HybridInspectStatistics hybrid_stats = 7; + * + * @return Whether the hybridStats field is set. + */ + boolean hasHybridStats(); + /** + * + * + *
+     * Statistics related to the processing of hybrid inspect.
+     * Early access feature is in a pre-release state and might change or have
+     * limited support. For more information, see
+     * https://cloud.google.com/products#product-launch-stages.
+     * 
+ * + * .google.privacy.dlp.v2.HybridInspectStatistics hybrid_stats = 7; + * + * @return The hybridStats. + */ + com.google.privacy.dlp.v2.HybridInspectStatistics getHybridStats(); + /** + * + * + *
+     * Statistics related to the processing of hybrid inspect.
+     * Early access feature is in a pre-release state and might change or have
+     * limited support. For more information, see
+     * https://cloud.google.com/products#product-launch-stages.
+     * 
+ * + * .google.privacy.dlp.v2.HybridInspectStatistics hybrid_stats = 7; + */ + com.google.privacy.dlp.v2.HybridInspectStatisticsOrBuilder getHybridStatsOrBuilder(); } /** * @@ -1398,6 +1442,23 @@ private Result( com.google.privacy.dlp.v2.InfoTypeStats.parser(), extensionRegistry)); break; } + case 58: + { + com.google.privacy.dlp.v2.HybridInspectStatistics.Builder subBuilder = null; + if (hybridStats_ != null) { + subBuilder = hybridStats_.toBuilder(); + } + hybridStats_ = + input.readMessage( + com.google.privacy.dlp.v2.HybridInspectStatistics.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(hybridStats_); + hybridStats_ = subBuilder.buildPartial(); + } + + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -1538,6 +1599,60 @@ public com.google.privacy.dlp.v2.InfoTypeStatsOrBuilder getInfoTypeStatsOrBuilde return infoTypeStats_.get(index); } + public static final int HYBRID_STATS_FIELD_NUMBER = 7; + private com.google.privacy.dlp.v2.HybridInspectStatistics hybridStats_; + /** + * + * + *
+     * Statistics related to the processing of hybrid inspect.
+     * Early access feature is in a pre-release state and might change or have
+     * limited support. For more information, see
+     * https://cloud.google.com/products#product-launch-stages.
+     * 
+ * + * .google.privacy.dlp.v2.HybridInspectStatistics hybrid_stats = 7; + * + * @return Whether the hybridStats field is set. + */ + public boolean hasHybridStats() { + return hybridStats_ != null; + } + /** + * + * + *
+     * Statistics related to the processing of hybrid inspect.
+     * Early access feature is in a pre-release state and might change or have
+     * limited support. For more information, see
+     * https://cloud.google.com/products#product-launch-stages.
+     * 
+ * + * .google.privacy.dlp.v2.HybridInspectStatistics hybrid_stats = 7; + * + * @return The hybridStats. + */ + public com.google.privacy.dlp.v2.HybridInspectStatistics getHybridStats() { + return hybridStats_ == null + ? com.google.privacy.dlp.v2.HybridInspectStatistics.getDefaultInstance() + : hybridStats_; + } + /** + * + * + *
+     * Statistics related to the processing of hybrid inspect.
+     * Early access feature is in a pre-release state and might change or have
+     * limited support. For more information, see
+     * https://cloud.google.com/products#product-launch-stages.
+     * 
+ * + * .google.privacy.dlp.v2.HybridInspectStatistics hybrid_stats = 7; + */ + public com.google.privacy.dlp.v2.HybridInspectStatisticsOrBuilder getHybridStatsOrBuilder() { + return getHybridStats(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1561,6 +1676,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < infoTypeStats_.size(); i++) { output.writeMessage(3, infoTypeStats_.get(i)); } + if (hybridStats_ != null) { + output.writeMessage(7, getHybridStats()); + } unknownFields.writeTo(output); } @@ -1579,6 +1697,9 @@ public int getSerializedSize() { for (int i = 0; i < infoTypeStats_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, infoTypeStats_.get(i)); } + if (hybridStats_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getHybridStats()); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -1598,6 +1719,10 @@ public boolean equals(final java.lang.Object obj) { if (getProcessedBytes() != other.getProcessedBytes()) return false; if (getTotalEstimatedBytes() != other.getTotalEstimatedBytes()) return false; if (!getInfoTypeStatsList().equals(other.getInfoTypeStatsList())) return false; + if (hasHybridStats() != other.hasHybridStats()) return false; + if (hasHybridStats()) { + if (!getHybridStats().equals(other.getHybridStats())) return false; + } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1617,6 +1742,10 @@ public int hashCode() { hash = (37 * hash) + INFO_TYPE_STATS_FIELD_NUMBER; hash = (53 * hash) + getInfoTypeStatsList().hashCode(); } + if (hasHybridStats()) { + hash = (37 * hash) + HYBRID_STATS_FIELD_NUMBER; + hash = (53 * hash) + getHybridStats().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -1777,6 +1906,12 @@ public Builder clear() { } else { infoTypeStatsBuilder_.clear(); } + if (hybridStatsBuilder_ == null) { + hybridStats_ = null; + } else { + hybridStats_ = null; + hybridStatsBuilder_ = null; + } return this; } @@ -1816,6 +1951,11 @@ public com.google.privacy.dlp.v2.InspectDataSourceDetails.Result buildPartial() } else { result.infoTypeStats_ = infoTypeStatsBuilder_.build(); } + if (hybridStatsBuilder_ == null) { + result.hybridStats_ = hybridStats_; + } else { + result.hybridStats_ = hybridStatsBuilder_.build(); + } onBuilt(); return result; } @@ -1901,6 +2041,9 @@ public Builder mergeFrom(com.google.privacy.dlp.v2.InspectDataSourceDetails.Resu } } } + if (other.hasHybridStats()) { + mergeHybridStats(other.getHybridStats()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -2407,6 +2550,219 @@ public com.google.privacy.dlp.v2.InfoTypeStats.Builder addInfoTypeStatsBuilder(i return infoTypeStatsBuilder_; } + private com.google.privacy.dlp.v2.HybridInspectStatistics hybridStats_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.HybridInspectStatistics, + com.google.privacy.dlp.v2.HybridInspectStatistics.Builder, + com.google.privacy.dlp.v2.HybridInspectStatisticsOrBuilder> + hybridStatsBuilder_; + /** + * + * + *
+       * Statistics related to the processing of hybrid inspect.
+       * Early access feature is in a pre-release state and might change or have
+       * limited support. For more information, see
+       * https://cloud.google.com/products#product-launch-stages.
+       * 
+ * + * .google.privacy.dlp.v2.HybridInspectStatistics hybrid_stats = 7; + * + * @return Whether the hybridStats field is set. + */ + public boolean hasHybridStats() { + return hybridStatsBuilder_ != null || hybridStats_ != null; + } + /** + * + * + *
+       * Statistics related to the processing of hybrid inspect.
+       * Early access feature is in a pre-release state and might change or have
+       * limited support. For more information, see
+       * https://cloud.google.com/products#product-launch-stages.
+       * 
+ * + * .google.privacy.dlp.v2.HybridInspectStatistics hybrid_stats = 7; + * + * @return The hybridStats. + */ + public com.google.privacy.dlp.v2.HybridInspectStatistics getHybridStats() { + if (hybridStatsBuilder_ == null) { + return hybridStats_ == null + ? com.google.privacy.dlp.v2.HybridInspectStatistics.getDefaultInstance() + : hybridStats_; + } else { + return hybridStatsBuilder_.getMessage(); + } + } + /** + * + * + *
+       * Statistics related to the processing of hybrid inspect.
+       * Early access feature is in a pre-release state and might change or have
+       * limited support. For more information, see
+       * https://cloud.google.com/products#product-launch-stages.
+       * 
+ * + * .google.privacy.dlp.v2.HybridInspectStatistics hybrid_stats = 7; + */ + public Builder setHybridStats(com.google.privacy.dlp.v2.HybridInspectStatistics value) { + if (hybridStatsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + hybridStats_ = value; + onChanged(); + } else { + hybridStatsBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+       * Statistics related to the processing of hybrid inspect.
+       * Early access feature is in a pre-release state and might change or have
+       * limited support. For more information, see
+       * https://cloud.google.com/products#product-launch-stages.
+       * 
+ * + * .google.privacy.dlp.v2.HybridInspectStatistics hybrid_stats = 7; + */ + public Builder setHybridStats( + com.google.privacy.dlp.v2.HybridInspectStatistics.Builder builderForValue) { + if (hybridStatsBuilder_ == null) { + hybridStats_ = builderForValue.build(); + onChanged(); + } else { + hybridStatsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+       * Statistics related to the processing of hybrid inspect.
+       * Early access feature is in a pre-release state and might change or have
+       * limited support. For more information, see
+       * https://cloud.google.com/products#product-launch-stages.
+       * 
+ * + * .google.privacy.dlp.v2.HybridInspectStatistics hybrid_stats = 7; + */ + public Builder mergeHybridStats(com.google.privacy.dlp.v2.HybridInspectStatistics value) { + if (hybridStatsBuilder_ == null) { + if (hybridStats_ != null) { + hybridStats_ = + com.google.privacy.dlp.v2.HybridInspectStatistics.newBuilder(hybridStats_) + .mergeFrom(value) + .buildPartial(); + } else { + hybridStats_ = value; + } + onChanged(); + } else { + hybridStatsBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+       * Statistics related to the processing of hybrid inspect.
+       * Early access feature is in a pre-release state and might change or have
+       * limited support. For more information, see
+       * https://cloud.google.com/products#product-launch-stages.
+       * 
+ * + * .google.privacy.dlp.v2.HybridInspectStatistics hybrid_stats = 7; + */ + public Builder clearHybridStats() { + if (hybridStatsBuilder_ == null) { + hybridStats_ = null; + onChanged(); + } else { + hybridStats_ = null; + hybridStatsBuilder_ = null; + } + + return this; + } + /** + * + * + *
+       * Statistics related to the processing of hybrid inspect.
+       * Early access feature is in a pre-release state and might change or have
+       * limited support. For more information, see
+       * https://cloud.google.com/products#product-launch-stages.
+       * 
+ * + * .google.privacy.dlp.v2.HybridInspectStatistics hybrid_stats = 7; + */ + public com.google.privacy.dlp.v2.HybridInspectStatistics.Builder getHybridStatsBuilder() { + + onChanged(); + return getHybridStatsFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * Statistics related to the processing of hybrid inspect.
+       * Early access feature is in a pre-release state and might change or have
+       * limited support. For more information, see
+       * https://cloud.google.com/products#product-launch-stages.
+       * 
+ * + * .google.privacy.dlp.v2.HybridInspectStatistics hybrid_stats = 7; + */ + public com.google.privacy.dlp.v2.HybridInspectStatisticsOrBuilder getHybridStatsOrBuilder() { + if (hybridStatsBuilder_ != null) { + return hybridStatsBuilder_.getMessageOrBuilder(); + } else { + return hybridStats_ == null + ? com.google.privacy.dlp.v2.HybridInspectStatistics.getDefaultInstance() + : hybridStats_; + } + } + /** + * + * + *
+       * Statistics related to the processing of hybrid inspect.
+       * Early access feature is in a pre-release state and might change or have
+       * limited support. For more information, see
+       * https://cloud.google.com/products#product-launch-stages.
+       * 
+ * + * .google.privacy.dlp.v2.HybridInspectStatistics hybrid_stats = 7; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.HybridInspectStatistics, + com.google.privacy.dlp.v2.HybridInspectStatistics.Builder, + com.google.privacy.dlp.v2.HybridInspectStatisticsOrBuilder> + getHybridStatsFieldBuilder() { + if (hybridStatsBuilder_ == null) { + hybridStatsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.HybridInspectStatistics, + com.google.privacy.dlp.v2.HybridInspectStatistics.Builder, + com.google.privacy.dlp.v2.HybridInspectStatisticsOrBuilder>( + getHybridStats(), getParentForChildren(), isClean()); + hybridStats_ = null; + } + return hybridStatsBuilder_; + } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { diff --git a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/JobTrigger.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/JobTrigger.java index 7c32cc25..ac8ce630 100644 --- a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/JobTrigger.java +++ b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/JobTrigger.java @@ -445,6 +445,50 @@ public interface TriggerOrBuilder */ com.google.privacy.dlp.v2.ScheduleOrBuilder getScheduleOrBuilder(); + /** + * + * + *
+     * For use with hybrid jobs. Jobs must be manually created and finished.
+     * Early access feature is in a pre-release state and might change or have
+     * limited support. For more information, see
+     * https://cloud.google.com/products#product-launch-stages.
+     * 
+ * + * .google.privacy.dlp.v2.Manual manual = 2; + * + * @return Whether the manual field is set. + */ + boolean hasManual(); + /** + * + * + *
+     * For use with hybrid jobs. Jobs must be manually created and finished.
+     * Early access feature is in a pre-release state and might change or have
+     * limited support. For more information, see
+     * https://cloud.google.com/products#product-launch-stages.
+     * 
+ * + * .google.privacy.dlp.v2.Manual manual = 2; + * + * @return The manual. + */ + com.google.privacy.dlp.v2.Manual getManual(); + /** + * + * + *
+     * For use with hybrid jobs. Jobs must be manually created and finished.
+     * Early access feature is in a pre-release state and might change or have
+     * limited support. For more information, see
+     * https://cloud.google.com/products#product-launch-stages.
+     * 
+ * + * .google.privacy.dlp.v2.Manual manual = 2; + */ + com.google.privacy.dlp.v2.ManualOrBuilder getManualOrBuilder(); + public com.google.privacy.dlp.v2.JobTrigger.Trigger.TriggerCase getTriggerCase(); } /** @@ -513,6 +557,21 @@ private Trigger( triggerCase_ = 1; break; } + case 18: + { + com.google.privacy.dlp.v2.Manual.Builder subBuilder = null; + if (triggerCase_ == 2) { + subBuilder = ((com.google.privacy.dlp.v2.Manual) trigger_).toBuilder(); + } + trigger_ = + input.readMessage(com.google.privacy.dlp.v2.Manual.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.privacy.dlp.v2.Manual) trigger_); + trigger_ = subBuilder.buildPartial(); + } + triggerCase_ = 2; + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -555,6 +614,7 @@ public enum TriggerCase com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { SCHEDULE(1), + MANUAL(2), TRIGGER_NOT_SET(0); private final int value; @@ -575,6 +635,8 @@ public static TriggerCase forNumber(int value) { switch (value) { case 1: return SCHEDULE; + case 2: + return MANUAL; case 0: return TRIGGER_NOT_SET; default: @@ -639,6 +701,63 @@ public com.google.privacy.dlp.v2.ScheduleOrBuilder getScheduleOrBuilder() { return com.google.privacy.dlp.v2.Schedule.getDefaultInstance(); } + public static final int MANUAL_FIELD_NUMBER = 2; + /** + * + * + *
+     * For use with hybrid jobs. Jobs must be manually created and finished.
+     * Early access feature is in a pre-release state and might change or have
+     * limited support. For more information, see
+     * https://cloud.google.com/products#product-launch-stages.
+     * 
+ * + * .google.privacy.dlp.v2.Manual manual = 2; + * + * @return Whether the manual field is set. + */ + public boolean hasManual() { + return triggerCase_ == 2; + } + /** + * + * + *
+     * For use with hybrid jobs. Jobs must be manually created and finished.
+     * Early access feature is in a pre-release state and might change or have
+     * limited support. For more information, see
+     * https://cloud.google.com/products#product-launch-stages.
+     * 
+ * + * .google.privacy.dlp.v2.Manual manual = 2; + * + * @return The manual. + */ + public com.google.privacy.dlp.v2.Manual getManual() { + if (triggerCase_ == 2) { + return (com.google.privacy.dlp.v2.Manual) trigger_; + } + return com.google.privacy.dlp.v2.Manual.getDefaultInstance(); + } + /** + * + * + *
+     * For use with hybrid jobs. Jobs must be manually created and finished.
+     * Early access feature is in a pre-release state and might change or have
+     * limited support. For more information, see
+     * https://cloud.google.com/products#product-launch-stages.
+     * 
+ * + * .google.privacy.dlp.v2.Manual manual = 2; + */ + public com.google.privacy.dlp.v2.ManualOrBuilder getManualOrBuilder() { + if (triggerCase_ == 2) { + return (com.google.privacy.dlp.v2.Manual) trigger_; + } + return com.google.privacy.dlp.v2.Manual.getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -656,6 +775,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (triggerCase_ == 1) { output.writeMessage(1, (com.google.privacy.dlp.v2.Schedule) trigger_); } + if (triggerCase_ == 2) { + output.writeMessage(2, (com.google.privacy.dlp.v2.Manual) trigger_); + } unknownFields.writeTo(output); } @@ -670,6 +792,11 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 1, (com.google.privacy.dlp.v2.Schedule) trigger_); } + if (triggerCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.privacy.dlp.v2.Manual) trigger_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -691,6 +818,9 @@ public boolean equals(final java.lang.Object obj) { case 1: if (!getSchedule().equals(other.getSchedule())) return false; break; + case 2: + if (!getManual().equals(other.getManual())) return false; + break; case 0: default: } @@ -710,6 +840,10 @@ public int hashCode() { hash = (37 * hash) + SCHEDULE_FIELD_NUMBER; hash = (53 * hash) + getSchedule().hashCode(); break; + case 2: + hash = (37 * hash) + MANUAL_FIELD_NUMBER; + hash = (53 * hash) + getManual().hashCode(); + break; case 0: default: } @@ -896,6 +1030,13 @@ public com.google.privacy.dlp.v2.JobTrigger.Trigger buildPartial() { result.trigger_ = scheduleBuilder_.build(); } } + if (triggerCase_ == 2) { + if (manualBuilder_ == null) { + result.trigger_ = trigger_; + } else { + result.trigger_ = manualBuilder_.build(); + } + } result.triggerCase_ = triggerCase_; onBuilt(); return result; @@ -954,6 +1095,11 @@ public Builder mergeFrom(com.google.privacy.dlp.v2.JobTrigger.Trigger other) { mergeSchedule(other.getSchedule()); break; } + case MANUAL: + { + mergeManual(other.getManual()); + break; + } case TRIGGER_NOT_SET: { break; @@ -1205,6 +1351,236 @@ public com.google.privacy.dlp.v2.ScheduleOrBuilder getScheduleOrBuilder() { return scheduleBuilder_; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.Manual, + com.google.privacy.dlp.v2.Manual.Builder, + com.google.privacy.dlp.v2.ManualOrBuilder> + manualBuilder_; + /** + * + * + *
+       * For use with hybrid jobs. Jobs must be manually created and finished.
+       * Early access feature is in a pre-release state and might change or have
+       * limited support. For more information, see
+       * https://cloud.google.com/products#product-launch-stages.
+       * 
+ * + * .google.privacy.dlp.v2.Manual manual = 2; + * + * @return Whether the manual field is set. + */ + public boolean hasManual() { + return triggerCase_ == 2; + } + /** + * + * + *
+       * For use with hybrid jobs. Jobs must be manually created and finished.
+       * Early access feature is in a pre-release state and might change or have
+       * limited support. For more information, see
+       * https://cloud.google.com/products#product-launch-stages.
+       * 
+ * + * .google.privacy.dlp.v2.Manual manual = 2; + * + * @return The manual. + */ + public com.google.privacy.dlp.v2.Manual getManual() { + if (manualBuilder_ == null) { + if (triggerCase_ == 2) { + return (com.google.privacy.dlp.v2.Manual) trigger_; + } + return com.google.privacy.dlp.v2.Manual.getDefaultInstance(); + } else { + if (triggerCase_ == 2) { + return manualBuilder_.getMessage(); + } + return com.google.privacy.dlp.v2.Manual.getDefaultInstance(); + } + } + /** + * + * + *
+       * For use with hybrid jobs. Jobs must be manually created and finished.
+       * Early access feature is in a pre-release state and might change or have
+       * limited support. For more information, see
+       * https://cloud.google.com/products#product-launch-stages.
+       * 
+ * + * .google.privacy.dlp.v2.Manual manual = 2; + */ + public Builder setManual(com.google.privacy.dlp.v2.Manual value) { + if (manualBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + trigger_ = value; + onChanged(); + } else { + manualBuilder_.setMessage(value); + } + triggerCase_ = 2; + return this; + } + /** + * + * + *
+       * For use with hybrid jobs. Jobs must be manually created and finished.
+       * Early access feature is in a pre-release state and might change or have
+       * limited support. For more information, see
+       * https://cloud.google.com/products#product-launch-stages.
+       * 
+ * + * .google.privacy.dlp.v2.Manual manual = 2; + */ + public Builder setManual(com.google.privacy.dlp.v2.Manual.Builder builderForValue) { + if (manualBuilder_ == null) { + trigger_ = builderForValue.build(); + onChanged(); + } else { + manualBuilder_.setMessage(builderForValue.build()); + } + triggerCase_ = 2; + return this; + } + /** + * + * + *
+       * For use with hybrid jobs. Jobs must be manually created and finished.
+       * Early access feature is in a pre-release state and might change or have
+       * limited support. For more information, see
+       * https://cloud.google.com/products#product-launch-stages.
+       * 
+ * + * .google.privacy.dlp.v2.Manual manual = 2; + */ + public Builder mergeManual(com.google.privacy.dlp.v2.Manual value) { + if (manualBuilder_ == null) { + if (triggerCase_ == 2 + && trigger_ != com.google.privacy.dlp.v2.Manual.getDefaultInstance()) { + trigger_ = + com.google.privacy.dlp.v2.Manual.newBuilder( + (com.google.privacy.dlp.v2.Manual) trigger_) + .mergeFrom(value) + .buildPartial(); + } else { + trigger_ = value; + } + onChanged(); + } else { + if (triggerCase_ == 2) { + manualBuilder_.mergeFrom(value); + } + manualBuilder_.setMessage(value); + } + triggerCase_ = 2; + return this; + } + /** + * + * + *
+       * For use with hybrid jobs. Jobs must be manually created and finished.
+       * Early access feature is in a pre-release state and might change or have
+       * limited support. For more information, see
+       * https://cloud.google.com/products#product-launch-stages.
+       * 
+ * + * .google.privacy.dlp.v2.Manual manual = 2; + */ + public Builder clearManual() { + if (manualBuilder_ == null) { + if (triggerCase_ == 2) { + triggerCase_ = 0; + trigger_ = null; + onChanged(); + } + } else { + if (triggerCase_ == 2) { + triggerCase_ = 0; + trigger_ = null; + } + manualBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * For use with hybrid jobs. Jobs must be manually created and finished.
+       * Early access feature is in a pre-release state and might change or have
+       * limited support. For more information, see
+       * https://cloud.google.com/products#product-launch-stages.
+       * 
+ * + * .google.privacy.dlp.v2.Manual manual = 2; + */ + public com.google.privacy.dlp.v2.Manual.Builder getManualBuilder() { + return getManualFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * For use with hybrid jobs. Jobs must be manually created and finished.
+       * Early access feature is in a pre-release state and might change or have
+       * limited support. For more information, see
+       * https://cloud.google.com/products#product-launch-stages.
+       * 
+ * + * .google.privacy.dlp.v2.Manual manual = 2; + */ + public com.google.privacy.dlp.v2.ManualOrBuilder getManualOrBuilder() { + if ((triggerCase_ == 2) && (manualBuilder_ != null)) { + return manualBuilder_.getMessageOrBuilder(); + } else { + if (triggerCase_ == 2) { + return (com.google.privacy.dlp.v2.Manual) trigger_; + } + return com.google.privacy.dlp.v2.Manual.getDefaultInstance(); + } + } + /** + * + * + *
+       * For use with hybrid jobs. Jobs must be manually created and finished.
+       * Early access feature is in a pre-release state and might change or have
+       * limited support. For more information, see
+       * https://cloud.google.com/products#product-launch-stages.
+       * 
+ * + * .google.privacy.dlp.v2.Manual manual = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.Manual, + com.google.privacy.dlp.v2.Manual.Builder, + com.google.privacy.dlp.v2.ManualOrBuilder> + getManualFieldBuilder() { + if (manualBuilder_ == null) { + if (!(triggerCase_ == 2)) { + trigger_ = com.google.privacy.dlp.v2.Manual.getDefaultInstance(); + } + manualBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.Manual, + com.google.privacy.dlp.v2.Manual.Builder, + com.google.privacy.dlp.v2.ManualOrBuilder>( + (com.google.privacy.dlp.v2.Manual) trigger_, getParentForChildren(), isClean()); + trigger_ = null; + } + triggerCase_ = 2; + onChanged(); + ; + return manualBuilder_; + } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1574,8 +1950,8 @@ public com.google.privacy.dlp.v2.JobTrigger.TriggerOrBuilder getTriggersOrBuilde * * *
-   * Output only. A stream of errors encountered when the trigger was activated. Repeated
-   * errors may result in the JobTrigger automatically being paused.
+   * Output only. A stream of errors encountered when the trigger was activated.
+   * Repeated errors may result in the JobTrigger automatically being paused.
    * Will return the last 100 errors. Whenever the JobTrigger is modified
    * this list will be cleared.
    * 
@@ -1591,8 +1967,8 @@ public java.util.List getErrorsList() { * * *
-   * Output only. A stream of errors encountered when the trigger was activated. Repeated
-   * errors may result in the JobTrigger automatically being paused.
+   * Output only. A stream of errors encountered when the trigger was activated.
+   * Repeated errors may result in the JobTrigger automatically being paused.
    * Will return the last 100 errors. Whenever the JobTrigger is modified
    * this list will be cleared.
    * 
@@ -1609,8 +1985,8 @@ public java.util.List getErrorsList() { * * *
-   * Output only. A stream of errors encountered when the trigger was activated. Repeated
-   * errors may result in the JobTrigger automatically being paused.
+   * Output only. A stream of errors encountered when the trigger was activated.
+   * Repeated errors may result in the JobTrigger automatically being paused.
    * Will return the last 100 errors. Whenever the JobTrigger is modified
    * this list will be cleared.
    * 
@@ -1626,8 +2002,8 @@ public int getErrorsCount() { * * *
-   * Output only. A stream of errors encountered when the trigger was activated. Repeated
-   * errors may result in the JobTrigger automatically being paused.
+   * Output only. A stream of errors encountered when the trigger was activated.
+   * Repeated errors may result in the JobTrigger automatically being paused.
    * Will return the last 100 errors. Whenever the JobTrigger is modified
    * this list will be cleared.
    * 
@@ -1643,8 +2019,8 @@ public com.google.privacy.dlp.v2.Error getErrors(int index) { * * *
-   * Output only. A stream of errors encountered when the trigger was activated. Repeated
-   * errors may result in the JobTrigger automatically being paused.
+   * Output only. A stream of errors encountered when the trigger was activated.
+   * Repeated errors may result in the JobTrigger automatically being paused.
    * Will return the last 100 errors. Whenever the JobTrigger is modified
    * this list will be cleared.
    * 
@@ -3393,8 +3769,8 @@ private void ensureErrorsIsMutable() { * * *
-     * Output only. A stream of errors encountered when the trigger was activated. Repeated
-     * errors may result in the JobTrigger automatically being paused.
+     * Output only. A stream of errors encountered when the trigger was activated.
+     * Repeated errors may result in the JobTrigger automatically being paused.
      * Will return the last 100 errors. Whenever the JobTrigger is modified
      * this list will be cleared.
      * 
@@ -3414,8 +3790,8 @@ public java.util.List getErrorsList() { * * *
-     * Output only. A stream of errors encountered when the trigger was activated. Repeated
-     * errors may result in the JobTrigger automatically being paused.
+     * Output only. A stream of errors encountered when the trigger was activated.
+     * Repeated errors may result in the JobTrigger automatically being paused.
      * Will return the last 100 errors. Whenever the JobTrigger is modified
      * this list will be cleared.
      * 
@@ -3435,8 +3811,8 @@ public int getErrorsCount() { * * *
-     * Output only. A stream of errors encountered when the trigger was activated. Repeated
-     * errors may result in the JobTrigger automatically being paused.
+     * Output only. A stream of errors encountered when the trigger was activated.
+     * Repeated errors may result in the JobTrigger automatically being paused.
      * Will return the last 100 errors. Whenever the JobTrigger is modified
      * this list will be cleared.
      * 
@@ -3456,8 +3832,8 @@ public com.google.privacy.dlp.v2.Error getErrors(int index) { * * *
-     * Output only. A stream of errors encountered when the trigger was activated. Repeated
-     * errors may result in the JobTrigger automatically being paused.
+     * Output only. A stream of errors encountered when the trigger was activated.
+     * Repeated errors may result in the JobTrigger automatically being paused.
      * Will return the last 100 errors. Whenever the JobTrigger is modified
      * this list will be cleared.
      * 
@@ -3483,8 +3859,8 @@ public Builder setErrors(int index, com.google.privacy.dlp.v2.Error value) { * * *
-     * Output only. A stream of errors encountered when the trigger was activated. Repeated
-     * errors may result in the JobTrigger automatically being paused.
+     * Output only. A stream of errors encountered when the trigger was activated.
+     * Repeated errors may result in the JobTrigger automatically being paused.
      * Will return the last 100 errors. Whenever the JobTrigger is modified
      * this list will be cleared.
      * 
@@ -3507,8 +3883,8 @@ public Builder setErrors(int index, com.google.privacy.dlp.v2.Error.Builder buil * * *
-     * Output only. A stream of errors encountered when the trigger was activated. Repeated
-     * errors may result in the JobTrigger automatically being paused.
+     * Output only. A stream of errors encountered when the trigger was activated.
+     * Repeated errors may result in the JobTrigger automatically being paused.
      * Will return the last 100 errors. Whenever the JobTrigger is modified
      * this list will be cleared.
      * 
@@ -3534,8 +3910,8 @@ public Builder addErrors(com.google.privacy.dlp.v2.Error value) { * * *
-     * Output only. A stream of errors encountered when the trigger was activated. Repeated
-     * errors may result in the JobTrigger automatically being paused.
+     * Output only. A stream of errors encountered when the trigger was activated.
+     * Repeated errors may result in the JobTrigger automatically being paused.
      * Will return the last 100 errors. Whenever the JobTrigger is modified
      * this list will be cleared.
      * 
@@ -3561,8 +3937,8 @@ public Builder addErrors(int index, com.google.privacy.dlp.v2.Error value) { * * *
-     * Output only. A stream of errors encountered when the trigger was activated. Repeated
-     * errors may result in the JobTrigger automatically being paused.
+     * Output only. A stream of errors encountered when the trigger was activated.
+     * Repeated errors may result in the JobTrigger automatically being paused.
      * Will return the last 100 errors. Whenever the JobTrigger is modified
      * this list will be cleared.
      * 
@@ -3585,8 +3961,8 @@ public Builder addErrors(com.google.privacy.dlp.v2.Error.Builder builderForValue * * *
-     * Output only. A stream of errors encountered when the trigger was activated. Repeated
-     * errors may result in the JobTrigger automatically being paused.
+     * Output only. A stream of errors encountered when the trigger was activated.
+     * Repeated errors may result in the JobTrigger automatically being paused.
      * Will return the last 100 errors. Whenever the JobTrigger is modified
      * this list will be cleared.
      * 
@@ -3609,8 +3985,8 @@ public Builder addErrors(int index, com.google.privacy.dlp.v2.Error.Builder buil * * *
-     * Output only. A stream of errors encountered when the trigger was activated. Repeated
-     * errors may result in the JobTrigger automatically being paused.
+     * Output only. A stream of errors encountered when the trigger was activated.
+     * Repeated errors may result in the JobTrigger automatically being paused.
      * Will return the last 100 errors. Whenever the JobTrigger is modified
      * this list will be cleared.
      * 
@@ -3634,8 +4010,8 @@ public Builder addAllErrors( * * *
-     * Output only. A stream of errors encountered when the trigger was activated. Repeated
-     * errors may result in the JobTrigger automatically being paused.
+     * Output only. A stream of errors encountered when the trigger was activated.
+     * Repeated errors may result in the JobTrigger automatically being paused.
      * Will return the last 100 errors. Whenever the JobTrigger is modified
      * this list will be cleared.
      * 
@@ -3658,8 +4034,8 @@ public Builder clearErrors() { * * *
-     * Output only. A stream of errors encountered when the trigger was activated. Repeated
-     * errors may result in the JobTrigger automatically being paused.
+     * Output only. A stream of errors encountered when the trigger was activated.
+     * Repeated errors may result in the JobTrigger automatically being paused.
      * Will return the last 100 errors. Whenever the JobTrigger is modified
      * this list will be cleared.
      * 
@@ -3682,8 +4058,8 @@ public Builder removeErrors(int index) { * * *
-     * Output only. A stream of errors encountered when the trigger was activated. Repeated
-     * errors may result in the JobTrigger automatically being paused.
+     * Output only. A stream of errors encountered when the trigger was activated.
+     * Repeated errors may result in the JobTrigger automatically being paused.
      * Will return the last 100 errors. Whenever the JobTrigger is modified
      * this list will be cleared.
      * 
@@ -3699,8 +4075,8 @@ public com.google.privacy.dlp.v2.Error.Builder getErrorsBuilder(int index) { * * *
-     * Output only. A stream of errors encountered when the trigger was activated. Repeated
-     * errors may result in the JobTrigger automatically being paused.
+     * Output only. A stream of errors encountered when the trigger was activated.
+     * Repeated errors may result in the JobTrigger automatically being paused.
      * Will return the last 100 errors. Whenever the JobTrigger is modified
      * this list will be cleared.
      * 
@@ -3720,8 +4096,8 @@ public com.google.privacy.dlp.v2.ErrorOrBuilder getErrorsOrBuilder(int index) { * * *
-     * Output only. A stream of errors encountered when the trigger was activated. Repeated
-     * errors may result in the JobTrigger automatically being paused.
+     * Output only. A stream of errors encountered when the trigger was activated.
+     * Repeated errors may result in the JobTrigger automatically being paused.
      * Will return the last 100 errors. Whenever the JobTrigger is modified
      * this list will be cleared.
      * 
@@ -3742,8 +4118,8 @@ public com.google.privacy.dlp.v2.ErrorOrBuilder getErrorsOrBuilder(int index) { * * *
-     * Output only. A stream of errors encountered when the trigger was activated. Repeated
-     * errors may result in the JobTrigger automatically being paused.
+     * Output only. A stream of errors encountered when the trigger was activated.
+     * Repeated errors may result in the JobTrigger automatically being paused.
      * Will return the last 100 errors. Whenever the JobTrigger is modified
      * this list will be cleared.
      * 
@@ -3760,8 +4136,8 @@ public com.google.privacy.dlp.v2.Error.Builder addErrorsBuilder() { * * *
-     * Output only. A stream of errors encountered when the trigger was activated. Repeated
-     * errors may result in the JobTrigger automatically being paused.
+     * Output only. A stream of errors encountered when the trigger was activated.
+     * Repeated errors may result in the JobTrigger automatically being paused.
      * Will return the last 100 errors. Whenever the JobTrigger is modified
      * this list will be cleared.
      * 
@@ -3778,8 +4154,8 @@ public com.google.privacy.dlp.v2.Error.Builder addErrorsBuilder(int index) { * * *
-     * Output only. A stream of errors encountered when the trigger was activated. Repeated
-     * errors may result in the JobTrigger automatically being paused.
+     * Output only. A stream of errors encountered when the trigger was activated.
+     * Repeated errors may result in the JobTrigger automatically being paused.
      * Will return the last 100 errors. Whenever the JobTrigger is modified
      * this list will be cleared.
      * 
diff --git a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/JobTriggerOrBuilder.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/JobTriggerOrBuilder.java index 5acc7e47..f68c70f7 100644 --- a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/JobTriggerOrBuilder.java +++ b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/JobTriggerOrBuilder.java @@ -203,8 +203,8 @@ public interface JobTriggerOrBuilder * * *
-   * Output only. A stream of errors encountered when the trigger was activated. Repeated
-   * errors may result in the JobTrigger automatically being paused.
+   * Output only. A stream of errors encountered when the trigger was activated.
+   * Repeated errors may result in the JobTrigger automatically being paused.
    * Will return the last 100 errors. Whenever the JobTrigger is modified
    * this list will be cleared.
    * 
@@ -218,8 +218,8 @@ public interface JobTriggerOrBuilder * * *
-   * Output only. A stream of errors encountered when the trigger was activated. Repeated
-   * errors may result in the JobTrigger automatically being paused.
+   * Output only. A stream of errors encountered when the trigger was activated.
+   * Repeated errors may result in the JobTrigger automatically being paused.
    * Will return the last 100 errors. Whenever the JobTrigger is modified
    * this list will be cleared.
    * 
@@ -233,8 +233,8 @@ public interface JobTriggerOrBuilder * * *
-   * Output only. A stream of errors encountered when the trigger was activated. Repeated
-   * errors may result in the JobTrigger automatically being paused.
+   * Output only. A stream of errors encountered when the trigger was activated.
+   * Repeated errors may result in the JobTrigger automatically being paused.
    * Will return the last 100 errors. Whenever the JobTrigger is modified
    * this list will be cleared.
    * 
@@ -248,8 +248,8 @@ public interface JobTriggerOrBuilder * * *
-   * Output only. A stream of errors encountered when the trigger was activated. Repeated
-   * errors may result in the JobTrigger automatically being paused.
+   * Output only. A stream of errors encountered when the trigger was activated.
+   * Repeated errors may result in the JobTrigger automatically being paused.
    * Will return the last 100 errors. Whenever the JobTrigger is modified
    * this list will be cleared.
    * 
@@ -263,8 +263,8 @@ public interface JobTriggerOrBuilder * * *
-   * Output only. A stream of errors encountered when the trigger was activated. Repeated
-   * errors may result in the JobTrigger automatically being paused.
+   * Output only. A stream of errors encountered when the trigger was activated.
+   * Repeated errors may result in the JobTrigger automatically being paused.
    * Will return the last 100 errors. Whenever the JobTrigger is modified
    * this list will be cleared.
    * 
diff --git a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/Location.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/Location.java index 7f9bedfd..330c4320 100644 --- a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/Location.java +++ b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/Location.java @@ -113,6 +113,22 @@ private Location( com.google.privacy.dlp.v2.ContentLocation.parser(), extensionRegistry)); break; } + case 66: + { + com.google.privacy.dlp.v2.Container.Builder subBuilder = null; + if (container_ != null) { + subBuilder = container_.toBuilder(); + } + container_ = + input.readMessage( + com.google.privacy.dlp.v2.Container.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(container_); + container_ = subBuilder.buildPartial(); + } + + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -326,6 +342,51 @@ public com.google.privacy.dlp.v2.ContentLocationOrBuilder getContentLocationsOrB return contentLocations_.get(index); } + public static final int CONTAINER_FIELD_NUMBER = 8; + private com.google.privacy.dlp.v2.Container container_; + /** + * + * + *
+   * Information about the container where this finding occurred, if available.
+   * 
+ * + * .google.privacy.dlp.v2.Container container = 8; + * + * @return Whether the container field is set. + */ + public boolean hasContainer() { + return container_ != null; + } + /** + * + * + *
+   * Information about the container where this finding occurred, if available.
+   * 
+ * + * .google.privacy.dlp.v2.Container container = 8; + * + * @return The container. + */ + public com.google.privacy.dlp.v2.Container getContainer() { + return container_ == null + ? com.google.privacy.dlp.v2.Container.getDefaultInstance() + : container_; + } + /** + * + * + *
+   * Information about the container where this finding occurred, if available.
+   * 
+ * + * .google.privacy.dlp.v2.Container container = 8; + */ + public com.google.privacy.dlp.v2.ContainerOrBuilder getContainerOrBuilder() { + return getContainer(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -349,6 +410,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < contentLocations_.size(); i++) { output.writeMessage(7, contentLocations_.get(i)); } + if (container_ != null) { + output.writeMessage(8, getContainer()); + } unknownFields.writeTo(output); } @@ -367,6 +431,9 @@ public int getSerializedSize() { for (int i = 0; i < contentLocations_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, contentLocations_.get(i)); } + if (container_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getContainer()); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -391,6 +458,10 @@ public boolean equals(final java.lang.Object obj) { if (!getCodepointRange().equals(other.getCodepointRange())) return false; } if (!getContentLocationsList().equals(other.getContentLocationsList())) return false; + if (hasContainer() != other.hasContainer()) return false; + if (hasContainer()) { + if (!getContainer().equals(other.getContainer())) return false; + } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -414,6 +485,10 @@ public int hashCode() { hash = (37 * hash) + CONTENT_LOCATIONS_FIELD_NUMBER; hash = (53 * hash) + getContentLocationsList().hashCode(); } + if (hasContainer()) { + hash = (37 * hash) + CONTAINER_FIELD_NUMBER; + hash = (53 * hash) + getContainer().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -578,6 +653,12 @@ public Builder clear() { } else { contentLocationsBuilder_.clear(); } + if (containerBuilder_ == null) { + container_ = null; + } else { + container_ = null; + containerBuilder_ = null; + } return this; } @@ -624,6 +705,11 @@ public com.google.privacy.dlp.v2.Location buildPartial() { } else { result.contentLocations_ = contentLocationsBuilder_.build(); } + if (containerBuilder_ == null) { + result.container_ = container_; + } else { + result.container_ = containerBuilder_.build(); + } onBuilt(); return result; } @@ -706,6 +792,9 @@ public Builder mergeFrom(com.google.privacy.dlp.v2.Location other) { } } } + if (other.hasContainer()) { + mergeContainer(other.getContainer()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -1534,6 +1623,191 @@ public com.google.privacy.dlp.v2.ContentLocation.Builder addContentLocationsBuil return contentLocationsBuilder_; } + private com.google.privacy.dlp.v2.Container container_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.Container, + com.google.privacy.dlp.v2.Container.Builder, + com.google.privacy.dlp.v2.ContainerOrBuilder> + containerBuilder_; + /** + * + * + *
+     * Information about the container where this finding occurred, if available.
+     * 
+ * + * .google.privacy.dlp.v2.Container container = 8; + * + * @return Whether the container field is set. + */ + public boolean hasContainer() { + return containerBuilder_ != null || container_ != null; + } + /** + * + * + *
+     * Information about the container where this finding occurred, if available.
+     * 
+ * + * .google.privacy.dlp.v2.Container container = 8; + * + * @return The container. + */ + public com.google.privacy.dlp.v2.Container getContainer() { + if (containerBuilder_ == null) { + return container_ == null + ? com.google.privacy.dlp.v2.Container.getDefaultInstance() + : container_; + } else { + return containerBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Information about the container where this finding occurred, if available.
+     * 
+ * + * .google.privacy.dlp.v2.Container container = 8; + */ + public Builder setContainer(com.google.privacy.dlp.v2.Container value) { + if (containerBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + container_ = value; + onChanged(); + } else { + containerBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Information about the container where this finding occurred, if available.
+     * 
+ * + * .google.privacy.dlp.v2.Container container = 8; + */ + public Builder setContainer(com.google.privacy.dlp.v2.Container.Builder builderForValue) { + if (containerBuilder_ == null) { + container_ = builderForValue.build(); + onChanged(); + } else { + containerBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Information about the container where this finding occurred, if available.
+     * 
+ * + * .google.privacy.dlp.v2.Container container = 8; + */ + public Builder mergeContainer(com.google.privacy.dlp.v2.Container value) { + if (containerBuilder_ == null) { + if (container_ != null) { + container_ = + com.google.privacy.dlp.v2.Container.newBuilder(container_) + .mergeFrom(value) + .buildPartial(); + } else { + container_ = value; + } + onChanged(); + } else { + containerBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Information about the container where this finding occurred, if available.
+     * 
+ * + * .google.privacy.dlp.v2.Container container = 8; + */ + public Builder clearContainer() { + if (containerBuilder_ == null) { + container_ = null; + onChanged(); + } else { + container_ = null; + containerBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Information about the container where this finding occurred, if available.
+     * 
+ * + * .google.privacy.dlp.v2.Container container = 8; + */ + public com.google.privacy.dlp.v2.Container.Builder getContainerBuilder() { + + onChanged(); + return getContainerFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Information about the container where this finding occurred, if available.
+     * 
+ * + * .google.privacy.dlp.v2.Container container = 8; + */ + public com.google.privacy.dlp.v2.ContainerOrBuilder getContainerOrBuilder() { + if (containerBuilder_ != null) { + return containerBuilder_.getMessageOrBuilder(); + } else { + return container_ == null + ? com.google.privacy.dlp.v2.Container.getDefaultInstance() + : container_; + } + } + /** + * + * + *
+     * Information about the container where this finding occurred, if available.
+     * 
+ * + * .google.privacy.dlp.v2.Container container = 8; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.Container, + com.google.privacy.dlp.v2.Container.Builder, + com.google.privacy.dlp.v2.ContainerOrBuilder> + getContainerFieldBuilder() { + if (containerBuilder_ == null) { + containerBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.Container, + com.google.privacy.dlp.v2.Container.Builder, + com.google.privacy.dlp.v2.ContainerOrBuilder>( + getContainer(), getParentForChildren(), isClean()); + container_ = null; + } + return containerBuilder_; + } + @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/LocationOrBuilder.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/LocationOrBuilder.java index 7217b432..1291b914 100644 --- a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/LocationOrBuilder.java +++ b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/LocationOrBuilder.java @@ -167,4 +167,39 @@ public interface LocationOrBuilder * repeated .google.privacy.dlp.v2.ContentLocation content_locations = 7; */ com.google.privacy.dlp.v2.ContentLocationOrBuilder getContentLocationsOrBuilder(int index); + + /** + * + * + *
+   * Information about the container where this finding occurred, if available.
+   * 
+ * + * .google.privacy.dlp.v2.Container container = 8; + * + * @return Whether the container field is set. + */ + boolean hasContainer(); + /** + * + * + *
+   * Information about the container where this finding occurred, if available.
+   * 
+ * + * .google.privacy.dlp.v2.Container container = 8; + * + * @return The container. + */ + com.google.privacy.dlp.v2.Container getContainer(); + /** + * + * + *
+   * Information about the container where this finding occurred, if available.
+   * 
+ * + * .google.privacy.dlp.v2.Container container = 8; + */ + com.google.privacy.dlp.v2.ContainerOrBuilder getContainerOrBuilder(); } diff --git a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/Manual.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/Manual.java new file mode 100644 index 00000000..4514a2f0 --- /dev/null +++ b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/Manual.java @@ -0,0 +1,452 @@ +/* + * 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; + +/** + * + * + *
+ * Job trigger option for hybrid jobs. Jobs must be manually created
+ * and finished.
+ * 
+ * + * Protobuf type {@code google.privacy.dlp.v2.Manual} + */ +public final class Manual extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2.Manual) + ManualOrBuilder { + private static final long serialVersionUID = 0L; + // Use Manual.newBuilder() to construct. + private Manual(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Manual() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Manual(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private Manual( + 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 (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_Manual_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_Manual_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.privacy.dlp.v2.Manual.class, com.google.privacy.dlp.v2.Manual.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.Manual)) { + return super.equals(obj); + } + com.google.privacy.dlp.v2.Manual other = (com.google.privacy.dlp.v2.Manual) 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.Manual parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.privacy.dlp.v2.Manual 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.Manual parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.privacy.dlp.v2.Manual 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.Manual parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.privacy.dlp.v2.Manual 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.Manual parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.privacy.dlp.v2.Manual 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.Manual parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.privacy.dlp.v2.Manual 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.Manual 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.Manual 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.Manual 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; + } + /** + * + * + *
+   * Job trigger option for hybrid jobs. Jobs must be manually created
+   * and finished.
+   * 
+ * + * Protobuf type {@code google.privacy.dlp.v2.Manual} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.privacy.dlp.v2.Manual) + com.google.privacy.dlp.v2.ManualOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_Manual_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_Manual_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.privacy.dlp.v2.Manual.class, + com.google.privacy.dlp.v2.Manual.Builder.class); + } + + // Construct using com.google.privacy.dlp.v2.Manual.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_Manual_descriptor; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.Manual getDefaultInstanceForType() { + return com.google.privacy.dlp.v2.Manual.getDefaultInstance(); + } + + @java.lang.Override + public com.google.privacy.dlp.v2.Manual build() { + com.google.privacy.dlp.v2.Manual result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.Manual buildPartial() { + com.google.privacy.dlp.v2.Manual result = new com.google.privacy.dlp.v2.Manual(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.Manual) { + return mergeFrom((com.google.privacy.dlp.v2.Manual) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.privacy.dlp.v2.Manual other) { + if (other == com.google.privacy.dlp.v2.Manual.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.Manual parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.privacy.dlp.v2.Manual) 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.Manual) + } + + // @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.Manual) + private static final com.google.privacy.dlp.v2.Manual DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.privacy.dlp.v2.Manual(); + } + + public static com.google.privacy.dlp.v2.Manual getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Manual parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Manual(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.Manual getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ManualOrBuilder.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ManualOrBuilder.java new file mode 100644 index 00000000..14d79c0a --- /dev/null +++ b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ManualOrBuilder.java @@ -0,0 +1,24 @@ +/* + * 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 ManualOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.privacy.dlp.v2.Manual) + com.google.protobuf.MessageOrBuilder {} 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 de9c92cb..75452c2c 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 @@ -132,6 +132,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * Predefined schemas for storing findings.
+   * Only for use with external storage.
    * 
* * Protobuf enum {@code google.privacy.dlp.v2.OutputStorageConfig.OutputSchema} @@ -487,6 +488,7 @@ public com.google.privacy.dlp.v2.BigQueryTableOrBuilder getTableOrBuilder() { * If unspecified, then all available columns will be used for a new table or * an (existing) table with no schema, and no changes will be made to an * existing table that has a schema. + * Only for use with external storage. * * * .google.privacy.dlp.v2.OutputStorageConfig.OutputSchema output_schema = 3; @@ -508,6 +510,7 @@ public int getOutputSchemaValue() { * If unspecified, then all available columns will be used for a new table or * an (existing) table with no schema, and no changes will be made to an * existing table that has a schema. + * Only for use with external storage. * * * .google.privacy.dlp.v2.OutputStorageConfig.OutputSchema output_schema = 3; @@ -1216,6 +1219,7 @@ public com.google.privacy.dlp.v2.BigQueryTableOrBuilder getTableOrBuilder() { * If unspecified, then all available columns will be used for a new table or * an (existing) table with no schema, and no changes will be made to an * existing table that has a schema. + * Only for use with external storage. * * * .google.privacy.dlp.v2.OutputStorageConfig.OutputSchema output_schema = 3; @@ -1237,6 +1241,7 @@ public int getOutputSchemaValue() { * If unspecified, then all available columns will be used for a new table or * an (existing) table with no schema, and no changes will be made to an * existing table that has a schema. + * Only for use with external storage. * * * .google.privacy.dlp.v2.OutputStorageConfig.OutputSchema output_schema = 3; @@ -1261,6 +1266,7 @@ public Builder setOutputSchemaValue(int value) { * If unspecified, then all available columns will be used for a new table or * an (existing) table with no schema, and no changes will be made to an * existing table that has a schema. + * Only for use with external storage. * * * .google.privacy.dlp.v2.OutputStorageConfig.OutputSchema output_schema = 3; @@ -1287,6 +1293,7 @@ public com.google.privacy.dlp.v2.OutputStorageConfig.OutputSchema getOutputSchem * If unspecified, then all available columns will be used for a new table or * an (existing) table with no schema, and no changes will be made to an * existing table that has a schema. + * Only for use with external storage. * * * .google.privacy.dlp.v2.OutputStorageConfig.OutputSchema output_schema = 3; @@ -1316,6 +1323,7 @@ public Builder setOutputSchema( * If unspecified, then all available columns will be used for a new table or * an (existing) table with no schema, and no changes will be made to an * existing table that has a schema. + * Only for use with external storage. * * * .google.privacy.dlp.v2.OutputStorageConfig.OutputSchema output_schema = 3; 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 1fe06e79..d949dab4 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 @@ -103,6 +103,7 @@ public interface OutputStorageConfigOrBuilder * If unspecified, then all available columns will be used for a new table or * an (existing) table with no schema, and no changes will be made to an * existing table that has a schema. + * Only for use with external storage. * * * .google.privacy.dlp.v2.OutputStorageConfig.OutputSchema output_schema = 3; @@ -122,6 +123,7 @@ public interface OutputStorageConfigOrBuilder * If unspecified, then all available columns will be used for a new table or * an (existing) table with no schema, and no changes will be made to an * existing table that has a schema. + * Only for use with external storage. * * * .google.privacy.dlp.v2.OutputStorageConfig.OutputSchema output_schema = 3; diff --git a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/PrivacyMetric.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/PrivacyMetric.java index f33ea53a..5b2349d1 100644 --- a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/PrivacyMetric.java +++ b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/PrivacyMetric.java @@ -4693,8 +4693,8 @@ public interface KMapEstimationConfigOrBuilder * * *
-     * Required. Fields considered to be quasi-identifiers. No two columns can have the
-     * same tag.
+     * Required. Fields considered to be quasi-identifiers. No two columns can
+     * have the same tag.
      * 
* * @@ -4707,8 +4707,8 @@ public interface KMapEstimationConfigOrBuilder * * *
-     * Required. Fields considered to be quasi-identifiers. No two columns can have the
-     * same tag.
+     * Required. Fields considered to be quasi-identifiers. No two columns can
+     * have the same tag.
      * 
* * @@ -4720,8 +4720,8 @@ public interface KMapEstimationConfigOrBuilder * * *
-     * Required. Fields considered to be quasi-identifiers. No two columns can have the
-     * same tag.
+     * Required. Fields considered to be quasi-identifiers. No two columns can
+     * have the same tag.
      * 
* * @@ -4733,8 +4733,8 @@ public interface KMapEstimationConfigOrBuilder * * *
-     * Required. Fields considered to be quasi-identifiers. No two columns can have the
-     * same tag.
+     * Required. Fields considered to be quasi-identifiers. No two columns can
+     * have the same tag.
      * 
* * @@ -4749,8 +4749,8 @@ public interface KMapEstimationConfigOrBuilder * * *
-     * Required. Fields considered to be quasi-identifiers. No two columns can have the
-     * same tag.
+     * Required. Fields considered to be quasi-identifiers. No two columns can
+     * have the same tag.
      * 
* * @@ -6979,8 +6979,8 @@ public interface AuxiliaryTableOrBuilder * * *
-       * Required. The relative frequency column must contain a floating-point number
-       * between 0 and 1 (inclusive). Null values are assumed to be zero.
+       * Required. The relative frequency column must contain a floating-point
+       * number between 0 and 1 (inclusive). Null values are assumed to be zero.
        * 
* * @@ -6994,8 +6994,8 @@ public interface AuxiliaryTableOrBuilder * * *
-       * Required. The relative frequency column must contain a floating-point number
-       * between 0 and 1 (inclusive). Null values are assumed to be zero.
+       * Required. The relative frequency column must contain a floating-point
+       * number between 0 and 1 (inclusive). Null values are assumed to be zero.
        * 
* * @@ -7009,8 +7009,8 @@ public interface AuxiliaryTableOrBuilder * * *
-       * Required. The relative frequency column must contain a floating-point number
-       * between 0 and 1 (inclusive). Null values are assumed to be zero.
+       * Required. The relative frequency column must contain a floating-point
+       * number between 0 and 1 (inclusive). Null values are assumed to be zero.
        * 
* * @@ -8339,8 +8339,8 @@ public int getQuasiIdsCount() { * * *
-       * Required. The relative frequency column must contain a floating-point number
-       * between 0 and 1 (inclusive). Null values are assumed to be zero.
+       * Required. The relative frequency column must contain a floating-point
+       * number between 0 and 1 (inclusive). Null values are assumed to be zero.
        * 
* * @@ -8356,8 +8356,8 @@ public boolean hasRelativeFrequency() { * * *
-       * Required. The relative frequency column must contain a floating-point number
-       * between 0 and 1 (inclusive). Null values are assumed to be zero.
+       * Required. The relative frequency column must contain a floating-point
+       * number between 0 and 1 (inclusive). Null values are assumed to be zero.
        * 
* * @@ -8375,8 +8375,8 @@ public com.google.privacy.dlp.v2.FieldId getRelativeFrequency() { * * *
-       * Required. The relative frequency column must contain a floating-point number
-       * between 0 and 1 (inclusive). Null values are assumed to be zero.
+       * Required. The relative frequency column must contain a floating-point
+       * number between 0 and 1 (inclusive). Null values are assumed to be zero.
        * 
* * @@ -9496,8 +9496,8 @@ public Builder removeQuasiIds(int index) { * * *
-         * Required. The relative frequency column must contain a floating-point number
-         * between 0 and 1 (inclusive). Null values are assumed to be zero.
+         * Required. The relative frequency column must contain a floating-point
+         * number between 0 and 1 (inclusive). Null values are assumed to be zero.
          * 
* * @@ -9513,8 +9513,8 @@ public boolean hasRelativeFrequency() { * * *
-         * Required. The relative frequency column must contain a floating-point number
-         * between 0 and 1 (inclusive). Null values are assumed to be zero.
+         * Required. The relative frequency column must contain a floating-point
+         * number between 0 and 1 (inclusive). Null values are assumed to be zero.
          * 
* * @@ -9536,8 +9536,8 @@ public com.google.privacy.dlp.v2.FieldId getRelativeFrequency() { * * *
-         * Required. The relative frequency column must contain a floating-point number
-         * between 0 and 1 (inclusive). Null values are assumed to be zero.
+         * Required. The relative frequency column must contain a floating-point
+         * number between 0 and 1 (inclusive). Null values are assumed to be zero.
          * 
* * @@ -9561,8 +9561,8 @@ public Builder setRelativeFrequency(com.google.privacy.dlp.v2.FieldId value) { * * *
-         * Required. The relative frequency column must contain a floating-point number
-         * between 0 and 1 (inclusive). Null values are assumed to be zero.
+         * Required. The relative frequency column must contain a floating-point
+         * number between 0 and 1 (inclusive). Null values are assumed to be zero.
          * 
* * @@ -9584,8 +9584,8 @@ public Builder setRelativeFrequency( * * *
-         * Required. The relative frequency column must contain a floating-point number
-         * between 0 and 1 (inclusive). Null values are assumed to be zero.
+         * Required. The relative frequency column must contain a floating-point
+         * number between 0 and 1 (inclusive). Null values are assumed to be zero.
          * 
* * @@ -9613,8 +9613,8 @@ public Builder mergeRelativeFrequency(com.google.privacy.dlp.v2.FieldId value) { * * *
-         * Required. The relative frequency column must contain a floating-point number
-         * between 0 and 1 (inclusive). Null values are assumed to be zero.
+         * Required. The relative frequency column must contain a floating-point
+         * number between 0 and 1 (inclusive). Null values are assumed to be zero.
          * 
* * @@ -9636,8 +9636,8 @@ public Builder clearRelativeFrequency() { * * *
-         * Required. The relative frequency column must contain a floating-point number
-         * between 0 and 1 (inclusive). Null values are assumed to be zero.
+         * Required. The relative frequency column must contain a floating-point
+         * number between 0 and 1 (inclusive). Null values are assumed to be zero.
          * 
* * @@ -9653,8 +9653,8 @@ public com.google.privacy.dlp.v2.FieldId.Builder getRelativeFrequencyBuilder() { * * *
-         * Required. The relative frequency column must contain a floating-point number
-         * between 0 and 1 (inclusive). Null values are assumed to be zero.
+         * Required. The relative frequency column must contain a floating-point
+         * number between 0 and 1 (inclusive). Null values are assumed to be zero.
          * 
* * @@ -9674,8 +9674,8 @@ public com.google.privacy.dlp.v2.FieldIdOrBuilder getRelativeFrequencyOrBuilder( * * *
-         * Required. The relative frequency column must contain a floating-point number
-         * between 0 and 1 (inclusive). Null values are assumed to be zero.
+         * Required. The relative frequency column must contain a floating-point
+         * number between 0 and 1 (inclusive). Null values are assumed to be zero.
          * 
* * @@ -9763,8 +9763,8 @@ public com.google.protobuf.Parser getParserForType() { * * *
-     * Required. Fields considered to be quasi-identifiers. No two columns can have the
-     * same tag.
+     * Required. Fields considered to be quasi-identifiers. No two columns can
+     * have the same tag.
      * 
* * @@ -9779,8 +9779,8 @@ public com.google.protobuf.Parser getParserForType() { * * *
-     * Required. Fields considered to be quasi-identifiers. No two columns can have the
-     * same tag.
+     * Required. Fields considered to be quasi-identifiers. No two columns can
+     * have the same tag.
      * 
* * @@ -9797,8 +9797,8 @@ public com.google.protobuf.Parser getParserForType() { * * *
-     * Required. Fields considered to be quasi-identifiers. No two columns can have the
-     * same tag.
+     * Required. Fields considered to be quasi-identifiers. No two columns can
+     * have the same tag.
      * 
* * @@ -9812,8 +9812,8 @@ public int getQuasiIdsCount() { * * *
-     * Required. Fields considered to be quasi-identifiers. No two columns can have the
-     * same tag.
+     * Required. Fields considered to be quasi-identifiers. No two columns can
+     * have the same tag.
      * 
* * @@ -9828,8 +9828,8 @@ public com.google.privacy.dlp.v2.PrivacyMetric.KMapEstimationConfig.TaggedField * * *
-     * Required. Fields considered to be quasi-identifiers. No two columns can have the
-     * same tag.
+     * Required. Fields considered to be quasi-identifiers. No two columns can
+     * have the same tag.
      * 
* * @@ -10453,8 +10453,8 @@ private void ensureQuasiIdsIsMutable() { * * *
-       * Required. Fields considered to be quasi-identifiers. No two columns can have the
-       * same tag.
+       * Required. Fields considered to be quasi-identifiers. No two columns can
+       * have the same tag.
        * 
* * @@ -10474,8 +10474,8 @@ private void ensureQuasiIdsIsMutable() { * * *
-       * Required. Fields considered to be quasi-identifiers. No two columns can have the
-       * same tag.
+       * Required. Fields considered to be quasi-identifiers. No two columns can
+       * have the same tag.
        * 
* * @@ -10493,8 +10493,8 @@ public int getQuasiIdsCount() { * * *
-       * Required. Fields considered to be quasi-identifiers. No two columns can have the
-       * same tag.
+       * Required. Fields considered to be quasi-identifiers. No two columns can
+       * have the same tag.
        * 
* * @@ -10513,8 +10513,8 @@ public com.google.privacy.dlp.v2.PrivacyMetric.KMapEstimationConfig.TaggedField * * *
-       * Required. Fields considered to be quasi-identifiers. No two columns can have the
-       * same tag.
+       * Required. Fields considered to be quasi-identifiers. No two columns can
+       * have the same tag.
        * 
* * @@ -10540,8 +10540,8 @@ public Builder setQuasiIds( * * *
-       * Required. Fields considered to be quasi-identifiers. No two columns can have the
-       * same tag.
+       * Required. Fields considered to be quasi-identifiers. No two columns can
+       * have the same tag.
        * 
* * @@ -10565,8 +10565,8 @@ public Builder setQuasiIds( * * *
-       * Required. Fields considered to be quasi-identifiers. No two columns can have the
-       * same tag.
+       * Required. Fields considered to be quasi-identifiers. No two columns can
+       * have the same tag.
        * 
* * @@ -10591,8 +10591,8 @@ public Builder addQuasiIds( * * *
-       * Required. Fields considered to be quasi-identifiers. No two columns can have the
-       * same tag.
+       * Required. Fields considered to be quasi-identifiers. No two columns can
+       * have the same tag.
        * 
* * @@ -10618,8 +10618,8 @@ public Builder addQuasiIds( * * *
-       * Required. Fields considered to be quasi-identifiers. No two columns can have the
-       * same tag.
+       * Required. Fields considered to be quasi-identifiers. No two columns can
+       * have the same tag.
        * 
* * @@ -10642,8 +10642,8 @@ public Builder addQuasiIds( * * *
-       * Required. Fields considered to be quasi-identifiers. No two columns can have the
-       * same tag.
+       * Required. Fields considered to be quasi-identifiers. No two columns can
+       * have the same tag.
        * 
* * @@ -10667,8 +10667,8 @@ public Builder addQuasiIds( * * *
-       * Required. Fields considered to be quasi-identifiers. No two columns can have the
-       * same tag.
+       * Required. Fields considered to be quasi-identifiers. No two columns can
+       * have the same tag.
        * 
* * @@ -10693,8 +10693,8 @@ public Builder addAllQuasiIds( * * *
-       * Required. Fields considered to be quasi-identifiers. No two columns can have the
-       * same tag.
+       * Required. Fields considered to be quasi-identifiers. No two columns can
+       * have the same tag.
        * 
* * @@ -10715,8 +10715,8 @@ public Builder clearQuasiIds() { * * *
-       * Required. Fields considered to be quasi-identifiers. No two columns can have the
-       * same tag.
+       * Required. Fields considered to be quasi-identifiers. No two columns can
+       * have the same tag.
        * 
* * @@ -10737,8 +10737,8 @@ public Builder removeQuasiIds(int index) { * * *
-       * Required. Fields considered to be quasi-identifiers. No two columns can have the
-       * same tag.
+       * Required. Fields considered to be quasi-identifiers. No two columns can
+       * have the same tag.
        * 
* * @@ -10753,8 +10753,8 @@ public Builder removeQuasiIds(int index) { * * *
-       * Required. Fields considered to be quasi-identifiers. No two columns can have the
-       * same tag.
+       * Required. Fields considered to be quasi-identifiers. No two columns can
+       * have the same tag.
        * 
* * @@ -10773,8 +10773,8 @@ public Builder removeQuasiIds(int index) { * * *
-       * Required. Fields considered to be quasi-identifiers. No two columns can have the
-       * same tag.
+       * Required. Fields considered to be quasi-identifiers. No two columns can
+       * have the same tag.
        * 
* * @@ -10795,8 +10795,8 @@ public Builder removeQuasiIds(int index) { * * *
-       * Required. Fields considered to be quasi-identifiers. No two columns can have the
-       * same tag.
+       * Required. Fields considered to be quasi-identifiers. No two columns can
+       * have the same tag.
        * 
* * @@ -10814,8 +10814,8 @@ public Builder removeQuasiIds(int index) { * * *
-       * Required. Fields considered to be quasi-identifiers. No two columns can have the
-       * same tag.
+       * Required. Fields considered to be quasi-identifiers. No two columns can
+       * have the same tag.
        * 
* * @@ -10834,8 +10834,8 @@ public Builder removeQuasiIds(int index) { * * *
-       * Required. Fields considered to be quasi-identifiers. No two columns can have the
-       * same tag.
+       * Required. Fields considered to be quasi-identifiers. No two columns can
+       * have the same tag.
        * 
* * @@ -11506,8 +11506,8 @@ public interface DeltaPresenceEstimationConfigOrBuilder * * *
-     * Required. Fields considered to be quasi-identifiers. No two fields can have the
-     * same tag.
+     * Required. Fields considered to be quasi-identifiers. No two fields can
+     * have the same tag.
      * 
* * @@ -11519,8 +11519,8 @@ public interface DeltaPresenceEstimationConfigOrBuilder * * *
-     * Required. Fields considered to be quasi-identifiers. No two fields can have the
-     * same tag.
+     * Required. Fields considered to be quasi-identifiers. No two fields can
+     * have the same tag.
      * 
* * @@ -11532,8 +11532,8 @@ public interface DeltaPresenceEstimationConfigOrBuilder * * *
-     * Required. Fields considered to be quasi-identifiers. No two fields can have the
-     * same tag.
+     * Required. Fields considered to be quasi-identifiers. No two fields can
+     * have the same tag.
      * 
* * @@ -11545,8 +11545,8 @@ public interface DeltaPresenceEstimationConfigOrBuilder * * *
-     * Required. Fields considered to be quasi-identifiers. No two fields can have the
-     * same tag.
+     * Required. Fields considered to be quasi-identifiers. No two fields can
+     * have the same tag.
      * 
* * @@ -11558,8 +11558,8 @@ public interface DeltaPresenceEstimationConfigOrBuilder * * *
-     * Required. Fields considered to be quasi-identifiers. No two fields can have the
-     * same tag.
+     * Required. Fields considered to be quasi-identifiers. No two fields can
+     * have the same tag.
      * 
* * @@ -11795,8 +11795,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-     * Required. Fields considered to be quasi-identifiers. No two fields can have the
-     * same tag.
+     * Required. Fields considered to be quasi-identifiers. No two fields can
+     * have the same tag.
      * 
* * @@ -11810,8 +11810,8 @@ public java.util.List getQuasiIdsList() { * * *
-     * Required. Fields considered to be quasi-identifiers. No two fields can have the
-     * same tag.
+     * Required. Fields considered to be quasi-identifiers. No two fields can
+     * have the same tag.
      * 
* * @@ -11826,8 +11826,8 @@ public java.util.List getQuasiIdsList() { * * *
-     * Required. Fields considered to be quasi-identifiers. No two fields can have the
-     * same tag.
+     * Required. Fields considered to be quasi-identifiers. No two fields can
+     * have the same tag.
      * 
* * @@ -11841,8 +11841,8 @@ public int getQuasiIdsCount() { * * *
-     * Required. Fields considered to be quasi-identifiers. No two fields can have the
-     * same tag.
+     * Required. Fields considered to be quasi-identifiers. No two fields can
+     * have the same tag.
      * 
* * @@ -11856,8 +11856,8 @@ public com.google.privacy.dlp.v2.QuasiId getQuasiIds(int index) { * * *
-     * Required. Fields considered to be quasi-identifiers. No two fields can have the
-     * same tag.
+     * Required. Fields considered to be quasi-identifiers. No two fields can
+     * have the same tag.
      * 
* * @@ -12464,8 +12464,8 @@ private void ensureQuasiIdsIsMutable() { * * *
-       * Required. Fields considered to be quasi-identifiers. No two fields can have the
-       * same tag.
+       * Required. Fields considered to be quasi-identifiers. No two fields can
+       * have the same tag.
        * 
* * @@ -12483,8 +12483,8 @@ public java.util.List getQuasiIdsList() { * * *
-       * Required. Fields considered to be quasi-identifiers. No two fields can have the
-       * same tag.
+       * Required. Fields considered to be quasi-identifiers. No two fields can
+       * have the same tag.
        * 
* * @@ -12502,8 +12502,8 @@ public int getQuasiIdsCount() { * * *
-       * Required. Fields considered to be quasi-identifiers. No two fields can have the
-       * same tag.
+       * Required. Fields considered to be quasi-identifiers. No two fields can
+       * have the same tag.
        * 
* * @@ -12521,8 +12521,8 @@ public com.google.privacy.dlp.v2.QuasiId getQuasiIds(int index) { * * *
-       * Required. Fields considered to be quasi-identifiers. No two fields can have the
-       * same tag.
+       * Required. Fields considered to be quasi-identifiers. No two fields can
+       * have the same tag.
        * 
* * @@ -12546,8 +12546,8 @@ public Builder setQuasiIds(int index, com.google.privacy.dlp.v2.QuasiId value) { * * *
-       * Required. Fields considered to be quasi-identifiers. No two fields can have the
-       * same tag.
+       * Required. Fields considered to be quasi-identifiers. No two fields can
+       * have the same tag.
        * 
* * @@ -12569,8 +12569,8 @@ public Builder setQuasiIds( * * *
-       * Required. Fields considered to be quasi-identifiers. No two fields can have the
-       * same tag.
+       * Required. Fields considered to be quasi-identifiers. No two fields can
+       * have the same tag.
        * 
* * @@ -12594,8 +12594,8 @@ public Builder addQuasiIds(com.google.privacy.dlp.v2.QuasiId value) { * * *
-       * Required. Fields considered to be quasi-identifiers. No two fields can have the
-       * same tag.
+       * Required. Fields considered to be quasi-identifiers. No two fields can
+       * have the same tag.
        * 
* * @@ -12619,8 +12619,8 @@ public Builder addQuasiIds(int index, com.google.privacy.dlp.v2.QuasiId value) { * * *
-       * Required. Fields considered to be quasi-identifiers. No two fields can have the
-       * same tag.
+       * Required. Fields considered to be quasi-identifiers. No two fields can
+       * have the same tag.
        * 
* * @@ -12641,8 +12641,8 @@ public Builder addQuasiIds(com.google.privacy.dlp.v2.QuasiId.Builder builderForV * * *
-       * Required. Fields considered to be quasi-identifiers. No two fields can have the
-       * same tag.
+       * Required. Fields considered to be quasi-identifiers. No two fields can
+       * have the same tag.
        * 
* * @@ -12664,8 +12664,8 @@ public Builder addQuasiIds( * * *
-       * Required. Fields considered to be quasi-identifiers. No two fields can have the
-       * same tag.
+       * Required. Fields considered to be quasi-identifiers. No two fields can
+       * have the same tag.
        * 
* * @@ -12687,8 +12687,8 @@ public Builder addAllQuasiIds( * * *
-       * Required. Fields considered to be quasi-identifiers. No two fields can have the
-       * same tag.
+       * Required. Fields considered to be quasi-identifiers. No two fields can
+       * have the same tag.
        * 
* * @@ -12709,8 +12709,8 @@ public Builder clearQuasiIds() { * * *
-       * Required. Fields considered to be quasi-identifiers. No two fields can have the
-       * same tag.
+       * Required. Fields considered to be quasi-identifiers. No two fields can
+       * have the same tag.
        * 
* * @@ -12731,8 +12731,8 @@ public Builder removeQuasiIds(int index) { * * *
-       * Required. Fields considered to be quasi-identifiers. No two fields can have the
-       * same tag.
+       * Required. Fields considered to be quasi-identifiers. No two fields can
+       * have the same tag.
        * 
* * @@ -12746,8 +12746,8 @@ public com.google.privacy.dlp.v2.QuasiId.Builder getQuasiIdsBuilder(int index) { * * *
-       * Required. Fields considered to be quasi-identifiers. No two fields can have the
-       * same tag.
+       * Required. Fields considered to be quasi-identifiers. No two fields can
+       * have the same tag.
        * 
* * @@ -12765,8 +12765,8 @@ public com.google.privacy.dlp.v2.QuasiIdOrBuilder getQuasiIdsOrBuilder(int index * * *
-       * Required. Fields considered to be quasi-identifiers. No two fields can have the
-       * same tag.
+       * Required. Fields considered to be quasi-identifiers. No two fields can
+       * have the same tag.
        * 
* * @@ -12785,8 +12785,8 @@ public com.google.privacy.dlp.v2.QuasiIdOrBuilder getQuasiIdsOrBuilder(int index * * *
-       * Required. Fields considered to be quasi-identifiers. No two fields can have the
-       * same tag.
+       * Required. Fields considered to be quasi-identifiers. No two fields can
+       * have the same tag.
        * 
* * @@ -12801,8 +12801,8 @@ public com.google.privacy.dlp.v2.QuasiId.Builder addQuasiIdsBuilder() { * * *
-       * Required. Fields considered to be quasi-identifiers. No two fields can have the
-       * same tag.
+       * Required. Fields considered to be quasi-identifiers. No two fields can
+       * have the same tag.
        * 
* * @@ -12817,8 +12817,8 @@ public com.google.privacy.dlp.v2.QuasiId.Builder addQuasiIdsBuilder(int index) { * * *
-       * Required. Fields considered to be quasi-identifiers. No two fields can have the
-       * same tag.
+       * Required. Fields considered to be quasi-identifiers. No two fields can
+       * have the same tag.
        * 
* * diff --git a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/RecordKey.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/RecordKey.java index 8133c238..021721ee 100644 --- a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/RecordKey.java +++ b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/RecordKey.java @@ -260,7 +260,7 @@ public com.google.privacy.dlp.v2.BigQueryKeyOrBuilder getBigQueryKeyOrBuilder() * *
    * Values of identifying columns in the given row. Order of values matches
-   * the order of field identifiers specified in the scanning request.
+   * the order of `identifying_fields` specified in the scanning request.
    * 
* * repeated string id_values = 5; @@ -275,7 +275,7 @@ public com.google.protobuf.ProtocolStringList getIdValuesList() { * *
    * Values of identifying columns in the given row. Order of values matches
-   * the order of field identifiers specified in the scanning request.
+   * the order of `identifying_fields` specified in the scanning request.
    * 
* * repeated string id_values = 5; @@ -290,7 +290,7 @@ public int getIdValuesCount() { * *
    * Values of identifying columns in the given row. Order of values matches
-   * the order of field identifiers specified in the scanning request.
+   * the order of `identifying_fields` specified in the scanning request.
    * 
* * repeated string id_values = 5; @@ -306,7 +306,7 @@ public java.lang.String getIdValues(int index) { * *
    * Values of identifying columns in the given row. Order of values matches
-   * the order of field identifiers specified in the scanning request.
+   * the order of `identifying_fields` specified in the scanning request.
    * 
* * repeated string id_values = 5; @@ -1020,7 +1020,7 @@ private void ensureIdValuesIsMutable() { * *
      * Values of identifying columns in the given row. Order of values matches
-     * the order of field identifiers specified in the scanning request.
+     * the order of `identifying_fields` specified in the scanning request.
      * 
* * repeated string id_values = 5; @@ -1035,7 +1035,7 @@ public com.google.protobuf.ProtocolStringList getIdValuesList() { * *
      * Values of identifying columns in the given row. Order of values matches
-     * the order of field identifiers specified in the scanning request.
+     * the order of `identifying_fields` specified in the scanning request.
      * 
* * repeated string id_values = 5; @@ -1050,7 +1050,7 @@ public int getIdValuesCount() { * *
      * Values of identifying columns in the given row. Order of values matches
-     * the order of field identifiers specified in the scanning request.
+     * the order of `identifying_fields` specified in the scanning request.
      * 
* * repeated string id_values = 5; @@ -1066,7 +1066,7 @@ public java.lang.String getIdValues(int index) { * *
      * Values of identifying columns in the given row. Order of values matches
-     * the order of field identifiers specified in the scanning request.
+     * the order of `identifying_fields` specified in the scanning request.
      * 
* * repeated string id_values = 5; @@ -1082,7 +1082,7 @@ public com.google.protobuf.ByteString getIdValuesBytes(int index) { * *
      * Values of identifying columns in the given row. Order of values matches
-     * the order of field identifiers specified in the scanning request.
+     * the order of `identifying_fields` specified in the scanning request.
      * 
* * repeated string id_values = 5; @@ -1105,7 +1105,7 @@ public Builder setIdValues(int index, java.lang.String value) { * *
      * Values of identifying columns in the given row. Order of values matches
-     * the order of field identifiers specified in the scanning request.
+     * the order of `identifying_fields` specified in the scanning request.
      * 
* * repeated string id_values = 5; @@ -1127,7 +1127,7 @@ public Builder addIdValues(java.lang.String value) { * *
      * Values of identifying columns in the given row. Order of values matches
-     * the order of field identifiers specified in the scanning request.
+     * the order of `identifying_fields` specified in the scanning request.
      * 
* * repeated string id_values = 5; @@ -1146,7 +1146,7 @@ public Builder addAllIdValues(java.lang.Iterable values) { * *
      * Values of identifying columns in the given row. Order of values matches
-     * the order of field identifiers specified in the scanning request.
+     * the order of `identifying_fields` specified in the scanning request.
      * 
* * repeated string id_values = 5; @@ -1164,7 +1164,7 @@ public Builder clearIdValues() { * *
      * Values of identifying columns in the given row. Order of values matches
-     * the order of field identifiers specified in the scanning request.
+     * the order of `identifying_fields` specified in the scanning request.
      * 
* * repeated string id_values = 5; diff --git a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/RecordKeyOrBuilder.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/RecordKeyOrBuilder.java index 93cee4a1..5fa03079 100644 --- a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/RecordKeyOrBuilder.java +++ b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/RecordKeyOrBuilder.java @@ -58,7 +58,7 @@ public interface RecordKeyOrBuilder * *
    * Values of identifying columns in the given row. Order of values matches
-   * the order of field identifiers specified in the scanning request.
+   * the order of `identifying_fields` specified in the scanning request.
    * 
* * repeated string id_values = 5; @@ -71,7 +71,7 @@ public interface RecordKeyOrBuilder * *
    * Values of identifying columns in the given row. Order of values matches
-   * the order of field identifiers specified in the scanning request.
+   * the order of `identifying_fields` specified in the scanning request.
    * 
* * repeated string id_values = 5; @@ -84,7 +84,7 @@ public interface RecordKeyOrBuilder * *
    * Values of identifying columns in the given row. Order of values matches
-   * the order of field identifiers specified in the scanning request.
+   * the order of `identifying_fields` specified in the scanning request.
    * 
* * repeated string id_values = 5; @@ -98,7 +98,7 @@ public interface RecordKeyOrBuilder * *
    * Values of identifying columns in the given row. Order of values matches
-   * the order of field identifiers specified in the scanning request.
+   * the order of `identifying_fields` specified in the scanning request.
    * 
* * repeated string id_values = 5; diff --git a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/StatisticalTable.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/StatisticalTable.java index 99fb4317..241c5528 100644 --- a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/StatisticalTable.java +++ b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/StatisticalTable.java @@ -1271,8 +1271,8 @@ public com.google.privacy.dlp.v2.StatisticalTable.QuasiIdentifierField getQuasiI * * *
-   * Required. The relative frequency column must contain a floating-point number
-   * between 0 and 1 (inclusive). Null values are assumed to be zero.
+   * Required. The relative frequency column must contain a floating-point
+   * number between 0 and 1 (inclusive). Null values are assumed to be zero.
    * 
* * @@ -1288,8 +1288,8 @@ public boolean hasRelativeFrequency() { * * *
-   * Required. The relative frequency column must contain a floating-point number
-   * between 0 and 1 (inclusive). Null values are assumed to be zero.
+   * Required. The relative frequency column must contain a floating-point
+   * number between 0 and 1 (inclusive). Null values are assumed to be zero.
    * 
* * @@ -1307,8 +1307,8 @@ public com.google.privacy.dlp.v2.FieldId getRelativeFrequency() { * * *
-   * Required. The relative frequency column must contain a floating-point number
-   * between 0 and 1 (inclusive). Null values are assumed to be zero.
+   * Required. The relative frequency column must contain a floating-point
+   * number between 0 and 1 (inclusive). Null values are assumed to be zero.
    * 
* * @@ -2356,8 +2356,8 @@ public Builder removeQuasiIds(int index) { * * *
-     * Required. The relative frequency column must contain a floating-point number
-     * between 0 and 1 (inclusive). Null values are assumed to be zero.
+     * Required. The relative frequency column must contain a floating-point
+     * number between 0 and 1 (inclusive). Null values are assumed to be zero.
      * 
* * @@ -2373,8 +2373,8 @@ public boolean hasRelativeFrequency() { * * *
-     * Required. The relative frequency column must contain a floating-point number
-     * between 0 and 1 (inclusive). Null values are assumed to be zero.
+     * Required. The relative frequency column must contain a floating-point
+     * number between 0 and 1 (inclusive). Null values are assumed to be zero.
      * 
* * @@ -2396,8 +2396,8 @@ public com.google.privacy.dlp.v2.FieldId getRelativeFrequency() { * * *
-     * Required. The relative frequency column must contain a floating-point number
-     * between 0 and 1 (inclusive). Null values are assumed to be zero.
+     * Required. The relative frequency column must contain a floating-point
+     * number between 0 and 1 (inclusive). Null values are assumed to be zero.
      * 
* * @@ -2421,8 +2421,8 @@ public Builder setRelativeFrequency(com.google.privacy.dlp.v2.FieldId value) { * * *
-     * Required. The relative frequency column must contain a floating-point number
-     * between 0 and 1 (inclusive). Null values are assumed to be zero.
+     * Required. The relative frequency column must contain a floating-point
+     * number between 0 and 1 (inclusive). Null values are assumed to be zero.
      * 
* * @@ -2443,8 +2443,8 @@ public Builder setRelativeFrequency(com.google.privacy.dlp.v2.FieldId.Builder bu * * *
-     * Required. The relative frequency column must contain a floating-point number
-     * between 0 and 1 (inclusive). Null values are assumed to be zero.
+     * Required. The relative frequency column must contain a floating-point
+     * number between 0 and 1 (inclusive). Null values are assumed to be zero.
      * 
* * @@ -2472,8 +2472,8 @@ public Builder mergeRelativeFrequency(com.google.privacy.dlp.v2.FieldId value) { * * *
-     * Required. The relative frequency column must contain a floating-point number
-     * between 0 and 1 (inclusive). Null values are assumed to be zero.
+     * Required. The relative frequency column must contain a floating-point
+     * number between 0 and 1 (inclusive). Null values are assumed to be zero.
      * 
* * @@ -2495,8 +2495,8 @@ public Builder clearRelativeFrequency() { * * *
-     * Required. The relative frequency column must contain a floating-point number
-     * between 0 and 1 (inclusive). Null values are assumed to be zero.
+     * Required. The relative frequency column must contain a floating-point
+     * number between 0 and 1 (inclusive). Null values are assumed to be zero.
      * 
* * @@ -2512,8 +2512,8 @@ public com.google.privacy.dlp.v2.FieldId.Builder getRelativeFrequencyBuilder() { * * *
-     * Required. The relative frequency column must contain a floating-point number
-     * between 0 and 1 (inclusive). Null values are assumed to be zero.
+     * Required. The relative frequency column must contain a floating-point
+     * number between 0 and 1 (inclusive). Null values are assumed to be zero.
      * 
* * @@ -2533,8 +2533,8 @@ public com.google.privacy.dlp.v2.FieldIdOrBuilder getRelativeFrequencyOrBuilder( * * *
-     * Required. The relative frequency column must contain a floating-point number
-     * between 0 and 1 (inclusive). Null values are assumed to be zero.
+     * Required. The relative frequency column must contain a floating-point
+     * number between 0 and 1 (inclusive). Null values are assumed to be zero.
      * 
* * diff --git a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/StatisticalTableOrBuilder.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/StatisticalTableOrBuilder.java index 241449da..f38e3a00 100644 --- a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/StatisticalTableOrBuilder.java +++ b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/StatisticalTableOrBuilder.java @@ -128,8 +128,8 @@ com.google.privacy.dlp.v2.StatisticalTable.QuasiIdentifierFieldOrBuilder getQuas * * *
-   * Required. The relative frequency column must contain a floating-point number
-   * between 0 and 1 (inclusive). Null values are assumed to be zero.
+   * Required. The relative frequency column must contain a floating-point
+   * number between 0 and 1 (inclusive). Null values are assumed to be zero.
    * 
* * @@ -143,8 +143,8 @@ com.google.privacy.dlp.v2.StatisticalTable.QuasiIdentifierFieldOrBuilder getQuas * * *
-   * Required. The relative frequency column must contain a floating-point number
-   * between 0 and 1 (inclusive). Null values are assumed to be zero.
+   * Required. The relative frequency column must contain a floating-point
+   * number between 0 and 1 (inclusive). Null values are assumed to be zero.
    * 
* * @@ -158,8 +158,8 @@ com.google.privacy.dlp.v2.StatisticalTable.QuasiIdentifierFieldOrBuilder getQuas * * *
-   * Required. The relative frequency column must contain a floating-point number
-   * between 0 and 1 (inclusive). Null values are assumed to be zero.
+   * Required. The relative frequency column must contain a floating-point
+   * number between 0 and 1 (inclusive). Null values are assumed to be zero.
    * 
* * 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 b1587290..4397fe77 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 @@ -131,6 +131,22 @@ private StorageConfig( timespanConfig_ = subBuilder.buildPartial(); } + break; + } + case 74: + { + com.google.privacy.dlp.v2.HybridOptions.Builder subBuilder = null; + if (typeCase_ == 9) { + subBuilder = ((com.google.privacy.dlp.v2.HybridOptions) type_).toBuilder(); + } + type_ = + input.readMessage( + com.google.privacy.dlp.v2.HybridOptions.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.privacy.dlp.v2.HybridOptions) type_); + type_ = subBuilder.buildPartial(); + } + typeCase_ = 9; break; } default: @@ -1843,6 +1859,7 @@ public enum TypeCase DATASTORE_OPTIONS(2), CLOUD_STORAGE_OPTIONS(3), BIG_QUERY_OPTIONS(4), + HYBRID_OPTIONS(9), TYPE_NOT_SET(0); private final int value; @@ -1867,6 +1884,8 @@ public static TypeCase forNumber(int value) { return CLOUD_STORAGE_OPTIONS; case 4: return BIG_QUERY_OPTIONS; + case 9: + return HYBRID_OPTIONS; case 0: return TYPE_NOT_SET; default: @@ -1888,7 +1907,7 @@ public TypeCase getTypeCase() { * * *
-   * Google Cloud Datastore options specification.
+   * Google Cloud Datastore options.
    * 
* * .google.privacy.dlp.v2.DatastoreOptions datastore_options = 2; @@ -1902,7 +1921,7 @@ public boolean hasDatastoreOptions() { * * *
-   * Google Cloud Datastore options specification.
+   * Google Cloud Datastore options.
    * 
* * .google.privacy.dlp.v2.DatastoreOptions datastore_options = 2; @@ -1919,7 +1938,7 @@ public com.google.privacy.dlp.v2.DatastoreOptions getDatastoreOptions() { * * *
-   * Google Cloud Datastore options specification.
+   * Google Cloud Datastore options.
    * 
* * .google.privacy.dlp.v2.DatastoreOptions datastore_options = 2; @@ -1936,7 +1955,7 @@ public com.google.privacy.dlp.v2.DatastoreOptionsOrBuilder getDatastoreOptionsOr * * *
-   * Google Cloud Storage options specification.
+   * Google Cloud Storage options.
    * 
* * .google.privacy.dlp.v2.CloudStorageOptions cloud_storage_options = 3; @@ -1950,7 +1969,7 @@ public boolean hasCloudStorageOptions() { * * *
-   * Google Cloud Storage options specification.
+   * Google Cloud Storage options.
    * 
* * .google.privacy.dlp.v2.CloudStorageOptions cloud_storage_options = 3; @@ -1967,7 +1986,7 @@ public com.google.privacy.dlp.v2.CloudStorageOptions getCloudStorageOptions() { * * *
-   * Google Cloud Storage options specification.
+   * Google Cloud Storage options.
    * 
* * .google.privacy.dlp.v2.CloudStorageOptions cloud_storage_options = 3; @@ -1984,7 +2003,7 @@ public com.google.privacy.dlp.v2.CloudStorageOptionsOrBuilder getCloudStorageOpt * * *
-   * BigQuery options specification.
+   * BigQuery options.
    * 
* * .google.privacy.dlp.v2.BigQueryOptions big_query_options = 4; @@ -1998,7 +2017,7 @@ public boolean hasBigQueryOptions() { * * *
-   * BigQuery options specification.
+   * BigQuery options.
    * 
* * .google.privacy.dlp.v2.BigQueryOptions big_query_options = 4; @@ -2015,7 +2034,7 @@ public com.google.privacy.dlp.v2.BigQueryOptions getBigQueryOptions() { * * *
-   * BigQuery options specification.
+   * BigQuery options.
    * 
* * .google.privacy.dlp.v2.BigQueryOptions big_query_options = 4; @@ -2027,6 +2046,63 @@ public com.google.privacy.dlp.v2.BigQueryOptionsOrBuilder getBigQueryOptionsOrBu return com.google.privacy.dlp.v2.BigQueryOptions.getDefaultInstance(); } + public static final int HYBRID_OPTIONS_FIELD_NUMBER = 9; + /** + * + * + *
+   * Hybrid inspection options.
+   * Early access feature is in a pre-release state and might change or have
+   * limited support. For more information, see
+   * https://cloud.google.com/products#product-launch-stages.
+   * 
+ * + * .google.privacy.dlp.v2.HybridOptions hybrid_options = 9; + * + * @return Whether the hybridOptions field is set. + */ + public boolean hasHybridOptions() { + return typeCase_ == 9; + } + /** + * + * + *
+   * Hybrid inspection options.
+   * Early access feature is in a pre-release state and might change or have
+   * limited support. For more information, see
+   * https://cloud.google.com/products#product-launch-stages.
+   * 
+ * + * .google.privacy.dlp.v2.HybridOptions hybrid_options = 9; + * + * @return The hybridOptions. + */ + public com.google.privacy.dlp.v2.HybridOptions getHybridOptions() { + if (typeCase_ == 9) { + return (com.google.privacy.dlp.v2.HybridOptions) type_; + } + return com.google.privacy.dlp.v2.HybridOptions.getDefaultInstance(); + } + /** + * + * + *
+   * Hybrid inspection options.
+   * Early access feature is in a pre-release state and might change or have
+   * limited support. For more information, see
+   * https://cloud.google.com/products#product-launch-stages.
+   * 
+ * + * .google.privacy.dlp.v2.HybridOptions hybrid_options = 9; + */ + public com.google.privacy.dlp.v2.HybridOptionsOrBuilder getHybridOptionsOrBuilder() { + if (typeCase_ == 9) { + return (com.google.privacy.dlp.v2.HybridOptions) type_; + } + return com.google.privacy.dlp.v2.HybridOptions.getDefaultInstance(); + } + public static final int TIMESPAN_CONFIG_FIELD_NUMBER = 6; private com.google.privacy.dlp.v2.StorageConfig.TimespanConfig timespanConfig_; /** @@ -2079,6 +2155,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (timespanConfig_ != null) { output.writeMessage(6, getTimespanConfig()); } + if (typeCase_ == 9) { + output.writeMessage(9, (com.google.privacy.dlp.v2.HybridOptions) type_); + } unknownFields.writeTo(output); } @@ -2106,6 +2185,11 @@ public int getSerializedSize() { if (timespanConfig_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getTimespanConfig()); } + if (typeCase_ == 9) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 9, (com.google.privacy.dlp.v2.HybridOptions) type_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -2136,6 +2220,9 @@ public boolean equals(final java.lang.Object obj) { case 4: if (!getBigQueryOptions().equals(other.getBigQueryOptions())) return false; break; + case 9: + if (!getHybridOptions().equals(other.getHybridOptions())) return false; + break; case 0: default: } @@ -2167,6 +2254,10 @@ public int hashCode() { hash = (37 * hash) + BIG_QUERY_OPTIONS_FIELD_NUMBER; hash = (53 * hash) + getBigQueryOptions().hashCode(); break; + case 9: + hash = (37 * hash) + HYBRID_OPTIONS_FIELD_NUMBER; + hash = (53 * hash) + getHybridOptions().hashCode(); + break; case 0: default: } @@ -2371,6 +2462,13 @@ public com.google.privacy.dlp.v2.StorageConfig buildPartial() { result.type_ = bigQueryOptionsBuilder_.build(); } } + if (typeCase_ == 9) { + if (hybridOptionsBuilder_ == null) { + result.type_ = type_; + } else { + result.type_ = hybridOptionsBuilder_.build(); + } + } if (timespanConfigBuilder_ == null) { result.timespanConfig_ = timespanConfig_; } else { @@ -2445,6 +2543,11 @@ public Builder mergeFrom(com.google.privacy.dlp.v2.StorageConfig other) { mergeBigQueryOptions(other.getBigQueryOptions()); break; } + case HYBRID_OPTIONS: + { + mergeHybridOptions(other.getHybridOptions()); + break; + } case TYPE_NOT_SET: { break; @@ -2502,7 +2605,7 @@ public Builder clearType() { * * *
-     * Google Cloud Datastore options specification.
+     * Google Cloud Datastore options.
      * 
* * .google.privacy.dlp.v2.DatastoreOptions datastore_options = 2; @@ -2516,7 +2619,7 @@ public boolean hasDatastoreOptions() { * * *
-     * Google Cloud Datastore options specification.
+     * Google Cloud Datastore options.
      * 
* * .google.privacy.dlp.v2.DatastoreOptions datastore_options = 2; @@ -2540,7 +2643,7 @@ public com.google.privacy.dlp.v2.DatastoreOptions getDatastoreOptions() { * * *
-     * Google Cloud Datastore options specification.
+     * Google Cloud Datastore options.
      * 
* * .google.privacy.dlp.v2.DatastoreOptions datastore_options = 2; @@ -2562,7 +2665,7 @@ public Builder setDatastoreOptions(com.google.privacy.dlp.v2.DatastoreOptions va * * *
-     * Google Cloud Datastore options specification.
+     * Google Cloud Datastore options.
      * 
* * .google.privacy.dlp.v2.DatastoreOptions datastore_options = 2; @@ -2582,7 +2685,7 @@ public Builder setDatastoreOptions( * * *
-     * Google Cloud Datastore options specification.
+     * Google Cloud Datastore options.
      * 
* * .google.privacy.dlp.v2.DatastoreOptions datastore_options = 2; @@ -2613,7 +2716,7 @@ public Builder mergeDatastoreOptions(com.google.privacy.dlp.v2.DatastoreOptions * * *
-     * Google Cloud Datastore options specification.
+     * Google Cloud Datastore options.
      * 
* * .google.privacy.dlp.v2.DatastoreOptions datastore_options = 2; @@ -2638,7 +2741,7 @@ public Builder clearDatastoreOptions() { * * *
-     * Google Cloud Datastore options specification.
+     * Google Cloud Datastore options.
      * 
* * .google.privacy.dlp.v2.DatastoreOptions datastore_options = 2; @@ -2650,7 +2753,7 @@ public com.google.privacy.dlp.v2.DatastoreOptions.Builder getDatastoreOptionsBui * * *
-     * Google Cloud Datastore options specification.
+     * Google Cloud Datastore options.
      * 
* * .google.privacy.dlp.v2.DatastoreOptions datastore_options = 2; @@ -2669,7 +2772,7 @@ public com.google.privacy.dlp.v2.DatastoreOptionsOrBuilder getDatastoreOptionsOr * * *
-     * Google Cloud Datastore options specification.
+     * Google Cloud Datastore options.
      * 
* * .google.privacy.dlp.v2.DatastoreOptions datastore_options = 2; @@ -2708,7 +2811,7 @@ public com.google.privacy.dlp.v2.DatastoreOptionsOrBuilder getDatastoreOptionsOr * * *
-     * Google Cloud Storage options specification.
+     * Google Cloud Storage options.
      * 
* * .google.privacy.dlp.v2.CloudStorageOptions cloud_storage_options = 3; @@ -2722,7 +2825,7 @@ public boolean hasCloudStorageOptions() { * * *
-     * Google Cloud Storage options specification.
+     * Google Cloud Storage options.
      * 
* * .google.privacy.dlp.v2.CloudStorageOptions cloud_storage_options = 3; @@ -2746,7 +2849,7 @@ public com.google.privacy.dlp.v2.CloudStorageOptions getCloudStorageOptions() { * * *
-     * Google Cloud Storage options specification.
+     * Google Cloud Storage options.
      * 
* * .google.privacy.dlp.v2.CloudStorageOptions cloud_storage_options = 3; @@ -2768,7 +2871,7 @@ public Builder setCloudStorageOptions(com.google.privacy.dlp.v2.CloudStorageOpti * * *
-     * Google Cloud Storage options specification.
+     * Google Cloud Storage options.
      * 
* * .google.privacy.dlp.v2.CloudStorageOptions cloud_storage_options = 3; @@ -2788,7 +2891,7 @@ public Builder setCloudStorageOptions( * * *
-     * Google Cloud Storage options specification.
+     * Google Cloud Storage options.
      * 
* * .google.privacy.dlp.v2.CloudStorageOptions cloud_storage_options = 3; @@ -2819,7 +2922,7 @@ public Builder mergeCloudStorageOptions(com.google.privacy.dlp.v2.CloudStorageOp * * *
-     * Google Cloud Storage options specification.
+     * Google Cloud Storage options.
      * 
* * .google.privacy.dlp.v2.CloudStorageOptions cloud_storage_options = 3; @@ -2844,7 +2947,7 @@ public Builder clearCloudStorageOptions() { * * *
-     * Google Cloud Storage options specification.
+     * Google Cloud Storage options.
      * 
* * .google.privacy.dlp.v2.CloudStorageOptions cloud_storage_options = 3; @@ -2856,7 +2959,7 @@ public com.google.privacy.dlp.v2.CloudStorageOptions.Builder getCloudStorageOpti * * *
-     * Google Cloud Storage options specification.
+     * Google Cloud Storage options.
      * 
* * .google.privacy.dlp.v2.CloudStorageOptions cloud_storage_options = 3; @@ -2876,7 +2979,7 @@ public com.google.privacy.dlp.v2.CloudStorageOptions.Builder getCloudStorageOpti * * *
-     * Google Cloud Storage options specification.
+     * Google Cloud Storage options.
      * 
* * .google.privacy.dlp.v2.CloudStorageOptions cloud_storage_options = 3; @@ -2915,7 +3018,7 @@ public com.google.privacy.dlp.v2.CloudStorageOptions.Builder getCloudStorageOpti * * *
-     * BigQuery options specification.
+     * BigQuery options.
      * 
* * .google.privacy.dlp.v2.BigQueryOptions big_query_options = 4; @@ -2929,7 +3032,7 @@ public boolean hasBigQueryOptions() { * * *
-     * BigQuery options specification.
+     * BigQuery options.
      * 
* * .google.privacy.dlp.v2.BigQueryOptions big_query_options = 4; @@ -2953,7 +3056,7 @@ public com.google.privacy.dlp.v2.BigQueryOptions getBigQueryOptions() { * * *
-     * BigQuery options specification.
+     * BigQuery options.
      * 
* * .google.privacy.dlp.v2.BigQueryOptions big_query_options = 4; @@ -2975,7 +3078,7 @@ public Builder setBigQueryOptions(com.google.privacy.dlp.v2.BigQueryOptions valu * * *
-     * BigQuery options specification.
+     * BigQuery options.
      * 
* * .google.privacy.dlp.v2.BigQueryOptions big_query_options = 4; @@ -2995,7 +3098,7 @@ public Builder setBigQueryOptions( * * *
-     * BigQuery options specification.
+     * BigQuery options.
      * 
* * .google.privacy.dlp.v2.BigQueryOptions big_query_options = 4; @@ -3026,7 +3129,7 @@ public Builder mergeBigQueryOptions(com.google.privacy.dlp.v2.BigQueryOptions va * * *
-     * BigQuery options specification.
+     * BigQuery options.
      * 
* * .google.privacy.dlp.v2.BigQueryOptions big_query_options = 4; @@ -3051,7 +3154,7 @@ public Builder clearBigQueryOptions() { * * *
-     * BigQuery options specification.
+     * BigQuery options.
      * 
* * .google.privacy.dlp.v2.BigQueryOptions big_query_options = 4; @@ -3063,7 +3166,7 @@ public com.google.privacy.dlp.v2.BigQueryOptions.Builder getBigQueryOptionsBuild * * *
-     * BigQuery options specification.
+     * BigQuery options.
      * 
* * .google.privacy.dlp.v2.BigQueryOptions big_query_options = 4; @@ -3082,7 +3185,7 @@ public com.google.privacy.dlp.v2.BigQueryOptionsOrBuilder getBigQueryOptionsOrBu * * *
-     * BigQuery options specification.
+     * BigQuery options.
      * 
* * .google.privacy.dlp.v2.BigQueryOptions big_query_options = 4; @@ -3112,6 +3215,237 @@ public com.google.privacy.dlp.v2.BigQueryOptionsOrBuilder getBigQueryOptionsOrBu return bigQueryOptionsBuilder_; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.HybridOptions, + com.google.privacy.dlp.v2.HybridOptions.Builder, + com.google.privacy.dlp.v2.HybridOptionsOrBuilder> + hybridOptionsBuilder_; + /** + * + * + *
+     * Hybrid inspection options.
+     * Early access feature is in a pre-release state and might change or have
+     * limited support. For more information, see
+     * https://cloud.google.com/products#product-launch-stages.
+     * 
+ * + * .google.privacy.dlp.v2.HybridOptions hybrid_options = 9; + * + * @return Whether the hybridOptions field is set. + */ + public boolean hasHybridOptions() { + return typeCase_ == 9; + } + /** + * + * + *
+     * Hybrid inspection options.
+     * Early access feature is in a pre-release state and might change or have
+     * limited support. For more information, see
+     * https://cloud.google.com/products#product-launch-stages.
+     * 
+ * + * .google.privacy.dlp.v2.HybridOptions hybrid_options = 9; + * + * @return The hybridOptions. + */ + public com.google.privacy.dlp.v2.HybridOptions getHybridOptions() { + if (hybridOptionsBuilder_ == null) { + if (typeCase_ == 9) { + return (com.google.privacy.dlp.v2.HybridOptions) type_; + } + return com.google.privacy.dlp.v2.HybridOptions.getDefaultInstance(); + } else { + if (typeCase_ == 9) { + return hybridOptionsBuilder_.getMessage(); + } + return com.google.privacy.dlp.v2.HybridOptions.getDefaultInstance(); + } + } + /** + * + * + *
+     * Hybrid inspection options.
+     * Early access feature is in a pre-release state and might change or have
+     * limited support. For more information, see
+     * https://cloud.google.com/products#product-launch-stages.
+     * 
+ * + * .google.privacy.dlp.v2.HybridOptions hybrid_options = 9; + */ + public Builder setHybridOptions(com.google.privacy.dlp.v2.HybridOptions value) { + if (hybridOptionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + type_ = value; + onChanged(); + } else { + hybridOptionsBuilder_.setMessage(value); + } + typeCase_ = 9; + return this; + } + /** + * + * + *
+     * Hybrid inspection options.
+     * Early access feature is in a pre-release state and might change or have
+     * limited support. For more information, see
+     * https://cloud.google.com/products#product-launch-stages.
+     * 
+ * + * .google.privacy.dlp.v2.HybridOptions hybrid_options = 9; + */ + public Builder setHybridOptions( + com.google.privacy.dlp.v2.HybridOptions.Builder builderForValue) { + if (hybridOptionsBuilder_ == null) { + type_ = builderForValue.build(); + onChanged(); + } else { + hybridOptionsBuilder_.setMessage(builderForValue.build()); + } + typeCase_ = 9; + return this; + } + /** + * + * + *
+     * Hybrid inspection options.
+     * Early access feature is in a pre-release state and might change or have
+     * limited support. For more information, see
+     * https://cloud.google.com/products#product-launch-stages.
+     * 
+ * + * .google.privacy.dlp.v2.HybridOptions hybrid_options = 9; + */ + public Builder mergeHybridOptions(com.google.privacy.dlp.v2.HybridOptions value) { + if (hybridOptionsBuilder_ == null) { + if (typeCase_ == 9 + && type_ != com.google.privacy.dlp.v2.HybridOptions.getDefaultInstance()) { + type_ = + com.google.privacy.dlp.v2.HybridOptions.newBuilder( + (com.google.privacy.dlp.v2.HybridOptions) type_) + .mergeFrom(value) + .buildPartial(); + } else { + type_ = value; + } + onChanged(); + } else { + if (typeCase_ == 9) { + hybridOptionsBuilder_.mergeFrom(value); + } + hybridOptionsBuilder_.setMessage(value); + } + typeCase_ = 9; + return this; + } + /** + * + * + *
+     * Hybrid inspection options.
+     * Early access feature is in a pre-release state and might change or have
+     * limited support. For more information, see
+     * https://cloud.google.com/products#product-launch-stages.
+     * 
+ * + * .google.privacy.dlp.v2.HybridOptions hybrid_options = 9; + */ + public Builder clearHybridOptions() { + if (hybridOptionsBuilder_ == null) { + if (typeCase_ == 9) { + typeCase_ = 0; + type_ = null; + onChanged(); + } + } else { + if (typeCase_ == 9) { + typeCase_ = 0; + type_ = null; + } + hybridOptionsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Hybrid inspection options.
+     * Early access feature is in a pre-release state and might change or have
+     * limited support. For more information, see
+     * https://cloud.google.com/products#product-launch-stages.
+     * 
+ * + * .google.privacy.dlp.v2.HybridOptions hybrid_options = 9; + */ + public com.google.privacy.dlp.v2.HybridOptions.Builder getHybridOptionsBuilder() { + return getHybridOptionsFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Hybrid inspection options.
+     * Early access feature is in a pre-release state and might change or have
+     * limited support. For more information, see
+     * https://cloud.google.com/products#product-launch-stages.
+     * 
+ * + * .google.privacy.dlp.v2.HybridOptions hybrid_options = 9; + */ + public com.google.privacy.dlp.v2.HybridOptionsOrBuilder getHybridOptionsOrBuilder() { + if ((typeCase_ == 9) && (hybridOptionsBuilder_ != null)) { + return hybridOptionsBuilder_.getMessageOrBuilder(); + } else { + if (typeCase_ == 9) { + return (com.google.privacy.dlp.v2.HybridOptions) type_; + } + return com.google.privacy.dlp.v2.HybridOptions.getDefaultInstance(); + } + } + /** + * + * + *
+     * Hybrid inspection options.
+     * Early access feature is in a pre-release state and might change or have
+     * limited support. For more information, see
+     * https://cloud.google.com/products#product-launch-stages.
+     * 
+ * + * .google.privacy.dlp.v2.HybridOptions hybrid_options = 9; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.HybridOptions, + com.google.privacy.dlp.v2.HybridOptions.Builder, + com.google.privacy.dlp.v2.HybridOptionsOrBuilder> + getHybridOptionsFieldBuilder() { + if (hybridOptionsBuilder_ == null) { + if (!(typeCase_ == 9)) { + type_ = com.google.privacy.dlp.v2.HybridOptions.getDefaultInstance(); + } + hybridOptionsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.HybridOptions, + com.google.privacy.dlp.v2.HybridOptions.Builder, + com.google.privacy.dlp.v2.HybridOptionsOrBuilder>( + (com.google.privacy.dlp.v2.HybridOptions) type_, getParentForChildren(), isClean()); + type_ = null; + } + typeCase_ = 9; + onChanged(); + ; + return hybridOptionsBuilder_; + } + private com.google.privacy.dlp.v2.StorageConfig.TimespanConfig timespanConfig_; private com.google.protobuf.SingleFieldBuilderV3< com.google.privacy.dlp.v2.StorageConfig.TimespanConfig, 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 5832e72d..68fd1faa 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 @@ -27,7 +27,7 @@ public interface StorageConfigOrBuilder * * *
-   * Google Cloud Datastore options specification.
+   * Google Cloud Datastore options.
    * 
* * .google.privacy.dlp.v2.DatastoreOptions datastore_options = 2; @@ -39,7 +39,7 @@ public interface StorageConfigOrBuilder * * *
-   * Google Cloud Datastore options specification.
+   * Google Cloud Datastore options.
    * 
* * .google.privacy.dlp.v2.DatastoreOptions datastore_options = 2; @@ -51,7 +51,7 @@ public interface StorageConfigOrBuilder * * *
-   * Google Cloud Datastore options specification.
+   * Google Cloud Datastore options.
    * 
* * .google.privacy.dlp.v2.DatastoreOptions datastore_options = 2; @@ -62,7 +62,7 @@ public interface StorageConfigOrBuilder * * *
-   * Google Cloud Storage options specification.
+   * Google Cloud Storage options.
    * 
* * .google.privacy.dlp.v2.CloudStorageOptions cloud_storage_options = 3; @@ -74,7 +74,7 @@ public interface StorageConfigOrBuilder * * *
-   * Google Cloud Storage options specification.
+   * Google Cloud Storage options.
    * 
* * .google.privacy.dlp.v2.CloudStorageOptions cloud_storage_options = 3; @@ -86,7 +86,7 @@ public interface StorageConfigOrBuilder * * *
-   * Google Cloud Storage options specification.
+   * Google Cloud Storage options.
    * 
* * .google.privacy.dlp.v2.CloudStorageOptions cloud_storage_options = 3; @@ -97,7 +97,7 @@ public interface StorageConfigOrBuilder * * *
-   * BigQuery options specification.
+   * BigQuery options.
    * 
* * .google.privacy.dlp.v2.BigQueryOptions big_query_options = 4; @@ -109,7 +109,7 @@ public interface StorageConfigOrBuilder * * *
-   * BigQuery options specification.
+   * BigQuery options.
    * 
* * .google.privacy.dlp.v2.BigQueryOptions big_query_options = 4; @@ -121,13 +121,57 @@ public interface StorageConfigOrBuilder * * *
-   * BigQuery options specification.
+   * BigQuery options.
    * 
* * .google.privacy.dlp.v2.BigQueryOptions big_query_options = 4; */ com.google.privacy.dlp.v2.BigQueryOptionsOrBuilder getBigQueryOptionsOrBuilder(); + /** + * + * + *
+   * Hybrid inspection options.
+   * Early access feature is in a pre-release state and might change or have
+   * limited support. For more information, see
+   * https://cloud.google.com/products#product-launch-stages.
+   * 
+ * + * .google.privacy.dlp.v2.HybridOptions hybrid_options = 9; + * + * @return Whether the hybridOptions field is set. + */ + boolean hasHybridOptions(); + /** + * + * + *
+   * Hybrid inspection options.
+   * Early access feature is in a pre-release state and might change or have
+   * limited support. For more information, see
+   * https://cloud.google.com/products#product-launch-stages.
+   * 
+ * + * .google.privacy.dlp.v2.HybridOptions hybrid_options = 9; + * + * @return The hybridOptions. + */ + com.google.privacy.dlp.v2.HybridOptions getHybridOptions(); + /** + * + * + *
+   * Hybrid inspection options.
+   * Early access feature is in a pre-release state and might change or have
+   * limited support. For more information, see
+   * https://cloud.google.com/products#product-launch-stages.
+   * 
+ * + * .google.privacy.dlp.v2.HybridOptions hybrid_options = 9; + */ + com.google.privacy.dlp.v2.HybridOptionsOrBuilder getHybridOptionsOrBuilder(); + /** * .google.privacy.dlp.v2.StorageConfig.TimespanConfig timespan_config = 6; * diff --git a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/StoredInfoTypeConfig.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/StoredInfoTypeConfig.java index 51958a38..9ad94d81 100644 --- a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/StoredInfoTypeConfig.java +++ b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/StoredInfoTypeConfig.java @@ -105,6 +105,40 @@ private StoredInfoTypeConfig( typeCase_ = 3; break; } + case 34: + { + com.google.privacy.dlp.v2.CustomInfoType.Dictionary.Builder subBuilder = null; + if (typeCase_ == 4) { + subBuilder = + ((com.google.privacy.dlp.v2.CustomInfoType.Dictionary) type_).toBuilder(); + } + type_ = + input.readMessage( + com.google.privacy.dlp.v2.CustomInfoType.Dictionary.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.privacy.dlp.v2.CustomInfoType.Dictionary) type_); + type_ = subBuilder.buildPartial(); + } + typeCase_ = 4; + break; + } + case 42: + { + com.google.privacy.dlp.v2.CustomInfoType.Regex.Builder subBuilder = null; + if (typeCase_ == 5) { + subBuilder = ((com.google.privacy.dlp.v2.CustomInfoType.Regex) type_).toBuilder(); + } + type_ = + input.readMessage( + com.google.privacy.dlp.v2.CustomInfoType.Regex.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.privacy.dlp.v2.CustomInfoType.Regex) type_); + type_ = subBuilder.buildPartial(); + } + typeCase_ = 5; + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -147,6 +181,8 @@ public enum TypeCase com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { LARGE_CUSTOM_DICTIONARY(3), + DICTIONARY(4), + REGEX(5), TYPE_NOT_SET(0); private final int value; @@ -167,6 +203,10 @@ public static TypeCase forNumber(int value) { switch (value) { case 3: return LARGE_CUSTOM_DICTIONARY; + case 4: + return DICTIONARY; + case 5: + return REGEX; case 0: return TYPE_NOT_SET; default: @@ -326,6 +366,102 @@ public com.google.privacy.dlp.v2.LargeCustomDictionaryConfig getLargeCustomDicti return com.google.privacy.dlp.v2.LargeCustomDictionaryConfig.getDefaultInstance(); } + public static final int DICTIONARY_FIELD_NUMBER = 4; + /** + * + * + *
+   * Store dictionary-based CustomInfoType.
+   * 
+ * + * .google.privacy.dlp.v2.CustomInfoType.Dictionary dictionary = 4; + * + * @return Whether the dictionary field is set. + */ + public boolean hasDictionary() { + return typeCase_ == 4; + } + /** + * + * + *
+   * Store dictionary-based CustomInfoType.
+   * 
+ * + * .google.privacy.dlp.v2.CustomInfoType.Dictionary dictionary = 4; + * + * @return The dictionary. + */ + public com.google.privacy.dlp.v2.CustomInfoType.Dictionary getDictionary() { + if (typeCase_ == 4) { + return (com.google.privacy.dlp.v2.CustomInfoType.Dictionary) type_; + } + return com.google.privacy.dlp.v2.CustomInfoType.Dictionary.getDefaultInstance(); + } + /** + * + * + *
+   * Store dictionary-based CustomInfoType.
+   * 
+ * + * .google.privacy.dlp.v2.CustomInfoType.Dictionary dictionary = 4; + */ + public com.google.privacy.dlp.v2.CustomInfoType.DictionaryOrBuilder getDictionaryOrBuilder() { + if (typeCase_ == 4) { + return (com.google.privacy.dlp.v2.CustomInfoType.Dictionary) type_; + } + return com.google.privacy.dlp.v2.CustomInfoType.Dictionary.getDefaultInstance(); + } + + public static final int REGEX_FIELD_NUMBER = 5; + /** + * + * + *
+   * Store regular expression-based StoredInfoType.
+   * 
+ * + * .google.privacy.dlp.v2.CustomInfoType.Regex regex = 5; + * + * @return Whether the regex field is set. + */ + public boolean hasRegex() { + return typeCase_ == 5; + } + /** + * + * + *
+   * Store regular expression-based StoredInfoType.
+   * 
+ * + * .google.privacy.dlp.v2.CustomInfoType.Regex regex = 5; + * + * @return The regex. + */ + public com.google.privacy.dlp.v2.CustomInfoType.Regex getRegex() { + if (typeCase_ == 5) { + return (com.google.privacy.dlp.v2.CustomInfoType.Regex) type_; + } + return com.google.privacy.dlp.v2.CustomInfoType.Regex.getDefaultInstance(); + } + /** + * + * + *
+   * Store regular expression-based StoredInfoType.
+   * 
+ * + * .google.privacy.dlp.v2.CustomInfoType.Regex regex = 5; + */ + public com.google.privacy.dlp.v2.CustomInfoType.RegexOrBuilder getRegexOrBuilder() { + if (typeCase_ == 5) { + return (com.google.privacy.dlp.v2.CustomInfoType.Regex) type_; + } + return com.google.privacy.dlp.v2.CustomInfoType.Regex.getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -349,6 +485,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (typeCase_ == 3) { output.writeMessage(3, (com.google.privacy.dlp.v2.LargeCustomDictionaryConfig) type_); } + if (typeCase_ == 4) { + output.writeMessage(4, (com.google.privacy.dlp.v2.CustomInfoType.Dictionary) type_); + } + if (typeCase_ == 5) { + output.writeMessage(5, (com.google.privacy.dlp.v2.CustomInfoType.Regex) type_); + } unknownFields.writeTo(output); } @@ -369,6 +511,16 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 3, (com.google.privacy.dlp.v2.LargeCustomDictionaryConfig) type_); } + if (typeCase_ == 4) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, (com.google.privacy.dlp.v2.CustomInfoType.Dictionary) type_); + } + if (typeCase_ == 5) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, (com.google.privacy.dlp.v2.CustomInfoType.Regex) type_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -392,6 +544,12 @@ public boolean equals(final java.lang.Object obj) { case 3: if (!getLargeCustomDictionary().equals(other.getLargeCustomDictionary())) return false; break; + case 4: + if (!getDictionary().equals(other.getDictionary())) return false; + break; + case 5: + if (!getRegex().equals(other.getRegex())) return false; + break; case 0: default: } @@ -415,6 +573,14 @@ public int hashCode() { hash = (37 * hash) + LARGE_CUSTOM_DICTIONARY_FIELD_NUMBER; hash = (53 * hash) + getLargeCustomDictionary().hashCode(); break; + case 4: + hash = (37 * hash) + DICTIONARY_FIELD_NUMBER; + hash = (53 * hash) + getDictionary().hashCode(); + break; + case 5: + hash = (37 * hash) + REGEX_FIELD_NUMBER; + hash = (53 * hash) + getRegex().hashCode(); + break; case 0: default: } @@ -607,6 +773,20 @@ public com.google.privacy.dlp.v2.StoredInfoTypeConfig buildPartial() { result.type_ = largeCustomDictionaryBuilder_.build(); } } + if (typeCase_ == 4) { + if (dictionaryBuilder_ == null) { + result.type_ = type_; + } else { + result.type_ = dictionaryBuilder_.build(); + } + } + if (typeCase_ == 5) { + if (regexBuilder_ == null) { + result.type_ = type_; + } else { + result.type_ = regexBuilder_.build(); + } + } result.typeCase_ = typeCase_; onBuilt(); return result; @@ -671,6 +851,16 @@ public Builder mergeFrom(com.google.privacy.dlp.v2.StoredInfoTypeConfig other) { mergeLargeCustomDictionary(other.getLargeCustomDictionary()); break; } + case DICTIONARY: + { + mergeDictionary(other.getDictionary()); + break; + } + case REGEX: + { + mergeRegex(other.getRegex()); + break; + } case TYPE_NOT_SET: { break; @@ -1142,6 +1332,418 @@ public Builder clearLargeCustomDictionary() { return largeCustomDictionaryBuilder_; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.CustomInfoType.Dictionary, + com.google.privacy.dlp.v2.CustomInfoType.Dictionary.Builder, + com.google.privacy.dlp.v2.CustomInfoType.DictionaryOrBuilder> + dictionaryBuilder_; + /** + * + * + *
+     * Store dictionary-based CustomInfoType.
+     * 
+ * + * .google.privacy.dlp.v2.CustomInfoType.Dictionary dictionary = 4; + * + * @return Whether the dictionary field is set. + */ + public boolean hasDictionary() { + return typeCase_ == 4; + } + /** + * + * + *
+     * Store dictionary-based CustomInfoType.
+     * 
+ * + * .google.privacy.dlp.v2.CustomInfoType.Dictionary dictionary = 4; + * + * @return The dictionary. + */ + public com.google.privacy.dlp.v2.CustomInfoType.Dictionary getDictionary() { + if (dictionaryBuilder_ == null) { + if (typeCase_ == 4) { + return (com.google.privacy.dlp.v2.CustomInfoType.Dictionary) type_; + } + return com.google.privacy.dlp.v2.CustomInfoType.Dictionary.getDefaultInstance(); + } else { + if (typeCase_ == 4) { + return dictionaryBuilder_.getMessage(); + } + return com.google.privacy.dlp.v2.CustomInfoType.Dictionary.getDefaultInstance(); + } + } + /** + * + * + *
+     * Store dictionary-based CustomInfoType.
+     * 
+ * + * .google.privacy.dlp.v2.CustomInfoType.Dictionary dictionary = 4; + */ + public Builder setDictionary(com.google.privacy.dlp.v2.CustomInfoType.Dictionary value) { + if (dictionaryBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + type_ = value; + onChanged(); + } else { + dictionaryBuilder_.setMessage(value); + } + typeCase_ = 4; + return this; + } + /** + * + * + *
+     * Store dictionary-based CustomInfoType.
+     * 
+ * + * .google.privacy.dlp.v2.CustomInfoType.Dictionary dictionary = 4; + */ + public Builder setDictionary( + com.google.privacy.dlp.v2.CustomInfoType.Dictionary.Builder builderForValue) { + if (dictionaryBuilder_ == null) { + type_ = builderForValue.build(); + onChanged(); + } else { + dictionaryBuilder_.setMessage(builderForValue.build()); + } + typeCase_ = 4; + return this; + } + /** + * + * + *
+     * Store dictionary-based CustomInfoType.
+     * 
+ * + * .google.privacy.dlp.v2.CustomInfoType.Dictionary dictionary = 4; + */ + public Builder mergeDictionary(com.google.privacy.dlp.v2.CustomInfoType.Dictionary value) { + if (dictionaryBuilder_ == null) { + if (typeCase_ == 4 + && type_ != com.google.privacy.dlp.v2.CustomInfoType.Dictionary.getDefaultInstance()) { + type_ = + com.google.privacy.dlp.v2.CustomInfoType.Dictionary.newBuilder( + (com.google.privacy.dlp.v2.CustomInfoType.Dictionary) type_) + .mergeFrom(value) + .buildPartial(); + } else { + type_ = value; + } + onChanged(); + } else { + if (typeCase_ == 4) { + dictionaryBuilder_.mergeFrom(value); + } + dictionaryBuilder_.setMessage(value); + } + typeCase_ = 4; + return this; + } + /** + * + * + *
+     * Store dictionary-based CustomInfoType.
+     * 
+ * + * .google.privacy.dlp.v2.CustomInfoType.Dictionary dictionary = 4; + */ + public Builder clearDictionary() { + if (dictionaryBuilder_ == null) { + if (typeCase_ == 4) { + typeCase_ = 0; + type_ = null; + onChanged(); + } + } else { + if (typeCase_ == 4) { + typeCase_ = 0; + type_ = null; + } + dictionaryBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Store dictionary-based CustomInfoType.
+     * 
+ * + * .google.privacy.dlp.v2.CustomInfoType.Dictionary dictionary = 4; + */ + public com.google.privacy.dlp.v2.CustomInfoType.Dictionary.Builder getDictionaryBuilder() { + return getDictionaryFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Store dictionary-based CustomInfoType.
+     * 
+ * + * .google.privacy.dlp.v2.CustomInfoType.Dictionary dictionary = 4; + */ + public com.google.privacy.dlp.v2.CustomInfoType.DictionaryOrBuilder getDictionaryOrBuilder() { + if ((typeCase_ == 4) && (dictionaryBuilder_ != null)) { + return dictionaryBuilder_.getMessageOrBuilder(); + } else { + if (typeCase_ == 4) { + return (com.google.privacy.dlp.v2.CustomInfoType.Dictionary) type_; + } + return com.google.privacy.dlp.v2.CustomInfoType.Dictionary.getDefaultInstance(); + } + } + /** + * + * + *
+     * Store dictionary-based CustomInfoType.
+     * 
+ * + * .google.privacy.dlp.v2.CustomInfoType.Dictionary dictionary = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.CustomInfoType.Dictionary, + com.google.privacy.dlp.v2.CustomInfoType.Dictionary.Builder, + com.google.privacy.dlp.v2.CustomInfoType.DictionaryOrBuilder> + getDictionaryFieldBuilder() { + if (dictionaryBuilder_ == null) { + if (!(typeCase_ == 4)) { + type_ = com.google.privacy.dlp.v2.CustomInfoType.Dictionary.getDefaultInstance(); + } + dictionaryBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.CustomInfoType.Dictionary, + com.google.privacy.dlp.v2.CustomInfoType.Dictionary.Builder, + com.google.privacy.dlp.v2.CustomInfoType.DictionaryOrBuilder>( + (com.google.privacy.dlp.v2.CustomInfoType.Dictionary) type_, + getParentForChildren(), + isClean()); + type_ = null; + } + typeCase_ = 4; + onChanged(); + ; + return dictionaryBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.CustomInfoType.Regex, + com.google.privacy.dlp.v2.CustomInfoType.Regex.Builder, + com.google.privacy.dlp.v2.CustomInfoType.RegexOrBuilder> + regexBuilder_; + /** + * + * + *
+     * Store regular expression-based StoredInfoType.
+     * 
+ * + * .google.privacy.dlp.v2.CustomInfoType.Regex regex = 5; + * + * @return Whether the regex field is set. + */ + public boolean hasRegex() { + return typeCase_ == 5; + } + /** + * + * + *
+     * Store regular expression-based StoredInfoType.
+     * 
+ * + * .google.privacy.dlp.v2.CustomInfoType.Regex regex = 5; + * + * @return The regex. + */ + public com.google.privacy.dlp.v2.CustomInfoType.Regex getRegex() { + if (regexBuilder_ == null) { + if (typeCase_ == 5) { + return (com.google.privacy.dlp.v2.CustomInfoType.Regex) type_; + } + return com.google.privacy.dlp.v2.CustomInfoType.Regex.getDefaultInstance(); + } else { + if (typeCase_ == 5) { + return regexBuilder_.getMessage(); + } + return com.google.privacy.dlp.v2.CustomInfoType.Regex.getDefaultInstance(); + } + } + /** + * + * + *
+     * Store regular expression-based StoredInfoType.
+     * 
+ * + * .google.privacy.dlp.v2.CustomInfoType.Regex regex = 5; + */ + public Builder setRegex(com.google.privacy.dlp.v2.CustomInfoType.Regex value) { + if (regexBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + type_ = value; + onChanged(); + } else { + regexBuilder_.setMessage(value); + } + typeCase_ = 5; + return this; + } + /** + * + * + *
+     * Store regular expression-based StoredInfoType.
+     * 
+ * + * .google.privacy.dlp.v2.CustomInfoType.Regex regex = 5; + */ + public Builder setRegex( + com.google.privacy.dlp.v2.CustomInfoType.Regex.Builder builderForValue) { + if (regexBuilder_ == null) { + type_ = builderForValue.build(); + onChanged(); + } else { + regexBuilder_.setMessage(builderForValue.build()); + } + typeCase_ = 5; + return this; + } + /** + * + * + *
+     * Store regular expression-based StoredInfoType.
+     * 
+ * + * .google.privacy.dlp.v2.CustomInfoType.Regex regex = 5; + */ + public Builder mergeRegex(com.google.privacy.dlp.v2.CustomInfoType.Regex value) { + if (regexBuilder_ == null) { + if (typeCase_ == 5 + && type_ != com.google.privacy.dlp.v2.CustomInfoType.Regex.getDefaultInstance()) { + type_ = + com.google.privacy.dlp.v2.CustomInfoType.Regex.newBuilder( + (com.google.privacy.dlp.v2.CustomInfoType.Regex) type_) + .mergeFrom(value) + .buildPartial(); + } else { + type_ = value; + } + onChanged(); + } else { + if (typeCase_ == 5) { + regexBuilder_.mergeFrom(value); + } + regexBuilder_.setMessage(value); + } + typeCase_ = 5; + return this; + } + /** + * + * + *
+     * Store regular expression-based StoredInfoType.
+     * 
+ * + * .google.privacy.dlp.v2.CustomInfoType.Regex regex = 5; + */ + public Builder clearRegex() { + if (regexBuilder_ == null) { + if (typeCase_ == 5) { + typeCase_ = 0; + type_ = null; + onChanged(); + } + } else { + if (typeCase_ == 5) { + typeCase_ = 0; + type_ = null; + } + regexBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Store regular expression-based StoredInfoType.
+     * 
+ * + * .google.privacy.dlp.v2.CustomInfoType.Regex regex = 5; + */ + public com.google.privacy.dlp.v2.CustomInfoType.Regex.Builder getRegexBuilder() { + return getRegexFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Store regular expression-based StoredInfoType.
+     * 
+ * + * .google.privacy.dlp.v2.CustomInfoType.Regex regex = 5; + */ + public com.google.privacy.dlp.v2.CustomInfoType.RegexOrBuilder getRegexOrBuilder() { + if ((typeCase_ == 5) && (regexBuilder_ != null)) { + return regexBuilder_.getMessageOrBuilder(); + } else { + if (typeCase_ == 5) { + return (com.google.privacy.dlp.v2.CustomInfoType.Regex) type_; + } + return com.google.privacy.dlp.v2.CustomInfoType.Regex.getDefaultInstance(); + } + } + /** + * + * + *
+     * Store regular expression-based StoredInfoType.
+     * 
+ * + * .google.privacy.dlp.v2.CustomInfoType.Regex regex = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.CustomInfoType.Regex, + com.google.privacy.dlp.v2.CustomInfoType.Regex.Builder, + com.google.privacy.dlp.v2.CustomInfoType.RegexOrBuilder> + getRegexFieldBuilder() { + if (regexBuilder_ == null) { + if (!(typeCase_ == 5)) { + type_ = com.google.privacy.dlp.v2.CustomInfoType.Regex.getDefaultInstance(); + } + regexBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.CustomInfoType.Regex, + com.google.privacy.dlp.v2.CustomInfoType.Regex.Builder, + com.google.privacy.dlp.v2.CustomInfoType.RegexOrBuilder>( + (com.google.privacy.dlp.v2.CustomInfoType.Regex) type_, + getParentForChildren(), + isClean()); + type_ = null; + } + typeCase_ = 5; + onChanged(); + ; + return regexBuilder_; + } + @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/StoredInfoTypeConfigOrBuilder.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/StoredInfoTypeConfigOrBuilder.java index a5d9c679..3d06d8d4 100644 --- a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/StoredInfoTypeConfigOrBuilder.java +++ b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/StoredInfoTypeConfigOrBuilder.java @@ -109,5 +109,75 @@ public interface StoredInfoTypeConfigOrBuilder com.google.privacy.dlp.v2.LargeCustomDictionaryConfigOrBuilder getLargeCustomDictionaryOrBuilder(); + /** + * + * + *
+   * Store dictionary-based CustomInfoType.
+   * 
+ * + * .google.privacy.dlp.v2.CustomInfoType.Dictionary dictionary = 4; + * + * @return Whether the dictionary field is set. + */ + boolean hasDictionary(); + /** + * + * + *
+   * Store dictionary-based CustomInfoType.
+   * 
+ * + * .google.privacy.dlp.v2.CustomInfoType.Dictionary dictionary = 4; + * + * @return The dictionary. + */ + com.google.privacy.dlp.v2.CustomInfoType.Dictionary getDictionary(); + /** + * + * + *
+   * Store dictionary-based CustomInfoType.
+   * 
+ * + * .google.privacy.dlp.v2.CustomInfoType.Dictionary dictionary = 4; + */ + com.google.privacy.dlp.v2.CustomInfoType.DictionaryOrBuilder getDictionaryOrBuilder(); + + /** + * + * + *
+   * Store regular expression-based StoredInfoType.
+   * 
+ * + * .google.privacy.dlp.v2.CustomInfoType.Regex regex = 5; + * + * @return Whether the regex field is set. + */ + boolean hasRegex(); + /** + * + * + *
+   * Store regular expression-based StoredInfoType.
+   * 
+ * + * .google.privacy.dlp.v2.CustomInfoType.Regex regex = 5; + * + * @return The regex. + */ + com.google.privacy.dlp.v2.CustomInfoType.Regex getRegex(); + /** + * + * + *
+   * Store regular expression-based StoredInfoType.
+   * 
+ * + * .google.privacy.dlp.v2.CustomInfoType.Regex regex = 5; + */ + com.google.privacy.dlp.v2.CustomInfoType.RegexOrBuilder getRegexOrBuilder(); + public com.google.privacy.dlp.v2.StoredInfoTypeConfig.TypeCase getTypeCase(); } diff --git a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TableOptions.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TableOptions.java new file mode 100644 index 00000000..dcaf2538 --- /dev/null +++ b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TableOptions.java @@ -0,0 +1,1014 @@ +/* + * 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/storage.proto + +package com.google.privacy.dlp.v2; + +/** + * + * + *
+ * Instructions regarding the table content being inspected.
+ * 
+ * + * Protobuf type {@code google.privacy.dlp.v2.TableOptions} + */ +public final class TableOptions extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2.TableOptions) + TableOptionsOrBuilder { + private static final long serialVersionUID = 0L; + // Use TableOptions.newBuilder() to construct. + private TableOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TableOptions() { + identifyingFields_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TableOptions(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private TableOptions( + 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: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + identifyingFields_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + identifyingFields_.add( + input.readMessage(com.google.privacy.dlp.v2.FieldId.parser(), extensionRegistry)); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + identifyingFields_ = java.util.Collections.unmodifiableList(identifyingFields_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.privacy.dlp.v2.DlpStorage + .internal_static_google_privacy_dlp_v2_TableOptions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.privacy.dlp.v2.DlpStorage + .internal_static_google_privacy_dlp_v2_TableOptions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.privacy.dlp.v2.TableOptions.class, + com.google.privacy.dlp.v2.TableOptions.Builder.class); + } + + public static final int IDENTIFYING_FIELDS_FIELD_NUMBER = 1; + private java.util.List identifyingFields_; + /** + * + * + *
+   * The columns that are the primary keys for table objects included in
+   * ContentItem. A copy of this cell's value will stored alongside alongside
+   * each finding so that the finding can be traced to the specific row it came
+   * from. No more than 3 may be provided.
+   * 
+ * + * repeated .google.privacy.dlp.v2.FieldId identifying_fields = 1; + */ + public java.util.List getIdentifyingFieldsList() { + return identifyingFields_; + } + /** + * + * + *
+   * The columns that are the primary keys for table objects included in
+   * ContentItem. A copy of this cell's value will stored alongside alongside
+   * each finding so that the finding can be traced to the specific row it came
+   * from. No more than 3 may be provided.
+   * 
+ * + * repeated .google.privacy.dlp.v2.FieldId identifying_fields = 1; + */ + public java.util.List + getIdentifyingFieldsOrBuilderList() { + return identifyingFields_; + } + /** + * + * + *
+   * The columns that are the primary keys for table objects included in
+   * ContentItem. A copy of this cell's value will stored alongside alongside
+   * each finding so that the finding can be traced to the specific row it came
+   * from. No more than 3 may be provided.
+   * 
+ * + * repeated .google.privacy.dlp.v2.FieldId identifying_fields = 1; + */ + public int getIdentifyingFieldsCount() { + return identifyingFields_.size(); + } + /** + * + * + *
+   * The columns that are the primary keys for table objects included in
+   * ContentItem. A copy of this cell's value will stored alongside alongside
+   * each finding so that the finding can be traced to the specific row it came
+   * from. No more than 3 may be provided.
+   * 
+ * + * repeated .google.privacy.dlp.v2.FieldId identifying_fields = 1; + */ + public com.google.privacy.dlp.v2.FieldId getIdentifyingFields(int index) { + return identifyingFields_.get(index); + } + /** + * + * + *
+   * The columns that are the primary keys for table objects included in
+   * ContentItem. A copy of this cell's value will stored alongside alongside
+   * each finding so that the finding can be traced to the specific row it came
+   * from. No more than 3 may be provided.
+   * 
+ * + * repeated .google.privacy.dlp.v2.FieldId identifying_fields = 1; + */ + public com.google.privacy.dlp.v2.FieldIdOrBuilder getIdentifyingFieldsOrBuilder(int index) { + return identifyingFields_.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 < identifyingFields_.size(); i++) { + output.writeMessage(1, identifyingFields_.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 < identifyingFields_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, identifyingFields_.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.TableOptions)) { + return super.equals(obj); + } + com.google.privacy.dlp.v2.TableOptions other = (com.google.privacy.dlp.v2.TableOptions) obj; + + if (!getIdentifyingFieldsList().equals(other.getIdentifyingFieldsList())) 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 (getIdentifyingFieldsCount() > 0) { + hash = (37 * hash) + IDENTIFYING_FIELDS_FIELD_NUMBER; + hash = (53 * hash) + getIdentifyingFieldsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.privacy.dlp.v2.TableOptions parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.privacy.dlp.v2.TableOptions 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.TableOptions parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.privacy.dlp.v2.TableOptions 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.TableOptions parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.privacy.dlp.v2.TableOptions 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.TableOptions parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.privacy.dlp.v2.TableOptions 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.TableOptions parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.privacy.dlp.v2.TableOptions 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.TableOptions 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.TableOptions 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.TableOptions 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; + } + /** + * + * + *
+   * Instructions regarding the table content being inspected.
+   * 
+ * + * Protobuf type {@code google.privacy.dlp.v2.TableOptions} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.privacy.dlp.v2.TableOptions) + com.google.privacy.dlp.v2.TableOptionsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.privacy.dlp.v2.DlpStorage + .internal_static_google_privacy_dlp_v2_TableOptions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.privacy.dlp.v2.DlpStorage + .internal_static_google_privacy_dlp_v2_TableOptions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.privacy.dlp.v2.TableOptions.class, + com.google.privacy.dlp.v2.TableOptions.Builder.class); + } + + // Construct using com.google.privacy.dlp.v2.TableOptions.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getIdentifyingFieldsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (identifyingFieldsBuilder_ == null) { + identifyingFields_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + identifyingFieldsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.privacy.dlp.v2.DlpStorage + .internal_static_google_privacy_dlp_v2_TableOptions_descriptor; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.TableOptions getDefaultInstanceForType() { + return com.google.privacy.dlp.v2.TableOptions.getDefaultInstance(); + } + + @java.lang.Override + public com.google.privacy.dlp.v2.TableOptions build() { + com.google.privacy.dlp.v2.TableOptions result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.TableOptions buildPartial() { + com.google.privacy.dlp.v2.TableOptions result = + new com.google.privacy.dlp.v2.TableOptions(this); + int from_bitField0_ = bitField0_; + if (identifyingFieldsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + identifyingFields_ = java.util.Collections.unmodifiableList(identifyingFields_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.identifyingFields_ = identifyingFields_; + } else { + result.identifyingFields_ = identifyingFieldsBuilder_.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.TableOptions) { + return mergeFrom((com.google.privacy.dlp.v2.TableOptions) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.privacy.dlp.v2.TableOptions other) { + if (other == com.google.privacy.dlp.v2.TableOptions.getDefaultInstance()) return this; + if (identifyingFieldsBuilder_ == null) { + if (!other.identifyingFields_.isEmpty()) { + if (identifyingFields_.isEmpty()) { + identifyingFields_ = other.identifyingFields_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureIdentifyingFieldsIsMutable(); + identifyingFields_.addAll(other.identifyingFields_); + } + onChanged(); + } + } else { + if (!other.identifyingFields_.isEmpty()) { + if (identifyingFieldsBuilder_.isEmpty()) { + identifyingFieldsBuilder_.dispose(); + identifyingFieldsBuilder_ = null; + identifyingFields_ = other.identifyingFields_; + bitField0_ = (bitField0_ & ~0x00000001); + identifyingFieldsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getIdentifyingFieldsFieldBuilder() + : null; + } else { + identifyingFieldsBuilder_.addAllMessages(other.identifyingFields_); + } + } + } + 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.TableOptions parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.privacy.dlp.v2.TableOptions) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List identifyingFields_ = + java.util.Collections.emptyList(); + + private void ensureIdentifyingFieldsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + identifyingFields_ = + new java.util.ArrayList(identifyingFields_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.privacy.dlp.v2.FieldId, + com.google.privacy.dlp.v2.FieldId.Builder, + com.google.privacy.dlp.v2.FieldIdOrBuilder> + identifyingFieldsBuilder_; + + /** + * + * + *
+     * The columns that are the primary keys for table objects included in
+     * ContentItem. A copy of this cell's value will stored alongside alongside
+     * each finding so that the finding can be traced to the specific row it came
+     * from. No more than 3 may be provided.
+     * 
+ * + * repeated .google.privacy.dlp.v2.FieldId identifying_fields = 1; + */ + public java.util.List getIdentifyingFieldsList() { + if (identifyingFieldsBuilder_ == null) { + return java.util.Collections.unmodifiableList(identifyingFields_); + } else { + return identifyingFieldsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * The columns that are the primary keys for table objects included in
+     * ContentItem. A copy of this cell's value will stored alongside alongside
+     * each finding so that the finding can be traced to the specific row it came
+     * from. No more than 3 may be provided.
+     * 
+ * + * repeated .google.privacy.dlp.v2.FieldId identifying_fields = 1; + */ + public int getIdentifyingFieldsCount() { + if (identifyingFieldsBuilder_ == null) { + return identifyingFields_.size(); + } else { + return identifyingFieldsBuilder_.getCount(); + } + } + /** + * + * + *
+     * The columns that are the primary keys for table objects included in
+     * ContentItem. A copy of this cell's value will stored alongside alongside
+     * each finding so that the finding can be traced to the specific row it came
+     * from. No more than 3 may be provided.
+     * 
+ * + * repeated .google.privacy.dlp.v2.FieldId identifying_fields = 1; + */ + public com.google.privacy.dlp.v2.FieldId getIdentifyingFields(int index) { + if (identifyingFieldsBuilder_ == null) { + return identifyingFields_.get(index); + } else { + return identifyingFieldsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * The columns that are the primary keys for table objects included in
+     * ContentItem. A copy of this cell's value will stored alongside alongside
+     * each finding so that the finding can be traced to the specific row it came
+     * from. No more than 3 may be provided.
+     * 
+ * + * repeated .google.privacy.dlp.v2.FieldId identifying_fields = 1; + */ + public Builder setIdentifyingFields(int index, com.google.privacy.dlp.v2.FieldId value) { + if (identifyingFieldsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureIdentifyingFieldsIsMutable(); + identifyingFields_.set(index, value); + onChanged(); + } else { + identifyingFieldsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The columns that are the primary keys for table objects included in
+     * ContentItem. A copy of this cell's value will stored alongside alongside
+     * each finding so that the finding can be traced to the specific row it came
+     * from. No more than 3 may be provided.
+     * 
+ * + * repeated .google.privacy.dlp.v2.FieldId identifying_fields = 1; + */ + public Builder setIdentifyingFields( + int index, com.google.privacy.dlp.v2.FieldId.Builder builderForValue) { + if (identifyingFieldsBuilder_ == null) { + ensureIdentifyingFieldsIsMutable(); + identifyingFields_.set(index, builderForValue.build()); + onChanged(); + } else { + identifyingFieldsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The columns that are the primary keys for table objects included in
+     * ContentItem. A copy of this cell's value will stored alongside alongside
+     * each finding so that the finding can be traced to the specific row it came
+     * from. No more than 3 may be provided.
+     * 
+ * + * repeated .google.privacy.dlp.v2.FieldId identifying_fields = 1; + */ + public Builder addIdentifyingFields(com.google.privacy.dlp.v2.FieldId value) { + if (identifyingFieldsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureIdentifyingFieldsIsMutable(); + identifyingFields_.add(value); + onChanged(); + } else { + identifyingFieldsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * The columns that are the primary keys for table objects included in
+     * ContentItem. A copy of this cell's value will stored alongside alongside
+     * each finding so that the finding can be traced to the specific row it came
+     * from. No more than 3 may be provided.
+     * 
+ * + * repeated .google.privacy.dlp.v2.FieldId identifying_fields = 1; + */ + public Builder addIdentifyingFields(int index, com.google.privacy.dlp.v2.FieldId value) { + if (identifyingFieldsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureIdentifyingFieldsIsMutable(); + identifyingFields_.add(index, value); + onChanged(); + } else { + identifyingFieldsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The columns that are the primary keys for table objects included in
+     * ContentItem. A copy of this cell's value will stored alongside alongside
+     * each finding so that the finding can be traced to the specific row it came
+     * from. No more than 3 may be provided.
+     * 
+ * + * repeated .google.privacy.dlp.v2.FieldId identifying_fields = 1; + */ + public Builder addIdentifyingFields(com.google.privacy.dlp.v2.FieldId.Builder builderForValue) { + if (identifyingFieldsBuilder_ == null) { + ensureIdentifyingFieldsIsMutable(); + identifyingFields_.add(builderForValue.build()); + onChanged(); + } else { + identifyingFieldsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The columns that are the primary keys for table objects included in
+     * ContentItem. A copy of this cell's value will stored alongside alongside
+     * each finding so that the finding can be traced to the specific row it came
+     * from. No more than 3 may be provided.
+     * 
+ * + * repeated .google.privacy.dlp.v2.FieldId identifying_fields = 1; + */ + public Builder addIdentifyingFields( + int index, com.google.privacy.dlp.v2.FieldId.Builder builderForValue) { + if (identifyingFieldsBuilder_ == null) { + ensureIdentifyingFieldsIsMutable(); + identifyingFields_.add(index, builderForValue.build()); + onChanged(); + } else { + identifyingFieldsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The columns that are the primary keys for table objects included in
+     * ContentItem. A copy of this cell's value will stored alongside alongside
+     * each finding so that the finding can be traced to the specific row it came
+     * from. No more than 3 may be provided.
+     * 
+ * + * repeated .google.privacy.dlp.v2.FieldId identifying_fields = 1; + */ + public Builder addAllIdentifyingFields( + java.lang.Iterable values) { + if (identifyingFieldsBuilder_ == null) { + ensureIdentifyingFieldsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, identifyingFields_); + onChanged(); + } else { + identifyingFieldsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * The columns that are the primary keys for table objects included in
+     * ContentItem. A copy of this cell's value will stored alongside alongside
+     * each finding so that the finding can be traced to the specific row it came
+     * from. No more than 3 may be provided.
+     * 
+ * + * repeated .google.privacy.dlp.v2.FieldId identifying_fields = 1; + */ + public Builder clearIdentifyingFields() { + if (identifyingFieldsBuilder_ == null) { + identifyingFields_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + identifyingFieldsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The columns that are the primary keys for table objects included in
+     * ContentItem. A copy of this cell's value will stored alongside alongside
+     * each finding so that the finding can be traced to the specific row it came
+     * from. No more than 3 may be provided.
+     * 
+ * + * repeated .google.privacy.dlp.v2.FieldId identifying_fields = 1; + */ + public Builder removeIdentifyingFields(int index) { + if (identifyingFieldsBuilder_ == null) { + ensureIdentifyingFieldsIsMutable(); + identifyingFields_.remove(index); + onChanged(); + } else { + identifyingFieldsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * The columns that are the primary keys for table objects included in
+     * ContentItem. A copy of this cell's value will stored alongside alongside
+     * each finding so that the finding can be traced to the specific row it came
+     * from. No more than 3 may be provided.
+     * 
+ * + * repeated .google.privacy.dlp.v2.FieldId identifying_fields = 1; + */ + public com.google.privacy.dlp.v2.FieldId.Builder getIdentifyingFieldsBuilder(int index) { + return getIdentifyingFieldsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * The columns that are the primary keys for table objects included in
+     * ContentItem. A copy of this cell's value will stored alongside alongside
+     * each finding so that the finding can be traced to the specific row it came
+     * from. No more than 3 may be provided.
+     * 
+ * + * repeated .google.privacy.dlp.v2.FieldId identifying_fields = 1; + */ + public com.google.privacy.dlp.v2.FieldIdOrBuilder getIdentifyingFieldsOrBuilder(int index) { + if (identifyingFieldsBuilder_ == null) { + return identifyingFields_.get(index); + } else { + return identifyingFieldsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * The columns that are the primary keys for table objects included in
+     * ContentItem. A copy of this cell's value will stored alongside alongside
+     * each finding so that the finding can be traced to the specific row it came
+     * from. No more than 3 may be provided.
+     * 
+ * + * repeated .google.privacy.dlp.v2.FieldId identifying_fields = 1; + */ + public java.util.List + getIdentifyingFieldsOrBuilderList() { + if (identifyingFieldsBuilder_ != null) { + return identifyingFieldsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(identifyingFields_); + } + } + /** + * + * + *
+     * The columns that are the primary keys for table objects included in
+     * ContentItem. A copy of this cell's value will stored alongside alongside
+     * each finding so that the finding can be traced to the specific row it came
+     * from. No more than 3 may be provided.
+     * 
+ * + * repeated .google.privacy.dlp.v2.FieldId identifying_fields = 1; + */ + public com.google.privacy.dlp.v2.FieldId.Builder addIdentifyingFieldsBuilder() { + return getIdentifyingFieldsFieldBuilder() + .addBuilder(com.google.privacy.dlp.v2.FieldId.getDefaultInstance()); + } + /** + * + * + *
+     * The columns that are the primary keys for table objects included in
+     * ContentItem. A copy of this cell's value will stored alongside alongside
+     * each finding so that the finding can be traced to the specific row it came
+     * from. No more than 3 may be provided.
+     * 
+ * + * repeated .google.privacy.dlp.v2.FieldId identifying_fields = 1; + */ + public com.google.privacy.dlp.v2.FieldId.Builder addIdentifyingFieldsBuilder(int index) { + return getIdentifyingFieldsFieldBuilder() + .addBuilder(index, com.google.privacy.dlp.v2.FieldId.getDefaultInstance()); + } + /** + * + * + *
+     * The columns that are the primary keys for table objects included in
+     * ContentItem. A copy of this cell's value will stored alongside alongside
+     * each finding so that the finding can be traced to the specific row it came
+     * from. No more than 3 may be provided.
+     * 
+ * + * repeated .google.privacy.dlp.v2.FieldId identifying_fields = 1; + */ + public java.util.List + getIdentifyingFieldsBuilderList() { + return getIdentifyingFieldsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.privacy.dlp.v2.FieldId, + com.google.privacy.dlp.v2.FieldId.Builder, + com.google.privacy.dlp.v2.FieldIdOrBuilder> + getIdentifyingFieldsFieldBuilder() { + if (identifyingFieldsBuilder_ == null) { + identifyingFieldsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.privacy.dlp.v2.FieldId, + com.google.privacy.dlp.v2.FieldId.Builder, + com.google.privacy.dlp.v2.FieldIdOrBuilder>( + identifyingFields_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + identifyingFields_ = null; + } + return identifyingFieldsBuilder_; + } + + @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.TableOptions) + } + + // @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.TableOptions) + private static final com.google.privacy.dlp.v2.TableOptions DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.privacy.dlp.v2.TableOptions(); + } + + public static com.google.privacy.dlp.v2.TableOptions getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TableOptions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TableOptions(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.TableOptions getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TableOptionsOrBuilder.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TableOptionsOrBuilder.java new file mode 100644 index 00000000..7717727e --- /dev/null +++ b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TableOptionsOrBuilder.java @@ -0,0 +1,92 @@ +/* + * 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/storage.proto + +package com.google.privacy.dlp.v2; + +public interface TableOptionsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.privacy.dlp.v2.TableOptions) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The columns that are the primary keys for table objects included in
+   * ContentItem. A copy of this cell's value will stored alongside alongside
+   * each finding so that the finding can be traced to the specific row it came
+   * from. No more than 3 may be provided.
+   * 
+ * + * repeated .google.privacy.dlp.v2.FieldId identifying_fields = 1; + */ + java.util.List getIdentifyingFieldsList(); + /** + * + * + *
+   * The columns that are the primary keys for table objects included in
+   * ContentItem. A copy of this cell's value will stored alongside alongside
+   * each finding so that the finding can be traced to the specific row it came
+   * from. No more than 3 may be provided.
+   * 
+ * + * repeated .google.privacy.dlp.v2.FieldId identifying_fields = 1; + */ + com.google.privacy.dlp.v2.FieldId getIdentifyingFields(int index); + /** + * + * + *
+   * The columns that are the primary keys for table objects included in
+   * ContentItem. A copy of this cell's value will stored alongside alongside
+   * each finding so that the finding can be traced to the specific row it came
+   * from. No more than 3 may be provided.
+   * 
+ * + * repeated .google.privacy.dlp.v2.FieldId identifying_fields = 1; + */ + int getIdentifyingFieldsCount(); + /** + * + * + *
+   * The columns that are the primary keys for table objects included in
+   * ContentItem. A copy of this cell's value will stored alongside alongside
+   * each finding so that the finding can be traced to the specific row it came
+   * from. No more than 3 may be provided.
+   * 
+ * + * repeated .google.privacy.dlp.v2.FieldId identifying_fields = 1; + */ + java.util.List + getIdentifyingFieldsOrBuilderList(); + /** + * + * + *
+   * The columns that are the primary keys for table objects included in
+   * ContentItem. A copy of this cell's value will stored alongside alongside
+   * each finding so that the finding can be traced to the specific row it came
+   * from. No more than 3 may be provided.
+   * 
+ * + * repeated .google.privacy.dlp.v2.FieldId identifying_fields = 1; + */ + com.google.privacy.dlp.v2.FieldIdOrBuilder getIdentifyingFieldsOrBuilder(int index); +} diff --git a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TransformationErrorHandling.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TransformationErrorHandling.java new file mode 100644 index 00000000..3a4b3a75 --- /dev/null +++ b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TransformationErrorHandling.java @@ -0,0 +1,2147 @@ +/* + * 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; + +/** + * + * + *
+ * 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
+ * `DateShift` transformation would result in a transformation error, since date
+ * info cannot be extracted from an IP address.
+ * Information about any incompatible transformations, and how they were
+ * handled, is returned in the response as part of the
+ * `TransformationOverviews`.
+ * 
+ * + * Protobuf type {@code google.privacy.dlp.v2.TransformationErrorHandling} + */ +public final class TransformationErrorHandling extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2.TransformationErrorHandling) + TransformationErrorHandlingOrBuilder { + private static final long serialVersionUID = 0L; + // Use TransformationErrorHandling.newBuilder() to construct. + private TransformationErrorHandling(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TransformationErrorHandling() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TransformationErrorHandling(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private TransformationErrorHandling( + 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.TransformationErrorHandling.ThrowError.Builder subBuilder = + null; + if (modeCase_ == 1) { + subBuilder = + ((com.google.privacy.dlp.v2.TransformationErrorHandling.ThrowError) mode_) + .toBuilder(); + } + mode_ = + input.readMessage( + com.google.privacy.dlp.v2.TransformationErrorHandling.ThrowError.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.privacy.dlp.v2.TransformationErrorHandling.ThrowError) mode_); + mode_ = subBuilder.buildPartial(); + } + modeCase_ = 1; + break; + } + case 18: + { + com.google.privacy.dlp.v2.TransformationErrorHandling.LeaveUntransformed.Builder + subBuilder = null; + if (modeCase_ == 2) { + subBuilder = + ((com.google.privacy.dlp.v2.TransformationErrorHandling.LeaveUntransformed) + mode_) + .toBuilder(); + } + mode_ = + input.readMessage( + com.google.privacy.dlp.v2.TransformationErrorHandling.LeaveUntransformed + .parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.privacy.dlp.v2.TransformationErrorHandling.LeaveUntransformed) + mode_); + mode_ = subBuilder.buildPartial(); + } + modeCase_ = 2; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.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_TransformationErrorHandling_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_TransformationErrorHandling_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.privacy.dlp.v2.TransformationErrorHandling.class, + com.google.privacy.dlp.v2.TransformationErrorHandling.Builder.class); + } + + public interface ThrowErrorOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.privacy.dlp.v2.TransformationErrorHandling.ThrowError) + com.google.protobuf.MessageOrBuilder {} + /** + * + * + *
+   * Throw an error and fail the request when a transformation error occurs.
+   * 
+ * + * Protobuf type {@code google.privacy.dlp.v2.TransformationErrorHandling.ThrowError} + */ + public static final class ThrowError extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2.TransformationErrorHandling.ThrowError) + ThrowErrorOrBuilder { + private static final long serialVersionUID = 0L; + // Use ThrowError.newBuilder() to construct. + private ThrowError(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ThrowError() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ThrowError(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ThrowError( + 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 (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_TransformationErrorHandling_ThrowError_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_TransformationErrorHandling_ThrowError_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.privacy.dlp.v2.TransformationErrorHandling.ThrowError.class, + com.google.privacy.dlp.v2.TransformationErrorHandling.ThrowError.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.TransformationErrorHandling.ThrowError)) { + return super.equals(obj); + } + com.google.privacy.dlp.v2.TransformationErrorHandling.ThrowError other = + (com.google.privacy.dlp.v2.TransformationErrorHandling.ThrowError) 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.TransformationErrorHandling.ThrowError parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.privacy.dlp.v2.TransformationErrorHandling.ThrowError 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.TransformationErrorHandling.ThrowError parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.privacy.dlp.v2.TransformationErrorHandling.ThrowError 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.TransformationErrorHandling.ThrowError parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.privacy.dlp.v2.TransformationErrorHandling.ThrowError 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.TransformationErrorHandling.ThrowError parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.privacy.dlp.v2.TransformationErrorHandling.ThrowError 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.TransformationErrorHandling.ThrowError + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.privacy.dlp.v2.TransformationErrorHandling.ThrowError + 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.TransformationErrorHandling.ThrowError 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.TransformationErrorHandling.ThrowError 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.TransformationErrorHandling.ThrowError 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; + } + /** + * + * + *
+     * Throw an error and fail the request when a transformation error occurs.
+     * 
+ * + * Protobuf type {@code google.privacy.dlp.v2.TransformationErrorHandling.ThrowError} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.privacy.dlp.v2.TransformationErrorHandling.ThrowError) + com.google.privacy.dlp.v2.TransformationErrorHandling.ThrowErrorOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_TransformationErrorHandling_ThrowError_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_TransformationErrorHandling_ThrowError_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.privacy.dlp.v2.TransformationErrorHandling.ThrowError.class, + com.google.privacy.dlp.v2.TransformationErrorHandling.ThrowError.Builder.class); + } + + // Construct using + // com.google.privacy.dlp.v2.TransformationErrorHandling.ThrowError.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_TransformationErrorHandling_ThrowError_descriptor; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.TransformationErrorHandling.ThrowError + getDefaultInstanceForType() { + return com.google.privacy.dlp.v2.TransformationErrorHandling.ThrowError + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.privacy.dlp.v2.TransformationErrorHandling.ThrowError build() { + com.google.privacy.dlp.v2.TransformationErrorHandling.ThrowError result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.TransformationErrorHandling.ThrowError buildPartial() { + com.google.privacy.dlp.v2.TransformationErrorHandling.ThrowError result = + new com.google.privacy.dlp.v2.TransformationErrorHandling.ThrowError(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.TransformationErrorHandling.ThrowError) { + return mergeFrom( + (com.google.privacy.dlp.v2.TransformationErrorHandling.ThrowError) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.privacy.dlp.v2.TransformationErrorHandling.ThrowError other) { + if (other + == com.google.privacy.dlp.v2.TransformationErrorHandling.ThrowError + .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.TransformationErrorHandling.ThrowError parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.privacy.dlp.v2.TransformationErrorHandling.ThrowError) + 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.TransformationErrorHandling.ThrowError) + } + + // @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.TransformationErrorHandling.ThrowError) + private static final com.google.privacy.dlp.v2.TransformationErrorHandling.ThrowError + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.privacy.dlp.v2.TransformationErrorHandling.ThrowError(); + } + + public static com.google.privacy.dlp.v2.TransformationErrorHandling.ThrowError + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ThrowError parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ThrowError(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.TransformationErrorHandling.ThrowError + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface LeaveUntransformedOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.privacy.dlp.v2.TransformationErrorHandling.LeaveUntransformed) + com.google.protobuf.MessageOrBuilder {} + /** + * + * + *
+   * Skips the data without modifying it if the requested transformation would
+   * cause an error. For example, if a `DateShift` transformation were applied
+   * an an IP address, this mode would leave the IP address unchanged in the
+   * response.
+   * 
+ * + * Protobuf type {@code google.privacy.dlp.v2.TransformationErrorHandling.LeaveUntransformed} + */ + public static final class LeaveUntransformed extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2.TransformationErrorHandling.LeaveUntransformed) + LeaveUntransformedOrBuilder { + private static final long serialVersionUID = 0L; + // Use LeaveUntransformed.newBuilder() to construct. + private LeaveUntransformed(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private LeaveUntransformed() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new LeaveUntransformed(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private LeaveUntransformed( + 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 (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_TransformationErrorHandling_LeaveUntransformed_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_TransformationErrorHandling_LeaveUntransformed_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.privacy.dlp.v2.TransformationErrorHandling.LeaveUntransformed.class, + com.google.privacy.dlp.v2.TransformationErrorHandling.LeaveUntransformed.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.TransformationErrorHandling.LeaveUntransformed)) { + return super.equals(obj); + } + com.google.privacy.dlp.v2.TransformationErrorHandling.LeaveUntransformed other = + (com.google.privacy.dlp.v2.TransformationErrorHandling.LeaveUntransformed) 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.TransformationErrorHandling.LeaveUntransformed + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.privacy.dlp.v2.TransformationErrorHandling.LeaveUntransformed + 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.TransformationErrorHandling.LeaveUntransformed + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.privacy.dlp.v2.TransformationErrorHandling.LeaveUntransformed + 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.TransformationErrorHandling.LeaveUntransformed + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.privacy.dlp.v2.TransformationErrorHandling.LeaveUntransformed + 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.TransformationErrorHandling.LeaveUntransformed + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.privacy.dlp.v2.TransformationErrorHandling.LeaveUntransformed + 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.TransformationErrorHandling.LeaveUntransformed + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.privacy.dlp.v2.TransformationErrorHandling.LeaveUntransformed + 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.TransformationErrorHandling.LeaveUntransformed + 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.TransformationErrorHandling.LeaveUntransformed + 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.TransformationErrorHandling.LeaveUntransformed 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; + } + /** + * + * + *
+     * Skips the data without modifying it if the requested transformation would
+     * cause an error. For example, if a `DateShift` transformation were applied
+     * an an IP address, this mode would leave the IP address unchanged in the
+     * response.
+     * 
+ * + * Protobuf type {@code google.privacy.dlp.v2.TransformationErrorHandling.LeaveUntransformed} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.privacy.dlp.v2.TransformationErrorHandling.LeaveUntransformed) + com.google.privacy.dlp.v2.TransformationErrorHandling.LeaveUntransformedOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_TransformationErrorHandling_LeaveUntransformed_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_TransformationErrorHandling_LeaveUntransformed_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.privacy.dlp.v2.TransformationErrorHandling.LeaveUntransformed.class, + com.google.privacy.dlp.v2.TransformationErrorHandling.LeaveUntransformed.Builder + .class); + } + + // Construct using + // com.google.privacy.dlp.v2.TransformationErrorHandling.LeaveUntransformed.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_TransformationErrorHandling_LeaveUntransformed_descriptor; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.TransformationErrorHandling.LeaveUntransformed + getDefaultInstanceForType() { + return com.google.privacy.dlp.v2.TransformationErrorHandling.LeaveUntransformed + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.privacy.dlp.v2.TransformationErrorHandling.LeaveUntransformed build() { + com.google.privacy.dlp.v2.TransformationErrorHandling.LeaveUntransformed result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.TransformationErrorHandling.LeaveUntransformed + buildPartial() { + com.google.privacy.dlp.v2.TransformationErrorHandling.LeaveUntransformed result = + new com.google.privacy.dlp.v2.TransformationErrorHandling.LeaveUntransformed(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.TransformationErrorHandling.LeaveUntransformed) { + return mergeFrom( + (com.google.privacy.dlp.v2.TransformationErrorHandling.LeaveUntransformed) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.privacy.dlp.v2.TransformationErrorHandling.LeaveUntransformed other) { + if (other + == com.google.privacy.dlp.v2.TransformationErrorHandling.LeaveUntransformed + .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.TransformationErrorHandling.LeaveUntransformed parsedMessage = + null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.privacy.dlp.v2.TransformationErrorHandling.LeaveUntransformed) + 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.TransformationErrorHandling.LeaveUntransformed) + } + + // @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.TransformationErrorHandling.LeaveUntransformed) + private static final com.google.privacy.dlp.v2.TransformationErrorHandling.LeaveUntransformed + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.privacy.dlp.v2.TransformationErrorHandling.LeaveUntransformed(); + } + + public static com.google.privacy.dlp.v2.TransformationErrorHandling.LeaveUntransformed + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LeaveUntransformed parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LeaveUntransformed(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.TransformationErrorHandling.LeaveUntransformed + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int modeCase_ = 0; + private java.lang.Object mode_; + + public enum ModeCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + THROW_ERROR(1), + LEAVE_UNTRANSFORMED(2), + MODE_NOT_SET(0); + private final int value; + + private ModeCase(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 ModeCase valueOf(int value) { + return forNumber(value); + } + + public static ModeCase forNumber(int value) { + switch (value) { + case 1: + return THROW_ERROR; + case 2: + return LEAVE_UNTRANSFORMED; + case 0: + return MODE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ModeCase getModeCase() { + return ModeCase.forNumber(modeCase_); + } + + public static final int THROW_ERROR_FIELD_NUMBER = 1; + /** + * + * + *
+   * Throw an error
+   * 
+ * + * .google.privacy.dlp.v2.TransformationErrorHandling.ThrowError throw_error = 1; + * + * @return Whether the throwError field is set. + */ + public boolean hasThrowError() { + return modeCase_ == 1; + } + /** + * + * + *
+   * Throw an error
+   * 
+ * + * .google.privacy.dlp.v2.TransformationErrorHandling.ThrowError throw_error = 1; + * + * @return The throwError. + */ + public com.google.privacy.dlp.v2.TransformationErrorHandling.ThrowError getThrowError() { + if (modeCase_ == 1) { + return (com.google.privacy.dlp.v2.TransformationErrorHandling.ThrowError) mode_; + } + return com.google.privacy.dlp.v2.TransformationErrorHandling.ThrowError.getDefaultInstance(); + } + /** + * + * + *
+   * Throw an error
+   * 
+ * + * .google.privacy.dlp.v2.TransformationErrorHandling.ThrowError throw_error = 1; + */ + public com.google.privacy.dlp.v2.TransformationErrorHandling.ThrowErrorOrBuilder + getThrowErrorOrBuilder() { + if (modeCase_ == 1) { + return (com.google.privacy.dlp.v2.TransformationErrorHandling.ThrowError) mode_; + } + return com.google.privacy.dlp.v2.TransformationErrorHandling.ThrowError.getDefaultInstance(); + } + + public static final int LEAVE_UNTRANSFORMED_FIELD_NUMBER = 2; + /** + * + * + *
+   * Ignore errors
+   * 
+ * + * + * .google.privacy.dlp.v2.TransformationErrorHandling.LeaveUntransformed leave_untransformed = 2; + * + * + * @return Whether the leaveUntransformed field is set. + */ + public boolean hasLeaveUntransformed() { + return modeCase_ == 2; + } + /** + * + * + *
+   * Ignore errors
+   * 
+ * + * + * .google.privacy.dlp.v2.TransformationErrorHandling.LeaveUntransformed leave_untransformed = 2; + * + * + * @return The leaveUntransformed. + */ + public com.google.privacy.dlp.v2.TransformationErrorHandling.LeaveUntransformed + getLeaveUntransformed() { + if (modeCase_ == 2) { + return (com.google.privacy.dlp.v2.TransformationErrorHandling.LeaveUntransformed) mode_; + } + return com.google.privacy.dlp.v2.TransformationErrorHandling.LeaveUntransformed + .getDefaultInstance(); + } + /** + * + * + *
+   * Ignore errors
+   * 
+ * + * + * .google.privacy.dlp.v2.TransformationErrorHandling.LeaveUntransformed leave_untransformed = 2; + * + */ + public com.google.privacy.dlp.v2.TransformationErrorHandling.LeaveUntransformedOrBuilder + getLeaveUntransformedOrBuilder() { + if (modeCase_ == 2) { + return (com.google.privacy.dlp.v2.TransformationErrorHandling.LeaveUntransformed) mode_; + } + return com.google.privacy.dlp.v2.TransformationErrorHandling.LeaveUntransformed + .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 (modeCase_ == 1) { + output.writeMessage( + 1, (com.google.privacy.dlp.v2.TransformationErrorHandling.ThrowError) mode_); + } + if (modeCase_ == 2) { + output.writeMessage( + 2, (com.google.privacy.dlp.v2.TransformationErrorHandling.LeaveUntransformed) mode_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (modeCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.privacy.dlp.v2.TransformationErrorHandling.ThrowError) mode_); + } + if (modeCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.privacy.dlp.v2.TransformationErrorHandling.LeaveUntransformed) mode_); + } + 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.TransformationErrorHandling)) { + return super.equals(obj); + } + com.google.privacy.dlp.v2.TransformationErrorHandling other = + (com.google.privacy.dlp.v2.TransformationErrorHandling) obj; + + if (!getModeCase().equals(other.getModeCase())) return false; + switch (modeCase_) { + case 1: + if (!getThrowError().equals(other.getThrowError())) return false; + break; + case 2: + if (!getLeaveUntransformed().equals(other.getLeaveUntransformed())) 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 (modeCase_) { + case 1: + hash = (37 * hash) + THROW_ERROR_FIELD_NUMBER; + hash = (53 * hash) + getThrowError().hashCode(); + break; + case 2: + hash = (37 * hash) + LEAVE_UNTRANSFORMED_FIELD_NUMBER; + hash = (53 * hash) + getLeaveUntransformed().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.privacy.dlp.v2.TransformationErrorHandling parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.privacy.dlp.v2.TransformationErrorHandling 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.TransformationErrorHandling parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.privacy.dlp.v2.TransformationErrorHandling 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.TransformationErrorHandling parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.privacy.dlp.v2.TransformationErrorHandling 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.TransformationErrorHandling parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.privacy.dlp.v2.TransformationErrorHandling 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.TransformationErrorHandling parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.privacy.dlp.v2.TransformationErrorHandling 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.TransformationErrorHandling 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.TransformationErrorHandling 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.TransformationErrorHandling 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; + } + /** + * + * + *
+   * 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
+   * `DateShift` transformation would result in a transformation error, since date
+   * info cannot be extracted from an IP address.
+   * Information about any incompatible transformations, and how they were
+   * handled, is returned in the response as part of the
+   * `TransformationOverviews`.
+   * 
+ * + * Protobuf type {@code google.privacy.dlp.v2.TransformationErrorHandling} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.privacy.dlp.v2.TransformationErrorHandling) + com.google.privacy.dlp.v2.TransformationErrorHandlingOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_TransformationErrorHandling_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_TransformationErrorHandling_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.privacy.dlp.v2.TransformationErrorHandling.class, + com.google.privacy.dlp.v2.TransformationErrorHandling.Builder.class); + } + + // Construct using com.google.privacy.dlp.v2.TransformationErrorHandling.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(); + modeCase_ = 0; + mode_ = 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_TransformationErrorHandling_descriptor; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.TransformationErrorHandling getDefaultInstanceForType() { + return com.google.privacy.dlp.v2.TransformationErrorHandling.getDefaultInstance(); + } + + @java.lang.Override + public com.google.privacy.dlp.v2.TransformationErrorHandling build() { + com.google.privacy.dlp.v2.TransformationErrorHandling result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.TransformationErrorHandling buildPartial() { + com.google.privacy.dlp.v2.TransformationErrorHandling result = + new com.google.privacy.dlp.v2.TransformationErrorHandling(this); + if (modeCase_ == 1) { + if (throwErrorBuilder_ == null) { + result.mode_ = mode_; + } else { + result.mode_ = throwErrorBuilder_.build(); + } + } + if (modeCase_ == 2) { + if (leaveUntransformedBuilder_ == null) { + result.mode_ = mode_; + } else { + result.mode_ = leaveUntransformedBuilder_.build(); + } + } + result.modeCase_ = modeCase_; + 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.TransformationErrorHandling) { + return mergeFrom((com.google.privacy.dlp.v2.TransformationErrorHandling) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.privacy.dlp.v2.TransformationErrorHandling other) { + if (other == com.google.privacy.dlp.v2.TransformationErrorHandling.getDefaultInstance()) + return this; + switch (other.getModeCase()) { + case THROW_ERROR: + { + mergeThrowError(other.getThrowError()); + break; + } + case LEAVE_UNTRANSFORMED: + { + mergeLeaveUntransformed(other.getLeaveUntransformed()); + break; + } + case MODE_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.TransformationErrorHandling parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.privacy.dlp.v2.TransformationErrorHandling) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int modeCase_ = 0; + private java.lang.Object mode_; + + public ModeCase getModeCase() { + return ModeCase.forNumber(modeCase_); + } + + public Builder clearMode() { + modeCase_ = 0; + mode_ = null; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.TransformationErrorHandling.ThrowError, + com.google.privacy.dlp.v2.TransformationErrorHandling.ThrowError.Builder, + com.google.privacy.dlp.v2.TransformationErrorHandling.ThrowErrorOrBuilder> + throwErrorBuilder_; + /** + * + * + *
+     * Throw an error
+     * 
+ * + * .google.privacy.dlp.v2.TransformationErrorHandling.ThrowError throw_error = 1; + * + * @return Whether the throwError field is set. + */ + public boolean hasThrowError() { + return modeCase_ == 1; + } + /** + * + * + *
+     * Throw an error
+     * 
+ * + * .google.privacy.dlp.v2.TransformationErrorHandling.ThrowError throw_error = 1; + * + * @return The throwError. + */ + public com.google.privacy.dlp.v2.TransformationErrorHandling.ThrowError getThrowError() { + if (throwErrorBuilder_ == null) { + if (modeCase_ == 1) { + return (com.google.privacy.dlp.v2.TransformationErrorHandling.ThrowError) mode_; + } + return com.google.privacy.dlp.v2.TransformationErrorHandling.ThrowError + .getDefaultInstance(); + } else { + if (modeCase_ == 1) { + return throwErrorBuilder_.getMessage(); + } + return com.google.privacy.dlp.v2.TransformationErrorHandling.ThrowError + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Throw an error
+     * 
+ * + * .google.privacy.dlp.v2.TransformationErrorHandling.ThrowError throw_error = 1; + */ + public Builder setThrowError( + com.google.privacy.dlp.v2.TransformationErrorHandling.ThrowError value) { + if (throwErrorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + mode_ = value; + onChanged(); + } else { + throwErrorBuilder_.setMessage(value); + } + modeCase_ = 1; + return this; + } + /** + * + * + *
+     * Throw an error
+     * 
+ * + * .google.privacy.dlp.v2.TransformationErrorHandling.ThrowError throw_error = 1; + */ + public Builder setThrowError( + com.google.privacy.dlp.v2.TransformationErrorHandling.ThrowError.Builder builderForValue) { + if (throwErrorBuilder_ == null) { + mode_ = builderForValue.build(); + onChanged(); + } else { + throwErrorBuilder_.setMessage(builderForValue.build()); + } + modeCase_ = 1; + return this; + } + /** + * + * + *
+     * Throw an error
+     * 
+ * + * .google.privacy.dlp.v2.TransformationErrorHandling.ThrowError throw_error = 1; + */ + public Builder mergeThrowError( + com.google.privacy.dlp.v2.TransformationErrorHandling.ThrowError value) { + if (throwErrorBuilder_ == null) { + if (modeCase_ == 1 + && mode_ + != com.google.privacy.dlp.v2.TransformationErrorHandling.ThrowError + .getDefaultInstance()) { + mode_ = + com.google.privacy.dlp.v2.TransformationErrorHandling.ThrowError.newBuilder( + (com.google.privacy.dlp.v2.TransformationErrorHandling.ThrowError) mode_) + .mergeFrom(value) + .buildPartial(); + } else { + mode_ = value; + } + onChanged(); + } else { + if (modeCase_ == 1) { + throwErrorBuilder_.mergeFrom(value); + } + throwErrorBuilder_.setMessage(value); + } + modeCase_ = 1; + return this; + } + /** + * + * + *
+     * Throw an error
+     * 
+ * + * .google.privacy.dlp.v2.TransformationErrorHandling.ThrowError throw_error = 1; + */ + public Builder clearThrowError() { + if (throwErrorBuilder_ == null) { + if (modeCase_ == 1) { + modeCase_ = 0; + mode_ = null; + onChanged(); + } + } else { + if (modeCase_ == 1) { + modeCase_ = 0; + mode_ = null; + } + throwErrorBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Throw an error
+     * 
+ * + * .google.privacy.dlp.v2.TransformationErrorHandling.ThrowError throw_error = 1; + */ + public com.google.privacy.dlp.v2.TransformationErrorHandling.ThrowError.Builder + getThrowErrorBuilder() { + return getThrowErrorFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Throw an error
+     * 
+ * + * .google.privacy.dlp.v2.TransformationErrorHandling.ThrowError throw_error = 1; + */ + public com.google.privacy.dlp.v2.TransformationErrorHandling.ThrowErrorOrBuilder + getThrowErrorOrBuilder() { + if ((modeCase_ == 1) && (throwErrorBuilder_ != null)) { + return throwErrorBuilder_.getMessageOrBuilder(); + } else { + if (modeCase_ == 1) { + return (com.google.privacy.dlp.v2.TransformationErrorHandling.ThrowError) mode_; + } + return com.google.privacy.dlp.v2.TransformationErrorHandling.ThrowError + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Throw an error
+     * 
+ * + * .google.privacy.dlp.v2.TransformationErrorHandling.ThrowError throw_error = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.TransformationErrorHandling.ThrowError, + com.google.privacy.dlp.v2.TransformationErrorHandling.ThrowError.Builder, + com.google.privacy.dlp.v2.TransformationErrorHandling.ThrowErrorOrBuilder> + getThrowErrorFieldBuilder() { + if (throwErrorBuilder_ == null) { + if (!(modeCase_ == 1)) { + mode_ = + com.google.privacy.dlp.v2.TransformationErrorHandling.ThrowError.getDefaultInstance(); + } + throwErrorBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.TransformationErrorHandling.ThrowError, + com.google.privacy.dlp.v2.TransformationErrorHandling.ThrowError.Builder, + com.google.privacy.dlp.v2.TransformationErrorHandling.ThrowErrorOrBuilder>( + (com.google.privacy.dlp.v2.TransformationErrorHandling.ThrowError) mode_, + getParentForChildren(), + isClean()); + mode_ = null; + } + modeCase_ = 1; + onChanged(); + ; + return throwErrorBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.TransformationErrorHandling.LeaveUntransformed, + com.google.privacy.dlp.v2.TransformationErrorHandling.LeaveUntransformed.Builder, + com.google.privacy.dlp.v2.TransformationErrorHandling.LeaveUntransformedOrBuilder> + leaveUntransformedBuilder_; + /** + * + * + *
+     * Ignore errors
+     * 
+ * + * + * .google.privacy.dlp.v2.TransformationErrorHandling.LeaveUntransformed leave_untransformed = 2; + * + * + * @return Whether the leaveUntransformed field is set. + */ + public boolean hasLeaveUntransformed() { + return modeCase_ == 2; + } + /** + * + * + *
+     * Ignore errors
+     * 
+ * + * + * .google.privacy.dlp.v2.TransformationErrorHandling.LeaveUntransformed leave_untransformed = 2; + * + * + * @return The leaveUntransformed. + */ + public com.google.privacy.dlp.v2.TransformationErrorHandling.LeaveUntransformed + getLeaveUntransformed() { + if (leaveUntransformedBuilder_ == null) { + if (modeCase_ == 2) { + return (com.google.privacy.dlp.v2.TransformationErrorHandling.LeaveUntransformed) mode_; + } + return com.google.privacy.dlp.v2.TransformationErrorHandling.LeaveUntransformed + .getDefaultInstance(); + } else { + if (modeCase_ == 2) { + return leaveUntransformedBuilder_.getMessage(); + } + return com.google.privacy.dlp.v2.TransformationErrorHandling.LeaveUntransformed + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Ignore errors
+     * 
+ * + * + * .google.privacy.dlp.v2.TransformationErrorHandling.LeaveUntransformed leave_untransformed = 2; + * + */ + public Builder setLeaveUntransformed( + com.google.privacy.dlp.v2.TransformationErrorHandling.LeaveUntransformed value) { + if (leaveUntransformedBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + mode_ = value; + onChanged(); + } else { + leaveUntransformedBuilder_.setMessage(value); + } + modeCase_ = 2; + return this; + } + /** + * + * + *
+     * Ignore errors
+     * 
+ * + * + * .google.privacy.dlp.v2.TransformationErrorHandling.LeaveUntransformed leave_untransformed = 2; + * + */ + public Builder setLeaveUntransformed( + com.google.privacy.dlp.v2.TransformationErrorHandling.LeaveUntransformed.Builder + builderForValue) { + if (leaveUntransformedBuilder_ == null) { + mode_ = builderForValue.build(); + onChanged(); + } else { + leaveUntransformedBuilder_.setMessage(builderForValue.build()); + } + modeCase_ = 2; + return this; + } + /** + * + * + *
+     * Ignore errors
+     * 
+ * + * + * .google.privacy.dlp.v2.TransformationErrorHandling.LeaveUntransformed leave_untransformed = 2; + * + */ + public Builder mergeLeaveUntransformed( + com.google.privacy.dlp.v2.TransformationErrorHandling.LeaveUntransformed value) { + if (leaveUntransformedBuilder_ == null) { + if (modeCase_ == 2 + && mode_ + != com.google.privacy.dlp.v2.TransformationErrorHandling.LeaveUntransformed + .getDefaultInstance()) { + mode_ = + com.google.privacy.dlp.v2.TransformationErrorHandling.LeaveUntransformed.newBuilder( + (com.google.privacy.dlp.v2.TransformationErrorHandling.LeaveUntransformed) + mode_) + .mergeFrom(value) + .buildPartial(); + } else { + mode_ = value; + } + onChanged(); + } else { + if (modeCase_ == 2) { + leaveUntransformedBuilder_.mergeFrom(value); + } + leaveUntransformedBuilder_.setMessage(value); + } + modeCase_ = 2; + return this; + } + /** + * + * + *
+     * Ignore errors
+     * 
+ * + * + * .google.privacy.dlp.v2.TransformationErrorHandling.LeaveUntransformed leave_untransformed = 2; + * + */ + public Builder clearLeaveUntransformed() { + if (leaveUntransformedBuilder_ == null) { + if (modeCase_ == 2) { + modeCase_ = 0; + mode_ = null; + onChanged(); + } + } else { + if (modeCase_ == 2) { + modeCase_ = 0; + mode_ = null; + } + leaveUntransformedBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Ignore errors
+     * 
+ * + * + * .google.privacy.dlp.v2.TransformationErrorHandling.LeaveUntransformed leave_untransformed = 2; + * + */ + public com.google.privacy.dlp.v2.TransformationErrorHandling.LeaveUntransformed.Builder + getLeaveUntransformedBuilder() { + return getLeaveUntransformedFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Ignore errors
+     * 
+ * + * + * .google.privacy.dlp.v2.TransformationErrorHandling.LeaveUntransformed leave_untransformed = 2; + * + */ + public com.google.privacy.dlp.v2.TransformationErrorHandling.LeaveUntransformedOrBuilder + getLeaveUntransformedOrBuilder() { + if ((modeCase_ == 2) && (leaveUntransformedBuilder_ != null)) { + return leaveUntransformedBuilder_.getMessageOrBuilder(); + } else { + if (modeCase_ == 2) { + return (com.google.privacy.dlp.v2.TransformationErrorHandling.LeaveUntransformed) mode_; + } + return com.google.privacy.dlp.v2.TransformationErrorHandling.LeaveUntransformed + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Ignore errors
+     * 
+ * + * + * .google.privacy.dlp.v2.TransformationErrorHandling.LeaveUntransformed leave_untransformed = 2; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.TransformationErrorHandling.LeaveUntransformed, + com.google.privacy.dlp.v2.TransformationErrorHandling.LeaveUntransformed.Builder, + com.google.privacy.dlp.v2.TransformationErrorHandling.LeaveUntransformedOrBuilder> + getLeaveUntransformedFieldBuilder() { + if (leaveUntransformedBuilder_ == null) { + if (!(modeCase_ == 2)) { + mode_ = + com.google.privacy.dlp.v2.TransformationErrorHandling.LeaveUntransformed + .getDefaultInstance(); + } + leaveUntransformedBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.TransformationErrorHandling.LeaveUntransformed, + com.google.privacy.dlp.v2.TransformationErrorHandling.LeaveUntransformed.Builder, + com.google.privacy.dlp.v2.TransformationErrorHandling.LeaveUntransformedOrBuilder>( + (com.google.privacy.dlp.v2.TransformationErrorHandling.LeaveUntransformed) mode_, + getParentForChildren(), + isClean()); + mode_ = null; + } + modeCase_ = 2; + onChanged(); + ; + return leaveUntransformedBuilder_; + } + + @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.TransformationErrorHandling) + } + + // @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.TransformationErrorHandling) + private static final com.google.privacy.dlp.v2.TransformationErrorHandling DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.privacy.dlp.v2.TransformationErrorHandling(); + } + + public static com.google.privacy.dlp.v2.TransformationErrorHandling getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TransformationErrorHandling parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TransformationErrorHandling(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.TransformationErrorHandling getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TransformationErrorHandlingOrBuilder.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TransformationErrorHandlingOrBuilder.java new file mode 100644 index 00000000..425f209f --- /dev/null +++ b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TransformationErrorHandlingOrBuilder.java @@ -0,0 +1,105 @@ +/* + * 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 TransformationErrorHandlingOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.privacy.dlp.v2.TransformationErrorHandling) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Throw an error
+   * 
+ * + * .google.privacy.dlp.v2.TransformationErrorHandling.ThrowError throw_error = 1; + * + * @return Whether the throwError field is set. + */ + boolean hasThrowError(); + /** + * + * + *
+   * Throw an error
+   * 
+ * + * .google.privacy.dlp.v2.TransformationErrorHandling.ThrowError throw_error = 1; + * + * @return The throwError. + */ + com.google.privacy.dlp.v2.TransformationErrorHandling.ThrowError getThrowError(); + /** + * + * + *
+   * Throw an error
+   * 
+ * + * .google.privacy.dlp.v2.TransformationErrorHandling.ThrowError throw_error = 1; + */ + com.google.privacy.dlp.v2.TransformationErrorHandling.ThrowErrorOrBuilder + getThrowErrorOrBuilder(); + + /** + * + * + *
+   * Ignore errors
+   * 
+ * + * + * .google.privacy.dlp.v2.TransformationErrorHandling.LeaveUntransformed leave_untransformed = 2; + * + * + * @return Whether the leaveUntransformed field is set. + */ + boolean hasLeaveUntransformed(); + /** + * + * + *
+   * Ignore errors
+   * 
+ * + * + * .google.privacy.dlp.v2.TransformationErrorHandling.LeaveUntransformed leave_untransformed = 2; + * + * + * @return The leaveUntransformed. + */ + com.google.privacy.dlp.v2.TransformationErrorHandling.LeaveUntransformed getLeaveUntransformed(); + /** + * + * + *
+   * Ignore errors
+   * 
+ * + * + * .google.privacy.dlp.v2.TransformationErrorHandling.LeaveUntransformed leave_untransformed = 2; + * + */ + com.google.privacy.dlp.v2.TransformationErrorHandling.LeaveUntransformedOrBuilder + getLeaveUntransformedOrBuilder(); + + public com.google.privacy.dlp.v2.TransformationErrorHandling.ModeCase getModeCase(); +} diff --git a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/UpdateDeidentifyTemplateRequest.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/UpdateDeidentifyTemplateRequest.java index e47101f2..436877d5 100644 --- a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/UpdateDeidentifyTemplateRequest.java +++ b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/UpdateDeidentifyTemplateRequest.java @@ -149,8 +149,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Required. Resource name of organization and deidentify template to be updated, for
-   * example `organizations/433245324/deidentifyTemplates/432452342` or
+   * Required. Resource name of organization and deidentify template to be
+   * updated, for example
+   * `organizations/433245324/deidentifyTemplates/432452342` or
    * projects/project-id/deidentifyTemplates/432452342.
    * 
* @@ -175,8 +176,9 @@ public java.lang.String getName() { * * *
-   * Required. Resource name of organization and deidentify template to be updated, for
-   * example `organizations/433245324/deidentifyTemplates/432452342` or
+   * Required. Resource name of organization and deidentify template to be
+   * updated, for example
+   * `organizations/433245324/deidentifyTemplates/432452342` or
    * projects/project-id/deidentifyTemplates/432452342.
    * 
* @@ -666,8 +668,9 @@ public Builder mergeFrom( * * *
-     * Required. Resource name of organization and deidentify template to be updated, for
-     * example `organizations/433245324/deidentifyTemplates/432452342` or
+     * Required. Resource name of organization and deidentify template to be
+     * updated, for example
+     * `organizations/433245324/deidentifyTemplates/432452342` or
      * projects/project-id/deidentifyTemplates/432452342.
      * 
* @@ -692,8 +695,9 @@ public java.lang.String getName() { * * *
-     * Required. Resource name of organization and deidentify template to be updated, for
-     * example `organizations/433245324/deidentifyTemplates/432452342` or
+     * Required. Resource name of organization and deidentify template to be
+     * updated, for example
+     * `organizations/433245324/deidentifyTemplates/432452342` or
      * projects/project-id/deidentifyTemplates/432452342.
      * 
* @@ -718,8 +722,9 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * Required. Resource name of organization and deidentify template to be updated, for
-     * example `organizations/433245324/deidentifyTemplates/432452342` or
+     * Required. Resource name of organization and deidentify template to be
+     * updated, for example
+     * `organizations/433245324/deidentifyTemplates/432452342` or
      * projects/project-id/deidentifyTemplates/432452342.
      * 
* @@ -743,8 +748,9 @@ public Builder setName(java.lang.String value) { * * *
-     * Required. Resource name of organization and deidentify template to be updated, for
-     * example `organizations/433245324/deidentifyTemplates/432452342` or
+     * Required. Resource name of organization and deidentify template to be
+     * updated, for example
+     * `organizations/433245324/deidentifyTemplates/432452342` or
      * projects/project-id/deidentifyTemplates/432452342.
      * 
* @@ -764,8 +770,9 @@ public Builder clearName() { * * *
-     * Required. Resource name of organization and deidentify template to be updated, for
-     * example `organizations/433245324/deidentifyTemplates/432452342` or
+     * Required. Resource name of organization and deidentify template to be
+     * updated, for example
+     * `organizations/433245324/deidentifyTemplates/432452342` or
      * projects/project-id/deidentifyTemplates/432452342.
      * 
* diff --git a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/UpdateDeidentifyTemplateRequestOrBuilder.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/UpdateDeidentifyTemplateRequestOrBuilder.java index 4dd521b8..627e64d6 100644 --- a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/UpdateDeidentifyTemplateRequestOrBuilder.java +++ b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/UpdateDeidentifyTemplateRequestOrBuilder.java @@ -27,8 +27,9 @@ public interface UpdateDeidentifyTemplateRequestOrBuilder * * *
-   * Required. Resource name of organization and deidentify template to be updated, for
-   * example `organizations/433245324/deidentifyTemplates/432452342` or
+   * Required. Resource name of organization and deidentify template to be
+   * updated, for example
+   * `organizations/433245324/deidentifyTemplates/432452342` or
    * projects/project-id/deidentifyTemplates/432452342.
    * 
* @@ -43,8 +44,9 @@ public interface UpdateDeidentifyTemplateRequestOrBuilder * * *
-   * Required. Resource name of organization and deidentify template to be updated, for
-   * example `organizations/433245324/deidentifyTemplates/432452342` or
+   * Required. Resource name of organization and deidentify template to be
+   * updated, for example
+   * `organizations/433245324/deidentifyTemplates/432452342` or
    * projects/project-id/deidentifyTemplates/432452342.
    * 
* diff --git a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/UpdateInspectTemplateRequest.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/UpdateInspectTemplateRequest.java index 1903c9d2..795739b6 100644 --- a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/UpdateInspectTemplateRequest.java +++ b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/UpdateInspectTemplateRequest.java @@ -148,8 +148,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Required. Resource name of organization and inspectTemplate to be updated, for
-   * example `organizations/433245324/inspectTemplates/432452342` or
+   * Required. Resource name of organization and inspectTemplate to be updated,
+   * for example `organizations/433245324/inspectTemplates/432452342` or
    * projects/project-id/inspectTemplates/432452342.
    * 
* @@ -174,8 +174,8 @@ public java.lang.String getName() { * * *
-   * Required. Resource name of organization and inspectTemplate to be updated, for
-   * example `organizations/433245324/inspectTemplates/432452342` or
+   * Required. Resource name of organization and inspectTemplate to be updated,
+   * for example `organizations/433245324/inspectTemplates/432452342` or
    * projects/project-id/inspectTemplates/432452342.
    * 
* @@ -665,8 +665,8 @@ public Builder mergeFrom( * * *
-     * Required. Resource name of organization and inspectTemplate to be updated, for
-     * example `organizations/433245324/inspectTemplates/432452342` or
+     * Required. Resource name of organization and inspectTemplate to be updated,
+     * for example `organizations/433245324/inspectTemplates/432452342` or
      * projects/project-id/inspectTemplates/432452342.
      * 
* @@ -691,8 +691,8 @@ public java.lang.String getName() { * * *
-     * Required. Resource name of organization and inspectTemplate to be updated, for
-     * example `organizations/433245324/inspectTemplates/432452342` or
+     * Required. Resource name of organization and inspectTemplate to be updated,
+     * for example `organizations/433245324/inspectTemplates/432452342` or
      * projects/project-id/inspectTemplates/432452342.
      * 
* @@ -717,8 +717,8 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * Required. Resource name of organization and inspectTemplate to be updated, for
-     * example `organizations/433245324/inspectTemplates/432452342` or
+     * Required. Resource name of organization and inspectTemplate to be updated,
+     * for example `organizations/433245324/inspectTemplates/432452342` or
      * projects/project-id/inspectTemplates/432452342.
      * 
* @@ -742,8 +742,8 @@ public Builder setName(java.lang.String value) { * * *
-     * Required. Resource name of organization and inspectTemplate to be updated, for
-     * example `organizations/433245324/inspectTemplates/432452342` or
+     * Required. Resource name of organization and inspectTemplate to be updated,
+     * for example `organizations/433245324/inspectTemplates/432452342` or
      * projects/project-id/inspectTemplates/432452342.
      * 
* @@ -763,8 +763,8 @@ public Builder clearName() { * * *
-     * Required. Resource name of organization and inspectTemplate to be updated, for
-     * example `organizations/433245324/inspectTemplates/432452342` or
+     * Required. Resource name of organization and inspectTemplate to be updated,
+     * for example `organizations/433245324/inspectTemplates/432452342` or
      * projects/project-id/inspectTemplates/432452342.
      * 
* diff --git a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/UpdateInspectTemplateRequestOrBuilder.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/UpdateInspectTemplateRequestOrBuilder.java index e98a8648..5b29f331 100644 --- a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/UpdateInspectTemplateRequestOrBuilder.java +++ b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/UpdateInspectTemplateRequestOrBuilder.java @@ -27,8 +27,8 @@ public interface UpdateInspectTemplateRequestOrBuilder * * *
-   * Required. Resource name of organization and inspectTemplate to be updated, for
-   * example `organizations/433245324/inspectTemplates/432452342` or
+   * Required. Resource name of organization and inspectTemplate to be updated,
+   * for example `organizations/433245324/inspectTemplates/432452342` or
    * projects/project-id/inspectTemplates/432452342.
    * 
* @@ -43,8 +43,8 @@ public interface UpdateInspectTemplateRequestOrBuilder * * *
-   * Required. Resource name of organization and inspectTemplate to be updated, for
-   * example `organizations/433245324/inspectTemplates/432452342` or
+   * Required. Resource name of organization and inspectTemplate to be updated,
+   * for example `organizations/433245324/inspectTemplates/432452342` or
    * projects/project-id/inspectTemplates/432452342.
    * 
* diff --git a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/UpdateStoredInfoTypeRequest.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/UpdateStoredInfoTypeRequest.java index 7b7ae6e2..e2cd5003 100644 --- a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/UpdateStoredInfoTypeRequest.java +++ b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/UpdateStoredInfoTypeRequest.java @@ -148,8 +148,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Required. Resource name of organization and storedInfoType to be updated, for
-   * example `organizations/433245324/storedInfoTypes/432452342` or
+   * Required. Resource name of organization and storedInfoType to be updated,
+   * for example `organizations/433245324/storedInfoTypes/432452342` or
    * projects/project-id/storedInfoTypes/432452342.
    * 
* @@ -174,8 +174,8 @@ public java.lang.String getName() { * * *
-   * Required. Resource name of organization and storedInfoType to be updated, for
-   * example `organizations/433245324/storedInfoTypes/432452342` or
+   * Required. Resource name of organization and storedInfoType to be updated,
+   * for example `organizations/433245324/storedInfoTypes/432452342` or
    * projects/project-id/storedInfoTypes/432452342.
    * 
* @@ -671,8 +671,8 @@ public Builder mergeFrom( * * *
-     * Required. Resource name of organization and storedInfoType to be updated, for
-     * example `organizations/433245324/storedInfoTypes/432452342` or
+     * Required. Resource name of organization and storedInfoType to be updated,
+     * for example `organizations/433245324/storedInfoTypes/432452342` or
      * projects/project-id/storedInfoTypes/432452342.
      * 
* @@ -697,8 +697,8 @@ public java.lang.String getName() { * * *
-     * Required. Resource name of organization and storedInfoType to be updated, for
-     * example `organizations/433245324/storedInfoTypes/432452342` or
+     * Required. Resource name of organization and storedInfoType to be updated,
+     * for example `organizations/433245324/storedInfoTypes/432452342` or
      * projects/project-id/storedInfoTypes/432452342.
      * 
* @@ -723,8 +723,8 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * Required. Resource name of organization and storedInfoType to be updated, for
-     * example `organizations/433245324/storedInfoTypes/432452342` or
+     * Required. Resource name of organization and storedInfoType to be updated,
+     * for example `organizations/433245324/storedInfoTypes/432452342` or
      * projects/project-id/storedInfoTypes/432452342.
      * 
* @@ -748,8 +748,8 @@ public Builder setName(java.lang.String value) { * * *
-     * Required. Resource name of organization and storedInfoType to be updated, for
-     * example `organizations/433245324/storedInfoTypes/432452342` or
+     * Required. Resource name of organization and storedInfoType to be updated,
+     * for example `organizations/433245324/storedInfoTypes/432452342` or
      * projects/project-id/storedInfoTypes/432452342.
      * 
* @@ -769,8 +769,8 @@ public Builder clearName() { * * *
-     * Required. Resource name of organization and storedInfoType to be updated, for
-     * example `organizations/433245324/storedInfoTypes/432452342` or
+     * Required. Resource name of organization and storedInfoType to be updated,
+     * for example `organizations/433245324/storedInfoTypes/432452342` or
      * projects/project-id/storedInfoTypes/432452342.
      * 
* diff --git a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/UpdateStoredInfoTypeRequestOrBuilder.java b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/UpdateStoredInfoTypeRequestOrBuilder.java index db754e33..dffd72fd 100644 --- a/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/UpdateStoredInfoTypeRequestOrBuilder.java +++ b/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/UpdateStoredInfoTypeRequestOrBuilder.java @@ -27,8 +27,8 @@ public interface UpdateStoredInfoTypeRequestOrBuilder * * *
-   * Required. Resource name of organization and storedInfoType to be updated, for
-   * example `organizations/433245324/storedInfoTypes/432452342` or
+   * Required. Resource name of organization and storedInfoType to be updated,
+   * for example `organizations/433245324/storedInfoTypes/432452342` or
    * projects/project-id/storedInfoTypes/432452342.
    * 
* @@ -43,8 +43,8 @@ public interface UpdateStoredInfoTypeRequestOrBuilder * * *
-   * Required. Resource name of organization and storedInfoType to be updated, for
-   * example `organizations/433245324/storedInfoTypes/432452342` or
+   * Required. Resource name of organization and storedInfoType to be updated,
+   * for example `organizations/433245324/storedInfoTypes/432452342` or
    * projects/project-id/storedInfoTypes/432452342.
    * 
* 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 0dc4119b..6dcf88ca 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 @@ -1,4 +1,4 @@ -// Copyright 2019 Google LLC. +// 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. @@ -11,7 +11,6 @@ // 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. -// syntax = "proto3"; @@ -49,7 +48,8 @@ option php_namespace = "Google\\Cloud\\Dlp\\V2"; // https://cloud.google.com/dlp/docs/. service DlpService { option (google.api.default_host) = "dlp.googleapis.com"; - option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform"; // Finds potentially sensitive info in content. // This method has limits on input size, processing time, and output size. @@ -98,7 +98,8 @@ service DlpService { // When no InfoTypes or CustomInfoTypes are specified in this request, the // system will automatically choose what detectors to run. By default this may // be all types, but may change over time as detectors are updated. - rpc DeidentifyContent(DeidentifyContentRequest) returns (DeidentifyContentResponse) { + rpc DeidentifyContent(DeidentifyContentRequest) + returns (DeidentifyContentResponse) { option (google.api.http) = { post: "/v2/{parent=projects/*}/content:deidentify" body: "*" @@ -113,7 +114,8 @@ service DlpService { // See // https://cloud.google.com/dlp/docs/pseudonymization#re-identification_in_free_text_code_example // to learn more. - rpc ReidentifyContent(ReidentifyContentRequest) returns (ReidentifyContentResponse) { + rpc ReidentifyContent(ReidentifyContentRequest) + returns (ReidentifyContentResponse) { option (google.api.http) = { post: "/v2/{parent=projects/*}/content:reidentify" body: "*" @@ -130,9 +132,7 @@ service DlpService { rpc ListInfoTypes(ListInfoTypesRequest) returns (ListInfoTypesResponse) { option (google.api.http) = { get: "/v2/infoTypes" - additional_bindings { - get: "/v2/locations/{location_id}/infoTypes" - } + additional_bindings { get: "/v2/locations/{location_id}/infoTypes" } }; option (google.api.method_signature) = "location_id"; } @@ -140,7 +140,8 @@ service DlpService { // Creates an InspectTemplate for re-using 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) { + rpc CreateInspectTemplate(CreateInspectTemplateRequest) + returns (InspectTemplate) { option (google.api.http) = { post: "/v2/{parent=organizations/*}/inspectTemplates" body: "*" @@ -158,12 +159,14 @@ service DlpService { } }; option (google.api.method_signature) = "parent,inspect_template"; - option (google.api.method_signature) = "parent,inspect_template,location_id"; + option (google.api.method_signature) = + "parent,inspect_template,location_id"; } // Updates the InspectTemplate. // See https://cloud.google.com/dlp/docs/creating-templates to learn more. - rpc UpdateInspectTemplate(UpdateInspectTemplateRequest) returns (InspectTemplate) { + rpc UpdateInspectTemplate(UpdateInspectTemplateRequest) + returns (InspectTemplate) { option (google.api.http) = { patch: "/v2/{name=organizations/*/inspectTemplates/*}" body: "*" @@ -191,9 +194,7 @@ service DlpService { additional_bindings { get: "/v2/{name=organizations/*/locations/*/inspectTemplates/*}" } - additional_bindings { - get: "/v2/{name=projects/*/inspectTemplates/*}" - } + additional_bindings { get: "/v2/{name=projects/*/inspectTemplates/*}" } additional_bindings { get: "/v2/{name=projects/*/locations/*/inspectTemplates/*}" } @@ -203,15 +204,14 @@ service DlpService { // Lists InspectTemplates. // See https://cloud.google.com/dlp/docs/creating-templates to learn more. - rpc ListInspectTemplates(ListInspectTemplatesRequest) returns (ListInspectTemplatesResponse) { + rpc ListInspectTemplates(ListInspectTemplatesRequest) + returns (ListInspectTemplatesResponse) { option (google.api.http) = { get: "/v2/{parent=organizations/*}/inspectTemplates" additional_bindings { get: "/v2/{parent=organizations/*}/locations/{location_id}/inspectTemplates" } - additional_bindings { - get: "/v2/{parent=projects/*}/inspectTemplates" - } + additional_bindings { get: "/v2/{parent=projects/*}/inspectTemplates" } additional_bindings { get: "/v2/{parent=projects/*}/locations/{location_id}/inspectTemplates" } @@ -221,15 +221,14 @@ service DlpService { // Deletes an InspectTemplate. // See https://cloud.google.com/dlp/docs/creating-templates to learn more. - rpc DeleteInspectTemplate(DeleteInspectTemplateRequest) returns (google.protobuf.Empty) { + rpc DeleteInspectTemplate(DeleteInspectTemplateRequest) + returns (google.protobuf.Empty) { option (google.api.http) = { delete: "/v2/{name=organizations/*/inspectTemplates/*}" additional_bindings { delete: "/v2/{name=organizations/*/locations/*/inspectTemplates/*}" } - additional_bindings { - delete: "/v2/{name=projects/*/inspectTemplates/*}" - } + additional_bindings { delete: "/v2/{name=projects/*/inspectTemplates/*}" } additional_bindings { delete: "/v2/{name=projects/*/locations/*/inspectTemplates/*}" } @@ -241,7 +240,8 @@ service DlpService { // for de-identifying content, images, and storage. // See https://cloud.google.com/dlp/docs/creating-templates-deid to learn // more. - rpc CreateDeidentifyTemplate(CreateDeidentifyTemplateRequest) returns (DeidentifyTemplate) { + rpc CreateDeidentifyTemplate(CreateDeidentifyTemplateRequest) + returns (DeidentifyTemplate) { option (google.api.http) = { post: "/v2/{parent=organizations/*}/deidentifyTemplates" body: "*" @@ -259,13 +259,15 @@ service DlpService { } }; option (google.api.method_signature) = "parent,deidentify_template"; - option (google.api.method_signature) = "parent,deidentify_template,location_id"; + option (google.api.method_signature) = + "parent,deidentify_template,location_id"; } // Updates the DeidentifyTemplate. // See https://cloud.google.com/dlp/docs/creating-templates-deid to learn // more. - rpc UpdateDeidentifyTemplate(UpdateDeidentifyTemplateRequest) returns (DeidentifyTemplate) { + rpc UpdateDeidentifyTemplate(UpdateDeidentifyTemplateRequest) + returns (DeidentifyTemplate) { option (google.api.http) = { patch: "/v2/{name=organizations/*/deidentifyTemplates/*}" body: "*" @@ -282,21 +284,21 @@ service DlpService { body: "*" } }; - option (google.api.method_signature) = "name,deidentify_template,update_mask"; + option (google.api.method_signature) = + "name,deidentify_template,update_mask"; } // Gets a DeidentifyTemplate. // See https://cloud.google.com/dlp/docs/creating-templates-deid to learn // more. - rpc GetDeidentifyTemplate(GetDeidentifyTemplateRequest) returns (DeidentifyTemplate) { + rpc GetDeidentifyTemplate(GetDeidentifyTemplateRequest) + returns (DeidentifyTemplate) { option (google.api.http) = { get: "/v2/{name=organizations/*/deidentifyTemplates/*}" additional_bindings { get: "/v2/{name=organizations/*/locations/*/deidentifyTemplates/*}" } - additional_bindings { - get: "/v2/{name=projects/*/deidentifyTemplates/*}" - } + additional_bindings { get: "/v2/{name=projects/*/deidentifyTemplates/*}" } additional_bindings { get: "/v2/{name=projects/*/locations/*/deidentifyTemplates/*}" } @@ -307,15 +309,14 @@ service DlpService { // Lists DeidentifyTemplates. // See https://cloud.google.com/dlp/docs/creating-templates-deid to learn // more. - rpc ListDeidentifyTemplates(ListDeidentifyTemplatesRequest) returns (ListDeidentifyTemplatesResponse) { + rpc ListDeidentifyTemplates(ListDeidentifyTemplatesRequest) + returns (ListDeidentifyTemplatesResponse) { option (google.api.http) = { get: "/v2/{parent=organizations/*}/deidentifyTemplates" additional_bindings { get: "/v2/{parent=organizations/*}/locations/{location_id}/deidentifyTemplates" } - additional_bindings { - get: "/v2/{parent=projects/*}/deidentifyTemplates" - } + additional_bindings { get: "/v2/{parent=projects/*}/deidentifyTemplates" } additional_bindings { get: "/v2/{parent=projects/*}/locations/{location_id}/deidentifyTemplates" } @@ -326,7 +327,8 @@ service DlpService { // Deletes a DeidentifyTemplate. // See https://cloud.google.com/dlp/docs/creating-templates-deid to learn // more. - rpc DeleteDeidentifyTemplate(DeleteDeidentifyTemplateRequest) returns (google.protobuf.Empty) { + rpc DeleteDeidentifyTemplate(DeleteDeidentifyTemplateRequest) + returns (google.protobuf.Empty) { option (google.api.http) = { delete: "/v2/{name=organizations/*/deidentifyTemplates/*}" additional_bindings { @@ -372,6 +374,21 @@ service DlpService { option (google.api.method_signature) = "name,job_trigger,update_mask"; } + // Inspect hybrid content and store findings to a trigger. The inspection + // will be processed asynchronously. To review the findings monitor the + // jobs within the trigger. + // Early access feature is in a pre-release state and might change or have + // limited support. For more information, see + // https://cloud.google.com/products#product-launch-stages. + rpc HybridInspectJobTrigger(HybridInspectJobTriggerRequest) + returns (HybridInspectResponse) { + option (google.api.http) = { + post: "/v2/{name=projects/*/locations/*/jobTriggers/*}:hybridInspect" + body: "*" + }; + option (google.api.method_signature) = "name"; + } + // Gets a job trigger. // See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more. rpc GetJobTrigger(GetJobTriggerRequest) returns (JobTrigger) { @@ -386,7 +403,8 @@ service DlpService { // Lists job triggers. // See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more. - rpc ListJobTriggers(ListJobTriggersRequest) returns (ListJobTriggersResponse) { + rpc ListJobTriggers(ListJobTriggersRequest) + returns (ListJobTriggersResponse) { option (google.api.http) = { get: "/v2/{parent=projects/*}/jobTriggers" additional_bindings { @@ -398,7 +416,8 @@ service DlpService { // Deletes a job trigger. // See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more. - rpc DeleteJobTrigger(DeleteJobTriggerRequest) returns (google.protobuf.Empty) { + rpc DeleteJobTrigger(DeleteJobTriggerRequest) + returns (google.protobuf.Empty) { option (google.api.http) = { delete: "/v2/{name=projects/*/jobTriggers/*}" additional_bindings { @@ -462,9 +481,7 @@ service DlpService { rpc GetDlpJob(GetDlpJobRequest) returns (DlpJob) { option (google.api.http) = { get: "/v2/{name=projects/*/dlpJobs/*}" - additional_bindings { - get: "/v2/{name=projects/*/locations/*/dlpJobs/*}" - } + additional_bindings { get: "/v2/{name=projects/*/locations/*/dlpJobs/*}" } }; option (google.api.method_signature) = "name"; } @@ -503,7 +520,8 @@ service DlpService { // Creates a pre-built stored infoType to be used for inspection. // See https://cloud.google.com/dlp/docs/creating-stored-infotypes to // learn more. - rpc CreateStoredInfoType(CreateStoredInfoTypeRequest) returns (StoredInfoType) { + rpc CreateStoredInfoType(CreateStoredInfoTypeRequest) + returns (StoredInfoType) { option (google.api.http) = { post: "/v2/{parent=organizations/*}/storedInfoTypes" body: "*" @@ -528,7 +546,8 @@ service DlpService { // will continue to be used until the new version is ready. // See https://cloud.google.com/dlp/docs/creating-stored-infotypes to // learn more. - rpc UpdateStoredInfoType(UpdateStoredInfoTypeRequest) returns (StoredInfoType) { + rpc UpdateStoredInfoType(UpdateStoredInfoTypeRequest) + returns (StoredInfoType) { option (google.api.http) = { patch: "/v2/{name=organizations/*/storedInfoTypes/*}" body: "*" @@ -557,9 +576,7 @@ service DlpService { additional_bindings { get: "/v2/{name=organizations/*/locations/*/storedInfoTypes/*}" } - additional_bindings { - get: "/v2/{name=projects/*/storedInfoTypes/*}" - } + additional_bindings { get: "/v2/{name=projects/*/storedInfoTypes/*}" } additional_bindings { get: "/v2/{name=projects/*/locations/*/storedInfoTypes/*}" } @@ -570,15 +587,14 @@ service DlpService { // Lists stored infoTypes. // See https://cloud.google.com/dlp/docs/creating-stored-infotypes to // learn more. - rpc ListStoredInfoTypes(ListStoredInfoTypesRequest) returns (ListStoredInfoTypesResponse) { + rpc ListStoredInfoTypes(ListStoredInfoTypesRequest) + returns (ListStoredInfoTypesResponse) { option (google.api.http) = { get: "/v2/{parent=organizations/*}/storedInfoTypes" additional_bindings { get: "/v2/{parent=organizations/*}/locations/{location_id}/storedInfoTypes" } - additional_bindings { - get: "/v2/{parent=projects/*}/storedInfoTypes" - } + additional_bindings { get: "/v2/{parent=projects/*}/storedInfoTypes" } additional_bindings { get: "/v2/{parent=projects/*}/locations/{location_id}/storedInfoTypes" } @@ -589,21 +605,47 @@ service DlpService { // Deletes a stored infoType. // See https://cloud.google.com/dlp/docs/creating-stored-infotypes to // learn more. - rpc DeleteStoredInfoType(DeleteStoredInfoTypeRequest) returns (google.protobuf.Empty) { + rpc DeleteStoredInfoType(DeleteStoredInfoTypeRequest) + returns (google.protobuf.Empty) { option (google.api.http) = { delete: "/v2/{name=organizations/*/storedInfoTypes/*}" additional_bindings { delete: "/v2/{name=organizations/*/locations/*/storedInfoTypes/*}" } - additional_bindings { - delete: "/v2/{name=projects/*/storedInfoTypes/*}" - } + additional_bindings { delete: "/v2/{name=projects/*/storedInfoTypes/*}" } additional_bindings { delete: "/v2/{name=projects/*/locations/*/storedInfoTypes/*}" } }; option (google.api.method_signature) = "name"; } + + // Inspect hybrid content and store findings to a job. + // To review the findings inspect the job. Inspection will occur + // asynchronously. + // Early access feature is in a pre-release state and might change or have + // limited support. For more information, see + // https://cloud.google.com/products#product-launch-stages. + rpc HybridInspectDlpJob(HybridInspectDlpJobRequest) + returns (HybridInspectResponse) { + option (google.api.http) = { + post: "/v2/{name=projects/*/locations/*/dlpJobs/*}:hybridInspect" + body: "*" + }; + option (google.api.method_signature) = "name"; + } + + // Finish a running hybrid DlpJob. Triggers the finalization steps and running + // of any enabled actions that have not yet run. + // Early access feature is in a pre-release state and might change or have + // limited support. For more information, see + // https://cloud.google.com/products#product-launch-stages. + rpc FinishDlpJob(FinishDlpJobRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + post: "/v2/{name=projects/*/locations/*/dlpJobs/*}:finish" + body: "*" + }; + } } // List of exclude infoTypes. @@ -681,7 +723,7 @@ message InspectConfig { } // Max number of findings that will be returned for each item scanned. - // When set within `InspectDataSourceRequest`, + // When set within `InspectJobConfig`, // the maximum returned is 2000 regardless if this is set higher. // When set within `InspectContentRequest`, this field is ignored. int32 max_findings_per_item = 1; @@ -823,6 +865,16 @@ message InspectResult { // Represents a piece of potentially sensitive content. message Finding { + option (google.api.resource) = { + type: "dlp.googleapis.com/InspectFinding" + pattern: "projects/{project}/locations/{location}/findings/{finding}" + }; + + // Resource name in format + // projects/{project}/locations/{location}/findings/{finding} + // Populated only when viewing persisted findings. + string name = 14; + // The content that was found. Even if the content is not textual, it // may be converted to a textual representation here. // Provided if `include_quote` is true and the finding is @@ -847,6 +899,44 @@ message Finding { // to true and a supported infoType was requested. Currently supported // infoTypes: DATE, DATE_OF_BIRTH and TIME. QuoteInfo quote_info = 7; + + // The job that stored the finding. + string resource_name = 8 + [(google.api.resource_reference) = { type: "dlp.googleapis.com/DlpJob" }]; + + // Job trigger name, if applicable, for this finding. + // (-- api-linter: core::0122::name-suffix=disabled + // aip.dev/not-precedent: AIP-122 discourages _name suffixes for + // resource names, but this has existed as part of the bigquery schema + // before this rule existed. --) + string trigger_name = 9 [ + (google.api.resource_reference) = { type: "dlp.googleapis.com/JobTrigger" } + ]; + + // The labels associated with this `InspectFinding`. + // + // Label keys must be between 1 and 63 characters long and must conform + // to the following regular expression: \[a-z\](\[-a-z0-9\]*\[a-z0-9\])?. + // + // Label values must be between 0 and 63 characters long and must conform + // to the regular expression (\[a-z\](\[-a-z0-9\]*\[a-z0-9\])?)?. + // + // No more than 10 labels can be associated with a given finding. + // + // Example: "environment" : "production" + // Example: "pipeline" : "etl" + map labels = 10; + + // Time the job started that produced this finding. + google.protobuf.Timestamp job_create_time = 11; + + // The job that stored the finding. + // (-- api-linter: core::0122::name-suffix=disabled + // aip.dev/not-precedent: AIP-122 discourages _name suffixes for + // resource names, but this has existed as part of the bigquery schema + // before this rule existed. --) + string job_name = 13 + [(google.api.resource_reference) = { type: "dlp.googleapis.com/DlpJob" }]; } // Specifies the location of the finding. @@ -866,9 +956,13 @@ message Location { // List of nested objects pointing to the precise location of the finding // within the file or record. repeated ContentLocation content_locations = 7; + + // Information about the container where this finding occurred, if available. + Container container = 8; } -// Findings container location data. +// Precise location of the finding within a document, record, image, or metadata +// container. message ContentLocation { // Name of the container where the finding is located. // The top level name is the source file name or table name. Names of some @@ -930,6 +1024,49 @@ message TableLocation { int64 row_index = 1; } +// 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. + string type = 1; + + // Project where the finding was found. + // Can be different from the project that owns the finding. + string project_id = 2; + + // A string representation of the full container name. + // Examples: + // - BigQuery: 'Project:DataSetId.TableId' + // - Google 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 + // 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 + // 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. + google.protobuf.Timestamp update_time = 6; + + // Findings container version, if available + // ("generation" for Google Cloud Storage). + string version = 7; +} + // Generic half-open interval [start, end) message Range { // Index of the first character of the range (inclusive). @@ -985,8 +1122,8 @@ message RedactImageRequest { // The parent resource name, for example projects/my-project-id. string parent = 1 [(google.api.resource_reference) = { - type: "cloudresourcemanager.googleapis.com/Project" - }]; + type: "cloudresourcemanager.googleapis.com/Project" + }]; // The geographic location to process the request. Reserved for future // extensions. @@ -1036,8 +1173,8 @@ message RedactImageResponse { message DeidentifyContentRequest { // The parent resource name, for example projects/my-project-id. string parent = 1 [(google.api.resource_reference) = { - type: "cloudresourcemanager.googleapis.com/Project" - }]; + type: "cloudresourcemanager.googleapis.com/Project" + }]; // Configuration for the de-identification of the content item. // Items specified here will override the template referenced by the @@ -1141,8 +1278,8 @@ message ReidentifyContentResponse { message InspectContentRequest { // The parent resource name, for example projects/my-project-id. string parent = 1 [(google.api.resource_reference) = { - type: "cloudresourcemanager.googleapis.com/Project" - }]; + type: "cloudresourcemanager.googleapis.com/Project" + }]; // Configuration for the inspector. What specified here will override // the template referenced by the inspect_template_name argument. @@ -1172,6 +1309,7 @@ message InspectContentResponse { // Cloud repository for storing output. message OutputStorageConfig { // Predefined schemas for storing findings. + // Only for use with external storage. enum OutputSchema { // Unused. OUTPUT_SCHEMA_UNSPECIFIED = 0; @@ -1221,6 +1359,7 @@ message OutputStorageConfig { // If unspecified, then all available columns will be used for a new table or // an (existing) table with no schema, and no changes will be made to an // existing table that has a schema. + // Only for use with external storage. OutputSchema output_schema = 3; } @@ -1256,6 +1395,12 @@ message InspectDataSourceDetails { // Statistics of how many instances of each info type were found during // inspect job. repeated InfoTypeStats info_type_stats = 3; + + // Statistics related to the processing of hybrid inspect. + // Early access feature is in a pre-release state and might change or have + // limited support. For more information, see + // https://cloud.google.com/products#product-launch-stages. + HybridInspectStatistics hybrid_stats = 7; } // The configuration used for this job. @@ -1265,6 +1410,23 @@ message InspectDataSourceDetails { Result result = 3; } +// Statistics related to processing hybrid inspect requests.s +message HybridInspectStatistics { + // The number of hybrid inspection requests processed within this job. + int64 processed_count = 1; + + // The number of hybrid inspection requests aborted because the job ran + // out of quota or was ended before they could be processed. + int64 aborted_count = 2; + + // The number of hybrid requests currently being processed. Only populated + // when called via method `getDlpJob`. + // A burst of traffic may cause hybrid inspect requests to be enqueued. + // Processing will take place as quickly as possible, but resource limitations + // may impact how long a request is enqueued for. + int64 pending_count = 3; +} + // InfoType description. message InfoTypeDescription { // Internal name of the infoType. @@ -1368,10 +1530,11 @@ message StatisticalTable { BigQueryTable table = 3 [(google.api.field_behavior) = REQUIRED]; // Required. Quasi-identifier columns. - repeated QuasiIdentifierField quasi_ids = 1 [(google.api.field_behavior) = REQUIRED]; + repeated QuasiIdentifierField quasi_ids = 1 + [(google.api.field_behavior) = REQUIRED]; - // Required. The relative frequency column must contain a floating-point number - // between 0 and 1 (inclusive). Null values are assumed to be zero. + // Required. The relative frequency column must contain a floating-point + // number between 0 and 1 (inclusive). Null values are assumed to be zero. FieldId relative_frequency = 2 [(google.api.field_behavior) = REQUIRED]; } @@ -1484,15 +1647,16 @@ message PrivacyMetric { BigQueryTable table = 3 [(google.api.field_behavior) = REQUIRED]; // Required. Quasi-identifier columns. - repeated QuasiIdField quasi_ids = 1 [(google.api.field_behavior) = REQUIRED]; + repeated QuasiIdField quasi_ids = 1 + [(google.api.field_behavior) = REQUIRED]; - // Required. The relative frequency column must contain a floating-point number - // between 0 and 1 (inclusive). Null values are assumed to be zero. + // Required. The relative frequency column must contain a floating-point + // number between 0 and 1 (inclusive). Null values are assumed to be zero. FieldId relative_frequency = 2 [(google.api.field_behavior) = REQUIRED]; } - // Required. Fields considered to be quasi-identifiers. No two columns can have the - // same tag. + // Required. Fields considered to be quasi-identifiers. No two columns can + // have the same tag. repeated TaggedField quasi_ids = 1 [(google.api.field_behavior) = REQUIRED]; // ISO 3166-1 alpha-2 region code to use in the statistical modeling. @@ -1511,8 +1675,8 @@ message PrivacyMetric { // Similarly to the k-map metric, we cannot compute δ-presence exactly without // knowing the attack dataset, so we use a statistical model instead. message DeltaPresenceEstimationConfig { - // Required. Fields considered to be quasi-identifiers. No two fields can have the - // same tag. + // Required. Fields considered to be quasi-identifiers. No two fields can + // have the same tag. repeated QuasiId quasi_ids = 1 [(google.api.field_behavior) = REQUIRED]; // ISO 3166-1 alpha-2 region code to use in the statistical modeling. @@ -1585,7 +1749,8 @@ message AnalyzeDataSourceRiskDetails { } // Histogram of value frequencies in the column. - repeated CategoricalStatsHistogramBucket value_frequency_histogram_buckets = 5; + repeated CategoricalStatsHistogramBucket value_frequency_histogram_buckets = + 5; } // Result of the k-anonymity computation. @@ -1665,7 +1830,8 @@ message AnalyzeDataSourceRiskDetails { } // Histogram of l-diversity equivalence class sensitive value frequencies. - repeated LDiversityHistogramBucket sensitive_value_frequency_histogram_buckets = 5; + repeated LDiversityHistogramBucket + sensitive_value_frequency_histogram_buckets = 5; } // Result of the reidentifiability analysis. Note that these results are an @@ -1771,7 +1937,8 @@ message AnalyzeDataSourceRiskDetails { // {min_probability: 0.3, max_probability: 0.4, frequency: 99} // mean that there are no record with an estimated probability in [0.1, 0.2) // nor larger or equal to 0.4. - repeated DeltaPresenceEstimationHistogramBucket delta_presence_estimation_histogram = 1; + repeated DeltaPresenceEstimationHistogramBucket + delta_presence_estimation_histogram = 1; } // Privacy metric to compute. @@ -1891,6 +2058,38 @@ message DeidentifyConfig { // a column within a table. RecordTransformations record_transformations = 2; } + + // Mode for handling transformation errors. If left unspecified, the default + // mode is `TransformationErrorHandling.ThrowError`. + TransformationErrorHandling transformation_error_handling = 3; +} + +// 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 +// `DateShift` transformation would result in a transformation error, since date +// info cannot be extracted from an IP address. +// Information about any incompatible transformations, and how they were +// handled, is returned in the response as part of the +// `TransformationOverviews`. +message TransformationErrorHandling { + // Throw an error and fail the request when a transformation error occurs. + message ThrowError {} + + // Skips the data without modifying it if the requested transformation would + // cause an error. For example, if a `DateShift` transformation were applied + // an an IP address, this mode would leave the IP address unchanged in the + // response. + message LeaveUntransformed {} + + // How transformation errors should be handled. + oneof mode { + // Throw an error + ThrowError throw_error = 1; + + // Ignore errors + LeaveUntransformed leave_untransformed = 2; + } } // A rule for transforming a value. @@ -2043,16 +2242,12 @@ message ReplaceValueConfig { } // Replace each matching finding with the name of the info_type. -message ReplaceWithInfoTypeConfig { - -} +message ReplaceWithInfoTypeConfig {} // Redact a given value. For example, if used with an `InfoTypeTransformation` // transforming PHONE_NUMBER, and input 'My phone number is 206-555-0123', the // output would be 'My phone number is '. -message RedactConfig { - -} +message RedactConfig {} // Characters to skip when doing deidentification of a value. These will be left // alone and skipped. @@ -2136,18 +2331,18 @@ message CharacterMaskConfig { // // See https://cloud.google.com/dlp/docs/concepts-bucketing to learn more. message FixedSizeBucketingConfig { - // Required. Lower bound value of buckets. All values less than `lower_bound` are - // grouped together into a single bucket; for example if `lower_bound` = 10, - // then all values less than 10 are replaced with the value “-10”. + // Required. Lower bound value of buckets. All values less than `lower_bound` + // are grouped together into a single bucket; for example if `lower_bound` = + // 10, then all values less than 10 are replaced with the value “-10”. Value lower_bound = 1 [(google.api.field_behavior) = REQUIRED]; - // Required. Upper bound value of buckets. All values greater than upper_bound are - // grouped together into a single bucket; for example if `upper_bound` = 89, - // then all values greater than 89 are replaced with the value “89+”. + // Required. Upper bound value of buckets. All values greater than upper_bound + // are grouped together into a single bucket; for example if `upper_bound` = + // 89, then all values greater than 89 are replaced with the value “89+”. Value upper_bound = 2 [(google.api.field_behavior) = REQUIRED]; - // Required. Size of each bucket (except for minimum and maximum buckets). So if - // `lower_bound` = 10, `upper_bound` = 89, and `bucket_size` = 10, then the + // Required. Size of each bucket (except for minimum and maximum buckets). So + // if `lower_bound` = 10, `upper_bound` = 89, and `bucket_size` = 10, then the // following buckets would be used: -10, 10-20, 20-30, 30-40, 40-50, 50-60, // 60-70, 70-80, 80-89, 89+. Precision up to 2 decimals works. double bucket_size = 3 [(google.api.field_behavior) = REQUIRED]; @@ -2341,14 +2536,15 @@ message KmsWrappedCryptoKey { // same context. See https://cloud.google.com/dlp/docs/concepts-date-shifting // to learn more. message DateShiftConfig { - // Required. Range of shift in days. Actual shift will be selected at random within this - // range (inclusive ends). Negative means shift to earlier in time. Must not - // be more than 365250 days (1000 years) each direction. + // Required. Range of shift in days. Actual shift will be selected at random + // within this range (inclusive ends). Negative means shift to earlier in + // time. Must not be more than 365250 days (1000 years) each direction. // // For example, 3 means shift date to at most 3 days into the future. int32 upper_bound_days = 1 [(google.api.field_behavior) = REQUIRED]; - // Required. For example, -5 means shift date to at most 5 days back in the past. + // Required. For example, -5 means shift date to at most 5 days back in the + // past. int32 lower_bound_days = 2 [(google.api.field_behavior) = REQUIRED]; // Points to the field that contains the context, for example, an entity id. @@ -2380,12 +2576,14 @@ message InfoTypeTransformations { repeated InfoType info_types = 1; // Required. Primitive transformation to apply to the infoType. - PrimitiveTransformation primitive_transformation = 2 [(google.api.field_behavior) = REQUIRED]; + PrimitiveTransformation primitive_transformation = 2 + [(google.api.field_behavior) = REQUIRED]; } // Required. Transformation for each infoType. Cannot specify more than one // for a given infoType. - repeated InfoTypeTransformation transformations = 1 [(google.api.field_behavior) = REQUIRED]; + repeated InfoTypeTransformation transformations = 1 + [(google.api.field_behavior) = REQUIRED]; } // The transformation to apply to the field. @@ -2577,6 +2775,10 @@ message Schedule { } } +// Job trigger option for hybrid jobs. Jobs must be manually created +// and finished. +message Manual {} + // The inspectTemplate contains a configuration (set of types of sensitive data // to be detected) to be used anywhere you otherwise would normally specify // InspectConfig. See https://cloud.google.com/dlp/docs/concepts-templates @@ -2586,6 +2788,8 @@ message InspectTemplate { type: "dlp.googleapis.com/InspectTemplate" pattern: "organizations/{organization}/inspectTemplates/{inspect_template}" pattern: "projects/{project}/inspectTemplates/{inspect_template}" + pattern: "organizations/{organization}/locations/{location}/inspectTemplates/{inspect_template}" + pattern: "projects/{project}/locations/{location}/inspectTemplates/{inspect_template}" }; // Output only. The template name. @@ -2602,10 +2806,12 @@ message InspectTemplate { string description = 3; // Output only. The creation timestamp of an inspectTemplate. - google.protobuf.Timestamp create_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp create_time = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The last update timestamp of an inspectTemplate. - google.protobuf.Timestamp update_time = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp update_time = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; // The core content of the template. Configuration of the scanning process. InspectConfig inspect_config = 6; @@ -2618,6 +2824,8 @@ message DeidentifyTemplate { type: "dlp.googleapis.com/DeidentifyTemplate" pattern: "organizations/{organization}/deidentifyTemplates/{deidentify_template}" pattern: "projects/{project}/deidentifyTemplates/{deidentify_template}" + pattern: "organizations/{organization}/locations/{location}/deidentifyTemplates/{deidentify_template}" + pattern: "projects/{project}/locations/{location}/deidentifyTemplates/{deidentify_template}" }; // Output only. The template name. @@ -2634,10 +2842,12 @@ message DeidentifyTemplate { string description = 3; // Output only. The creation timestamp of an inspectTemplate. - google.protobuf.Timestamp create_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp create_time = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The last update timestamp of an inspectTemplate. - google.protobuf.Timestamp update_time = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp update_time = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; // ///////////// // The core content of the template // /////////////// DeidentifyConfig deidentify_config = 6; @@ -2659,6 +2869,7 @@ message JobTrigger { option (google.api.resource) = { type: "dlp.googleapis.com/JobTrigger" pattern: "projects/{project}/jobTriggers/{job_trigger}" + pattern: "projects/{project}/locations/{location}/jobTriggers/{job_trigger}" }; // What event needs to occur for a new job to be started. @@ -2666,6 +2877,12 @@ message JobTrigger { oneof trigger { // Create a job on a repeating basis based on the elapse of time. Schedule schedule = 1; + + // For use with hybrid jobs. Jobs must be manually created and finished. + // Early access feature is in a pre-release state and might change or have + // limited support. For more information, see + // https://cloud.google.com/products#product-launch-stages. + Manual manual = 2; } } @@ -2709,20 +2926,23 @@ message JobTrigger { // a single Schedule trigger and must have at least one object. repeated Trigger triggers = 5; - // Output only. A stream of errors encountered when the trigger was activated. Repeated - // errors may result in the JobTrigger automatically being paused. + // Output only. A stream of errors encountered when the trigger was activated. + // Repeated errors may result in the JobTrigger automatically being paused. // Will return the last 100 errors. Whenever the JobTrigger is modified // this list will be cleared. repeated Error errors = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The creation timestamp of a triggeredJob. - google.protobuf.Timestamp create_time = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp create_time = 7 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The last update timestamp of a triggeredJob. - google.protobuf.Timestamp update_time = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp update_time = 8 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The timestamp of the last time this trigger executed. - google.protobuf.Timestamp last_run_time = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp last_run_time = 9 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Required. A status for this trigger. Status status = 10 [(google.api.field_behavior) = REQUIRED]; @@ -2763,9 +2983,7 @@ message Action { // 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 { - - } + message PublishSummaryToCscc {} // Publish findings of a DlpJob to Cloud Data Catalog. Labels summarizing the // results of the DlpJob will be applied to the entry for the resource scanned @@ -2777,23 +2995,17 @@ message Action { // Only a single instance of this action can be specified and only allowed if // all resources being scanned are BigQuery tables. // Compatible with: Inspect - message PublishFindingsToCloudDataCatalog { - - } + message PublishFindingsToCloudDataCatalog {} // Enable email notification to project owners and editors on jobs's // completion/failure. - message JobNotificationEmails { - - } + message JobNotificationEmails {} // Enable Stackdriver metric dlp.googleapis.com/finding_count. This // will publish a metric to stack driver on each infotype requested and // how many findings were found for it. CustomDetectors will be bucketed // as 'Custom' under the Stackdriver label 'info_type'. - message PublishToStackdriver { - - } + message PublishToStackdriver {} oneof action { // Save resulting findings in a provided location. @@ -2806,7 +3018,8 @@ message Action { PublishSummaryToCscc publish_summary_to_cscc = 3; // Publish findings to Cloud Datahub. - PublishFindingsToCloudDataCatalog publish_findings_to_cloud_data_catalog = 5; + PublishFindingsToCloudDataCatalog publish_findings_to_cloud_data_catalog = + 5; // Enable email notification for project owners and editors on job's // completion/failure. @@ -2844,8 +3057,8 @@ message CreateInspectTemplateRequest { // Request message for UpdateInspectTemplate. message UpdateInspectTemplateRequest { - // Required. Resource name of organization and inspectTemplate to be updated, for - // example `organizations/433245324/inspectTemplates/432452342` or + // Required. Resource name of organization and inspectTemplate to be updated, + // for example `organizations/433245324/inspectTemplates/432452342` or // projects/project-id/inspectTemplates/432452342. string name = 1 [ (google.api.field_behavior) = REQUIRED, @@ -2863,8 +3076,8 @@ message UpdateInspectTemplateRequest { // Request message for GetInspectTemplate. message GetInspectTemplateRequest { - // Required. Resource name of the organization and inspectTemplate to be read, for - // example `organizations/433245324/inspectTemplates/432452342` or + // Required. Resource name of the organization and inspectTemplate to be read, + // for example `organizations/433245324/inspectTemplates/432452342` or // projects/project-id/inspectTemplates/432452342. string name = 1 [ (google.api.field_behavior) = REQUIRED, @@ -2925,9 +3138,9 @@ message ListInspectTemplatesResponse { // Request message for DeleteInspectTemplate. message DeleteInspectTemplateRequest { - // Required. Resource name of the organization and inspectTemplate to be deleted, for - // example `organizations/433245324/inspectTemplates/432452342` or - // projects/project-id/inspectTemplates/432452342. + // Required. Resource name of the organization and inspectTemplate to be + // deleted, for example `organizations/433245324/inspectTemplates/432452342` + // or projects/project-id/inspectTemplates/432452342. string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -2966,9 +3179,7 @@ message ActivateJobTriggerRequest { // `projects/dlp-test-project/jobTriggers/53234423`. string name = 1 [ (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "dlp.googleapis.com/JobTrigger" - } + (google.api.resource_reference) = { type: "dlp.googleapis.com/JobTrigger" } ]; } @@ -2978,9 +3189,7 @@ message UpdateJobTriggerRequest { // `projects/dlp-test-project/jobTriggers/53234423`. string name = 1 [ (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "dlp.googleapis.com/JobTrigger" - } + (google.api.resource_reference) = { type: "dlp.googleapis.com/JobTrigger" } ]; // New JobTrigger value. @@ -2996,9 +3205,7 @@ message GetJobTriggerRequest { // `projects/dlp-test-project/jobTriggers/53234423`. string name = 1 [ (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "dlp.googleapis.com/JobTrigger" - } + (google.api.resource_reference) = { type: "dlp.googleapis.com/JobTrigger" } ]; } @@ -3116,9 +3323,7 @@ message DeleteJobTriggerRequest { // `projects/dlp-test-project/jobTriggers/53234423`. string name = 1 [ (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "dlp.googleapis.com/JobTrigger" - } + (google.api.resource_reference) = { type: "dlp.googleapis.com/JobTrigger" } ]; } @@ -3144,9 +3349,10 @@ message DlpJob { option (google.api.resource) = { type: "dlp.googleapis.com/DlpJob" pattern: "projects/{project}/dlpJobs/{dlp_job}" + pattern: "projects/{project}/locations/{location}/dlpJobs/{dlp_job}" }; - // Possible states of a job. + // Possible states of a job. New items may be added. enum JobState { // Unused. JOB_STATE_UNSPECIFIED = 0; @@ -3154,7 +3360,8 @@ message DlpJob { // The job has not yet started. PENDING = 1; - // The job is currently running. + // The job is currently running. Once a job has finished it will transition + // to FAILED or DONE. RUNNING = 2; // The job is no longer running. @@ -3165,6 +3372,12 @@ message DlpJob { // The job had an error and did not complete. FAILED = 5; + + // 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 + // calls to hybridInspect may be made. ACTIVE jobs can transition to DONE. + ACTIVE = 6; } // The server-assigned name. @@ -3206,9 +3419,7 @@ message GetDlpJobRequest { // Required. The name of the DlpJob resource. string name = 1 [ (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "dlp.googleapis.com/DlpJob" - } + (google.api.resource_reference) = { type: "dlp.googleapis.com/DlpJob" } ]; } @@ -3295,9 +3506,16 @@ message CancelDlpJobRequest { // Required. The name of the DlpJob resource to be cancelled. string name = 1 [ (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "dlp.googleapis.com/DlpJob" - } + (google.api.resource_reference) = { type: "dlp.googleapis.com/DlpJob" } + ]; +} + +// The request message for finishing a DLP hybrid job. +message FinishDlpJobRequest { + // Required. The name of the DlpJob resource to be cancelled. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "dlp.googleapis.com/DlpJob" } ]; } @@ -3306,9 +3524,7 @@ message DeleteDlpJobRequest { // Required. The name of the DlpJob resource to be deleted. string name = 1 [ (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "dlp.googleapis.com/DlpJob" - } + (google.api.resource_reference) = { type: "dlp.googleapis.com/DlpJob" } ]; } @@ -3324,7 +3540,8 @@ message CreateDeidentifyTemplateRequest { ]; // Required. The DeidentifyTemplate to create. - DeidentifyTemplate deidentify_template = 2 [(google.api.field_behavior) = REQUIRED]; + DeidentifyTemplate deidentify_template = 2 + [(google.api.field_behavior) = REQUIRED]; // The template id can contain uppercase and lowercase letters, // numbers, and hyphens; that is, it must match the regular @@ -3339,8 +3556,9 @@ message CreateDeidentifyTemplateRequest { // Request message for UpdateDeidentifyTemplate. message UpdateDeidentifyTemplateRequest { - // Required. Resource name of organization and deidentify template to be updated, for - // example `organizations/433245324/deidentifyTemplates/432452342` or + // Required. Resource name of organization and deidentify template to be + // updated, for example + // `organizations/433245324/deidentifyTemplates/432452342` or // projects/project-id/deidentifyTemplates/432452342. string name = 1 [ (google.api.field_behavior) = REQUIRED, @@ -3358,9 +3576,9 @@ message UpdateDeidentifyTemplateRequest { // Request message for GetDeidentifyTemplate. message GetDeidentifyTemplateRequest { - // Required. Resource name of the organization and deidentify template to be read, for - // example `organizations/433245324/deidentifyTemplates/432452342` or - // projects/project-id/deidentifyTemplates/432452342. + // Required. Resource name of the organization and deidentify template to be + // read, for example `organizations/433245324/deidentifyTemplates/432452342` + // or projects/project-id/deidentifyTemplates/432452342. string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -3421,8 +3639,9 @@ message ListDeidentifyTemplatesResponse { // Request message for DeleteDeidentifyTemplate. message DeleteDeidentifyTemplateRequest { - // Required. Resource name of the organization and deidentify template to be deleted, - // for example `organizations/433245324/deidentifyTemplates/432452342` or + // Required. Resource name of the organization and deidentify template to be + // deleted, for example + // `organizations/433245324/deidentifyTemplates/432452342` or // projects/project-id/deidentifyTemplates/432452342. string name = 1 [ (google.api.field_behavior) = REQUIRED, @@ -3474,6 +3693,12 @@ message StoredInfoTypeConfig { oneof type { // StoredInfoType where findings are defined by a dictionary of phrases. LargeCustomDictionaryConfig large_custom_dictionary = 3; + + // Store dictionary-based CustomInfoType. + CustomInfoType.Dictionary dictionary = 4; + + // Store regular expression-based StoredInfoType. + CustomInfoType.Regex regex = 5; } } @@ -3526,6 +3751,8 @@ message StoredInfoType { type: "dlp.googleapis.com/StoredInfoType" pattern: "organizations/{organization}/storedInfoTypes/{stored_info_type}" pattern: "projects/{project}/storedInfoTypes/{stored_info_type}" + pattern: "organizations/{organization}/locations/{location}/storedInfoTypes/{stored_info_type}" + pattern: "projects/{project}/locations/{location}/storedInfoTypes/{stored_info_type}" }; // Resource name. @@ -3566,8 +3793,8 @@ message CreateStoredInfoTypeRequest { // Request message for UpdateStoredInfoType. message UpdateStoredInfoTypeRequest { - // Required. Resource name of organization and storedInfoType to be updated, for - // example `organizations/433245324/storedInfoTypes/432452342` or + // Required. Resource name of organization and storedInfoType to be updated, + // for example `organizations/433245324/storedInfoTypes/432452342` or // projects/project-id/storedInfoTypes/432452342. string name = 1 [ (google.api.field_behavior) = REQUIRED, @@ -3587,8 +3814,8 @@ message UpdateStoredInfoTypeRequest { // Request message for GetStoredInfoType. message GetStoredInfoTypeRequest { - // Required. Resource name of the organization and storedInfoType to be read, for - // example `organizations/433245324/storedInfoTypes/432452342` or + // Required. Resource name of the organization and storedInfoType to be read, + // for example `organizations/433245324/storedInfoTypes/432452342` or // projects/project-id/storedInfoTypes/432452342. string name = 1 [ (google.api.field_behavior) = REQUIRED, @@ -3650,8 +3877,8 @@ message ListStoredInfoTypesResponse { // Request message for DeleteStoredInfoType. message DeleteStoredInfoTypeRequest { - // Required. Resource name of the organization and storedInfoType to be deleted, for - // example `organizations/433245324/storedInfoTypes/432452342` or + // Required. Resource name of the organization and storedInfoType to be + // deleted, for example `organizations/433245324/storedInfoTypes/432452342` or // projects/project-id/storedInfoTypes/432452342. string name = 1 [ (google.api.field_behavior) = REQUIRED, @@ -3661,6 +3888,86 @@ message DeleteStoredInfoTypeRequest { ]; } +// Request to search for potentially sensitive info in a custom location. +message HybridInspectJobTriggerRequest { + // Required. Resource name of the trigger to execute a hybrid inspect on, for + // example `projects/dlp-test-project/jobTriggers/53234423`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "dlp.googleapis.com/JobTrigger" } + ]; + + // The item to inspect. + HybridContentItem hybrid_item = 3; +} + +// Request to search for potentially sensitive info in a custom location. +message HybridInspectDlpJobRequest { + // Required. Resource name of the job to execute a hybrid inspect on, for + // example `projects/dlp-test-project/dlpJob/53234423`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "dlp.googleapis.com/DlpJob" } + ]; + + // The item to inspect. + HybridContentItem hybrid_item = 3; +} + +// An individual hybrid item to inspect. Will be stored temporarily during +// processing. +message HybridContentItem { + // The item to inspect. + ContentItem item = 1; + + // Supplementary information that will be added to each finding. + HybridFindingDetails finding_details = 2; +} + +// Populate to associate additional data with each finding. +message HybridFindingDetails { + // Details about the container where the content being inspected is from. + Container container_details = 1; + + // Offset in bytes of the line, from the beginning of the file, where the + // finding is located. Populate if the item being scanned is only part of a + // bigger item, such as a shard of a file and you want to track the absolute + // position of the finding. + int64 file_offset = 2; + + // Offset of the row for tables. Populate if the row(s) being scanned are + // part of a bigger dataset and you want to keep track of their absolute + // position. + int64 row_offset = 3; + + // If the container is a table, additional information to make findings + // meaningful such as the columns that are primary keys. If not known ahead + // of time, can also be set within each inspect hybrid call and the two + // will be merged. Note that identifying_fields will only be stored to + // BigQuery, and only if the BigQuery action has been included. + TableOptions table_options = 4; + + // Labels to represent user provided metadata about the data being inspected. + // If configured by the job, some key values may be required. + // The labels associated with `Finding`'s produced by hybrid + // inspection. + // + // Label keys must be between 1 and 63 characters long and must conform + // to the following regular expression: \[a-z\](\[-a-z0-9\]*\[a-z0-9\])?. + // + // Label values must be between 0 and 63 characters long and must conform + // to the regular expression (\[a-z\](\[-a-z0-9\]*\[a-z0-9\])?)?. + // + // No more than 10 labels can be associated with a given finding. + // + // Example: "environment" : "production" + // Example: "pipeline" : "etl" + map labels = 5; +} + +// Quota exceeded errors will be thrown once quota has been met. +message HybridInspectResponse {} + // Operators available for comparing the value of fields. enum RelationalOperator { // Unused 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 aebc873a..585d777d 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 @@ -1,4 +1,4 @@ -// Copyright 2019 Google LLC. +// 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. @@ -11,7 +11,6 @@ // 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. -// syntax = "proto3"; @@ -134,9 +133,7 @@ message CustomInfoType { // output. This should be used in conjunction with a field on the // transformation such as `surrogate_info_type`. This CustomInfoType does // not support the use of `detection_rules`. - message SurrogateType { - - } + message SurrogateType {} // Deprecated; use `InspectionRuleSet` instead. Rule for modifying a // `CustomInfoType` to alter behavior under certain circumstances, depending @@ -435,8 +432,11 @@ message BigQueryOptions { // Complete BigQuery table reference. BigQueryTable table_reference = 1; - // References to fields uniquely identifying rows within the table. - // Nested fields in the format, like `person.birthdate.year`, are allowed. + // Table fields that may uniquely identify a row within the table. When + // `actions.saveFindings.outputConfig.table` is specified, the values of + // columns specified here are available in the output table under + // `location.content_locations.record_location.record_key.id_values`. Nested + // fields such as `person.birthdate.year` are allowed. repeated FieldId identifying_fields = 2; // Max number of rows to scan. If the table has more rows than this value, the @@ -495,14 +495,20 @@ message StorageConfig { } oneof type { - // Google Cloud Datastore options specification. + // Google Cloud Datastore options. DatastoreOptions datastore_options = 2; - // Google Cloud Storage options specification. + // Google Cloud Storage options. CloudStorageOptions cloud_storage_options = 3; - // BigQuery options specification. + // BigQuery options. BigQueryOptions big_query_options = 4; + + // Hybrid inspection options. + // Early access feature is in a pre-release state and might change or have + // limited support. For more information, see + // https://cloud.google.com/products#product-launch-stages. + HybridOptions hybrid_options = 9; } TimespanConfig timespan_config = 6; @@ -534,13 +540,52 @@ enum FileType { AVRO = 7; } +// Configuration to control jobs where the content being inspected is outside +// of Google Cloud Platform. +message HybridOptions { + // A short description of where the data is coming from. Will be stored once + // in the job. 256 max length. + string description = 1; + + // These are labels that each inspection request must include within their + // 'finding_labels' map. Request may contain others, but any missing one of + // these will be rejected. + // + // Label keys must be between 1 and 63 characters long and must conform + // to the following regular expression: \[a-z\](\[-a-z0-9\]*\[a-z0-9\])?. + // + // No more than 10 keys can be required. + repeated string required_finding_label_keys = 2; + + // To organize findings, these labels will be added to each finding. + // + // Label keys must be between 1 and 63 characters long and must conform + // to the following regular expression: \[a-z\](\[-a-z0-9\]*\[a-z0-9\])?. + // + // Label values must be between 0 and 63 characters long and must conform + // to the regular expression (\[a-z\](\[-a-z0-9\]*\[a-z0-9\])?)?. + // + // No more than 10 labels can be associated with a given finding. + // + // Example: "environment" : "production" + // Example: "pipeline" : "etl" + map labels = 3; + + // If the container is a table, additional information to make findings + // meaningful such as the columns that are primary keys. + TableOptions table_options = 4; +} + // Row key for identifying a record in BigQuery table. message BigQueryKey { // Complete BigQuery table reference. BigQueryTable table_reference = 1; - // Absolute number of the row from the beginning of the table at the time - // of scanning. + // Row number inferred at the time the table was scanned. This value is + // nondeterministic, cannot be queried, and may be null for inspection + // jobs. To locate findings within a table, specify + // `inspect_job.storage_config.big_query_options.identifying_fields` in + // `CreateDlpJobRequest`. int64 row_number = 2; } @@ -607,7 +652,7 @@ message RecordKey { } // Values of identifying columns in the given row. Order of values matches - // the order of field identifiers specified in the scanning request. + // the order of `identifying_fields` specified in the scanning request. repeated string id_values = 5; } @@ -646,3 +691,12 @@ message EntityId { // Composite key indicating which field contains the entity identifier. FieldId field = 1; } + +// Instructions regarding the table content being inspected. +message TableOptions { + // The columns that are the primary keys for table objects included in + // ContentItem. A copy of this cell's value will stored alongside alongside + // each finding so that the finding can be traced to the specific row it came + // from. No more than 3 may be provided. + repeated FieldId identifying_fields = 1; +} diff --git a/synth.metadata b/synth.metadata index 3dfd4033..88e206f0 100644 --- a/synth.metadata +++ b/synth.metadata @@ -1,20 +1,20 @@ { - "updateTime": "2020-03-13T21:54:42.896873Z", + "updateTime": "2020-03-16T21:52:13.075940Z", "sources": [ { "generator": { "name": "artman", - "version": "1.1.0", - "dockerImage": "googleapis/artman@sha256:f54b7644a1d2e7a37b23f5c0dfe9bba473e41c675002a507a244389e27487ca9" + "version": "1.1.1", + "dockerImage": "googleapis/artman@sha256:5ef340c8d9334719bc5c6981d95f4a5d2737b0a6a24f2b9a0d430e96fff85c5b" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "b2e2bc62fab90e6829e62d3d189906d9b79899e4", - "internalRef": "300817706", - "log": "b2e2bc62fab90e6829e62d3d189906d9b79899e4\nUpdates to GCS gRPC API spec:\n\n1. Changed GetIamPolicy and TestBucketIamPermissions to use wrapper messages around google.iam.v1 IAM requests messages, and added CommonRequestParams. This lets us support RequesterPays buckets.\n2. Added a metadata field to GetObjectMediaResponse, to support resuming an object media read safely (by extracting the generation of the object being read, and using it in the resumed read request).\n\nPiperOrigin-RevId: 300817706\n\n7fd916ce12335cc9e784bb9452a8602d00b2516c\nAdd deprecated_collections field for backward-compatiblity in PHP and monolith-generated Python and Ruby clients.\n\nGenerate TopicName class in Java which covers the functionality of both ProjectTopicName and DeletedTopicName. Introduce breaking changes to be fixed by synth.py.\n\nDelete default retry parameters.\n\nRetry codes defs can be deleted once # https://github.com/googleapis/gapic-generator/issues/3137 is fixed.\n\nPiperOrigin-RevId: 300813135\n\n047d3a8ac7f75383855df0166144f891d7af08d9\nfix!: google/rpc refactor ErrorInfo.type to ErrorInfo.reason and comment updates.\n\nPiperOrigin-RevId: 300773211\n\nfae4bb6d5aac52aabe5f0bb4396466c2304ea6f6\nAdding RetryPolicy to pubsub.proto\n\nPiperOrigin-RevId: 300769420\n\n7d569be2928dbd72b4e261bf9e468f23afd2b950\nAdding additional protocol buffer annotations to v3.\n\nPiperOrigin-RevId: 300718800\n\n13942d1a85a337515040a03c5108993087dc0e4f\nAdd logging protos for Recommender v1.\n\nPiperOrigin-RevId: 300689896\n\na1a573c3eecfe2c404892bfa61a32dd0c9fb22b6\nfix: change go package to use cloud.google.com/go/maps\n\nPiperOrigin-RevId: 300661825\n\nc6fbac11afa0c7ab2972d9df181493875c566f77\nfeat: publish documentai/v1beta2 protos\n\nPiperOrigin-RevId: 300656808\n\n5202a9e0d9903f49e900f20fe5c7f4e42dd6588f\nProtos for v1beta1 release of Cloud Security Center Settings API\n\nPiperOrigin-RevId: 300580858\n\n83518e18655d9d4ac044acbda063cc6ecdb63ef8\nAdds gapic.yaml file and BUILD.bazel file.\n\nPiperOrigin-RevId: 300554200\n\n836c196dc8ef8354bbfb5f30696bd3477e8db5e2\nRegenerate recommender v1beta1 gRPC ServiceConfig file for Insights methods.\n\nPiperOrigin-RevId: 300549302\n\n34a5450c591b6be3d6566f25ac31caa5211b2f3f\nIncreases the default timeout from 20s to 30s for MetricService\n\nPiperOrigin-RevId: 300474272\n\n5d8bffe87cd01ba390c32f1714230e5a95d5991d\nfeat: use the latest gapic-generator in WORKSPACE for bazel build.\n\nPiperOrigin-RevId: 300461878\n\nd631c651e3bcfac5d371e8560c27648f7b3e2364\nUpdated the GAPIC configs to include parameters for Backups APIs.\n\nPiperOrigin-RevId: 300443402\n\n678afc7055c1adea9b7b54519f3bdb228013f918\nAdding Game Servers v1beta API.\n\nPiperOrigin-RevId: 300433218\n\n80d2bd2c652a5e213302041b0620aff423132589\nEnable proto annotation and gapic v2 for talent API.\n\nPiperOrigin-RevId: 300393997\n\n85e454be7a353f7fe1bf2b0affb753305785b872\ndocs(google/maps/roads): remove mention of nonexported api\n\nPiperOrigin-RevId: 300367734\n\nbf839ae632e0f263a729569e44be4b38b1c85f9c\nAdding protocol buffer annotations and updated config info for v1 and v2.\n\nPiperOrigin-RevId: 300276913\n\n309b899ca18a4c604bce63882a161d44854da549\nPublish `Backup` APIs and protos.\n\nPiperOrigin-RevId: 300246038\n\neced64c3f122421350b4aca68a28e89121d20db8\nadd PHP client libraries\n\nPiperOrigin-RevId: 300193634\n\n7727af0e39df1ae9ad715895c8576d7b65cf6c6d\nfeat: use the latest gapic-generator and protoc-java-resource-name-plugin in googleapis/WORKSPACE.\n\nPiperOrigin-RevId: 300188410\n\n2a25aa351dd5b5fe14895266aff5824d90ce757b\nBreaking change: remove the ProjectOrTenant resource and its references.\n\nPiperOrigin-RevId: 300182152\n\na499dbb28546379415f51803505cfb6123477e71\nUpdate web risk v1 gapic config and BUILD file.\n\nPiperOrigin-RevId: 300152177\n\n52701da10fec2a5f9796e8d12518c0fe574488fe\nFix: apply appropriate namespace/package options for C#, PHP and Ruby.\n\nPiperOrigin-RevId: 300123508\n\n365c029b8cdb63f7751b92ab490f1976e616105c\nAdd CC targets to the kms protos.\n\nThese are needed by go/tink.\n\nPiperOrigin-RevId: 300038469\n\n4ba9aa8a4a1413b88dca5a8fa931824ee9c284e6\nExpose logo recognition API proto for GA.\n\nPiperOrigin-RevId: 299971671\n\n1c9fc2c9e03dadf15f16b1c4f570955bdcebe00e\nAdding ruby_package option to accessapproval.proto for the Ruby client libraries generation.\n\nPiperOrigin-RevId: 299955924\n\n1cc6f0a7bfb147e6f2ede911d9b01e7a9923b719\nbuild(google/maps/routes): generate api clients\n\nPiperOrigin-RevId: 299955905\n\n29a47c965aac79e3fe8e3314482ca0b5967680f0\nIncrease timeout to 1hr for method `dropRange` in bigtable/admin/v2, which is\nsynced with the timeout setting in gapic_yaml.\n\nPiperOrigin-RevId: 299917154\n\n8f631c4c70a60a9c7da3749511ee4ad432b62898\nbuild(google/maps/roads/v1op): move go to monorepo pattern\n\nPiperOrigin-RevId: 299885195\n\nd66816518844ebbf63504c9e8dfc7133921dd2cd\nbuild(google/maps/roads/v1op): Add bazel build files to generate clients.\n\nPiperOrigin-RevId: 299851148\n\naf7dff701fabe029672168649c62356cf1bb43d0\nAdd LogPlayerReports and LogImpressions to Playable Locations service\n\nPiperOrigin-RevId: 299724050\n\nb6927fca808f38df32a642c560082f5bf6538ced\nUpdate BigQuery Connection API v1beta1 proto: added credential to CloudSqlProperties.\n\nPiperOrigin-RevId: 299503150\n\n91e1fb5ef9829c0c7a64bfa5bde330e6ed594378\nchore: update protobuf (protoc) version to 3.11.2\n\nPiperOrigin-RevId: 299404145\n\n30e36b4bee6749c4799f4fc1a51cc8f058ba167d\nUpdate cloud asset api v1p4beta1.\n\nPiperOrigin-RevId: 299399890\n\nffbb493674099f265693872ae250711b2238090c\nfeat: cloudbuild/v1 add new fields and annotate OUTPUT_OUT fields.\n\nPiperOrigin-RevId: 299397780\n\nbc973a15818e00c19e121959832676e9b7607456\nbazel: Fix broken common dependency\n\nPiperOrigin-RevId: 299397431\n\n71094a343e3b962e744aa49eb9338219537474e4\nchore: bigtable/admin/v2 publish retry config\n\nPiperOrigin-RevId: 299391875\n\n8f488efd7bda33885cb674ddd023b3678c40bd82\nfeat: Migrate logging to GAPIC v2; release new features.\n\nIMPORTANT: This is a breaking change for client libraries\nin all languages.\n\nCommitter: @lukesneeringer, @jskeet\nPiperOrigin-RevId: 299370279\n\n007605bf9ad3a1fd775014ebefbf7f1e6b31ee71\nUpdate API for bigqueryreservation v1beta1.\n- Adds flex capacity commitment plan to CapacityCommitment.\n- Adds methods for getting and updating BiReservations.\n- Adds methods for updating/splitting/merging CapacityCommitments.\n\nPiperOrigin-RevId: 299368059\n\nf0b581b5bdf803e45201ecdb3688b60e381628a8\nfix: recommendationengine/v1beta1 update some comments\n\nPiperOrigin-RevId: 299181282\n\n10e9a0a833dc85ff8f05b2c67ebe5ac785fe04ff\nbuild: add generated BUILD file for Routes Preferred API\n\nPiperOrigin-RevId: 299164808\n\n86738c956a8238d7c77f729be78b0ed887a6c913\npublish v1p1beta1: update with absolute address in comments\n\nPiperOrigin-RevId: 299152383\n\n73d9f2ad4591de45c2e1f352bc99d70cbd2a6d95\npublish v1: update with absolute address in comments\n\nPiperOrigin-RevId: 299147194\n\nd2158f24cb77b0b0ccfe68af784c6a628705e3c6\npublish v1beta2: update with absolute address in comments\n\nPiperOrigin-RevId: 299147086\n\n7fca61292c11b4cd5b352cee1a50bf88819dd63b\npublish v1p2beta1: update with absolute address in comments\n\nPiperOrigin-RevId: 299146903\n\n583b7321624736e2c490e328f4b1957335779295\npublish v1p3beta1: update with absolute address in comments\n\nPiperOrigin-RevId: 299146674\n\n638253bf86d1ce1c314108a089b7351440c2f0bf\nfix: add java_multiple_files option for automl text_sentiment.proto\n\nPiperOrigin-RevId: 298971070\n\n373d655703bf914fb8b0b1cc4071d772bac0e0d1\nUpdate Recs AI Beta public bazel file\n\nPiperOrigin-RevId: 298961623\n\ndcc5d00fc8a8d8b56f16194d7c682027b2c66a3b\nfix: add java_multiple_files option for automl classification.proto\n\nPiperOrigin-RevId: 298953301\n\na3f791827266f3496a6a5201d58adc4bb265c2a3\nchore: automl/v1 publish annotations and retry config\n\nPiperOrigin-RevId: 298942178\n\n01c681586d8d6dbd60155289b587aee678530bd9\nMark return_immediately in PullRequest deprecated.\n\nPiperOrigin-RevId: 298893281\n\nc9f5e9c4bfed54bbd09227e990e7bded5f90f31c\nRemove out of date documentation for predicate support on the Storage API\n\nPiperOrigin-RevId: 298883309\n\nfd5b3b8238d783b04692a113ffe07c0363f5de0f\ngenerate webrisk v1 proto\n\nPiperOrigin-RevId: 298847934\n\n541b1ded4abadcc38e8178680b0677f65594ea6f\nUpdate cloud asset api v1p4beta1.\n\nPiperOrigin-RevId: 298686266\n\nc0d171acecb4f5b0bfd2c4ca34fc54716574e300\n Updated to include the Notification v1 API.\n\nPiperOrigin-RevId: 298652775\n\n2346a9186c0bff2c9cc439f2459d558068637e05\nAdd Service Directory v1beta1 protos and configs\n\nPiperOrigin-RevId: 298625638\n\na78ed801b82a5c6d9c5368e24b1412212e541bb7\nPublishing v3 protos and configs.\n\nPiperOrigin-RevId: 298607357\n\n4a180bfff8a21645b3a935c2756e8d6ab18a74e0\nautoml/v1beta1 publish proto updates\n\nPiperOrigin-RevId: 298484782\n\n6de6e938b7df1cd62396563a067334abeedb9676\nchore: use the latest gapic-generator and protoc-java-resource-name-plugin in Bazel workspace.\n\nPiperOrigin-RevId: 298474513\n\n244ab2b83a82076a1fa7be63b7e0671af73f5c02\nAdds service config definition for bigqueryreservation v1\n\nPiperOrigin-RevId: 298455048\n\n" + "sha": "1976b9981e2900c8172b7d34b4220bdb18c5db42", + "internalRef": "301205325", + "log": "1976b9981e2900c8172b7d34b4220bdb18c5db42\nCloud DLP api update. Adds missing fields to Finding and adds support for hybrid jobs.\n\nPiperOrigin-RevId: 301205325\n\nae78682c05e864d71223ce22532219813b0245ac\nfix: several sample code blocks in comments are now properly indented for markdown\n\nPiperOrigin-RevId: 301185150\n\ndcd171d04bda5b67db13049320f97eca3ace3731\nPublish Media Translation API V1Beta1\n\nPiperOrigin-RevId: 301180096\n\nff1713453b0fbc5a7544a1ef6828c26ad21a370e\nAdd protos and BUILD rules for v1 API.\n\nPiperOrigin-RevId: 301179394\n\n8386761d09819b665b6a6e1e6d6ff884bc8ff781\nfeat: chromeos/modlab publish protos and config for Chrome OS Moblab API.\n\nPiperOrigin-RevId: 300843960\n\n" } }, {