From ad017105dd0a4b5c25a1f06759b63145466b73b6 Mon Sep 17 00:00:00 2001 From: yoshi-automation Date: Wed, 3 Jul 2019 13:55:13 -0700 Subject: [PATCH] Regenerate dlp client --- .../com/google/privacy/dlp/v2/Action.java | 1118 ++++++++++++++--- .../privacy/dlp/v2/ActionOrBuilder.java | 39 + .../google/privacy/dlp/v2/CustomInfoType.java | 14 +- .../com/google/privacy/dlp/v2/DlpProto.java | 631 +++++----- .../proto/google/privacy/dlp/v2/dlp.proto | 164 +-- .../proto/google/privacy/dlp/v2/storage.proto | 11 +- .../google-cloud-dlp/synth.metadata | 10 +- 7 files changed, 1442 insertions(+), 545 deletions(-) diff --git a/google-api-grpc/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/Action.java b/google-api-grpc/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/Action.java index 4e606505616f..0fba3f94d0a0 100644 --- a/google-api-grpc/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/Action.java +++ b/google-api-grpc/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/Action.java @@ -101,6 +101,27 @@ private Action( actionCase_ = 3; break; } + case 42: + { + com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog.Builder + subBuilder = null; + if (actionCase_ == 5) { + subBuilder = + ((com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog) action_) + .toBuilder(); + } + action_ = + input.readMessage( + com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog) action_); + action_ = subBuilder.buildPartial(); + } + actionCase_ = 5; + break; + } case 66: { com.google.privacy.dlp.v2.Action.JobNotificationEmails.Builder subBuilder = null; @@ -1897,38 +1918,48 @@ public com.google.privacy.dlp.v2.Action.PublishSummaryToCscc getDefaultInstanceF } } - public interface JobNotificationEmailsOrBuilder + public interface PublishFindingsToCloudDataCatalogOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.privacy.dlp.v2.Action.JobNotificationEmails) + // @@protoc_insertion_point(interface_extends:google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog) com.google.protobuf.MessageOrBuilder {} /** * * *
-   * Enable email notification to project owners and editors on jobs's
-   * completion/failure.
+   * 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
+   * in Cloud Data Catalog. Any labels previously written by another DlpJob will
+   * be deleted. InfoType naming patterns are strictly enforced when using this
+   * feature. Note that the findings will be persisted in Cloud Data Catalog
+   * storage and are governed by Data Catalog service-specific policy, see
+   * https://cloud.google.com/terms/service-terms
+   * Only a single instance of this action can be specified and only allowed if
+   * all resources being scanned are BigQuery tables.
+   * Compatible with: Inspect
    * 
* - * Protobuf type {@code google.privacy.dlp.v2.Action.JobNotificationEmails} + * Protobuf type {@code google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog} */ - public static final class JobNotificationEmails extends com.google.protobuf.GeneratedMessageV3 + public static final class PublishFindingsToCloudDataCatalog + extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2.Action.JobNotificationEmails) - JobNotificationEmailsOrBuilder { + // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog) + PublishFindingsToCloudDataCatalogOrBuilder { private static final long serialVersionUID = 0L; - // Use JobNotificationEmails.newBuilder() to construct. - private JobNotificationEmails(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use PublishFindingsToCloudDataCatalog.newBuilder() to construct. + private PublishFindingsToCloudDataCatalog( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private JobNotificationEmails() {} + private PublishFindingsToCloudDataCatalog() {} @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private JobNotificationEmails( + private PublishFindingsToCloudDataCatalog( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -1967,17 +1998,17 @@ private JobNotificationEmails( public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.privacy.dlp.v2.DlpProto - .internal_static_google_privacy_dlp_v2_Action_JobNotificationEmails_descriptor; + .internal_static_google_privacy_dlp_v2_Action_PublishFindingsToCloudDataCatalog_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.privacy.dlp.v2.DlpProto - .internal_static_google_privacy_dlp_v2_Action_JobNotificationEmails_fieldAccessorTable + .internal_static_google_privacy_dlp_v2_Action_PublishFindingsToCloudDataCatalog_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.privacy.dlp.v2.Action.JobNotificationEmails.class, - com.google.privacy.dlp.v2.Action.JobNotificationEmails.Builder.class); + com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog.class, + com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog.Builder.class); } private byte memoizedIsInitialized = -1; @@ -2013,11 +2044,11 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof com.google.privacy.dlp.v2.Action.JobNotificationEmails)) { + if (!(obj instanceof com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog)) { return super.equals(obj); } - com.google.privacy.dlp.v2.Action.JobNotificationEmails other = - (com.google.privacy.dlp.v2.Action.JobNotificationEmails) obj; + com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog other = + (com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog) obj; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -2035,71 +2066,72 @@ public int hashCode() { return hash; } - public static com.google.privacy.dlp.v2.Action.JobNotificationEmails parseFrom( + public static com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.privacy.dlp.v2.Action.JobNotificationEmails parseFrom( + public static com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.privacy.dlp.v2.Action.JobNotificationEmails parseFrom( + public static com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.privacy.dlp.v2.Action.JobNotificationEmails parseFrom( + public static com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.privacy.dlp.v2.Action.JobNotificationEmails parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.privacy.dlp.v2.Action.JobNotificationEmails parseFrom( + public static com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.privacy.dlp.v2.Action.JobNotificationEmails parseFrom( + public static com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.privacy.dlp.v2.Action.JobNotificationEmails parseFrom( + public static com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } - public static com.google.privacy.dlp.v2.Action.JobNotificationEmails parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { + public static com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.privacy.dlp.v2.Action.JobNotificationEmails parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { + public static com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } - public static com.google.privacy.dlp.v2.Action.JobNotificationEmails parseFrom( + public static com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.privacy.dlp.v2.Action.JobNotificationEmails parseFrom( + public static com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -2117,7 +2149,7 @@ public static Builder newBuilder() { } public static Builder newBuilder( - com.google.privacy.dlp.v2.Action.JobNotificationEmails prototype) { + com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @@ -2136,33 +2168,42 @@ protected Builder newBuilderForType( * * *
-     * Enable email notification to project owners and editors on jobs's
-     * completion/failure.
+     * 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
+     * in Cloud Data Catalog. Any labels previously written by another DlpJob will
+     * be deleted. InfoType naming patterns are strictly enforced when using this
+     * feature. Note that the findings will be persisted in Cloud Data Catalog
+     * storage and are governed by Data Catalog service-specific policy, see
+     * https://cloud.google.com/terms/service-terms
+     * Only a single instance of this action can be specified and only allowed if
+     * all resources being scanned are BigQuery tables.
+     * Compatible with: Inspect
      * 
* - * Protobuf type {@code google.privacy.dlp.v2.Action.JobNotificationEmails} + * Protobuf type {@code google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.privacy.dlp.v2.Action.JobNotificationEmails) - com.google.privacy.dlp.v2.Action.JobNotificationEmailsOrBuilder { + // @@protoc_insertion_point(builder_implements:google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog) + com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalogOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.privacy.dlp.v2.DlpProto - .internal_static_google_privacy_dlp_v2_Action_JobNotificationEmails_descriptor; + .internal_static_google_privacy_dlp_v2_Action_PublishFindingsToCloudDataCatalog_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.privacy.dlp.v2.DlpProto - .internal_static_google_privacy_dlp_v2_Action_JobNotificationEmails_fieldAccessorTable + .internal_static_google_privacy_dlp_v2_Action_PublishFindingsToCloudDataCatalog_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.privacy.dlp.v2.Action.JobNotificationEmails.class, - com.google.privacy.dlp.v2.Action.JobNotificationEmails.Builder.class); + com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog.class, + com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog.Builder.class); } - // Construct using com.google.privacy.dlp.v2.Action.JobNotificationEmails.newBuilder() + // Construct using + // com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -2185,17 +2226,19 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.privacy.dlp.v2.DlpProto - .internal_static_google_privacy_dlp_v2_Action_JobNotificationEmails_descriptor; + .internal_static_google_privacy_dlp_v2_Action_PublishFindingsToCloudDataCatalog_descriptor; } @java.lang.Override - public com.google.privacy.dlp.v2.Action.JobNotificationEmails getDefaultInstanceForType() { - return com.google.privacy.dlp.v2.Action.JobNotificationEmails.getDefaultInstance(); + public com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog + getDefaultInstanceForType() { + return com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog + .getDefaultInstance(); } @java.lang.Override - public com.google.privacy.dlp.v2.Action.JobNotificationEmails build() { - com.google.privacy.dlp.v2.Action.JobNotificationEmails result = buildPartial(); + public com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog build() { + com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -2203,9 +2246,9 @@ public com.google.privacy.dlp.v2.Action.JobNotificationEmails build() { } @java.lang.Override - public com.google.privacy.dlp.v2.Action.JobNotificationEmails buildPartial() { - com.google.privacy.dlp.v2.Action.JobNotificationEmails result = - new com.google.privacy.dlp.v2.Action.JobNotificationEmails(this); + public com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog buildPartial() { + com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog result = + new com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog(this); onBuilt(); return result; } @@ -2247,17 +2290,20 @@ public Builder addRepeatedField( @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.privacy.dlp.v2.Action.JobNotificationEmails) { - return mergeFrom((com.google.privacy.dlp.v2.Action.JobNotificationEmails) other); + if (other instanceof com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog) { + return mergeFrom( + (com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.privacy.dlp.v2.Action.JobNotificationEmails other) { - if (other == com.google.privacy.dlp.v2.Action.JobNotificationEmails.getDefaultInstance()) - return this; + public Builder mergeFrom( + com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog other) { + if (other + == com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog + .getDefaultInstance()) return this; this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -2273,12 +2319,13 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.privacy.dlp.v2.Action.JobNotificationEmails parsedMessage = null; + com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = - (com.google.privacy.dlp.v2.Action.JobNotificationEmails) e.getUnfinishedMessage(); + (com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -2300,140 +2347,589 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.privacy.dlp.v2.Action.JobNotificationEmails) + // @@protoc_insertion_point(builder_scope:google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog) } - // @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.Action.JobNotificationEmails) - private static final com.google.privacy.dlp.v2.Action.JobNotificationEmails DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog) + private static final com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog + DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new com.google.privacy.dlp.v2.Action.JobNotificationEmails(); + DEFAULT_INSTANCE = new com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog(); } - public static com.google.privacy.dlp.v2.Action.JobNotificationEmails getDefaultInstance() { + public static com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { @java.lang.Override - public JobNotificationEmails parsePartialFrom( + public PublishFindingsToCloudDataCatalog parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new JobNotificationEmails(input, extensionRegistry); + return new PublishFindingsToCloudDataCatalog(input, extensionRegistry); } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public com.google.privacy.dlp.v2.Action.JobNotificationEmails getDefaultInstanceForType() { + public com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - private int actionCase_ = 0; - private java.lang.Object action_; + public interface JobNotificationEmailsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.privacy.dlp.v2.Action.JobNotificationEmails) + com.google.protobuf.MessageOrBuilder {} + /** + * + * + *
+   * Enable email notification to project owners and editors on jobs's
+   * completion/failure.
+   * 
+ * + * Protobuf type {@code google.privacy.dlp.v2.Action.JobNotificationEmails} + */ + public static final class JobNotificationEmails extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2.Action.JobNotificationEmails) + JobNotificationEmailsOrBuilder { + private static final long serialVersionUID = 0L; + // Use JobNotificationEmails.newBuilder() to construct. + private JobNotificationEmails(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } - public enum ActionCase implements com.google.protobuf.Internal.EnumLite { - SAVE_FINDINGS(1), - PUB_SUB(2), - PUBLISH_SUMMARY_TO_CSCC(3), - JOB_NOTIFICATION_EMAILS(8), - ACTION_NOT_SET(0); - private final int value; + private JobNotificationEmails() {} - private ActionCase(int value) { - this.value = value; - } - /** @deprecated Use {@link #forNumber(int)} instead. */ - @java.lang.Deprecated - public static ActionCase valueOf(int value) { - return forNumber(value); + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; } - public static ActionCase forNumber(int value) { - switch (value) { - case 1: - return SAVE_FINDINGS; - case 2: - return PUB_SUB; - case 3: - return PUBLISH_SUMMARY_TO_CSCC; - case 8: - return JOB_NOTIFICATION_EMAILS; - case 0: - return ACTION_NOT_SET; - default: - return null; + private JobNotificationEmails( + 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 int getNumber() { - return this.value; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_Action_JobNotificationEmails_descriptor; } - }; - public ActionCase getActionCase() { - return ActionCase.forNumber(actionCase_); - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_Action_JobNotificationEmails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.privacy.dlp.v2.Action.JobNotificationEmails.class, + com.google.privacy.dlp.v2.Action.JobNotificationEmails.Builder.class); + } - public static final int SAVE_FINDINGS_FIELD_NUMBER = 1; - /** - * - * - *
-   * Save resulting findings in a provided location.
-   * 
- * - * .google.privacy.dlp.v2.Action.SaveFindings save_findings = 1; - */ - public boolean hasSaveFindings() { - return actionCase_ == 1; - } - /** - * - * - *
-   * Save resulting findings in a provided location.
-   * 
- * - * .google.privacy.dlp.v2.Action.SaveFindings save_findings = 1; - */ - public com.google.privacy.dlp.v2.Action.SaveFindings getSaveFindings() { - if (actionCase_ == 1) { - return (com.google.privacy.dlp.v2.Action.SaveFindings) action_; + 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; } - return com.google.privacy.dlp.v2.Action.SaveFindings.getDefaultInstance(); - } - /** - * - * - *
-   * Save resulting findings in a provided location.
-   * 
- * - * .google.privacy.dlp.v2.Action.SaveFindings save_findings = 1; - */ - public com.google.privacy.dlp.v2.Action.SaveFindingsOrBuilder getSaveFindingsOrBuilder() { - if (actionCase_ == 1) { - return (com.google.privacy.dlp.v2.Action.SaveFindings) action_; + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + unknownFields.writeTo(output); } - return com.google.privacy.dlp.v2.Action.SaveFindings.getDefaultInstance(); - } - public static final int PUB_SUB_FIELD_NUMBER = 2; - /** - * - * + @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.Action.JobNotificationEmails)) { + return super.equals(obj); + } + com.google.privacy.dlp.v2.Action.JobNotificationEmails other = + (com.google.privacy.dlp.v2.Action.JobNotificationEmails) 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.Action.JobNotificationEmails parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.privacy.dlp.v2.Action.JobNotificationEmails parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.privacy.dlp.v2.Action.JobNotificationEmails parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.privacy.dlp.v2.Action.JobNotificationEmails parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.privacy.dlp.v2.Action.JobNotificationEmails parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.privacy.dlp.v2.Action.JobNotificationEmails parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.privacy.dlp.v2.Action.JobNotificationEmails parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.privacy.dlp.v2.Action.JobNotificationEmails parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.privacy.dlp.v2.Action.JobNotificationEmails parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.privacy.dlp.v2.Action.JobNotificationEmails parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.privacy.dlp.v2.Action.JobNotificationEmails parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.privacy.dlp.v2.Action.JobNotificationEmails parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.privacy.dlp.v2.Action.JobNotificationEmails 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; + } + /** + * + * + *
+     * Enable email notification to project owners and editors on jobs's
+     * completion/failure.
+     * 
+ * + * Protobuf type {@code google.privacy.dlp.v2.Action.JobNotificationEmails} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.privacy.dlp.v2.Action.JobNotificationEmails) + com.google.privacy.dlp.v2.Action.JobNotificationEmailsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_Action_JobNotificationEmails_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_Action_JobNotificationEmails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.privacy.dlp.v2.Action.JobNotificationEmails.class, + com.google.privacy.dlp.v2.Action.JobNotificationEmails.Builder.class); + } + + // Construct using com.google.privacy.dlp.v2.Action.JobNotificationEmails.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_Action_JobNotificationEmails_descriptor; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.Action.JobNotificationEmails getDefaultInstanceForType() { + return com.google.privacy.dlp.v2.Action.JobNotificationEmails.getDefaultInstance(); + } + + @java.lang.Override + public com.google.privacy.dlp.v2.Action.JobNotificationEmails build() { + com.google.privacy.dlp.v2.Action.JobNotificationEmails result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.Action.JobNotificationEmails buildPartial() { + com.google.privacy.dlp.v2.Action.JobNotificationEmails result = + new com.google.privacy.dlp.v2.Action.JobNotificationEmails(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.Action.JobNotificationEmails) { + return mergeFrom((com.google.privacy.dlp.v2.Action.JobNotificationEmails) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.privacy.dlp.v2.Action.JobNotificationEmails other) { + if (other == com.google.privacy.dlp.v2.Action.JobNotificationEmails.getDefaultInstance()) + return this; + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.privacy.dlp.v2.Action.JobNotificationEmails parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.privacy.dlp.v2.Action.JobNotificationEmails) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.privacy.dlp.v2.Action.JobNotificationEmails) + } + + // @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.Action.JobNotificationEmails) + private static final com.google.privacy.dlp.v2.Action.JobNotificationEmails DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.privacy.dlp.v2.Action.JobNotificationEmails(); + } + + public static com.google.privacy.dlp.v2.Action.JobNotificationEmails getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public JobNotificationEmails parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new JobNotificationEmails(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.Action.JobNotificationEmails getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int actionCase_ = 0; + private java.lang.Object action_; + + public enum ActionCase implements com.google.protobuf.Internal.EnumLite { + SAVE_FINDINGS(1), + PUB_SUB(2), + PUBLISH_SUMMARY_TO_CSCC(3), + PUBLISH_FINDINGS_TO_CLOUD_DATA_CATALOG(5), + JOB_NOTIFICATION_EMAILS(8), + ACTION_NOT_SET(0); + private final int value; + + private ActionCase(int value) { + this.value = value; + } + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static ActionCase valueOf(int value) { + return forNumber(value); + } + + public static ActionCase forNumber(int value) { + switch (value) { + case 1: + return SAVE_FINDINGS; + case 2: + return PUB_SUB; + case 3: + return PUBLISH_SUMMARY_TO_CSCC; + case 5: + return PUBLISH_FINDINGS_TO_CLOUD_DATA_CATALOG; + case 8: + return JOB_NOTIFICATION_EMAILS; + case 0: + return ACTION_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ActionCase getActionCase() { + return ActionCase.forNumber(actionCase_); + } + + public static final int SAVE_FINDINGS_FIELD_NUMBER = 1; + /** + * + * + *
+   * Save resulting findings in a provided location.
+   * 
+ * + * .google.privacy.dlp.v2.Action.SaveFindings save_findings = 1; + */ + public boolean hasSaveFindings() { + return actionCase_ == 1; + } + /** + * + * + *
+   * Save resulting findings in a provided location.
+   * 
+ * + * .google.privacy.dlp.v2.Action.SaveFindings save_findings = 1; + */ + public com.google.privacy.dlp.v2.Action.SaveFindings getSaveFindings() { + if (actionCase_ == 1) { + return (com.google.privacy.dlp.v2.Action.SaveFindings) action_; + } + return com.google.privacy.dlp.v2.Action.SaveFindings.getDefaultInstance(); + } + /** + * + * + *
+   * Save resulting findings in a provided location.
+   * 
+ * + * .google.privacy.dlp.v2.Action.SaveFindings save_findings = 1; + */ + public com.google.privacy.dlp.v2.Action.SaveFindingsOrBuilder getSaveFindingsOrBuilder() { + if (actionCase_ == 1) { + return (com.google.privacy.dlp.v2.Action.SaveFindings) action_; + } + return com.google.privacy.dlp.v2.Action.SaveFindings.getDefaultInstance(); + } + + public static final int PUB_SUB_FIELD_NUMBER = 2; + /** + * + * *
    * Publish a notification to a pubsub topic.
    * 
@@ -2519,6 +3015,58 @@ public com.google.privacy.dlp.v2.Action.PublishSummaryToCscc getPublishSummaryTo return com.google.privacy.dlp.v2.Action.PublishSummaryToCscc.getDefaultInstance(); } + public static final int PUBLISH_FINDINGS_TO_CLOUD_DATA_CATALOG_FIELD_NUMBER = 5; + /** + * + * + *
+   * Publish findings to Cloud Datahub.
+   * 
+ * + * + * .google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog publish_findings_to_cloud_data_catalog = 5; + * + */ + public boolean hasPublishFindingsToCloudDataCatalog() { + return actionCase_ == 5; + } + /** + * + * + *
+   * Publish findings to Cloud Datahub.
+   * 
+ * + * + * .google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog publish_findings_to_cloud_data_catalog = 5; + * + */ + public com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog + getPublishFindingsToCloudDataCatalog() { + if (actionCase_ == 5) { + return (com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog) action_; + } + return com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog.getDefaultInstance(); + } + /** + * + * + *
+   * Publish findings to Cloud Datahub.
+   * 
+ * + * + * .google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog publish_findings_to_cloud_data_catalog = 5; + * + */ + public com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalogOrBuilder + getPublishFindingsToCloudDataCatalogOrBuilder() { + if (actionCase_ == 5) { + return (com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog) action_; + } + return com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog.getDefaultInstance(); + } + public static final int JOB_NOTIFICATION_EMAILS_FIELD_NUMBER = 8; /** * @@ -2590,6 +3138,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (actionCase_ == 3) { output.writeMessage(3, (com.google.privacy.dlp.v2.Action.PublishSummaryToCscc) action_); } + if (actionCase_ == 5) { + output.writeMessage( + 5, (com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog) action_); + } if (actionCase_ == 8) { output.writeMessage(8, (com.google.privacy.dlp.v2.Action.JobNotificationEmails) action_); } @@ -2617,6 +3169,11 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 3, (com.google.privacy.dlp.v2.Action.PublishSummaryToCscc) action_); } + if (actionCase_ == 5) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, (com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog) action_); + } if (actionCase_ == 8) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( @@ -2648,6 +3205,10 @@ public boolean equals(final java.lang.Object obj) { case 3: if (!getPublishSummaryToCscc().equals(other.getPublishSummaryToCscc())) return false; break; + case 5: + if (!getPublishFindingsToCloudDataCatalog() + .equals(other.getPublishFindingsToCloudDataCatalog())) return false; + break; case 8: if (!getJobNotificationEmails().equals(other.getJobNotificationEmails())) return false; break; @@ -2678,6 +3239,10 @@ public int hashCode() { hash = (37 * hash) + PUBLISH_SUMMARY_TO_CSCC_FIELD_NUMBER; hash = (53 * hash) + getPublishSummaryToCscc().hashCode(); break; + case 5: + hash = (37 * hash) + PUBLISH_FINDINGS_TO_CLOUD_DATA_CATALOG_FIELD_NUMBER; + hash = (53 * hash) + getPublishFindingsToCloudDataCatalog().hashCode(); + break; case 8: hash = (37 * hash) + JOB_NOTIFICATION_EMAILS_FIELD_NUMBER; hash = (53 * hash) + getJobNotificationEmails().hashCode(); @@ -2879,6 +3444,13 @@ public com.google.privacy.dlp.v2.Action buildPartial() { result.action_ = publishSummaryToCsccBuilder_.build(); } } + if (actionCase_ == 5) { + if (publishFindingsToCloudDataCatalogBuilder_ == null) { + result.action_ = action_; + } else { + result.action_ = publishFindingsToCloudDataCatalogBuilder_.build(); + } + } if (actionCase_ == 8) { if (jobNotificationEmailsBuilder_ == null) { result.action_ = action_; @@ -2952,6 +3524,11 @@ public Builder mergeFrom(com.google.privacy.dlp.v2.Action other) { mergePublishSummaryToCscc(other.getPublishSummaryToCscc()); break; } + case PUBLISH_FINDINGS_TO_CLOUD_DATA_CATALOG: + { + mergePublishFindingsToCloudDataCatalog(other.getPublishFindingsToCloudDataCatalog()); + break; + } case JOB_NOTIFICATION_EMAILS: { mergeJobNotificationEmails(other.getJobNotificationEmails()); @@ -3616,6 +4193,239 @@ public Builder clearPublishSummaryToCscc() { return publishSummaryToCsccBuilder_; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog, + com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog.Builder, + com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalogOrBuilder> + publishFindingsToCloudDataCatalogBuilder_; + /** + * + * + *
+     * Publish findings to Cloud Datahub.
+     * 
+ * + * + * .google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog publish_findings_to_cloud_data_catalog = 5; + * + */ + public boolean hasPublishFindingsToCloudDataCatalog() { + return actionCase_ == 5; + } + /** + * + * + *
+     * Publish findings to Cloud Datahub.
+     * 
+ * + * + * .google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog publish_findings_to_cloud_data_catalog = 5; + * + */ + public com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog + getPublishFindingsToCloudDataCatalog() { + if (publishFindingsToCloudDataCatalogBuilder_ == null) { + if (actionCase_ == 5) { + return (com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog) action_; + } + return com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog + .getDefaultInstance(); + } else { + if (actionCase_ == 5) { + return publishFindingsToCloudDataCatalogBuilder_.getMessage(); + } + return com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Publish findings to Cloud Datahub.
+     * 
+ * + * + * .google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog publish_findings_to_cloud_data_catalog = 5; + * + */ + public Builder setPublishFindingsToCloudDataCatalog( + com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog value) { + if (publishFindingsToCloudDataCatalogBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + action_ = value; + onChanged(); + } else { + publishFindingsToCloudDataCatalogBuilder_.setMessage(value); + } + actionCase_ = 5; + return this; + } + /** + * + * + *
+     * Publish findings to Cloud Datahub.
+     * 
+ * + * + * .google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog publish_findings_to_cloud_data_catalog = 5; + * + */ + public Builder setPublishFindingsToCloudDataCatalog( + com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog.Builder + builderForValue) { + if (publishFindingsToCloudDataCatalogBuilder_ == null) { + action_ = builderForValue.build(); + onChanged(); + } else { + publishFindingsToCloudDataCatalogBuilder_.setMessage(builderForValue.build()); + } + actionCase_ = 5; + return this; + } + /** + * + * + *
+     * Publish findings to Cloud Datahub.
+     * 
+ * + * + * .google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog publish_findings_to_cloud_data_catalog = 5; + * + */ + public Builder mergePublishFindingsToCloudDataCatalog( + com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog value) { + if (publishFindingsToCloudDataCatalogBuilder_ == null) { + if (actionCase_ == 5 + && action_ + != com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog + .getDefaultInstance()) { + action_ = + com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog.newBuilder( + (com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog) action_) + .mergeFrom(value) + .buildPartial(); + } else { + action_ = value; + } + onChanged(); + } else { + if (actionCase_ == 5) { + publishFindingsToCloudDataCatalogBuilder_.mergeFrom(value); + } + publishFindingsToCloudDataCatalogBuilder_.setMessage(value); + } + actionCase_ = 5; + return this; + } + /** + * + * + *
+     * Publish findings to Cloud Datahub.
+     * 
+ * + * + * .google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog publish_findings_to_cloud_data_catalog = 5; + * + */ + public Builder clearPublishFindingsToCloudDataCatalog() { + if (publishFindingsToCloudDataCatalogBuilder_ == null) { + if (actionCase_ == 5) { + actionCase_ = 0; + action_ = null; + onChanged(); + } + } else { + if (actionCase_ == 5) { + actionCase_ = 0; + action_ = null; + } + publishFindingsToCloudDataCatalogBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Publish findings to Cloud Datahub.
+     * 
+ * + * + * .google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog publish_findings_to_cloud_data_catalog = 5; + * + */ + public com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog.Builder + getPublishFindingsToCloudDataCatalogBuilder() { + return getPublishFindingsToCloudDataCatalogFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Publish findings to Cloud Datahub.
+     * 
+ * + * + * .google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog publish_findings_to_cloud_data_catalog = 5; + * + */ + public com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalogOrBuilder + getPublishFindingsToCloudDataCatalogOrBuilder() { + if ((actionCase_ == 5) && (publishFindingsToCloudDataCatalogBuilder_ != null)) { + return publishFindingsToCloudDataCatalogBuilder_.getMessageOrBuilder(); + } else { + if (actionCase_ == 5) { + return (com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog) action_; + } + return com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Publish findings to Cloud Datahub.
+     * 
+ * + * + * .google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog publish_findings_to_cloud_data_catalog = 5; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog, + com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog.Builder, + com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalogOrBuilder> + getPublishFindingsToCloudDataCatalogFieldBuilder() { + if (publishFindingsToCloudDataCatalogBuilder_ == null) { + if (!(actionCase_ == 5)) { + action_ = + com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog + .getDefaultInstance(); + } + publishFindingsToCloudDataCatalogBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog, + com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog.Builder, + com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalogOrBuilder>( + (com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog) action_, + getParentForChildren(), + isClean()); + action_ = null; + } + actionCase_ = 5; + onChanged(); + ; + return publishFindingsToCloudDataCatalogBuilder_; + } + private com.google.protobuf.SingleFieldBuilderV3< com.google.privacy.dlp.v2.Action.JobNotificationEmails, com.google.privacy.dlp.v2.Action.JobNotificationEmails.Builder, diff --git a/google-api-grpc/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ActionOrBuilder.java b/google-api-grpc/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ActionOrBuilder.java index 5896a012ac00..021f4b1993f0 100644 --- a/google-api-grpc/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ActionOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ActionOrBuilder.java @@ -101,6 +101,45 @@ public interface ActionOrBuilder */ com.google.privacy.dlp.v2.Action.PublishSummaryToCsccOrBuilder getPublishSummaryToCsccOrBuilder(); + /** + * + * + *
+   * Publish findings to Cloud Datahub.
+   * 
+ * + * + * .google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog publish_findings_to_cloud_data_catalog = 5; + * + */ + boolean hasPublishFindingsToCloudDataCatalog(); + /** + * + * + *
+   * Publish findings to Cloud Datahub.
+   * 
+ * + * + * .google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog publish_findings_to_cloud_data_catalog = 5; + * + */ + com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog + getPublishFindingsToCloudDataCatalog(); + /** + * + * + *
+   * Publish findings to Cloud Datahub.
+   * 
+ * + * + * .google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog publish_findings_to_cloud_data_catalog = 5; + * + */ + com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalogOrBuilder + getPublishFindingsToCloudDataCatalogOrBuilder(); + /** * * diff --git a/google-api-grpc/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CustomInfoType.java b/google-api-grpc/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CustomInfoType.java index 5c08d6971a2a..1e903e27bdcb 100644 --- a/google-api-grpc/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CustomInfoType.java +++ b/google-api-grpc/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CustomInfoType.java @@ -3727,9 +3727,10 @@ public interface DetectionRuleOrBuilder * * *
-   * Rule for modifying a CustomInfoType to alter behavior under certain
-   * circumstances, depending on the specific details of the rule. Not supported
-   * for the `surrogate_type` custom info type.
+   * Deprecated; use `InspectionRuleSet` instead. Rule for modifying a
+   * `CustomInfoType` to alter behavior under certain circumstances, depending
+   * on the specific details of the rule. Not supported for the `surrogate_type`
+   * custom infoType.
    * 
* * Protobuf type {@code google.privacy.dlp.v2.CustomInfoType.DetectionRule} @@ -7121,9 +7122,10 @@ protected Builder newBuilderForType( * * *
-     * Rule for modifying a CustomInfoType to alter behavior under certain
-     * circumstances, depending on the specific details of the rule. Not supported
-     * for the `surrogate_type` custom info type.
+     * Deprecated; use `InspectionRuleSet` instead. Rule for modifying a
+     * `CustomInfoType` to alter behavior under certain circumstances, depending
+     * on the specific details of the rule. Not supported for the `surrogate_type`
+     * custom infoType.
      * 
* * Protobuf type {@code google.privacy.dlp.v2.CustomInfoType.DetectionRule} diff --git a/google-api-grpc/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DlpProto.java b/google-api-grpc/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DlpProto.java index d75ec73fa73e..5c48bb7f6d41 100644 --- a/google-api-grpc/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DlpProto.java +++ b/google-api-grpc/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DlpProto.java @@ -472,6 +472,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_privacy_dlp_v2_Action_PublishSummaryToCscc_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_privacy_dlp_v2_Action_PublishSummaryToCscc_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_privacy_dlp_v2_Action_PublishFindingsToCloudDataCatalog_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_privacy_dlp_v2_Action_PublishFindingsToCloudDataCatalog_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_privacy_dlp_v2_Action_JobNotificationEmails_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -643,14 +647,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n\037google/privacy/dlp/v2/dlp.proto\022\025googl" + "e.privacy.dlp.v2\032\034google/api/annotations" - + ".proto\032\027google/api/client.proto\032#google/" - + "privacy/dlp/v2/storage.proto\032\036google/pro" - + "tobuf/duration.proto\032\033google/protobuf/em" - + "pty.proto\032 google/protobuf/field_mask.pr" - + "oto\032\037google/protobuf/timestamp.proto\032\027go" - + "ogle/rpc/status.proto\032\026google/type/date." - + "proto\032\033google/type/dayofweek.proto\032\033goog" - + "le/type/timeofday.proto\"G\n\020ExcludeInfoTy" + + ".proto\032#google/privacy/dlp/v2/storage.pr" + + "oto\032\036google/protobuf/duration.proto\032\033goo" + + "gle/protobuf/empty.proto\032 google/protobu" + + "f/field_mask.proto\032\037google/protobuf/time" + + "stamp.proto\032\027google/rpc/status.proto\032\026go" + + "ogle/type/date.proto\032\033google/type/dayofw" + + "eek.proto\032\033google/type/timeofday.proto\032\027" + + "google/api/client.proto\"G\n\020ExcludeInfoTy" + "pes\0223\n\ninfo_types\030\001 \003(\0132\037.google.privacy" + ".dlp.v2.InfoType\"\240\002\n\rExclusionRule\022F\n\ndi" + "ctionary\030\001 \001(\01320.google.privacy.dlp.v2.C" @@ -1163,307 +1167,312 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\n\010schedule\030\001 \001(\0132\037.google.privacy.dlp.v2" + ".ScheduleH\000B\t\n\007trigger\"H\n\006Status\022\026\n\022STAT" + "US_UNSPECIFIED\020\000\022\013\n\007HEALTHY\020\001\022\n\n\006PAUSED\020" - + "\002\022\r\n\tCANCELLED\020\003B\005\n\003job\"\356\003\n\006Action\022C\n\rsa" + + "\002\022\r\n\tCANCELLED\020\003B\005\n\003job\"\206\005\n\006Action\022C\n\rsa" + "ve_findings\030\001 \001(\0132*.google.privacy.dlp.v" + "2.Action.SaveFindingsH\000\022@\n\007pub_sub\030\002 \001(\013" + "2-.google.privacy.dlp.v2.Action.PublishT" + "oPubSubH\000\022U\n\027publish_summary_to_cscc\030\003 \001" + "(\01322.google.privacy.dlp.v2.Action.Publis" - + "hSummaryToCsccH\000\022V\n\027job_notification_ema" - + "ils\030\010 \001(\01323.google.privacy.dlp.v2.Action" - + ".JobNotificationEmailsH\000\032Q\n\014SaveFindings" - + "\022A\n\routput_config\030\001 \001(\0132*.google.privacy" - + ".dlp.v2.OutputStorageConfig\032 \n\017PublishTo" - + "PubSub\022\r\n\005topic\030\001 \001(\t\032\026\n\024PublishSummaryT" - + "oCscc\032\027\n\025JobNotificationEmailsB\010\n\006action" - + "\"\205\001\n\034CreateInspectTemplateRequest\022\016\n\006par" - + "ent\030\001 \001(\t\022@\n\020inspect_template\030\002 \001(\0132&.go" - + "ogle.privacy.dlp.v2.InspectTemplate\022\023\n\013t" - + "emplate_id\030\003 \001(\t\"\237\001\n\034UpdateInspectTempla" - + "teRequest\022\014\n\004name\030\001 \001(\t\022@\n\020inspect_templ" - + "ate\030\002 \001(\0132&.google.privacy.dlp.v2.Inspec" - + "tTemplate\022/\n\013update_mask\030\003 \001(\0132\032.google." - + "protobuf.FieldMask\")\n\031GetInspectTemplate" - + "Request\022\014\n\004name\030\001 \001(\t\"f\n\033ListInspectTemp" - + "latesRequest\022\016\n\006parent\030\001 \001(\t\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\"z\n\034ListInspectTemplatesResponse\022A\n" - + "\021inspect_templates\030\001 \003(\0132&.google.privac" - + "y.dlp.v2.InspectTemplate\022\027\n\017next_page_to" - + "ken\030\002 \001(\t\",\n\034DeleteInspectTemplateReques" - + "t\022\014\n\004name\030\001 \001(\t\"u\n\027CreateJobTriggerReque" - + "st\022\016\n\006parent\030\001 \001(\t\0226\n\013job_trigger\030\002 \001(\0132" - + "!.google.privacy.dlp.v2.JobTrigger\022\022\n\ntr" - + "igger_id\030\003 \001(\t\")\n\031ActivateJobTriggerRequ" - + "est\022\014\n\004name\030\001 \001(\t\"\220\001\n\027UpdateJobTriggerRe" - + "quest\022\014\n\004name\030\001 \001(\t\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\"$\n\024GetJobTriggerRequest\022\014\n\004name\030\001 \001" - + "(\t\"\276\001\n\023CreateDlpJobRequest\022\016\n\006parent\030\001 \001" - + "(\t\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.RiskAnalysi" - + "sJobConfigH\000\022\016\n\006job_id\030\004 \001(\tB\005\n\003job\"q\n\026L" - + "istJobTriggersRequest\022\016\n\006parent\030\001 \001(\t\022\022\n" - + "\npage_token\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005\022\020\n\010" - + "order_by\030\004 \001(\t\022\016\n\006filter\030\005 \001(\t\"k\n\027ListJo" - + "bTriggersResponse\0227\n\014job_triggers\030\001 \003(\0132" - + "!.google.privacy.dlp.v2.JobTrigger\022\027\n\017ne" - + "xt_page_token\030\002 \001(\t\"\'\n\027DeleteJobTriggerR" - + "equest\022\014\n\004name\030\001 \001(\t\"\335\001\n\020InspectJobConfi" - + "g\022<\n\016storage_config\030\001 \001(\0132$.google.priva" - + "cy.dlp.v2.StorageConfig\022<\n\016inspect_confi" - + "g\030\002 \001(\0132$.google.privacy.dlp.v2.InspectC" - + "onfig\022\035\n\025inspect_template_name\030\003 \001(\t\022.\n\007" - + "actions\030\004 \003(\0132\035.google.privacy.dlp.v2.Ac" - + "tion\"\336\004\n\006DlpJob\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(\0162&.google.privacy.dlp.v2.Dl" - + "pJob.JobState\022K\n\014risk_details\030\004 \001(\01323.go" - + "ogle.privacy.dlp.v2.AnalyzeDataSourceRis" - + "kDetailsH\000\022J\n\017inspect_details\030\005 \001(\0132/.go" - + "ogle.privacy.dlp.v2.InspectDataSourceDet" - + "ailsH\000\022/\n\013create_time\030\006 \001(\0132\032.google.pro" - + "tobuf.Timestamp\022.\n\nstart_time\030\007 \001(\0132\032.go" - + "ogle.protobuf.Timestamp\022,\n\010end_time\030\010 \001(" - + "\0132\032.google.protobuf.Timestamp\022\030\n\020job_tri" - + "gger_name\030\n \001(\t\022,\n\006errors\030\013 \003(\0132\034.google" - + ".privacy.dlp.v2.Error\"c\n\010JobState\022\031\n\025JOB" - + "_STATE_UNSPECIFIED\020\000\022\013\n\007PENDING\020\001\022\013\n\007RUN" - + "NING\020\002\022\010\n\004DONE\020\003\022\014\n\010CANCELED\020\004\022\n\n\006FAILED" - + "\020\005B\t\n\007details\" \n\020GetDlpJobRequest\022\014\n\004nam" - + "e\030\001 \001(\t\"\236\001\n\022ListDlpJobsRequest\022\016\n\006parent" - + "\030\004 \001(\t\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!.go" - + "ogle.privacy.dlp.v2.DlpJobType\022\020\n\010order_" - + "by\030\006 \001(\t\"[\n\023ListDlpJobsResponse\022+\n\004jobs\030" - + "\001 \003(\0132\035.google.privacy.dlp.v2.DlpJob\022\027\n\017" - + "next_page_token\030\002 \001(\t\"#\n\023CancelDlpJobReq" - + "uest\022\014\n\004name\030\001 \001(\t\"#\n\023DeleteDlpJobReques" - + "t\022\014\n\004name\030\001 \001(\t\"\216\001\n\037CreateDeidentifyTemp" - + "lateRequest\022\016\n\006parent\030\001 \001(\t\022F\n\023deidentif" - + "y_template\030\002 \001(\0132).google.privacy.dlp.v2" - + ".DeidentifyTemplate\022\023\n\013template_id\030\003 \001(\t" - + "\"\250\001\n\037UpdateDeidentifyTemplateRequest\022\014\n\004" - + "name\030\001 \001(\t\022F\n\023deidentify_template\030\002 \001(\0132" - + ").google.privacy.dlp.v2.DeidentifyTempla" - + "te\022/\n\013update_mask\030\003 \001(\0132\032.google.protobu" - + "f.FieldMask\",\n\034GetDeidentifyTemplateRequ" - + "est\022\014\n\004name\030\001 \001(\t\"i\n\036ListDeidentifyTempl" - + "atesRequest\022\016\n\006parent\030\001 \001(\t\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\"\203\001\n\037ListDeidentifyTemplatesResponse" - + "\022G\n\024deidentify_templates\030\001 \003(\0132).google." - + "privacy.dlp.v2.DeidentifyTemplate\022\027\n\017nex" - + "t_page_token\030\002 \001(\t\"/\n\037DeleteDeidentifyTe" - + "mplateRequest\022\014\n\004name\030\001 \001(\t\"\364\001\n\033LargeCus" - + "tomDictionaryConfig\022<\n\013output_path\030\001 \001(\013" - + "2\'.google.privacy.dlp.v2.CloudStoragePat" - + "h\022L\n\026cloud_storage_file_set\030\002 \001(\0132*.goog" - + "le.privacy.dlp.v2.CloudStorageFileSetH\000\022" - + "?\n\017big_query_field\030\003 \001(\0132$.google.privac" - + "y.dlp.v2.BigQueryFieldH\000B\010\n\006source\"8\n\032La" - + "rgeCustomDictionaryStats\022\032\n\022approx_num_p" - + "hrases\030\001 \001(\003\"\240\001\n\024StoredInfoTypeConfig\022\024\n" - + "\014display_name\030\001 \001(\t\022\023\n\013description\030\002 \001(\t" - + "\022U\n\027large_custom_dictionary\030\003 \001(\01322.goog" - + "le.privacy.dlp.v2.LargeCustomDictionaryC" - + "onfigH\000B\006\n\004type\"s\n\023StoredInfoTypeStats\022T" - + "\n\027large_custom_dictionary\030\001 \001(\01321.google" - + ".privacy.dlp.v2.LargeCustomDictionarySta" - + "tsH\000B\006\n\004type\"\251\002\n\025StoredInfoTypeVersion\022;" - + "\n\006config\030\001 \001(\0132+.google.privacy.dlp.v2.S" - + "toredInfoTypeConfig\022/\n\013create_time\030\002 \001(\013" - + "2\032.google.protobuf.Timestamp\0229\n\005state\030\003 " - + "\001(\0162*.google.privacy.dlp.v2.StoredInfoTy" - + "peState\022,\n\006errors\030\004 \003(\0132\034.google.privacy" - + ".dlp.v2.Error\0229\n\005stats\030\005 \001(\0132*.google.pr" - + "ivacy.dlp.v2.StoredInfoTypeStats\"\255\001\n\016Sto" - + "redInfoType\022\014\n\004name\030\001 \001(\t\022E\n\017current_ver" - + "sion\030\002 \001(\0132,.google.privacy.dlp.v2.Store" - + "dInfoTypeVersion\022F\n\020pending_versions\030\003 \003" + + "hSummaryToCsccH\000\022q\n&publish_findings_to_" + + "cloud_data_catalog\030\005 \001(\0132?.google.privac" + + "y.dlp.v2.Action.PublishFindingsToCloudDa" + + "taCatalogH\000\022V\n\027job_notification_emails\030\010" + + " \001(\01323.google.privacy.dlp.v2.Action.JobN" + + "otificationEmailsH\000\032Q\n\014SaveFindings\022A\n\ro" + + "utput_config\030\001 \001(\0132*.google.privacy.dlp." + + "v2.OutputStorageConfig\032 \n\017PublishToPubSu" + + "b\022\r\n\005topic\030\001 \001(\t\032\026\n\024PublishSummaryToCscc" + + "\032#\n!PublishFindingsToCloudDataCatalog\032\027\n" + + "\025JobNotificationEmailsB\010\n\006action\"\205\001\n\034Cre" + + "ateInspectTemplateRequest\022\016\n\006parent\030\001 \001(" + + "\t\022@\n\020inspect_template\030\002 \001(\0132&.google.pri" + + "vacy.dlp.v2.InspectTemplate\022\023\n\013template_" + + "id\030\003 \001(\t\"\237\001\n\034UpdateInspectTemplateReques" + + "t\022\014\n\004name\030\001 \001(\t\022@\n\020inspect_template\030\002 \001(" + + "\0132&.google.privacy.dlp.v2.InspectTemplat" + + "e\022/\n\013update_mask\030\003 \001(\0132\032.google.protobuf" + + ".FieldMask\")\n\031GetInspectTemplateRequest\022" + + "\014\n\004name\030\001 \001(\t\"f\n\033ListInspectTemplatesReq" + + "uest\022\016\n\006parent\030\001 \001(\t\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\"z\n" + + "\034ListInspectTemplatesResponse\022A\n\021inspect" + + "_templates\030\001 \003(\0132&.google.privacy.dlp.v2" + + ".InspectTemplate\022\027\n\017next_page_token\030\002 \001(" + + "\t\",\n\034DeleteInspectTemplateRequest\022\014\n\004nam" + + "e\030\001 \001(\t\"u\n\027CreateJobTriggerRequest\022\016\n\006pa" + + "rent\030\001 \001(\t\0226\n\013job_trigger\030\002 \001(\0132!.google" + + ".privacy.dlp.v2.JobTrigger\022\022\n\ntrigger_id" + + "\030\003 \001(\t\")\n\031ActivateJobTriggerRequest\022\014\n\004n" + + "ame\030\001 \001(\t\"\220\001\n\027UpdateJobTriggerRequest\022\014\n" + + "\004name\030\001 \001(\t\0226\n\013job_trigger\030\002 \001(\0132!.googl" + + "e.privacy.dlp.v2.JobTrigger\022/\n\013update_ma" + + "sk\030\003 \001(\0132\032.google.protobuf.FieldMask\"$\n\024" + + "GetJobTriggerRequest\022\014\n\004name\030\001 \001(\t\"\276\001\n\023C" + + "reateDlpJobRequest\022\016\n\006parent\030\001 \001(\t\022>\n\013in" + + "spect_job\030\002 \001(\0132\'.google.privacy.dlp.v2." + + "InspectJobConfigH\000\022@\n\010risk_job\030\003 \001(\0132,.g" + + "oogle.privacy.dlp.v2.RiskAnalysisJobConf" + + "igH\000\022\016\n\006job_id\030\004 \001(\tB\005\n\003job\"q\n\026ListJobTr" + + "iggersRequest\022\016\n\006parent\030\001 \001(\t\022\022\n\npage_to" + + "ken\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\"k\n\027ListJobTrigger" + + "sResponse\0227\n\014job_triggers\030\001 \003(\0132!.google" + + ".privacy.dlp.v2.JobTrigger\022\027\n\017next_page_" + + "token\030\002 \001(\t\"\'\n\027DeleteJobTriggerRequest\022\014" + + "\n\004name\030\001 \001(\t\"\335\001\n\020InspectJobConfig\022<\n\016sto" + + "rage_config\030\001 \001(\0132$.google.privacy.dlp.v" + + "2.StorageConfig\022<\n\016inspect_config\030\002 \001(\0132" + + "$.google.privacy.dlp.v2.InspectConfig\022\035\n" + + "\025inspect_template_name\030\003 \001(\t\022.\n\007actions\030" + + "\004 \003(\0132\035.google.privacy.dlp.v2.Action\"\336\004\n" + + "\006DlpJob\022\014\n\004name\030\001 \001(\t\022/\n\004type\030\002 \001(\0162!.go" + + "ogle.privacy.dlp.v2.DlpJobType\0225\n\005state\030" + + "\003 \001(\0162&.google.privacy.dlp.v2.DlpJob.Job" + + "State\022K\n\014risk_details\030\004 \001(\01323.google.pri" + + "vacy.dlp.v2.AnalyzeDataSourceRiskDetails" + + "H\000\022J\n\017inspect_details\030\005 \001(\0132/.google.pri" + + "vacy.dlp.v2.InspectDataSourceDetailsH\000\022/" + + "\n\013create_time\030\006 \001(\0132\032.google.protobuf.Ti" + + "mestamp\022.\n\nstart_time\030\007 \001(\0132\032.google.pro" + + "tobuf.Timestamp\022,\n\010end_time\030\010 \001(\0132\032.goog" + + "le.protobuf.Timestamp\022\030\n\020job_trigger_nam" + + "e\030\n \001(\t\022,\n\006errors\030\013 \003(\0132\034.google.privacy" + + ".dlp.v2.Error\"c\n\010JobState\022\031\n\025JOB_STATE_U" + + "NSPECIFIED\020\000\022\013\n\007PENDING\020\001\022\013\n\007RUNNING\020\002\022\010" + + "\n\004DONE\020\003\022\014\n\010CANCELED\020\004\022\n\n\006FAILED\020\005B\t\n\007de" + + "tails\" \n\020GetDlpJobRequest\022\014\n\004name\030\001 \001(\t\"" + + "\236\001\n\022ListDlpJobsRequest\022\016\n\006parent\030\004 \001(\t\022\016" + + "\n\006filter\030\001 \001(\t\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npag" + + "e_token\030\003 \001(\t\022/\n\004type\030\005 \001(\0162!.google.pri" + + "vacy.dlp.v2.DlpJobType\022\020\n\010order_by\030\006 \001(\t" + + "\"[\n\023ListDlpJobsResponse\022+\n\004jobs\030\001 \003(\0132\035." + + "google.privacy.dlp.v2.DlpJob\022\027\n\017next_pag" + + "e_token\030\002 \001(\t\"#\n\023CancelDlpJobRequest\022\014\n\004" + + "name\030\001 \001(\t\"#\n\023DeleteDlpJobRequest\022\014\n\004nam" + + "e\030\001 \001(\t\"\216\001\n\037CreateDeidentifyTemplateRequ" + + "est\022\016\n\006parent\030\001 \001(\t\022F\n\023deidentify_templa" + + "te\030\002 \001(\0132).google.privacy.dlp.v2.Deident" + + "ifyTemplate\022\023\n\013template_id\030\003 \001(\t\"\250\001\n\037Upd" + + "ateDeidentifyTemplateRequest\022\014\n\004name\030\001 \001" + + "(\t\022F\n\023deidentify_template\030\002 \001(\0132).google" + + ".privacy.dlp.v2.DeidentifyTemplate\022/\n\013up" + + "date_mask\030\003 \001(\0132\032.google.protobuf.FieldM" + + "ask\",\n\034GetDeidentifyTemplateRequest\022\014\n\004n" + + "ame\030\001 \001(\t\"i\n\036ListDeidentifyTemplatesRequ" + + "est\022\016\n\006parent\030\001 \001(\t\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\"\203\001\n" + + "\037ListDeidentifyTemplatesResponse\022G\n\024deid" + + "entify_templates\030\001 \003(\0132).google.privacy." + + "dlp.v2.DeidentifyTemplate\022\027\n\017next_page_t" + + "oken\030\002 \001(\t\"/\n\037DeleteDeidentifyTemplateRe" + + "quest\022\014\n\004name\030\001 \001(\t\"\364\001\n\033LargeCustomDicti" + + "onaryConfig\022<\n\013output_path\030\001 \001(\0132\'.googl" + + "e.privacy.dlp.v2.CloudStoragePath\022L\n\026clo" + + "ud_storage_file_set\030\002 \001(\0132*.google.priva" + + "cy.dlp.v2.CloudStorageFileSetH\000\022?\n\017big_q" + + "uery_field\030\003 \001(\0132$.google.privacy.dlp.v2" + + ".BigQueryFieldH\000B\010\n\006source\"8\n\032LargeCusto" + + "mDictionaryStats\022\032\n\022approx_num_phrases\030\001" + + " \001(\003\"\240\001\n\024StoredInfoTypeConfig\022\024\n\014display" + + "_name\030\001 \001(\t\022\023\n\013description\030\002 \001(\t\022U\n\027larg" + + "e_custom_dictionary\030\003 \001(\01322.google.priva" + + "cy.dlp.v2.LargeCustomDictionaryConfigH\000B" + + "\006\n\004type\"s\n\023StoredInfoTypeStats\022T\n\027large_" + + "custom_dictionary\030\001 \001(\01321.google.privacy" + + ".dlp.v2.LargeCustomDictionaryStatsH\000B\006\n\004" + + "type\"\251\002\n\025StoredInfoTypeVersion\022;\n\006config" + + "\030\001 \001(\0132+.google.privacy.dlp.v2.StoredInf" + + "oTypeConfig\022/\n\013create_time\030\002 \001(\0132\032.googl" + + "e.protobuf.Timestamp\0229\n\005state\030\003 \001(\0162*.go" + + "ogle.privacy.dlp.v2.StoredInfoTypeState\022" + + ",\n\006errors\030\004 \003(\0132\034.google.privacy.dlp.v2." + + "Error\0229\n\005stats\030\005 \001(\0132*.google.privacy.dl" + + "p.v2.StoredInfoTypeStats\"\255\001\n\016StoredInfoT" + + "ype\022\014\n\004name\030\001 \001(\t\022E\n\017current_version\030\002 \001" + "(\0132,.google.privacy.dlp.v2.StoredInfoTyp" - + "eVersion\"\207\001\n\033CreateStoredInfoTypeRequest" - + "\022\016\n\006parent\030\001 \001(\t\022;\n\006config\030\002 \001(\0132+.googl" - + "e.privacy.dlp.v2.StoredInfoTypeConfig\022\033\n" - + "\023stored_info_type_id\030\003 \001(\t\"\231\001\n\033UpdateSto" - + "redInfoTypeRequest\022\014\n\004name\030\001 \001(\t\022;\n\006conf" - + "ig\030\002 \001(\0132+.google.privacy.dlp.v2.StoredI" - + "nfoTypeConfig\022/\n\013update_mask\030\003 \001(\0132\032.goo" - + "gle.protobuf.FieldMask\"(\n\030GetStoredInfoT" - + "ypeRequest\022\014\n\004name\030\001 \001(\t\"e\n\032ListStoredIn" - + "foTypesRequest\022\016\n\006parent\030\001 \001(\t\022\022\n\npage_t" - + "oken\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005\022\020\n\010order_b" - + "y\030\004 \001(\t\"x\n\033ListStoredInfoTypesResponse\022@" - + "\n\021stored_info_types\030\001 \003(\0132%.google.priva" - + "cy.dlp.v2.StoredInfoType\022\027\n\017next_page_to" - + "ken\030\002 \001(\t\"+\n\033DeleteStoredInfoTypeRequest" - + "\022\014\n\004name\030\001 \001(\t*M\n\rContentOption\022\027\n\023CONTE" - + "NT_UNSPECIFIED\020\000\022\020\n\014CONTENT_TEXT\020\001\022\021\n\rCO" - + "NTENT_IMAGE\020\002*\215\001\n\014MatchingType\022\035\n\031MATCHI" - + "NG_TYPE_UNSPECIFIED\020\000\022\034\n\030MATCHING_TYPE_F" - + "ULL_MATCH\020\001\022\037\n\033MATCHING_TYPE_PARTIAL_MAT" - + "CH\020\002\022\037\n\033MATCHING_TYPE_INVERSE_MATCH\020\003*P\n" - + "\023InfoTypeSupportedBy\022\031\n\025ENUM_TYPE_UNSPEC" - + "IFIED\020\000\022\013\n\007INSPECT\020\001\022\021\n\rRISK_ANALYSIS\020\002*" - + "\273\001\n\022RelationalOperator\022#\n\037RELATIONAL_OPE" - + "RATOR_UNSPECIFIED\020\000\022\014\n\010EQUAL_TO\020\001\022\020\n\014NOT" - + "_EQUAL_TO\020\002\022\020\n\014GREATER_THAN\020\003\022\r\n\tLESS_TH" - + "AN\020\004\022\032\n\026GREATER_THAN_OR_EQUALS\020\005\022\027\n\023LESS" - + "_THAN_OR_EQUALS\020\006\022\n\n\006EXISTS\020\007*R\n\nDlpJobT" - + "ype\022\034\n\030DLP_JOB_TYPE_UNSPECIFIED\020\000\022\017\n\013INS" - + "PECT_JOB\020\001\022\025\n\021RISK_ANALYSIS_JOB\020\002*n\n\023Sto" - + "redInfoTypeState\022&\n\"STORED_INFO_TYPE_STA" - + "TE_UNSPECIFIED\020\000\022\013\n\007PENDING\020\001\022\t\n\005READY\020\002" - + "\022\n\n\006FAILED\020\003\022\013\n\007INVALID\020\0042\341,\n\nDlpService" - + "\022\241\001\n\016InspectContent\022,.google.privacy.dlp" - + ".v2.InspectContentRequest\032-.google.priva" - + "cy.dlp.v2.InspectContentResponse\"2\202\323\344\223\002," - + "\"\'/v2/{parent=projects/*}/content:inspec" - + "t:\001*\022\225\001\n\013RedactImage\022).google.privacy.dl" - + "p.v2.RedactImageRequest\032*.google.privacy" - + ".dlp.v2.RedactImageResponse\"/\202\323\344\223\002)\"$/v2" - + "/{parent=projects/*}/image:redact:\001*\022\255\001\n" - + "\021DeidentifyContent\022/.google.privacy.dlp." - + "v2.DeidentifyContentRequest\0320.google.pri" - + "vacy.dlp.v2.DeidentifyContentResponse\"5\202" - + "\323\344\223\002/\"*/v2/{parent=projects/*}/content:d" - + "eidentify:\001*\022\255\001\n\021ReidentifyContent\022/.goo" - + "gle.privacy.dlp.v2.ReidentifyContentRequ" - + "est\0320.google.privacy.dlp.v2.ReidentifyCo" - + "ntentResponse\"5\202\323\344\223\002/\"*/v2/{parent=proje" - + "cts/*}/content:reidentify:\001*\022\201\001\n\rListInf" - + "oTypes\022+.google.privacy.dlp.v2.ListInfoT" - + "ypesRequest\032,.google.privacy.dlp.v2.List" - + "InfoTypesResponse\"\025\202\323\344\223\002\017\022\r/v2/infoTypes" - + "\022\335\001\n\025CreateInspectTemplate\0223.google.priv" - + "acy.dlp.v2.CreateInspectTemplateRequest\032" - + "&.google.privacy.dlp.v2.InspectTemplate\"" - + "g\202\323\344\223\002a\"-/v2/{parent=organizations/*}/in" - + "spectTemplates:\001*Z-\"(/v2/{parent=project" - + "s/*}/inspectTemplates:\001*\022\335\001\n\025UpdateInspe" - + "ctTemplate\0223.google.privacy.dlp.v2.Updat" - + "eInspectTemplateRequest\032&.google.privacy" - + ".dlp.v2.InspectTemplate\"g\202\323\344\223\002a2-/v2/{na" - + "me=organizations/*/inspectTemplates/*}:\001" - + "*Z-2(/v2/{name=projects/*/inspectTemplat" - + "es/*}:\001*\022\321\001\n\022GetInspectTemplate\0220.google" - + ".privacy.dlp.v2.GetInspectTemplateReques" - + "t\032&.google.privacy.dlp.v2.InspectTemplat" - + "e\"a\202\323\344\223\002[\022-/v2/{name=organizations/*/ins" - + "pectTemplates/*}Z*\022(/v2/{name=projects/*" - + "/inspectTemplates/*}\022\342\001\n\024ListInspectTemp" - + "lates\0222.google.privacy.dlp.v2.ListInspec" - + "tTemplatesRequest\0323.google.privacy.dlp.v" - + "2.ListInspectTemplatesResponse\"a\202\323\344\223\002[\022-" - + "/v2/{parent=organizations/*}/inspectTemp" - + "latesZ*\022(/v2/{parent=projects/*}/inspect" - + "Templates\022\307\001\n\025DeleteInspectTemplate\0223.go" - + "ogle.privacy.dlp.v2.DeleteInspectTemplat" - + "eRequest\032\026.google.protobuf.Empty\"a\202\323\344\223\002[" - + "*-/v2/{name=organizations/*/inspectTempl" - + "ates/*}Z**(/v2/{name=projects/*/inspectT" - + "emplates/*}\022\354\001\n\030CreateDeidentifyTemplate" - + "\0226.google.privacy.dlp.v2.CreateDeidentif" - + "yTemplateRequest\032).google.privacy.dlp.v2" - + ".DeidentifyTemplate\"m\202\323\344\223\002g\"0/v2/{parent" - + "=organizations/*}/deidentifyTemplates:\001*" - + "Z0\"+/v2/{parent=projects/*}/deidentifyTe" - + "mplates:\001*\022\354\001\n\030UpdateDeidentifyTemplate\022" - + "6.google.privacy.dlp.v2.UpdateDeidentify" - + "TemplateRequest\032).google.privacy.dlp.v2." - + "DeidentifyTemplate\"m\202\323\344\223\002g20/v2/{name=or" - + "ganizations/*/deidentifyTemplates/*}:\001*Z" - + "02+/v2/{name=projects/*/deidentifyTempla" - + "tes/*}:\001*\022\340\001\n\025GetDeidentifyTemplate\0223.go" - + "ogle.privacy.dlp.v2.GetDeidentifyTemplat" + + "eVersion\022F\n\020pending_versions\030\003 \003(\0132,.goo" + + "gle.privacy.dlp.v2.StoredInfoTypeVersion" + + "\"\207\001\n\033CreateStoredInfoTypeRequest\022\016\n\006pare" + + "nt\030\001 \001(\t\022;\n\006config\030\002 \001(\0132+.google.privac" + + "y.dlp.v2.StoredInfoTypeConfig\022\033\n\023stored_" + + "info_type_id\030\003 \001(\t\"\231\001\n\033UpdateStoredInfoT" + + "ypeRequest\022\014\n\004name\030\001 \001(\t\022;\n\006config\030\002 \001(\013" + + "2+.google.privacy.dlp.v2.StoredInfoTypeC" + + "onfig\022/\n\013update_mask\030\003 \001(\0132\032.google.prot" + + "obuf.FieldMask\"(\n\030GetStoredInfoTypeReque" + + "st\022\014\n\004name\030\001 \001(\t\"e\n\032ListStoredInfoTypesR" + + "equest\022\016\n\006parent\030\001 \001(\t\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\"" + + "x\n\033ListStoredInfoTypesResponse\022@\n\021stored" + + "_info_types\030\001 \003(\0132%.google.privacy.dlp.v" + + "2.StoredInfoType\022\027\n\017next_page_token\030\002 \001(" + + "\t\"+\n\033DeleteStoredInfoTypeRequest\022\014\n\004name" + + "\030\001 \001(\t*M\n\rContentOption\022\027\n\023CONTENT_UNSPE" + + "CIFIED\020\000\022\020\n\014CONTENT_TEXT\020\001\022\021\n\rCONTENT_IM" + + "AGE\020\002*\215\001\n\014MatchingType\022\035\n\031MATCHING_TYPE_" + + "UNSPECIFIED\020\000\022\034\n\030MATCHING_TYPE_FULL_MATC" + + "H\020\001\022\037\n\033MATCHING_TYPE_PARTIAL_MATCH\020\002\022\037\n\033" + + "MATCHING_TYPE_INVERSE_MATCH\020\003*P\n\023InfoTyp" + + "eSupportedBy\022\031\n\025ENUM_TYPE_UNSPECIFIED\020\000\022" + + "\013\n\007INSPECT\020\001\022\021\n\rRISK_ANALYSIS\020\002*\273\001\n\022Rela" + + "tionalOperator\022#\n\037RELATIONAL_OPERATOR_UN" + + "SPECIFIED\020\000\022\014\n\010EQUAL_TO\020\001\022\020\n\014NOT_EQUAL_T" + + "O\020\002\022\020\n\014GREATER_THAN\020\003\022\r\n\tLESS_THAN\020\004\022\032\n\026" + + "GREATER_THAN_OR_EQUALS\020\005\022\027\n\023LESS_THAN_OR" + + "_EQUALS\020\006\022\n\n\006EXISTS\020\007*R\n\nDlpJobType\022\034\n\030D" + + "LP_JOB_TYPE_UNSPECIFIED\020\000\022\017\n\013INSPECT_JOB" + + "\020\001\022\025\n\021RISK_ANALYSIS_JOB\020\002*n\n\023StoredInfoT" + + "ypeState\022&\n\"STORED_INFO_TYPE_STATE_UNSPE" + + "CIFIED\020\000\022\013\n\007PENDING\020\001\022\t\n\005READY\020\002\022\n\n\006FAIL" + + "ED\020\003\022\013\n\007INVALID\020\0042\222-\n\nDlpService\022\241\001\n\016Ins" + + "pectContent\022,.google.privacy.dlp.v2.Insp" + + "ectContentRequest\032-.google.privacy.dlp.v" + + "2.InspectContentResponse\"2\202\323\344\223\002,\"\'/v2/{p" + + "arent=projects/*}/content:inspect:\001*\022\225\001\n" + + "\013RedactImage\022).google.privacy.dlp.v2.Red" + + "actImageRequest\032*.google.privacy.dlp.v2." + + "RedactImageResponse\"/\202\323\344\223\002)\"$/v2/{parent" + + "=projects/*}/image:redact:\001*\022\255\001\n\021Deident" + + "ifyContent\022/.google.privacy.dlp.v2.Deide" + + "ntifyContentRequest\0320.google.privacy.dlp" + + ".v2.DeidentifyContentResponse\"5\202\323\344\223\002/\"*/" + + "v2/{parent=projects/*}/content:deidentif" + + "y:\001*\022\255\001\n\021ReidentifyContent\022/.google.priv" + + "acy.dlp.v2.ReidentifyContentRequest\0320.go" + + "ogle.privacy.dlp.v2.ReidentifyContentRes" + + "ponse\"5\202\323\344\223\002/\"*/v2/{parent=projects/*}/c" + + "ontent:reidentify:\001*\022\201\001\n\rListInfoTypes\022+" + + ".google.privacy.dlp.v2.ListInfoTypesRequ" + + "est\032,.google.privacy.dlp.v2.ListInfoType" + + "sResponse\"\025\202\323\344\223\002\017\022\r/v2/infoTypes\022\335\001\n\025Cre" + + "ateInspectTemplate\0223.google.privacy.dlp." + + "v2.CreateInspectTemplateRequest\032&.google" + + ".privacy.dlp.v2.InspectTemplate\"g\202\323\344\223\002a\"" + + "-/v2/{parent=organizations/*}/inspectTem" + + "plates:\001*Z-\"(/v2/{parent=projects/*}/ins" + + "pectTemplates:\001*\022\335\001\n\025UpdateInspectTempla" + + "te\0223.google.privacy.dlp.v2.UpdateInspect" + + "TemplateRequest\032&.google.privacy.dlp.v2." + + "InspectTemplate\"g\202\323\344\223\002a2-/v2/{name=organ" + + "izations/*/inspectTemplates/*}:\001*Z-2(/v2" + + "/{name=projects/*/inspectTemplates/*}:\001*" + + "\022\321\001\n\022GetInspectTemplate\0220.google.privacy" + + ".dlp.v2.GetInspectTemplateRequest\032&.goog" + + "le.privacy.dlp.v2.InspectTemplate\"a\202\323\344\223\002" + + "[\022-/v2/{name=organizations/*/inspectTemp" + + "lates/*}Z*\022(/v2/{name=projects/*/inspect" + + "Templates/*}\022\342\001\n\024ListInspectTemplates\0222." + + "google.privacy.dlp.v2.ListInspectTemplat" + + "esRequest\0323.google.privacy.dlp.v2.ListIn" + + "spectTemplatesResponse\"a\202\323\344\223\002[\022-/v2/{par" + + "ent=organizations/*}/inspectTemplatesZ*\022" + + "(/v2/{parent=projects/*}/inspectTemplate" + + "s\022\307\001\n\025DeleteInspectTemplate\0223.google.pri" + + "vacy.dlp.v2.DeleteInspectTemplateRequest" + + "\032\026.google.protobuf.Empty\"a\202\323\344\223\002[*-/v2/{n" + + "ame=organizations/*/inspectTemplates/*}Z" + + "**(/v2/{name=projects/*/inspectTemplates" + + "/*}\022\354\001\n\030CreateDeidentifyTemplate\0226.googl" + + "e.privacy.dlp.v2.CreateDeidentifyTemplat" + "eRequest\032).google.privacy.dlp.v2.Deident" - + "ifyTemplate\"g\202\323\344\223\002a\0220/v2/{name=organizat" - + "ions/*/deidentifyTemplates/*}Z-\022+/v2/{na" - + "me=projects/*/deidentifyTemplates/*}\022\361\001\n" - + "\027ListDeidentifyTemplates\0225.google.privac" - + "y.dlp.v2.ListDeidentifyTemplatesRequest\032" - + "6.google.privacy.dlp.v2.ListDeidentifyTe" - + "mplatesResponse\"g\202\323\344\223\002a\0220/v2/{parent=org" - + "anizations/*}/deidentifyTemplatesZ-\022+/v2" - + "/{parent=projects/*}/deidentifyTemplates" - + "\022\323\001\n\030DeleteDeidentifyTemplate\0226.google.p" - + "rivacy.dlp.v2.DeleteDeidentifyTemplateRe" - + "quest\032\026.google.protobuf.Empty\"g\202\323\344\223\002a*0/" - + "v2/{name=organizations/*/deidentifyTempl" - + "ates/*}Z-*+/v2/{name=projects/*/deidenti" - + "fyTemplates/*}\022\225\001\n\020CreateJobTrigger\022..go" - + "ogle.privacy.dlp.v2.CreateJobTriggerRequ" - + "est\032!.google.privacy.dlp.v2.JobTrigger\"." - + "\202\323\344\223\002(\"#/v2/{parent=projects/*}/jobTrigg" - + "ers:\001*\022\225\001\n\020UpdateJobTrigger\022..google.pri" - + "vacy.dlp.v2.UpdateJobTriggerRequest\032!.go" - + "ogle.privacy.dlp.v2.JobTrigger\".\202\323\344\223\002(2#" - + "/v2/{name=projects/*/jobTriggers/*}:\001*\022\214" - + "\001\n\rGetJobTrigger\022+.google.privacy.dlp.v2" - + ".GetJobTriggerRequest\032!.google.privacy.d" - + "lp.v2.JobTrigger\"+\202\323\344\223\002%\022#/v2/{name=proj" - + "ects/*/jobTriggers/*}\022\235\001\n\017ListJobTrigger" - + "s\022-.google.privacy.dlp.v2.ListJobTrigger" - + "sRequest\032..google.privacy.dlp.v2.ListJob" - + "TriggersResponse\"+\202\323\344\223\002%\022#/v2/{parent=pr" - + "ojects/*}/jobTriggers\022\207\001\n\020DeleteJobTrigg" - + "er\022..google.privacy.dlp.v2.DeleteJobTrig" - + "gerRequest\032\026.google.protobuf.Empty\"+\202\323\344\223" - + "\002%*#/v2/{name=projects/*/jobTriggers/*}\022" - + "\236\001\n\022ActivateJobTrigger\0220.google.privacy." - + "dlp.v2.ActivateJobTriggerRequest\032\035.googl" - + "e.privacy.dlp.v2.DlpJob\"7\202\323\344\223\0021\",/v2/{na" - + "me=projects/*/jobTriggers/*}:activate:\001*" - + "\022\205\001\n\014CreateDlpJob\022*.google.privacy.dlp.v" - + "2.CreateDlpJobRequest\032\035.google.privacy.d" - + "lp.v2.DlpJob\"*\202\323\344\223\002$\"\037/v2/{parent=projec" - + "ts/*}/dlpJobs:\001*\022\215\001\n\013ListDlpJobs\022).googl" - + "e.privacy.dlp.v2.ListDlpJobsRequest\032*.go" - + "ogle.privacy.dlp.v2.ListDlpJobsResponse\"" - + "\'\202\323\344\223\002!\022\037/v2/{parent=projects/*}/dlpJobs" - + "\022|\n\tGetDlpJob\022\'.google.privacy.dlp.v2.Ge" - + "tDlpJobRequest\032\035.google.privacy.dlp.v2.D" - + "lpJob\"\'\202\323\344\223\002!\022\037/v2/{name=projects/*/dlpJ" - + "obs/*}\022{\n\014DeleteDlpJob\022*.google.privacy." - + "dlp.v2.DeleteDlpJobRequest\032\026.google.prot" - + "obuf.Empty\"\'\202\323\344\223\002!*\037/v2/{name=projects/*" - + "/dlpJobs/*}\022\205\001\n\014CancelDlpJob\022*.google.pr" - + "ivacy.dlp.v2.CancelDlpJobRequest\032\026.googl" - + "e.protobuf.Empty\"1\202\323\344\223\002+\"&/v2/{name=proj" - + "ects/*/dlpJobs/*}:cancel:\001*\022\330\001\n\024CreateSt" - + "oredInfoType\0222.google.privacy.dlp.v2.Cre" - + "ateStoredInfoTypeRequest\032%.google.privac" - + "y.dlp.v2.StoredInfoType\"e\202\323\344\223\002_\",/v2/{pa" - + "rent=organizations/*}/storedInfoTypes:\001*" - + "Z,\"\'/v2/{parent=projects/*}/storedInfoTy" - + "pes:\001*\022\330\001\n\024UpdateStoredInfoType\0222.google" - + ".privacy.dlp.v2.UpdateStoredInfoTypeRequ" - + "est\032%.google.privacy.dlp.v2.StoredInfoTy", - "pe\"e\202\323\344\223\002_2,/v2/{name=organizations/*/st" - + "oredInfoTypes/*}:\001*Z,2\'/v2/{name=project" - + "s/*/storedInfoTypes/*}:\001*\022\314\001\n\021GetStoredI" - + "nfoType\022/.google.privacy.dlp.v2.GetStore" + + "ifyTemplate\"m\202\323\344\223\002g\"0/v2/{parent=organiz" + + "ations/*}/deidentifyTemplates:\001*Z0\"+/v2/" + + "{parent=projects/*}/deidentifyTemplates:" + + "\001*\022\354\001\n\030UpdateDeidentifyTemplate\0226.google" + + ".privacy.dlp.v2.UpdateDeidentifyTemplate" + + "Request\032).google.privacy.dlp.v2.Deidenti" + + "fyTemplate\"m\202\323\344\223\002g20/v2/{name=organizati" + + "ons/*/deidentifyTemplates/*}:\001*Z02+/v2/{" + + "name=projects/*/deidentifyTemplates/*}:\001" + + "*\022\340\001\n\025GetDeidentifyTemplate\0223.google.pri" + + "vacy.dlp.v2.GetDeidentifyTemplateRequest" + + "\032).google.privacy.dlp.v2.DeidentifyTempl" + + "ate\"g\202\323\344\223\002a\0220/v2/{name=organizations/*/d" + + "eidentifyTemplates/*}Z-\022+/v2/{name=proje" + + "cts/*/deidentifyTemplates/*}\022\361\001\n\027ListDei" + + "dentifyTemplates\0225.google.privacy.dlp.v2" + + ".ListDeidentifyTemplatesRequest\0326.google" + + ".privacy.dlp.v2.ListDeidentifyTemplatesR" + + "esponse\"g\202\323\344\223\002a\0220/v2/{parent=organizatio" + + "ns/*}/deidentifyTemplatesZ-\022+/v2/{parent" + + "=projects/*}/deidentifyTemplates\022\323\001\n\030Del" + + "eteDeidentifyTemplate\0226.google.privacy.d" + + "lp.v2.DeleteDeidentifyTemplateRequest\032\026." + + "google.protobuf.Empty\"g\202\323\344\223\002a*0/v2/{name" + + "=organizations/*/deidentifyTemplates/*}Z" + + "-*+/v2/{name=projects/*/deidentifyTempla" + + "tes/*}\022\225\001\n\020CreateJobTrigger\022..google.pri" + + "vacy.dlp.v2.CreateJobTriggerRequest\032!.go" + + "ogle.privacy.dlp.v2.JobTrigger\".\202\323\344\223\002(\"#" + + "/v2/{parent=projects/*}/jobTriggers:\001*\022\225" + + "\001\n\020UpdateJobTrigger\022..google.privacy.dlp" + + ".v2.UpdateJobTriggerRequest\032!.google.pri" + + "vacy.dlp.v2.JobTrigger\".\202\323\344\223\002(2#/v2/{nam" + + "e=projects/*/jobTriggers/*}:\001*\022\214\001\n\rGetJo" + + "bTrigger\022+.google.privacy.dlp.v2.GetJobT" + + "riggerRequest\032!.google.privacy.dlp.v2.Jo" + + "bTrigger\"+\202\323\344\223\002%\022#/v2/{name=projects/*/j" + + "obTriggers/*}\022\235\001\n\017ListJobTriggers\022-.goog" + + "le.privacy.dlp.v2.ListJobTriggersRequest" + + "\032..google.privacy.dlp.v2.ListJobTriggers" + + "Response\"+\202\323\344\223\002%\022#/v2/{parent=projects/*" + + "}/jobTriggers\022\207\001\n\020DeleteJobTrigger\022..goo" + + "gle.privacy.dlp.v2.DeleteJobTriggerReque" + + "st\032\026.google.protobuf.Empty\"+\202\323\344\223\002%*#/v2/" + + "{name=projects/*/jobTriggers/*}\022\236\001\n\022Acti" + + "vateJobTrigger\0220.google.privacy.dlp.v2.A" + + "ctivateJobTriggerRequest\032\035.google.privac" + + "y.dlp.v2.DlpJob\"7\202\323\344\223\0021\",/v2/{name=proje" + + "cts/*/jobTriggers/*}:activate:\001*\022\205\001\n\014Cre" + + "ateDlpJob\022*.google.privacy.dlp.v2.Create" + + "DlpJobRequest\032\035.google.privacy.dlp.v2.Dl" + + "pJob\"*\202\323\344\223\002$\"\037/v2/{parent=projects/*}/dl" + + "pJobs:\001*\022\215\001\n\013ListDlpJobs\022).google.privac" + + "y.dlp.v2.ListDlpJobsRequest\032*.google.pri" + + "vacy.dlp.v2.ListDlpJobsResponse\"\'\202\323\344\223\002!\022" + + "\037/v2/{parent=projects/*}/dlpJobs\022|\n\tGetD" + + "lpJob\022\'.google.privacy.dlp.v2.GetDlpJobR" + + "equest\032\035.google.privacy.dlp.v2.DlpJob\"\'\202" + + "\323\344\223\002!\022\037/v2/{name=projects/*/dlpJobs/*}\022{" + + "\n\014DeleteDlpJob\022*.google.privacy.dlp.v2.D" + + "eleteDlpJobRequest\032\026.google.protobuf.Emp" + + "ty\"\'\202\323\344\223\002!*\037/v2/{name=projects/*/dlpJobs" + + "/*}\022\205\001\n\014CancelDlpJob\022*.google.privacy.dl" + + "p.v2.CancelDlpJobRequest\032\026.google.protob" + + "uf.Empty\"1\202\323\344\223\002+\"&/v2/{name=projects/*/d" + + "lpJobs/*}:cancel:\001*\022\330\001\n\024CreateStoredInfo" + + "Type\0222.google.privacy.dlp.v2.CreateStore" + "dInfoTypeRequest\032%.google.privacy.dlp.v2" - + ".StoredInfoType\"_\202\323\344\223\002Y\022,/v2/{name=organ" - + "izations/*/storedInfoTypes/*}Z)\022\'/v2/{na" - + "me=projects/*/storedInfoTypes/*}\022\335\001\n\023Lis" - + "tStoredInfoTypes\0221.google.privacy.dlp.v2" - + ".ListStoredInfoTypesRequest\0322.google.pri" - + "vacy.dlp.v2.ListStoredInfoTypesResponse\"" - + "_\202\323\344\223\002Y\022,/v2/{parent=organizations/*}/st" - + "oredInfoTypesZ)\022\'/v2/{parent=projects/*}" - + "/storedInfoTypes\022\303\001\n\024DeleteStoredInfoTyp" - + "e\0222.google.privacy.dlp.v2.DeleteStoredIn" - + "foTypeRequest\032\026.google.protobuf.Empty\"_\202" - + "\323\344\223\002Y*,/v2/{name=organizations/*/storedI" - + "nfoTypes/*}Z)*\'/v2/{name=projects/*/stor" - + "edInfoTypes/*}\032\025\312A\022dlp.googleapis.comB\215\001" - + "\n\031com.google.privacy.dlp.v2B\010DlpProtoP\001Z" - + "8google.golang.org/genproto/googleapis/p" - + "rivacy/dlp/v2;dlp\252\002\023Google.Cloud.Dlp.V2\312" - + "\002\023Google\\Cloud\\Dlp\\V2b\006proto3" + + ".StoredInfoType\"e\202\323\344\223\002_\",/v2/{parent=org" + + "anizations/*}/storedInfoTypes:\001*Z,\"\'/v2/", + "{parent=projects/*}/storedInfoTypes:\001*\022\330" + + "\001\n\024UpdateStoredInfoType\0222.google.privacy" + + ".dlp.v2.UpdateStoredInfoTypeRequest\032%.go" + + "ogle.privacy.dlp.v2.StoredInfoType\"e\202\323\344\223" + + "\002_2,/v2/{name=organizations/*/storedInfo" + + "Types/*}:\001*Z,2\'/v2/{name=projects/*/stor" + + "edInfoTypes/*}:\001*\022\314\001\n\021GetStoredInfoType\022" + + "/.google.privacy.dlp.v2.GetStoredInfoTyp" + + "eRequest\032%.google.privacy.dlp.v2.StoredI" + + "nfoType\"_\202\323\344\223\002Y\022,/v2/{name=organizations" + + "/*/storedInfoTypes/*}Z)\022\'/v2/{name=proje" + + "cts/*/storedInfoTypes/*}\022\335\001\n\023ListStoredI" + + "nfoTypes\0221.google.privacy.dlp.v2.ListSto" + + "redInfoTypesRequest\0322.google.privacy.dlp" + + ".v2.ListStoredInfoTypesResponse\"_\202\323\344\223\002Y\022" + + ",/v2/{parent=organizations/*}/storedInfo" + + "TypesZ)\022\'/v2/{parent=projects/*}/storedI" + + "nfoTypes\022\303\001\n\024DeleteStoredInfoType\0222.goog" + + "le.privacy.dlp.v2.DeleteStoredInfoTypeRe" + + "quest\032\026.google.protobuf.Empty\"_\202\323\344\223\002Y*,/" + + "v2/{name=organizations/*/storedInfoTypes" + + "/*}Z)*\'/v2/{name=projects/*/storedInfoTy" + + "pes/*}\032F\312A\022dlp.googleapis.com\322A.https://" + + "www.googleapis.com/auth/cloud-platformB\215" + + "\001\n\031com.google.privacy.dlp.v2B\010DlpProtoP\001" + + "Z8google.golang.org/genproto/googleapis/" + + "privacy/dlp/v2;dlp\252\002\023Google.Cloud.Dlp.V2" + + "\312\002\023Google\\Cloud\\Dlp\\V2b\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { @@ -1477,7 +1486,6 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), com.google.privacy.dlp.v2.DlpStorage.getDescriptor(), com.google.protobuf.DurationProto.getDescriptor(), com.google.protobuf.EmptyProto.getDescriptor(), @@ -1487,6 +1495,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.type.DateProto.getDescriptor(), com.google.type.DayOfWeekProto.getDescriptor(), com.google.type.TimeOfDayProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), }, assigner); internal_static_google_privacy_dlp_v2_ExcludeInfoTypes_descriptor = @@ -2522,7 +2531,12 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_Action_descriptor, new java.lang.String[] { - "SaveFindings", "PubSub", "PublishSummaryToCscc", "JobNotificationEmails", "Action", + "SaveFindings", + "PubSub", + "PublishSummaryToCscc", + "PublishFindingsToCloudDataCatalog", + "JobNotificationEmails", + "Action", }); internal_static_google_privacy_dlp_v2_Action_SaveFindings_descriptor = internal_static_google_privacy_dlp_v2_Action_descriptor.getNestedTypes().get(0); @@ -2546,8 +2560,14 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_Action_PublishSummaryToCscc_descriptor, new java.lang.String[] {}); - internal_static_google_privacy_dlp_v2_Action_JobNotificationEmails_descriptor = + internal_static_google_privacy_dlp_v2_Action_PublishFindingsToCloudDataCatalog_descriptor = internal_static_google_privacy_dlp_v2_Action_descriptor.getNestedTypes().get(3); + internal_static_google_privacy_dlp_v2_Action_PublishFindingsToCloudDataCatalog_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_privacy_dlp_v2_Action_PublishFindingsToCloudDataCatalog_descriptor, + new java.lang.String[] {}); + internal_static_google_privacy_dlp_v2_Action_JobNotificationEmails_descriptor = + internal_static_google_privacy_dlp_v2_Action_descriptor.getNestedTypes().get(4); internal_static_google_privacy_dlp_v2_Action_JobNotificationEmails_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_Action_JobNotificationEmails_descriptor, @@ -2878,10 +2898,10 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.ClientProto.defaultHost); registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.oauthScopes); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); com.google.privacy.dlp.v2.DlpStorage.getDescriptor(); com.google.protobuf.DurationProto.getDescriptor(); com.google.protobuf.EmptyProto.getDescriptor(); @@ -2891,6 +2911,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.type.DateProto.getDescriptor(); com.google.type.DayOfWeekProto.getDescriptor(); com.google.type.TimeOfDayProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/google-api-grpc/proto-google-cloud-dlp-v2/src/main/proto/google/privacy/dlp/v2/dlp.proto b/google-api-grpc/proto-google-cloud-dlp-v2/src/main/proto/google/privacy/dlp/v2/dlp.proto index ca1c30b14ace..b138c3b59b0d 100644 --- a/google-api-grpc/proto-google-cloud-dlp-v2/src/main/proto/google/privacy/dlp/v2/dlp.proto +++ b/google-api-grpc/proto-google-cloud-dlp-v2/src/main/proto/google/privacy/dlp/v2/dlp.proto @@ -18,7 +18,6 @@ syntax = "proto3"; package google.privacy.dlp.v2; import "google/api/annotations.proto"; -import "google/api/client.proto"; import "google/privacy/dlp/v2/storage.proto"; import "google/protobuf/duration.proto"; import "google/protobuf/empty.proto"; @@ -28,6 +27,7 @@ import "google/rpc/status.proto"; import "google/type/date.proto"; import "google/type/dayofweek.proto"; import "google/type/timeofday.proto"; +import "google/api/client.proto"; option csharp_namespace = "Google.Cloud.Dlp.V2"; option go_package = "google.golang.org/genproto/googleapis/privacy/dlp/v2;dlp"; @@ -47,6 +47,7 @@ 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"; // Finds potentially sensitive info in content. // This method has limits on input size, processing time, and output size. @@ -87,8 +88,7 @@ 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: "*" @@ -99,8 +99,7 @@ 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: "*" @@ -119,8 +118,7 @@ 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: "*" @@ -133,8 +131,7 @@ service DlpService { // 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: "*" @@ -150,27 +147,31 @@ service DlpService { rpc GetInspectTemplate(GetInspectTemplateRequest) returns (InspectTemplate) { option (google.api.http) = { get: "/v2/{name=organizations/*/inspectTemplates/*}" - additional_bindings { get: "/v2/{name=projects/*/inspectTemplates/*}" } + additional_bindings { + get: "/v2/{name=projects/*/inspectTemplates/*}" + } }; } // 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=projects/*}/inspectTemplates" } + additional_bindings { + get: "/v2/{parent=projects/*}/inspectTemplates" + } }; } // 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=projects/*/inspectTemplates/*}" } + additional_bindings { + delete: "/v2/{name=projects/*/inspectTemplates/*}" + } }; } @@ -178,8 +179,7 @@ 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: "*" @@ -193,8 +193,7 @@ service DlpService { // 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: "*" @@ -208,30 +207,31 @@ service DlpService { // 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=projects/*/deidentifyTemplates/*}" } + additional_bindings { + get: "/v2/{name=projects/*/deidentifyTemplates/*}" + } }; } // 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=projects/*}/deidentifyTemplates" } + additional_bindings { + get: "/v2/{parent=projects/*}/deidentifyTemplates" + } }; } // 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 { @@ -269,8 +269,7 @@ 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" }; @@ -278,8 +277,7 @@ 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/*}" }; @@ -352,8 +350,7 @@ 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: "*" @@ -368,8 +365,7 @@ 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: "*" @@ -386,29 +382,33 @@ service DlpService { rpc GetStoredInfoType(GetStoredInfoTypeRequest) returns (StoredInfoType) { option (google.api.http) = { get: "/v2/{name=organizations/*/storedInfoTypes/*}" - additional_bindings { get: "/v2/{name=projects/*/storedInfoTypes/*}" } + additional_bindings { + get: "/v2/{name=projects/*/storedInfoTypes/*}" + } }; } // 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=projects/*}/storedInfoTypes" } + additional_bindings { + get: "/v2/{parent=projects/*}/storedInfoTypes" + } }; } // 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=projects/*/storedInfoTypes/*}" } + additional_bindings { + delete: "/v2/{name=projects/*/storedInfoTypes/*}" + } }; } } @@ -426,6 +426,18 @@ message ExcludeInfoTypes { repeated InfoType info_types = 1; } +// Options describing which parts of the provided content should be scanned. +enum ContentOption { + // Includes entire content of a file or a data stream. + CONTENT_UNSPECIFIED = 0; + + // Text content within the data, excluding any metadata. + CONTENT_TEXT = 1; + + // Images found in the data. + CONTENT_IMAGE = 2; +} + // The rule that specifies conditions when findings of infoTypes specified in // `InspectionRuleSet` are removed from results. message ExclusionRule { @@ -444,18 +456,6 @@ message ExclusionRule { MatchingType matching_type = 4; } -// Options describing which parts of the provided content should be scanned. -enum ContentOption { - // Includes entire content of a file or a data stream. - CONTENT_UNSPECIFIED = 0; - - // Text content within the data, excluding any metadata. - CONTENT_TEXT = 1; - - // Images found in the data. - CONTENT_IMAGE = 2; -} - // A single inspection rule to be applied to infoTypes, specified in // `InspectionRuleSet`. message InspectionRule { @@ -1369,8 +1369,7 @@ 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. @@ -1448,8 +1447,7 @@ 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 @@ -1555,8 +1553,7 @@ 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. @@ -1790,12 +1787,16 @@ 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. @@ -2474,11 +2475,29 @@ 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 + // in Cloud Data Catalog. Any labels previously written by another DlpJob will + // be deleted. InfoType naming patterns are strictly enforced when using this + // feature. Note that the findings will be persisted in Cloud Data Catalog + // storage and are governed by Data Catalog service-specific policy, see + // https://cloud.google.com/terms/service-terms + // Only a single instance of this action can be specified and only allowed if + // all resources being scanned are BigQuery tables. + // Compatible with: Inspect + message PublishFindingsToCloudDataCatalog { + + } // Enable email notification to project owners and editors on jobs's // completion/failure. - message JobNotificationEmails {} + message JobNotificationEmails { + + } oneof action { // Save resulting findings in a provided location. @@ -2490,6 +2509,9 @@ message Action { // Publish summary to Cloud Security Command Center (Alpha). PublishSummaryToCscc publish_summary_to_cscc = 3; + // Publish findings to Cloud Datahub. + PublishFindingsToCloudDataCatalog publish_findings_to_cloud_data_catalog = 5; + // Enable email notification to project owners and editors on job's // completion/failure. JobNotificationEmails job_notification_emails = 8; @@ -2790,12 +2812,6 @@ message DlpJob { repeated Error errors = 11; } -// The request message for [DlpJobs.GetDlpJob][]. -message GetDlpJobRequest { - // The name of the DlpJob resource. - string name = 1; -} - // Operators available for comparing the value of fields. enum RelationalOperator { RELATIONAL_OPERATOR_UNSPECIFIED = 0; @@ -2822,6 +2838,12 @@ enum RelationalOperator { EXISTS = 7; } +// The request message for [DlpJobs.GetDlpJob][]. +message GetDlpJobRequest { + // The name of the DlpJob resource. + string name = 1; +} + // The request message for listing DLP jobs. message ListDlpJobsRequest { // The parent resource name, for example projects/my-project-id. diff --git a/google-api-grpc/proto-google-cloud-dlp-v2/src/main/proto/google/privacy/dlp/v2/storage.proto b/google-api-grpc/proto-google-cloud-dlp-v2/src/main/proto/google/privacy/dlp/v2/storage.proto index 0c93754c2cfb..c2f38a61304c 100644 --- a/google-api-grpc/proto-google-cloud-dlp-v2/src/main/proto/google/privacy/dlp/v2/storage.proto +++ b/google-api-grpc/proto-google-cloud-dlp-v2/src/main/proto/google/privacy/dlp/v2/storage.proto @@ -134,11 +134,14 @@ 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 { - // Rule for modifying a CustomInfoType to alter behavior under certain - // circumstances, depending on the specific details of the rule. Not supported - // for the `surrogate_type` custom info type. + } + + // Deprecated; use `InspectionRuleSet` instead. Rule for modifying a + // `CustomInfoType` to alter behavior under certain circumstances, depending + // on the specific details of the rule. Not supported for the `surrogate_type` + // custom infoType. message DetectionRule { // Message for specifying a window around a finding to apply a detection // rule. diff --git a/google-cloud-clients/google-cloud-dlp/synth.metadata b/google-cloud-clients/google-cloud-dlp/synth.metadata index d850917242be..5d5c71033b67 100644 --- a/google-cloud-clients/google-cloud-dlp/synth.metadata +++ b/google-cloud-clients/google-cloud-dlp/synth.metadata @@ -1,19 +1,19 @@ { - "updateTime": "2019-06-18T07:43:21.912360Z", + "updateTime": "2019-07-03T20:55:12.594544Z", "sources": [ { "generator": { "name": "artman", - "version": "0.27.0", - "dockerImage": "googleapis/artman@sha256:b036a7f4278d9deb5796f065e5c7f608d47d75369985ca7ab5039998120e972d" + "version": "0.29.3", + "dockerImage": "googleapis/artman@sha256:8900f94a81adaab0238965aa8a7b3648791f4f3a95ee65adc6a56cfcc3753101" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "384aa843867c4d17756d14a01f047b6368494d32", - "internalRef": "253675319" + "sha": "dbf13ce41f338054af6017ecff6fc3402d71e8a5", + "internalRef": "256395560" } } ],